feat: json rich text editor, blocks, asides, general structure
This commit is contained in:
@@ -1,17 +0,0 @@
|
||||
import type { SysAsset } from "../utils/asset"
|
||||
import type { Edges } from "../utils/edges"
|
||||
import type { ExternalLink } from "../utils/externalLink"
|
||||
import type { PageLink } from "../utils/pageLink"
|
||||
|
||||
export type Preamble = {
|
||||
preamble: {
|
||||
text: {
|
||||
json: JSON
|
||||
embedded_itemsConnection: Edges<
|
||||
| ExternalLink
|
||||
| PageLink
|
||||
| SysAsset
|
||||
>
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,12 @@
|
||||
import type { RTERootObject } from "@/types/rte"
|
||||
import type { SysAsset } from "../utils/asset"
|
||||
import type { Edges } from "../utils/edges"
|
||||
import type { ExternalLink } from "../utils/externalLink"
|
||||
import type { PageLink } from "../utils/pageLink"
|
||||
import type { Embeds } from "../embeds"
|
||||
import type { RTEDocument } from "@/types/rte/node"
|
||||
|
||||
export type Text = {
|
||||
text: {
|
||||
content: {
|
||||
json: RTERootObject
|
||||
embedded_itemsConnection: Edges<ExternalLink | PageLink | SysAsset>
|
||||
embedded_itemsConnection: Edges<Embeds>
|
||||
json: RTEDocument
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user