fix(live-preview): populates rte uploads and relationships (#4379)

This commit is contained in:
Jacob Fletcher
2023-12-05 00:53:11 -05:00
committed by GitHub
parent 290e9d8238
commit 4090aebb0e
11 changed files with 677 additions and 77 deletions

View File

@@ -154,11 +154,6 @@ export interface Page {
}
)[]
| null
relationshipInRichText?:
| {
[k: string]: unknown
}[]
| null
relationshipAsUpload?: string | Media | null
relationshipMonoHasOne?: (string | null) | Post
relationshipMonoHasMany?: (string | Post)[] | null
@@ -195,6 +190,26 @@ export interface Page {
id?: string | null
}[]
| null
richTextSlate?:
| {
[k: string]: unknown
}[]
| null
richTextLexical?: {
root: {
children: {
type: string
version: number
[k: string]: unknown
}[]
direction: ('ltr' | 'rtl') | null
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''
indent: number
type: string
version: number
}
[k: string]: unknown
} | null
tab: {
relationshipInTab?: (string | null) | Post
}