@ruya.sa/richtext-lexical 3.71.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +22 -0
- package/README.md +26 -0
- package/dist/cell/rscEntry.d.ts +4 -0
- package/dist/cell/rscEntry.d.ts.map +1 -0
- package/dist/cell/rscEntry.js +82 -0
- package/dist/cell/rscEntry.js.map +1 -0
- package/dist/dependencyChecker.spec.js +16 -0
- package/dist/dependencyChecker.spec.js.map +1 -0
- package/dist/exports/client/Component-DOSSWC76.js +2 -0
- package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
- package/dist/exports/client/Component-MBLHTKDK.js +2 -0
- package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
- package/dist/exports/client/Field-QIMXATKW.js +2 -0
- package/dist/exports/client/Field-QIMXATKW.js.map +7 -0
- package/dist/exports/client/RelationshipComponent-DCANZBOE.js +2 -0
- package/dist/exports/client/RelationshipComponent-DCANZBOE.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -0
- package/dist/exports/client/chunk-AFXLIYGL.js +12 -0
- package/dist/exports/client/chunk-AFXLIYGL.js.map +7 -0
- package/dist/exports/client/chunk-DBWINSQN.js +2 -0
- package/dist/exports/client/chunk-DBWINSQN.js.map +7 -0
- package/dist/exports/client/chunk-DZXWP6IZ.js +2 -0
- package/dist/exports/client/chunk-DZXWP6IZ.js.map +7 -0
- package/dist/exports/client/chunk-KYWV53CD.js +2 -0
- package/dist/exports/client/chunk-KYWV53CD.js.map +7 -0
- package/dist/exports/client/chunk-SODVDWHX.js +2 -0
- package/dist/exports/client/chunk-SODVDWHX.js.map +7 -0
- package/dist/exports/client/chunk-XBW56OWQ.js +2 -0
- package/dist/exports/client/chunk-XBW56OWQ.js.map +7 -0
- package/dist/exports/client/chunk-ZRFUQZFN.js +2 -0
- package/dist/exports/client/chunk-ZRFUQZFN.js.map +7 -0
- package/dist/exports/client/component-GTKEFO4X.js +2 -0
- package/dist/exports/client/component-GTKEFO4X.js.map +7 -0
- package/dist/exports/client/componentInline-AWWKOKZC.js +2 -0
- package/dist/exports/client/componentInline-AWWKOKZC.js.map +7 -0
- package/dist/exports/client/index.d.ts +84 -0
- package/dist/exports/client/index.d.ts.map +1 -0
- package/dist/exports/client/index.js +66 -0
- package/dist/exports/client/index.js.map +7 -0
- package/dist/exports/cssEntry.d.ts +3 -0
- package/dist/exports/cssEntry.d.ts.map +1 -0
- package/dist/exports/cssEntry.js +5 -0
- package/dist/exports/cssEntry.js.map +1 -0
- package/dist/exports/html/index.d.ts +16 -0
- package/dist/exports/html/index.d.ts.map +1 -0
- package/dist/exports/html/index.js +14 -0
- package/dist/exports/html/index.js.map +1 -0
- package/dist/exports/html-async/index.d.ts +16 -0
- package/dist/exports/html-async/index.d.ts.map +1 -0
- package/dist/exports/html-async/index.js +14 -0
- package/dist/exports/html-async/index.js.map +1 -0
- package/dist/exports/plaintext/index.d.ts +3 -0
- package/dist/exports/plaintext/index.d.ts.map +1 -0
- package/dist/exports/plaintext/index.js +2 -0
- package/dist/exports/plaintext/index.js.map +1 -0
- package/dist/exports/react/index.d.ts +16 -0
- package/dist/exports/react/index.d.ts.map +1 -0
- package/dist/exports/react/index.js +15 -0
- package/dist/exports/react/index.js.map +1 -0
- package/dist/exports/server/ast/mdx.d.ts +7 -0
- package/dist/exports/server/ast/mdx.d.ts.map +1 -0
- package/dist/exports/server/ast/mdx.js +42 -0
- package/dist/exports/server/ast/mdx.js.map +1 -0
- package/dist/exports/server/migrate.d.ts +16 -0
- package/dist/exports/server/migrate.d.ts.map +1 -0
- package/dist/exports/server/migrate.js +16 -0
- package/dist/exports/server/migrate.js.map +1 -0
- package/dist/exports/server/rsc.d.ts +4 -0
- package/dist/exports/server/rsc.d.ts.map +1 -0
- package/dist/exports/server/rsc.js +4 -0
- package/dist/exports/server/rsc.js.map +1 -0
- package/dist/exports/shared.d.ts +5 -0
- package/dist/exports/shared.d.ts.map +1 -0
- package/dist/exports/shared.js +5 -0
- package/dist/exports/shared.js.map +1 -0
- package/dist/features/align/client/index.d.ts +2 -0
- package/dist/features/align/client/index.d.ts.map +1 -0
- package/dist/features/align/client/index.js +215 -0
- package/dist/features/align/client/index.js.map +1 -0
- package/dist/features/align/client/toolbarAlignGroup.d.ts +3 -0
- package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -0
- package/dist/features/align/client/toolbarAlignGroup.js +13 -0
- package/dist/features/align/client/toolbarAlignGroup.js.map +1 -0
- package/dist/features/align/server/i18n.d.ts +3 -0
- package/dist/features/align/server/i18n.d.ts.map +1 -0
- package/dist/features/align/server/i18n.js +225 -0
- package/dist/features/align/server/i18n.js.map +1 -0
- package/dist/features/align/server/index.d.ts +2 -0
- package/dist/features/align/server/index.d.ts.map +1 -0
- package/dist/features/align/server/index.js +10 -0
- package/dist/features/align/server/index.js.map +1 -0
- package/dist/features/blockquote/client/index.d.ts +2 -0
- package/dist/features/blockquote/client/index.d.ts.map +1 -0
- package/dist/features/blockquote/client/index.js +72 -0
- package/dist/features/blockquote/client/index.js.map +1 -0
- package/dist/features/blockquote/markdownTransformer.d.ts +3 -0
- package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
- package/dist/features/blockquote/markdownTransformer.js +33 -0
- package/dist/features/blockquote/markdownTransformer.js.map +1 -0
- package/dist/features/blockquote/server/i18n.d.ts +3 -0
- package/dist/features/blockquote/server/i18n.d.ts.map +1 -0
- package/dist/features/blockquote/server/i18n.js +114 -0
- package/dist/features/blockquote/server/i18n.js.map +1 -0
- package/dist/features/blockquote/server/index.d.ts +6 -0
- package/dist/features/blockquote/server/index.d.ts.map +1 -0
- package/dist/features/blockquote/server/index.js +57 -0
- package/dist/features/blockquote/server/index.js.map +1 -0
- package/dist/features/blocks/client/component/BlockContent.d.ts +73 -0
- package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -0
- package/dist/features/blocks/client/component/BlockContent.js +81 -0
- package/dist/features/blocks/client/component/BlockContent.js.map +1 -0
- package/dist/features/blocks/client/component/components/BlockCollapsible.d.ts +4 -0
- package/dist/features/blocks/client/component/components/BlockCollapsible.d.ts.map +1 -0
- package/dist/features/blocks/client/component/components/BlockCollapsible.js +19 -0
- package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -0
- package/dist/features/blocks/client/component/components/BlockEditButton.d.ts +3 -0
- package/dist/features/blocks/client/component/components/BlockEditButton.d.ts.map +1 -0
- package/dist/features/blocks/client/component/components/BlockEditButton.js +22 -0
- package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -0
- package/dist/features/blocks/client/component/components/BlockRemoveButton.d.ts +3 -0
- package/dist/features/blocks/client/component/components/BlockRemoveButton.d.ts.map +1 -0
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js +22 -0
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -0
- package/dist/features/blocks/client/component/index.d.ts +17 -0
- package/dist/features/blocks/client/component/index.d.ts.map +1 -0
- package/dist/features/blocks/client/component/index.js +444 -0
- package/dist/features/blocks/client/component/index.js.map +1 -0
- package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts +11 -0
- package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -0
- package/dist/features/blocks/client/component/removeEmptyArrayValues.js +20 -0
- package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts +5 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.d.ts.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +28 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.d.ts +3 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.d.ts.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +22 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.d.ts +3 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.d.ts.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +22 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.d.ts +3 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.d.ts.map +1 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +22 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -0
- package/dist/features/blocks/client/componentInline/index.d.ts +29 -0
- package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -0
- package/dist/features/blocks/client/componentInline/index.js +368 -0
- package/dist/features/blocks/client/componentInline/index.js.map +1 -0
- package/dist/features/blocks/client/getBlockImageComponent.d.ts +3 -0
- package/dist/features/blocks/client/getBlockImageComponent.d.ts.map +1 -0
- package/dist/features/blocks/client/getBlockImageComponent.js +18 -0
- package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -0
- package/dist/features/blocks/client/index.d.ts +2 -0
- package/dist/features/blocks/client/index.d.ts.map +1 -0
- package/dist/features/blocks/client/index.js +162 -0
- package/dist/features/blocks/client/index.js.map +1 -0
- package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts +6 -0
- package/dist/features/blocks/client/markdown/getLexicalToMarkdown.d.ts.map +1 -0
- package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js +23 -0
- package/dist/features/blocks/client/markdown/getLexicalToMarkdown.js.map +1 -0
- package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts +6 -0
- package/dist/features/blocks/client/markdown/getMarkdownToLexical.d.ts.map +1 -0
- package/dist/features/blocks/client/markdown/getMarkdownToLexical.js +20 -0
- package/dist/features/blocks/client/markdown/getMarkdownToLexical.js.map +1 -0
- package/dist/features/blocks/client/markdown/markdownTransformer.d.ts +12 -0
- package/dist/features/blocks/client/markdown/markdownTransformer.d.ts.map +1 -0
- package/dist/features/blocks/client/markdown/markdownTransformer.js +348 -0
- package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -0
- package/dist/features/blocks/client/nodes/BlocksNode.d.ts +14 -0
- package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/client/nodes/BlocksNode.js +54 -0
- package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -0
- package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts +14 -0
- package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js +45 -0
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -0
- package/dist/features/blocks/client/plugin/commands.d.ts +5 -0
- package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -0
- package/dist/features/blocks/client/plugin/commands.js +6 -0
- package/dist/features/blocks/client/plugin/commands.js.map +1 -0
- package/dist/features/blocks/client/plugin/index.d.ts +5 -0
- package/dist/features/blocks/client/plugin/index.d.ts.map +1 -0
- package/dist/features/blocks/client/plugin/index.js +102 -0
- package/dist/features/blocks/client/plugin/index.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts +5 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Block.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js +114 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Code.d.ts +56 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Code.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js +100 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts +4 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +17 -0
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts +4 -0
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +26 -0
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.d.ts +5 -0
- package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.js +87 -0
- package/dist/features/blocks/premade/CodeBlock/Component/defaultLanguages.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/converter.d.ts +7 -0
- package/dist/features/blocks/premade/CodeBlock/converter.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/converter.js +46 -0
- package/dist/features/blocks/premade/CodeBlock/converter.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/converterClient.d.ts +2 -0
- package/dist/features/blocks/premade/CodeBlock/converterClient.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/converterClient.js +4 -0
- package/dist/features/blocks/premade/CodeBlock/converterClient.js.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/index.d.ts +9 -0
- package/dist/features/blocks/premade/CodeBlock/index.d.ts.map +1 -0
- package/dist/features/blocks/premade/CodeBlock/index.js +55 -0
- package/dist/features/blocks/premade/CodeBlock/index.js.map +1 -0
- package/dist/features/blocks/server/graphQLPopulationPromise.d.ts +6 -0
- package/dist/features/blocks/server/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/blocks/server/graphQLPopulationPromise.js +47 -0
- package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/blocks/server/i18n.d.ts +3 -0
- package/dist/features/blocks/server/i18n.d.ts.map +1 -0
- package/dist/features/blocks/server/i18n.js +336 -0
- package/dist/features/blocks/server/i18n.js.map +1 -0
- package/dist/features/blocks/server/index.d.ts +39 -0
- package/dist/features/blocks/server/index.d.ts.map +1 -0
- package/dist/features/blocks/server/index.js +237 -0
- package/dist/features/blocks/server/index.js.map +1 -0
- package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.d.ts +22 -0
- package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.d.ts.map +1 -0
- package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js +131 -0
- package/dist/features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js.map +1 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.d.ts +15 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.d.ts.map +1 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.js +368 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -0
- package/dist/features/blocks/server/nodes/BlocksNode.d.ts +47 -0
- package/dist/features/blocks/server/nodes/BlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/server/nodes/BlocksNode.js +102 -0
- package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -0
- package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts +41 -0
- package/dist/features/blocks/server/nodes/InlineBlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/server/nodes/InlineBlocksNode.js +97 -0
- package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -0
- package/dist/features/blocks/server/validate.d.ts +11 -0
- package/dist/features/blocks/server/validate.d.ts.map +1 -0
- package/dist/features/blocks/server/validate.js +63 -0
- package/dist/features/blocks/server/validate.js.map +1 -0
- package/dist/features/converters/htmlToLexical/index.d.ts +13 -0
- package/dist/features/converters/htmlToLexical/index.d.ts.map +1 -0
- package/dist/features/converters/htmlToLexical/index.js +30 -0
- package/dist/features/converters/htmlToLexical/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/blockquote.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js +13 -0
- package/dist/features/converters/lexicalToHtml/async/converters/blockquote.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/heading.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/heading.js +13 -0
- package/dist/features/converters/lexicalToHtml/async/converters/heading.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/horizontalRule.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/linebreak.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/linebreak.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts +9 -0
- package/dist/features/converters/lexicalToHtml/async/converters/link.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/link.js +38 -0
- package/dist/features/converters/lexicalToHtml/async/converters/link.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/list.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/list.js +46 -0
- package/dist/features/converters/lexicalToHtml/async/converters/list.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/paragraph.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js +16 -0
- package/dist/features/converters/lexicalToHtml/async/converters/paragraph.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/tab.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/tab.js +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/tab.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/table.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/table.js +55 -0
- package/dist/features/converters/lexicalToHtml/async/converters/table.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/text.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/text.js +31 -0
- package/dist/features/converters/lexicalToHtml/async/converters/text.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/converters/upload.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/converters/upload.js +67 -0
- package/dist/features/converters/lexicalToHtml/async/converters/upload.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/async/defaultConverters.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/defaultConverters.js +25 -0
- package/dist/features/converters/lexicalToHtml/async/defaultConverters.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.d.ts +33 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.js +67 -0
- package/dist/features/converters/lexicalToHtml/async/field/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/index.d.ts +34 -0
- package/dist/features/converters/lexicalToHtml/async/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/index.js +107 -0
- package/dist/features/converters/lexicalToHtml/async/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/types.d.ts +83 -0
- package/dist/features/converters/lexicalToHtml/async/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/async/types.js +2 -0
- package/dist/features/converters/lexicalToHtml/async/types.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts +15 -0
- package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js +68 -0
- package/dist/features/converters/lexicalToHtml/shared/findConverterForNode.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/shared/types.d.ts +9 -0
- package/dist/features/converters/lexicalToHtml/shared/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/shared/types.js +2 -0
- package/dist/features/converters/lexicalToHtml/shared/types.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js +13 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/blockquote.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/heading.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/heading.js +13 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/heading.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/horizontalRule.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/linebreak.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts +8 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/link.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/link.js +36 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/link.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/list.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/list.js +46 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/list.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js +16 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/paragraph.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/tab.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/tab.js +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/tab.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/table.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/table.js +55 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/table.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/text.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/text.js +31 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/text.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/upload.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/upload.js +60 -0
- package/dist/features/converters/lexicalToHtml/sync/converters/upload.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml/sync/defaultConverters.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js +25 -0
- package/dist/features/converters/lexicalToHtml/sync/defaultConverters.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/index.d.ts +32 -0
- package/dist/features/converters/lexicalToHtml/sync/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/index.js +102 -0
- package/dist/features/converters/lexicalToHtml/sync/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/types.d.ts +75 -0
- package/dist/features/converters/lexicalToHtml/sync/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml/sync/types.js +2 -0
- package/dist/features/converters/lexicalToHtml/sync/types.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js +7 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/linebreak.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js +38 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/paragraph.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js +9 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/tab.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts +4 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js +33 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/converters/text.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts +6 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js +9 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/defaultConverters.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts +70 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js +104 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts +27 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js +2 -0
- package/dist/features/converters/lexicalToHtml_deprecated/converter/types.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts +39 -0
- package/dist/features/converters/lexicalToHtml_deprecated/field/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/field/index.js +122 -0
- package/dist/features/converters/lexicalToHtml_deprecated/field/index.js.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts +12 -0
- package/dist/features/converters/lexicalToHtml_deprecated/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToHtml_deprecated/index.js +11 -0
- package/dist/features/converters/lexicalToHtml_deprecated/index.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/Component/index.d.ts +43 -0
- package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/Component/index.js +44 -0
- package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +15 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +16 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +5 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +5 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts +8 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/link.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js +49 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/list.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js +62 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +20 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/tab.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/tab.js +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/tab.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/table.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js +62 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/text.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js +53 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +65 -0
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts +4 -0
- package/dist/features/converters/lexicalToJSX/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js +25 -0
- package/dist/features/converters/lexicalToJSX/converter/defaultConverters.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/index.d.ts +18 -0
- package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/index.js +134 -0
- package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/types.d.ts +64 -0
- package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToJSX/converter/types.js +2 -0
- package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -0
- package/dist/features/converters/lexicalToMarkdown/index.d.ts +7 -0
- package/dist/features/converters/lexicalToMarkdown/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToMarkdown/index.js +24 -0
- package/dist/features/converters/lexicalToMarkdown/index.js.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js +180 -0
- package/dist/features/converters/lexicalToPlaintext/convertLexicalToPlaintext.spec.js.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.d.ts +7 -0
- package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.d.ts.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js +15 -0
- package/dist/features/converters/lexicalToPlaintext/shared/findConverterForNode.js.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/shared/types.d.ts +5 -0
- package/dist/features/converters/lexicalToPlaintext/shared/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/shared/types.js +2 -0
- package/dist/features/converters/lexicalToPlaintext/shared/types.js.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/sync/index.d.ts +22 -0
- package/dist/features/converters/lexicalToPlaintext/sync/index.d.ts.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/sync/index.js +88 -0
- package/dist/features/converters/lexicalToPlaintext/sync/index.js.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts +60 -0
- package/dist/features/converters/lexicalToPlaintext/sync/types.d.ts.map +1 -0
- package/dist/features/converters/lexicalToPlaintext/sync/types.js +2 -0
- package/dist/features/converters/lexicalToPlaintext/sync/types.js.map +1 -0
- package/dist/features/converters/markdownToLexical/index.d.ts +8 -0
- package/dist/features/converters/markdownToLexical/index.d.ts.map +1 -0
- package/dist/features/converters/markdownToLexical/index.js +21 -0
- package/dist/features/converters/markdownToLexical/index.js.map +1 -0
- package/dist/features/converters/utilities/payloadPopulateFn.d.ts +31 -0
- package/dist/features/converters/utilities/payloadPopulateFn.d.ts.map +1 -0
- package/dist/features/converters/utilities/payloadPopulateFn.js +42 -0
- package/dist/features/converters/utilities/payloadPopulateFn.js.map +1 -0
- package/dist/features/converters/utilities/restPopulateFn.d.ts +11 -0
- package/dist/features/converters/utilities/restPopulateFn.d.ts.map +1 -0
- package/dist/features/converters/utilities/restPopulateFn.js +33 -0
- package/dist/features/converters/utilities/restPopulateFn.js.map +1 -0
- package/dist/features/debug/jsxConverter/client/index.d.ts +2 -0
- package/dist/features/debug/jsxConverter/client/index.d.ts.map +1 -0
- package/dist/features/debug/jsxConverter/client/index.js +11 -0
- package/dist/features/debug/jsxConverter/client/index.js.map +1 -0
- package/dist/features/debug/jsxConverter/client/plugin/index.d.ts +3 -0
- package/dist/features/debug/jsxConverter/client/plugin/index.d.ts.map +1 -0
- package/dist/features/debug/jsxConverter/client/plugin/index.js +55 -0
- package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -0
- package/dist/features/debug/jsxConverter/server/index.d.ts +2 -0
- package/dist/features/debug/jsxConverter/server/index.d.ts.map +1 -0
- package/dist/features/debug/jsxConverter/server/index.js +8 -0
- package/dist/features/debug/jsxConverter/server/index.js.map +1 -0
- package/dist/features/debug/testRecorder/client/index.d.ts +2 -0
- package/dist/features/debug/testRecorder/client/index.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/client/index.js +11 -0
- package/dist/features/debug/testRecorder/client/index.js.map +1 -0
- package/dist/features/debug/testRecorder/client/plugin/index.d.ts +5 -0
- package/dist/features/debug/testRecorder/client/plugin/index.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/client/plugin/index.js +422 -0
- package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -0
- package/dist/features/debug/testRecorder/server/index.d.ts +2 -0
- package/dist/features/debug/testRecorder/server/index.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/server/index.js +8 -0
- package/dist/features/debug/testRecorder/server/index.js.map +1 -0
- package/dist/features/debug/treeView/client/index.d.ts +2 -0
- package/dist/features/debug/treeView/client/index.d.ts.map +1 -0
- package/dist/features/debug/treeView/client/index.js +11 -0
- package/dist/features/debug/treeView/client/index.js.map +1 -0
- package/dist/features/debug/treeView/client/plugin/index.d.ts +4 -0
- package/dist/features/debug/treeView/client/plugin/index.d.ts.map +1 -0
- package/dist/features/debug/treeView/client/plugin/index.js +29 -0
- package/dist/features/debug/treeView/client/plugin/index.js.map +1 -0
- package/dist/features/debug/treeView/server/index.d.ts +2 -0
- package/dist/features/debug/treeView/server/index.d.ts.map +1 -0
- package/dist/features/debug/treeView/server/index.js +8 -0
- package/dist/features/debug/treeView/server/index.js.map +1 -0
- package/dist/features/experimental_table/client/index.d.ts +2 -0
- package/dist/features/experimental_table/client/index.d.ts.map +1 -0
- package/dist/features/experimental_table/client/index.js +56 -0
- package/dist/features/experimental_table/client/index.js.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts +4 -0
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +546 -0
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts +4 -0
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +344 -0
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +5 -0
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +247 -0
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -0
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +24 -0
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +152 -0
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -0
- package/dist/features/experimental_table/client/utils/debounce.d.ts +61 -0
- package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -0
- package/dist/features/experimental_table/client/utils/debounce.js +224 -0
- package/dist/features/experimental_table/client/utils/debounce.js.map +1 -0
- package/dist/features/experimental_table/client/utils/useDebounce.d.ts +2 -0
- package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -0
- package/dist/features/experimental_table/client/utils/useDebounce.js +46 -0
- package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -0
- package/dist/features/experimental_table/markdownTransformer.d.ts +5 -0
- package/dist/features/experimental_table/markdownTransformer.d.ts.map +1 -0
- package/dist/features/experimental_table/markdownTransformer.js +131 -0
- package/dist/features/experimental_table/markdownTransformer.js.map +1 -0
- package/dist/features/experimental_table/server/index.d.ts +8 -0
- package/dist/features/experimental_table/server/index.d.ts.map +1 -0
- package/dist/features/experimental_table/server/index.js +154 -0
- package/dist/features/experimental_table/server/index.js.map +1 -0
- package/dist/features/format/bold/feature.client.d.ts +2 -0
- package/dist/features/format/bold/feature.client.d.ts.map +1 -0
- package/dist/features/format/bold/feature.client.js +45 -0
- package/dist/features/format/bold/feature.client.js.map +1 -0
- package/dist/features/format/bold/feature.server.d.ts +2 -0
- package/dist/features/format/bold/feature.server.d.ts.map +1 -0
- package/dist/features/format/bold/feature.server.js +19 -0
- package/dist/features/format/bold/feature.server.js.map +1 -0
- package/dist/features/format/bold/markdownTransformers.d.ts +6 -0
- package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/bold/markdownTransformers.js +23 -0
- package/dist/features/format/bold/markdownTransformers.js.map +1 -0
- package/dist/features/format/inlineCode/feature.client.d.ts +2 -0
- package/dist/features/format/inlineCode/feature.client.d.ts.map +1 -0
- package/dist/features/format/inlineCode/feature.client.js +37 -0
- package/dist/features/format/inlineCode/feature.client.js.map +1 -0
- package/dist/features/format/inlineCode/feature.server.d.ts +2 -0
- package/dist/features/format/inlineCode/feature.server.d.ts.map +1 -0
- package/dist/features/format/inlineCode/feature.server.js +10 -0
- package/dist/features/format/inlineCode/feature.server.js.map +1 -0
- package/dist/features/format/inlineCode/markdownTransformers.d.ts +3 -0
- package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/inlineCode/markdownTransformers.js +6 -0
- package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
- package/dist/features/format/italic/feature.client.d.ts +2 -0
- package/dist/features/format/italic/feature.client.d.ts.map +1 -0
- package/dist/features/format/italic/feature.client.js +37 -0
- package/dist/features/format/italic/feature.client.js.map +1 -0
- package/dist/features/format/italic/feature.server.d.ts +2 -0
- package/dist/features/format/italic/feature.server.d.ts.map +1 -0
- package/dist/features/format/italic/feature.server.js +10 -0
- package/dist/features/format/italic/feature.server.js.map +1 -0
- package/dist/features/format/italic/markdownTransformers.d.ts +4 -0
- package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/italic/markdownTransformers.js +12 -0
- package/dist/features/format/italic/markdownTransformers.js.map +1 -0
- package/dist/features/format/shared/toolbarFormatGroup.d.ts +3 -0
- package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -0
- package/dist/features/format/shared/toolbarFormatGroup.js +11 -0
- package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
- package/dist/features/format/strikethrough/feature.client.d.ts +2 -0
- package/dist/features/format/strikethrough/feature.client.d.ts.map +1 -0
- package/dist/features/format/strikethrough/feature.client.js +37 -0
- package/dist/features/format/strikethrough/feature.client.js.map +1 -0
- package/dist/features/format/strikethrough/feature.server.d.ts +2 -0
- package/dist/features/format/strikethrough/feature.server.d.ts.map +1 -0
- package/dist/features/format/strikethrough/feature.server.js +10 -0
- package/dist/features/format/strikethrough/feature.server.js.map +1 -0
- package/dist/features/format/strikethrough/markdownTransformers.d.ts +3 -0
- package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/strikethrough/markdownTransformers.js +6 -0
- package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
- package/dist/features/format/subscript/feature.client.d.ts +2 -0
- package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
- package/dist/features/format/subscript/feature.client.js +35 -0
- package/dist/features/format/subscript/feature.client.js.map +1 -0
- package/dist/features/format/subscript/feature.server.d.ts +2 -0
- package/dist/features/format/subscript/feature.server.d.ts.map +1 -0
- package/dist/features/format/subscript/feature.server.js +8 -0
- package/dist/features/format/subscript/feature.server.js.map +1 -0
- package/dist/features/format/superscript/feature.client.d.ts +2 -0
- package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
- package/dist/features/format/superscript/feature.client.js +35 -0
- package/dist/features/format/superscript/feature.client.js.map +1 -0
- package/dist/features/format/superscript/feature.server.d.ts +2 -0
- package/dist/features/format/superscript/feature.server.d.ts.map +1 -0
- package/dist/features/format/superscript/feature.server.js +8 -0
- package/dist/features/format/superscript/feature.server.js.map +1 -0
- package/dist/features/format/underline/feature.client.d.ts +2 -0
- package/dist/features/format/underline/feature.client.d.ts.map +1 -0
- package/dist/features/format/underline/feature.client.js +35 -0
- package/dist/features/format/underline/feature.client.js.map +1 -0
- package/dist/features/format/underline/feature.server.d.ts +2 -0
- package/dist/features/format/underline/feature.server.d.ts.map +1 -0
- package/dist/features/format/underline/feature.server.js +8 -0
- package/dist/features/format/underline/feature.server.js.map +1 -0
- package/dist/features/heading/client/index.d.ts +3 -0
- package/dist/features/heading/client/index.d.ts.map +1 -0
- package/dist/features/heading/client/index.js +168 -0
- package/dist/features/heading/client/index.js.map +1 -0
- package/dist/features/heading/markdownTransformer.d.ts +4 -0
- package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
- package/dist/features/heading/markdownTransformer.js +26 -0
- package/dist/features/heading/markdownTransformer.js.map +1 -0
- package/dist/features/heading/server/i18n.d.ts +3 -0
- package/dist/features/heading/server/i18n.d.ts.map +1 -0
- package/dist/features/heading/server/i18n.js +114 -0
- package/dist/features/heading/server/i18n.js.map +1 -0
- package/dist/features/heading/server/index.d.ts +9 -0
- package/dist/features/heading/server/index.d.ts.map +1 -0
- package/dist/features/heading/server/index.js +69 -0
- package/dist/features/heading/server/index.js.map +1 -0
- package/dist/features/horizontalRule/client/index.d.ts +2 -0
- package/dist/features/horizontalRule/client/index.d.ts.map +1 -0
- package/dist/features/horizontalRule/client/index.js +62 -0
- package/dist/features/horizontalRule/client/index.js.map +1 -0
- package/dist/features/horizontalRule/client/markdownTransformer.d.ts +3 -0
- package/dist/features/horizontalRule/client/markdownTransformer.d.ts.map +1 -0
- package/dist/features/horizontalRule/client/markdownTransformer.js +20 -0
- package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -0
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts +19 -0
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -0
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +40 -0
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -0
- package/dist/features/horizontalRule/client/plugin/index.d.ts +7 -0
- package/dist/features/horizontalRule/client/plugin/index.d.ts.map +1 -0
- package/dist/features/horizontalRule/client/plugin/index.js +43 -0
- package/dist/features/horizontalRule/client/plugin/index.js.map +1 -0
- package/dist/features/horizontalRule/server/i18n.d.ts +3 -0
- package/dist/features/horizontalRule/server/i18n.d.ts.map +1 -0
- package/dist/features/horizontalRule/server/i18n.js +114 -0
- package/dist/features/horizontalRule/server/i18n.js.map +1 -0
- package/dist/features/horizontalRule/server/index.d.ts +2 -0
- package/dist/features/horizontalRule/server/index.d.ts.map +1 -0
- package/dist/features/horizontalRule/server/index.js +25 -0
- package/dist/features/horizontalRule/server/index.js.map +1 -0
- package/dist/features/horizontalRule/server/markdownTransformer.d.ts +3 -0
- package/dist/features/horizontalRule/server/markdownTransformer.d.ts.map +1 -0
- package/dist/features/horizontalRule/server/markdownTransformer.js +20 -0
- package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -0
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts +51 -0
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.d.ts.map +1 -0
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +88 -0
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -0
- package/dist/features/indent/client/IndentPlugin.d.ts +4 -0
- package/dist/features/indent/client/IndentPlugin.d.ts.map +1 -0
- package/dist/features/indent/client/IndentPlugin.js +91 -0
- package/dist/features/indent/client/IndentPlugin.js.map +1 -0
- package/dist/features/indent/client/index.d.ts +3 -0
- package/dist/features/indent/client/index.d.ts.map +1 -0
- package/dist/features/indent/client/index.js +88 -0
- package/dist/features/indent/client/index.js.map +1 -0
- package/dist/features/indent/client/toolbarIndentGroup.d.ts +3 -0
- package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -0
- package/dist/features/indent/client/toolbarIndentGroup.js +11 -0
- package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -0
- package/dist/features/indent/server/i18n.d.ts +3 -0
- package/dist/features/indent/server/i18n.d.ts.map +1 -0
- package/dist/features/indent/server/i18n.js +151 -0
- package/dist/features/indent/server/i18n.js.map +1 -0
- package/dist/features/indent/server/index.d.ts +16 -0
- package/dist/features/indent/server/index.d.ts.map +1 -0
- package/dist/features/indent/server/index.js +15 -0
- package/dist/features/indent/server/index.js.map +1 -0
- package/dist/features/link/client/index.d.ts +8 -0
- package/dist/features/link/client/index.d.ts.map +1 -0
- package/dist/features/link/client/index.js +96 -0
- package/dist/features/link/client/index.js.map +1 -0
- package/dist/features/link/client/plugins/autoLink/index.d.ts +20 -0
- package/dist/features/link/client/plugins/autoLink/index.d.ts.map +1 -0
- package/dist/features/link/client/plugins/autoLink/index.js +338 -0
- package/dist/features/link/client/plugins/autoLink/index.js.map +1 -0
- package/dist/features/link/client/plugins/clickableLink/index.d.ts +4 -0
- package/dist/features/link/client/plugins/clickableLink/index.d.ts.map +1 -0
- package/dist/features/link/client/plugins/clickableLink/index.js +9 -0
- package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +4 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +5 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts +5 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +327 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts +5 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/index.d.ts.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js +15 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts +18 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/types.d.ts.map +1 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/types.js +5 -0
- package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -0
- package/dist/features/link/client/plugins/link/index.d.ts +4 -0
- package/dist/features/link/client/plugins/link/index.d.ts.map +1 -0
- package/dist/features/link/client/plugins/link/index.js +78 -0
- package/dist/features/link/client/plugins/link/index.js.map +1 -0
- package/dist/features/link/markdownTransformer.d.ts +6 -0
- package/dist/features/link/markdownTransformer.d.ts.map +1 -0
- package/dist/features/link/markdownTransformer.js +44 -0
- package/dist/features/link/markdownTransformer.js.map +1 -0
- package/dist/features/link/nodes/AutoLinkNode.d.ts +17 -0
- package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
- package/dist/features/link/nodes/AutoLinkNode.js +70 -0
- package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
- package/dist/features/link/nodes/LinkNode.d.ts +43 -0
- package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
- package/dist/features/link/nodes/LinkNode.js +331 -0
- package/dist/features/link/nodes/LinkNode.js.map +1 -0
- package/dist/features/link/nodes/types.d.ts +27 -0
- package/dist/features/link/nodes/types.d.ts.map +1 -0
- package/dist/features/link/nodes/types.js +2 -0
- package/dist/features/link/nodes/types.js.map +1 -0
- package/dist/features/link/server/baseFields.d.ts +3 -0
- package/dist/features/link/server/baseFields.d.ts.map +1 -0
- package/dist/features/link/server/baseFields.js +147 -0
- package/dist/features/link/server/baseFields.js.map +1 -0
- package/dist/features/link/server/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/link/server/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/link/server/graphQLPopulationPromise.js +48 -0
- package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/link/server/i18n.d.ts +3 -0
- package/dist/features/link/server/i18n.d.ts.map +1 -0
- package/dist/features/link/server/i18n.js +151 -0
- package/dist/features/link/server/i18n.js.map +1 -0
- package/dist/features/link/server/index.d.ts +46 -0
- package/dist/features/link/server/index.d.ts.map +1 -0
- package/dist/features/link/server/index.js +161 -0
- package/dist/features/link/server/index.js.map +1 -0
- package/dist/features/link/server/transformExtraFields.d.ts +9 -0
- package/dist/features/link/server/transformExtraFields.d.ts.map +1 -0
- package/dist/features/link/server/transformExtraFields.js +20 -0
- package/dist/features/link/server/transformExtraFields.js.map +1 -0
- package/dist/features/link/server/validate.d.ts +6 -0
- package/dist/features/link/server/validate.d.ts.map +1 -0
- package/dist/features/link/server/validate.js +50 -0
- package/dist/features/link/server/validate.js.map +1 -0
- package/dist/features/lists/checklist/client/index.d.ts +2 -0
- package/dist/features/lists/checklist/client/index.d.ts.map +1 -0
- package/dist/features/lists/checklist/client/index.js +94 -0
- package/dist/features/lists/checklist/client/index.js.map +1 -0
- package/dist/features/lists/checklist/client/plugin/index.d.ts +3 -0
- package/dist/features/lists/checklist/client/plugin/index.d.ts.map +1 -0
- package/dist/features/lists/checklist/client/plugin/index.js +9 -0
- package/dist/features/lists/checklist/client/plugin/index.js.map +1 -0
- package/dist/features/lists/checklist/markdownTransformers.d.ts +3 -0
- package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
- package/dist/features/lists/checklist/markdownTransformers.js +12 -0
- package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
- package/dist/features/lists/checklist/server/i18n.d.ts +3 -0
- package/dist/features/lists/checklist/server/i18n.d.ts.map +1 -0
- package/dist/features/lists/checklist/server/i18n.js +114 -0
- package/dist/features/lists/checklist/server/i18n.js.map +1 -0
- package/dist/features/lists/checklist/server/index.d.ts +2 -0
- package/dist/features/lists/checklist/server/index.d.ts.map +1 -0
- package/dist/features/lists/checklist/server/index.js +31 -0
- package/dist/features/lists/checklist/server/index.js.map +1 -0
- package/dist/features/lists/htmlConverter.d.ts +5 -0
- package/dist/features/lists/htmlConverter.d.ts.map +1 -0
- package/dist/features/lists/htmlConverter.js +81 -0
- package/dist/features/lists/htmlConverter.js.map +1 -0
- package/dist/features/lists/orderedList/client/index.d.ts +2 -0
- package/dist/features/lists/orderedList/client/index.d.ts.map +1 -0
- package/dist/features/lists/orderedList/client/index.js +86 -0
- package/dist/features/lists/orderedList/client/index.js.map +1 -0
- package/dist/features/lists/orderedList/markdownTransformer.d.ts +3 -0
- package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
- package/dist/features/lists/orderedList/markdownTransformer.js +12 -0
- package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
- package/dist/features/lists/orderedList/server/i18n.d.ts +3 -0
- package/dist/features/lists/orderedList/server/i18n.d.ts.map +1 -0
- package/dist/features/lists/orderedList/server/i18n.js +114 -0
- package/dist/features/lists/orderedList/server/i18n.js.map +1 -0
- package/dist/features/lists/orderedList/server/index.d.ts +2 -0
- package/dist/features/lists/orderedList/server/index.d.ts.map +1 -0
- package/dist/features/lists/orderedList/server/index.js +31 -0
- package/dist/features/lists/orderedList/server/index.js.map +1 -0
- package/dist/features/lists/plugin/index.d.ts +12 -0
- package/dist/features/lists/plugin/index.d.ts.map +1 -0
- package/dist/features/lists/plugin/index.js +9 -0
- package/dist/features/lists/plugin/index.js.map +1 -0
- package/dist/features/lists/shared/markdown.d.ts +6 -0
- package/dist/features/lists/shared/markdown.d.ts.map +1 -0
- package/dist/features/lists/shared/markdown.js +57 -0
- package/dist/features/lists/shared/markdown.js.map +1 -0
- package/dist/features/lists/shared/shouldRegisterListBaseNodes.d.ts +2 -0
- package/dist/features/lists/shared/shouldRegisterListBaseNodes.d.ts.map +1 -0
- package/dist/features/lists/shared/shouldRegisterListBaseNodes.js +14 -0
- package/dist/features/lists/shared/shouldRegisterListBaseNodes.js.map +1 -0
- package/dist/features/lists/shared/slashMenuListGroup.d.ts +3 -0
- package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -0
- package/dist/features/lists/shared/slashMenuListGroup.js +12 -0
- package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
- package/dist/features/lists/unorderedList/client/index.d.ts +2 -0
- package/dist/features/lists/unorderedList/client/index.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/client/index.js +80 -0
- package/dist/features/lists/unorderedList/client/index.js.map +1 -0
- package/dist/features/lists/unorderedList/markdownTransformer.d.ts +3 -0
- package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/markdownTransformer.js +12 -0
- package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
- package/dist/features/lists/unorderedList/server/i18n.d.ts +3 -0
- package/dist/features/lists/unorderedList/server/i18n.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/server/i18n.js +114 -0
- package/dist/features/lists/unorderedList/server/i18n.js.map +1 -0
- package/dist/features/lists/unorderedList/server/index.d.ts +2 -0
- package/dist/features/lists/unorderedList/server/index.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/server/index.js +26 -0
- package/dist/features/lists/unorderedList/server/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +22 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +33 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +24 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +25 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +22 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +28 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +22 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +3 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +9 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +19 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +78 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +23 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +2 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +2 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +10 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +10 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +49 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +9 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +15 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +74 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +23 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +24 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +33 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +30 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +26 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +26 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +15 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +27 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +26 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +18 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +3 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +12 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/index.d.ts +19 -0
- package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/index.js +130 -0
- package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/types.d.ts +16 -0
- package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/types.js +2 -0
- package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.client.d.ts +2 -0
- package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.client.js +10 -0
- package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.server.d.ts +40 -0
- package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.server.js +68 -0
- package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +9 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +15 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +33 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +74 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
- package/dist/features/paragraph/client/index.d.ts +2 -0
- package/dist/features/paragraph/client/index.d.ts.map +1 -0
- package/dist/features/paragraph/client/index.js +68 -0
- package/dist/features/paragraph/client/index.js.map +1 -0
- package/dist/features/paragraph/server/i18n.d.ts +3 -0
- package/dist/features/paragraph/server/i18n.d.ts.map +1 -0
- package/dist/features/paragraph/server/i18n.js +151 -0
- package/dist/features/paragraph/server/i18n.js.map +1 -0
- package/dist/features/paragraph/server/index.d.ts +2 -0
- package/dist/features/paragraph/server/index.d.ts.map +1 -0
- package/dist/features/paragraph/server/index.js +11 -0
- package/dist/features/paragraph/server/index.js.map +1 -0
- package/dist/features/relationship/client/components/RelationshipComponent.d.ts +13 -0
- package/dist/features/relationship/client/components/RelationshipComponent.d.ts.map +1 -0
- package/dist/features/relationship/client/components/RelationshipComponent.js +134 -0
- package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -0
- package/dist/features/relationship/client/drawer/commands.d.ts +7 -0
- package/dist/features/relationship/client/drawer/commands.d.ts.map +1 -0
- package/dist/features/relationship/client/drawer/commands.js +3 -0
- package/dist/features/relationship/client/drawer/commands.js.map +1 -0
- package/dist/features/relationship/client/drawer/index.d.ts +8 -0
- package/dist/features/relationship/client/drawer/index.d.ts.map +1 -0
- package/dist/features/relationship/client/drawer/index.js +147 -0
- package/dist/features/relationship/client/drawer/index.js.map +1 -0
- package/dist/features/relationship/client/index.d.ts +3 -0
- package/dist/features/relationship/client/index.d.ts.map +1 -0
- package/dist/features/relationship/client/index.js +66 -0
- package/dist/features/relationship/client/index.js.map +1 -0
- package/dist/features/relationship/client/nodes/RelationshipNode.d.ts +15 -0
- package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -0
- package/dist/features/relationship/client/nodes/RelationshipNode.js +76 -0
- package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -0
- package/dist/features/relationship/client/plugins/index.d.ts +7 -0
- package/dist/features/relationship/client/plugins/index.d.ts.map +1 -0
- package/dist/features/relationship/client/plugins/index.js +81 -0
- package/dist/features/relationship/client/plugins/index.js.map +1 -0
- package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts +13 -0
- package/dist/features/relationship/client/utils/useEnabledRelationships.d.ts.map +1 -0
- package/dist/features/relationship/client/utils/useEnabledRelationships.js +64 -0
- package/dist/features/relationship/client/utils/useEnabledRelationships.js.map +1 -0
- package/dist/features/relationship/server/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/relationship/server/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/relationship/server/graphQLPopulationPromise.js +37 -0
- package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/relationship/server/i18n.d.ts +3 -0
- package/dist/features/relationship/server/i18n.d.ts.map +1 -0
- package/dist/features/relationship/server/i18n.js +114 -0
- package/dist/features/relationship/server/i18n.js.map +1 -0
- package/dist/features/relationship/server/index.d.ts +27 -0
- package/dist/features/relationship/server/index.d.ts.map +1 -0
- package/dist/features/relationship/server/index.js +67 -0
- package/dist/features/relationship/server/index.js.map +1 -0
- package/dist/features/relationship/server/nodes/RelationshipNode.d.ts +36 -0
- package/dist/features/relationship/server/nodes/RelationshipNode.d.ts.map +1 -0
- package/dist/features/relationship/server/nodes/RelationshipNode.js +111 -0
- package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -0
- package/dist/features/shared/slashMenu/basicGroup.d.ts +3 -0
- package/dist/features/shared/slashMenu/basicGroup.d.ts.map +1 -0
- package/dist/features/shared/slashMenu/basicGroup.js +12 -0
- package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
- package/dist/features/shared/toolbar/addDropdownGroup.d.ts +3 -0
- package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
- package/dist/features/shared/toolbar/addDropdownGroup.js +11 -0
- package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.d.ts +3 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.js +9 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
- package/dist/features/shared/toolbar/textDropdownGroup.d.ts +3 -0
- package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -0
- package/dist/features/shared/toolbar/textDropdownGroup.js +11 -0
- package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
- package/dist/features/textState/defaultColors.d.ts +91 -0
- package/dist/features/textState/defaultColors.d.ts.map +1 -0
- package/dist/features/textState/defaultColors.js +386 -0
- package/dist/features/textState/defaultColors.js.map +1 -0
- package/dist/features/textState/feature.client.d.ts +3 -0
- package/dist/features/textState/feature.client.d.ts.map +1 -0
- package/dist/features/textState/feature.client.js +73 -0
- package/dist/features/textState/feature.client.js.map +1 -0
- package/dist/features/textState/feature.server.d.ts +60 -0
- package/dist/features/textState/feature.server.d.ts.map +1 -0
- package/dist/features/textState/feature.server.js +27 -0
- package/dist/features/textState/feature.server.js.map +1 -0
- package/dist/features/textState/i18n.d.ts +3 -0
- package/dist/features/textState/i18n.d.ts.map +1 -0
- package/dist/features/textState/i18n.js +114 -0
- package/dist/features/textState/i18n.js.map +1 -0
- package/dist/features/textState/textState.d.ts +12 -0
- package/dist/features/textState/textState.d.ts.map +1 -0
- package/dist/features/textState/textState.js +73 -0
- package/dist/features/textState/textState.js.map +1 -0
- package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts +5 -0
- package/dist/features/toolbars/fixed/client/Toolbar/index.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/client/Toolbar/index.js +321 -0
- package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -0
- package/dist/features/toolbars/fixed/client/index.d.ts +3 -0
- package/dist/features/toolbars/fixed/client/index.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/client/index.js +11 -0
- package/dist/features/toolbars/fixed/client/index.js.map +1 -0
- package/dist/features/toolbars/fixed/server/index.d.ts +28 -0
- package/dist/features/toolbars/fixed/server/index.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/server/index.js +19 -0
- package/dist/features/toolbars/fixed/server/index.js.map +1 -0
- package/dist/features/toolbars/inline/client/Toolbar/index.d.ts +4 -0
- package/dist/features/toolbars/inline/client/Toolbar/index.d.ts.map +1 -0
- package/dist/features/toolbars/inline/client/Toolbar/index.js +395 -0
- package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -0
- package/dist/features/toolbars/inline/client/index.d.ts +2 -0
- package/dist/features/toolbars/inline/client/index.d.ts.map +1 -0
- package/dist/features/toolbars/inline/client/index.js +11 -0
- package/dist/features/toolbars/inline/client/index.js.map +1 -0
- package/dist/features/toolbars/inline/server/index.d.ts +2 -0
- package/dist/features/toolbars/inline/server/index.d.ts.map +1 -0
- package/dist/features/toolbars/inline/server/index.js +8 -0
- package/dist/features/toolbars/inline/server/index.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +10 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.js +156 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +25 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +224 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +22 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js +196 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
- package/dist/features/toolbars/types.d.ts +103 -0
- package/dist/features/toolbars/types.d.ts.map +1 -0
- package/dist/features/toolbars/types.js +2 -0
- package/dist/features/toolbars/types.js.map +1 -0
- package/dist/features/typeUtilities.d.ts +8 -0
- package/dist/features/typeUtilities.d.ts.map +1 -0
- package/dist/features/typeUtilities.js +7 -0
- package/dist/features/typeUtilities.js.map +1 -0
- package/dist/features/typesClient.d.ts +188 -0
- package/dist/features/typesClient.d.ts.map +1 -0
- package/dist/features/typesClient.js +2 -0
- package/dist/features/typesClient.js.map +1 -0
- package/dist/features/typesServer.d.ts +332 -0
- package/dist/features/typesServer.d.ts.map +1 -0
- package/dist/features/typesServer.js +2 -0
- package/dist/features/typesServer.js.map +1 -0
- package/dist/features/upload/client/component/index.d.ts +12 -0
- package/dist/features/upload/client/component/index.d.ts.map +1 -0
- package/dist/features/upload/client/component/index.js +210 -0
- package/dist/features/upload/client/component/index.js.map +1 -0
- package/dist/features/upload/client/component/pending/index.d.ts +3 -0
- package/dist/features/upload/client/component/pending/index.d.ts.map +1 -0
- package/dist/features/upload/client/component/pending/index.js +14 -0
- package/dist/features/upload/client/component/pending/index.js.map +1 -0
- package/dist/features/upload/client/drawer/commands.d.ts +7 -0
- package/dist/features/upload/client/drawer/commands.d.ts.map +1 -0
- package/dist/features/upload/client/drawer/commands.js +5 -0
- package/dist/features/upload/client/drawer/commands.js.map +1 -0
- package/dist/features/upload/client/drawer/index.d.ts +8 -0
- package/dist/features/upload/client/drawer/index.d.ts.map +1 -0
- package/dist/features/upload/client/drawer/index.js +151 -0
- package/dist/features/upload/client/drawer/index.js.map +1 -0
- package/dist/features/upload/client/index.d.ts +10 -0
- package/dist/features/upload/client/index.d.ts.map +1 -0
- package/dist/features/upload/client/index.js +64 -0
- package/dist/features/upload/client/index.js.map +1 -0
- package/dist/features/upload/client/nodes/UploadNode.d.ts +17 -0
- package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -0
- package/dist/features/upload/client/nodes/UploadNode.js +77 -0
- package/dist/features/upload/client/nodes/UploadNode.js.map +1 -0
- package/dist/features/upload/client/plugin/index.d.ts +14 -0
- package/dist/features/upload/client/plugin/index.d.ts.map +1 -0
- package/dist/features/upload/client/plugin/index.js +361 -0
- package/dist/features/upload/client/plugin/index.js.map +1 -0
- package/dist/features/upload/server/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/upload/server/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/upload/server/graphQLPopulationPromise.js +68 -0
- package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/upload/server/i18n.d.ts +3 -0
- package/dist/features/upload/server/i18n.d.ts.map +1 -0
- package/dist/features/upload/server/i18n.js +114 -0
- package/dist/features/upload/server/i18n.js.map +1 -0
- package/dist/features/upload/server/index.d.ts +33 -0
- package/dist/features/upload/server/index.d.ts.map +1 -0
- package/dist/features/upload/server/index.js +227 -0
- package/dist/features/upload/server/index.js.map +1 -0
- package/dist/features/upload/server/nodes/UploadNode.d.ts +83 -0
- package/dist/features/upload/server/nodes/UploadNode.d.ts.map +1 -0
- package/dist/features/upload/server/nodes/UploadNode.js +112 -0
- package/dist/features/upload/server/nodes/UploadNode.js.map +1 -0
- package/dist/features/upload/server/nodes/conversions.d.ts +6 -0
- package/dist/features/upload/server/nodes/conversions.d.ts.map +1 -0
- package/dist/features/upload/server/nodes/conversions.js +53 -0
- package/dist/features/upload/server/nodes/conversions.js.map +1 -0
- package/dist/features/upload/server/validate.d.ts +5 -0
- package/dist/features/upload/server/validate.d.ts.map +1 -0
- package/dist/features/upload/server/validate.js +68 -0
- package/dist/features/upload/server/validate.js.map +1 -0
- package/dist/field/Diff/converters/link.d.ts +9 -0
- package/dist/field/Diff/converters/link.d.ts.map +1 -0
- package/dist/field/Diff/converters/link.js +47 -0
- package/dist/field/Diff/converters/link.js.map +1 -0
- package/dist/field/Diff/converters/listitem/index.d.ts +5 -0
- package/dist/field/Diff/converters/listitem/index.d.ts.map +1 -0
- package/dist/field/Diff/converters/listitem/index.js +65 -0
- package/dist/field/Diff/converters/listitem/index.js.map +1 -0
- package/dist/field/Diff/converters/relationship/index.d.ts +10 -0
- package/dist/field/Diff/converters/relationship/index.d.ts.map +1 -0
- package/dist/field/Diff/converters/relationship/index.js +69 -0
- package/dist/field/Diff/converters/relationship/index.js.map +1 -0
- package/dist/field/Diff/converters/unknown/index.d.ts +10 -0
- package/dist/field/Diff/converters/unknown/index.d.ts.map +1 -0
- package/dist/field/Diff/converters/unknown/index.js +45 -0
- package/dist/field/Diff/converters/unknown/index.js.map +1 -0
- package/dist/field/Diff/converters/upload/index.d.ts +10 -0
- package/dist/field/Diff/converters/upload/index.d.ts.map +1 -0
- package/dist/field/Diff/converters/upload/index.js +74 -0
- package/dist/field/Diff/converters/upload/index.js.map +1 -0
- package/dist/field/Diff/index.d.ts +5 -0
- package/dist/field/Diff/index.d.ts.map +1 -0
- package/dist/field/Diff/index.js +79 -0
- package/dist/field/Diff/index.js.map +1 -0
- package/dist/field/Field.d.ts +12 -0
- package/dist/field/Field.d.ts.map +1 -0
- package/dist/field/Field.js +182 -0
- package/dist/field/Field.js.map +1 -0
- package/dist/field/RenderLexical/index.d.ts +24 -0
- package/dist/field/RenderLexical/index.d.ts.map +1 -0
- package/dist/field/RenderLexical/index.js +131 -0
- package/dist/field/RenderLexical/index.js.map +1 -0
- package/dist/field/bundled.css +1 -0
- package/dist/field/index.d.ts +4 -0
- package/dist/field/index.d.ts.map +1 -0
- package/dist/field/index.js +110 -0
- package/dist/field/index.js.map +1 -0
- package/dist/field/rscEntry.d.ts +8 -0
- package/dist/field/rscEntry.d.ts.map +1 -0
- package/dist/field/rscEntry.js +97 -0
- package/dist/field/rscEntry.js.map +1 -0
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +225 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +800 -0
- package/dist/index.js.map +1 -0
- package/dist/lexical/EditorPlugin.d.ts +8 -0
- package/dist/lexical/EditorPlugin.d.ts.map +1 -0
- package/dist/lexical/EditorPlugin.js +21 -0
- package/dist/lexical/EditorPlugin.js.map +1 -0
- package/dist/lexical/LexicalEditor.d.ts +8 -0
- package/dist/lexical/LexicalEditor.d.ts.map +1 -0
- package/dist/lexical/LexicalEditor.js +198 -0
- package/dist/lexical/LexicalEditor.js.map +1 -0
- package/dist/lexical/LexicalProvider.d.ts +15 -0
- package/dist/lexical/LexicalProvider.d.ts.map +1 -0
- package/dist/lexical/LexicalProvider.js +99 -0
- package/dist/lexical/LexicalProvider.js.map +1 -0
- package/dist/lexical/config/client/EditorConfigProvider.d.ts +32 -0
- package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
- package/dist/lexical/config/client/EditorConfigProvider.js +94 -0
- package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -0
- package/dist/lexical/config/client/default.d.ts +3 -0
- package/dist/lexical/config/client/default.d.ts.map +1 -0
- package/dist/lexical/config/client/default.js +8 -0
- package/dist/lexical/config/client/default.js.map +1 -0
- package/dist/lexical/config/client/loader.d.ts +17 -0
- package/dist/lexical/config/client/loader.d.ts.map +1 -0
- package/dist/lexical/config/client/loader.js +45 -0
- package/dist/lexical/config/client/loader.js.map +1 -0
- package/dist/lexical/config/client/sanitize.d.ts +7 -0
- package/dist/lexical/config/client/sanitize.d.ts.map +1 -0
- package/dist/lexical/config/client/sanitize.js +206 -0
- package/dist/lexical/config/client/sanitize.js.map +1 -0
- package/dist/lexical/config/server/default.d.ts +7 -0
- package/dist/lexical/config/server/default.d.ts.map +1 -0
- package/dist/lexical/config/server/default.js +31 -0
- package/dist/lexical/config/server/default.js.map +1 -0
- package/dist/lexical/config/server/loader.d.ts +11 -0
- package/dist/lexical/config/server/loader.d.ts.map +1 -0
- package/dist/lexical/config/server/loader.js +123 -0
- package/dist/lexical/config/server/loader.js.map +1 -0
- package/dist/lexical/config/server/sanitize.d.ts +6 -0
- package/dist/lexical/config/server/sanitize.d.ts.map +1 -0
- package/dist/lexical/config/server/sanitize.js +127 -0
- package/dist/lexical/config/server/sanitize.js.map +1 -0
- package/dist/lexical/config/types.d.ts +24 -0
- package/dist/lexical/config/types.d.ts.map +1 -0
- package/dist/lexical/config/types.js +2 -0
- package/dist/lexical/config/types.js.map +1 -0
- package/dist/lexical/nodes/index.d.ts +10 -0
- package/dist/lexical/nodes/index.d.ts.map +1 -0
- package/dist/lexical/nodes/index.js +18 -0
- package/dist/lexical/nodes/index.js.map +1 -0
- package/dist/lexical/plugins/ClipboardPlugin/index.d.ts +2 -0
- package/dist/lexical/plugins/ClipboardPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/ClipboardPlugin/index.js +82 -0
- package/dist/lexical/plugins/ClipboardPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/DecoratorPlugin/index.d.ts +15 -0
- package/dist/lexical/plugins/DecoratorPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/DecoratorPlugin/index.js +258 -0
- package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts +4 -0
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.d.ts.map +1 -0
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +49 -0
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.d.ts +3 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.js +30 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
- package/dist/lexical/plugins/NormalizeSelection/index.d.ts +9 -0
- package/dist/lexical/plugins/NormalizeSelection/index.d.ts.map +1 -0
- package/dist/lexical/plugins/NormalizeSelection/index.js +30 -0
- package/dist/lexical/plugins/NormalizeSelection/index.js.map +1 -0
- package/dist/lexical/plugins/SelectAllPlugin/index.d.ts +7 -0
- package/dist/lexical/plugins/SelectAllPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/SelectAllPlugin/index.js +26 -0
- package/dist/lexical/plugins/SelectAllPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +31 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +463 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +23 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +180 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +51 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +2 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/index.d.ts +6 -0
- package/dist/lexical/plugins/SlashMenu/index.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/index.js +199 -0
- package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts +23 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +48 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -0
- package/dist/lexical/plugins/TextPlugin/index.d.ts +5 -0
- package/dist/lexical/plugins/TextPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/TextPlugin/index.js +51 -0
- package/dist/lexical/plugins/TextPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +6 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +155 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts +2 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +15 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +2 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +15 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +3 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +31 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +6 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +356 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +9 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +113 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +5 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +28 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts +9 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +28 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts +5 -0
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +18 -0
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts +31 -0
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +153 -0
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts +3 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +7 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts +2 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +6 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts +2 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js +28 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
- package/dist/lexical/theme/EditorTheme.d.ts +3 -0
- package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
- package/dist/lexical/theme/EditorTheme.js +69 -0
- package/dist/lexical/theme/EditorTheme.js.map +1 -0
- package/dist/lexical/ui/ContentEditable.d.ts +8 -0
- package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
- package/dist/lexical/ui/ContentEditable.js +43 -0
- package/dist/lexical/ui/ContentEditable.js.map +1 -0
- package/dist/lexical/ui/icons/AI/index.d.ts +3 -0
- package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AI/index.js +34 -0
- package/dist/lexical/ui/icons/AI/index.js.map +1 -0
- package/dist/lexical/ui/icons/Add/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Add/index.js +19 -0
- package/dist/lexical/ui/icons/Add/index.js.map +1 -0
- package/dist/lexical/ui/icons/Add/index.svg +4 -0
- package/dist/lexical/ui/icons/Add/light.svg +4 -0
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -0
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignCenter/index.js +28 -0
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -0
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignJustify/index.js +28 -0
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -0
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignLeft/index.js +28 -0
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -0
- package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignRight/index.js +28 -0
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
- package/dist/lexical/ui/icons/Block/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Block/index.js +37 -0
- package/dist/lexical/ui/icons/Block/index.js.map +1 -0
- package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Blockquote/index.js +19 -0
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
- package/dist/lexical/ui/icons/Bold/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Bold/index.js +19 -0
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
- package/dist/lexical/ui/icons/Caret/index.svg +3 -0
- package/dist/lexical/ui/icons/Checklist/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Checklist/index.js +27 -0
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
- package/dist/lexical/ui/icons/Code/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Code/index.js +22 -0
- package/dist/lexical/ui/icons/Code/index.js.map +1 -0
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts +3 -0
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/CodeBlock/index.js +17 -0
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
- package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Collapse/index.js +18 -0
- package/dist/lexical/ui/icons/Collapse/index.js.map +1 -0
- package/dist/lexical/ui/icons/DraggableBlock/index.svg +9 -0
- package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
- package/dist/lexical/ui/icons/Edit/index.svg +10 -0
- package/dist/lexical/ui/icons/H1/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H1/index.js +19 -0
- package/dist/lexical/ui/icons/H1/index.js.map +1 -0
- package/dist/lexical/ui/icons/H2/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H2/index.js +19 -0
- package/dist/lexical/ui/icons/H2/index.js.map +1 -0
- package/dist/lexical/ui/icons/H3/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H3/index.js +19 -0
- package/dist/lexical/ui/icons/H3/index.js.map +1 -0
- package/dist/lexical/ui/icons/H4/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H4/index.js +19 -0
- package/dist/lexical/ui/icons/H4/index.js.map +1 -0
- package/dist/lexical/ui/icons/H5/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H5/index.js +19 -0
- package/dist/lexical/ui/icons/H5/index.js.map +1 -0
- package/dist/lexical/ui/icons/H6/index.d.ts +3 -0
- package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H6/index.js +19 -0
- package/dist/lexical/ui/icons/H6/index.js.map +1 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.js +22 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -0
- package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -0
- package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/InlineBlocks/index.js +21 -0
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
- package/dist/lexical/ui/icons/Italic/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Italic/index.js +19 -0
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
- package/dist/lexical/ui/icons/Link/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Link/index.js +20 -0
- package/dist/lexical/ui/icons/Link/index.js.map +1 -0
- package/dist/lexical/ui/icons/Meatballs/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Meatballs/index.js +22 -0
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
- package/dist/lexical/ui/icons/OrderedList/index.d.ts +3 -0
- package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/OrderedList/index.js +34 -0
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
- package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Relationship/index.js +34 -0
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
- package/dist/lexical/ui/icons/Remove/index.svg +4 -0
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Strikethrough/index.js +22 -0
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
- package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Subscript/index.js +19 -0
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
- package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Superscript/index.js +19 -0
- package/dist/lexical/ui/icons/Superscript/index.js.map +1 -0
- package/dist/lexical/ui/icons/Table/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Table/index.js +21 -0
- package/dist/lexical/ui/icons/Table/index.js.map +1 -0
- package/dist/lexical/ui/icons/Text/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Text/index.js +19 -0
- package/dist/lexical/ui/icons/Text/index.js.map +1 -0
- package/dist/lexical/ui/icons/TextState/index.d.ts +5 -0
- package/dist/lexical/ui/icons/TextState/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/TextState/index.js +23 -0
- package/dist/lexical/ui/icons/TextState/index.js.map +1 -0
- package/dist/lexical/ui/icons/Underline/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Underline/index.js +22 -0
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -0
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/UnorderedList/index.js +49 -0
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
- package/dist/lexical/ui/icons/Upload/index.d.ts +3 -0
- package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Upload/index.js +31 -0
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
- package/dist/lexical/utils/canUseDOM.d.ts +2 -0
- package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
- package/dist/lexical/utils/canUseDOM.js +4 -0
- package/dist/lexical/utils/canUseDOM.js.map +1 -0
- package/dist/lexical/utils/environment.d.ts +18 -0
- package/dist/lexical/utils/environment.d.ts.map +1 -0
- package/dist/lexical/utils/environment.js +15 -0
- package/dist/lexical/utils/environment.js.map +1 -0
- package/dist/lexical/utils/getDOMRangeRect.d.ts +2 -0
- package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
- package/dist/lexical/utils/getDOMRangeRect.js +17 -0
- package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
- package/dist/lexical/utils/getSelectedNode.d.ts +3 -0
- package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
- package/dist/lexical/utils/getSelectedNode.js +22 -0
- package/dist/lexical/utils/getSelectedNode.js.map +1 -0
- package/dist/lexical/utils/guard.d.ts +5 -0
- package/dist/lexical/utils/guard.d.ts.map +1 -0
- package/dist/lexical/utils/guard.js +9 -0
- package/dist/lexical/utils/guard.js.map +1 -0
- package/dist/lexical/utils/joinClasses.d.ts +2 -0
- package/dist/lexical/utils/joinClasses.d.ts.map +1 -0
- package/dist/lexical/utils/joinClasses.js +6 -0
- package/dist/lexical/utils/joinClasses.js.map +1 -0
- package/dist/lexical/utils/markdown/createBlockNode.d.ts +4 -0
- package/dist/lexical/utils/markdown/createBlockNode.d.ts.map +1 -0
- package/dist/lexical/utils/markdown/createBlockNode.js +11 -0
- package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -0
- package/dist/lexical/utils/nodeFormat.d.ts +41 -0
- package/dist/lexical/utils/nodeFormat.d.ts.map +1 -0
- package/dist/lexical/utils/nodeFormat.js +87 -0
- package/dist/lexical/utils/nodeFormat.js.map +1 -0
- package/dist/lexical/utils/point.d.ts +15 -0
- package/dist/lexical/utils/point.d.ts.map +1 -0
- package/dist/lexical/utils/point.js +45 -0
- package/dist/lexical/utils/point.js.map +1 -0
- package/dist/lexical/utils/rect.d.ts +47 -0
- package/dist/lexical/utils/rect.d.ts.map +1 -0
- package/dist/lexical/utils/rect.js +171 -0
- package/dist/lexical/utils/rect.js.map +1 -0
- package/dist/lexical/utils/setFloatingElemPosition.d.ts +12 -0
- package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -0
- package/dist/lexical/utils/setFloatingElemPosition.js +67 -0
- package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts +2 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +28 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
- package/dist/lexical/utils/swipe.d.ts +5 -0
- package/dist/lexical/utils/swipe.d.ts.map +1 -0
- package/dist/lexical/utils/swipe.js +99 -0
- package/dist/lexical/utils/swipe.js.map +1 -0
- package/dist/lexical/utils/url.d.ts +30 -0
- package/dist/lexical/utils/url.d.ts.map +1 -0
- package/dist/lexical/utils/url.js +84 -0
- package/dist/lexical/utils/url.js.map +1 -0
- package/dist/lexical/utils/url.spec.js +114 -0
- package/dist/lexical/utils/url.spec.js.map +1 -0
- package/dist/lexical-proxy/@lexical-headless.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-headless.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-headless.js +2 -0
- package/dist/lexical-proxy/@lexical-headless.js.map +1 -0
- package/dist/lexical-proxy/@lexical-html.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-html.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-html.js +2 -0
- package/dist/lexical-proxy/@lexical-html.js.map +1 -0
- package/dist/lexical-proxy/@lexical-link.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-link.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-link.js +2 -0
- package/dist/lexical-proxy/@lexical-link.js.map +1 -0
- package/dist/lexical-proxy/@lexical-list.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-list.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-list.js +2 -0
- package/dist/lexical-proxy/@lexical-list.js.map +1 -0
- package/dist/lexical-proxy/@lexical-mark.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-mark.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-mark.js +2 -0
- package/dist/lexical-proxy/@lexical-mark.js.map +1 -0
- package/dist/lexical-proxy/@lexical-markdown.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-markdown.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-markdown.js +2 -0
- package/dist/lexical-proxy/@lexical-markdown.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoEmbedPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoFocusPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalAutoLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalBlockWithAlignableContents.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCharacterLimitPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCheckListPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClearEditorPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalClickableLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationContext.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalCollaborationPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposer.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposer.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposer.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalComposerContext.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContentEditable.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalContextMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDecoratorBlockNode.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalDraggableBlockPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalEditorRefPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalErrorBoundary.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHashtagPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHistoryPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRuleNode.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalHorizontalRulePlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalLinkPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalListPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalMarkdownShortcutPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNestedComposer.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeContextMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeEventPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalNodeMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalOnChangePlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalPlainTextPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalRichTextPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTabIndentationPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTableOfContentsPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTablePlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTreeView.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTreeView.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTreeView.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTreeView.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.js +2 -0
- package/dist/lexical-proxy/@lexical-react/LexicalTypeaheadMenuPlugin.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalEditable.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalEditable.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalEditable.js +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalEditable.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.js +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalIsTextContentEmpty.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.js +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalNodeSelection.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.js +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalSubscription.js.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.js +2 -0
- package/dist/lexical-proxy/@lexical-react/useLexicalTextEntity.js.map +1 -0
- package/dist/lexical-proxy/@lexical-rich-text.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-rich-text.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-rich-text.js +2 -0
- package/dist/lexical-proxy/@lexical-rich-text.js.map +1 -0
- package/dist/lexical-proxy/@lexical-selection.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-selection.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-selection.js +2 -0
- package/dist/lexical-proxy/@lexical-selection.js.map +1 -0
- package/dist/lexical-proxy/@lexical-utils.d.ts +2 -0
- package/dist/lexical-proxy/@lexical-utils.d.ts.map +1 -0
- package/dist/lexical-proxy/@lexical-utils.js +2 -0
- package/dist/lexical-proxy/@lexical-utils.js.map +1 -0
- package/dist/lexical-proxy/lexical.d.ts +2 -0
- package/dist/lexical-proxy/lexical.d.ts.map +1 -0
- package/dist/lexical-proxy/lexical.js +2 -0
- package/dist/lexical-proxy/lexical.js.map +1 -0
- package/dist/nodeTypes.d.ts +74 -0
- package/dist/nodeTypes.d.ts.map +1 -0
- package/dist/nodeTypes.js +5 -0
- package/dist/nodeTypes.js.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownExport.d.ts +14 -0
- package/dist/packages/@lexical/markdown/MarkdownExport.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownExport.js +213 -0
- package/dist/packages/@lexical/markdown/MarkdownExport.js.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownImport.d.ts +19 -0
- package/dist/packages/@lexical/markdown/MarkdownImport.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownImport.js +199 -0
- package/dist/packages/@lexical/markdown/MarkdownImport.js.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts +11 -0
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +304 -0
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts +147 -0
- package/dist/packages/@lexical/markdown/MarkdownTransformers.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/MarkdownTransformers.js +268 -0
- package/dist/packages/@lexical/markdown/MarkdownTransformers.js.map +1 -0
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts +22 -0
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +91 -0
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +1 -0
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts +21 -0
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +54 -0
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +1 -0
- package/dist/packages/@lexical/markdown/importTextTransformers.d.ts +18 -0
- package/dist/packages/@lexical/markdown/importTextTransformers.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/importTextTransformers.js +54 -0
- package/dist/packages/@lexical/markdown/importTextTransformers.js.map +1 -0
- package/dist/packages/@lexical/markdown/index.d.ts +29 -0
- package/dist/packages/@lexical/markdown/index.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/index.js +39 -0
- package/dist/packages/@lexical/markdown/index.js.map +1 -0
- package/dist/packages/@lexical/markdown/utils.d.ts +34 -0
- package/dist/packages/@lexical/markdown/utils.d.ts.map +1 -0
- package/dist/packages/@lexical/markdown/utils.js +267 -0
- package/dist/packages/@lexical/markdown/utils.js.map +1 -0
- package/dist/populateGraphQL/defaultValue.d.ts +3 -0
- package/dist/populateGraphQL/defaultValue.d.ts.map +1 -0
- package/dist/populateGraphQL/defaultValue.js +28 -0
- package/dist/populateGraphQL/defaultValue.js.map +1 -0
- package/dist/populateGraphQL/populate.d.ts +18 -0
- package/dist/populateGraphQL/populate.d.ts.map +1 -0
- package/dist/populateGraphQL/populate.js +40 -0
- package/dist/populateGraphQL/populate.js.map +1 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +13 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js +55 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +29 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +45 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
- package/dist/types.d.ts +109 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utilities/applyBaseFilterToFields.d.ts +10 -0
- package/dist/utilities/applyBaseFilterToFields.d.ts.map +1 -0
- package/dist/utilities/applyBaseFilterToFields.js +97 -0
- package/dist/utilities/applyBaseFilterToFields.js.map +1 -0
- package/dist/utilities/buildEditorState.d.ts +52 -0
- package/dist/utilities/buildEditorState.d.ts.map +1 -0
- package/dist/utilities/buildEditorState.js +85 -0
- package/dist/utilities/buildEditorState.js.map +1 -0
- package/dist/utilities/buildInitialState.d.ts +30 -0
- package/dist/utilities/buildInitialState.d.ts.map +1 -0
- package/dist/utilities/buildInitialState.js +57 -0
- package/dist/utilities/buildInitialState.js.map +1 -0
- package/dist/utilities/createClientFeature.d.ts +18 -0
- package/dist/utilities/createClientFeature.d.ts.map +1 -0
- package/dist/utilities/createClientFeature.js +51 -0
- package/dist/utilities/createClientFeature.js.map +1 -0
- package/dist/utilities/createServerFeature.d.ts +17 -0
- package/dist/utilities/createServerFeature.d.ts.map +1 -0
- package/dist/utilities/createServerFeature.js +51 -0
- package/dist/utilities/createServerFeature.js.map +1 -0
- package/dist/utilities/editorConfigFactory.d.ts +57 -0
- package/dist/utilities/editorConfigFactory.d.ts.map +1 -0
- package/dist/utilities/editorConfigFactory.js +89 -0
- package/dist/utilities/editorConfigFactory.js.map +1 -0
- package/dist/utilities/fieldsDrawer/Drawer.d.ts +21 -0
- package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/Drawer.js +80 -0
- package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -0
- package/dist/utilities/fieldsDrawer/DrawerContent.d.ts +4 -0
- package/dist/utilities/fieldsDrawer/DrawerContent.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/DrawerContent.js +138 -0
- package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts +13 -0
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +129 -0
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts +10 -0
- package/dist/utilities/fieldsDrawer/useLexicalDrawer.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalDrawer.js +136 -0
- package/dist/utilities/fieldsDrawer/useLexicalDrawer.js.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts +16 -0
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +154 -0
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -0
- package/dist/utilities/forEachNodeRecursively.d.ts +10 -0
- package/dist/utilities/forEachNodeRecursively.d.ts.map +1 -0
- package/dist/utilities/forEachNodeRecursively.js +29 -0
- package/dist/utilities/forEachNodeRecursively.js.map +1 -0
- package/dist/utilities/generateImportMap.d.ts +8 -0
- package/dist/utilities/generateImportMap.d.ts.map +1 -0
- package/dist/utilities/generateImportMap.js +52 -0
- package/dist/utilities/generateImportMap.js.map +1 -0
- package/dist/utilities/generateSchemaMap.d.ts +6 -0
- package/dist/utilities/generateSchemaMap.d.ts.map +1 -0
- package/dist/utilities/generateSchemaMap.js +40 -0
- package/dist/utilities/generateSchemaMap.js.map +1 -0
- package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts +7 -0
- package/dist/utilities/getDefaultSanitizedEditorConfig.d.ts.map +1 -0
- package/dist/utilities/getDefaultSanitizedEditorConfig.js +21 -0
- package/dist/utilities/getDefaultSanitizedEditorConfig.js.map +1 -0
- package/dist/utilities/initLexicalFeatures.d.ts +20 -0
- package/dist/utilities/initLexicalFeatures.d.ts.map +1 -0
- package/dist/utilities/initLexicalFeatures.js +72 -0
- package/dist/utilities/initLexicalFeatures.js.map +1 -0
- package/dist/utilities/jsx/collectTopLevelJSXInLines.d.ts +52 -0
- package/dist/utilities/jsx/collectTopLevelJSXInLines.d.ts.map +1 -0
- package/dist/utilities/jsx/collectTopLevelJSXInLines.js +80 -0
- package/dist/utilities/jsx/collectTopLevelJSXInLines.js.map +1 -0
- package/dist/utilities/jsx/declare.d.js +2 -0
- package/dist/utilities/jsx/declare.d.js.map +1 -0
- package/dist/utilities/jsx/extractPropsFromJSXPropsString.d.ts +12 -0
- package/dist/utilities/jsx/extractPropsFromJSXPropsString.d.ts.map +1 -0
- package/dist/utilities/jsx/extractPropsFromJSXPropsString.js +129 -0
- package/dist/utilities/jsx/extractPropsFromJSXPropsString.js.map +1 -0
- package/dist/utilities/jsx/jsx.d.ts +26 -0
- package/dist/utilities/jsx/jsx.d.ts.map +1 -0
- package/dist/utilities/jsx/jsx.js +106 -0
- package/dist/utilities/jsx/jsx.js.map +1 -0
- package/dist/utilities/jsx/jsx.spec.js +178 -0
- package/dist/utilities/jsx/jsx.spec.js.map +1 -0
- package/dist/utilities/migrateSlateToLexical/index.d.ts +15 -0
- package/dist/utilities/migrateSlateToLexical/index.d.ts.map +1 -0
- package/dist/utilities/migrateSlateToLexical/index.js +153 -0
- package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +10 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +85 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -0
- package/dist/utilities/recurseNodeTree.d.ts +9 -0
- package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
- package/dist/utilities/recurseNodeTree.js +30 -0
- package/dist/utilities/recurseNodeTree.js.map +1 -0
- package/dist/utilities/upgradeLexicalData/index.d.ts +11 -0
- package/dist/utilities/upgradeLexicalData/index.d.ts.map +1 -0
- package/dist/utilities/upgradeLexicalData/index.js +118 -0
- package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +10 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +88 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -0
- package/dist/utilities/useLexicalFeature.d.ts +3 -0
- package/dist/utilities/useLexicalFeature.d.ts.map +1 -0
- package/dist/utilities/useLexicalFeature.js +21 -0
- package/dist/utilities/useLexicalFeature.js.map +1 -0
- package/dist/utilities/useRunDeprioritized.d.ts +26 -0
- package/dist/utilities/useRunDeprioritized.d.ts.map +1 -0
- package/dist/utilities/useRunDeprioritized.js +68 -0
- package/dist/utilities/useRunDeprioritized.js.map +1 -0
- package/dist/validate/hasText.d.ts +3 -0
- package/dist/validate/hasText.d.ts.map +1 -0
- package/dist/validate/hasText.js +25 -0
- package/dist/validate/hasText.js.map +1 -0
- package/dist/validate/index.d.ts +7 -0
- package/dist/validate/index.d.ts.map +1 -0
- package/dist/validate/index.js +33 -0
- package/dist/validate/index.js.map +1 -0
- package/dist/validate/validateNodes.d.ts +12 -0
- package/dist/validate/validateNodes.d.ts.map +1 -0
- package/dist/validate/validateNodes.js +35 -0
- package/dist/validate/validateNodes.js.map +1 -0
- package/package.json +747 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { linesFromStartToContentAndPropsString } from '../../features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js';
|
|
2
|
+
import { createTagRegexes } from '../../features/blocks/server/markdown/markdownTransformer.js';
|
|
3
|
+
/**
|
|
4
|
+
* Helpful utility for parsing out all matching top-level JSX tags in a given string.
|
|
5
|
+
* This will collect them in a list, that contains the content of the JSX tag and the props string.
|
|
6
|
+
*
|
|
7
|
+
* While this is not used within payload, this can be used for certain payload blocks that need to
|
|
8
|
+
* be serializable and deserializable to and from JSX.
|
|
9
|
+
*
|
|
10
|
+
* @example:
|
|
11
|
+
*
|
|
12
|
+
* Say you have Steps block that contains a steps array. Its JSX representation may look like this:
|
|
13
|
+
*
|
|
14
|
+
* <Steps>
|
|
15
|
+
* <Step title="Step1">
|
|
16
|
+
* <h1>Step 1</h1>
|
|
17
|
+
* </Step>
|
|
18
|
+
* <Step title="Step2">
|
|
19
|
+
* <h1>Step 2</h1>
|
|
20
|
+
* </Step>
|
|
21
|
+
* </Steps>
|
|
22
|
+
*
|
|
23
|
+
* In this case, the Steps block would have the following content as its children string:
|
|
24
|
+
* <Step title="Step1">
|
|
25
|
+
* <h1>Step 1</h1>
|
|
26
|
+
* </Step>
|
|
27
|
+
* <Step title="Step2">
|
|
28
|
+
* <h1>Step 2</h1>
|
|
29
|
+
* </Step>
|
|
30
|
+
*
|
|
31
|
+
* It could then use this function to collect all the top-level JSX tags (= the steps):
|
|
32
|
+
*
|
|
33
|
+
* collectTopLevelJSXInLines(children.split('\n'), 'Step')
|
|
34
|
+
*
|
|
35
|
+
* This will return:
|
|
36
|
+
*
|
|
37
|
+
* [
|
|
38
|
+
* {
|
|
39
|
+
* content: '<h1>Step 1</h1>',
|
|
40
|
+
* propsString: 'title="Step1"',
|
|
41
|
+
* },
|
|
42
|
+
* {
|
|
43
|
+
* content: '<h1>Step 2</h1>',
|
|
44
|
+
* propsString: 'title="Step2"',
|
|
45
|
+
* },
|
|
46
|
+
* ]
|
|
47
|
+
*
|
|
48
|
+
* You can then map this data to construct the data for this blocks array field.
|
|
49
|
+
*/
|
|
50
|
+
export function collectTopLevelJSXInLines(lines, jsxToMatch) {
|
|
51
|
+
const finds = [];
|
|
52
|
+
const regex = createTagRegexes(jsxToMatch);
|
|
53
|
+
const linesLength = lines.length;
|
|
54
|
+
for (let i = 0; i < linesLength; i++) {
|
|
55
|
+
const line = lines[i];
|
|
56
|
+
const startMatch = line.match(regex.regExpStart);
|
|
57
|
+
if (!startMatch) {
|
|
58
|
+
continue; // Try next transformer
|
|
59
|
+
}
|
|
60
|
+
const {
|
|
61
|
+
content,
|
|
62
|
+
endLineIndex,
|
|
63
|
+
propsString
|
|
64
|
+
} = linesFromStartToContentAndPropsString({
|
|
65
|
+
isEndOptional: false,
|
|
66
|
+
lines,
|
|
67
|
+
regexpEndRegex: regex.regExpEnd,
|
|
68
|
+
startLineIndex: i,
|
|
69
|
+
startMatch
|
|
70
|
+
});
|
|
71
|
+
finds.push({
|
|
72
|
+
content,
|
|
73
|
+
propsString
|
|
74
|
+
});
|
|
75
|
+
i = endLineIndex;
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
return finds;
|
|
79
|
+
}
|
|
80
|
+
//# sourceMappingURL=collectTopLevelJSXInLines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collectTopLevelJSXInLines.js","names":["linesFromStartToContentAndPropsString","createTagRegexes","collectTopLevelJSXInLines","lines","jsxToMatch","finds","regex","linesLength","length","i","line","startMatch","match","regExpStart","content","endLineIndex","propsString","isEndOptional","regexpEndRegex","regExpEnd","startLineIndex","push"],"sources":["../../../src/utilities/jsx/collectTopLevelJSXInLines.ts"],"sourcesContent":["import { linesFromStartToContentAndPropsString } from '../../features/blocks/server/markdown/linesFromMatchToContentAndPropsString.js'\nimport { createTagRegexes } from '../../features/blocks/server/markdown/markdownTransformer.js'\n\n/**\n * Helpful utility for parsing out all matching top-level JSX tags in a given string.\n * This will collect them in a list, that contains the content of the JSX tag and the props string.\n *\n * While this is not used within payload, this can be used for certain payload blocks that need to\n * be serializable and deserializable to and from JSX.\n *\n * @example:\n *\n * Say you have Steps block that contains a steps array. Its JSX representation may look like this:\n *\n * <Steps>\n * <Step title=\"Step1\">\n * <h1>Step 1</h1>\n * </Step>\n * <Step title=\"Step2\">\n * <h1>Step 2</h1>\n * </Step>\n * </Steps>\n *\n * In this case, the Steps block would have the following content as its children string:\n * <Step title=\"Step1\">\n * <h1>Step 1</h1>\n * </Step>\n * <Step title=\"Step2\">\n * <h1>Step 2</h1>\n * </Step>\n *\n * It could then use this function to collect all the top-level JSX tags (= the steps):\n *\n * collectTopLevelJSXInLines(children.split('\\n'), 'Step')\n *\n * This will return:\n *\n * [\n * {\n * content: '<h1>Step 1</h1>',\n * propsString: 'title=\"Step1\"',\n * },\n * {\n * content: '<h1>Step 2</h1>',\n * propsString: 'title=\"Step2\"',\n * },\n * ]\n *\n * You can then map this data to construct the data for this blocks array field.\n */\nexport function collectTopLevelJSXInLines(\n lines: Array<string>,\n jsxToMatch: string,\n): {\n content: string\n propsString: string\n}[] {\n const finds: {\n content: string\n propsString: string\n }[] = []\n const regex = createTagRegexes(jsxToMatch)\n\n const linesLength = lines.length\n\n for (let i = 0; i < linesLength; i++) {\n const line = lines[i]!\n const startMatch = line.match(regex.regExpStart)\n if (!startMatch) {\n continue // Try next transformer\n }\n\n const { content, endLineIndex, propsString } = linesFromStartToContentAndPropsString({\n isEndOptional: false,\n lines,\n regexpEndRegex: regex.regExpEnd,\n startLineIndex: i,\n startMatch,\n })\n\n finds.push({\n content,\n propsString,\n })\n\n i = endLineIndex\n continue\n }\n\n return finds\n}\n"],"mappings":"AAAA,SAASA,qCAAqC,QAAQ;AACtD,SAASC,gBAAgB,QAAQ;AAEjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+CA,OAAO,SAASC,0BACdC,KAAoB,EACpBC,UAAkB;EAKlB,MAAMC,KAAA,GAGA,EAAE;EACR,MAAMC,KAAA,GAAQL,gBAAA,CAAiBG,UAAA;EAE/B,MAAMG,WAAA,GAAcJ,KAAA,CAAMK,MAAM;EAEhC,KAAK,IAAIC,CAAA,GAAI,GAAGA,CAAA,GAAIF,WAAA,EAAaE,CAAA,IAAK;IACpC,MAAMC,IAAA,GAAOP,KAAK,CAACM,CAAA,CAAE;IACrB,MAAME,UAAA,GAAaD,IAAA,CAAKE,KAAK,CAACN,KAAA,CAAMO,WAAW;IAC/C,IAAI,CAACF,UAAA,EAAY;MACf,UAAS;IACX;IAEA,MAAM;MAAEG,OAAO;MAAEC,YAAY;MAAEC;IAAW,CAAE,GAAGhB,qCAAA,CAAsC;MACnFiB,aAAA,EAAe;MACfd,KAAA;MACAe,cAAA,EAAgBZ,KAAA,CAAMa,SAAS;MAC/BC,cAAA,EAAgBX,CAAA;MAChBE;IACF;IAEAN,KAAA,CAAMgB,IAAI,CAAC;MACTP,OAAA;MACAE;IACF;IAEAP,CAAA,GAAIM,YAAA;IACJ;EACF;EAEA,OAAOV,KAAA;AACT","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"declare.d.js","names":[],"sources":["../../../src/utilities/jsx/declare.d.ts"],"sourcesContent":[null],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turns a JSX props string into an object.
|
|
3
|
+
*
|
|
4
|
+
* @example
|
|
5
|
+
*
|
|
6
|
+
* Input: type="info" hello={{heyyy: 'test', someNumber: 2}}
|
|
7
|
+
* Output: { type: 'info', hello: { heyyy: 'test', someNumber: 2 } }
|
|
8
|
+
*/
|
|
9
|
+
export declare function extractPropsFromJSXPropsString({ propsString, }: {
|
|
10
|
+
propsString: string;
|
|
11
|
+
}): Record<string, any>;
|
|
12
|
+
//# sourceMappingURL=extractPropsFromJSXPropsString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractPropsFromJSXPropsString.d.ts","sourceRoot":"","sources":["../../../src/utilities/jsx/extractPropsFromJSXPropsString.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,8BAA8B,CAAC,EAC7C,WAAW,GACZ,EAAE;IACD,WAAW,EAAE,MAAM,CAAA;CACpB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAmCtB"}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { JSOX } from 'jsox';
|
|
2
|
+
/**
|
|
3
|
+
* Turns a JSX props string into an object.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
*
|
|
7
|
+
* Input: type="info" hello={{heyyy: 'test', someNumber: 2}}
|
|
8
|
+
* Output: { type: 'info', hello: { heyyy: 'test', someNumber: 2 } }
|
|
9
|
+
*/
|
|
10
|
+
export function extractPropsFromJSXPropsString({
|
|
11
|
+
propsString
|
|
12
|
+
}) {
|
|
13
|
+
const props = {};
|
|
14
|
+
let key = '';
|
|
15
|
+
let collectingKey = true;
|
|
16
|
+
for (let i = 0; i < propsString.length; i++) {
|
|
17
|
+
const char = propsString[i];
|
|
18
|
+
if (collectingKey) {
|
|
19
|
+
if (char === '=' || char === ' ') {
|
|
20
|
+
if (key) {
|
|
21
|
+
if (char === ' ') {
|
|
22
|
+
props[key] = true;
|
|
23
|
+
key = '';
|
|
24
|
+
} else {
|
|
25
|
+
collectingKey = false;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
} else {
|
|
29
|
+
key += char;
|
|
30
|
+
}
|
|
31
|
+
} else {
|
|
32
|
+
const result = handleValue(propsString, i);
|
|
33
|
+
props[key] = result.value;
|
|
34
|
+
i = result.newIndex;
|
|
35
|
+
key = '';
|
|
36
|
+
collectingKey = true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if (key) {
|
|
40
|
+
props[key] = true;
|
|
41
|
+
}
|
|
42
|
+
return props;
|
|
43
|
+
}
|
|
44
|
+
function handleValue(propsString, startIndex) {
|
|
45
|
+
const char = propsString[startIndex];
|
|
46
|
+
if (char === '"') {
|
|
47
|
+
return handleQuotedString(propsString, startIndex);
|
|
48
|
+
} else if (char === "'") {
|
|
49
|
+
return handleQuotedString(propsString, startIndex, true);
|
|
50
|
+
} else if (char === '{') {
|
|
51
|
+
return handleObject(propsString, startIndex);
|
|
52
|
+
} else if (char === '[') {
|
|
53
|
+
return handleArray(propsString, startIndex);
|
|
54
|
+
} else {
|
|
55
|
+
return handleUnquotedString(propsString, startIndex);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function handleArray(propsString, startIndex) {
|
|
59
|
+
let bracketCount = 1;
|
|
60
|
+
let value = '';
|
|
61
|
+
let i = startIndex + 1;
|
|
62
|
+
while (i < propsString.length && bracketCount > 0) {
|
|
63
|
+
if (propsString[i] === '[') {
|
|
64
|
+
bracketCount++;
|
|
65
|
+
} else if (propsString[i] === ']') {
|
|
66
|
+
bracketCount--;
|
|
67
|
+
}
|
|
68
|
+
if (bracketCount > 0) {
|
|
69
|
+
value += propsString[i];
|
|
70
|
+
}
|
|
71
|
+
i++;
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
newIndex: i,
|
|
75
|
+
value: JSOX.parse(`[${value}]`)
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
function handleQuotedString(propsString, startIndex, isSingleQuoted = false) {
|
|
79
|
+
let value = '';
|
|
80
|
+
let i = startIndex + 1;
|
|
81
|
+
while (i < propsString.length && (propsString[i] !== (isSingleQuoted ? "'" : '"') || propsString[i - 1] === '\\')) {
|
|
82
|
+
value += propsString[i];
|
|
83
|
+
i++;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
newIndex: i,
|
|
87
|
+
value
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
function handleObject(propsString, startIndex) {
|
|
91
|
+
let bracketCount = 1;
|
|
92
|
+
let value = '';
|
|
93
|
+
let i = startIndex + 1;
|
|
94
|
+
while (i < propsString.length && bracketCount > 0) {
|
|
95
|
+
if (propsString[i] === '{') {
|
|
96
|
+
bracketCount++;
|
|
97
|
+
} else if (propsString[i] === '}') {
|
|
98
|
+
bracketCount--;
|
|
99
|
+
}
|
|
100
|
+
if (bracketCount > 0) {
|
|
101
|
+
value += propsString[i];
|
|
102
|
+
}
|
|
103
|
+
i++;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
newIndex: i,
|
|
107
|
+
value: parseObject(value)
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function parseObject(objString) {
|
|
111
|
+
if (objString[0] !== '{') {
|
|
112
|
+
return JSOX.parse(objString);
|
|
113
|
+
}
|
|
114
|
+
const result = JSOX.parse(objString.replace(/(\w+):/g, '"$1":'));
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
function handleUnquotedString(propsString, startIndex) {
|
|
118
|
+
let value = '';
|
|
119
|
+
let i = startIndex;
|
|
120
|
+
while (i < propsString.length && propsString[i] !== ' ') {
|
|
121
|
+
value += propsString[i];
|
|
122
|
+
i++;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
newIndex: i - 1,
|
|
126
|
+
value
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
//# sourceMappingURL=extractPropsFromJSXPropsString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extractPropsFromJSXPropsString.js","names":["JSOX","extractPropsFromJSXPropsString","propsString","props","key","collectingKey","i","length","char","result","handleValue","value","newIndex","startIndex","handleQuotedString","handleObject","handleArray","handleUnquotedString","bracketCount","parse","isSingleQuoted","parseObject","objString","replace"],"sources":["../../../src/utilities/jsx/extractPropsFromJSXPropsString.ts"],"sourcesContent":["import { JSOX } from 'jsox'\n\n/**\n * Turns a JSX props string into an object.\n *\n * @example\n *\n * Input: type=\"info\" hello={{heyyy: 'test', someNumber: 2}}\n * Output: { type: 'info', hello: { heyyy: 'test', someNumber: 2 } }\n */\nexport function extractPropsFromJSXPropsString({\n propsString,\n}: {\n propsString: string\n}): Record<string, any> {\n const props: Record<string, any> = {}\n let key = ''\n let collectingKey = true\n\n for (let i = 0; i < propsString.length; i++) {\n const char = propsString[i]\n\n if (collectingKey) {\n if (char === '=' || char === ' ') {\n if (key) {\n if (char === ' ') {\n props[key] = true\n key = ''\n } else {\n collectingKey = false\n }\n }\n } else {\n key += char\n }\n } else {\n const result = handleValue(propsString, i)\n props[key] = result.value\n i = result.newIndex\n key = ''\n collectingKey = true\n }\n }\n\n if (key) {\n props[key] = true\n }\n\n return props\n}\n\nfunction handleValue(propsString: string, startIndex: number): { newIndex: number; value: any } {\n const char = propsString[startIndex]\n\n if (char === '\"') {\n return handleQuotedString(propsString, startIndex)\n } else if (char === \"'\") {\n return handleQuotedString(propsString, startIndex, true)\n } else if (char === '{') {\n return handleObject(propsString, startIndex)\n } else if (char === '[') {\n return handleArray(propsString, startIndex)\n } else {\n return handleUnquotedString(propsString, startIndex)\n }\n}\n\nfunction handleArray(propsString: string, startIndex: number): { newIndex: number; value: any } {\n let bracketCount = 1\n let value = ''\n let i = startIndex + 1\n\n while (i < propsString.length && bracketCount > 0) {\n if (propsString[i] === '[') {\n bracketCount++\n } else if (propsString[i] === ']') {\n bracketCount--\n }\n if (bracketCount > 0) {\n value += propsString[i]\n }\n i++\n }\n\n return { newIndex: i, value: JSOX.parse(`[${value}]`) }\n}\n\nfunction handleQuotedString(\n propsString: string,\n startIndex: number,\n isSingleQuoted = false,\n): { newIndex: number; value: string } {\n let value = ''\n let i = startIndex + 1\n while (\n i < propsString.length &&\n (propsString[i] !== (isSingleQuoted ? \"'\" : '\"') || propsString[i - 1] === '\\\\')\n ) {\n value += propsString[i]\n i++\n }\n return { newIndex: i, value }\n}\n\nfunction handleObject(propsString: string, startIndex: number): { newIndex: number; value: any } {\n let bracketCount = 1\n let value = ''\n let i = startIndex + 1\n\n while (i < propsString.length && bracketCount > 0) {\n if (propsString[i] === '{') {\n bracketCount++\n } else if (propsString[i] === '}') {\n bracketCount--\n }\n if (bracketCount > 0) {\n value += propsString[i]\n }\n i++\n }\n\n return { newIndex: i, value: parseObject(value) }\n}\n\nfunction parseObject(objString: string): Record<string, any> {\n if (objString[0] !== '{') {\n return JSOX.parse(objString)\n }\n\n const result = JSOX.parse(objString.replace(/(\\w+):/g, '\"$1\":'))\n\n return result\n}\n\nfunction handleUnquotedString(\n propsString: string,\n startIndex: number,\n): { newIndex: number; value: string } {\n let value = ''\n let i = startIndex\n while (i < propsString.length && propsString[i] !== ' ') {\n value += propsString[i]\n i++\n }\n return { newIndex: i - 1, value }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts an object of props to a JSX props string.
|
|
3
|
+
*
|
|
4
|
+
* This function is the inverse of `extractPropsFromJSXPropsString`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function propsToJSXString({ props }: {
|
|
7
|
+
props: Record<string, any>;
|
|
8
|
+
}): string;
|
|
9
|
+
/**
|
|
10
|
+
* Converts a frontmatter string to an object.
|
|
11
|
+
*/
|
|
12
|
+
export declare function frontmatterToObject(frontmatter: string): Record<string, any>;
|
|
13
|
+
/**
|
|
14
|
+
* Converts an object to a frontmatter string.
|
|
15
|
+
*/
|
|
16
|
+
export declare function objectToFrontmatter(obj: Record<string, any>): null | string;
|
|
17
|
+
/**
|
|
18
|
+
* Takes an MDX content string and extracts the frontmatter and content.
|
|
19
|
+
*
|
|
20
|
+
* The resulting object contains the mdx content without the frontmatter and the frontmatter itself.
|
|
21
|
+
*/
|
|
22
|
+
export declare function extractFrontmatter(mdxContent: string): {
|
|
23
|
+
content: string;
|
|
24
|
+
frontmatter: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=jsx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx.d.ts","sourceRoot":"","sources":["../../../src/utilities/jsx/jsx.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,GAAG,MAAM,CA0BlF;AAeD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAqB5E;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,MAAM,CAgB3E;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,MAAM;;;EAmBpD"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts an object of props to a JSX props string.
|
|
3
|
+
*
|
|
4
|
+
* This function is the inverse of `extractPropsFromJSXPropsString`.
|
|
5
|
+
*/export function propsToJSXString({
|
|
6
|
+
props
|
|
7
|
+
}) {
|
|
8
|
+
const propsArray = [];
|
|
9
|
+
for (const [key, value] of Object.entries(props)) {
|
|
10
|
+
if (typeof value === 'string') {
|
|
11
|
+
// Handle simple string props
|
|
12
|
+
propsArray.push(`${key}="${escapeQuotes(value)}"`);
|
|
13
|
+
} else if (typeof value === 'number') {
|
|
14
|
+
// Handle number and boolean props
|
|
15
|
+
propsArray.push(`${key}={${value}}`);
|
|
16
|
+
} else if (typeof value === 'boolean') {
|
|
17
|
+
if (value) {
|
|
18
|
+
propsArray.push(`${key}`);
|
|
19
|
+
}
|
|
20
|
+
} else if (value !== null && typeof value === 'object') {
|
|
21
|
+
if (Array.isArray(value)) {
|
|
22
|
+
// Handle array props
|
|
23
|
+
propsArray.push(`${key}={[${value.map(v => JSON.stringify(v, replacer)).join(', ')}]}`);
|
|
24
|
+
} else {
|
|
25
|
+
// Handle complex object props
|
|
26
|
+
propsArray.push(`${key}={${JSON.stringify(value, replacer)}}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return propsArray.join(' ');
|
|
31
|
+
}
|
|
32
|
+
// Helper function to escape quotes in string values
|
|
33
|
+
function escapeQuotes(str) {
|
|
34
|
+
return str.replace(/"/g, '"');
|
|
35
|
+
}
|
|
36
|
+
// Custom replacer function for JSON.stringify to handle single quotes
|
|
37
|
+
function replacer(key, value) {
|
|
38
|
+
if (typeof value === 'string') {
|
|
39
|
+
return value.replace(/'/g, "\\'");
|
|
40
|
+
}
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Converts a frontmatter string to an object.
|
|
45
|
+
*/
|
|
46
|
+
export function frontmatterToObject(frontmatter) {
|
|
47
|
+
const lines = frontmatter.trim().split('\n');
|
|
48
|
+
const result = {};
|
|
49
|
+
let inFrontmatter = false;
|
|
50
|
+
for (const line of lines) {
|
|
51
|
+
if (line.trim() === '---') {
|
|
52
|
+
inFrontmatter = !inFrontmatter;
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
if (inFrontmatter) {
|
|
56
|
+
const [key, ...valueParts] = line.split(':');
|
|
57
|
+
const value = valueParts.join(':').trim();
|
|
58
|
+
// @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve
|
|
59
|
+
result[key.trim()] = value;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Converts an object to a frontmatter string.
|
|
66
|
+
*/
|
|
67
|
+
export function objectToFrontmatter(obj) {
|
|
68
|
+
if (!Object.entries(obj)?.length) {
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
let frontmatter = '---\n';
|
|
72
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
73
|
+
if (Array.isArray(value)) {
|
|
74
|
+
frontmatter += `${key}: ${value.join(', ')}\n`;
|
|
75
|
+
} else {
|
|
76
|
+
frontmatter += `${key}: ${value}\n`;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
frontmatter += '---\n';
|
|
80
|
+
return frontmatter;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Takes an MDX content string and extracts the frontmatter and content.
|
|
84
|
+
*
|
|
85
|
+
* The resulting object contains the mdx content without the frontmatter and the frontmatter itself.
|
|
86
|
+
*/
|
|
87
|
+
export function extractFrontmatter(mdxContent) {
|
|
88
|
+
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
89
|
+
const frontmatterRegex = /^---\s*\n[\s\S]*?\n---\s*\n/;
|
|
90
|
+
const match = mdxContent.match(frontmatterRegex);
|
|
91
|
+
if (match) {
|
|
92
|
+
const frontmatter = match[0];
|
|
93
|
+
const contentWithoutFrontmatter = mdxContent.slice(frontmatter.length).trim();
|
|
94
|
+
return {
|
|
95
|
+
content: contentWithoutFrontmatter,
|
|
96
|
+
frontmatter: frontmatter.trim()
|
|
97
|
+
};
|
|
98
|
+
} else {
|
|
99
|
+
// If no frontmatter is found, return the original content
|
|
100
|
+
return {
|
|
101
|
+
content: mdxContent.trim(),
|
|
102
|
+
frontmatter: ''
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=jsx.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx.js","names":["propsToJSXString","props","propsArray","key","value","Object","entries","push","escapeQuotes","Array","isArray","map","v","JSON","stringify","replacer","join","str","replace","frontmatterToObject","frontmatter","lines","trim","split","result","inFrontmatter","line","valueParts","objectToFrontmatter","obj","length","extractFrontmatter","mdxContent","frontmatterRegex","match","contentWithoutFrontmatter","slice","content"],"sources":["../../../src/utilities/jsx/jsx.ts"],"sourcesContent":["/**\n * Converts an object of props to a JSX props string.\n *\n * This function is the inverse of `extractPropsFromJSXPropsString`.\n */\nexport function propsToJSXString({ props }: { props: Record<string, any> }): string {\n const propsArray: string[] = []\n\n for (const [key, value] of Object.entries(props)) {\n if (typeof value === 'string') {\n // Handle simple string props\n propsArray.push(`${key}=\"${escapeQuotes(value)}\"`)\n } else if (typeof value === 'number') {\n // Handle number and boolean props\n propsArray.push(`${key}={${value}}`)\n } else if (typeof value === 'boolean') {\n if (value) {\n propsArray.push(`${key}`)\n }\n } else if (value !== null && typeof value === 'object') {\n if (Array.isArray(value)) {\n // Handle array props\n propsArray.push(`${key}={[${value.map((v) => JSON.stringify(v, replacer)).join(', ')}]}`)\n } else {\n // Handle complex object props\n propsArray.push(`${key}={${JSON.stringify(value, replacer)}}`)\n }\n }\n }\n\n return propsArray.join(' ')\n}\n\n// Helper function to escape quotes in string values\nfunction escapeQuotes(str: string): string {\n return str.replace(/\"/g, '"')\n}\n\n// Custom replacer function for JSON.stringify to handle single quotes\nfunction replacer(key: string, value: any): any {\n if (typeof value === 'string') {\n return value.replace(/'/g, \"\\\\'\")\n }\n return value\n}\n\n/**\n * Converts a frontmatter string to an object.\n */\nexport function frontmatterToObject(frontmatter: string): Record<string, any> {\n const lines = frontmatter.trim().split('\\n')\n const result = {}\n let inFrontmatter = false\n\n for (const line of lines) {\n if (line.trim() === '---') {\n inFrontmatter = !inFrontmatter\n continue\n }\n\n if (inFrontmatter) {\n const [key, ...valueParts] = line.split(':')\n const value = valueParts.join(':').trim()\n\n // @ts-expect-error - vestiges of when tsconfig was not strict. Feel free to improve\n result[key.trim()] = value\n }\n }\n\n return result\n}\n\n/**\n * Converts an object to a frontmatter string.\n */\nexport function objectToFrontmatter(obj: Record<string, any>): null | string {\n if (!Object.entries(obj)?.length) {\n return null\n }\n let frontmatter = '---\\n'\n\n for (const [key, value] of Object.entries(obj)) {\n if (Array.isArray(value)) {\n frontmatter += `${key}: ${value.join(', ')}\\n`\n } else {\n frontmatter += `${key}: ${value}\\n`\n }\n }\n\n frontmatter += '---\\n'\n return frontmatter\n}\n\n/**\n * Takes an MDX content string and extracts the frontmatter and content.\n *\n * The resulting object contains the mdx content without the frontmatter and the frontmatter itself.\n */\nexport function extractFrontmatter(mdxContent: string) {\n // eslint-disable-next-line regexp/no-super-linear-backtracking\n const frontmatterRegex = /^---\\s*\\n[\\s\\S]*?\\n---\\s*\\n/\n const match = mdxContent.match(frontmatterRegex)\n\n if (match) {\n const frontmatter = match[0]\n const contentWithoutFrontmatter = mdxContent.slice(frontmatter.length).trim()\n return {\n content: contentWithoutFrontmatter,\n frontmatter: frontmatter.trim(),\n }\n } else {\n // If no frontmatter is found, return the original content\n return {\n content: mdxContent.trim(),\n frontmatter: '',\n }\n }\n}\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { extractPropsFromJSXPropsString } from './extractPropsFromJSXPropsString.js';
|
|
3
|
+
import { propsToJSXString } from './jsx.js';
|
|
4
|
+
describe('jsx', () => {
|
|
5
|
+
describe('prop string to object', () => {
|
|
6
|
+
const INPUT_AND_OUTPUT = [{
|
|
7
|
+
input: 'key="value"',
|
|
8
|
+
output: {
|
|
9
|
+
key: 'value'
|
|
10
|
+
}
|
|
11
|
+
}, {
|
|
12
|
+
input: "key='value'",
|
|
13
|
+
output: {
|
|
14
|
+
key: 'value'
|
|
15
|
+
},
|
|
16
|
+
inputFromOutput: 'key="value"'
|
|
17
|
+
}, {
|
|
18
|
+
input: 'key={[1, 2, 3]}',
|
|
19
|
+
output: {
|
|
20
|
+
key: [1, 2, 3]
|
|
21
|
+
}
|
|
22
|
+
}, {
|
|
23
|
+
input: 'key={[1, 2, 3, [1, 2]]}',
|
|
24
|
+
output: {
|
|
25
|
+
key: [1, 2, 3, [1, 2]]
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
input: 'object={4}',
|
|
29
|
+
output: {
|
|
30
|
+
object: 4
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
input: 'object={{"test": 1}}',
|
|
34
|
+
output: {
|
|
35
|
+
object: {
|
|
36
|
+
test: 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}, {
|
|
40
|
+
input: 'object={[1, 2, 3, [1, 2]]}',
|
|
41
|
+
output: {
|
|
42
|
+
object: [1, 2, 3, [1, 2]]
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
input: 'object={[1, 2]}',
|
|
46
|
+
output: {
|
|
47
|
+
object: [1, 2]
|
|
48
|
+
}
|
|
49
|
+
}, {
|
|
50
|
+
input: 'key="value" object={{key: "value"}}',
|
|
51
|
+
inputFromOutput: 'key="value" object={{"key": "value"}}',
|
|
52
|
+
output: {
|
|
53
|
+
key: 'value',
|
|
54
|
+
object: {
|
|
55
|
+
key: 'value'
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}, {
|
|
59
|
+
input: 'global packageId="myId" uniqueId="some unique id!" update',
|
|
60
|
+
output: {
|
|
61
|
+
global: true,
|
|
62
|
+
packageId: 'myId',
|
|
63
|
+
uniqueId: 'some unique id!',
|
|
64
|
+
update: true
|
|
65
|
+
}
|
|
66
|
+
}, {
|
|
67
|
+
input: 'global key="value" object={{key: "value", something: "test", hello: 1}} packageId="myId" uniqueId="some unique id!" update',
|
|
68
|
+
inputFromOutput: 'global key="value" object={{"hello": 1, "key": "value", "something": "test"}} packageId="myId" uniqueId="some unique id!" update',
|
|
69
|
+
output: {
|
|
70
|
+
global: true,
|
|
71
|
+
key: 'value',
|
|
72
|
+
object: {
|
|
73
|
+
hello: 1,
|
|
74
|
+
key: 'value',
|
|
75
|
+
something: 'test'
|
|
76
|
+
},
|
|
77
|
+
packageId: 'myId',
|
|
78
|
+
uniqueId: 'some unique id!',
|
|
79
|
+
update: true
|
|
80
|
+
}
|
|
81
|
+
}, {
|
|
82
|
+
input: 'object={{hello: 1, key: "value", nested: { key: "value" }, something: "test", test: [1, 2, 3]}}',
|
|
83
|
+
inputFromOutput: 'object={{"hello": 1, "key": "value", "nested": {"key": "value"}, "something": "test", "test": [1, 2, 3]}}',
|
|
84
|
+
output: {
|
|
85
|
+
object: {
|
|
86
|
+
hello: 1,
|
|
87
|
+
key: 'value',
|
|
88
|
+
nested: {
|
|
89
|
+
key: 'value'
|
|
90
|
+
},
|
|
91
|
+
something: 'test',
|
|
92
|
+
test: [1, 2, 3]
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}, {
|
|
96
|
+
input: 'global key="value" object={{hello: 1, key: "value", nested: { key: "value" }, something: "test", test: [1, 2, 3]}} packageId="myId" uniqueId="some unique id!" update',
|
|
97
|
+
inputFromOutput: 'global key="value" object={{"hello": 1, "key": "value", "nested": { "key": "value" }, "something": "test", "test": [1, 2, 3]}} packageId="myId" uniqueId="some unique id!" update',
|
|
98
|
+
output: {
|
|
99
|
+
global: true,
|
|
100
|
+
key: 'value',
|
|
101
|
+
object: {
|
|
102
|
+
hello: 1,
|
|
103
|
+
key: 'value',
|
|
104
|
+
nested: {
|
|
105
|
+
key: 'value'
|
|
106
|
+
},
|
|
107
|
+
something: 'test',
|
|
108
|
+
test: [1, 2, 3]
|
|
109
|
+
},
|
|
110
|
+
packageId: 'myId',
|
|
111
|
+
uniqueId: 'some unique id!',
|
|
112
|
+
update: true
|
|
113
|
+
}
|
|
114
|
+
}, {
|
|
115
|
+
// Test if unquoted property keys in objects within arrays are supprted. This is
|
|
116
|
+
// supported through the more lenient JSOX parser, instead of using JSON.parse()
|
|
117
|
+
input: 'key={[1, 2, { hello: "there" }]}',
|
|
118
|
+
inputFromOutput: 'key={[1, 2, { "hello": "there" }]}',
|
|
119
|
+
output: {
|
|
120
|
+
key: [1, 2, {
|
|
121
|
+
hello: 'there'
|
|
122
|
+
}]
|
|
123
|
+
}
|
|
124
|
+
}, {
|
|
125
|
+
// Test if ` strings work
|
|
126
|
+
input: `key={[1, 2, { hello: \`there\` }]}`,
|
|
127
|
+
inputFromOutput: 'key={[1, 2, { "hello": "there" }]}',
|
|
128
|
+
output: {
|
|
129
|
+
key: [1, 2, {
|
|
130
|
+
hello: 'there'
|
|
131
|
+
}]
|
|
132
|
+
}
|
|
133
|
+
}, {
|
|
134
|
+
// Test if multiline ` strings work
|
|
135
|
+
input: `key={[1, 2, { hello: \`Hello
|
|
136
|
+
there\` }]}`,
|
|
137
|
+
inputFromOutput: 'key={[1, 2, { "hello": "Hello\\nthere" }]}',
|
|
138
|
+
output: {
|
|
139
|
+
key: [1, 2, {
|
|
140
|
+
hello: 'Hello\nthere'
|
|
141
|
+
}]
|
|
142
|
+
}
|
|
143
|
+
}];
|
|
144
|
+
for (const {
|
|
145
|
+
input,
|
|
146
|
+
output
|
|
147
|
+
} of INPUT_AND_OUTPUT) {
|
|
148
|
+
it(`can correctly convert to object: "${input.replace(/\n/g, '\\n')}"`, () => {
|
|
149
|
+
const propsObject = extractPropsFromJSXPropsString({
|
|
150
|
+
propsString: input
|
|
151
|
+
});
|
|
152
|
+
console.log({
|
|
153
|
+
output,
|
|
154
|
+
propsObject
|
|
155
|
+
});
|
|
156
|
+
expect(propsObject).toStrictEqual(output);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
for (const {
|
|
160
|
+
input: originalInput,
|
|
161
|
+
inputFromOutput,
|
|
162
|
+
output
|
|
163
|
+
} of INPUT_AND_OUTPUT) {
|
|
164
|
+
const input = inputFromOutput || originalInput;
|
|
165
|
+
it(`can correctly convert from object: "${input.replace(/\n/g, '\\n')}"`, () => {
|
|
166
|
+
const propsString = propsToJSXString({
|
|
167
|
+
props: output
|
|
168
|
+
});
|
|
169
|
+
console.log({
|
|
170
|
+
input,
|
|
171
|
+
propsString
|
|
172
|
+
});
|
|
173
|
+
expect(propsString.replaceAll(' ', '')).toBe(input.replaceAll(' ', ''));
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
});
|
|
178
|
+
//# sourceMappingURL=jsx.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsx.spec.js","names":["describe","it","expect","extractPropsFromJSXPropsString","propsToJSXString","INPUT_AND_OUTPUT","input","output","key","inputFromOutput","object","test","global","packageId","uniqueId","update","hello","something","nested","replace","propsObject","propsString","console","log","toStrictEqual","originalInput","props","replaceAll","toBe"],"sources":["../../../src/utilities/jsx/jsx.spec.ts"],"sourcesContent":["import { describe, it, expect } from 'vitest'\nimport { extractPropsFromJSXPropsString } from './extractPropsFromJSXPropsString.js'\nimport { propsToJSXString } from './jsx.js'\n\ndescribe('jsx', () => {\n describe('prop string to object', () => {\n const INPUT_AND_OUTPUT: {\n input: string\n inputFromOutput?: string\n output: Record<string, any>\n }[] = [\n {\n input: 'key=\"value\"',\n output: {\n key: 'value',\n },\n },\n {\n input: \"key='value'\",\n output: {\n key: 'value',\n },\n inputFromOutput: 'key=\"value\"',\n },\n {\n input: 'key={[1, 2, 3]}',\n output: {\n key: [1, 2, 3],\n },\n },\n {\n input: 'key={[1, 2, 3, [1, 2]]}',\n output: {\n key: [1, 2, 3, [1, 2]],\n },\n },\n {\n input: 'object={4}',\n output: {\n object: 4,\n },\n },\n {\n input: 'object={{\"test\": 1}}',\n output: {\n object: { test: 1 },\n },\n },\n {\n input: 'object={[1, 2, 3, [1, 2]]}',\n output: {\n object: [1, 2, 3, [1, 2]],\n },\n },\n {\n input: 'object={[1, 2]}',\n output: {\n object: [1, 2],\n },\n },\n {\n input: 'key=\"value\" object={{key: \"value\"}}',\n inputFromOutput: 'key=\"value\" object={{\"key\": \"value\"}}',\n output: {\n key: 'value',\n object: { key: 'value' },\n },\n },\n {\n input: 'global packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n input:\n 'global key=\"value\" object={{key: \"value\", something: \"test\", hello: 1}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n inputFromOutput:\n 'global key=\"value\" object={{\"hello\": 1, \"key\": \"value\", \"something\": \"test\"}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n key: 'value',\n object: { hello: 1, key: 'value', something: 'test' },\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n input:\n 'object={{hello: 1, key: \"value\", nested: { key: \"value\" }, something: \"test\", test: [1, 2, 3]}}',\n inputFromOutput:\n 'object={{\"hello\": 1, \"key\": \"value\", \"nested\": {\"key\": \"value\"}, \"something\": \"test\", \"test\": [1, 2, 3]}}',\n output: {\n object: {\n hello: 1,\n key: 'value',\n nested: { key: 'value' },\n something: 'test',\n test: [1, 2, 3],\n },\n },\n },\n {\n input:\n 'global key=\"value\" object={{hello: 1, key: \"value\", nested: { key: \"value\" }, something: \"test\", test: [1, 2, 3]}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n inputFromOutput:\n 'global key=\"value\" object={{\"hello\": 1, \"key\": \"value\", \"nested\": { \"key\": \"value\" }, \"something\": \"test\", \"test\": [1, 2, 3]}} packageId=\"myId\" uniqueId=\"some unique id!\" update',\n output: {\n global: true,\n key: 'value',\n object: {\n hello: 1,\n key: 'value',\n nested: { key: 'value' },\n something: 'test',\n test: [1, 2, 3],\n },\n packageId: 'myId',\n uniqueId: 'some unique id!',\n update: true,\n },\n },\n {\n // Test if unquoted property keys in objects within arrays are supprted. This is\n // supported through the more lenient JSOX parser, instead of using JSON.parse()\n input: 'key={[1, 2, { hello: \"there\" }]}',\n inputFromOutput: 'key={[1, 2, { \"hello\": \"there\" }]}',\n output: {\n key: [1, 2, { hello: 'there' }],\n },\n },\n {\n // Test if ` strings work\n input: `key={[1, 2, { hello: \\`there\\` }]}`,\n inputFromOutput: 'key={[1, 2, { \"hello\": \"there\" }]}',\n output: {\n key: [1, 2, { hello: 'there' }],\n },\n },\n {\n // Test if multiline ` strings work\n input: `key={[1, 2, { hello: \\`Hello\nthere\\` }]}`,\n inputFromOutput: 'key={[1, 2, { \"hello\": \"Hello\\\\nthere\" }]}',\n output: {\n key: [1, 2, { hello: 'Hello\\nthere' }],\n },\n },\n ]\n\n for (const { input, output } of INPUT_AND_OUTPUT) {\n it(`can correctly convert to object: \"${input.replace(/\\n/g, '\\\\n')}\"`, () => {\n const propsObject = extractPropsFromJSXPropsString({ propsString: input })\n console.log({ output, propsObject })\n\n expect(propsObject).toStrictEqual(output)\n })\n }\n\n for (const { input: originalInput, inputFromOutput, output } of INPUT_AND_OUTPUT) {\n const input = inputFromOutput || originalInput\n it(`can correctly convert from object: \"${input.replace(/\\n/g, '\\\\n')}\"`, () => {\n const propsString = propsToJSXString({ props: output })\n console.log({ input, propsString })\n\n expect(propsString.replaceAll(' ', '')).toBe(input.replaceAll(' ', ''))\n })\n }\n })\n})\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Payload } from '@ruya.sa/payload';
|
|
2
|
+
/**
|
|
3
|
+
* This goes through every single collection and field in the payload config, and migrates its data from Slate to Lexical. This does not support sub-fields within slate.
|
|
4
|
+
*
|
|
5
|
+
* It will only translate fields fulfilling all these requirements:
|
|
6
|
+
* - field schema uses lexical editor
|
|
7
|
+
* - lexical editor has SlateToLexicalFeature added
|
|
8
|
+
* - saved field data is in Slate format
|
|
9
|
+
*
|
|
10
|
+
* @param payload
|
|
11
|
+
*/
|
|
12
|
+
export declare function migrateSlateToLexical({ payload }: {
|
|
13
|
+
payload: Payload;
|
|
14
|
+
}): Promise<void>;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utilities/migrateSlateToLexical/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAyC,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAItF;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,iBAoC5E"}
|