feat: json rich text editor, blocks, asides, general structure
This commit is contained in:
3
types/components/current/asides/puff.ts
Normal file
3
types/components/current/asides/puff.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import type { Puff } from "@/types/requests/puff"
|
||||
|
||||
export type PuffProps = Puff
|
||||
8
types/components/current/breadcrumbs.ts
Normal file
8
types/components/current/breadcrumbs.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Breadcrumb } from "@/types/requests/currentBlockPage"
|
||||
import type { Edges, Node } from "@/types/requests/utils/edges"
|
||||
|
||||
export type BreadcrumbsProps = {
|
||||
breadcrumbs: Edges<Breadcrumb>
|
||||
parent?: Node<Breadcrumb>
|
||||
title: string
|
||||
}
|
||||
10
types/components/current/preamble.ts
Normal file
10
types/components/current/preamble.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import type { BreadcrumbsProps } from "./breadcrumbs"
|
||||
import type { Preamble } from "@/types/requests/preamble"
|
||||
|
||||
export type PreambleProps = {
|
||||
breadcrumbs: BreadcrumbsProps["breadcrumbs"]
|
||||
breadcrumbParent: BreadcrumbsProps["parent"]
|
||||
breadcrumbTitle: BreadcrumbsProps["title"]
|
||||
preamble?: Preamble
|
||||
title: string
|
||||
}
|
||||
8
types/components/current/subnavMobile.ts
Normal file
8
types/components/current/subnavMobile.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Breadcrumb } from "@/types/requests/currentBlockPage"
|
||||
import type { Edges, Node } from "@/types/requests/utils/edges"
|
||||
|
||||
export type SubnavMobileProps = {
|
||||
breadcrumbs: Edges<Breadcrumb>
|
||||
parent?: Node<Breadcrumb>
|
||||
title: string
|
||||
}
|
||||
13
types/components/jsontohtml.ts
Normal file
13
types/components/jsontohtml.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { RTENode } from "../rte/node"
|
||||
|
||||
import type { Node } from "@/types/requests/utils/edges";
|
||||
import type { RenderOptions } from "../rte/option";
|
||||
import type { Embeds } from "@/types/requests/embeds";
|
||||
|
||||
export type JsonToHtmlProps = {
|
||||
embeds: Node<Embeds>[]
|
||||
nodes: RTENode[]
|
||||
renderOptions?: RenderOptions
|
||||
}
|
||||
|
||||
export type EmbedByUid = Record<string, Node<Embeds>>
|
||||
Reference in New Issue
Block a user