chore(richtext-lexical): export $createServerBlockNode, $isServerBlockNode and ServerBlockNode for the server (#10192)

This is useful for working within custom markdown transformers on the
server, using a headless lexical editor
This commit is contained in:
Alessio Gravili
2024-12-27 00:17:51 -07:00
committed by GitHub
parent f3aebe3263
commit 1dc4b2c5e1

View File

@@ -857,7 +857,12 @@ export function lexicalEditor(props?: LexicalEditorProps): LexicalRichTextAdapte
export { AlignFeature } from './features/align/server/index.js'
export { BlockquoteFeature } from './features/blockquote/server/index.js'
export { BlocksFeature, type BlocksFeatureProps } from './features/blocks/server/index.js'
export { type BlockFields } from './features/blocks/server/nodes/BlocksNode.js'
export {
$createServerBlockNode,
$isServerBlockNode,
type BlockFields,
ServerBlockNode,
} from './features/blocks/server/nodes/BlocksNode.js'
export { LinebreakHTMLConverter } from './features/converters/html/converter/converters/linebreak.js'
export { ParagraphHTMLConverter } from './features/converters/html/converter/converters/paragraph.js'