feat: json rich text editor, blocks, asides, general structure

This commit is contained in:
Simon Emanuelsson
2024-02-07 11:57:36 +01:00
parent 2bd4e25403
commit 66faa41e98
53 changed files with 966 additions and 211 deletions

View File

@@ -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
}