feat: json rich text editor, blocks, asides, general structure
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import type { Image } from "../image"
|
||||
import type { Edges } from "./utils/edges"
|
||||
import type { Embeds } from "./embeds"
|
||||
import type { ExternalLink } from "./utils/externalLink"
|
||||
import type { PageLink } from "./utils/pageLink"
|
||||
import type { Typename } from "./utils/typename"
|
||||
import type { RTEDocument } from "../rte/node"
|
||||
|
||||
export type Puff = {
|
||||
imageConnection: Edges<{
|
||||
title: string
|
||||
url: string
|
||||
}>
|
||||
imageConnection: Edges<Image>
|
||||
is_internal: boolean
|
||||
link: {
|
||||
href: string
|
||||
@@ -15,12 +14,12 @@ export type Puff = {
|
||||
}
|
||||
link_text?: string
|
||||
pageConnection: Edges<ExternalLink | PageLink>
|
||||
system: {
|
||||
uid: string
|
||||
}
|
||||
text: {
|
||||
json: JSON
|
||||
embedded_itemsConnection: Edges<Typename<{
|
||||
title: string
|
||||
url: string
|
||||
}, "SysAsset">>
|
||||
embedded_itemsConnection: Edges<Embeds>
|
||||
json: RTEDocument
|
||||
}
|
||||
title: string
|
||||
}
|
||||
Reference in New Issue
Block a user