From 1dc4b2c5e12e22304cfdd8f0a89cf225670bf9c5 Mon Sep 17 00:00:00 2001 From: Alessio Gravili Date: Fri, 27 Dec 2024 00:17:51 -0700 Subject: [PATCH] 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 --- packages/richtext-lexical/src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/richtext-lexical/src/index.ts b/packages/richtext-lexical/src/index.ts index 0fd7e98f6..f2f9cc8f3 100644 --- a/packages/richtext-lexical/src/index.ts +++ b/packages/richtext-lexical/src/index.ts @@ -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'