feat(richtext-lexical): HTML Serializer (#3685)

* chore(richtext-lexical): add jsdocs for afterReadPromise in GraphQL

* feat(richtext-lexical): HTML Serializer

* chore(richtext-lexical): adjust comment

* chore(richtext-lexical): change the way the html serializer works

* chore: working html converter field, improve various exports

* feat: link and heading html serializers

* fix: populationPromises not being added properly

* feat: allow html serializers to be async

* feat: upload html serializer

* feat: text format => html

* feat: lists => html

* feat: Quote => html

* chore: improve Checklist => html conversion, by passing in the full parent to converters
This commit is contained in:
Alessio Gravili
2023-10-21 14:37:59 +02:00
committed by GitHub
parent f6adbae0c7
commit 0af36af16c
47 changed files with 769 additions and 183 deletions

View File

@@ -5,7 +5,7 @@ import type { AdapterArguments } from '../types'
import { populate } from './populate'
import { recurseNestedFields } from './recurseNestedFields'
export type Args = Parameters<RichTextAdapter<any[], AdapterArguments>['afterReadPromise']>[0]
export type Args = Parameters<RichTextAdapter<any[], AdapterArguments>['populationPromise']>[0]
type RecurseRichTextArgs = {
children: unknown[]

View File

@@ -19,7 +19,7 @@ export function slateEditor(args: AdapterArguments): RichTextAdapter<any[], Adap
Component: RichTextField,
toMergeIntoProps: args,
}),
afterReadPromise({
populationPromise({
currentDepth,
depth,
field,