File tree Expand file tree Collapse file tree 3 files changed +36
-0
lines changed
packages/ui/src/elements/PublishButton
collections/LexicalRelationships Expand file tree Collapse file tree 3 files changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -170,6 +170,7 @@ export function PublishButton({ label: labelProp }: PublishButtonClientProps) {
170170 }
171171
172172 const params = qs . stringify ( {
173+ depth : 0 ,
173174 publishSpecificLocale : locale ,
174175 } )
175176
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ export const LexicalRelationshipsFields: CollectionConfig = {
1515 access : {
1616 read : ( ) => true ,
1717 } ,
18+ versions : { drafts : true } ,
1819 fields : [
1920 {
2021 name : 'richText' ,
@@ -50,5 +51,21 @@ export const LexicalRelationshipsFields: CollectionConfig = {
5051 ] ,
5152 } ) ,
5253 } ,
54+ {
55+ name : 'richTextLocalized' ,
56+ type : 'richText' ,
57+ localized : true ,
58+ editor : lexicalEditor ( {
59+ features : [
60+ ...defaultEditorFeatures ,
61+ RelationshipFeature ( {
62+ enabledCollections : [ 'array-fields' ] ,
63+ } ) ,
64+ UploadFeature ( {
65+ enabledCollections : [ 'uploads' ] ,
66+ } ) ,
67+ ] ,
68+ } ) ,
69+ } ,
5370 ] ,
5471}
Original file line number Diff line number Diff line change @@ -653,8 +653,24 @@ export interface LexicalRelationshipField {
653653 } ;
654654 [ k : string ] : unknown ;
655655 } | null ;
656+ richTextLocalized ?: {
657+ root : {
658+ type : string ;
659+ children : {
660+ type : any ;
661+ version : number ;
662+ [ k : string ] : unknown ;
663+ } [ ] ;
664+ direction : ( 'ltr' | 'rtl' ) | null ;
665+ format : 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '' ;
666+ indent : number ;
667+ version : number ;
668+ } ;
669+ [ k : string ] : unknown ;
670+ } | null ;
656671 updatedAt : string ;
657672 createdAt : string ;
673+ _status ?: ( 'draft' | 'published' ) | null ;
658674}
659675/**
660676 * This interface was referenced by `Config`'s JSON-Schema
@@ -1275,8 +1291,10 @@ export interface LexicalRelationshipFieldsSelect<T extends boolean = true> {
12751291 richText ?: T ;
12761292 richText2 ?: T ;
12771293 richText3 ?: T ;
1294+ richTextLocalized ?: T ;
12781295 updatedAt ?: T ;
12791296 createdAt ?: T ;
1297+ _status ?: T ;
12801298}
12811299/**
12821300 * This interface was referenced by `Config`'s JSON-Schema
You can’t perform that action at this time.
0 commit comments