@payloadcms/richtext-lexical 3.84.1 → 4.0.0-internal.d28e9fb
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/dist/exports/client/{Field-4UEGQMIN.js → Field-NXLXFFLW.js} +2 -2
- package/dist/exports/client/Field-NXLXFFLW.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -1
- package/dist/exports/client/chunk-DZDHVMML.js +2 -0
- package/dist/exports/client/chunk-DZDHVMML.js.map +7 -0
- package/dist/exports/client/componentInline-LCHKRXOV.js +2 -0
- package/dist/exports/client/index.d.ts +0 -2
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +32 -32
- package/dist/exports/client/index.js.map +4 -4
- package/dist/features/blocks/client/component/index.d.ts.map +1 -1
- package/dist/features/blocks/client/component/index.js +17 -2
- package/dist/features/blocks/client/component/index.js.map +1 -1
- package/dist/features/blocks/client/componentInline/index.d.ts.map +1 -1
- package/dist/features/blocks/client/componentInline/index.js +13 -3
- package/dist/features/blocks/client/componentInline/index.js.map +1 -1
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +1 -1
- package/dist/field/Field.js.map +1 -1
- package/dist/field/bundled.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/lexical/config/server/loader.d.ts.map +1 -1
- package/dist/lexical/config/server/loader.js +12 -9
- package/dist/lexical/config/server/loader.js.map +1 -1
- package/dist/lexical/ui/icons/Add/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Add/index.js +19 -12
- package/dist/lexical/ui/icons/Add/index.js.map +1 -1
- package/dist/lexical/ui/icons/Add/index.svg +2 -3
- package/dist/lexical/ui/icons/Add/light.svg +2 -3
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts +3 -1
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignCenter/index.js +15 -19
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts +3 -1
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.js +15 -19
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts +3 -1
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.js +15 -19
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.d.ts +3 -1
- package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.js +15 -19
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
- package/dist/lexical/ui/icons/Block/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Block/index.js +13 -28
- package/dist/lexical/ui/icons/Block/index.js.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.js +9 -6
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.js +13 -8
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.js +17 -18
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
- package/dist/lexical/ui/icons/Code/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Code/index.js +15 -13
- package/dist/lexical/ui/icons/Code/index.js.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts +4 -1
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.js +18 -7
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
- package/dist/lexical/ui/icons/Collapse/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Collapse/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Collapse/index.js +10 -8
- package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
- package/dist/lexical/ui/icons/DraggableBlock/index.svg +7 -7
- package/dist/lexical/ui/icons/DraggableBlock/light.svg +7 -7
- package/dist/lexical/ui/icons/Expand/index.d.ts +5 -0
- package/dist/lexical/ui/icons/Expand/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Expand/index.js +22 -0
- package/dist/lexical/ui/icons/Expand/index.js.map +1 -0
- package/dist/lexical/ui/icons/H1/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H1/index.js +9 -6
- package/dist/lexical/ui/icons/H1/index.js.map +1 -1
- package/dist/lexical/ui/icons/H2/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H2/index.js +9 -6
- package/dist/lexical/ui/icons/H2/index.js.map +1 -1
- package/dist/lexical/ui/icons/H3/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H3/index.js +9 -6
- package/dist/lexical/ui/icons/H3/index.js.map +1 -1
- package/dist/lexical/ui/icons/H4/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H4/index.js +9 -6
- package/dist/lexical/ui/icons/H4/index.js.map +1 -1
- package/dist/lexical/ui/icons/H5/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H5/index.js +9 -6
- package/dist/lexical/ui/icons/H5/index.js.map +1 -1
- package/dist/lexical/ui/icons/H6/index.d.ts +3 -1
- package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H6/index.js +9 -6
- package/dist/lexical/ui/icons/H6/index.js.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts +3 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.js +11 -11
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts +3 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.js +18 -22
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts +3 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.js +15 -22
- package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.d.ts +3 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.js +9 -6
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.js +13 -8
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
- package/dist/lexical/ui/icons/Link/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Link/index.js +14 -9
- package/dist/lexical/ui/icons/Link/index.js.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.js +19 -15
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.d.ts +4 -1
- package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.js +19 -25
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.js +13 -25
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.js +13 -13
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.js +10 -7
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.js +10 -7
- package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Table/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Table/index.js +20 -15
- package/dist/lexical/ui/icons/Table/index.js.map +1 -1
- package/dist/lexical/ui/icons/Text/index.d.ts +4 -1
- package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Text/index.js +17 -8
- package/dist/lexical/ui/icons/Text/index.js.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.js +16 -14
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts +3 -1
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.js +13 -40
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.d.ts +3 -1
- package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.js +15 -22
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
- package/dist/utilities/buildEditorState.d.ts.map +1 -1
- package/dist/utilities/buildEditorState.js +13 -0
- package/dist/utilities/buildEditorState.js.map +1 -1
- package/package.json +10 -15
- package/dist/exports/client/Component-DOSSWC76.js +0 -2
- package/dist/exports/client/Component-DOSSWC76.js.map +0 -7
- package/dist/exports/client/Component-MBLHTKDK.js +0 -2
- package/dist/exports/client/Component-MBLHTKDK.js.map +0 -7
- package/dist/exports/client/Field-4UEGQMIN.js.map +0 -7
- package/dist/exports/client/chunk-YWIZCGSY.js +0 -2
- package/dist/exports/client/chunk-YWIZCGSY.js.map +0 -7
- package/dist/exports/client/componentInline-CBBUBQ7P.js +0 -2
- package/dist/exports/server/migrate.d.ts +0 -16
- package/dist/exports/server/migrate.d.ts.map +0 -1
- package/dist/exports/server/migrate.js +0 -16
- package/dist/exports/server/migrate.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -22
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -33
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -24
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -25
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -22
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -28
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -22
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -3
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -9
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -19
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +0 -78
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -23
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +0 -2
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -2
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +0 -10
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -10
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +0 -49
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -15
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -74
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -23
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +0 -24
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +0 -33
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +0 -30
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -26
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -26
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -15
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -27
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -26
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -18
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -3
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +0 -12
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/index.d.ts +0 -19
- package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/index.js +0 -130
- package/dist/features/migrations/slateToLexical/converter/index.js.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/types.d.ts +0 -16
- package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/converter/types.js +0 -2
- package/dist/features/migrations/slateToLexical/converter/types.js.map +0 -1
- package/dist/features/migrations/slateToLexical/feature.client.d.ts +0 -2
- package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/feature.client.js +0 -10
- package/dist/features/migrations/slateToLexical/feature.client.js.map +0 -1
- package/dist/features/migrations/slateToLexical/feature.server.d.ts +0 -40
- package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/feature.server.js +0 -68
- package/dist/features/migrations/slateToLexical/feature.server.js.map +0 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -9
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -15
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -33
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -74
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- package/dist/lexical/ui/icons/AI/index.d.ts +0 -3
- package/dist/lexical/ui/icons/AI/index.d.ts.map +0 -1
- package/dist/lexical/ui/icons/AI/index.js +0 -34
- package/dist/lexical/ui/icons/AI/index.js.map +0 -1
- package/dist/lexical/ui/icons/Caret/index.svg +0 -3
- package/dist/lexical/ui/icons/Edit/index.svg +0 -10
- package/dist/lexical/ui/icons/Remove/index.svg +0 -4
- package/dist/utilities/migrateSlateToLexical/index.d.ts +0 -15
- package/dist/utilities/migrateSlateToLexical/index.d.ts.map +0 -1
- package/dist/utilities/migrateSlateToLexical/index.js +0 -152
- package/dist/utilities/migrateSlateToLexical/index.js.map +0 -1
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +0 -10
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +0 -1
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +0 -85
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +0 -1
- /package/dist/exports/client/{componentInline-CBBUBQ7P.js.map → componentInline-LCHKRXOV.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"feature.server.js","names":["createServerFeature","defaultConverters","convertLexicalPluginToLexical","UnknownConvertedNode","LexicalPluginToLexicalFeature","feature","props","converters","ClientFeature","hooks","disableHooks","undefined","afterRead","value","lexicalPluginData","quiet","nodes","node","sanitizedServerFeatureProps","key"],"sources":["../../../../src/features/migrations/lexicalPluginToLexical/feature.server.ts"],"sourcesContent":["import type { LexicalPluginNodeConverter, PayloadPluginLexicalData } from './converter/types.js'\n\nimport { createServerFeature } from '../../../utilities/createServerFeature.js'\nimport { defaultConverters } from './converter/defaultConverters.js'\nimport { convertLexicalPluginToLexical } from './converter/index.js'\nimport { UnknownConvertedNode } from './nodes/unknownConvertedNode/index.js'\n\nexport type LexicalPluginToLexicalFeatureProps = {\n converters?:\n | (({\n defaultConverters,\n }: {\n defaultConverters: LexicalPluginNodeConverter[]\n }) => LexicalPluginNodeConverter[])\n | LexicalPluginNodeConverter[]\n disableHooks?: boolean\n quiet?: boolean\n}\n\nexport const LexicalPluginToLexicalFeature =\n createServerFeature<LexicalPluginToLexicalFeatureProps>({\n feature: ({ props }) => {\n if (!props) {\n props = {}\n }\n\n let converters: LexicalPluginNodeConverter[] = []\n\n if (props?.converters && typeof props?.converters === 'function') {\n converters = props.converters({ defaultConverters })\n } else if (props.converters && typeof props?.converters !== 'function') {\n converters = props.converters\n } else {\n converters = defaultConverters\n }\n\n props.converters = converters\n\n return {\n ClientFeature: '@payloadcms/richtext-lexical/client#LexicalPluginToLexicalFeatureClient',\n hooks: props.disableHooks\n ? undefined\n : {\n afterRead: [\n ({ value }) => {\n if (!value || !('jsonContent' in value)) {\n // incomingEditorState null or not from Lexical Plugin\n return value\n }\n\n // Lexical Plugin => convert to lexical\n return convertLexicalPluginToLexical({\n converters: props.converters as LexicalPluginNodeConverter[],\n lexicalPluginData: value as PayloadPluginLexicalData,\n quiet: props?.quiet,\n })\n },\n ],\n },\n nodes: [\n {\n node: UnknownConvertedNode,\n },\n ],\n sanitizedServerFeatureProps: props,\n }\n },\n key: 'lexicalPluginToLexical',\n })\n"],"mappings":"AAEA,SAASA,mBAAmB,QAAQ;AACpC,SAASC,iBAAiB,QAAQ;AAClC,SAASC,6BAA6B,QAAQ;AAC9C,SAASC,oBAAoB,QAAQ;AAcrC,OAAO,MAAMC,6BAAA,GACXJ,mBAAA,CAAwD;EACtDK,OAAA,EAASA,CAAC;IAAEC;EAAK,CAAE;IACjB,IAAI,CAACA,KAAA,EAAO;MACVA,KAAA,GAAQ,CAAC;IACX;IAEA,IAAIC,UAAA,GAA2C,EAAE;IAEjD,IAAID,KAAA,EAAOC,UAAA,IAAc,OAAOD,KAAA,EAAOC,UAAA,KAAe,YAAY;MAChEA,UAAA,GAAaD,KAAA,CAAMC,UAAU,CAAC;QAAEN;MAAkB;IACpD,OAAO,IAAIK,KAAA,CAAMC,UAAU,IAAI,OAAOD,KAAA,EAAOC,UAAA,KAAe,YAAY;MACtEA,UAAA,GAAaD,KAAA,CAAMC,UAAU;IAC/B,OAAO;MACLA,UAAA,GAAaN,iBAAA;IACf;IAEAK,KAAA,CAAMC,UAAU,GAAGA,UAAA;IAEnB,OAAO;MACLC,aAAA,EAAe;MACfC,KAAA,EAAOH,KAAA,CAAMI,YAAY,GACrBC,SAAA,GACA;QACEC,SAAA,EAAW,CACT,CAAC;UAAEC;QAAK,CAAE;UACR,IAAI,CAACA,KAAA,IAAS,EAAE,iBAAiBA,KAAI,GAAI;YACvC;YACA,OAAOA,KAAA;UACT;UAEA;UACA,OAAOX,6BAAA,CAA8B;YACnCK,UAAA,EAAYD,KAAA,CAAMC,UAAU;YAC5BO,iBAAA,EAAmBD,KAAA;YACnBE,KAAA,EAAOT,KAAA,EAAOS;UAChB;QACF;MAEJ;MACJC,KAAA,EAAO,CACL;QACEC,IAAA,EAAMd;MACR,EACD;MACDe,2BAAA,EAA6BZ;IAC/B;EACF;EACAa,GAAA,EAAK;AACP","ignoreList":[]}
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { UnknownConvertedNodeData } from './index.js';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
type Props = {
|
|
5
|
-
data: UnknownConvertedNodeData;
|
|
6
|
-
};
|
|
7
|
-
export declare const UnknownConvertedNodeComponent: React.FC<Props>;
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AAE1D,OAAO,cAAc,CAAA;AAErB,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,wBAAwB,CAAA;CAC/B,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAQzD,CAAA"}
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
export const UnknownConvertedNodeComponent = props => {
|
|
6
|
-
const {
|
|
7
|
-
data
|
|
8
|
-
} = props;
|
|
9
|
-
return /*#__PURE__*/_jsxs("div", {
|
|
10
|
-
children: ["Unknown converted payload-plugin-lexical node: ", /*#__PURE__*/_jsx("strong", {
|
|
11
|
-
children: data?.nodeType
|
|
12
|
-
})]
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=Component.js.map
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","names":["React","UnknownConvertedNodeComponent","props","data","_jsxs","_jsx","nodeType"],"sources":["../../../../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\n\nimport './index.scss'\n\ntype Props = {\n data: UnknownConvertedNodeData\n}\n\nexport const UnknownConvertedNodeComponent: React.FC<Props> = (props) => {\n const { data } = props\n\n return (\n <div>\n Unknown converted payload-plugin-lexical node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],"mappings":"AAAA;;;AACA,OAAOA,KAAA,MAAW;AAUlB,OAAO,MAAMC,6BAAA,GAAkDC,KAAA;EAC7D,MAAM;IAAEC;EAAI,CAAE,GAAGD,KAAA;EAEjB,oBACEE,KAAA,CAAC;eAAI,mD,aAC4CC,IAAA,CAAC;gBAAQF,IAAA,EAAMG;;;AAGpE","ignoreList":[]}
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical';
|
|
2
|
-
import type { JSX } from 'react';
|
|
3
|
-
import { DecoratorNode } from 'lexical';
|
|
4
|
-
export type UnknownConvertedNodeData = {
|
|
5
|
-
nodeData: unknown;
|
|
6
|
-
nodeType: string;
|
|
7
|
-
};
|
|
8
|
-
export type SerializedUnknownConvertedNode = Spread<{
|
|
9
|
-
data: UnknownConvertedNodeData;
|
|
10
|
-
}, SerializedLexicalNode>;
|
|
11
|
-
/** @noInheritDoc */
|
|
12
|
-
export declare class UnknownConvertedNode extends DecoratorNode<JSX.Element> {
|
|
13
|
-
__data: UnknownConvertedNodeData;
|
|
14
|
-
constructor({ data, key }: {
|
|
15
|
-
data: UnknownConvertedNodeData;
|
|
16
|
-
key?: NodeKey;
|
|
17
|
-
});
|
|
18
|
-
static clone(node: UnknownConvertedNode): UnknownConvertedNode;
|
|
19
|
-
static getType(): string;
|
|
20
|
-
static importJSON(serializedNode: SerializedUnknownConvertedNode): UnknownConvertedNode;
|
|
21
|
-
canInsertTextAfter(): true;
|
|
22
|
-
canInsertTextBefore(): true;
|
|
23
|
-
createDOM(config: EditorConfig): HTMLElement;
|
|
24
|
-
decorate(): JSX.Element;
|
|
25
|
-
exportJSON(): SerializedUnknownConvertedNode;
|
|
26
|
-
isInline(): boolean;
|
|
27
|
-
updateDOM(prevNode: this, dom: HTMLElement): boolean;
|
|
28
|
-
}
|
|
29
|
-
export declare function $createUnknownConvertedNode({ data, }: {
|
|
30
|
-
data: UnknownConvertedNodeData;
|
|
31
|
-
}): UnknownConvertedNode;
|
|
32
|
-
export declare function $isUnknownConvertedNode(node: LexicalNode | null | undefined): node is UnknownConvertedNode;
|
|
33
|
-
//# sourceMappingURL=index.d.ts.map
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,OAAO,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAChG,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAA;AAGhC,OAAO,EAAyB,aAAa,EAAE,MAAM,SAAS,CAAA;AAG9D,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,OAAO,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,8BAA8B,GAAG,MAAM,CACjD;IACE,IAAI,EAAE,wBAAwB,CAAA;CAC/B,EACD,qBAAqB,CACtB,CAAA;AAQD,oBAAoB;AACpB,qBAAa,oBAAqB,SAAQ,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC;IAClE,MAAM,EAAE,wBAAwB,CAAA;gBAEpB,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE;QAAE,IAAI,EAAE,wBAAwB,CAAC;QAAC,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE;WAK5D,KAAK,CAAC,IAAI,EAAE,oBAAoB,GAAG,oBAAoB;WAOvD,OAAO,IAAI,MAAM;WAIjB,UAAU,CAAC,cAAc,EAAE,8BAA8B,GAAG,oBAAoB;IAKhG,kBAAkB,IAAI,IAAI;IAI1B,mBAAmB,IAAI,IAAI;IAIlB,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,WAAW;IAM5C,QAAQ,IAAI,GAAG,CAAC,OAAO;IAIvB,UAAU,IAAI,8BAA8B;IAU5C,QAAQ,IAAI,OAAO;IAInB,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,GAAG,OAAO;CAG9D;AAED,wBAAgB,2BAA2B,CAAC,EAC1C,IAAI,GACL,EAAE;IACD,IAAI,EAAE,wBAAwB,CAAA;CAC/B,GAAG,oBAAoB,CAMvB;AAED,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACnC,IAAI,IAAI,oBAAoB,CAE9B"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { addClassNamesToElement } from '@lexical/utils';
|
|
3
|
-
import { $applyNodeReplacement, DecoratorNode } from 'lexical';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
const Component = /*#__PURE__*/React.lazy(() => import('./Component.js').then(module => ({
|
|
6
|
-
default: module.UnknownConvertedNodeComponent
|
|
7
|
-
})));
|
|
8
|
-
/** @noInheritDoc */
|
|
9
|
-
export class UnknownConvertedNode extends DecoratorNode {
|
|
10
|
-
__data;
|
|
11
|
-
constructor({
|
|
12
|
-
data,
|
|
13
|
-
key
|
|
14
|
-
}) {
|
|
15
|
-
super(key);
|
|
16
|
-
this.__data = data;
|
|
17
|
-
}
|
|
18
|
-
static clone(node) {
|
|
19
|
-
return new this({
|
|
20
|
-
data: node.__data,
|
|
21
|
-
key: node.__key
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
static getType() {
|
|
25
|
-
return 'unknownConverted';
|
|
26
|
-
}
|
|
27
|
-
static importJSON(serializedNode) {
|
|
28
|
-
const node = $createUnknownConvertedNode({
|
|
29
|
-
data: serializedNode.data
|
|
30
|
-
});
|
|
31
|
-
return node;
|
|
32
|
-
}
|
|
33
|
-
canInsertTextAfter() {
|
|
34
|
-
return true;
|
|
35
|
-
}
|
|
36
|
-
canInsertTextBefore() {
|
|
37
|
-
return true;
|
|
38
|
-
}
|
|
39
|
-
createDOM(config) {
|
|
40
|
-
const element = document.createElement('span');
|
|
41
|
-
addClassNamesToElement(element, 'unknownConverted');
|
|
42
|
-
return element;
|
|
43
|
-
}
|
|
44
|
-
decorate() {
|
|
45
|
-
return /*#__PURE__*/_jsx(Component, {
|
|
46
|
-
data: this.__data
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
exportJSON() {
|
|
50
|
-
return {
|
|
51
|
-
type: this.getType(),
|
|
52
|
-
data: this.__data,
|
|
53
|
-
version: 1
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
// Mutation
|
|
57
|
-
isInline() {
|
|
58
|
-
return true;
|
|
59
|
-
}
|
|
60
|
-
updateDOM(prevNode, dom) {
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
export function $createUnknownConvertedNode({
|
|
65
|
-
data
|
|
66
|
-
}) {
|
|
67
|
-
return $applyNodeReplacement(new UnknownConvertedNode({
|
|
68
|
-
data
|
|
69
|
-
}));
|
|
70
|
-
}
|
|
71
|
-
export function $isUnknownConvertedNode(node) {
|
|
72
|
-
return node instanceof UnknownConvertedNode;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["addClassNamesToElement","$applyNodeReplacement","DecoratorNode","React","Component","lazy","then","module","default","UnknownConvertedNodeComponent","UnknownConvertedNode","__data","constructor","data","key","clone","node","__key","getType","importJSON","serializedNode","$createUnknownConvertedNode","canInsertTextAfter","canInsertTextBefore","createDOM","config","element","document","createElement","decorate","_jsx","exportJSON","type","version","isInline","updateDOM","prevNode","dom","$isUnknownConvertedNode"],"sources":["../../../../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.tsx"],"sourcesContent":["import type { EditorConfig, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from 'lexical'\nimport type { JSX } from 'react'\n\nimport { addClassNamesToElement } from '@lexical/utils'\nimport { $applyNodeReplacement, DecoratorNode } from 'lexical'\nimport * as React from 'react'\n\nexport type UnknownConvertedNodeData = {\n nodeData: unknown\n nodeType: string\n}\n\nexport type SerializedUnknownConvertedNode = Spread<\n {\n data: UnknownConvertedNodeData\n },\n SerializedLexicalNode\n>\n\nconst Component = React.lazy(() =>\n import('./Component.js').then((module) => ({\n default: module.UnknownConvertedNodeComponent,\n })),\n)\n\n/** @noInheritDoc */\nexport class UnknownConvertedNode extends DecoratorNode<JSX.Element> {\n __data: UnknownConvertedNodeData\n\n constructor({ data, key }: { data: UnknownConvertedNodeData; key?: NodeKey }) {\n super(key)\n this.__data = data\n }\n\n static override clone(node: UnknownConvertedNode): UnknownConvertedNode {\n return new this({\n data: node.__data,\n key: node.__key,\n })\n }\n\n static override getType(): string {\n return 'unknownConverted'\n }\n\n static override importJSON(serializedNode: SerializedUnknownConvertedNode): UnknownConvertedNode {\n const node = $createUnknownConvertedNode({ data: serializedNode.data })\n return node\n }\n\n canInsertTextAfter(): true {\n return true\n }\n\n canInsertTextBefore(): true {\n return true\n }\n\n override createDOM(config: EditorConfig): HTMLElement {\n const element = document.createElement('span')\n addClassNamesToElement(element, 'unknownConverted')\n return element\n }\n\n override decorate(): JSX.Element {\n return <Component data={this.__data} />\n }\n\n override exportJSON(): SerializedUnknownConvertedNode {\n return {\n type: this.getType(),\n data: this.__data,\n version: 1,\n }\n }\n\n // Mutation\n\n override isInline(): boolean {\n return true\n }\n\n override updateDOM(prevNode: this, dom: HTMLElement): boolean {\n return false\n }\n}\n\nexport function $createUnknownConvertedNode({\n data,\n}: {\n data: UnknownConvertedNodeData\n}): UnknownConvertedNode {\n return $applyNodeReplacement(\n new UnknownConvertedNode({\n data,\n }),\n )\n}\n\nexport function $isUnknownConvertedNode(\n node: LexicalNode | null | undefined,\n): node is UnknownConvertedNode {\n return node instanceof UnknownConvertedNode\n}\n"],"mappings":";AAGA,SAASA,sBAAsB,QAAQ;AACvC,SAASC,qBAAqB,EAAEC,aAAa,QAAQ;AACrD,YAAYC,KAAA,MAAW;AAcvB,MAAMC,SAAA,gBAAYD,KAAA,CAAME,IAAI,CAAC,MAC3B,MAAM,CAAC,kBAAkBC,IAAI,CAAEC,MAAA,KAAY;EACzCC,OAAA,EAASD,MAAA,CAAOE;AAClB;AAGF;AACA,OAAO,MAAMC,oBAAA,SAA6BR,aAAA;EACxCS,MAAA;EAEAC,YAAY;IAAEC,IAAI;IAAEC;EAAG,CAAqD,EAAE;IAC5E,KAAK,CAACA,GAAA;IACN,IAAI,CAACH,MAAM,GAAGE,IAAA;EAChB;EAEA,OAAgBE,MAAMC,IAA0B,EAAwB;IACtE,OAAO,IAAI,IAAI,CAAC;MACdH,IAAA,EAAMG,IAAA,CAAKL,MAAM;MACjBG,GAAA,EAAKE,IAAA,CAAKC;IACZ;EACF;EAEA,OAAgBC,QAAA,EAAkB;IAChC,OAAO;EACT;EAEA,OAAgBC,WAAWC,cAA8C,EAAwB;IAC/F,MAAMJ,IAAA,GAAOK,2BAAA,CAA4B;MAAER,IAAA,EAAMO,cAAA,CAAeP;IAAK;IACrE,OAAOG,IAAA;EACT;EAEAM,mBAAA,EAA2B;IACzB,OAAO;EACT;EAEAC,oBAAA,EAA4B;IAC1B,OAAO;EACT;EAESC,UAAUC,MAAoB,EAAe;IACpD,MAAMC,OAAA,GAAUC,QAAA,CAASC,aAAa,CAAC;IACvC5B,sBAAA,CAAuB0B,OAAA,EAAS;IAChC,OAAOA,OAAA;EACT;EAESG,SAAA,EAAwB;IAC/B,oBAAOC,IAAA,CAAC1B,SAAA;MAAUS,IAAA,EAAM,IAAI,CAACF;;EAC/B;EAESoB,WAAA,EAA6C;IACpD,OAAO;MACLC,IAAA,EAAM,IAAI,CAACd,OAAO;MAClBL,IAAA,EAAM,IAAI,CAACF,MAAM;MACjBsB,OAAA,EAAS;IACX;EACF;EAEA;EAESC,SAAA,EAAoB;IAC3B,OAAO;EACT;EAESC,UAAUC,QAAc,EAAEC,GAAgB,EAAW;IAC5D,OAAO;EACT;AACF;AAEA,OAAO,SAAShB,4BAA4B;EAC1CR;AAAI,CAGL;EACC,OAAOZ,qBAAA,CACL,IAAIS,oBAAA,CAAqB;IACvBG;EACF;AAEJ;AAEA,OAAO,SAASyB,wBACdtB,IAAoC;EAEpC,OAAOA,IAAA,YAAgBN,oBAAA;AACzB","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,wBAAwB,EAAE,kBAiBtC,CAAA"}
|
package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateBlockquoteConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'quote',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'quote',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
direction: 'ltr',
|
|
16
|
-
format: '',
|
|
17
|
-
indent: 0,
|
|
18
|
-
version: 1
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
nodeTypes: ['blockquote']
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateBlockquoteConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","direction","format","indent","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/blockquote/converter.ts"],"sourcesContent":["import type { SerializedQuoteNode } from '../../../../../blockquote/server/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateBlockquoteConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'quote',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'quote',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n format: '',\n indent: 0,\n version: 1,\n } as const as SerializedQuoteNode\n },\n nodeTypes: ['blockquote'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,wBAAA,GAA+C;EAC1DC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/heading/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,qBAAqB,EAAE,kBAkBnC,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateHeadingConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'heading',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'heading',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
direction: 'ltr',
|
|
16
|
-
format: '',
|
|
17
|
-
indent: 0,
|
|
18
|
-
tag: slateNode.type,
|
|
19
|
-
version: 1
|
|
20
|
-
};
|
|
21
|
-
},
|
|
22
|
-
nodeTypes: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateHeadingConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","direction","format","indent","tag","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/heading/converter.ts"],"sourcesContent":["import type { SerializedHeadingNode } from '../../../../../heading/server/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateHeadingConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'heading',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'heading',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n format: '',\n indent: 0,\n tag: slateNode.type as 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6', // Slate puts the tag (h1 / h2 / ...) inside of node.type\n version: 1,\n } as const as SerializedHeadingNode\n },\n nodeTypes: ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,qBAAA,GAA4C;EACvDC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,GAAA,EAAKT,SAAA,CAAUC,IAAI;MACnBS,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC,MAAM,MAAM,MAAM,MAAM,MAAM;AAC5C","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/indent/converter.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,oBAAoB,EAAE,kBAgClC,CAAA"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateIndentConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
const convertChildren = (node, indentLevel = 0) => {
|
|
8
|
-
if (node?.type && (!node.children || node.type !== 'indent') || !node?.type && node?.text) {
|
|
9
|
-
return {
|
|
10
|
-
...convertSlateNodesToLexical({
|
|
11
|
-
canContainParagraphs: false,
|
|
12
|
-
converters,
|
|
13
|
-
parentNodeType: 'indent',
|
|
14
|
-
slateNodes: [node]
|
|
15
|
-
})[0],
|
|
16
|
-
indent: indentLevel
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
const children = node.children.map(child => convertChildren(child, indentLevel + 1));
|
|
20
|
-
return {
|
|
21
|
-
type: 'paragraph',
|
|
22
|
-
children,
|
|
23
|
-
direction: 'ltr',
|
|
24
|
-
format: '',
|
|
25
|
-
indent: indentLevel,
|
|
26
|
-
version: 1
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
return convertChildren(slateNode);
|
|
30
|
-
},
|
|
31
|
-
nodeTypes: ['indent']
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateIndentConverter","converter","converters","slateNode","convertChildren","node","indentLevel","type","children","text","canContainParagraphs","parentNodeType","slateNodes","indent","map","child","direction","format","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/indent/converter.ts"],"sourcesContent":["import type { SerializedLexicalNode, SerializedParagraphNode } from 'lexical'\n\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateIndentConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n const convertChildren = (node: any, indentLevel: number = 0): SerializedLexicalNode => {\n if (\n (node?.type && (!node.children || node.type !== 'indent')) ||\n (!node?.type && node?.text)\n ) {\n return {\n ...convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'indent',\n slateNodes: [node],\n })[0],\n indent: indentLevel,\n } as const as SerializedLexicalNode\n }\n\n const children = node.children.map((child: any) => convertChildren(child, indentLevel + 1))\n return {\n type: 'paragraph',\n children,\n direction: 'ltr',\n format: '',\n indent: indentLevel,\n version: 1,\n } as const as SerializedParagraphNode\n }\n\n return convertChildren(slateNode)\n },\n nodeTypes: ['indent'],\n}\n"],"mappings":"AAIA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,oBAAA,GAA2C;EACtDC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,MAAMC,eAAA,GAAkBA,CAACC,IAAA,EAAWC,WAAA,GAAsB,CAAC;MACzD,IACED,IAAC,EAAME,IAAA,KAAS,CAACF,IAAA,CAAKG,QAAQ,IAAIH,IAAA,CAAKE,IAAI,KAAK,QAAO,KACtD,CAACF,IAAA,EAAME,IAAA,IAAQF,IAAA,EAAMI,IAAA,EACtB;QACA,OAAO;UACL,GAAGV,0BAAA,CAA2B;YAC5BW,oBAAA,EAAsB;YACtBR,UAAA;YACAS,cAAA,EAAgB;YAChBC,UAAA,EAAY,CAACP,IAAA;UACf,EAAE,CAAC,EAAE;UACLQ,MAAA,EAAQP;QACV;MACF;MAEA,MAAME,QAAA,GAAWH,IAAA,CAAKG,QAAQ,CAACM,GAAG,CAAEC,KAAA,IAAeX,eAAA,CAAgBW,KAAA,EAAOT,WAAA,GAAc;MACxF,OAAO;QACLC,IAAA,EAAM;QACNC,QAAA;QACAQ,SAAA,EAAW;QACXC,MAAA,EAAQ;QACRJ,MAAA,EAAQP,WAAA;QACRY,OAAA,EAAS;MACX;IACF;IAEA,OAAOd,eAAA,CAAgBD,SAAA;EACzB;EACAgB,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/link/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,kBAAkB,EAAE,kBAwBhC,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateLinkConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'link',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'link',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
direction: 'ltr',
|
|
16
|
-
fields: {
|
|
17
|
-
...(slateNode.fields || {}),
|
|
18
|
-
doc: slateNode.doc || null,
|
|
19
|
-
linkType: slateNode.linkType || 'custom',
|
|
20
|
-
newTab: slateNode.newTab || false,
|
|
21
|
-
url: (slateNode.linkType || 'custom') === 'custom' ? slateNode.url || 'https' : undefined
|
|
22
|
-
},
|
|
23
|
-
format: '',
|
|
24
|
-
indent: 0,
|
|
25
|
-
version: 2
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
nodeTypes: ['link']
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=converter.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateLinkConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","direction","fields","doc","linkType","newTab","url","undefined","format","indent","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/link/converter.ts"],"sourcesContent":["import type { SerializedLinkNode } from '../../../../../link/nodes/types.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateLinkConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'link',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'link',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n fields: {\n ...(slateNode.fields || {}),\n doc: slateNode.doc || null,\n linkType: slateNode.linkType || 'custom',\n newTab: slateNode.newTab || false,\n url: (slateNode.linkType || 'custom') === 'custom' ? slateNode.url || 'https' : undefined, // can be undefined only if linkType is not custom, otherwise: validation error\n },\n format: '',\n indent: 0,\n version: 2,\n } as const as SerializedLinkNode\n },\n nodeTypes: ['link'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,kBAAA,GAAyC;EACpDC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;QACN,IAAIP,SAAA,CAAUO,MAAM,IAAI,CAAC,CAAC;QAC1BC,GAAA,EAAKR,SAAA,CAAUQ,GAAG,IAAI;QACtBC,QAAA,EAAUT,SAAA,CAAUS,QAAQ,IAAI;QAChCC,MAAA,EAAQV,SAAA,CAAUU,MAAM,IAAI;QAC5BC,GAAA,EAAK,CAACX,SAAA,CAAUS,QAAQ,IAAI,QAAO,MAAO,WAAWT,SAAA,CAAUW,GAAG,IAAI,UAAUC;MAClF;MACAC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/listItem/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,sBAAsB,EAAE,kBAmBpC,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateListItemConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
childIndex,
|
|
5
|
-
converters,
|
|
6
|
-
slateNode
|
|
7
|
-
}) {
|
|
8
|
-
return {
|
|
9
|
-
type: 'listitem',
|
|
10
|
-
checked: undefined,
|
|
11
|
-
children: convertSlateNodesToLexical({
|
|
12
|
-
canContainParagraphs: false,
|
|
13
|
-
converters,
|
|
14
|
-
parentNodeType: 'listitem',
|
|
15
|
-
slateNodes: slateNode.children
|
|
16
|
-
}),
|
|
17
|
-
direction: 'ltr',
|
|
18
|
-
format: '',
|
|
19
|
-
indent: 0,
|
|
20
|
-
value: childIndex + 1,
|
|
21
|
-
version: 1
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
nodeTypes: ['li']
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateListItemConverter","converter","childIndex","converters","slateNode","type","checked","undefined","children","canContainParagraphs","parentNodeType","slateNodes","direction","format","indent","value","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/listItem/converter.ts"],"sourcesContent":["import type { SerializedListItemNode } from '../../../../../lists/plugin/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateListItemConverter: SlateNodeConverter = {\n converter({ childIndex, converters, slateNode }) {\n return {\n type: 'listitem',\n checked: undefined,\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'listitem',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n format: '',\n indent: 0,\n value: childIndex + 1,\n version: 1,\n } as const as SerializedListItemNode\n },\n nodeTypes: ['li'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,sBAAA,GAA6C;EACxDC,UAAU;IAAEC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IAC7C,OAAO;MACLC,IAAA,EAAM;MACNC,OAAA,EAASC,SAAA;MACTC,QAAA,EAAUT,0BAAA,CAA2B;QACnCU,oBAAA,EAAsB;QACtBN,UAAA;QACAO,cAAA,EAAgB;QAChBC,UAAA,EAAYP,SAAA,CAAUI;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,KAAA,EAAOb,UAAA,GAAa;MACpBc,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,yBAAyB,EAAE,kBAoBvC,CAAA"}
|
package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateOrderedListConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'list',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'list',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
direction: 'ltr',
|
|
16
|
-
format: '',
|
|
17
|
-
indent: 0,
|
|
18
|
-
listType: 'number',
|
|
19
|
-
start: 1,
|
|
20
|
-
tag: 'ol',
|
|
21
|
-
version: 1
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
nodeTypes: ['ol']
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateOrderedListConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","direction","format","indent","listType","start","tag","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/orderedList/converter.ts"],"sourcesContent":["import type { SerializedListNode } from '../../../../../lists/plugin/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateOrderedListConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'list',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'list',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n format: '',\n indent: 0,\n listType: 'number',\n start: 1,\n tag: 'ol',\n version: 1,\n } as const as SerializedListNode\n },\n nodeTypes: ['ol'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,yBAAA,GAAgD;EAC3DC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,QAAA,EAAU;MACVC,KAAA,EAAO;MACPC,GAAA,EAAK;MACLC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/relationship/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,eAAO,MAAM,0BAA0B,EAAE,kBAWxC,CAAA"}
|
package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export const SlateRelationshipConverter = {
|
|
2
|
-
converter({
|
|
3
|
-
slateNode
|
|
4
|
-
}) {
|
|
5
|
-
return {
|
|
6
|
-
type: 'relationship',
|
|
7
|
-
format: '',
|
|
8
|
-
relationTo: slateNode.relationTo,
|
|
9
|
-
value: slateNode?.value?.id || '',
|
|
10
|
-
version: 2
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
nodeTypes: ['relationship']
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["SlateRelationshipConverter","converter","slateNode","type","format","relationTo","value","id","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/relationship/converter.ts"],"sourcesContent":["import type { SerializedRelationshipNode } from '../../../../../relationship/server/nodes/RelationshipNode.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nexport const SlateRelationshipConverter: SlateNodeConverter = {\n converter({ slateNode }) {\n return {\n type: 'relationship',\n format: '',\n relationTo: slateNode.relationTo,\n value: slateNode?.value?.id || '',\n version: 2,\n } as const as SerializedRelationshipNode\n },\n nodeTypes: ['relationship'],\n}\n"],"mappings":"AAGA,OAAO,MAAMA,0BAAA,GAAiD;EAC5DC,UAAU;IAAEC;EAAS,CAAE;IACrB,OAAO;MACLC,IAAA,EAAM;MACNC,MAAA,EAAQ;MACRC,UAAA,EAAYH,SAAA,CAAUG,UAAU;MAChCC,KAAA,EAAOJ,SAAA,EAAWI,KAAA,EAAOC,EAAA,IAAM;MAC/BC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/unknown/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,qBAAqB,EAAE,kBAqBnC,CAAA"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateUnknownConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'unknownConverted',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'unknownConverted',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
data: {
|
|
16
|
-
nodeData: slateNode,
|
|
17
|
-
nodeType: slateNode.type
|
|
18
|
-
},
|
|
19
|
-
direction: 'ltr',
|
|
20
|
-
format: '',
|
|
21
|
-
indent: 0,
|
|
22
|
-
version: 1
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
nodeTypes: ['unknown']
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateUnknownConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","data","nodeData","nodeType","direction","format","indent","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/unknown/converter.ts"],"sourcesContent":["import type { SerializedUnknownConvertedNode } from '../../../nodes/unknownConvertedNode/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateUnknownConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'unknownConverted',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'unknownConverted',\n slateNodes: slateNode.children!,\n }),\n data: {\n nodeData: slateNode,\n nodeType: slateNode.type,\n },\n direction: 'ltr',\n format: '',\n indent: 0,\n version: 1,\n } as const as SerializedUnknownConvertedNode\n },\n nodeTypes: ['unknown'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,qBAAA,GAA4C;EACvDC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,IAAA,EAAM;QACJC,QAAA,EAAUP,SAAA;QACVQ,QAAA,EAAUR,SAAA,CAAUC;MACtB;MACAQ,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAIxD,eAAO,MAAM,2BAA2B,EAAE,kBAoBzC,CAAA"}
|
package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { convertSlateNodesToLexical } from '../../index.js';
|
|
2
|
-
export const SlateUnorderedListConverter = {
|
|
3
|
-
converter({
|
|
4
|
-
converters,
|
|
5
|
-
slateNode
|
|
6
|
-
}) {
|
|
7
|
-
return {
|
|
8
|
-
type: 'list',
|
|
9
|
-
children: convertSlateNodesToLexical({
|
|
10
|
-
canContainParagraphs: false,
|
|
11
|
-
converters,
|
|
12
|
-
parentNodeType: 'list',
|
|
13
|
-
slateNodes: slateNode.children
|
|
14
|
-
}),
|
|
15
|
-
direction: 'ltr',
|
|
16
|
-
format: '',
|
|
17
|
-
indent: 0,
|
|
18
|
-
listType: 'bullet',
|
|
19
|
-
start: 1,
|
|
20
|
-
tag: 'ul',
|
|
21
|
-
version: 1
|
|
22
|
-
};
|
|
23
|
-
},
|
|
24
|
-
nodeTypes: ['ul']
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["convertSlateNodesToLexical","SlateUnorderedListConverter","converter","converters","slateNode","type","children","canContainParagraphs","parentNodeType","slateNodes","direction","format","indent","listType","start","tag","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/unorderedList/converter.ts"],"sourcesContent":["import type { SerializedListNode } from '../../../../../lists/plugin/index.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nimport { convertSlateNodesToLexical } from '../../index.js'\n\nexport const SlateUnorderedListConverter: SlateNodeConverter = {\n converter({ converters, slateNode }) {\n return {\n type: 'list',\n children: convertSlateNodesToLexical({\n canContainParagraphs: false,\n converters,\n parentNodeType: 'list',\n slateNodes: slateNode.children!,\n }),\n direction: 'ltr',\n format: '',\n indent: 0,\n listType: 'bullet',\n start: 1,\n tag: 'ul',\n version: 1,\n } as const as SerializedListNode\n },\n nodeTypes: ['ul'],\n}\n"],"mappings":"AAGA,SAASA,0BAA0B,QAAQ;AAE3C,OAAO,MAAMC,2BAAA,GAAkD;EAC7DC,UAAU;IAAEC,UAAU;IAAEC;EAAS,CAAE;IACjC,OAAO;MACLC,IAAA,EAAM;MACNC,QAAA,EAAUN,0BAAA,CAA2B;QACnCO,oBAAA,EAAsB;QACtBJ,UAAA;QACAK,cAAA,EAAgB;QAChBC,UAAA,EAAYL,SAAA,CAAUE;MACxB;MACAI,SAAA,EAAW;MACXC,MAAA,EAAQ;MACRC,MAAA,EAAQ;MACRC,QAAA,EAAU;MACVC,KAAA,EAAO;MACPC,GAAA,EAAK;MACLC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/upload/converter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAExD,eAAO,MAAM,oBAAoB,EAAE,kBAclC,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export const SlateUploadConverter = {
|
|
2
|
-
converter({
|
|
3
|
-
slateNode
|
|
4
|
-
}) {
|
|
5
|
-
return {
|
|
6
|
-
type: 'upload',
|
|
7
|
-
fields: {
|
|
8
|
-
...slateNode.fields
|
|
9
|
-
},
|
|
10
|
-
format: '',
|
|
11
|
-
relationTo: slateNode.relationTo,
|
|
12
|
-
value: slateNode.value?.id || '',
|
|
13
|
-
version: 2
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
nodeTypes: ['upload']
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=converter.js.map
|
package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"converter.js","names":["SlateUploadConverter","converter","slateNode","type","fields","format","relationTo","value","id","version","nodeTypes"],"sources":["../../../../../../../src/features/migrations/slateToLexical/converter/converters/upload/converter.ts"],"sourcesContent":["import type { SerializedUploadNode } from '../../../../../upload/server/nodes/UploadNode.js'\nimport type { SlateNodeConverter } from '../../types.js'\n\nexport const SlateUploadConverter: SlateNodeConverter = {\n converter({ slateNode }) {\n return {\n type: 'upload',\n fields: {\n ...slateNode.fields,\n },\n format: '',\n relationTo: slateNode.relationTo,\n value: slateNode.value?.id || '',\n version: 2,\n } as const as SerializedUploadNode\n },\n nodeTypes: ['upload'],\n}\n"],"mappings":"AAGA,OAAO,MAAMA,oBAAA,GAA2C;EACtDC,UAAU;IAAEC;EAAS,CAAE;IACrB,OAAO;MACLC,IAAA,EAAM;MACNC,MAAA,EAAQ;QACN,GAAGF,SAAA,CAAUE;MACf;MACAC,MAAA,EAAQ;MACRC,UAAA,EAAYJ,SAAA,CAAUI,UAAU;MAChCC,KAAA,EAAOL,SAAA,CAAUK,KAAK,EAAEC,EAAA,IAAM;MAC9BC,OAAA,EAAS;IACX;EACF;EACAC,SAAA,EAAW,CAAC;AACd","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultConverters.d.ts","sourceRoot":"","sources":["../../../../../src/features/migrations/slateToLexical/converter/defaultConverters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAapD,eAAO,MAAM,sBAAsB,EAAE,kBAAkB,EAWtD,CAAA"}
|