@payloadcms/richtext-lexical 3.0.0-beta.7 → 3.0.0-beta.71
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/README.md +1 -1
- package/dist/cell/index.d.ts +5 -2
- package/dist/cell/index.d.ts.map +1 -1
- package/dist/cell/index.js +50 -36
- package/dist/cell/index.js.map +1 -1
- package/dist/exports/client/Component-7HS6FEJS.js +2 -0
- package/dist/exports/client/Component-7HS6FEJS.js.map +7 -0
- package/dist/exports/client/Component-LAKSCIDX.js +2 -0
- package/dist/exports/client/Component-LAKSCIDX.js.map +7 -0
- package/dist/exports/client/Field-YNHIDK3D.js +2 -0
- package/dist/exports/client/Field-YNHIDK3D.js.map +7 -0
- package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js +2 -0
- package/dist/exports/client/RelationshipComponent-ZR2OCBGL.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -0
- package/dist/exports/client/chunk-6QXGZYUK.js +2 -0
- package/dist/exports/client/chunk-6QXGZYUK.js.map +7 -0
- package/dist/exports/client/chunk-EBB2CEB6.js +2 -0
- package/dist/exports/client/chunk-EBB2CEB6.js.map +7 -0
- package/dist/exports/client/chunk-IPCJ5EVK.js +2 -0
- package/dist/exports/client/chunk-IPCJ5EVK.js.map +7 -0
- package/dist/exports/client/chunk-IWZVO3AI.js +2 -0
- package/dist/exports/client/chunk-IWZVO3AI.js.map +7 -0
- package/dist/exports/client/chunk-Q5DYR7MH.js +3 -0
- package/dist/exports/client/chunk-Q5DYR7MH.js.map +7 -0
- package/dist/exports/client/chunk-VUVXZJJR.js +2 -0
- package/dist/exports/client/chunk-VUVXZJJR.js.map +7 -0
- package/dist/exports/client/component-D4GWDXK5.js +2 -0
- package/dist/exports/client/component-D4GWDXK5.js.map +7 -0
- package/dist/exports/client/component-KA7FDRMA.js +2 -0
- package/dist/exports/client/component-KA7FDRMA.js.map +7 -0
- package/dist/exports/client/component-VM36FRT2.js +2 -0
- package/dist/exports/client/component-VM36FRT2.js.map +7 -0
- package/dist/exports/client/componentInline-6EKPZSCV.js +2 -0
- package/dist/exports/client/componentInline-6EKPZSCV.js.map +7 -0
- package/dist/exports/client/index.d.ts +63 -0
- package/dist/exports/client/index.d.ts.map +1 -0
- package/dist/exports/client/index.js +38 -0
- package/dist/exports/client/index.js.map +7 -0
- package/dist/features/align/feature.client.d.ts +5 -0
- package/dist/features/align/feature.client.d.ts.map +1 -0
- package/dist/features/align/feature.client.js +146 -0
- package/dist/features/align/feature.client.js.map +1 -0
- package/dist/features/align/feature.server.d.ts +2 -0
- package/dist/features/align/feature.server.d.ts.map +1 -0
- package/dist/features/align/feature.server.js +13 -0
- package/dist/features/align/feature.server.js.map +1 -0
- package/dist/features/align/i18n.d.ts +3 -0
- package/dist/features/align/i18n.d.ts.map +1 -0
- package/dist/features/align/i18n.js +196 -0
- package/dist/features/align/i18n.js.map +1 -0
- package/dist/features/align/toolbarAlignGroup.d.ts +3 -0
- package/dist/features/align/toolbarAlignGroup.d.ts.map +1 -0
- package/dist/features/align/toolbarAlignGroup.js +12 -0
- package/dist/features/align/toolbarAlignGroup.js.map +1 -0
- package/dist/features/blockquote/feature.client.d.ts +5 -0
- package/dist/features/blockquote/feature.client.d.ts.map +1 -0
- package/dist/features/blockquote/feature.client.js +77 -0
- package/dist/features/blockquote/feature.client.js.map +1 -0
- package/dist/features/blockquote/feature.server.d.ts +7 -0
- package/dist/features/blockquote/feature.server.d.ts.map +1 -0
- package/dist/features/blockquote/feature.server.js +45 -0
- package/dist/features/blockquote/feature.server.js.map +1 -0
- package/dist/features/blockquote/i18n.d.ts +3 -0
- package/dist/features/blockquote/i18n.d.ts.map +1 -0
- package/dist/features/blockquote/i18n.js +100 -0
- package/dist/features/blockquote/i18n.js.map +1 -0
- package/dist/features/blockquote/markdownTransformer.d.ts.map +1 -0
- package/dist/features/blockquote/markdownTransformer.js +40 -0
- package/dist/features/blockquote/markdownTransformer.js.map +1 -0
- package/dist/features/blocks/component/BlockContent.d.ts +27 -0
- package/dist/features/blocks/component/BlockContent.d.ts.map +1 -0
- package/dist/features/blocks/component/BlockContent.js +196 -0
- package/dist/features/blocks/component/BlockContent.js.map +1 -0
- package/dist/features/blocks/component/FormSavePlugin.d.ts +11 -0
- package/dist/features/blocks/component/FormSavePlugin.d.ts.map +1 -0
- package/dist/features/blocks/component/FormSavePlugin.js +29 -0
- package/dist/features/blocks/component/FormSavePlugin.js.map +1 -0
- package/dist/features/blocks/component/index.d.ts +11 -0
- package/dist/features/blocks/component/index.d.ts.map +1 -0
- package/dist/features/blocks/component/index.js +162 -0
- package/dist/features/blocks/component/index.js.map +1 -0
- package/dist/features/blocks/component/removeEmptyArrayValues.d.ts +11 -0
- package/dist/features/blocks/component/removeEmptyArrayValues.d.ts.map +1 -0
- package/dist/features/blocks/component/removeEmptyArrayValues.js.map +1 -0
- package/dist/features/blocks/componentInline/index.d.ts +10 -0
- package/dist/features/blocks/componentInline/index.d.ts.map +1 -0
- package/dist/features/blocks/componentInline/index.js +133 -0
- package/dist/features/blocks/componentInline/index.js.map +1 -0
- package/dist/features/blocks/feature.client.d.ts +13 -0
- package/dist/features/blocks/feature.client.d.ts.map +1 -0
- package/dist/features/blocks/feature.client.js +148 -0
- package/dist/features/blocks/feature.client.js.map +1 -0
- package/dist/features/blocks/feature.server.d.ts +8 -0
- package/dist/features/blocks/feature.server.d.ts.map +1 -0
- package/dist/features/blocks/feature.server.js +160 -0
- package/dist/features/blocks/feature.server.js.map +1 -0
- package/dist/features/blocks/graphQLPopulationPromise.d.ts +6 -0
- package/dist/features/blocks/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/blocks/graphQLPopulationPromise.js +31 -0
- package/dist/features/blocks/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/blocks/i18n.d.ts +3 -0
- package/dist/features/blocks/i18n.d.ts.map +1 -0
- package/dist/features/blocks/i18n.js +292 -0
- package/dist/features/blocks/i18n.js.map +1 -0
- package/dist/features/blocks/nodes/BlocksNode.d.ts +38 -0
- package/dist/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/nodes/BlocksNode.js +92 -0
- package/dist/features/blocks/nodes/BlocksNode.js.map +1 -0
- package/dist/features/blocks/nodes/InlineBlocksNode.d.ts +39 -0
- package/dist/features/blocks/nodes/InlineBlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/nodes/InlineBlocksNode.js +94 -0
- package/dist/features/blocks/nodes/InlineBlocksNode.js.map +1 -0
- package/dist/features/blocks/plugin/commands.d.ts +9 -0
- package/dist/features/blocks/plugin/commands.d.ts.map +1 -0
- package/dist/features/blocks/plugin/commands.js +6 -0
- package/dist/features/blocks/plugin/commands.js.map +1 -0
- package/dist/features/blocks/plugin/index.d.ts +6 -0
- package/dist/features/blocks/plugin/index.d.ts.map +1 -0
- package/dist/features/blocks/plugin/index.js +111 -0
- package/dist/features/blocks/plugin/index.js.map +1 -0
- package/dist/features/blocks/validate.d.ts +6 -0
- package/dist/features/blocks/validate.d.ts.map +1 -0
- package/dist/features/blocks/validate.js +36 -0
- package/dist/features/blocks/validate.js.map +1 -0
- package/dist/features/converters/html/converter/converters/linebreak.d.ts.map +1 -0
- package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -0
- package/dist/features/converters/html/converter/converters/paragraph.d.ts.map +1 -0
- package/dist/features/converters/html/converter/converters/paragraph.js +20 -0
- package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -0
- package/dist/features/converters/html/converter/converters/text.d.ts.map +1 -0
- package/dist/features/converters/html/converter/converters/text.js.map +1 -0
- package/dist/features/converters/html/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/converters/html/converter/defaultConverters.js.map +1 -0
- package/dist/features/converters/html/converter/index.d.ts +42 -0
- package/dist/features/converters/html/converter/index.d.ts.map +1 -0
- package/dist/features/converters/html/converter/index.js +48 -0
- package/dist/features/converters/html/converter/index.js.map +1 -0
- package/dist/features/converters/html/converter/types.d.ts +19 -0
- package/dist/features/converters/html/converter/types.d.ts.map +1 -0
- package/dist/features/converters/html/converter/types.js.map +1 -0
- package/dist/features/converters/html/feature.server.d.ts +8 -0
- package/dist/features/converters/html/feature.server.d.ts.map +1 -0
- package/dist/features/converters/html/feature.server.js +8 -0
- package/dist/features/converters/html/feature.server.js.map +1 -0
- package/dist/features/converters/html/field/index.d.ts +35 -0
- package/dist/features/converters/html/field/index.d.ts.map +1 -0
- package/dist/features/converters/html/field/index.js +154 -0
- package/dist/features/converters/html/field/index.js.map +1 -0
- package/dist/features/createClientComponent.d.ts +7 -0
- package/dist/features/createClientComponent.d.ts.map +1 -0
- package/dist/features/createClientComponent.js +12 -0
- package/dist/features/createClientComponent.js.map +1 -0
- package/dist/features/createFeaturePropComponent.d.ts.map +1 -0
- package/dist/features/createFeaturePropComponent.js +18 -0
- package/dist/features/createFeaturePropComponent.js.map +1 -0
- package/dist/features/debug/testRecorder/feature.client.d.ts +5 -0
- package/dist/features/debug/testRecorder/feature.client.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/feature.client.js +13 -0
- package/dist/features/debug/testRecorder/feature.client.js.map +1 -0
- package/dist/features/debug/testRecorder/feature.server.d.ts +2 -0
- package/dist/features/debug/testRecorder/feature.server.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/feature.server.js +11 -0
- package/dist/features/debug/testRecorder/feature.server.js.map +1 -0
- package/dist/features/debug/testRecorder/plugin/index.d.ts +5 -0
- package/dist/features/debug/testRecorder/plugin/index.d.ts.map +1 -0
- package/dist/features/debug/testRecorder/plugin/index.js +471 -0
- package/dist/features/debug/testRecorder/plugin/index.js.map +1 -0
- package/dist/features/debug/treeView/feature.client.d.ts +5 -0
- package/dist/features/debug/treeView/feature.client.d.ts.map +1 -0
- package/dist/features/debug/treeView/feature.client.js +13 -0
- package/dist/features/debug/treeView/feature.client.js.map +1 -0
- package/dist/features/debug/treeView/feature.server.d.ts +2 -0
- package/dist/features/debug/treeView/feature.server.d.ts.map +1 -0
- package/dist/features/debug/treeView/feature.server.js +11 -0
- package/dist/features/debug/treeView/feature.server.js.map +1 -0
- package/dist/features/debug/treeView/plugin/index.d.ts +4 -0
- package/dist/features/debug/treeView/plugin/index.d.ts.map +1 -0
- package/dist/features/debug/treeView/plugin/index.js +19 -0
- package/dist/features/debug/treeView/plugin/index.js.map +1 -0
- package/dist/features/experimental_table/feature.client.d.ts +2 -0
- package/dist/features/experimental_table/feature.client.d.ts.map +1 -0
- package/dist/features/experimental_table/feature.client.js +66 -0
- package/dist/features/experimental_table/feature.client.js.map +1 -0
- package/dist/features/experimental_table/feature.server.d.ts +2 -0
- package/dist/features/experimental_table/feature.server.d.ts.map +1 -0
- package/dist/features/experimental_table/feature.server.js +52 -0
- package/dist/features/experimental_table/feature.server.js.map +1 -0
- package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts +4 -0
- package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js +602 -0
- package/dist/features/experimental_table/plugins/TableActionMenuPlugin/index.js.map +1 -0
- package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts +4 -0
- package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js +322 -0
- package/dist/features/experimental_table/plugins/TableCellResizerPlugin/index.js.map +1 -0
- package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts +24 -0
- package/dist/features/experimental_table/plugins/TablePlugin/index.d.ts.map +1 -0
- package/dist/features/experimental_table/plugins/TablePlugin/index.js +98 -0
- package/dist/features/experimental_table/plugins/TablePlugin/index.js.map +1 -0
- package/dist/features/format/bold/feature.client.d.ts +5 -0
- package/dist/features/format/bold/feature.client.d.ts.map +1 -0
- package/dist/features/format/bold/feature.client.js +44 -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 +25 -0
- package/dist/features/format/bold/feature.server.js.map +1 -0
- package/dist/features/format/bold/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/bold/markdownTransformers.js.map +1 -0
- package/dist/features/format/inlineCode/feature.client.d.ts +5 -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 +15 -0
- package/dist/features/format/inlineCode/feature.server.js.map +1 -0
- package/dist/features/format/inlineCode/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -0
- package/dist/features/format/italic/feature.client.d.ts +5 -0
- package/dist/features/format/italic/feature.client.d.ts.map +1 -0
- package/dist/features/format/italic/feature.client.js +38 -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 +16 -0
- package/dist/features/format/italic/feature.server.js.map +1 -0
- package/dist/features/format/italic/markdownTransformers.d.ts.map +1 -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 +10 -0
- package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -0
- package/dist/features/format/strikethrough/feature.client.d.ts +5 -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 +15 -0
- package/dist/features/format/strikethrough/feature.server.js.map +1 -0
- package/dist/features/format/strikethrough/markdownTransformers.d.ts.map +1 -0
- package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -0
- package/dist/features/format/subscript/feature.client.d.ts +5 -0
- package/dist/features/format/subscript/feature.client.d.ts.map +1 -0
- package/dist/features/format/subscript/feature.client.js +33 -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 +11 -0
- package/dist/features/format/subscript/feature.server.js.map +1 -0
- package/dist/features/format/superscript/feature.client.d.ts +5 -0
- package/dist/features/format/superscript/feature.client.d.ts.map +1 -0
- package/dist/features/format/superscript/feature.client.js +33 -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 +11 -0
- package/dist/features/format/superscript/feature.server.js.map +1 -0
- package/dist/features/format/underline/feature.client.d.ts +5 -0
- package/dist/features/format/underline/feature.client.d.ts.map +1 -0
- package/dist/features/format/underline/feature.client.js +33 -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 +11 -0
- package/dist/features/format/underline/feature.server.js.map +1 -0
- package/dist/features/heading/feature.client.d.ts +6 -0
- package/dist/features/heading/feature.client.d.ts.map +1 -0
- package/dist/features/heading/feature.client.js +112 -0
- package/dist/features/heading/feature.client.js.map +1 -0
- package/dist/features/heading/feature.server.d.ts +10 -0
- package/dist/features/heading/feature.server.d.ts.map +1 -0
- package/dist/features/heading/feature.server.js +59 -0
- package/dist/features/heading/feature.server.js.map +1 -0
- package/dist/features/heading/i18n.d.ts +3 -0
- package/dist/features/heading/i18n.d.ts.map +1 -0
- package/dist/features/heading/i18n.js +100 -0
- package/dist/features/heading/i18n.js.map +1 -0
- package/dist/features/heading/markdownTransformer.d.ts.map +1 -0
- package/dist/features/heading/markdownTransformer.js +29 -0
- package/dist/features/heading/markdownTransformer.js.map +1 -0
- package/dist/features/horizontalRule/component/index.d.ts.map +1 -0
- package/dist/features/horizontalRule/component/index.js +67 -0
- package/dist/features/horizontalRule/component/index.js.map +1 -0
- package/dist/features/horizontalRule/feature.client.d.ts +5 -0
- package/dist/features/horizontalRule/feature.client.d.ts.map +1 -0
- package/dist/features/horizontalRule/feature.client.js +70 -0
- package/dist/features/horizontalRule/feature.client.js.map +1 -0
- package/dist/features/horizontalRule/feature.server.d.ts +2 -0
- package/dist/features/horizontalRule/feature.server.d.ts.map +1 -0
- package/dist/features/horizontalRule/feature.server.js +34 -0
- package/dist/features/horizontalRule/feature.server.js.map +1 -0
- package/dist/features/horizontalRule/i18n.d.ts +3 -0
- package/dist/features/horizontalRule/i18n.d.ts.map +1 -0
- package/dist/features/horizontalRule/i18n.js +100 -0
- package/dist/features/horizontalRule/i18n.js.map +1 -0
- package/dist/features/horizontalRule/markdownTransformer.d.ts.map +1 -0
- package/dist/features/horizontalRule/markdownTransformer.js.map +1 -0
- package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts +56 -0
- package/dist/features/horizontalRule/nodes/HorizontalRuleNode.d.ts.map +1 -0
- package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js +92 -0
- package/dist/features/horizontalRule/nodes/HorizontalRuleNode.js.map +1 -0
- package/dist/features/horizontalRule/plugin/index.d.ts +7 -0
- package/dist/features/horizontalRule/plugin/index.d.ts.map +1 -0
- package/dist/features/horizontalRule/plugin/index.js +30 -0
- package/dist/features/horizontalRule/plugin/index.js.map +1 -0
- package/dist/features/indent/feature.client.d.ts +5 -0
- package/dist/features/indent/feature.client.d.ts.map +1 -0
- package/dist/features/indent/feature.client.js +56 -0
- package/dist/features/indent/feature.client.js.map +1 -0
- package/dist/features/indent/feature.server.d.ts +2 -0
- package/dist/features/indent/feature.server.d.ts.map +1 -0
- package/dist/features/indent/feature.server.js +13 -0
- package/dist/features/indent/feature.server.js.map +1 -0
- package/dist/features/indent/i18n.d.ts +3 -0
- package/dist/features/indent/i18n.d.ts.map +1 -0
- package/dist/features/indent/i18n.js +132 -0
- package/dist/features/indent/i18n.js.map +1 -0
- package/dist/features/indent/toolbarIndentGroup.d.ts +3 -0
- package/dist/features/indent/toolbarIndentGroup.d.ts.map +1 -0
- package/dist/features/indent/toolbarIndentGroup.js +10 -0
- package/dist/features/indent/toolbarIndentGroup.js.map +1 -0
- package/dist/features/link/drawer/baseFields.d.ts +3 -0
- package/dist/features/link/drawer/baseFields.d.ts.map +1 -0
- package/dist/features/link/drawer/baseFields.js +94 -0
- package/dist/features/link/drawer/baseFields.js.map +1 -0
- package/dist/features/link/feature.client.d.ts +16 -0
- package/dist/features/link/feature.client.d.ts.map +1 -0
- package/dist/features/link/feature.client.js +101 -0
- package/dist/features/link/feature.client.js.map +1 -0
- package/dist/features/link/feature.server.d.ts +35 -0
- package/dist/features/link/feature.server.d.ts.map +1 -0
- package/dist/features/link/feature.server.js +128 -0
- package/dist/features/link/feature.server.js.map +1 -0
- package/dist/features/link/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/link/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/link/graphQLPopulationPromise.js +31 -0
- package/dist/features/link/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/link/i18n.d.ts +3 -0
- package/dist/features/link/i18n.d.ts.map +1 -0
- package/dist/features/link/i18n.js +100 -0
- package/dist/features/link/i18n.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 +50 -0
- package/dist/features/link/markdownTransformer.js.map +1 -0
- package/dist/features/link/nodes/AutoLinkNode.d.ts.map +1 -0
- package/dist/features/link/nodes/AutoLinkNode.js +68 -0
- package/dist/features/link/nodes/AutoLinkNode.js.map +1 -0
- package/dist/features/link/nodes/LinkNode.d.ts +39 -0
- package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
- package/dist/features/link/nodes/LinkNode.js +317 -0
- package/dist/features/link/nodes/LinkNode.js.map +1 -0
- package/dist/features/link/nodes/types.d.ts +24 -0
- package/dist/features/link/nodes/types.d.ts.map +1 -0
- package/dist/features/link/nodes/types.js.map +1 -0
- package/dist/features/link/plugins/autoLink/index.d.ts +20 -0
- package/dist/features/link/plugins/autoLink/index.d.ts.map +1 -0
- package/dist/features/link/plugins/autoLink/index.js +323 -0
- package/dist/features/link/plugins/autoLink/index.js.map +1 -0
- package/dist/features/link/plugins/clickableLink/index.d.ts +4 -0
- package/dist/features/link/plugins/clickableLink/index.d.ts.map +1 -0
- package/dist/features/link/plugins/clickableLink/index.js +9 -0
- package/dist/features/link/plugins/clickableLink/index.js.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +4 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +299 -0
- package/dist/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/index.d.ts +5 -0
- package/dist/features/link/plugins/floatingLinkEditor/index.d.ts.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/index.js +13 -0
- package/dist/features/link/plugins/floatingLinkEditor/index.js.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/types.d.ts.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/types.js.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts +9 -0
- package/dist/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +1 -0
- package/dist/features/link/plugins/floatingLinkEditor/utilities.js +20 -0
- package/dist/features/link/plugins/floatingLinkEditor/utilities.js.map +1 -0
- package/dist/features/link/plugins/link/index.d.ts +4 -0
- package/dist/features/link/plugins/link/index.d.ts.map +1 -0
- package/dist/features/link/plugins/link/index.js +53 -0
- package/dist/features/link/plugins/link/index.js.map +1 -0
- package/dist/features/link/validate.d.ts +6 -0
- package/dist/features/link/validate.d.ts.map +1 -0
- package/dist/features/link/validate.js +28 -0
- package/dist/features/link/validate.js.map +1 -0
- package/dist/features/lists/checklist/feature.client.d.ts +5 -0
- package/dist/features/lists/checklist/feature.client.d.ts.map +1 -0
- package/dist/features/lists/checklist/feature.client.js +100 -0
- package/dist/features/lists/checklist/feature.client.js.map +1 -0
- package/dist/features/lists/checklist/feature.server.d.ts +2 -0
- package/dist/features/lists/checklist/feature.server.d.ts.map +1 -0
- package/dist/features/lists/checklist/feature.server.js +36 -0
- package/dist/features/lists/checklist/feature.server.js.map +1 -0
- package/dist/features/lists/checklist/i18n.d.ts +3 -0
- package/dist/features/lists/checklist/i18n.d.ts.map +1 -0
- package/dist/features/lists/checklist/i18n.js +100 -0
- package/dist/features/lists/checklist/i18n.js.map +1 -0
- package/dist/features/lists/checklist/markdownTransformers.d.ts.map +1 -0
- package/dist/features/lists/checklist/markdownTransformers.js +16 -0
- package/dist/features/lists/checklist/markdownTransformers.js.map +1 -0
- package/dist/features/lists/checklist/plugin/index.d.ts +3 -0
- package/dist/features/lists/checklist/plugin/index.d.ts.map +1 -0
- package/dist/features/lists/checklist/plugin/index.js +9 -0
- package/dist/features/lists/checklist/plugin/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 +56 -0
- package/dist/features/lists/htmlConverter.js.map +1 -0
- package/dist/features/lists/orderedList/feature.client.d.ts +5 -0
- package/dist/features/lists/orderedList/feature.client.d.ts.map +1 -0
- package/dist/features/lists/orderedList/feature.client.js +90 -0
- package/dist/features/lists/orderedList/feature.client.js.map +1 -0
- package/dist/features/lists/orderedList/feature.server.d.ts +2 -0
- package/dist/features/lists/orderedList/feature.server.d.ts.map +1 -0
- package/dist/features/lists/orderedList/feature.server.js +36 -0
- package/dist/features/lists/orderedList/feature.server.js.map +1 -0
- package/dist/features/lists/orderedList/i18n.d.ts +3 -0
- package/dist/features/lists/orderedList/i18n.d.ts.map +1 -0
- package/dist/features/lists/orderedList/i18n.js +100 -0
- package/dist/features/lists/orderedList/i18n.js.map +1 -0
- package/dist/features/lists/orderedList/markdownTransformer.d.ts.map +1 -0
- package/dist/features/lists/orderedList/markdownTransformer.js +16 -0
- package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -0
- package/dist/features/lists/plugin/index.d.ts +13 -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 +58 -0
- package/dist/features/lists/shared/markdown.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 +11 -0
- package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -0
- package/dist/features/lists/unorderedList/feature.client.d.ts +5 -0
- package/dist/features/lists/unorderedList/feature.client.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/feature.client.js +88 -0
- package/dist/features/lists/unorderedList/feature.client.js.map +1 -0
- package/dist/features/lists/unorderedList/feature.server.d.ts +2 -0
- package/dist/features/lists/unorderedList/feature.server.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/feature.server.js +34 -0
- package/dist/features/lists/unorderedList/feature.server.js.map +1 -0
- package/dist/features/lists/unorderedList/i18n.d.ts +3 -0
- package/dist/features/lists/unorderedList/i18n.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/i18n.js +100 -0
- package/dist/features/lists/unorderedList/i18n.js.map +1 -0
- package/dist/features/lists/unorderedList/markdownTransformer.d.ts.map +1 -0
- package/dist/features/lists/unorderedList/markdownTransformer.js +16 -0
- package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +1 -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 +23 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts +31 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts +5 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +27 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts +8 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +45 -0
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -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 +69 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js +6 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/heading/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/indent/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/link/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +1 -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 +16 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +1 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/client.js.map +1 -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 +19 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js +8 -0
- package/dist/features/migrations/slateToLexical/converter/converters/upload/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/index.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/index.js +108 -0
- package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/types.d.ts +25 -0
- package/dist/features/migrations/slateToLexical/converter/types.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.client.d.ts +5 -0
- package/dist/features/migrations/slateToLexical/feature.client.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.client.js +27 -0
- package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.server.d.ts +10 -0
- package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.server.js +47 -0
- package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -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 +69 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -0
- package/dist/features/paragraph/feature.client.d.ts +5 -0
- package/dist/features/paragraph/feature.client.d.ts.map +1 -0
- package/dist/features/paragraph/feature.client.js +71 -0
- package/dist/features/paragraph/feature.client.js.map +1 -0
- package/dist/features/paragraph/feature.server.d.ts +2 -0
- package/dist/features/paragraph/feature.server.d.ts.map +1 -0
- package/dist/features/paragraph/feature.server.js +14 -0
- package/dist/features/paragraph/feature.server.js.map +1 -0
- package/dist/features/paragraph/i18n.d.ts +3 -0
- package/dist/features/paragraph/i18n.d.ts.map +1 -0
- package/dist/features/paragraph/i18n.js +132 -0
- package/dist/features/paragraph/i18n.js.map +1 -0
- package/dist/features/relationship/drawer/commands.d.ts.map +1 -0
- package/dist/features/relationship/drawer/commands.js +4 -0
- package/dist/features/relationship/drawer/commands.js.map +1 -0
- package/dist/features/relationship/drawer/index.d.ts.map +1 -0
- package/dist/features/relationship/drawer/index.js +83 -0
- package/dist/features/relationship/drawer/index.js.map +1 -0
- package/dist/features/relationship/feature.client.d.ts +18 -0
- package/dist/features/relationship/feature.client.d.ts.map +1 -0
- package/dist/features/relationship/feature.client.js +72 -0
- package/dist/features/relationship/feature.client.js.map +1 -0
- package/dist/features/relationship/feature.server.d.ts +27 -0
- package/dist/features/relationship/feature.server.d.ts.map +1 -0
- package/dist/features/relationship/feature.server.js +55 -0
- package/dist/features/relationship/feature.server.js.map +1 -0
- package/dist/features/relationship/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/relationship/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/relationship/graphQLPopulationPromise.js +29 -0
- package/dist/features/relationship/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/relationship/i18n.d.ts +3 -0
- package/dist/features/relationship/i18n.d.ts.map +1 -0
- package/dist/features/relationship/i18n.js +100 -0
- package/dist/features/relationship/i18n.js.map +1 -0
- package/dist/features/relationship/nodes/RelationshipNode.d.ts +35 -0
- package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
- package/dist/features/relationship/nodes/RelationshipNode.js +111 -0
- package/dist/features/relationship/nodes/RelationshipNode.js.map +1 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts +13 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.js +171 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.js.map +1 -0
- package/dist/features/relationship/plugins/index.d.ts +7 -0
- package/dist/features/relationship/plugins/index.d.ts.map +1 -0
- package/dist/features/relationship/plugins/index.js +50 -0
- package/dist/features/relationship/plugins/index.js.map +1 -0
- package/dist/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +1 -0
- package/dist/features/relationship/utils/EnabledRelationshipsCondition.js +33 -0
- package/dist/features/relationship/utils/EnabledRelationshipsCondition.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 +11 -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 +12 -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 +10 -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 +12 -0
- package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -0
- package/dist/features/toolbars/fixed/Toolbar/index.d.ts +5 -0
- package/dist/features/toolbars/fixed/Toolbar/index.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/Toolbar/index.js +207 -0
- package/dist/features/toolbars/fixed/Toolbar/index.js.map +1 -0
- package/dist/features/toolbars/fixed/feature.client.d.ts +6 -0
- package/dist/features/toolbars/fixed/feature.client.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/feature.client.js +13 -0
- package/dist/features/toolbars/fixed/feature.client.js.map +1 -0
- package/dist/features/toolbars/fixed/feature.server.d.ts +18 -0
- package/dist/features/toolbars/fixed/feature.server.d.ts.map +1 -0
- package/dist/features/toolbars/fixed/feature.server.js +19 -0
- package/dist/features/toolbars/fixed/feature.server.js.map +1 -0
- package/dist/features/toolbars/inline/Toolbar/index.d.ts +4 -0
- package/dist/features/toolbars/inline/Toolbar/index.d.ts.map +1 -0
- package/dist/features/toolbars/inline/Toolbar/index.js +319 -0
- package/dist/features/toolbars/inline/Toolbar/index.js.map +1 -0
- package/dist/features/toolbars/inline/feature.client.d.ts +5 -0
- package/dist/features/toolbars/inline/feature.client.d.ts.map +1 -0
- package/dist/features/toolbars/inline/feature.client.js +13 -0
- package/dist/features/toolbars/inline/feature.client.js.map +1 -0
- package/dist/features/toolbars/inline/feature.server.d.ts +2 -0
- package/dist/features/toolbars/inline/feature.server.d.ts.map +1 -0
- package/dist/features/toolbars/inline/feature.server.js +11 -0
- package/dist/features/toolbars/inline/feature.server.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 +108 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts +22 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +223 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +23 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js +141 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -0
- package/dist/features/toolbars/types.d.ts +80 -0
- package/dist/features/toolbars/types.d.ts.map +1 -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 +8 -0
- package/dist/features/typeUtilities.js.map +1 -0
- package/dist/features/typesClient.d.ts +186 -0
- package/dist/features/typesClient.d.ts.map +1 -0
- package/dist/features/typesClient.js +3 -0
- package/dist/features/typesClient.js.map +1 -0
- package/dist/features/typesServer.d.ts +315 -0
- package/dist/features/typesServer.d.ts.map +1 -0
- package/dist/features/typesServer.js +3 -0
- package/dist/features/typesServer.js.map +1 -0
- package/dist/features/upload/component/index.d.ts.map +1 -0
- package/dist/features/upload/component/index.js +242 -0
- package/dist/features/upload/component/index.js.map +1 -0
- package/dist/features/upload/drawer/commands.d.ts.map +1 -0
- package/dist/features/upload/drawer/commands.js +5 -0
- package/dist/features/upload/drawer/commands.js.map +1 -0
- package/dist/features/upload/drawer/index.d.ts.map +1 -0
- package/dist/features/upload/drawer/index.js +77 -0
- package/dist/features/upload/drawer/index.js.map +1 -0
- package/dist/features/upload/feature.client.d.ts +12 -0
- package/dist/features/upload/feature.client.d.ts.map +1 -0
- package/dist/features/upload/feature.client.js +74 -0
- package/dist/features/upload/feature.client.js.map +1 -0
- package/dist/features/upload/feature.server.d.ts +18 -0
- package/dist/features/upload/feature.server.d.ts.map +1 -0
- package/dist/features/upload/feature.server.js +184 -0
- package/dist/features/upload/feature.server.js.map +1 -0
- package/dist/features/upload/graphQLPopulationPromise.d.ts +5 -0
- package/dist/features/upload/graphQLPopulationPromise.d.ts.map +1 -0
- package/dist/features/upload/graphQLPopulationPromise.js +52 -0
- package/dist/features/upload/graphQLPopulationPromise.js.map +1 -0
- package/dist/features/upload/i18n.d.ts +3 -0
- package/dist/features/upload/i18n.d.ts.map +1 -0
- package/dist/features/upload/i18n.js +100 -0
- package/dist/features/upload/i18n.js.map +1 -0
- package/dist/features/upload/nodes/UploadNode.d.ts +39 -0
- package/dist/features/upload/nodes/UploadNode.d.ts.map +1 -0
- package/dist/features/upload/nodes/UploadNode.js +131 -0
- package/dist/features/upload/nodes/UploadNode.js.map +1 -0
- package/dist/features/upload/plugin/index.d.ts +8 -0
- package/dist/features/upload/plugin/index.d.ts.map +1 -0
- package/dist/features/upload/plugin/index.js +53 -0
- package/dist/features/upload/plugin/index.js.map +1 -0
- package/dist/features/upload/validate.d.ts +5 -0
- package/dist/features/upload/validate.d.ts.map +1 -0
- package/dist/features/upload/validate.js +44 -0
- package/dist/features/upload/validate.js.map +1 -0
- package/dist/field/Field.d.ts +5 -6
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +71 -56
- package/dist/field/Field.js.map +1 -1
- package/dist/field/bundled.css +0 -0
- package/dist/field/index.d.ts +6 -4
- package/dist/field/index.d.ts.map +1 -1
- package/dist/field/index.js +37 -86
- package/dist/field/index.js.map +1 -1
- package/dist/i18n.d.ts +3 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +164 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +76 -84
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +673 -251
- package/dist/index.js.map +1 -1
- package/dist/lexical/EditorPlugin.d.ts +8 -0
- package/dist/lexical/EditorPlugin.d.ts.map +1 -0
- package/dist/lexical/EditorPlugin.js +15 -0
- package/dist/lexical/EditorPlugin.js.map +1 -0
- package/dist/lexical/LexicalEditor.d.ts +7 -0
- package/dist/lexical/LexicalEditor.d.ts.map +1 -0
- package/dist/lexical/LexicalEditor.js +192 -0
- package/dist/lexical/LexicalEditor.js.map +1 -0
- package/dist/lexical/LexicalProvider.d.ts +18 -0
- package/dist/lexical/LexicalProvider.d.ts.map +1 -0
- package/dist/lexical/LexicalProvider.js +98 -0
- package/dist/lexical/LexicalProvider.js.map +1 -0
- package/dist/lexical/config/client/EditorConfigProvider.d.ts +35 -0
- package/dist/lexical/config/client/EditorConfigProvider.d.ts.map +1 -0
- package/dist/lexical/config/client/EditorConfigProvider.js +91 -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.map +1 -0
- package/dist/lexical/config/client/loader.d.ts +12 -0
- package/dist/lexical/config/client/loader.d.ts.map +1 -0
- package/dist/lexical/config/client/loader.js +46 -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 +180 -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 +53 -0
- package/dist/lexical/config/server/default.js.map +1 -0
- package/dist/lexical/config/server/loader.d.ts +10 -0
- package/dist/lexical/config/server/loader.d.ts.map +1 -0
- package/dist/lexical/config/server/loader.js +120 -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 +95 -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.map +1 -0
- package/dist/lexical/nodes/index.d.ts +6 -0
- package/dist/lexical/nodes/index.d.ts.map +1 -0
- package/dist/lexical/nodes/index.js.map +1 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.d.ts.map +1 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.js +13 -0
- package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +32 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +399 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +24 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +186 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +46 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +1 -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 +189 -0
- package/dist/lexical/plugins/SlashMenu/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.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 +157 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -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.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 +342 -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 +116 -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 +21 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -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 +138 -0
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +6 -0
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js +29 -0
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -0
- package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
- package/dist/lexical/theme/EditorTheme.js +106 -0
- package/dist/lexical/theme/EditorTheme.js.map +1 -0
- package/dist/lexical/ui/ContentEditable.d.ts +6 -0
- package/dist/lexical/ui/ContentEditable.d.ts.map +1 -0
- package/dist/lexical/ui/ContentEditable.js +10 -0
- package/dist/lexical/ui/ContentEditable.js.map +1 -0
- package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AI/index.js +36 -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 +21 -0
- package/dist/lexical/ui/icons/Add/index.js.map +1 -0
- package/dist/lexical/ui/icons/Add/light.svg +4 -0
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignCenter/index.js +31 -0
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignJustify/index.js +31 -0
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignLeft/index.js +31 -0
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/AlignRight/index.js +31 -0
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -0
- package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Block/index.js +40 -0
- package/dist/lexical/ui/icons/Block/index.js.map +1 -0
- package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Blockquote/index.js +18 -0
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -0
- package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Bold/index.js +18 -0
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -0
- package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Checklist/index.js +29 -0
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -0
- package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Code/index.js +24 -0
- package/dist/lexical/ui/icons/Code/index.js.map +1 -0
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/CodeBlock/index.js +24 -0
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -0
- package/dist/lexical/ui/icons/DraggableBlock/light.svg +9 -0
- package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H1/index.js +18 -0
- package/dist/lexical/ui/icons/H1/index.js.map +1 -0
- package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H2/index.js +18 -0
- package/dist/lexical/ui/icons/H2/index.js.map +1 -0
- package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H3/index.js +18 -0
- package/dist/lexical/ui/icons/H3/index.js.map +1 -0
- package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H4/index.js +18 -0
- package/dist/lexical/ui/icons/H4/index.js.map +1 -0
- package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H5/index.js +18 -0
- package/dist/lexical/ui/icons/H5/index.js.map +1 -0
- package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/H6/index.js +18 -0
- package/dist/lexical/ui/icons/H6/index.js.map +1 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.js +21 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.js +35 -0
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.js +35 -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 +20 -0
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -0
- package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Italic/index.js +18 -0
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -0
- package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Link/index.js +19 -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 +25 -0
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -0
- package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/OrderedList/index.js +39 -0
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -0
- package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Relationship/index.js +36 -0
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -0
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Strikethrough/index.js +24 -0
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -0
- package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Subscript/index.js +18 -0
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -0
- package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Superscript/index.js +18 -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 +19 -0
- package/dist/lexical/ui/icons/Table/index.js.map +1 -0
- package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Text/index.js +18 -0
- package/dist/lexical/ui/icons/Text/index.js.map +1 -0
- package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Underline/index.js +24 -0
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -0
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/UnorderedList/index.js +55 -0
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -0
- package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Upload/index.js +34 -0
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -0
- package/dist/lexical/utils/canUseDOM.d.ts.map +1 -0
- package/dist/lexical/utils/canUseDOM.js.map +1 -0
- package/dist/lexical/utils/environment.d.ts.map +1 -0
- package/dist/lexical/utils/environment.js.map +1 -0
- package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -0
- package/dist/lexical/utils/getDOMRangeRect.js.map +1 -0
- package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -0
- package/dist/lexical/utils/getSelectedNode.js +17 -0
- package/dist/lexical/utils/getSelectedNode.js.map +1 -0
- package/dist/lexical/utils/guard.d.ts.map +1 -0
- package/dist/lexical/utils/guard.js.map +1 -0
- package/dist/lexical/utils/invariant.d.ts.map +1 -0
- package/dist/lexical/utils/invariant.js.map +1 -0
- package/dist/lexical/utils/joinClasses.d.ts.map +1 -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.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 +88 -0
- package/dist/lexical/utils/nodeFormat.js.map +1 -0
- package/dist/lexical/utils/point.d.ts.map +1 -0
- package/dist/lexical/utils/point.js.map +1 -0
- package/dist/lexical/utils/rect.d.ts.map +1 -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 +56 -0
- package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -0
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -0
- package/dist/lexical/utils/swipe.d.ts.map +1 -0
- package/dist/lexical/utils/swipe.js.map +1 -0
- package/dist/lexical/utils/url.d.ts.map +1 -0
- package/dist/lexical/utils/url.js +36 -0
- package/dist/lexical/utils/url.js.map +1 -0
- package/dist/nodeTypes.d.ts +30 -0
- package/dist/nodeTypes.d.ts.map +1 -0
- package/dist/nodeTypes.js +3 -0
- package/dist/nodeTypes.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 +32 -0
- package/dist/populateGraphQL/defaultValue.js.map +1 -0
- package/dist/populateGraphQL/populate.d.ts +17 -0
- package/dist/populateGraphQL/populate.d.ts.map +1 -0
- package/dist/populateGraphQL/populate.js +28 -0
- package/dist/populateGraphQL/populate.js.map +1 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +12 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts.map +1 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js +37 -0
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +28 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts.map +1 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +28 -0
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -0
- package/dist/types.d.ts +52 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utilities/createClientFeature.d.ts +13 -0
- package/dist/utilities/createClientFeature.d.ts.map +1 -0
- package/dist/utilities/createClientFeature.js +30 -0
- package/dist/utilities/createClientFeature.js.map +1 -0
- package/dist/utilities/createServerFeature.d.ts +16 -0
- package/dist/utilities/createServerFeature.d.ts.map +1 -0
- package/dist/utilities/createServerFeature.js +34 -0
- package/dist/utilities/createServerFeature.js.map +1 -0
- package/dist/utilities/fieldsDrawer/Drawer.d.ts +18 -0
- package/dist/utilities/fieldsDrawer/Drawer.d.ts.map +1 -0
- package/dist/utilities/fieldsDrawer/Drawer.js +26 -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 +90 -0
- package/dist/utilities/fieldsDrawer/DrawerContent.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 +24 -0
- package/dist/utilities/forEachNodeRecursively.js.map +1 -0
- package/dist/utilities/generateComponentMap.d.ts +6 -0
- package/dist/utilities/generateComponentMap.d.ts.map +1 -0
- package/dist/utilities/generateComponentMap.js +77 -0
- package/dist/utilities/generateComponentMap.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 +31 -0
- package/dist/utilities/generateSchemaMap.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 +105 -0
- package/dist/utilities/migrateSlateToLexical/index.js.map +1 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts +9 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.d.ts.map +1 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +77 -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 +27 -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 +101 -0
- package/dist/utilities/upgradeLexicalData/index.js.map +1 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts +9 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.d.ts.map +1 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +74 -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 +12 -0
- package/dist/utilities/useLexicalFeature.js.map +1 -0
- package/dist/validate/index.d.ts +3 -3
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js +3 -2
- package/dist/validate/index.js.map +1 -1
- package/dist/validate/validateNodes.d.ts +2 -2
- package/dist/validate/validateNodes.d.ts.map +1 -1
- package/dist/validate/validateNodes.js +1 -1
- package/dist/validate/validateNodes.js.map +1 -1
- package/package.json +75 -56
- package/dist/exports/components.d.ts +0 -6
- package/dist/exports/components.d.ts.map +0 -1
- package/dist/exports/components.js +0 -7
- package/dist/exports/components.js.map +0 -1
- package/dist/field/features/align/feature.client.d.ts +0 -3
- package/dist/field/features/align/feature.client.d.ts.map +0 -1
- package/dist/field/features/align/feature.client.js +0 -72
- package/dist/field/features/align/feature.client.js.map +0 -1
- package/dist/field/features/align/feature.server.d.ts +0 -3
- package/dist/field/features/align/feature.server.d.ts.map +0 -1
- package/dist/field/features/align/feature.server.js +0 -16
- package/dist/field/features/align/feature.server.js.map +0 -1
- package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts +0 -3
- package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.d.ts.map +0 -1
- package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js +0 -12
- package/dist/field/features/align/floatingSelectToolbarAlignDropdownSection.js.map +0 -1
- package/dist/field/features/blockquote/feature.client.d.ts +0 -3
- package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
- package/dist/field/features/blockquote/feature.client.js +0 -70
- package/dist/field/features/blockquote/feature.client.js.map +0 -1
- package/dist/field/features/blockquote/feature.server.d.ts +0 -3
- package/dist/field/features/blockquote/feature.server.d.ts.map +0 -1
- package/dist/field/features/blockquote/feature.server.js +0 -47
- package/dist/field/features/blockquote/feature.server.js.map +0 -1
- package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/blockquote/markdownTransformer.js +0 -42
- package/dist/field/features/blockquote/markdownTransformer.js.map +0 -1
- package/dist/field/features/blocks/component/BlockContent.d.ts +0 -27
- package/dist/field/features/blocks/component/BlockContent.d.ts.map +0 -1
- package/dist/field/features/blocks/component/BlockContent.js +0 -183
- package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
- package/dist/field/features/blocks/component/FormSavePlugin.d.ts +0 -12
- package/dist/field/features/blocks/component/FormSavePlugin.d.ts.map +0 -1
- package/dist/field/features/blocks/component/FormSavePlugin.js +0 -29
- package/dist/field/features/blocks/component/FormSavePlugin.js.map +0 -1
- package/dist/field/features/blocks/component/index.d.ts +0 -16
- package/dist/field/features/blocks/component/index.d.ts.map +0 -1
- package/dist/field/features/blocks/component/index.js +0 -128
- package/dist/field/features/blocks/component/index.js.map +0 -1
- package/dist/field/features/blocks/component/index.scss +0 -153
- package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts +0 -11
- package/dist/field/features/blocks/component/removeEmptyArrayValues.d.ts.map +0 -1
- package/dist/field/features/blocks/component/removeEmptyArrayValues.js.map +0 -1
- package/dist/field/features/blocks/drawer/index.d.ts +0 -9
- package/dist/field/features/blocks/drawer/index.d.ts.map +0 -1
- package/dist/field/features/blocks/drawer/index.js +0 -84
- package/dist/field/features/blocks/drawer/index.js.map +0 -1
- package/dist/field/features/blocks/feature.client.d.ts +0 -7
- package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
- package/dist/field/features/blocks/feature.client.js +0 -61
- package/dist/field/features/blocks/feature.client.js.map +0 -1
- package/dist/field/features/blocks/feature.server.d.ts +0 -11
- package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
- package/dist/field/features/blocks/feature.server.js +0 -127
- package/dist/field/features/blocks/feature.server.js.map +0 -1
- package/dist/field/features/blocks/nodes/BlocksNode.d.ts +0 -38
- package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
- package/dist/field/features/blocks/nodes/BlocksNode.js +0 -92
- package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
- package/dist/field/features/blocks/plugin/commands.d.ts +0 -4
- package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
- package/dist/field/features/blocks/plugin/commands.js +0 -5
- package/dist/field/features/blocks/plugin/commands.js.map +0 -1
- package/dist/field/features/blocks/plugin/index.d.ts +0 -5
- package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
- package/dist/field/features/blocks/plugin/index.js +0 -43
- package/dist/field/features/blocks/plugin/index.js.map +0 -1
- package/dist/field/features/blocks/populationPromise.d.ts +0 -5
- package/dist/field/features/blocks/populationPromise.d.ts.map +0 -1
- package/dist/field/features/blocks/populationPromise.js +0 -46
- package/dist/field/features/blocks/populationPromise.js.map +0 -1
- package/dist/field/features/blocks/validate.d.ts +0 -5
- package/dist/field/features/blocks/validate.d.ts.map +0 -1
- package/dist/field/features/blocks/validate.js +0 -50
- package/dist/field/features/blocks/validate.js.map +0 -1
- package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts +0 -3
- package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.d.ts.map +0 -1
- package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js +0 -10
- package/dist/field/features/common/floatingSelectToolbarFeaturesButtonsSection/index.js.map +0 -1
- package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts +0 -3
- package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.d.ts.map +0 -1
- package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js +0 -12
- package/dist/field/features/common/floatingSelectToolbarTextDropdownSection/index.js.map +0 -1
- package/dist/field/features/converters/html/converter/converters/linebreak.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/converters/linebreak.js.map +0 -1
- package/dist/field/features/converters/html/converter/converters/paragraph.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/converters/paragraph.js +0 -20
- package/dist/field/features/converters/html/converter/converters/paragraph.js.map +0 -1
- package/dist/field/features/converters/html/converter/converters/text.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/converters/text.js.map +0 -1
- package/dist/field/features/converters/html/converter/defaultConverters.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/defaultConverters.js.map +0 -1
- package/dist/field/features/converters/html/converter/index.d.ts +0 -21
- package/dist/field/features/converters/html/converter/index.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/index.js +0 -44
- package/dist/field/features/converters/html/converter/index.js.map +0 -1
- package/dist/field/features/converters/html/converter/types.d.ts +0 -19
- package/dist/field/features/converters/html/converter/types.d.ts.map +0 -1
- package/dist/field/features/converters/html/converter/types.js.map +0 -1
- package/dist/field/features/converters/html/feature.server.d.ts +0 -9
- package/dist/field/features/converters/html/feature.server.d.ts.map +0 -1
- package/dist/field/features/converters/html/feature.server.js +0 -14
- package/dist/field/features/converters/html/feature.server.js.map +0 -1
- package/dist/field/features/converters/html/field/index.d.ts +0 -23
- package/dist/field/features/converters/html/field/index.d.ts.map +0 -1
- package/dist/field/features/converters/html/field/index.js +0 -114
- package/dist/field/features/converters/html/field/index.js.map +0 -1
- package/dist/field/features/createClientComponent.d.ts +0 -6
- package/dist/field/features/createClientComponent.d.ts.map +0 -1
- package/dist/field/features/createClientComponent.js +0 -12
- package/dist/field/features/createClientComponent.js.map +0 -1
- package/dist/field/features/createFeaturePropComponent.d.ts.map +0 -1
- package/dist/field/features/createFeaturePropComponent.js +0 -15
- package/dist/field/features/createFeaturePropComponent.js.map +0 -1
- package/dist/field/features/debug/testrecorder/feature.client.d.ts +0 -3
- package/dist/field/features/debug/testrecorder/feature.client.d.ts.map +0 -1
- package/dist/field/features/debug/testrecorder/feature.client.js +0 -20
- package/dist/field/features/debug/testrecorder/feature.client.js.map +0 -1
- package/dist/field/features/debug/testrecorder/feature.server.d.ts +0 -3
- package/dist/field/features/debug/testrecorder/feature.server.d.ts.map +0 -1
- package/dist/field/features/debug/testrecorder/feature.server.js +0 -15
- package/dist/field/features/debug/testrecorder/feature.server.js.map +0 -1
- package/dist/field/features/debug/testrecorder/plugin/index.d.ts +0 -5
- package/dist/field/features/debug/testrecorder/plugin/index.d.ts.map +0 -1
- package/dist/field/features/debug/testrecorder/plugin/index.js +0 -448
- package/dist/field/features/debug/testrecorder/plugin/index.js.map +0 -1
- package/dist/field/features/debug/testrecorder/plugin/index.scss +0 -49
- package/dist/field/features/debug/treeview/feature.client.d.ts +0 -3
- package/dist/field/features/debug/treeview/feature.client.d.ts.map +0 -1
- package/dist/field/features/debug/treeview/feature.client.js +0 -20
- package/dist/field/features/debug/treeview/feature.client.js.map +0 -1
- package/dist/field/features/debug/treeview/feature.server.d.ts +0 -3
- package/dist/field/features/debug/treeview/feature.server.d.ts.map +0 -1
- package/dist/field/features/debug/treeview/feature.server.js +0 -15
- package/dist/field/features/debug/treeview/feature.server.js.map +0 -1
- package/dist/field/features/debug/treeview/plugin/index.d.ts +0 -4
- package/dist/field/features/debug/treeview/plugin/index.d.ts.map +0 -1
- package/dist/field/features/debug/treeview/plugin/index.js +0 -21
- package/dist/field/features/debug/treeview/plugin/index.js.map +0 -1
- package/dist/field/features/debug/treeview/plugin/index.scss +0 -78
- package/dist/field/features/format/bold/feature.client.d.ts +0 -3
- package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/bold/feature.client.js +0 -48
- package/dist/field/features/format/bold/feature.client.js.map +0 -1
- package/dist/field/features/format/bold/feature.server.d.ts +0 -3
- package/dist/field/features/format/bold/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/bold/feature.server.js +0 -27
- package/dist/field/features/format/bold/feature.server.js.map +0 -1
- package/dist/field/features/format/bold/markdownTransformers.d.ts.map +0 -1
- package/dist/field/features/format/bold/markdownTransformers.js.map +0 -1
- package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts +0 -3
- package/dist/field/features/format/common/floatingSelectToolbarSection.d.ts.map +0 -1
- package/dist/field/features/format/common/floatingSelectToolbarSection.js +0 -10
- package/dist/field/features/format/common/floatingSelectToolbarSection.js.map +0 -1
- package/dist/field/features/format/inlinecode/feature.client.d.ts +0 -3
- package/dist/field/features/format/inlinecode/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/inlinecode/feature.client.js +0 -43
- package/dist/field/features/format/inlinecode/feature.client.js.map +0 -1
- package/dist/field/features/format/inlinecode/feature.server.d.ts +0 -3
- package/dist/field/features/format/inlinecode/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/inlinecode/feature.server.js +0 -19
- package/dist/field/features/format/inlinecode/feature.server.js.map +0 -1
- package/dist/field/features/format/inlinecode/markdownTransformers.d.ts.map +0 -1
- package/dist/field/features/format/inlinecode/markdownTransformers.js.map +0 -1
- package/dist/field/features/format/italic/feature.client.d.ts +0 -3
- package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/italic/feature.client.js +0 -44
- package/dist/field/features/format/italic/feature.client.js.map +0 -1
- package/dist/field/features/format/italic/feature.server.d.ts +0 -3
- package/dist/field/features/format/italic/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/italic/feature.server.js +0 -20
- package/dist/field/features/format/italic/feature.server.js.map +0 -1
- package/dist/field/features/format/italic/markdownTransformers.d.ts.map +0 -1
- package/dist/field/features/format/italic/markdownTransformers.js.map +0 -1
- package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -3
- package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/strikethrough/feature.client.js +0 -43
- package/dist/field/features/format/strikethrough/feature.client.js.map +0 -1
- package/dist/field/features/format/strikethrough/feature.server.d.ts +0 -3
- package/dist/field/features/format/strikethrough/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/strikethrough/feature.server.js +0 -19
- package/dist/field/features/format/strikethrough/feature.server.js.map +0 -1
- package/dist/field/features/format/strikethrough/markdownTransformers.d.ts.map +0 -1
- package/dist/field/features/format/strikethrough/markdownTransformers.js.map +0 -1
- package/dist/field/features/format/subscript/feature.client.d.ts +0 -3
- package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/subscript/feature.client.js +0 -39
- package/dist/field/features/format/subscript/feature.client.js.map +0 -1
- package/dist/field/features/format/subscript/feature.server.d.ts +0 -3
- package/dist/field/features/format/subscript/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/subscript/feature.server.js +0 -15
- package/dist/field/features/format/subscript/feature.server.js.map +0 -1
- package/dist/field/features/format/superscript/feature.client.d.ts +0 -3
- package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/superscript/feature.client.js +0 -39
- package/dist/field/features/format/superscript/feature.client.js.map +0 -1
- package/dist/field/features/format/superscript/feature.server.d.ts +0 -3
- package/dist/field/features/format/superscript/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/superscript/feature.server.js +0 -15
- package/dist/field/features/format/superscript/feature.server.js.map +0 -1
- package/dist/field/features/format/underline/feature.client.d.ts +0 -3
- package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/underline/feature.client.js +0 -39
- package/dist/field/features/format/underline/feature.client.js.map +0 -1
- package/dist/field/features/format/underline/feature.server.d.ts +0 -3
- package/dist/field/features/format/underline/feature.server.d.ts.map +0 -1
- package/dist/field/features/format/underline/feature.server.js +0 -15
- package/dist/field/features/format/underline/feature.server.js.map +0 -1
- package/dist/field/features/heading/feature.client.d.ts +0 -4
- package/dist/field/features/heading/feature.client.d.ts.map +0 -1
- package/dist/field/features/heading/feature.client.js +0 -97
- package/dist/field/features/heading/feature.client.js.map +0 -1
- package/dist/field/features/heading/feature.server.d.ts +0 -7
- package/dist/field/features/heading/feature.server.d.ts.map +0 -1
- package/dist/field/features/heading/feature.server.js +0 -58
- package/dist/field/features/heading/feature.server.js.map +0 -1
- package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/heading/markdownTransformer.js +0 -30
- package/dist/field/features/heading/markdownTransformer.js.map +0 -1
- package/dist/field/features/horizontalrule/component/index.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/component/index.js +0 -64
- package/dist/field/features/horizontalrule/component/index.js.map +0 -1
- package/dist/field/features/horizontalrule/feature.client.d.ts +0 -3
- package/dist/field/features/horizontalrule/feature.client.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/feature.client.js +0 -53
- package/dist/field/features/horizontalrule/feature.client.js.map +0 -1
- package/dist/field/features/horizontalrule/feature.server.d.ts +0 -3
- package/dist/field/features/horizontalrule/feature.server.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/feature.server.js +0 -36
- package/dist/field/features/horizontalrule/feature.server.js.map +0 -1
- package/dist/field/features/horizontalrule/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/markdownTransformer.js.map +0 -1
- package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts +0 -55
- package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js +0 -89
- package/dist/field/features/horizontalrule/nodes/HorizontalRuleNode.js.map +0 -1
- package/dist/field/features/horizontalrule/plugin/index.d.ts +0 -6
- package/dist/field/features/horizontalrule/plugin/index.d.ts.map +0 -1
- package/dist/field/features/horizontalrule/plugin/index.js +0 -34
- package/dist/field/features/horizontalrule/plugin/index.js.map +0 -1
- package/dist/field/features/horizontalrule/plugin/index.scss +0 -20
- package/dist/field/features/indent/feature.client.d.ts +0 -3
- package/dist/field/features/indent/feature.client.d.ts.map +0 -1
- package/dist/field/features/indent/feature.client.js +0 -58
- package/dist/field/features/indent/feature.client.js.map +0 -1
- package/dist/field/features/indent/feature.server.d.ts +0 -3
- package/dist/field/features/indent/feature.server.d.ts.map +0 -1
- package/dist/field/features/indent/feature.server.js +0 -16
- package/dist/field/features/indent/feature.server.js.map +0 -1
- package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts +0 -3
- package/dist/field/features/indent/floatingSelectToolbarIndentSection.d.ts.map +0 -1
- package/dist/field/features/indent/floatingSelectToolbarIndentSection.js +0 -10
- package/dist/field/features/indent/floatingSelectToolbarIndentSection.js.map +0 -1
- package/dist/field/features/indent/index.scss +0 -4
- package/dist/field/features/link/drawer/baseFields.d.ts +0 -4
- package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
- package/dist/field/features/link/drawer/baseFields.js +0 -107
- package/dist/field/features/link/drawer/baseFields.js.map +0 -1
- package/dist/field/features/link/drawer/index.d.ts +0 -5
- package/dist/field/features/link/drawer/index.d.ts.map +0 -1
- package/dist/field/features/link/drawer/index.js +0 -93
- package/dist/field/features/link/drawer/index.js.map +0 -1
- package/dist/field/features/link/drawer/index.scss +0 -50
- package/dist/field/features/link/drawer/types.d.ts +0 -8
- package/dist/field/features/link/drawer/types.d.ts.map +0 -1
- package/dist/field/features/link/drawer/types.js.map +0 -1
- package/dist/field/features/link/feature.client.d.ts +0 -5
- package/dist/field/features/link/feature.client.d.ts.map +0 -1
- package/dist/field/features/link/feature.client.js +0 -90
- package/dist/field/features/link/feature.client.js.map +0 -1
- package/dist/field/features/link/feature.server.d.ts +0 -33
- package/dist/field/features/link/feature.server.d.ts.map +0 -1
- package/dist/field/features/link/feature.server.js +0 -91
- package/dist/field/features/link/feature.server.js.map +0 -1
- package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
- package/dist/field/features/link/nodes/AutoLinkNode.js +0 -61
- package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
- package/dist/field/features/link/nodes/LinkNode.d.ts +0 -38
- package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
- package/dist/field/features/link/nodes/LinkNode.js +0 -301
- package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
- package/dist/field/features/link/nodes/types.d.ts +0 -19
- package/dist/field/features/link/nodes/types.d.ts.map +0 -1
- package/dist/field/features/link/nodes/types.js.map +0 -1
- package/dist/field/features/link/plugins/autoLink/index.d.ts +0 -19
- package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/autoLink/index.js +0 -321
- package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
- package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -3
- package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/clickableLink/index.js +0 -10
- package/dist/field/features/link/plugins/clickableLink/index.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js +0 -5
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/commands.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js +0 -259
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -6
- package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.js +0 -13
- package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.scss +0 -78
- package/dist/field/features/link/plugins/floatingLinkEditor/types.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/types.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts +0 -12
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js +0 -38
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
- package/dist/field/features/link/plugins/link/index.d.ts +0 -2
- package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/link/index.js +0 -62
- package/dist/field/features/link/plugins/link/index.js.map +0 -1
- package/dist/field/features/link/populationPromise.d.ts +0 -5
- package/dist/field/features/link/populationPromise.d.ts.map +0 -1
- package/dist/field/features/link/populationPromise.js +0 -46
- package/dist/field/features/link/populationPromise.js.map +0 -1
- package/dist/field/features/lists/checklist/feature.client.d.ts +0 -3
- package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/feature.client.js +0 -82
- package/dist/field/features/lists/checklist/feature.client.js.map +0 -1
- package/dist/field/features/lists/checklist/feature.server.d.ts +0 -3
- package/dist/field/features/lists/checklist/feature.server.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/feature.server.js +0 -36
- package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
- package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/markdownTransformers.js +0 -17
- package/dist/field/features/lists/checklist/markdownTransformers.js.map +0 -1
- package/dist/field/features/lists/checklist/plugin/index.d.ts +0 -3
- package/dist/field/features/lists/checklist/plugin/index.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/plugin/index.js +0 -9
- package/dist/field/features/lists/checklist/plugin/index.js.map +0 -1
- package/dist/field/features/lists/common/markdown.d.ts +0 -6
- package/dist/field/features/lists/common/markdown.d.ts.map +0 -1
- package/dist/field/features/lists/common/markdown.js +0 -59
- package/dist/field/features/lists/common/markdown.js.map +0 -1
- package/dist/field/features/lists/htmlConverter.d.ts +0 -5
- package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
- package/dist/field/features/lists/htmlConverter.js +0 -49
- package/dist/field/features/lists/htmlConverter.js.map +0 -1
- package/dist/field/features/lists/orderedlist/feature.client.d.ts +0 -3
- package/dist/field/features/lists/orderedlist/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/orderedlist/feature.client.js +0 -72
- package/dist/field/features/lists/orderedlist/feature.client.js.map +0 -1
- package/dist/field/features/lists/orderedlist/feature.server.d.ts +0 -3
- package/dist/field/features/lists/orderedlist/feature.server.d.ts.map +0 -1
- package/dist/field/features/lists/orderedlist/feature.server.js +0 -36
- package/dist/field/features/lists/orderedlist/feature.server.js.map +0 -1
- package/dist/field/features/lists/orderedlist/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/lists/orderedlist/markdownTransformer.js +0 -17
- package/dist/field/features/lists/orderedlist/markdownTransformer.js.map +0 -1
- package/dist/field/features/lists/plugin/index.d.ts +0 -3
- package/dist/field/features/lists/plugin/index.d.ts.map +0 -1
- package/dist/field/features/lists/plugin/index.js +0 -9
- package/dist/field/features/lists/plugin/index.js.map +0 -1
- package/dist/field/features/lists/unorderedlist/feature.client.d.ts +0 -3
- package/dist/field/features/lists/unorderedlist/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/unorderedlist/feature.client.js +0 -72
- package/dist/field/features/lists/unorderedlist/feature.client.js.map +0 -1
- package/dist/field/features/lists/unorderedlist/feature.server.d.ts +0 -3
- package/dist/field/features/lists/unorderedlist/feature.server.d.ts.map +0 -1
- package/dist/field/features/lists/unorderedlist/feature.server.js +0 -36
- package/dist/field/features/lists/unorderedlist/feature.server.js.map +0 -1
- package/dist/field/features/lists/unorderedlist/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/lists/unorderedlist/markdownTransformer.js +0 -17
- package/dist/field/features/lists/unorderedlist/markdownTransformer.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/heading/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/link/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/list/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/listItem/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/quote/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/unknown/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts +0 -6
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +0 -25
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/converters/upload/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts +0 -31
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/converter/types.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts +0 -3
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js +0 -34
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.client.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts +0 -9
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js +0 -47
- package/dist/field/features/migrations/lexicalPluginToLexical/feature.server.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -8
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -70
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +0 -14
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/blockquote/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/heading/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/indent/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/link/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/listItem/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/orderedList/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js +0 -18
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/relationship/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/unknown/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/unorderedList/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts +0 -6
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js +0 -21
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js +0 -8
- package/dist/field/features/migrations/slateToLexical/converter/converters/upload/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/defaultConverters.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/index.js +0 -107
- package/dist/field/features/migrations/slateToLexical/converter/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/types.d.ts +0 -25
- package/dist/field/features/migrations/slateToLexical/converter/types.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/converter/types.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/feature.client.d.ts +0 -3
- package/dist/field/features/migrations/slateToLexical/feature.client.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/feature.client.js +0 -34
- package/dist/field/features/migrations/slateToLexical/feature.client.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/feature.server.d.ts +0 -9
- package/dist/field/features/migrations/slateToLexical/feature.server.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/feature.server.js +0 -47
- package/dist/field/features/migrations/slateToLexical/feature.server.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -8
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -36
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -70
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +0 -14
- package/dist/field/features/paragraph/feature.client.d.ts +0 -3
- package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
- package/dist/field/features/paragraph/feature.client.js +0 -65
- package/dist/field/features/paragraph/feature.client.js.map +0 -1
- package/dist/field/features/paragraph/feature.server.d.ts +0 -3
- package/dist/field/features/paragraph/feature.server.d.ts.map +0 -1
- package/dist/field/features/paragraph/feature.server.js +0 -16
- package/dist/field/features/paragraph/feature.server.js.map +0 -1
- package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
- package/dist/field/features/relationship/drawer/commands.js +0 -5
- package/dist/field/features/relationship/drawer/commands.js.map +0 -1
- package/dist/field/features/relationship/drawer/index.d.ts.map +0 -1
- package/dist/field/features/relationship/drawer/index.js +0 -81
- package/dist/field/features/relationship/drawer/index.js.map +0 -1
- package/dist/field/features/relationship/feature.client.d.ts +0 -4
- package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
- package/dist/field/features/relationship/feature.client.js +0 -56
- package/dist/field/features/relationship/feature.client.js.map +0 -1
- package/dist/field/features/relationship/feature.server.d.ts +0 -18
- package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
- package/dist/field/features/relationship/feature.server.js +0 -26
- package/dist/field/features/relationship/feature.server.js.map +0 -1
- package/dist/field/features/relationship/nodes/RelationshipNode.d.ts +0 -36
- package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
- package/dist/field/features/relationship/nodes/RelationshipNode.js +0 -110
- package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts +0 -14
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -109
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
- package/dist/field/features/relationship/nodes/components/index.scss +0 -97
- package/dist/field/features/relationship/plugins/index.d.ts +0 -7
- package/dist/field/features/relationship/plugins/index.d.ts.map +0 -1
- package/dist/field/features/relationship/plugins/index.js +0 -52
- package/dist/field/features/relationship/plugins/index.js.map +0 -1
- package/dist/field/features/relationship/populationPromise.d.ts +0 -4
- package/dist/field/features/relationship/populationPromise.d.ts.map +0 -1
- package/dist/field/features/relationship/populationPromise.js +0 -24
- package/dist/field/features/relationship/populationPromise.js.map +0 -1
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.d.ts.map +0 -1
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js +0 -35
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
- package/dist/field/features/types.d.ts +0 -278
- package/dist/field/features/types.d.ts.map +0 -1
- package/dist/field/features/types.js.map +0 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts +0 -12
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.d.ts.map +0 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -125
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js.map +0 -1
- package/dist/field/features/upload/component/index.d.ts.map +0 -1
- package/dist/field/features/upload/component/index.js +0 -144
- package/dist/field/features/upload/component/index.js.map +0 -1
- package/dist/field/features/upload/component/index.scss +0 -152
- package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
- package/dist/field/features/upload/drawer/commands.js +0 -6
- package/dist/field/features/upload/drawer/commands.js.map +0 -1
- package/dist/field/features/upload/drawer/index.d.ts.map +0 -1
- package/dist/field/features/upload/drawer/index.js +0 -78
- package/dist/field/features/upload/drawer/index.js.map +0 -1
- package/dist/field/features/upload/feature.client.d.ts +0 -10
- package/dist/field/features/upload/feature.client.d.ts.map +0 -1
- package/dist/field/features/upload/feature.client.js +0 -55
- package/dist/field/features/upload/feature.client.js.map +0 -1
- package/dist/field/features/upload/feature.server.d.ts +0 -12
- package/dist/field/features/upload/feature.server.d.ts.map +0 -1
- package/dist/field/features/upload/feature.server.js +0 -110
- package/dist/field/features/upload/feature.server.js.map +0 -1
- package/dist/field/features/upload/nodes/UploadNode.d.ts +0 -49
- package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
- package/dist/field/features/upload/nodes/UploadNode.js +0 -102
- package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
- package/dist/field/features/upload/plugin/index.d.ts +0 -7
- package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
- package/dist/field/features/upload/plugin/index.js +0 -55
- package/dist/field/features/upload/plugin/index.js.map +0 -1
- package/dist/field/features/upload/populationPromise.d.ts +0 -5
- package/dist/field/features/upload/populationPromise.d.ts.map +0 -1
- package/dist/field/features/upload/populationPromise.js +0 -46
- package/dist/field/features/upload/populationPromise.js.map +0 -1
- package/dist/field/features/upload/validate.d.ts +0 -4
- package/dist/field/features/upload/validate.d.ts.map +0 -1
- package/dist/field/features/upload/validate.js +0 -17
- package/dist/field/features/upload/validate.js.map +0 -1
- package/dist/field/index.scss +0 -46
- package/dist/field/lexical/EditorPlugin.d.ts +0 -7
- package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
- package/dist/field/lexical/EditorPlugin.js +0 -11
- package/dist/field/lexical/EditorPlugin.js.map +0 -1
- package/dist/field/lexical/LexicalEditor.d.ts +0 -5
- package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
- package/dist/field/lexical/LexicalEditor.js +0 -112
- package/dist/field/lexical/LexicalEditor.js.map +0 -1
- package/dist/field/lexical/LexicalEditor.scss +0 -56
- package/dist/field/lexical/LexicalProvider.d.ts +0 -19
- package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
- package/dist/field/lexical/LexicalProvider.js +0 -67
- package/dist/field/lexical/LexicalProvider.js.map +0 -1
- package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -24
- package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
- package/dist/field/lexical/config/client/EditorConfigProvider.js +0 -41
- package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
- package/dist/field/lexical/config/client/default.d.ts +0 -3
- package/dist/field/lexical/config/client/default.d.ts.map +0 -1
- package/dist/field/lexical/config/client/default.js.map +0 -1
- package/dist/field/lexical/config/client/loader.d.ts +0 -12
- package/dist/field/lexical/config/client/loader.d.ts.map +0 -1
- package/dist/field/lexical/config/client/loader.js +0 -46
- package/dist/field/lexical/config/client/loader.js.map +0 -1
- package/dist/field/lexical/config/client/sanitize.d.ts +0 -6
- package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
- package/dist/field/lexical/config/client/sanitize.js +0 -126
- package/dist/field/lexical/config/client/sanitize.js.map +0 -1
- package/dist/field/lexical/config/server/default.d.ts +0 -8
- package/dist/field/lexical/config/server/default.d.ts.map +0 -1
- package/dist/field/lexical/config/server/default.js +0 -53
- package/dist/field/lexical/config/server/default.js.map +0 -1
- package/dist/field/lexical/config/server/loader.d.ts +0 -7
- package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
- package/dist/field/lexical/config/server/loader.js +0 -118
- package/dist/field/lexical/config/server/loader.js.map +0 -1
- package/dist/field/lexical/config/server/sanitize.d.ts +0 -5
- package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
- package/dist/field/lexical/config/server/sanitize.js +0 -65
- package/dist/field/lexical/config/server/sanitize.js.map +0 -1
- package/dist/field/lexical/config/types.d.ts +0 -21
- package/dist/field/lexical/config/types.d.ts.map +0 -1
- package/dist/field/lexical/config/types.js.map +0 -1
- package/dist/field/lexical/nodes/index.d.ts +0 -7
- package/dist/field/lexical/nodes/index.d.ts.map +0 -1
- package/dist/field/lexical/nodes/index.js.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts +0 -8
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js +0 -97
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.js.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarButton/index.scss +0 -37
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts +0 -17
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.d.ts.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js +0 -251
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/DropDown.js.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts +0 -18
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js +0 -42
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.js.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/ToolbarDropdown/index.scss +0 -100
- package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts +0 -6
- package/dist/field/lexical/plugins/FloatingSelectToolbar/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js +0 -270
- package/dist/field/lexical/plugins/FloatingSelectToolbar/index.js.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/index.scss +0 -57
- package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts +0 -40
- package/dist/field/lexical/plugins/FloatingSelectToolbar/types.d.ts.map +0 -1
- package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js +0 -3
- package/dist/field/lexical/plugins/FloatingSelectToolbar/types.js.map +0 -1
- package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/MarkdownShortcut/index.js +0 -13
- package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -32
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -404
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -25
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -207
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -39
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -39
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/index.d.ts +0 -6
- package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/index.js +0 -172
- package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/index.scss +0 -61
- package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +0 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts +0 -6
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js +0 -241
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +0 -31
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts +0 -27
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js +0 -151
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/getNodeCloseToPoint.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts +0 -3
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -6
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js +0 -298
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.scss +0 -55
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -3
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -49
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/getCollapsedMargins.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +0 -7
- package/dist/field/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/isOnHandleElement.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js +0 -27
- package/dist/field/lexical/plugins/handles/utils/setHandlePosition.js.map +0 -1
- package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
- package/dist/field/lexical/theme/EditorTheme.js +0 -106
- package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
- package/dist/field/lexical/theme/EditorTheme.scss +0 -505
- package/dist/field/lexical/ui/ContentEditable.d.ts +0 -6
- package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
- package/dist/field/lexical/ui/ContentEditable.js +0 -11
- package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
- package/dist/field/lexical/ui/ContentEditable.scss +0 -25
- package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AI/index.js +0 -27
- package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/AlignCenter/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AlignCenter/index.js +0 -25
- package/dist/field/lexical/ui/icons/AlignCenter/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/AlignJustify/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AlignJustify/index.js +0 -25
- package/dist/field/lexical/ui/icons/AlignJustify/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/AlignLeft/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AlignLeft/index.js +0 -25
- package/dist/field/lexical/ui/icons/AlignLeft/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/AlignRight/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AlignRight/index.js +0 -25
- package/dist/field/lexical/ui/icons/AlignRight/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Block/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Block/index.js +0 -34
- package/dist/field/lexical/ui/icons/Block/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Blockquote/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Blockquote/index.js +0 -16
- package/dist/field/lexical/ui/icons/Blockquote/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Bold/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Bold/index.js +0 -16
- package/dist/field/lexical/ui/icons/Bold/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Checklist/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Checklist/index.js +0 -24
- package/dist/field/lexical/ui/icons/Checklist/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Code/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Code/index.js +0 -19
- package/dist/field/lexical/ui/icons/Code/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/CodeBlock/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/CodeBlock/index.js +0 -19
- package/dist/field/lexical/ui/icons/CodeBlock/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H1/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H1/index.js +0 -16
- package/dist/field/lexical/ui/icons/H1/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H2/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H2/index.js +0 -16
- package/dist/field/lexical/ui/icons/H2/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H3/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H3/index.js +0 -16
- package/dist/field/lexical/ui/icons/H3/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H4/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H4/index.js +0 -16
- package/dist/field/lexical/ui/icons/H4/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H5/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H5/index.js +0 -16
- package/dist/field/lexical/ui/icons/H5/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/H6/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/H6/index.js +0 -16
- package/dist/field/lexical/ui/icons/H6/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/HorizontalRule/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/HorizontalRule/index.js +0 -19
- package/dist/field/lexical/ui/icons/HorizontalRule/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/IndentDecrease/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/IndentDecrease/index.js +0 -28
- package/dist/field/lexical/ui/icons/IndentDecrease/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/IndentIncrease/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/IndentIncrease/index.js +0 -28
- package/dist/field/lexical/ui/icons/IndentIncrease/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Italic/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Italic/index.js +0 -16
- package/dist/field/lexical/ui/icons/Italic/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Link/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Link/index.js +0 -27
- package/dist/field/lexical/ui/icons/Link/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/OrderedList/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/OrderedList/index.js +0 -31
- package/dist/field/lexical/ui/icons/OrderedList/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Relationship/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Relationship/index.js +0 -27
- package/dist/field/lexical/ui/icons/Relationship/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Strikethrough/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Strikethrough/index.js +0 -19
- package/dist/field/lexical/ui/icons/Strikethrough/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Subscript/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Subscript/index.js +0 -16
- package/dist/field/lexical/ui/icons/Subscript/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Superscript/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Superscript/index.js +0 -16
- package/dist/field/lexical/ui/icons/Superscript/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Text/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Text/index.js +0 -16
- package/dist/field/lexical/ui/icons/Text/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Underline/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Underline/index.js +0 -19
- package/dist/field/lexical/ui/icons/Underline/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/UnorderedList/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/UnorderedList/index.js +0 -46
- package/dist/field/lexical/ui/icons/UnorderedList/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Upload/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Upload/index.js +0 -28
- package/dist/field/lexical/ui/icons/Upload/index.js.map +0 -1
- package/dist/field/lexical/utils/canUseDOM.d.ts.map +0 -1
- package/dist/field/lexical/utils/canUseDOM.js.map +0 -1
- package/dist/field/lexical/utils/cloneDeep.d.ts +0 -2
- package/dist/field/lexical/utils/cloneDeep.d.ts.map +0 -1
- package/dist/field/lexical/utils/cloneDeep.js +0 -50
- package/dist/field/lexical/utils/cloneDeep.js.map +0 -1
- package/dist/field/lexical/utils/environment.d.ts.map +0 -1
- package/dist/field/lexical/utils/environment.js.map +0 -1
- package/dist/field/lexical/utils/getDOMRangeRect.d.ts.map +0 -1
- package/dist/field/lexical/utils/getDOMRangeRect.js.map +0 -1
- package/dist/field/lexical/utils/getSelectedNode.d.ts.map +0 -1
- package/dist/field/lexical/utils/getSelectedNode.js +0 -18
- package/dist/field/lexical/utils/getSelectedNode.js.map +0 -1
- package/dist/field/lexical/utils/guard.d.ts.map +0 -1
- package/dist/field/lexical/utils/guard.js.map +0 -1
- package/dist/field/lexical/utils/invariant.d.ts.map +0 -1
- package/dist/field/lexical/utils/invariant.js.map +0 -1
- package/dist/field/lexical/utils/joinClasses.d.ts.map +0 -1
- package/dist/field/lexical/utils/joinClasses.js.map +0 -1
- package/dist/field/lexical/utils/markdown/createBlockNode.d.ts +0 -4
- package/dist/field/lexical/utils/markdown/createBlockNode.d.ts.map +0 -1
- package/dist/field/lexical/utils/markdown/createBlockNode.js.map +0 -1
- package/dist/field/lexical/utils/nodeFormat.d.ts +0 -41
- package/dist/field/lexical/utils/nodeFormat.d.ts.map +0 -1
- package/dist/field/lexical/utils/nodeFormat.js +0 -88
- package/dist/field/lexical/utils/nodeFormat.js.map +0 -1
- package/dist/field/lexical/utils/point.d.ts.map +0 -1
- package/dist/field/lexical/utils/point.js.map +0 -1
- package/dist/field/lexical/utils/rect.d.ts.map +0 -1
- package/dist/field/lexical/utils/rect.js.map +0 -1
- package/dist/field/lexical/utils/setFloatingElemPosition.d.ts +0 -2
- package/dist/field/lexical/utils/setFloatingElemPosition.d.ts.map +0 -1
- package/dist/field/lexical/utils/setFloatingElemPosition.js +0 -53
- package/dist/field/lexical/utils/setFloatingElemPosition.js.map +0 -1
- package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +0 -1
- package/dist/field/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +0 -1
- package/dist/field/lexical/utils/swipe.d.ts.map +0 -1
- package/dist/field/lexical/utils/swipe.js.map +0 -1
- package/dist/field/lexical/utils/url.d.ts.map +0 -1
- package/dist/field/lexical/utils/url.js +0 -25
- package/dist/field/lexical/utils/url.js.map +0 -1
- package/dist/generateComponentMap.d.ts +0 -6
- package/dist/generateComponentMap.d.ts.map +0 -1
- package/dist/generateComponentMap.js +0 -85
- package/dist/generateComponentMap.js.map +0 -1
- package/dist/generateSchemaMap.d.ts +0 -6
- package/dist/generateSchemaMap.d.ts.map +0 -1
- package/dist/generateSchemaMap.js +0 -30
- package/dist/generateSchemaMap.js.map +0 -1
- package/dist/populate/defaultValue.d.ts +0 -4
- package/dist/populate/defaultValue.d.ts.map +0 -1
- package/dist/populate/defaultValue.js +0 -50
- package/dist/populate/defaultValue.js.map +0 -1
- package/dist/populate/populate.d.ts +0 -21
- package/dist/populate/populate.d.ts.map +0 -1
- package/dist/populate/populate.js +0 -21
- package/dist/populate/populate.js.map +0 -1
- package/dist/populate/recurseNestedFields.d.ts +0 -25
- package/dist/populate/recurseNestedFields.d.ts.map +0 -1
- package/dist/populate/recurseNestedFields.js +0 -26
- package/dist/populate/recurseNestedFields.js.map +0 -1
- package/dist/populate/richTextRelationshipPromise.d.ts +0 -23
- package/dist/populate/richTextRelationshipPromise.d.ts.map +0 -1
- package/dist/populate/richTextRelationshipPromise.js +0 -68
- package/dist/populate/richTextRelationshipPromise.js.map +0 -1
- package/dist/scss/app.scss +0 -208
- package/dist/scss/colors.scss +0 -269
- package/dist/scss/queries.scss +0 -27
- package/dist/scss/resets.scss +0 -17
- package/dist/scss/styles.scss +0 -11
- package/dist/scss/svg.scss +0 -10
- package/dist/scss/toastify.scss +0 -58
- package/dist/scss/type.scss +0 -117
- package/dist/scss/vars.scss +0 -213
- package/dist/scss/z-index.scss +0 -9
- package/dist/useLexicalFeature.d.ts +0 -3
- package/dist/useLexicalFeature.d.ts.map +0 -1
- package/dist/useLexicalFeature.js +0 -9
- package/dist/useLexicalFeature.js.map +0 -1
- package/src/index.ts +0 -423
- /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.js +0 -0
- /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.d.ts +0 -0
- /package/dist/{field/features → features}/converters/html/converter/converters/linebreak.js +0 -0
- /package/dist/{field/features → features}/converters/html/converter/converters/paragraph.d.ts +0 -0
- /package/dist/{field/features → features}/converters/html/converter/converters/text.d.ts +0 -0
- /package/dist/{field/features → features}/converters/html/converter/converters/text.js +0 -0
- /package/dist/{field/features → features}/converters/html/converter/defaultConverters.d.ts +0 -0
- /package/dist/{field/features → features}/converters/html/converter/defaultConverters.js +0 -0
- /package/dist/{field/features → features}/converters/html/converter/types.js +0 -0
- /package/dist/{field/features → features}/createFeaturePropComponent.d.ts +0 -0
- /package/dist/{field/features → features}/format/bold/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features → features}/format/bold/markdownTransformers.js +0 -0
- /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features/format/inlinecode → features/format/inlineCode}/markdownTransformers.js +0 -0
- /package/dist/{field/features → features}/format/italic/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features → features}/format/italic/markdownTransformers.js +0 -0
- /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features → features}/format/strikethrough/markdownTransformers.js +0 -0
- /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features/horizontalrule → features/horizontalRule}/component/index.d.ts +0 -0
- /package/dist/{field/features/horizontalrule → features/horizontalRule}/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features/horizontalrule → features/horizontalRule}/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
- /package/dist/{field/features/link/drawer → features/link/nodes}/types.js +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/commands.d.ts +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.d.ts +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/types.js +0 -0
- /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features/lists/orderedlist → features/lists/orderedList}/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features/lists/unorderedlist → features/lists/unorderedList}/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/heading/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/link/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/list/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/listItem/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/quote/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/unknown/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/client.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/converters/upload/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/defaultConverters.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/converter/index.js +0 -0
- /package/dist/{field/features/link/nodes → features/migrations/lexicalPluginToLexical/converter}/types.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/heading/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/indent/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/link/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/listItem/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/orderedList/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/relationship/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unknown/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/converter.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/unorderedList/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/client.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/converter.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/upload/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/defaultConverters.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/index.d.ts +0 -0
- /package/dist/{field/features/migrations/lexicalPluginToLexical → features/migrations/slateToLexical}/converter/types.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/drawer/commands.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/drawer/index.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/utils/EnabledRelationshipsCondition.d.ts +0 -0
- /package/dist/{field/features/migrations/slateToLexical/converter → features/toolbars}/types.js +0 -0
- /package/dist/{field/features → features}/upload/component/index.d.ts +0 -0
- /package/dist/{field/features → features}/upload/drawer/commands.d.ts +0 -0
- /package/dist/{field/features → features}/upload/drawer/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/config/client/default.js +0 -0
- /package/dist/{field/features → lexical/config}/types.js +0 -0
- /package/dist/{field/lexical → lexical}/nodes/index.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/MarkdownShortcut/index.d.ts +0 -0
- /package/dist/{field/lexical/config → lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin}/types.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/useMenuTriggerMatch.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/debounce.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/doesLineHeightAffectElement.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getCollapsedMargins.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/isOnHandleElement.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/setHandlePosition.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/theme/EditorTheme.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Caret/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Checklist/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Edit/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H1/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Remove/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Strikethrough/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/canUseDOM.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/canUseDOM.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/environment.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/environment.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/getDOMRangeRect.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/getSelectedNode.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/guard.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/guard.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/invariant.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/invariant.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/joinClasses.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/joinClasses.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/markdown/createBlockNode.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/point.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/point.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/rect.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/rect.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/setFloatingElemPositionForLinkEditor.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/swipe.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/swipe.js +0 -0
- /package/dist/{field/lexical → lexical}/utils/url.d.ts +0 -0
package/README.md
CHANGED
package/dist/cell/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { EditorConfig as LexicalEditorConfig } from 'lexical
|
|
1
|
+
import type { EditorConfig as LexicalEditorConfig } from 'lexical';
|
|
2
|
+
import type { CellComponentProps } from 'payload';
|
|
2
3
|
import React from 'react';
|
|
4
|
+
import type { LexicalFieldAdminProps } from '../types.js';
|
|
3
5
|
export declare const RichTextCell: React.FC<{
|
|
6
|
+
admin?: LexicalFieldAdminProps;
|
|
4
7
|
lexicalEditorConfig: LexicalEditorConfig;
|
|
5
|
-
}>;
|
|
8
|
+
} & CellComponentProps>;
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cell/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cell/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAKjD,OAAO,KAA8B,MAAM,OAAO,CAAA;AAIlD,OAAO,KAAK,EAAqC,sBAAsB,EAAE,MAAM,aAAa,CAAA;AAO5F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CACjC;IACE,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,mBAAmB,EAAE,mBAAmB,CAAA;CACzC,GAAG,kBAAkB,CA4KvB,CAAA"}
|
package/dist/cell/index.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { useTableCell } from '@payloadcms/ui/elements/Table';
|
|
7
|
-
import { useFieldProps } from '@payloadcms/ui/forms/FieldPropsProvider';
|
|
8
|
-
import { useClientFunctions } from '@payloadcms/ui/providers/ClientFunction';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { createHeadlessEditor } from '@lexical/headless';
|
|
4
|
+
import { useClientFunctions, useTableCell } from '@payloadcms/ui';
|
|
5
|
+
import { $getRoot } from 'lexical';
|
|
9
6
|
import React, { useEffect, useState } from 'react';
|
|
10
|
-
import { defaultEditorLexicalConfig } from '../
|
|
11
|
-
import { loadClientFeatures } from '../
|
|
12
|
-
import { sanitizeClientEditorConfig } from '../
|
|
13
|
-
import { getEnabledNodes } from '../
|
|
7
|
+
import { defaultEditorLexicalConfig } from '../lexical/config/client/default.js';
|
|
8
|
+
import { loadClientFeatures } from '../lexical/config/client/loader.js';
|
|
9
|
+
import { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js';
|
|
10
|
+
import { getEnabledNodes } from '../lexical/nodes/index.js';
|
|
14
11
|
export const RichTextCell = (props)=>{
|
|
15
|
-
const { lexicalEditorConfig } = props;
|
|
12
|
+
const { admin, lexicalEditorConfig, richTextComponentMap } = props;
|
|
16
13
|
const [preview, setPreview] = React.useState('Loading...');
|
|
17
|
-
const { schemaPath } =
|
|
18
|
-
const { cellData, richTextComponentMap } = useTableCell();
|
|
14
|
+
const { cellData, cellProps: { schemaPath } } = useTableCell();
|
|
19
15
|
const clientFunctions = useClientFunctions();
|
|
20
16
|
const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false);
|
|
21
17
|
const [featureProviders, setFeatureProviders] = useState([]);
|
|
22
18
|
const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] = useState(null);
|
|
23
|
-
|
|
19
|
+
const featureProviderComponents = richTextComponentMap.get('features').sort((a, b)=>a.order - b.order) // order by order
|
|
24
20
|
;
|
|
25
|
-
//
|
|
26
|
-
|
|
27
|
-
|
|
21
|
+
let featureProvidersAndComponentsToLoad = 0 // feature providers and components
|
|
22
|
+
;
|
|
23
|
+
for (const featureProvider of featureProviderComponents){
|
|
24
|
+
const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key)=>key.startsWith(`feature.${featureProvider.key}.components.`));
|
|
25
|
+
featureProvidersAndComponentsToLoad += 1;
|
|
26
|
+
featureProvidersAndComponentsToLoad += featureComponentKeys.length;
|
|
27
|
+
}
|
|
28
28
|
useEffect(()=>{
|
|
29
29
|
if (!hasLoadedFeatures) {
|
|
30
30
|
const featureProvidersLocal = [];
|
|
31
|
-
let featureProvidersAndComponentsLoaded = 0
|
|
31
|
+
let featureProvidersAndComponentsLoaded = 0 // feature providers and components only
|
|
32
|
+
;
|
|
32
33
|
Object.entries(clientFunctions).forEach(([key, plugin])=>{
|
|
33
34
|
if (key.startsWith(`lexicalFeature.${schemaPath}.`)) {
|
|
34
|
-
if (!key.includes('.
|
|
35
|
+
if (!key.includes('.lexical_internal_components.')) {
|
|
35
36
|
featureProvidersLocal.push(plugin);
|
|
36
37
|
}
|
|
37
38
|
featureProvidersAndComponentsLoaded++;
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
|
-
if (featureProvidersAndComponentsLoaded ===
|
|
41
|
+
if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {
|
|
41
42
|
setFeatureProviders(featureProvidersLocal);
|
|
42
43
|
setHasLoadedFeatures(true);
|
|
43
44
|
/**
|
|
@@ -50,10 +51,12 @@ export const RichTextCell = (props)=>{
|
|
|
50
51
|
lexical: lexicalEditorConfig
|
|
51
52
|
}
|
|
52
53
|
});
|
|
53
|
-
setFinalSanitizedEditorConfig(sanitizeClientEditorConfig(lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig, resolvedClientFeatures));
|
|
54
|
+
setFinalSanitizedEditorConfig(sanitizeClientEditorConfig(lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig, resolvedClientFeatures, admin));
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
}, [
|
|
58
|
+
admin,
|
|
59
|
+
featureProviderComponents,
|
|
57
60
|
hasLoadedFeatures,
|
|
58
61
|
clientFunctions,
|
|
59
62
|
schemaPath,
|
|
@@ -61,9 +64,13 @@ export const RichTextCell = (props)=>{
|
|
|
61
64
|
featureProviders,
|
|
62
65
|
finalSanitizedEditorConfig,
|
|
63
66
|
lexicalEditorConfig,
|
|
64
|
-
|
|
67
|
+
richTextComponentMap,
|
|
68
|
+
featureProvidersAndComponentsToLoad
|
|
65
69
|
]);
|
|
66
70
|
useEffect(()=>{
|
|
71
|
+
if (!hasLoadedFeatures) {
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
67
74
|
let dataToUse = cellData;
|
|
68
75
|
if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {
|
|
69
76
|
setPreview('');
|
|
@@ -112,20 +119,27 @@ export const RichTextCell = (props)=>{
|
|
|
112
119
|
finalSanitizedEditorConfig
|
|
113
120
|
]);
|
|
114
121
|
if (!hasLoadedFeatures) {
|
|
115
|
-
return /*#__PURE__*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
return /*#__PURE__*/ _jsx(React.Fragment, {
|
|
123
|
+
children: Array.isArray(featureProviderComponents) && featureProviderComponents.map((featureProvider)=>{
|
|
124
|
+
// get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}
|
|
125
|
+
const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key)=>key.startsWith(`lexical_internal_feature.${featureProvider.key}.lexical_internal_components.`));
|
|
126
|
+
const featureComponents = featureComponentKeys.map((key)=>{
|
|
127
|
+
return richTextComponentMap.get(key);
|
|
128
|
+
});
|
|
129
|
+
return /*#__PURE__*/ _jsxs(React.Fragment, {
|
|
130
|
+
children: [
|
|
131
|
+
featureComponents?.length ? featureComponents.map((FeatureComponent)=>{
|
|
132
|
+
return FeatureComponent;
|
|
133
|
+
}) : null,
|
|
134
|
+
featureProvider.ClientFeature
|
|
135
|
+
]
|
|
136
|
+
}, featureProvider.key);
|
|
137
|
+
})
|
|
138
|
+
});
|
|
127
139
|
}
|
|
128
|
-
return /*#__PURE__*/
|
|
140
|
+
return /*#__PURE__*/ _jsx("span", {
|
|
141
|
+
children: preview
|
|
142
|
+
});
|
|
129
143
|
};
|
|
130
144
|
|
|
131
145
|
//# sourceMappingURL=index.js.map
|
package/dist/cell/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cell/index.tsx"],"sourcesContent":["'use client'\nimport type { EditorConfig as LexicalEditorConfig } from 'lexical/LexicalEditor.js'\n\nimport lexicalHeadlessImport from '@lexical/headless'\nconst { createHeadlessEditor } = lexicalHeadlessImport\nimport lexicalImport from 'lexical'\nconst { $getRoot } = lexicalImport\nimport { useTableCell } from '@payloadcms/ui/elements/Table'\nimport { useFieldProps } from '@payloadcms/ui/forms/FieldPropsProvider'\nimport { useClientFunctions } from '@payloadcms/ui/providers/ClientFunction'\nimport React, { useEffect, useState } from 'react'\n\nimport type { FeatureProviderClient } from '../field/features/types.js'\nimport type { SanitizedClientEditorConfig } from '../field/lexical/config/types.js'\nimport type { GeneratedFeatureProviderComponent } from '../types.js'\n\nimport { defaultEditorLexicalConfig } from '../field/lexical/config/client/default.js'\nimport { loadClientFeatures } from '../field/lexical/config/client/loader.js'\nimport { sanitizeClientEditorConfig } from '../field/lexical/config/client/sanitize.js'\nimport { getEnabledNodes } from '../field/lexical/nodes/index.js'\n\nexport const RichTextCell: React.FC<{\n lexicalEditorConfig: LexicalEditorConfig\n}> = (props) => {\n const { lexicalEditorConfig } = props\n\n const [preview, setPreview] = React.useState('Loading...')\n const { schemaPath } = useFieldProps()\n\n const { cellData, richTextComponentMap } = useTableCell()\n\n const clientFunctions = useClientFunctions()\n const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false)\n\n const [featureProviders, setFeatureProviders] = useState<FeatureProviderClient<unknown>[]>([])\n\n const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] =\n useState<SanitizedClientEditorConfig>(null)\n\n let featureProviderComponents: GeneratedFeatureProviderComponent[] = richTextComponentMap.get(\n 'features',\n ) as GeneratedFeatureProviderComponent[] // TODO: Type better\n // order by order\n featureProviderComponents = featureProviderComponents.sort((a, b) => a.order - b.order)\n\n const featureComponentsWithFeaturesLength =\n Array.from(richTextComponentMap.keys()).filter(\n (key) => key.startsWith(`feature.`) && !key.includes('.fields.'),\n ).length + featureProviderComponents.length\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n const featureProvidersLocal: FeatureProviderClient<unknown>[] = []\n let featureProvidersAndComponentsLoaded = 0\n\n Object.entries(clientFunctions).forEach(([key, plugin]) => {\n if (key.startsWith(`lexicalFeature.${schemaPath}.`)) {\n if (!key.includes('.components.')) {\n featureProvidersLocal.push(plugin)\n }\n featureProvidersAndComponentsLoaded++\n }\n })\n\n if (featureProvidersAndComponentsLoaded === featureComponentsWithFeaturesLength) {\n setFeatureProviders(featureProvidersLocal)\n setHasLoadedFeatures(true)\n\n /**\n * Loaded feature provided => create the final sanitized editor config\n */\n\n const resolvedClientFeatures = loadClientFeatures({\n clientFunctions,\n schemaPath,\n unSanitizedEditorConfig: {\n features: featureProvidersLocal,\n lexical: lexicalEditorConfig,\n },\n })\n\n setFinalSanitizedEditorConfig(\n sanitizeClientEditorConfig(\n lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig,\n resolvedClientFeatures,\n ),\n )\n }\n }\n }, [\n hasLoadedFeatures,\n clientFunctions,\n schemaPath,\n featureProviderComponents.length,\n featureProviders,\n finalSanitizedEditorConfig,\n lexicalEditorConfig,\n featureComponentsWithFeaturesLength,\n ])\n\n useEffect(() => {\n let dataToUse = cellData\n if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {\n setPreview('')\n return\n }\n\n // Transform data through load hooks\n if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {\n finalSanitizedEditorConfig.features.hooks.load.forEach((hook) => {\n dataToUse = hook({ incomingEditorState: dataToUse })\n })\n }\n\n if (!dataToUse || typeof dataToUse !== 'object') {\n setPreview('')\n return\n }\n\n // If data is from Slate and not Lexical\n if (Array.isArray(dataToUse) && !('root' in dataToUse)) {\n setPreview('')\n return\n }\n\n // If data is from payload-plugin-lexical\n if ('jsonContent' in dataToUse) {\n setPreview('')\n return\n }\n\n // initialize headless editor\n const headlessEditor = createHeadlessEditor({\n namespace: finalSanitizedEditorConfig.lexical.namespace,\n nodes: getEnabledNodes({ editorConfig: finalSanitizedEditorConfig }),\n theme: finalSanitizedEditorConfig.lexical.theme,\n })\n headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse))\n\n const textContent =\n headlessEditor.getEditorState().read(() => {\n return $getRoot().getTextContent()\n }) || ''\n\n // Limiting the number of characters shown is done in a CSS rule\n setPreview(textContent)\n }, [cellData, lexicalEditorConfig, hasLoadedFeatures, finalSanitizedEditorConfig])\n\n if (!hasLoadedFeatures) {\n return (\n <React.Fragment>\n {Array.isArray(featureProviderComponents) &&\n featureProviderComponents.map((featureProvider) => {\n // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(`feature.${featureProvider.key}.components.`),\n )\n const featureComponents: React.ReactNode[] = featureComponentKeys.map((key) => {\n return richTextComponentMap.get(key)\n })\n\n return (\n <React.Fragment key={featureProvider.key}>\n {featureComponents?.length\n ? featureComponents.map((FeatureComponent) => {\n return FeatureComponent\n })\n : null}\n {featureProvider.ClientComponent}\n </React.Fragment>\n )\n })}\n </React.Fragment>\n )\n }\n\n return <span>{preview}</span>\n}\n"],"names":["lexicalHeadlessImport","createHeadlessEditor","lexicalImport","$getRoot","useTableCell","useFieldProps","useClientFunctions","React","useEffect","useState","defaultEditorLexicalConfig","loadClientFeatures","sanitizeClientEditorConfig","getEnabledNodes","RichTextCell","props","lexicalEditorConfig","preview","setPreview","schemaPath","cellData","richTextComponentMap","clientFunctions","hasLoadedFeatures","setHasLoadedFeatures","featureProviders","setFeatureProviders","finalSanitizedEditorConfig","setFinalSanitizedEditorConfig","featureProviderComponents","get","sort","a","b","order","featureComponentsWithFeaturesLength","Array","from","keys","filter","key","startsWith","includes","length","featureProvidersLocal","featureProvidersAndComponentsLoaded","Object","entries","forEach","plugin","push","resolvedClientFeatures","unSanitizedEditorConfig","features","lexical","dataToUse","hooks","load","hook","incomingEditorState","isArray","headlessEditor","namespace","nodes","editorConfig","theme","setEditorState","parseEditorState","textContent","getEditorState","read","getTextContent","Fragment","map","featureProvider","featureComponentKeys","featureComponents","FeatureComponent","ClientComponent","span"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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version":3,"sources":["../../src/cell/index.tsx"],"sourcesContent":["'use client'\nimport type { EditorConfig as LexicalEditorConfig } from 'lexical'\nimport type { CellComponentProps } from 'payload'\n\nimport { createHeadlessEditor } from '@lexical/headless'\nimport { useClientFunctions, useTableCell } from '@payloadcms/ui'\nimport { $getRoot } from 'lexical'\nimport React, { useEffect, useState } from 'react'\n\nimport type { FeatureProviderClient } from '../features/typesClient.js'\nimport type { SanitizedClientEditorConfig } from '../lexical/config/types.js'\nimport type { GeneratedFeatureProviderComponent, LexicalFieldAdminProps } from '../types.js'\n\nimport { defaultEditorLexicalConfig } from '../lexical/config/client/default.js'\nimport { loadClientFeatures } from '../lexical/config/client/loader.js'\nimport { sanitizeClientEditorConfig } from '../lexical/config/client/sanitize.js'\nimport { getEnabledNodes } from '../lexical/nodes/index.js'\n\nexport const RichTextCell: React.FC<\n {\n admin?: LexicalFieldAdminProps\n lexicalEditorConfig: LexicalEditorConfig\n } & CellComponentProps\n> = (props) => {\n const { admin, lexicalEditorConfig, richTextComponentMap } = props\n\n const [preview, setPreview] = React.useState('Loading...')\n\n const {\n cellData,\n cellProps: { schemaPath },\n } = useTableCell()\n\n const clientFunctions = useClientFunctions()\n const [hasLoadedFeatures, setHasLoadedFeatures] = useState(false)\n\n const [featureProviders, setFeatureProviders] = useState<\n FeatureProviderClient<unknown, unknown>[]\n >([])\n\n const [finalSanitizedEditorConfig, setFinalSanitizedEditorConfig] =\n useState<SanitizedClientEditorConfig>(null)\n\n const featureProviderComponents: GeneratedFeatureProviderComponent[] = (\n richTextComponentMap.get('features') as GeneratedFeatureProviderComponent[]\n ).sort((a, b) => a.order - b.order) // order by order\n\n let featureProvidersAndComponentsToLoad = 0 // feature providers and components\n for (const featureProvider of featureProviderComponents) {\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(`feature.${featureProvider.key}.components.`),\n )\n\n featureProvidersAndComponentsToLoad += 1\n featureProvidersAndComponentsToLoad += featureComponentKeys.length\n }\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n const featureProvidersLocal: FeatureProviderClient<unknown, unknown>[] = []\n let featureProvidersAndComponentsLoaded = 0 // feature providers and components only\n\n Object.entries(clientFunctions).forEach(([key, plugin]) => {\n if (key.startsWith(`lexicalFeature.${schemaPath}.`)) {\n if (!key.includes('.lexical_internal_components.')) {\n featureProvidersLocal.push(plugin)\n }\n featureProvidersAndComponentsLoaded++\n }\n })\n\n if (featureProvidersAndComponentsLoaded === featureProvidersAndComponentsToLoad) {\n setFeatureProviders(featureProvidersLocal)\n setHasLoadedFeatures(true)\n\n /**\n * Loaded feature provided => create the final sanitized editor config\n */\n\n const resolvedClientFeatures = loadClientFeatures({\n clientFunctions,\n schemaPath,\n unSanitizedEditorConfig: {\n features: featureProvidersLocal,\n lexical: lexicalEditorConfig,\n },\n })\n\n setFinalSanitizedEditorConfig(\n sanitizeClientEditorConfig(\n lexicalEditorConfig ? lexicalEditorConfig : defaultEditorLexicalConfig,\n resolvedClientFeatures,\n admin,\n ),\n )\n }\n }\n }, [\n admin,\n featureProviderComponents,\n hasLoadedFeatures,\n clientFunctions,\n schemaPath,\n featureProviderComponents.length,\n featureProviders,\n finalSanitizedEditorConfig,\n lexicalEditorConfig,\n richTextComponentMap,\n featureProvidersAndComponentsToLoad,\n ])\n\n useEffect(() => {\n if (!hasLoadedFeatures) {\n return\n }\n let dataToUse = cellData\n if (dataToUse == null || !hasLoadedFeatures || !finalSanitizedEditorConfig) {\n setPreview('')\n return\n }\n\n // Transform data through load hooks\n if (finalSanitizedEditorConfig?.features?.hooks?.load?.length) {\n finalSanitizedEditorConfig.features.hooks.load.forEach((hook) => {\n dataToUse = hook({ incomingEditorState: dataToUse })\n })\n }\n\n if (!dataToUse || typeof dataToUse !== 'object') {\n setPreview('')\n return\n }\n\n // If data is from Slate and not Lexical\n if (Array.isArray(dataToUse) && !('root' in dataToUse)) {\n setPreview('')\n return\n }\n\n // If data is from payload-plugin-lexical\n if ('jsonContent' in dataToUse) {\n setPreview('')\n return\n }\n\n // initialize headless editor\n const headlessEditor = createHeadlessEditor({\n namespace: finalSanitizedEditorConfig.lexical.namespace,\n nodes: getEnabledNodes({ editorConfig: finalSanitizedEditorConfig }),\n theme: finalSanitizedEditorConfig.lexical.theme,\n })\n headlessEditor.setEditorState(headlessEditor.parseEditorState(dataToUse))\n\n const textContent =\n headlessEditor.getEditorState().read(() => {\n return $getRoot().getTextContent()\n }) || ''\n\n // Limiting the number of characters shown is done in a CSS rule\n setPreview(textContent)\n }, [cellData, lexicalEditorConfig, hasLoadedFeatures, finalSanitizedEditorConfig])\n\n if (!hasLoadedFeatures) {\n return (\n <React.Fragment>\n {Array.isArray(featureProviderComponents) &&\n featureProviderComponents.map((featureProvider) => {\n // get all components starting with key feature.${FeatureProvider.key}.components.{featureComponentKey}\n const featureComponentKeys = Array.from(richTextComponentMap.keys()).filter((key) =>\n key.startsWith(\n `lexical_internal_feature.${featureProvider.key}.lexical_internal_components.`,\n ),\n )\n\n const featureComponents: React.ReactNode[] = featureComponentKeys.map((key) => {\n return richTextComponentMap.get(key)\n })\n\n return (\n <React.Fragment key={featureProvider.key}>\n {featureComponents?.length\n ? featureComponents.map((FeatureComponent) => {\n return FeatureComponent\n })\n : null}\n {featureProvider.ClientFeature}\n </React.Fragment>\n )\n })}\n </React.Fragment>\n )\n }\n\n return <span>{preview}</span>\n}\n"],"names":["createHeadlessEditor","useClientFunctions","useTableCell","$getRoot","React","useEffect","useState","defaultEditorLexicalConfig","loadClientFeatures","sanitizeClientEditorConfig","getEnabledNodes","RichTextCell","props","admin","lexicalEditorConfig","richTextComponentMap","preview","setPreview","cellData","cellProps","schemaPath","clientFunctions","hasLoadedFeatures","setHasLoadedFeatures","featureProviders","setFeatureProviders","finalSanitizedEditorConfig","setFinalSanitizedEditorConfig","featureProviderComponents","get","sort","a","b","order","featureProvidersAndComponentsToLoad","featureProvider","featureComponentKeys","Array","from","keys","filter","key","startsWith","length","featureProvidersLocal","featureProvidersAndComponentsLoaded","Object","entries","forEach","plugin","includes","push","resolvedClientFeatures","unSanitizedEditorConfig","features","lexical","dataToUse","hooks","load","hook","incomingEditorState","isArray","headlessEditor","namespace","nodes","editorConfig","theme","setEditorState","parseEditorState","textContent","getEditorState","read","getTextContent","Fragment","map","featureComponents","FeatureComponent","ClientFeature","span"],"mappings":"AAAA;;AAIA,SAASA,oBAAoB,QAAQ,oBAAmB;AACxD,SAASC,kBAAkB,EAAEC,YAAY,QAAQ,iBAAgB;AACjE,SAASC,QAAQ,QAAQ,UAAS;AAClC,OAAOC,SAASC,SAAS,EAAEC,QAAQ,QAAQ,QAAO;AAMlD,SAASC,0BAA0B,QAAQ,sCAAqC;AAChF,SAASC,kBAAkB,QAAQ,qCAAoC;AACvE,SAASC,0BAA0B,QAAQ,uCAAsC;AACjF,SAASC,eAAe,QAAQ,4BAA2B;AAE3D,OAAO,MAAMC,eAKT,CAACC;IACH,MAAM,EAAEC,KAAK,EAAEC,mBAAmB,EAAEC,oBAAoB,EAAE,GAAGH;IAE7D,MAAM,CAACI,SAASC,WAAW,GAAGb,MAAME,QAAQ,CAAC;IAE7C,MAAM,EACJY,QAAQ,EACRC,WAAW,EAAEC,UAAU,EAAE,EAC1B,GAAGlB;IAEJ,MAAMmB,kBAAkBpB;IACxB,MAAM,CAACqB,mBAAmBC,qBAAqB,GAAGjB,SAAS;IAE3D,MAAM,CAACkB,kBAAkBC,oBAAoB,GAAGnB,SAE9C,EAAE;IAEJ,MAAM,CAACoB,4BAA4BC,8BAA8B,GAC/DrB,SAAsC;IAExC,MAAMsB,4BAAiE,AACrEb,qBAAqBc,GAAG,CAAC,YACzBC,IAAI,CAAC,CAACC,GAAGC,IAAMD,EAAEE,KAAK,GAAGD,EAAEC,KAAK,EAAE,iBAAiB;;IAErD,IAAIC,sCAAsC,EAAE,mCAAmC;;IAC/E,KAAK,MAAMC,mBAAmBP,0BAA2B;QACvD,MAAMQ,uBAAuBC,MAAMC,IAAI,CAACvB,qBAAqBwB,IAAI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ACT,KACA;wBACHzC,gBAAgB0C,aAAa;;mBANX1C,gBAAgBM,GAAG;YAS5C;;IAGR;IAEA,qBAAO,KAACqC;kBAAM9D;;AAChB,EAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";var d=o=>{let{data:n}=o;return t("div",{children:["Unknown converted payload-plugin-lexical node: ",e("strong",{children:n?.nodeType})]})};export{d as UnknownConvertedNodeComponent};
|
|
2
|
+
//# sourceMappingURL=Component-7HS6FEJS.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\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"],
|
|
5
|
+
"mappings": "AAYI,OACiD,OAAAA,EADjD,QAAAC,MAAA,oBAJG,IAAMC,EAAkDC,GAAU,CACvE,GAAM,CAAE,KAAAC,CAAK,EAAID,EAEjB,OACEF,EAAC,OAAI,4DAC4CD,EAAC,UAAQ,SAAAI,GAAM,SAAS,GACzE,CAEJ",
|
|
6
|
+
"names": ["jsx", "jsxs", "UnknownConvertedNodeComponent", "props", "data"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.tsx"],
|
|
4
|
+
"sourcesContent": ["import React from 'react'\n\nimport type { UnknownConvertedNodeData } from './index.js'\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 Slate node: <strong>{data?.nodeType}</strong>\n </div>\n )\n}\n"],
|
|
5
|
+
"mappings": "AAYI,OACgC,OAAAA,EADhC,QAAAC,MAAA,oBAJG,IAAMC,EAAkDC,GAAU,CACvE,GAAM,CAAE,KAAAC,CAAK,EAAID,EAEjB,OACEF,EAAC,OAAI,2CAC2BD,EAAC,UAAQ,SAAAI,GAAM,SAAS,GACxD,CAEJ",
|
|
6
|
+
"names": ["jsx", "jsxs", "UnknownConvertedNodeComponent", "props", "data"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{a as ce,b as ue,c as de,d as fe,e as K,f as I,h as pe}from"./chunk-EBB2CEB6.js";import{a as me,b as N}from"./chunk-IWZVO3AI.js";import{FieldDescription as At,FieldError as Ot,FieldLabel as _t,useField as zt,useFieldProps as $t,withCondition as Gt}from"@payloadcms/ui";import{useCallback as Kt}from"react";import{ErrorBoundary as Wt}from"react-error-boundary";import{LexicalComposer as Ht}from"@lexical/react/LexicalComposer.js";import*as We from"react";import{useMemo as Ke}from"react";import{useLexicalComposerContext as Pt}from"@lexical/react/LexicalComposerContext.js";import{LexicalErrorBoundary as Nt}from"@lexical/react/LexicalErrorBoundary.js";import{HistoryPlugin as St}from"@lexical/react/LexicalHistoryPlugin.js";import{OnChangePlugin as kt}from"@lexical/react/LexicalOnChangePlugin.js";import{RichTextPlugin as wt}from"@lexical/react/LexicalRichTextPlugin.js";import{TabIndentationPlugin as It}from"@lexical/react/LexicalTabIndentationPlugin.js";import{useTranslation as Dt}from"@payloadcms/ui";import{BLUR_COMMAND as Bt,COMMAND_PRIORITY_LOW as _e,FOCUS_COMMAND as Ft}from"lexical";import*as q from"react";import{useEffect as ze,useState as $e}from"react";import{jsx as ge}from"react/jsx-runtime";var O=({anchorElem:t,clientProps:e,plugin:i})=>i.position==="floatingAnchorElem"?i.Component&&ge(i.Component,{anchorElem:t,clientProps:e}):i.Component&&ge(i.Component,{clientProps:e});import{MarkdownShortcutPlugin as Je}from"@lexical/react/LexicalMarkdownShortcutPlugin.js";import{jsx as je}from"react/jsx-runtime";var ye=()=>{let{editorConfig:t}=N();return je(Je,{transformers:t.features.markdownTransformers})};import{useLexicalComposerContext as Qe}from"@lexical/react/LexicalComposerContext.js";import{useTranslation as be}from"@payloadcms/ui";import{useCallback as Ee,useMemo as Ze,useState as et}from"react";import*as xe from"react-dom";import{useCallback as Xe}from"react";function he(t,{maxLength:e=75,minLength:i=1}){return Xe(({query:l})=>{let r="[^"+t+ue+"\\s]",d=new RegExp("(^|\\s|\\()(["+t+"]((?:"+r+"){0,"+e+"}))$").exec(l);if(d!==null){let c=d[1],m=d[3];if(m.length>=i)return{leadOffset:d.index+c.length,matchingString:m,replaceableString:d[2]}}return null},[e,i,t])}import{jsx as W,jsxs as Te}from"react/jsx-runtime";var k="slash-menu-popup";function tt({isSelected:t,item:e,onClick:i,onMouseEnter:l}){let{i18n:r}=be(),u=`${k}__item ${k}__item-${e.key}`;t&&(u+=` ${k}__item--selected`);let d=e.key;return e.label&&(d=typeof e.label=="function"?e.label({i18n:r}):e.label),d.length>25&&(d=d.substring(0,25)+"..."),Te("button",{"aria-selected":t,className:u,id:k+"__item-"+e.key,onClick:i,onMouseEnter:l,ref:c=>{e.ref={current:c}},role:"option",tabIndex:-1,type:"button",children:[e?.Icon&&W(e.Icon,{}),W("span",{className:`${k}__item-text`,children:d})]},e.key)}function Ce({anchorElem:t=document.body}){let[e]=Qe(),[i,l]=et(null),{editorConfig:r}=N(),{i18n:u}=be(),d=he("/",{minLength:0}),c=Ee(()=>{let a=[];for(let s of r.features.slashMenu.dynamicGroups){let o=s({editor:e,queryString:i});a=a.concat(o)}return a},[e,i,r?.features]),m=Ze(()=>{let a=[];for(let s of r?.features.slashMenu.groups??[])a.push(s);if(i){a=a.map(o=>{let n=o.items.filter(f=>{let E=f.key;return f.label&&(E=typeof f.label=="function"?f.label({i18n:u}):f.label),new RegExp(i,"gi").exec(E)?!0:f.keywords!=null?f.keywords.some(h=>new RegExp(i,"gi").exec(h)):!1});return n.length?{...o,items:n}:null}),a=a.filter(o=>o!=null);let s=c();for(let o of s){let n=a.find(f=>f.key===o.key);n?a=a.filter(f=>f.key!==o.key):n={...o,items:[]},n?.items?.length&&(n.items=n.items.concat(n.items)),a.push(n)}}return a},[c,i,r?.features,u]),p=Ee((a,s,o,n)=>{s&&e.update(()=>{s.remove()}),a.onSelect({editor:e,queryString:n}),o()},[e]);return W(fe,{anchorElem:t,groups:m,menuRenderFn:(a,{selectItemAndCleanUp:s,selectedItemKey:o,setSelectedItemKey:n})=>a.current&&m.length?xe.createPortal(W("div",{className:k,children:m.map(f=>{let E=f.key;return f.label&&(E=typeof f.label=="function"?f.label({i18n:u}):f.label),Te("div",{className:`${k}__group ${k}__group-${f.key}`,children:[W("div",{className:`${k}__group-title`,children:E}),f.items.map((h,g)=>W(tt,{index:g,isSelected:o===h.key,item:h,onClick:()=>{n(h.key),s(h)},onMouseEnter:()=>{n(h.key)}},h.key))]},f.key)})}),a.current):null,onQueryChange:l,onSelectItem:p,triggerFn:d})}import{useLexicalComposerContext as at}from"@lexical/react/LexicalComposerContext.js";import{$createParagraphNode as st}from"lexical";import*as Re from"react";import{useCallback as ct,useEffect as ve,useRef as mt,useState as ut}from"react";import{createPortal as dt}from"react-dom";var Y=(t,e,i,l,r=50,u=25)=>{let d=0;if(t&&!t.contains(l)){let{bottom:c,left:m,right:p,top:a}=t.getBoundingClientRect(),s=a+window.scrollY,o=c+window.scrollY;if(i<s-u||i>o+u||e<m-r||e>p+r)return-1;(e<m||e>p)&&(d=e<m?e-m:e-p)}return d};import{$getNodeByKey as Q}from"lexical";function D(t){let e=t.getBoundingClientRect(),i=getComputedStyle(t).getPropertyValue("transform");if(!i||i==="none")return e;let l=i.split(",").pop();return e.y=e.y-Number(l.replace(")","")),e}function X(t){let e=(m,p)=>m?parseFloat(window.getComputedStyle(m)[p]):0,{marginBottom:i,marginTop:l}=window.getComputedStyle(t),r=e(t.previousElementSibling,"marginBottom"),u=e(t.nextElementSibling,"marginTop"),d=Math.max(parseFloat(l),r);return{marginBottom:Math.max(parseFloat(i),u),marginTop:d}}import{$getRoot as ot}from"lexical";function _(t){return t.getEditorState().read(()=>ot().getChildrenKeys())}var nt=1,rt=-1,Me=0,w={props:null,result:null};function it(t,e,i=20){let l=t.x-e.x,r=t.y-e.y;return l*l+r*r<=i*i}function V(t){let{anchorElem:e,cache_threshold:i=20,editor:l,fuzzy:r=!1,horizontalOffset:u=0,point:{x:d,y:c},startIndex:m=0,useEdgeAsDefault:p=!1,verbose:a=!1}=t;if(i>0&&w.props&&w.result&&w.props.fuzzy===t.fuzzy&&w.props.horizontalOffset===t.horizontalOffset&&w.props.useEdgeAsDefault===t.useEdgeAsDefault&&it(w.props.point,t.point,i))return w.result;let s=e.getBoundingClientRect(),o=_(l),n={blockElem:null,blockNode:null,distance:1/0,foundAtIndex:-1,isFoundNodeEmptyParagraph:!1};return l.getEditorState().read(()=>{if(p){let[h,g]=[l.getElementByKey(o[0]),l.getElementByKey(o[o.length-1])],[y,b]=[D(h),D(g)];if(y&&b&&(c<y.top?(n.blockElem=h,n.distance=y.top-c,n.blockNode=Q(o[0]),n.foundAtIndex=0):c>b.bottom&&(n.distance=c-b.bottom,n.blockNode=Q(o[o.length-1]),n.blockElem=g,n.foundAtIndex=o.length-1),n?.blockElem))return{blockElem:null,isFoundNodeEmptyParagraph:!1}}let f=m,E=Me;for(;f>=0&&f<o.length;){let h=o[f],g=l.getElementByKey(h);if(g===null)break;let y=new I(d+u,c),b=pe.fromDOMRect(D(g)),{marginBottom:R,marginTop:M}=X(g),L=b.generateNewRect({bottom:b.bottom+R,left:s.left,right:s.right,top:b.top-M}),{distance:v,isOnBottomSide:x,isOnTopSide:F}=L.distanceFromPoint(y);if(v===0){n.blockElem=g,n.blockNode=Q(h),n.foundAtIndex=f,n.distance=v,n.blockNode&&n.blockNode.getType()==="paragraph"&&n.blockNode.getTextContent()===""&&(!r&&!t.returnEmptyParagraphs&&(n.blockElem=null,n.blockNode=null),n.isFoundNodeEmptyParagraph=!0);break}else r&&v<n.distance&&(n.blockElem=g,n.blockNode=Q(h),n.distance=v,n.foundAtIndex=f);E===Me&&(F?E=rt:x?E=nt:E=1/0),f+=E}}),w.props=t,w.result={blockElem:n.blockElem,blockNode:n.blockNode,foundAtIndex:n.foundAtIndex,isFoundNodeEmptyParagraph:n.isFoundNodeEmptyParagraph},{blockElem:n.blockElem,blockNode:n.blockNode,foundAtIndex:n.foundAtIndex,isFoundNodeEmptyParagraph:n.isFoundNodeEmptyParagraph}}function Z(t,e){return!!t.closest(`.${e}`)}var lt=["IMG","INPUT","TEXTAREA","SELECT","BUTTON","VIDEO","OBJECT","EMBED","IFRAME","HR"];function Le(t){if(!t||lt.includes(t.tagName)||t.offsetHeight===0||t.offsetWidth===0)return!1;let e=window.getComputedStyle(t);return!(e.display==="table-cell"||e.position==="absolute"||e.visibility==="hidden"||e.opacity==="0")}function ee(t,e,i,l=0){if(!t){e.style.opacity="0",e.style.transform="translate(-10000px, -10000px)";return}let r=t.getBoundingClientRect(),u=window.getComputedStyle(t),d=e.getBoundingClientRect(),c=i.getBoundingClientRect(),m;if(r.height<60)m=r.top-d.height/2-c.top+r.height/2-1;else{let s=Le(t)?parseInt(u.lineHeight,10):0;m=r.top+(s-d.height)/2-c.top-1}let a=l;e.style.opacity="1",e.style.transform=`translate(${a}px, ${m}px)`}import{jsx as le}from"react/jsx-runtime";var ft="add-block-menu",te=1/0;function pt(t){return t===0?1/0:te>=0&&te<t?te:Math.floor(t/2)}function gt(t,e,i){let l=e.parentElement,{editorConfig:r}=N(),u=r?.admin?.hideGutter?-24:12,d=mt(null),[c,m]=ut(null);ve(()=>{function a(s){let o=s.target;if(!K(o))return;let n=Y(l,s.pageX,s.pageY,o);if(n===-1){m(null);return}if(Z(o,ft))return;let f=_(t),{blockElem:E,blockNode:h,foundAtIndex:g}=V({anchorElem:e,cache_threshold:0,editor:t,horizontalOffset:-n,point:new I(s.x,s.y),returnEmptyParagraphs:!0,startIndex:pt(f.length),useEdgeAsDefault:!1});te=g,E&&(c?.node!==h||c?.elem!==E)&&m({elem:E,node:h})}return document?.addEventListener("mousemove",a),()=>{document?.removeEventListener("mousemove",a)}},[l,e,t,c]),ve(()=>{d.current&&c?.node&&ee(c?.elem,d.current,e,u)},[e,c,u]);let p=ct(a=>{let s=c;s?.node&&(t.update(()=>{let o=!0;if((s.node.getType()!=="paragraph"||s.node.getTextContent()!=="")&&(o=!1),!o){let n=st();s.node.insertAfter(n),setTimeout(()=>{s={elem:t.getElementByKey(n.getKey()),node:n},m(s)},0)}}),setTimeout(()=>{t.update(()=>{t.focus(),s.node&&"select"in s.node&&typeof s.node.select=="function"&&s.node.select()})},1),setTimeout(()=>{t.dispatchCommand(de,{node:s.node})},2),a.stopPropagation(),a.preventDefault())},[t,c]);return dt(le(Re.Fragment,{children:le("button",{className:"icon add-block-menu",onClick:a=>{p(a)},ref:d,type:"button",children:le("div",{className:i?"icon":""})})}),e)}function Pe({anchorElem:t=document.body}){let[e]=at();return gt(e,t,e._editable)}import{useLexicalComposerContext as Et}from"@lexical/react/LexicalComposerContext.js";import{eventFiles as ke}from"@lexical/rich-text";import{$getNearestNodeFromDOMNode as we,$getNodeByKey as bt}from"lexical";import*as He from"react";import{useEffect as ae,useRef as oe,useState as Ie}from"react";import{createPortal as xt}from"react-dom";function Ne(t,e,i){if(!t.current)return;let{left:l,top:r}=i.getBoundingClientRect(),u=D(e),d=u.width,c=u.height,m=u.top-r,p=u.left-l;t.current.style.border="2px solid green",t.current.style.boxSizing="border-box",t.current.style.height=c+"px",t.current.style.pointerEvents="none",t.current.style.position="absolute",t.current.style.top=m+"px",t.current.style.left=p+"px",t.current.style.width=d+"px",t.current.style.zIndex="1000",t.current.style.opacity="0.5"}var U=25,yt=-24,ht=!1,z=0;function Se(t,e,i,l,r,u,d,c,m,p=!1){let{height:a,top:s}=l.getBoundingClientRect(),{top:o,width:n}=d.getBoundingClientRect(),{marginBottom:f,marginTop:E}=X(l),h=s,g=u>=s+a/2+window.scrollY,y=!1;if(r?.elem)if(l!==r?.elem)(g&&r?.elem&&r?.elem===l.nextElementSibling||!g&&r?.elem&&r?.elem===l.previousElementSibling)&&(z++,z<200&&(y=!0));else{z++;let v=r?.boundingBox?.y,x=l.getBoundingClientRect().y;(g===r?.isBelow&&v===x||z<200)&&(y=!1)}if(y)return{isBelow:g,willStayInSamePosition:y};p?h+=a/2:g?h+=a+f/2:h-=E/2;let b=0;p||(g?b=-U:b=U);let R=h-o+b,M=yt-e;i.style.width=`calc(${n}px - ${t})`,i.style.opacity=".4";let L=12;return p?i.style.transform=`translate(${M}px, ${R-U}px)`:g?(l.style.marginBottom=U*2+L+"px",i.style.transform=`translate(${M}px, calc(${R}px - 0px))`):(l.style.marginTop=U*2+L+"px",i.style.transform=`translate(${M}px, calc(${R-U*2}px - 0px))`),ht&&Ne(m,l,d),r.elem.style.opacity="",r?.elem===l?g?r.elem.style.marginTop="":r.elem.style.marginBottom="":(r.elem.style.marginBottom="",r.elem.style.marginTop=""),z=0,{isBelow:g,willStayInSamePosition:y}}import{jsx as ne,jsxs as Lt}from"react/jsx-runtime";var Ct="draggable-block-menu",De="application/x-lexical-drag-block",J=1/0;function Be(t){return t===0?1/0:J>=0&&J<t?J:Math.floor(t/2)}function Tt(t,e){let{transform:i}=e.style;t.setDragImage(e,0,0),setTimeout(()=>{e.style.transform=i})}function Fe(t,e){t&&(t.style.opacity="0"),e&&(e.style.opacity="",e.style.marginBottom="",e.style.marginTop="")}function Mt(t,e,i){let l=e.parentElement,r=oe(null),u=oe(null),d=oe(null),c=oe(!1),[m,p]=Ie(null),[a,s]=Ie(null),{editorConfig:o}=N(),n=o?.admin?.hideGutter?-44:-8;ae(()=>{function h(g){let y=g.target;if(!K(y))return;let b=Y(l,g.pageX,g.pageY,y);if(b===-1){p(null);return}if(Z(y,Ct))return;let R=_(t),{blockElem:M,foundAtIndex:L,isFoundNodeEmptyParagraph:v}=V({anchorElem:e,cache_threshold:0,editor:t,horizontalOffset:-b,point:new I(g.x,g.y),startIndex:Be(R.length),useEdgeAsDefault:!1,verbose:!1});J=L,!(!M&&!v)&&m!==M&&p(M)}return document?.addEventListener("mousemove",h),()=>{document?.removeEventListener("mousemove",h)}},[l,e,t,m]),ae(()=>{r.current&&ee(m,r.current,e,n)},[e,m,n]),ae(()=>{function h(y){if(!c.current)return!1;let[b]=ke(y);if(b)return!1;let{pageY:R,target:M}=y;if(!K(M))return!1;let L=Y(l,y.pageX,y.pageY,M,100,50),v=_(t),{blockElem:x,foundAtIndex:F,isFoundNodeEmptyParagraph:H}=V({anchorElem:e,editor:t,fuzzy:!0,horizontalOffset:-L,point:new I(y.x,y.y),startIndex:Be(v.length),useEdgeAsDefault:!0,verbose:!0});J=F;let A=u.current;if(x===null||A===null)return!1;if(m!==x){let{isBelow:P,willStayInSamePosition:S}=Se(o?.admin?.hideGutter?"0px":"3rem",n+(o?.admin?.hideGutter?r?.current?.getBoundingClientRect()?.width??0:-(r?.current?.getBoundingClientRect()?.width??0)),A,x,a,R,e,y,d,H);y.preventDefault(),S||s({boundingBox:x.getBoundingClientRect(),elem:x,isBelow:P})}else Fe(A,a?.elem),s({boundingBox:x.getBoundingClientRect(),elem:x,isBelow:!1});return!0}function g(y){if(!c.current)return!1;let[b]=ke(y);if(b)return!1;let{dataTransfer:R,pageY:M,target:L}=y,v=R?.getData(De)||"";return t.update(()=>{let x=bt(v);if(!x||!K(L))return!1;let F=Y(l,y.pageX,y.pageY,L,100,50),{blockElem:H,isFoundNodeEmptyParagraph:A}=V({anchorElem:e,editor:t,fuzzy:!0,horizontalOffset:-F,point:new I(y.x,y.y),useEdgeAsDefault:!0});if(!H)return!1;let P=we(H);if(!P)return!1;if(P===x)return!0;let{height:S,top:ie}=D(H),Ue=M>=ie+S/2+window.scrollY;A?(P.insertBefore(x),P.remove()):Ue?P.insertAfter(x):P.insertBefore(x),m!==null&&p(null),document.querySelectorAll(".lexical-block-highlighter").forEach(G=>{G.remove()});let qe=t.getElementByKey(x.getKey());setTimeout(()=>{let G=qe.getBoundingClientRect(),T=document.createElement("div");T.className="lexical-block-highlighter",document.documentElement.getAttribute("data-theme")==="dark"?T.style.backgroundColor="white":T.style.backgroundColor="black",T.style.transition="opacity 0.1s ease-in-out",T.style.zIndex="1",T.style.pointerEvents="none",T.style.boxSizing="border-box",T.style.borderRadius="4px",T.style.position="absolute",document.body.appendChild(T),T.style.opacity="0.1",T.style.height=`${G.height+8}px`,T.style.width=`${G.width+8}px`,T.style.top=`${G.top+window.scrollY-4}px`,T.style.left=`${G.left-4}px`,setTimeout(()=>{T.style.opacity="0",setTimeout(()=>{T.remove()},1e3)},3e3)},120)}),!0}return document.addEventListener("dragover",h),document.addEventListener("drop",g),()=>{document.removeEventListener("dragover",h),document.removeEventListener("drop",g)}},[l,n,e,t,a,m,o?.admin?.hideGutter]);function f(h){let g=h.dataTransfer;if(!g||!m)return;Tt(g,m);let y="";t.update(()=>{let b=we(m);b&&(y=b.getKey())}),c.current=!0,g.setData(De,y)}function E(){c.current=!1,Fe(u.current,a?.elem)}return xt(Lt(He.Fragment,{children:[ne("div",{className:"icon draggable-block-menu",draggable:!0,onDragEnd:E,onDragStart:f,ref:r,children:ne("div",{className:i?"icon":""})}),ne("div",{className:"draggable-block-target-line",ref:u}),ne("div",{className:"debug-highlight",ref:d})]}),e)}function Ae({anchorElem:t=document.body}){let[e]=Et();return Mt(e,t,e._editable)}import{ContentEditable as vt}from"@lexical/react/LexicalContentEditable.js";import{jsx as Rt}from"react/jsx-runtime";function Oe({className:t}){return Rt(vt,{className:t??"ContentEditable__root"})}import{jsx as C,jsxs as j}from"react/jsx-runtime";var Ge=t=>{let{editorConfig:e,editorContainerRef:i,onChange:l}=t,r=N(),[u]=Pt(),{t:d}=Dt(),[c,m]=$e(null),p=o=>{o!==null&&m(o)};ze(()=>{if(!r?.uuid){console.error("Lexical Editor must be used within an EditorConfigProvider");return}r?.parentEditor?.uuid&&r.parentEditor?.registerChild(r.uuid,r);let o=()=>{r.focusEditor(r)},n=()=>{r.blurEditor(r)},f=u.registerCommand(Ft,()=>(o(),!0),_e),E=u.registerCommand(Bt,()=>(n(),!0),_e);return()=>{f(),E(),r.parentEditor?.unregisterChild?.(r.uuid)}},[u,r]);let[a,s]=$e(!1);return ze(()=>{let o=()=>{let n=window.matchMedia("(max-width: 768px)").matches;n!==a&&s(n)};return o(),window.addEventListener("resize",o),()=>{window.removeEventListener("resize",o)}},[a]),j(q.Fragment,{children:[e.features.plugins.map(o=>{if(o.position==="aboveContainer")return C(O,{clientProps:o.clientProps,plugin:o},o.key)}),j("div",{className:"editor-container",ref:i,children:[e.features.plugins.map(o=>{if(o.position==="top")return C(O,{clientProps:o.clientProps,plugin:o},o.key)}),C(wt,{ErrorBoundary:Nt,contentEditable:C("div",{className:"editor-scroller",children:C("div",{className:"editor",ref:p,children:C(Oe,{})})}),placeholder:C("p",{className:"editor-placeholder",children:d("lexical:general:placeholder")})}),C(kt,{ignoreSelectionChange:!0,onChange:(o,n,f)=>{(!f.has("focus")||f.size>1)&&l?.(o,n,f)}}),c&&j(q.Fragment,{children:[!a&&u.isEditable()&&j(q.Fragment,{children:[C(Ae,{anchorElem:c}),C(Pe,{anchorElem:c})]}),e.features.plugins.map(o=>{if(o.position==="floatingAnchorElem"&&!(o.desktopOnly===!0&&a))return C(O,{anchorElem:c,clientProps:o.clientProps,plugin:o},o.key)}),u.isEditable()&&C(q.Fragment,{children:C(Ce,{anchorElem:c})})]}),u.isEditable()&&j(q.Fragment,{children:[C(St,{}),e?.features?.markdownTransformers?.length>0&&C(ye,{})]}),C(It,{}),e.features.plugins.map(o=>{if(o.position==="normal")return C(O,{clientProps:o.clientProps,plugin:o},o.key)}),e.features.plugins.map(o=>{if(o.position==="bottom")return C(O,{clientProps:o.clientProps,plugin:o},o.key)})]}),e.features.plugins.map(o=>{if(o.position==="belowContainer")return C(O,{clientProps:o.clientProps,plugin:o},o.key)})]})};import{jsx as B}from"react/jsx-runtime";var Ye=({children:t,providers:e})=>{if(!e?.length)return t;let i=e[0];return e.length>1?B(i,{children:B(Ye,{providers:e.slice(1),children:t})}):B(i,{children:t})},Ve=t=>{let{editorConfig:e,fieldProps:i,onChange:l,path:r,readOnly:u,value:d}=t,c=N(),m=We.useRef(null),p=Ke(()=>{let s=d;return e?.features?.hooks?.load?.length&&e.features.hooks.load.forEach(o=>{s=o({incomingEditorState:s})}),s},[e,d]),a=Ke(()=>{if(p&&typeof p!="object")throw new Error("The value passed to the Lexical editor is not an object. This is not supported. Please remove the data from the field and start again. This is the value that was passed in: "+JSON.stringify(p));if(p&&Array.isArray(p)&&!("root"in p))throw new Error("You have tried to pass in data from the old Slate editor to the new Lexical editor. The data structure is different, thus you will have to migrate your data. We offer a one-line migration script which migrates all your rich text fields: https://payloadcms.com/docs/beta/lexical/migration#migration-via-migration-script-recommended");if(p&&"jsonContent"in p)throw new Error("You have tried to pass in data from payload-plugin-lexical. The data structure is different, thus you will have to migrate your data. Migration guide: https://payloadcms.com/docs/beta/lexical/migration#migrating-from-payload-plugin-lexical");return{editable:u!==!0,editorState:p!=null?JSON.stringify(p):void 0,namespace:e.lexical.namespace,nodes:[...ce({editorConfig:e})],onError:s=>{throw s},theme:e.lexical.theme}},[e,p,u]);return a?B(Ht,{initialConfig:a,children:B(me,{editorConfig:e,editorContainerRef:m,fieldProps:i,parentContext:c,children:B(Ye,{providers:e.features.providers,children:B(Ge,{editorConfig:e,editorContainerRef:m,onChange:l})})})},r):B("p",{children:"Loading..."})};import"./bundled.css";import{jsx as $,jsxs as se}from"react/jsx-runtime";var re="rich-text-lexical",Yt=t=>{let{name:e,CustomDescription:i,CustomError:l,CustomLabel:r,className:u,descriptionProps:d,editorConfig:c,errorProps:m,label:p,labelProps:a,path:s,readOnly:o,required:n,style:f,validate:E,width:h}=t,g=Kt((P,S)=>{if(typeof E=="function")return E(P,{...S,props:t,required:n})},[E,n]),{path:y}=$t(),b=zt({path:y??s??e,validate:g}),{errorMessage:R,initialValue:M,path:L,schemaPath:v,setValue:x,showError:F,value:H}=b,A=[re,"field-type",u,F&&"error",o&&`${re}--read-only`,c?.admin?.hideGutter!==!0?`${re}--show-gutter`:null].filter(Boolean).join(" ");return se("div",{className:A,style:{...f,width:h},children:[$(Ot,{CustomError:l,path:L,...m||{},alignCaret:"left"}),$(_t,{CustomLabel:r,label:p,required:n,...a||{}}),se("div",{className:`${re}__wrap`,children:[$(Wt,{fallbackRender:Vt,onReset:()=>{},children:$(Ve,{editorConfig:c,fieldProps:t,onChange:P=>{let S=P.toJSON();c?.features?.hooks?.save?.length&&c.features.hooks.save.forEach(ie=>{S=ie({incomingEditorState:S})}),x(S)},path:L,readOnly:o,value:H},JSON.stringify({initialValue:M,path:L}))}),i!==void 0?i:$(At,{...d||{}})]})]},L)};function Vt({error:t}){return se("div",{className:"errorBoundary",role:"alert",children:[$("p",{children:"Something went wrong:"}),$("pre",{style:{color:"red"},children:t.message})]})}var Un=Gt(Yt);export{Un as RichText};
|
|
2
|
+
//# sourceMappingURL=Field-YNHIDK3D.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/field/Field.tsx", "../../../src/lexical/LexicalProvider.tsx", "../../../src/lexical/LexicalEditor.tsx", "../../../src/lexical/EditorPlugin.tsx", "../../../src/lexical/plugins/MarkdownShortcut/index.tsx", "../../../src/lexical/plugins/SlashMenu/index.tsx", "../../../src/lexical/plugins/SlashMenu/useMenuTriggerMatch.ts", "../../../src/lexical/plugins/handles/AddBlockHandlePlugin/index.tsx", "../../../src/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.ts", "../../../src/lexical/plugins/handles/utils/getNodeCloseToPoint.ts", "../../../src/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.ts", "../../../src/lexical/plugins/handles/utils/getCollapsedMargins.ts", "../../../src/lexical/plugins/handles/utils/getTopLevelNodeKeys.ts", "../../../src/lexical/plugins/handles/utils/isOnHandleElement.ts", "../../../src/lexical/plugins/handles/utils/doesLineHeightAffectElement.ts", "../../../src/lexical/plugins/handles/utils/setHandlePosition.ts", "../../../src/lexical/plugins/handles/DraggableBlockPlugin/index.tsx", "../../../src/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.ts", "../../../src/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.ts", "../../../src/lexical/ui/ContentEditable.tsx"],
|
|
4
|
+
"sourcesContent": ["'use client'\nimport type { SerializedEditorState } from 'lexical'\nimport type { FormFieldBase } from 'payload'\n\nimport {\n FieldDescription,\n FieldError,\n FieldLabel,\n useField,\n useFieldProps,\n withCondition,\n} from '@payloadcms/ui'\nimport React, { useCallback } from 'react'\nimport { ErrorBoundary } from 'react-error-boundary'\n\nimport type { SanitizedClientEditorConfig } from '../lexical/config/types.js'\n\nimport { LexicalProvider } from '../lexical/LexicalProvider.js'\nimport './bundled.css'\nconst baseClass = 'rich-text-lexical'\n\nconst _RichText: React.FC<\n {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n width?: string\n } & FormFieldBase\n> = (props) => {\n const {\n name,\n CustomDescription,\n CustomError,\n CustomLabel,\n className,\n descriptionProps,\n editorConfig,\n errorProps,\n label,\n labelProps,\n path: pathFromProps,\n readOnly,\n required,\n style,\n validate, // Users can pass in client side validation if they WANT to, but it's not required anymore\n width,\n } = props\n\n const memoizedValidate = useCallback(\n (value, validationOptions) => {\n if (typeof validate === 'function') {\n return validate(value, { ...validationOptions, props, required })\n }\n },\n // Important: do not add props to the dependencies array.\n // This would cause an infinite loop and endless re-rendering.\n // Removing props from the dependencies array fixed this issue: https://github.com/payloadcms/payload/issues/3709\n [validate, required],\n )\n const { path: pathFromContext } = useFieldProps()\n\n const fieldType = useField<SerializedEditorState>({\n path: pathFromContext ?? pathFromProps ?? name,\n validate: memoizedValidate,\n })\n\n const { errorMessage, initialValue, path, schemaPath, setValue, showError, value } = fieldType\n\n const classes = [\n baseClass,\n 'field-type',\n className,\n showError && 'error',\n readOnly && `${baseClass}--read-only`,\n editorConfig?.admin?.hideGutter !== true ? `${baseClass}--show-gutter` : null,\n ]\n .filter(Boolean)\n .join(' ')\n\n return (\n <div\n className={classes}\n key={path}\n style={{\n ...style,\n width,\n }}\n >\n <FieldError CustomError={CustomError} path={path} {...(errorProps || {})} alignCaret=\"left\" />\n <FieldLabel\n CustomLabel={CustomLabel}\n label={label}\n required={required}\n {...(labelProps || {})}\n />\n <div className={`${baseClass}__wrap`}>\n <ErrorBoundary fallbackRender={fallbackRender} onReset={() => {}}>\n <LexicalProvider\n editorConfig={editorConfig}\n fieldProps={props}\n key={JSON.stringify({ initialValue, path })} // makes sure lexical is completely re-rendered when initialValue changes, bypassing the lexical-internal value memoization. That way, external changes to the form will update the editor. More infos in PR description (https://github.com/payloadcms/payload/pull/5010)\n onChange={(editorState) => {\n let serializedEditorState = editorState.toJSON()\n\n // Transform state through save hooks\n if (editorConfig?.features?.hooks?.save?.length) {\n editorConfig.features.hooks.save.forEach((hook) => {\n serializedEditorState = hook({ incomingEditorState: serializedEditorState })\n })\n }\n\n setValue(serializedEditorState)\n }}\n path={path}\n readOnly={readOnly}\n value={value}\n />\n </ErrorBoundary>\n {CustomDescription !== undefined ? (\n CustomDescription\n ) : (\n <FieldDescription {...(descriptionProps || {})} />\n )}\n </div>\n </div>\n )\n}\n\nfunction fallbackRender({ error }): React.ReactElement {\n // Call resetErrorBoundary() to reset the error boundary and retry the render.\n\n return (\n <div className=\"errorBoundary\" role=\"alert\">\n <p>Something went wrong:</p>\n <pre style={{ color: 'red' }}>{error.message}</pre>\n </div>\n )\n}\n\nexport const RichText = withCondition(_RichText)\n", "'use client'\nimport type { InitialConfigType } from '@lexical/react/LexicalComposer.js'\nimport type { EditorState, LexicalEditor, SerializedEditorState } from 'lexical'\nimport type { FormFieldBase } from 'payload'\n\nimport { LexicalComposer } from '@lexical/react/LexicalComposer.js'\nimport * as React from 'react'\nimport { useMemo } from 'react'\n\nimport type { SanitizedClientEditorConfig } from './config/types.js'\n\nimport { LexicalEditor as LexicalEditorComponent } from './LexicalEditor.js'\nimport {\n EditorConfigProvider,\n useEditorConfigContext,\n} from './config/client/EditorConfigProvider.js'\nimport { getEnabledNodes } from './nodes/index.js'\n\nexport type LexicalProviderProps = {\n editorConfig: SanitizedClientEditorConfig\n fieldProps: {\n editorConfig: SanitizedClientEditorConfig // With rendered features n stuff\n name: string\n richTextComponentMap: Map<string, React.ReactNode>\n } & FormFieldBase\n onChange: (editorState: EditorState, editor: LexicalEditor, tags: Set<string>) => void\n path: string\n readOnly: boolean\n value: SerializedEditorState\n}\n\nconst NestProviders = ({ children, providers }) => {\n if (!providers?.length) {\n return children\n }\n const Component = providers[0]\n if (providers.length > 1) {\n return (\n <Component>\n <NestProviders providers={providers.slice(1)}>{children}</NestProviders>\n </Component>\n )\n }\n return <Component>{children}</Component>\n}\n\nexport const LexicalProvider: React.FC<LexicalProviderProps> = (props) => {\n const { editorConfig, fieldProps, onChange, path, readOnly, value } = props\n\n const parentContext = useEditorConfigContext()\n\n const editorContainerRef = React.useRef<HTMLDivElement>(null)\n\n const processedValue = useMemo(() => {\n let processed = value\n if (editorConfig?.features?.hooks?.load?.length) {\n editorConfig.features.hooks.load.forEach((hook) => {\n processed = hook({ incomingEditorState: processed })\n })\n }\n return processed\n }, [editorConfig, value])\n\n // useMemo for the initialConfig that depends on readOnly and processedValue\n const initialConfig = useMemo<InitialConfigType>(() => {\n if (processedValue && typeof processedValue !== 'object') {\n throw new Error(\n 'The value passed to the Lexical editor is not an object. This is not supported. Please remove the data from the field and start again. This is the value that was passed in: ' +\n JSON.stringify(processedValue),\n )\n }\n\n if (processedValue && Array.isArray(processedValue) && !('root' in processedValue)) {\n throw new Error(\n 'You have tried to pass in data from the old Slate editor to the new Lexical editor. The data structure is different, thus you will have to migrate your data. We offer a one-line migration script which migrates all your rich text fields: https://payloadcms.com/docs/beta/lexical/migration#migration-via-migration-script-recommended',\n )\n }\n\n if (processedValue && 'jsonContent' in processedValue) {\n throw new Error(\n 'You have tried to pass in data from payload-plugin-lexical. The data structure is different, thus you will have to migrate your data. Migration guide: https://payloadcms.com/docs/beta/lexical/migration#migrating-from-payload-plugin-lexical',\n )\n }\n\n return {\n editable: readOnly !== true,\n editorState: processedValue != null ? JSON.stringify(processedValue) : undefined,\n namespace: editorConfig.lexical.namespace,\n nodes: [...getEnabledNodes({ editorConfig })],\n onError: (error: Error) => {\n throw error\n },\n theme: editorConfig.lexical.theme,\n }\n }, [editorConfig, processedValue, readOnly])\n\n if (!initialConfig) {\n return <p>Loading...</p>\n }\n\n return (\n <LexicalComposer initialConfig={initialConfig} key={path}>\n <EditorConfigProvider\n editorConfig={editorConfig}\n editorContainerRef={editorContainerRef}\n fieldProps={fieldProps}\n parentContext={parentContext}\n >\n <NestProviders providers={editorConfig.features.providers}>\n <LexicalEditorComponent\n editorConfig={editorConfig}\n editorContainerRef={editorContainerRef}\n onChange={onChange}\n />\n </NestProviders>\n </EditorConfigProvider>\n </LexicalComposer>\n )\n}\n", "'use client'\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { LexicalErrorBoundary } from '@lexical/react/LexicalErrorBoundary.js'\nimport { HistoryPlugin } from '@lexical/react/LexicalHistoryPlugin.js'\nimport { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin.js'\nimport { RichTextPlugin } from '@lexical/react/LexicalRichTextPlugin.js'\nimport { TabIndentationPlugin } from '@lexical/react/LexicalTabIndentationPlugin.js'\nimport { useTranslation } from '@payloadcms/ui'\nimport { BLUR_COMMAND, COMMAND_PRIORITY_LOW, FOCUS_COMMAND } from 'lexical'\nimport * as React from 'react'\nimport { useEffect, useState } from 'react'\n\nimport type { LexicalProviderProps } from './LexicalProvider.js'\n\nimport { EditorPlugin } from './EditorPlugin.js'\nimport { useEditorConfigContext } from './config/client/EditorConfigProvider.js'\nimport { MarkdownShortcutPlugin } from './plugins/MarkdownShortcut/index.js'\nimport { SlashMenuPlugin } from './plugins/SlashMenu/index.js'\nimport { AddBlockHandlePlugin } from './plugins/handles/AddBlockHandlePlugin/index.js'\nimport { DraggableBlockPlugin } from './plugins/handles/DraggableBlockPlugin/index.js'\nimport { LexicalContentEditable } from './ui/ContentEditable.js'\n\nexport const LexicalEditor: React.FC<\n {\n editorContainerRef: React.RefObject<HTMLDivElement>\n } & Pick<LexicalProviderProps, 'editorConfig' | 'onChange'>\n> = (props) => {\n const { editorConfig, editorContainerRef, onChange } = props\n const editorConfigContext = useEditorConfigContext()\n const [editor] = useLexicalComposerContext()\n const { t } = useTranslation<{}, string>()\n\n const [floatingAnchorElem, setFloatingAnchorElem] = useState<HTMLDivElement | null>(null)\n const onRef = (_floatingAnchorElem: HTMLDivElement) => {\n if (_floatingAnchorElem !== null) {\n setFloatingAnchorElem(_floatingAnchorElem)\n }\n }\n\n useEffect(() => {\n if (!editorConfigContext?.uuid) {\n console.error('Lexical Editor must be used within an EditorConfigProvider')\n return\n }\n if (editorConfigContext?.parentEditor?.uuid) {\n editorConfigContext.parentEditor?.registerChild(editorConfigContext.uuid, editorConfigContext)\n }\n\n const handleFocus = () => {\n editorConfigContext.focusEditor(editorConfigContext)\n }\n\n const handleBlur = () => {\n editorConfigContext.blurEditor(editorConfigContext)\n }\n\n const unregisterFocus = editor.registerCommand<MouseEvent>(\n FOCUS_COMMAND,\n () => {\n handleFocus()\n return true\n },\n COMMAND_PRIORITY_LOW,\n )\n\n const unregisterBlur = editor.registerCommand<MouseEvent>(\n BLUR_COMMAND,\n () => {\n handleBlur()\n return true\n },\n COMMAND_PRIORITY_LOW,\n )\n\n return () => {\n unregisterFocus()\n unregisterBlur()\n editorConfigContext.parentEditor?.unregisterChild?.(editorConfigContext.uuid)\n }\n }, [editor, editorConfigContext])\n\n const [isSmallWidthViewport, setIsSmallWidthViewport] = useState<boolean>(false)\n\n useEffect(() => {\n const updateViewPortWidth = () => {\n const isNextSmallWidthViewport = window.matchMedia('(max-width: 768px)').matches\n\n if (isNextSmallWidthViewport !== isSmallWidthViewport) {\n setIsSmallWidthViewport(isNextSmallWidthViewport)\n }\n }\n updateViewPortWidth()\n window.addEventListener('resize', updateViewPortWidth)\n\n return () => {\n window.removeEventListener('resize', updateViewPortWidth)\n }\n }, [isSmallWidthViewport])\n\n return (\n <React.Fragment>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'aboveContainer') {\n return <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n }\n })}\n <div className=\"editor-container\" ref={editorContainerRef}>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'top') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n <RichTextPlugin\n ErrorBoundary={LexicalErrorBoundary}\n contentEditable={\n <div className=\"editor-scroller\">\n <div className=\"editor\" ref={onRef}>\n <LexicalContentEditable />\n </div>\n </div>\n }\n placeholder={<p className=\"editor-placeholder\">{t('lexical:general:placeholder')}</p>}\n />\n <OnChangePlugin\n // Selection changes can be ignored here, reducing the\n // frequency that the FieldComponent and Payload receive updates.\n // Selection changes are only needed if you are saving selection state\n ignoreSelectionChange\n onChange={(editorState, editor, tags) => {\n // Ignore any onChange event triggered by focus only\n if (!tags.has('focus') || tags.size > 1) {\n if (onChange != null) onChange(editorState, editor, tags)\n }\n }}\n />\n {floatingAnchorElem && (\n <React.Fragment>\n {!isSmallWidthViewport && editor.isEditable() && (\n <React.Fragment>\n <DraggableBlockPlugin anchorElem={floatingAnchorElem} />\n <AddBlockHandlePlugin anchorElem={floatingAnchorElem} />\n </React.Fragment>\n )}\n {editorConfig.features.plugins.map((plugin) => {\n if (\n plugin.position === 'floatingAnchorElem' &&\n !(plugin.desktopOnly === true && isSmallWidthViewport)\n ) {\n return (\n <EditorPlugin\n anchorElem={floatingAnchorElem}\n clientProps={plugin.clientProps}\n key={plugin.key}\n plugin={plugin}\n />\n )\n }\n })}\n {editor.isEditable() && (\n <React.Fragment>\n <SlashMenuPlugin anchorElem={floatingAnchorElem} />\n </React.Fragment>\n )}\n </React.Fragment>\n )}\n {editor.isEditable() && (\n <React.Fragment>\n <HistoryPlugin />\n {editorConfig?.features?.markdownTransformers?.length > 0 && <MarkdownShortcutPlugin />}\n </React.Fragment>\n )}\n\n <TabIndentationPlugin />\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'normal') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'bottom') {\n return (\n <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n )\n }\n })}\n </div>\n {editorConfig.features.plugins.map((plugin) => {\n if (plugin.position === 'belowContainer') {\n return <EditorPlugin clientProps={plugin.clientProps} key={plugin.key} plugin={plugin} />\n }\n })}\n </React.Fragment>\n )\n}\n", "import React from 'react'\n\nimport type { SanitizedPlugin } from '../features/typesClient.js'\n\nexport const EditorPlugin: React.FC<{\n anchorElem?: HTMLDivElement\n clientProps: unknown\n plugin: SanitizedPlugin\n}> = ({ anchorElem, clientProps, plugin }) => {\n if (plugin.position === 'floatingAnchorElem') {\n return (\n plugin.Component && <plugin.Component anchorElem={anchorElem} clientProps={clientProps} />\n )\n }\n\n return plugin.Component && <plugin.Component clientProps={clientProps} />\n}\n", "'use client'\n\nimport { MarkdownShortcutPlugin as LexicalMarkdownShortcutPlugin } from '@lexical/react/LexicalMarkdownShortcutPlugin.js'\nimport * as React from 'react'\n\nimport { useEditorConfigContext } from '../../config/client/EditorConfigProvider.js'\n\nexport const MarkdownShortcutPlugin: React.FC = () => {\n const { editorConfig } = useEditorConfigContext()\n\n return <LexicalMarkdownShortcutPlugin transformers={editorConfig.features.markdownTransformers} />\n}\n", "'use client'\nimport type { TextNode } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { useTranslation } from '@payloadcms/ui'\nimport { useCallback, useMemo, useState } from 'react'\nimport * as React from 'react'\nimport * as ReactDOM from 'react-dom'\n\nimport type {\n SlashMenuGroup,\n SlashMenuGroupInternal,\n SlashMenuItemInternal,\n SlashMenuItem as SlashMenuItemType,\n} from './LexicalTypeaheadMenuPlugin/types.js'\n\nimport { useEditorConfigContext } from '../../config/client/EditorConfigProvider.js'\nimport { LexicalTypeaheadMenuPlugin } from './LexicalTypeaheadMenuPlugin/index.js'\nimport { useMenuTriggerMatch } from './useMenuTriggerMatch.js'\n\nconst baseClass = 'slash-menu-popup'\n\nfunction SlashMenuItem({\n isSelected,\n item,\n onClick,\n onMouseEnter,\n}: {\n index: number\n isSelected: boolean\n item: SlashMenuItemInternal\n onClick: () => void\n onMouseEnter: () => void\n}) {\n const { i18n } = useTranslation()\n\n let className = `${baseClass}__item ${baseClass}__item-${item.key}`\n if (isSelected) {\n className += ` ${baseClass}__item--selected`\n }\n\n let title = item.key\n if (item.label) {\n title = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n // Crop title to max. 25 characters\n if (title.length > 25) {\n title = title.substring(0, 25) + '...'\n }\n\n return (\n <button\n aria-selected={isSelected}\n className={className}\n id={baseClass + '__item-' + item.key}\n key={item.key}\n onClick={onClick}\n onMouseEnter={onMouseEnter}\n ref={(element) => {\n item.ref = { current: element }\n }}\n role=\"option\"\n tabIndex={-1}\n type=\"button\"\n >\n {item?.Icon && <item.Icon />}\n\n <span className={`${baseClass}__item-text`}>{title}</span>\n </button>\n )\n}\n\nexport function SlashMenuPlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n const [queryString, setQueryString] = useState<null | string>(null)\n const { editorConfig } = useEditorConfigContext()\n const { i18n } = useTranslation()\n\n const checkForTriggerMatch = useMenuTriggerMatch('/', {\n minLength: 0,\n })\n\n const getDynamicItems = useCallback(() => {\n let groupWithItems: Array<SlashMenuGroup> = []\n\n for (const dynamicItem of editorConfig.features.slashMenu.dynamicGroups) {\n const dynamicGroupWithItems = dynamicItem({\n editor,\n queryString,\n })\n groupWithItems = groupWithItems.concat(dynamicGroupWithItems)\n }\n\n return groupWithItems\n }, [editor, queryString, editorConfig?.features])\n\n const groups: SlashMenuGroup[] = useMemo(() => {\n let groupsWithItems: SlashMenuGroup[] = []\n for (const groupWithItem of editorConfig?.features.slashMenu.groups ?? []) {\n groupsWithItems.push(groupWithItem)\n }\n\n if (queryString) {\n // Filter current groups first\n groupsWithItems = groupsWithItems.map((group) => {\n const filteredItems = group.items.filter((item) => {\n let itemTitle = item.key\n if (item.label) {\n itemTitle = typeof item.label === 'function' ? item.label({ i18n }) : item.label\n }\n\n if (new RegExp(queryString, 'gi').exec(itemTitle)) {\n return true\n }\n if (item.keywords != null) {\n return item.keywords.some((keyword) => new RegExp(queryString, 'gi').exec(keyword))\n }\n return false\n })\n if (filteredItems.length) {\n return {\n ...group,\n items: filteredItems,\n }\n }\n return null\n })\n\n groupsWithItems = groupsWithItems.filter((group) => group != null)\n\n // Now add dynamic groups\n const dynamicItemGroups = getDynamicItems()\n\n // merge dynamic items into groups\n for (const dynamicGroup of dynamicItemGroups) {\n // 1. find the group with the same name or create new one\n let group = groupsWithItems.find((group) => group.key === dynamicGroup.key)\n if (!group) {\n group = {\n ...dynamicGroup,\n items: [],\n }\n } else {\n groupsWithItems = groupsWithItems.filter((group) => group.key !== dynamicGroup.key)\n }\n\n // 2. Add items to group items array and add to sanitized.slashMenu.groupsWithItems\n if (group?.items?.length) {\n group.items = group.items.concat(group.items)\n }\n groupsWithItems.push(group)\n }\n }\n\n return groupsWithItems\n }, [getDynamicItems, queryString, editorConfig?.features, i18n])\n\n const onSelectItem = useCallback(\n (\n selectedItem: SlashMenuItemType,\n nodeToRemove: TextNode | null,\n closeMenu: () => void,\n matchingString: string,\n ) => {\n if (nodeToRemove) {\n editor.update(() => {\n nodeToRemove.remove()\n })\n }\n selectedItem.onSelect({ editor, queryString: matchingString })\n\n closeMenu()\n },\n [editor],\n )\n\n return (\n <LexicalTypeaheadMenuPlugin\n anchorElem={anchorElem}\n groups={groups as SlashMenuGroupInternal[]}\n menuRenderFn={(\n anchorElementRef,\n { selectItemAndCleanUp, selectedItemKey, setSelectedItemKey },\n ) =>\n anchorElementRef.current && groups.length\n ? ReactDOM.createPortal(\n <div className={baseClass}>\n {groups.map((group) => {\n let groupTitle = group.key\n if (group.label) {\n groupTitle =\n typeof group.label === 'function' ? group.label({ i18n }) : group.label\n }\n\n return (\n <div\n className={`${baseClass}__group ${baseClass}__group-${group.key}`}\n key={group.key}\n >\n <div className={`${baseClass}__group-title`}>{groupTitle}</div>\n {group.items.map((item, oi: number) => (\n <SlashMenuItem\n index={oi}\n isSelected={selectedItemKey === item.key}\n item={item as SlashMenuItemInternal}\n key={item.key}\n onClick={() => {\n setSelectedItemKey(item.key)\n selectItemAndCleanUp(item)\n }}\n onMouseEnter={() => {\n setSelectedItemKey(item.key)\n }}\n />\n ))}\n </div>\n )\n })}\n </div>,\n anchorElementRef.current,\n )\n : null\n }\n onQueryChange={setQueryString}\n onSelectItem={onSelectItem}\n triggerFn={checkForTriggerMatch}\n />\n )\n}\n", "import type { LexicalEditor } from 'lexical'\n\nimport { useCallback } from 'react'\n\nimport { PUNCTUATION } from './LexicalTypeaheadMenuPlugin/index.js'\n\nexport type TriggerFn = ({\n editor,\n query,\n}: {\n editor: LexicalEditor\n /** The query string is the POTENTIAL trigger AND the text after the trigger text. */\n query: string\n}) => MenuTextMatch | null\n\nexport type MenuTextMatch = {\n leadOffset: number\n matchingString: string\n replaceableString: string\n}\n\n/**\n * Returns a function which checks if the trigger (e.g. '/') is present in the query and, if so, returns the matching string (text after the trigger)\n */\nexport function useMenuTriggerMatch(\n /**\n * Text which triggers the menu. Everything after this text will be used as the query.\n */\n trigger: string,\n { maxLength = 75, minLength = 1 }: { maxLength?: number; minLength?: number },\n): TriggerFn {\n return useCallback(\n ({ query }) => {\n const validChars = '[^' + trigger + PUNCTUATION + '\\\\s]'\n const TypeaheadTriggerRegex = new RegExp(\n '(^|\\\\s|\\\\()(' +\n '[' +\n trigger +\n ']' +\n '((?:' +\n validChars +\n '){0,' +\n maxLength +\n '})' +\n ')$',\n )\n const match = TypeaheadTriggerRegex.exec(query)\n if (match !== null) {\n const maybeLeadingWhitespace = match[1]\n\n /**\n * matchingString is only the text AFTER the trigger text. (So everything after the /)\n */\n const matchingString = match[3]\n\n if (matchingString.length >= minLength) {\n return {\n leadOffset: match.index + maybeLeadingWhitespace.length,\n matchingString,\n replaceableString: match[2], // replaceableString is the trigger text + the matching string\n }\n }\n }\n return null\n },\n [maxLength, minLength, trigger],\n )\n}\n", "'use client'\nimport type { LexicalEditor, LexicalNode, ParagraphNode } from 'lexical'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { $createParagraphNode } from 'lexical'\nimport * as React from 'react'\nimport { type JSX, useCallback, useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEditorConfigContext } from '../../../config/client/EditorConfigProvider.js'\nimport { isHTMLElement } from '../../../utils/guard.js'\nimport { Point } from '../../../utils/point.js'\nimport { ENABLE_SLASH_MENU_COMMAND } from '../../SlashMenu/LexicalTypeaheadMenuPlugin/index.js'\nimport { calculateDistanceFromScrollerElem } from '../utils/calculateDistanceFromScrollerElem.js'\nimport { getNodeCloseToPoint } from '../utils/getNodeCloseToPoint.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\nimport { isOnHandleElement } from '../utils/isOnHandleElement.js'\nimport { setHandlePosition } from '../utils/setHandlePosition.js'\nconst ADD_BLOCK_MENU_CLASSNAME = 'add-block-menu'\n\nlet prevIndex = Infinity\n\nfunction getCurrentIndex(keysLength: number): number {\n if (keysLength === 0) {\n return Infinity\n }\n if (prevIndex >= 0 && prevIndex < keysLength) {\n return prevIndex\n }\n\n return Math.floor(keysLength / 2)\n}\n\nfunction useAddBlockHandle(\n editor: LexicalEditor,\n anchorElem: HTMLElement,\n isEditable: boolean,\n): React.ReactElement {\n const scrollerElem = anchorElem.parentElement\n\n const { editorConfig } = useEditorConfigContext()\n const blockHandleHorizontalOffset = editorConfig?.admin?.hideGutter ? -24 : 12\n\n const menuRef = useRef<HTMLButtonElement>(null)\n const [hoveredElement, setHoveredElement] = useState<{\n elem: HTMLElement\n node: LexicalNode\n } | null>(null)\n\n useEffect(() => {\n function onDocumentMouseMove(event: MouseEvent) {\n const target = event.target\n if (!isHTMLElement(target)) {\n return\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n )\n\n if (distanceFromScrollerElem === -1) {\n setHoveredElement(null)\n return\n }\n\n if (isOnHandleElement(target, ADD_BLOCK_MENU_CLASSNAME)) {\n return\n }\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: _emptyBlockElem,\n blockNode,\n foundAtIndex,\n } = getNodeCloseToPoint({\n anchorElem,\n cache_threshold: 0,\n editor,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n returnEmptyParagraphs: true,\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: false,\n })\n\n prevIndex = foundAtIndex\n\n if (!_emptyBlockElem) {\n return\n }\n if (hoveredElement?.node !== blockNode || hoveredElement?.elem !== _emptyBlockElem) {\n setHoveredElement({\n elem: _emptyBlockElem,\n node: blockNode,\n })\n }\n }\n\n // Since the draggableBlockElem is outside the actual editor, we need to listen to the document\n // to be able to detect when the mouse is outside the editor and respect a buffer around\n // the scrollerElem to avoid the draggableBlockElem disappearing too early.\n document?.addEventListener('mousemove', onDocumentMouseMove)\n\n return () => {\n document?.removeEventListener('mousemove', onDocumentMouseMove)\n }\n }, [scrollerElem, anchorElem, editor, hoveredElement])\n\n useEffect(() => {\n if (menuRef.current && hoveredElement?.node) {\n setHandlePosition(\n hoveredElement?.elem,\n menuRef.current,\n anchorElem,\n blockHandleHorizontalOffset,\n )\n }\n }, [anchorElem, hoveredElement, blockHandleHorizontalOffset])\n\n const handleAddClick = useCallback(\n (event) => {\n let hoveredElementToUse = hoveredElement\n if (!hoveredElementToUse?.node) {\n return\n }\n\n // 1. Update hoveredElement.node to a new paragraph node if the hoveredElement.node is not a paragraph node\n editor.update(() => {\n // Check if blockNode is an empty text node\n let isEmptyParagraph = true\n if (\n hoveredElementToUse.node.getType() !== 'paragraph' ||\n hoveredElementToUse.node.getTextContent() !== ''\n ) {\n isEmptyParagraph = false\n }\n\n if (!isEmptyParagraph) {\n const newParagraph = $createParagraphNode()\n hoveredElementToUse.node.insertAfter(newParagraph)\n\n setTimeout(() => {\n hoveredElementToUse = {\n elem: editor.getElementByKey(newParagraph.getKey()),\n node: newParagraph,\n }\n setHoveredElement(hoveredElementToUse)\n }, 0)\n }\n })\n\n // 2. Focus on the new paragraph node\n setTimeout(() => {\n editor.update(() => {\n editor.focus()\n\n if (\n hoveredElementToUse.node &&\n 'select' in hoveredElementToUse.node &&\n typeof hoveredElementToUse.node.select === 'function'\n ) {\n hoveredElementToUse.node.select()\n }\n })\n }, 1)\n\n // Make sure this is called AFTER the focusing has been processed by the browser\n // Otherwise, this won't work\n setTimeout(() => {\n editor.dispatchCommand(ENABLE_SLASH_MENU_COMMAND, {\n node: hoveredElementToUse.node as ParagraphNode,\n })\n }, 2)\n\n event.stopPropagation()\n event.preventDefault()\n },\n [editor, hoveredElement],\n )\n\n return createPortal(\n <React.Fragment>\n <button\n className=\"icon add-block-menu\"\n onClick={(event) => {\n handleAddClick(event)\n }}\n ref={menuRef}\n type=\"button\"\n >\n <div className={isEditable ? 'icon' : ''} />\n </button>\n </React.Fragment>,\n anchorElem,\n )\n}\n\nexport function AddBlockHandlePlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n return useAddBlockHandle(editor, anchorElem, editor._editable)\n}\n", "/**\n * Calculate distance between scrollerElem and target if target is not in scrollerElem\n */\nexport const calculateDistanceFromScrollerElem = (\n scrollerElem: HTMLElement | null,\n pageX: number,\n pageY: number,\n target: HTMLElement,\n horizontalBuffer: number = 50,\n verticalBuffer: number = 25,\n): number => {\n let distanceFromScrollerElem = 0\n if (scrollerElem && !scrollerElem.contains(target)) {\n const { bottom, left, right, top } = scrollerElem.getBoundingClientRect()\n\n const adjustedTop = top + window.scrollY\n const adjustedBottom = bottom + window.scrollY\n\n if (\n pageY < adjustedTop - verticalBuffer ||\n pageY > adjustedBottom + verticalBuffer ||\n pageX < left - horizontalBuffer ||\n pageX > right + horizontalBuffer\n ) {\n return -1\n }\n\n // This is used to allow the _draggableBlockElem to be found when the mouse is in the\n // buffer zone around the scrollerElem.\n if (pageX < left || pageX > right) {\n distanceFromScrollerElem = pageX < left ? pageX - left : pageX - right\n }\n }\n return distanceFromScrollerElem\n}\n", "import type { LexicalEditor, LexicalNode } from 'lexical'\n\nimport { $getNodeByKey } from 'lexical'\n\nimport { Point } from '../../../utils/point.js'\nimport { Rect } from '../../../utils/rect.js'\nimport { getBoundingClientRectWithoutTransform } from '../DraggableBlockPlugin/getBoundingRectWithoutTransform.js'\nimport { getCollapsedMargins } from '../utils/getCollapsedMargins.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\n\n// Directions\nconst Downward = 1\nconst Upward = -1\nconst Indeterminate = 0\n\ntype Props = {\n anchorElem: HTMLElement\n cache_threshold?: number\n editor: LexicalEditor\n /** fuzzy makes the search not exact. If no exact match found, find the closes node instead of returning null */\n fuzzy?: boolean\n horizontalOffset?: number\n point: Point\n /**\n * By default, empty paragraphs are not returned. Set this to true to return empty paragraphs. @default false\n */\n returnEmptyParagraphs?: boolean\n /**\n * The index to start searching from. It can be a considerable performance optimization to start searching from the index of the\n * previously found node, as the node is likely to be close to the next node.\n */\n startIndex?: number\n useEdgeAsDefault?: boolean\n verbose?: boolean\n}\n\ntype Output = {\n blockElem: HTMLElement | null\n blockNode: LexicalNode | null\n foundAtIndex: number\n isFoundNodeEmptyParagraph: boolean\n}\n\nconst cache = {\n props: null as Props | null,\n result: null as Output | null,\n}\n\nfunction isPointClose(previous: Point, current: Point, threshold: number = 20): boolean {\n const dx = previous.x - current.x\n const dy = previous.y - current.y\n return dx * dx + dy * dy <= threshold * threshold\n}\n\nexport function getNodeCloseToPoint(props: Props): Output {\n const {\n anchorElem,\n cache_threshold = 20,\n editor,\n fuzzy = false,\n horizontalOffset = 0,\n point: { x, y },\n startIndex = 0,\n useEdgeAsDefault = false,\n verbose = false,\n } = props\n\n // Use cache\n if (\n cache_threshold > 0 &&\n cache.props &&\n cache.result &&\n cache.props.fuzzy === props.fuzzy &&\n cache.props.horizontalOffset === props.horizontalOffset &&\n cache.props.useEdgeAsDefault === props.useEdgeAsDefault &&\n isPointClose(cache.props.point, props.point, cache_threshold)\n ) {\n return cache.result\n }\n\n const anchorElementRect = anchorElem.getBoundingClientRect()\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const closestBlockElem: {\n blockElem: HTMLElement | null\n blockNode: LexicalNode | null\n distance: number\n foundAtIndex: number\n isFoundNodeEmptyParagraph: boolean\n } = {\n blockElem: null,\n blockNode: null,\n distance: Infinity,\n foundAtIndex: -1,\n isFoundNodeEmptyParagraph: false,\n }\n\n // Return null if matching block element is the first or last node\n editor.getEditorState().read(() => {\n if (useEdgeAsDefault) {\n const [firstNode, lastNode] = [\n editor.getElementByKey(topLevelNodeKeys[0]),\n editor.getElementByKey(topLevelNodeKeys[topLevelNodeKeys.length - 1]),\n ]\n\n const [firstNodeRect, lastNodeRect] = [\n getBoundingClientRectWithoutTransform(firstNode),\n getBoundingClientRectWithoutTransform(lastNode),\n ]\n\n if (firstNodeRect && lastNodeRect) {\n if (y < firstNodeRect.top) {\n closestBlockElem.blockElem = firstNode\n closestBlockElem.distance = firstNodeRect.top - y\n closestBlockElem.blockNode = $getNodeByKey(topLevelNodeKeys[0])\n closestBlockElem.foundAtIndex = 0\n } else if (y > lastNodeRect.bottom) {\n closestBlockElem.distance = y - lastNodeRect.bottom\n closestBlockElem.blockNode = $getNodeByKey(topLevelNodeKeys[topLevelNodeKeys.length - 1])\n closestBlockElem.blockElem = lastNode\n closestBlockElem.foundAtIndex = topLevelNodeKeys.length - 1\n }\n\n if (closestBlockElem?.blockElem) {\n return {\n blockElem: null,\n isFoundNodeEmptyParagraph: false,\n } as Output\n }\n }\n }\n\n // Find matching block element\n let index = startIndex\n let direction = Indeterminate\n\n while (index >= 0 && index < topLevelNodeKeys.length) {\n const key = topLevelNodeKeys[index]\n const elem = editor.getElementByKey(key)\n if (elem === null) {\n break\n }\n const point = new Point(x + horizontalOffset, y)\n //const domRect = Rect.fromDOM(elem)\n // Do not consider transform of blocks when calculating distance\n const domRect = Rect.fromDOMRect(getBoundingClientRectWithoutTransform(elem))\n\n const { marginBottom, marginTop } = getCollapsedMargins(elem)\n\n const rect = domRect.generateNewRect({\n bottom: domRect.bottom + marginBottom,\n left: anchorElementRect.left,\n right: anchorElementRect.right,\n top: domRect.top - marginTop,\n })\n\n const { distance, isOnBottomSide, isOnTopSide } = rect.distanceFromPoint(point)\n\n if (distance === 0) {\n closestBlockElem.blockElem = elem\n closestBlockElem.blockNode = $getNodeByKey(key)\n closestBlockElem.foundAtIndex = index\n closestBlockElem.distance = distance\n\n // Check if blockNode is an empty text node\n if (\n closestBlockElem.blockNode &&\n closestBlockElem.blockNode.getType() === 'paragraph' &&\n closestBlockElem.blockNode.getTextContent() === ''\n ) {\n if (!fuzzy && !props.returnEmptyParagraphs) {\n closestBlockElem.blockElem = null\n closestBlockElem.blockNode = null\n }\n\n closestBlockElem.isFoundNodeEmptyParagraph = true\n }\n break\n } else if (fuzzy) {\n if (distance < closestBlockElem.distance) {\n closestBlockElem.blockElem = elem\n closestBlockElem.blockNode = $getNodeByKey(key)\n closestBlockElem.distance = distance\n closestBlockElem.foundAtIndex = index\n }\n }\n\n if (direction === Indeterminate) {\n if (isOnTopSide) {\n direction = Upward\n } else if (isOnBottomSide) {\n direction = Downward\n } else {\n // stop search block element\n direction = Infinity\n }\n }\n\n index += direction\n }\n })\n\n // Store in cache before returning\n cache.props = props\n cache.result = {\n blockElem: closestBlockElem.blockElem,\n blockNode: closestBlockElem.blockNode,\n foundAtIndex: closestBlockElem.foundAtIndex,\n isFoundNodeEmptyParagraph: closestBlockElem.isFoundNodeEmptyParagraph,\n }\n\n return {\n blockElem: closestBlockElem.blockElem,\n blockNode: closestBlockElem.blockNode,\n foundAtIndex: closestBlockElem.foundAtIndex,\n isFoundNodeEmptyParagraph: closestBlockElem.isFoundNodeEmptyParagraph,\n }\n}\n", "export function getBoundingClientRectWithoutTransform(elem: HTMLElement): DOMRect {\n const rect = elem.getBoundingClientRect()\n\n // Extract the translation value from the transform style\n const transformValue = getComputedStyle(elem).getPropertyValue('transform')\n if (!transformValue || transformValue === 'none') {\n return rect\n }\n\n const lastNumberOfTransformValue = transformValue.split(',').pop()\n rect.y = rect.y - Number(lastNumberOfTransformValue.replace(')', ''))\n\n // Return the original bounding rect if no translation is applied\n return rect\n}\n", "export function getCollapsedMargins(elem: HTMLElement): {\n marginBottom: number\n marginTop: number\n} {\n const getMargin = (element: Element | null, margin: 'marginBottom' | 'marginTop'): number =>\n element ? parseFloat(window.getComputedStyle(element)[margin]) : 0\n\n const { marginBottom, marginTop } = window.getComputedStyle(elem)\n const prevElemSiblingMarginBottom = getMargin(elem.previousElementSibling, 'marginBottom')\n const nextElemSiblingMarginTop = getMargin(elem.nextElementSibling, 'marginTop')\n const collapsedTopMargin = Math.max(parseFloat(marginTop), prevElemSiblingMarginBottom)\n const collapsedBottomMargin = Math.max(parseFloat(marginBottom), nextElemSiblingMarginTop)\n\n return { marginBottom: collapsedBottomMargin, marginTop: collapsedTopMargin }\n}\n", "import type { LexicalEditor } from 'lexical'\n\nimport { $getRoot } from 'lexical'\n\nexport function getTopLevelNodeKeys(editor: LexicalEditor): string[] {\n return editor.getEditorState().read(() => $getRoot().getChildrenKeys())\n}\n", "export function isOnHandleElement(element: HTMLElement, handleElementClassName: string): boolean {\n return !!element.closest(`.${handleElementClassName}`)\n}\n", "const replacedElements = [\n 'IMG',\n 'INPUT',\n 'TEXTAREA',\n 'SELECT',\n 'BUTTON',\n 'VIDEO',\n 'OBJECT',\n 'EMBED',\n 'IFRAME',\n 'HR',\n]\n\n/**\n * From ChatGPT, only that verified it works for HR elements.\n *\n * HTML Elements can have CSS lineHeight applied to them, but it doesn't always affect the visual layout.\n * This function checks if the line-height property has an effect on the element's layout.\n * @param htmlElem\n */\nexport function doesLineHeightAffectElement(htmlElem: HTMLElement) {\n if (!htmlElem) return false\n\n // Check for replaced elements, elements that typically don't support line-height adjustments,\n // and elements without visible content\n\n if (\n replacedElements.includes(htmlElem.tagName) ||\n htmlElem.offsetHeight === 0 ||\n htmlElem.offsetWidth === 0\n ) {\n return false\n }\n\n // Check for specific CSS properties that negate line-height's visual effects\n const style = window.getComputedStyle(htmlElem)\n if (\n style.display === 'table-cell' ||\n style.position === 'absolute' ||\n style.visibility === 'hidden' ||\n style.opacity === '0'\n ) {\n return false\n }\n\n // This is a basic check, and there can be more complex scenarios where line-height doesn't have an effect.\n return true\n}\n", "import { doesLineHeightAffectElement } from './doesLineHeightAffectElement.js'\n\nexport function setHandlePosition(\n targetElem: HTMLElement | null,\n handleElem: HTMLElement,\n anchorElem: HTMLElement,\n leftOffset: number = 0, // SPACE\n) {\n if (!targetElem) {\n handleElem.style.opacity = '0'\n handleElem.style.transform = 'translate(-10000px, -10000px)'\n return\n }\n\n const targetRect = targetElem.getBoundingClientRect()\n const targetStyle = window.getComputedStyle(targetElem)\n const floatingElemRect = handleElem.getBoundingClientRect()\n const anchorElementRect = anchorElem.getBoundingClientRect()\n\n let top: number\n\n const shouldDisplayHandleInCenter = targetRect.height < 60\n\n if (!shouldDisplayHandleInCenter) {\n // No need to let line height affect the re-positioning of the floating element if line height has no\n // visual effect on the element. Otherwise, the floating element will be positioned incorrectly.\n const actualLineHeight = doesLineHeightAffectElement(targetElem)\n ? parseInt(targetStyle.lineHeight, 10)\n : 0\n\n top =\n targetRect.top + (actualLineHeight - floatingElemRect.height) / 2 - anchorElementRect.top - 1 // 1px inaccuracy\n } else {\n top =\n targetRect.top -\n floatingElemRect.height / 2 -\n anchorElementRect.top +\n targetRect.height / 2 -\n 1 // 1px inaccuracy\n }\n\n const left = leftOffset\n\n handleElem.style.opacity = '1'\n handleElem.style.transform = `translate(${left}px, ${top}px)`\n}\n", "'use client'\nimport type { LexicalEditor } from 'lexical'\nimport type { DragEvent as ReactDragEvent } from 'react'\n\nimport { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js'\nimport { eventFiles } from '@lexical/rich-text'\nimport { $getNearestNodeFromDOMNode, $getNodeByKey } from 'lexical'\nimport * as React from 'react'\nimport { useEffect, useRef, useState } from 'react'\nimport { createPortal } from 'react-dom'\n\nimport { useEditorConfigContext } from '../../../config/client/EditorConfigProvider.js'\nimport { isHTMLElement } from '../../../utils/guard.js'\nimport { Point } from '../../../utils/point.js'\nimport { calculateDistanceFromScrollerElem } from '../utils/calculateDistanceFromScrollerElem.js'\nimport { getNodeCloseToPoint } from '../utils/getNodeCloseToPoint.js'\nimport { getTopLevelNodeKeys } from '../utils/getTopLevelNodeKeys.js'\nimport { isOnHandleElement } from '../utils/isOnHandleElement.js'\nimport { setHandlePosition } from '../utils/setHandlePosition.js'\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\nimport { setTargetLine } from './setTargetLine.js'\n\nconst DRAGGABLE_BLOCK_MENU_CLASSNAME = 'draggable-block-menu'\nconst DRAG_DATA_FORMAT = 'application/x-lexical-drag-block'\n\nlet prevIndex = Infinity\n\nfunction getCurrentIndex(keysLength: number): number {\n if (keysLength === 0) {\n return Infinity\n }\n if (prevIndex >= 0 && prevIndex < keysLength) {\n return prevIndex\n }\n\n return Math.floor(keysLength / 2)\n}\n\nfunction setDragImage(dataTransfer: DataTransfer, draggableBlockElem: HTMLElement) {\n const { transform } = draggableBlockElem.style\n\n // Remove dragImage borders\n dataTransfer.setDragImage(draggableBlockElem, 0, 0)\n\n setTimeout(() => {\n draggableBlockElem.style.transform = transform\n })\n}\n\nfunction hideTargetLine(\n targetLineElem: HTMLElement | null,\n lastTargetBlockElem: HTMLElement | null,\n) {\n if (targetLineElem) {\n targetLineElem.style.opacity = '0'\n }\n if (lastTargetBlockElem) {\n lastTargetBlockElem.style.opacity = ''\n // Delete marginBottom and marginTop values we set\n lastTargetBlockElem.style.marginBottom = ''\n lastTargetBlockElem.style.marginTop = ''\n //lastTargetBlock.style.border = 'none'\n }\n}\n\nfunction useDraggableBlockMenu(\n editor: LexicalEditor,\n anchorElem: HTMLElement,\n isEditable: boolean,\n): React.ReactElement {\n const scrollerElem = anchorElem.parentElement\n\n const menuRef = useRef<HTMLDivElement>(null)\n const targetLineRef = useRef<HTMLDivElement>(null)\n const debugHighlightRef = useRef<HTMLDivElement>(null)\n const isDraggingBlockRef = useRef<boolean>(false)\n const [draggableBlockElem, setDraggableBlockElem] = useState<HTMLElement | null>(null)\n const [lastTargetBlock, setLastTargetBlock] = useState<{\n boundingBox?: DOMRect\n elem: HTMLElement | null\n isBelow: boolean\n }>(null)\n\n const { editorConfig } = useEditorConfigContext()\n\n const blockHandleHorizontalOffset = editorConfig?.admin?.hideGutter ? -44 : -8\n\n useEffect(() => {\n /**\n * Handles positioning of the drag handle\n */\n function onDocumentMouseMove(event: MouseEvent) {\n const target = event.target\n if (!isHTMLElement(target)) {\n return\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n )\n if (distanceFromScrollerElem === -1) {\n setDraggableBlockElem(null)\n return\n }\n\n if (isOnHandleElement(target, DRAGGABLE_BLOCK_MENU_CLASSNAME)) {\n return\n }\n\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: _draggableBlockElem,\n foundAtIndex,\n isFoundNodeEmptyParagraph,\n } = getNodeCloseToPoint({\n anchorElem,\n cache_threshold: 0,\n editor,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: false,\n verbose: false,\n })\n\n prevIndex = foundAtIndex\n\n //if (DEBUG && _draggableBlockElem) {\n //targetBlockElem.style.border = '3px solid red'\n // highlightElemOriginalPosition(debugHighlightRef, _draggableBlockElem, anchorElem)\n //}\n\n if (!_draggableBlockElem && !isFoundNodeEmptyParagraph) {\n return\n }\n\n if (draggableBlockElem !== _draggableBlockElem) {\n setDraggableBlockElem(_draggableBlockElem)\n }\n }\n\n // Since the draggableBlockElem is outside the actual editor, we need to listen to the document\n // to be able to detect when the mouse is outside the editor and respect a buffer around\n // the scrollerElem to avoid the draggableBlockElem disappearing too early.\n document?.addEventListener('mousemove', onDocumentMouseMove)\n\n return () => {\n document?.removeEventListener('mousemove', onDocumentMouseMove)\n }\n }, [scrollerElem, anchorElem, editor, draggableBlockElem])\n\n useEffect(() => {\n if (menuRef.current) {\n setHandlePosition(\n draggableBlockElem,\n menuRef.current,\n anchorElem,\n blockHandleHorizontalOffset,\n )\n }\n }, [anchorElem, draggableBlockElem, blockHandleHorizontalOffset])\n\n useEffect(() => {\n function onDragover(event: DragEvent): boolean {\n if (!isDraggingBlockRef.current) {\n return false\n }\n const [isFileTransfer] = eventFiles(event)\n if (isFileTransfer) {\n return false\n }\n\n const { pageY, target } = event\n if (!isHTMLElement(target)) {\n return false\n }\n\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n 100,\n 50,\n )\n\n const topLevelNodeKeys = getTopLevelNodeKeys(editor)\n\n const {\n blockElem: targetBlockElem,\n foundAtIndex,\n isFoundNodeEmptyParagraph,\n } = getNodeCloseToPoint({\n anchorElem,\n editor,\n fuzzy: true,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n startIndex: getCurrentIndex(topLevelNodeKeys.length),\n useEdgeAsDefault: true,\n verbose: true,\n })\n\n prevIndex = foundAtIndex\n\n const targetLineElem = targetLineRef.current\n // targetBlockElem === null shouldn't happen\n if (targetBlockElem === null || targetLineElem === null) {\n return false\n }\n\n if (draggableBlockElem !== targetBlockElem) {\n const { isBelow, willStayInSamePosition } = setTargetLine(\n editorConfig?.admin?.hideGutter ? '0px' : '3rem',\n blockHandleHorizontalOffset +\n (editorConfig?.admin?.hideGutter\n ? menuRef?.current?.getBoundingClientRect()?.width ?? 0\n : -(menuRef?.current?.getBoundingClientRect()?.width ?? 0)),\n targetLineElem,\n targetBlockElem,\n lastTargetBlock,\n pageY,\n anchorElem,\n event,\n debugHighlightRef,\n isFoundNodeEmptyParagraph,\n )\n\n // Prevent default event to be able to trigger onDrop events\n // Calling preventDefault() adds the green plus icon to the cursor,\n // indicating that the drop is allowed.\n event.preventDefault()\n\n if (!willStayInSamePosition) {\n setLastTargetBlock({\n boundingBox: targetBlockElem.getBoundingClientRect(),\n elem: targetBlockElem,\n isBelow,\n })\n }\n } else {\n hideTargetLine(targetLineElem, lastTargetBlock?.elem)\n setLastTargetBlock({\n boundingBox: targetBlockElem.getBoundingClientRect(),\n elem: targetBlockElem,\n isBelow: false,\n })\n }\n\n return true\n }\n\n function onDrop(event: DragEvent): boolean {\n if (!isDraggingBlockRef.current) {\n return false\n }\n const [isFileTransfer] = eventFiles(event)\n if (isFileTransfer) {\n return false\n }\n const { dataTransfer, pageY, target } = event\n const dragData = dataTransfer?.getData(DRAG_DATA_FORMAT) || ''\n\n editor.update(() => {\n const draggedNode = $getNodeByKey(dragData)\n if (!draggedNode) {\n return false\n }\n if (!isHTMLElement(target)) {\n return false\n }\n const distanceFromScrollerElem = calculateDistanceFromScrollerElem(\n scrollerElem,\n event.pageX,\n event.pageY,\n target,\n 100,\n 50,\n )\n\n const { blockElem: targetBlockElem, isFoundNodeEmptyParagraph } = getNodeCloseToPoint({\n anchorElem,\n editor,\n fuzzy: true,\n horizontalOffset: -distanceFromScrollerElem,\n point: new Point(event.x, event.y),\n useEdgeAsDefault: true,\n })\n\n if (!targetBlockElem) {\n return false\n }\n const targetNode = $getNearestNodeFromDOMNode(targetBlockElem)\n if (!targetNode) {\n return false\n }\n if (targetNode === draggedNode) {\n return true\n }\n\n const { height: targetBlockElemHeight, top: targetBlockElemTop } =\n getBoundingClientRectWithoutTransform(targetBlockElem)\n\n const mouseY = pageY\n const isBelow = mouseY >= targetBlockElemTop + targetBlockElemHeight / 2 + window.scrollY\n\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n // below targetBlockElem\n targetNode.insertAfter(draggedNode)\n } else {\n // above targetBlockElem\n targetNode.insertBefore(draggedNode)\n }\n } else {\n //\n targetNode.insertBefore(draggedNode)\n targetNode.remove()\n }\n\n /*\n if (pageY >= targetBlockElemTop + targetBlockElemHeight / 2) {\n targetNode.insertAfter(draggedNode)\n } else {\n targetNode.insertBefore(draggedNode)\n }*/\n if (draggableBlockElem !== null) {\n setDraggableBlockElem(null)\n }\n\n // find all previous elements with lexical-block-highlighter class and remove them\n const allPrevHighlighters = document.querySelectorAll('.lexical-block-highlighter')\n allPrevHighlighters.forEach((highlighter) => {\n highlighter.remove()\n })\n\n const newInsertedElem = editor.getElementByKey(draggedNode.getKey())\n setTimeout(() => {\n // add new temp html element to newInsertedElem with the same height and width and the class block-selected\n // to highlight the new inserted element\n const newInsertedElemRect = newInsertedElem.getBoundingClientRect()\n\n const highlightElem = document.createElement('div')\n highlightElem.className = 'lexical-block-highlighter'\n\n // if html data-theme is dark, set the highlighter color to white\n if (document.documentElement.getAttribute('data-theme') === 'dark') {\n highlightElem.style.backgroundColor = 'white'\n } else {\n highlightElem.style.backgroundColor = 'black'\n }\n\n highlightElem.style.transition = 'opacity 0.1s ease-in-out'\n highlightElem.style.zIndex = '1'\n highlightElem.style.pointerEvents = 'none'\n highlightElem.style.boxSizing = 'border-box'\n highlightElem.style.borderRadius = '4px'\n highlightElem.style.position = 'absolute'\n document.body.appendChild(highlightElem)\n\n highlightElem.style.opacity = '0.1'\n\n highlightElem.style.height = `${newInsertedElemRect.height + 8}px`\n highlightElem.style.width = `${newInsertedElemRect.width + 8}px`\n highlightElem.style.top = `${newInsertedElemRect.top + window.scrollY - 4}px`\n highlightElem.style.left = `${newInsertedElemRect.left - 4}px`\n\n setTimeout(() => {\n highlightElem.style.opacity = '0'\n setTimeout(() => {\n highlightElem.remove()\n }, 1000)\n }, 3000)\n }, 120)\n })\n\n return true\n }\n\n // register onDragover event listeners:\n document.addEventListener('dragover', onDragover)\n // register onDrop event listeners:\n document.addEventListener('drop', onDrop)\n\n return () => {\n document.removeEventListener('dragover', onDragover)\n document.removeEventListener('drop', onDrop)\n }\n }, [\n scrollerElem,\n blockHandleHorizontalOffset,\n anchorElem,\n editor,\n lastTargetBlock,\n draggableBlockElem,\n editorConfig?.admin?.hideGutter,\n ])\n\n function onDragStart(event: ReactDragEvent<HTMLDivElement>): void {\n const dataTransfer = event.dataTransfer\n if (!dataTransfer || !draggableBlockElem) {\n return\n }\n setDragImage(dataTransfer, draggableBlockElem)\n let nodeKey = ''\n editor.update(() => {\n const node = $getNearestNodeFromDOMNode(draggableBlockElem)\n if (node) {\n nodeKey = node.getKey()\n }\n })\n isDraggingBlockRef.current = true\n dataTransfer.setData(DRAG_DATA_FORMAT, nodeKey)\n }\n\n function onDragEnd(): void {\n isDraggingBlockRef.current = false\n hideTargetLine(targetLineRef.current, lastTargetBlock?.elem)\n }\n\n return createPortal(\n <React.Fragment>\n <div\n className=\"icon draggable-block-menu\"\n draggable\n onDragEnd={onDragEnd}\n onDragStart={onDragStart}\n ref={menuRef}\n >\n <div className={isEditable ? 'icon' : ''} />\n </div>\n <div className=\"draggable-block-target-line\" ref={targetLineRef} />\n <div className=\"debug-highlight\" ref={debugHighlightRef} />\n </React.Fragment>,\n anchorElem,\n )\n}\n\nexport function DraggableBlockPlugin({\n anchorElem = document.body,\n}: {\n anchorElem?: HTMLElement\n}): React.ReactElement {\n const [editor] = useLexicalComposerContext()\n return useDraggableBlockMenu(editor, anchorElem, editor._editable)\n}\n", "import type React from 'react'\n\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\n\nexport function highlightElemOriginalPosition(\n debugHighlightRef: React.RefObject<HTMLDivElement | null>,\n htmlElem: HTMLElement,\n anchorElem: HTMLElement,\n) {\n if (!debugHighlightRef.current) {\n // If the ref doesn't point to an existing element, we can't set styles\n return\n }\n\n const { left: anchorLeft, top: anchorTop } = anchorElem.getBoundingClientRect()\n\n // Get computed styles of the given element\n const boundingRect = getBoundingClientRectWithoutTransform(htmlElem)\n\n // Extract necessary styles (ignoring transform)\n const width = boundingRect.width\n const height = boundingRect.height\n const top = boundingRect.top - anchorTop\n const left = boundingRect.left - anchorLeft\n\n debugHighlightRef.current.style.border = '2px solid green'\n debugHighlightRef.current.style.boxSizing = 'border-box'\n debugHighlightRef.current.style.height = height + 'px'\n debugHighlightRef.current.style.pointerEvents = 'none'\n debugHighlightRef.current.style.position = 'absolute'\n debugHighlightRef.current.style.top = top + 'px'\n debugHighlightRef.current.style.left = left + 'px'\n debugHighlightRef.current.style.width = width + 'px'\n debugHighlightRef.current.style.zIndex = '1000'\n debugHighlightRef.current.style.opacity = '0.5'\n}\n", "import { getCollapsedMargins } from '../utils/getCollapsedMargins.js'\nimport { getBoundingClientRectWithoutTransform } from './getBoundingRectWithoutTransform.js'\nimport { highlightElemOriginalPosition } from './highlightElemOriginalPosition.js'\nconst TARGET_LINE_HALF_HEIGHT = 25\nconst TEXT_BOX_HORIZONTAL_PADDING = -24\nconst DEBUG = false\n\nlet animationTimer = 0\n\nexport function setTargetLine(\n offsetWidth: string,\n offsetLeft: number,\n targetLineElem: HTMLElement,\n targetBlockElem: HTMLElement,\n lastTargetBlock: {\n boundingBox?: DOMRect\n elem: HTMLElement | null\n isBelow: boolean\n },\n mouseY: number,\n anchorElem: HTMLElement,\n event: DragEvent,\n debugHighlightRef: React.RefObject<HTMLDivElement | null>,\n isFoundNodeEmptyParagraph: boolean = false,\n) {\n const { height: targetBlockElemHeight, top: targetBlockElemTop } =\n targetBlockElem.getBoundingClientRect() // used to be getBoundingClientRectWithoutTransform. Not sure what's better, but the normal getBoundingClientRect seems to work fine\n const { top: anchorTop, width: anchorWidth } = anchorElem.getBoundingClientRect()\n\n const { marginBottom, marginTop } = getCollapsedMargins(targetBlockElem)\n let lineTop = targetBlockElemTop\n\n const isBelow = mouseY >= targetBlockElemTop + targetBlockElemHeight / 2 + window.scrollY\n\n let willStayInSamePosition = false\n\n /**\n * Do not run any transform or changes if the actual new line position would be the same (even if it's now inserted BEFORE rather than AFTER - position would still be the same)\n * This prevents unnecessary flickering.\n *\n * We still need to let it run even if the position (IGNORING the transform) would not change, as the transform animation is not finished yet. This is what animationTimer does. Otherwise, the positioning will be inaccurate\n */\n if (lastTargetBlock?.elem) {\n if (targetBlockElem !== lastTargetBlock?.elem) {\n if (\n isBelow &&\n lastTargetBlock?.elem &&\n lastTargetBlock?.elem === targetBlockElem.nextElementSibling\n ) {\n animationTimer++\n\n if (animationTimer < 200) {\n willStayInSamePosition = true\n }\n } else if (\n !isBelow &&\n lastTargetBlock?.elem &&\n lastTargetBlock?.elem === targetBlockElem.previousElementSibling\n ) {\n animationTimer++\n if (animationTimer < 200) {\n willStayInSamePosition = true\n }\n }\n } else {\n animationTimer++\n\n const lastBoundingBoxPosition = lastTargetBlock?.boundingBox?.y\n const currentBoundingBoxPosition = targetBlockElem.getBoundingClientRect().y\n\n if (\n (isBelow === lastTargetBlock?.isBelow &&\n lastBoundingBoxPosition === currentBoundingBoxPosition) ||\n animationTimer < 200\n ) {\n willStayInSamePosition = false\n }\n }\n }\n if (willStayInSamePosition) {\n return {\n isBelow,\n willStayInSamePosition,\n }\n }\n\n /**\n * Paragraphs need no isBelow/above handling,\n */\n if (!isFoundNodeEmptyParagraph) {\n //if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n // below targetBlockElem\n lineTop += targetBlockElemHeight + marginBottom / 2\n } else {\n // above targetBlockElem\n lineTop -= marginTop / 2\n }\n } else {\n lineTop += targetBlockElemHeight / 2\n }\n\n let targetElemTranslate2 = 0\n\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n targetElemTranslate2 = -TARGET_LINE_HALF_HEIGHT\n } else {\n targetElemTranslate2 = TARGET_LINE_HALF_HEIGHT\n }\n }\n\n const top = lineTop - anchorTop + targetElemTranslate2\n\n const left = TEXT_BOX_HORIZONTAL_PADDING - offsetLeft\n\n targetLineElem.style.width = `calc(${anchorWidth}px - ${offsetWidth})`\n targetLineElem.style.opacity = '.4'\n\n /**\n * Move around element below or above the line (= the target / targetBlockElem). Creates \"space\" for the targetLineElem\n *\n * Not needed for empty paragraphs, as an empty paragraph is enough space for the targetLineElem anyways.\n */\n //targetBlockElem.style.opacity = '0.4'\n const buffer = 12 // creates more spacing/padding so target line is not directly next to the targetBlockElem\n if (!isFoundNodeEmptyParagraph) {\n if (isBelow) {\n targetBlockElem.style.marginBottom = TARGET_LINE_HALF_HEIGHT * 2 + buffer + 'px'\n targetLineElem.style.transform = `translate(${left}px, calc(${top}px - ${'0px'}))`\n } else {\n targetBlockElem.style.marginTop = TARGET_LINE_HALF_HEIGHT * 2 + buffer + 'px'\n targetLineElem.style.transform = `translate(${left}px, calc(${top - TARGET_LINE_HALF_HEIGHT * 2}px - ${'0px'}))`\n }\n } else {\n targetLineElem.style.transform = `translate(${left}px, ${top - TARGET_LINE_HALF_HEIGHT}px)`\n }\n\n if (DEBUG) {\n //targetBlockElem.style.border = '3px solid red'\n highlightElemOriginalPosition(debugHighlightRef, targetBlockElem, anchorElem)\n }\n\n /**\n * Properly reset previous targetBlockElem styles\n */\n lastTargetBlock.elem.style.opacity = ''\n\n if (lastTargetBlock?.elem === targetBlockElem) {\n if (isBelow) {\n lastTargetBlock.elem.style.marginTop = ''\n } else {\n lastTargetBlock.elem.style.marginBottom = ''\n }\n } else {\n lastTargetBlock.elem.style.marginBottom = ''\n lastTargetBlock.elem.style.marginTop = ''\n }\n animationTimer = 0\n return {\n isBelow,\n willStayInSamePosition,\n }\n}\n", "import type { JSX } from 'react'\n\nimport { ContentEditable } from '@lexical/react/LexicalContentEditable.js'\nimport * as React from 'react'\n\nexport function LexicalContentEditable({ className }: { className?: string }): JSX.Element {\n return <ContentEditable className={className ?? 'ContentEditable__root'} />\n}\n"],
|
|
5
|
+
"mappings": "oJAIA,OACE,oBAAAA,GACA,cAAAC,GACA,cAAAC,GACA,YAAAC,GACA,iBAAAC,GACA,iBAAAC,OACK,iBACP,OAAgB,eAAAC,OAAmB,QACnC,OAAS,iBAAAC,OAAqB,uBCR9B,OAAS,mBAAAC,OAAuB,oCAChC,UAAYC,OAAW,QACvB,OAAS,WAAAC,OAAe,QCNxB,OAAS,6BAAAC,OAAiC,2CAC1C,OAAS,wBAAAC,OAA4B,yCACrC,OAAS,iBAAAC,OAAqB,yCAC9B,OAAS,kBAAAC,OAAsB,0CAC/B,OAAS,kBAAAC,OAAsB,0CAC/B,OAAS,wBAAAC,OAA4B,gDACrC,OAAS,kBAAAC,OAAsB,iBAC/B,OAAS,gBAAAC,GAAc,wBAAAC,GAAsB,iBAAAC,OAAqB,UAClE,UAAYC,MAAW,QACvB,OAAS,aAAAC,GAAW,YAAAC,OAAgB,QCCV,cAAAC,OAAA,oBAPnB,IAAMC,EAIR,CAAC,CAAE,WAAAC,EAAY,YAAAC,EAAa,OAAAC,CAAO,IAClCA,EAAO,WAAa,qBAEpBA,EAAO,WAAaJ,GAACI,EAAO,UAAP,CAAiB,WAAYF,EAAY,YAAaC,EAAa,EAIrFC,EAAO,WAAaJ,GAACI,EAAO,UAAP,CAAiB,YAAaD,EAAa,ECbzE,OAAS,0BAA0BE,OAAqC,kDAQ/D,cAAAC,OAAA,oBAHF,IAAMC,GAAmC,IAAM,CACpD,GAAM,CAAE,aAAAC,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O,CAAE,MAAO,KAAM,EAAI,SAAA6C,EAAM,QAAQ,GAC/C,CAEJ,CAEO,IAAMC,GAAWC,GAAc5C,EAAS",
|
|
6
|
+
"names": ["FieldDescription", "FieldError", "FieldLabel", "useField", "useFieldProps", "withCondition", "useCallback", "ErrorBoundary", "LexicalComposer", "React", "useMemo", "useLexicalComposerContext", "LexicalErrorBoundary", "HistoryPlugin", "OnChangePlugin", "RichTextPlugin", "TabIndentationPlugin", "useTranslation", "BLUR_COMMAND", "COMMAND_PRIORITY_LOW", "FOCUS_COMMAND", "React", "useEffect", "useState", "jsx", "EditorPlugin", "anchorElem", "clientProps", "plugin", "LexicalMarkdownShortcutPlugin", "jsx", "MarkdownShortcutPlugin", "editorConfig", "useEditorConfigContext", "LexicalMarkdownShortcutPlugin", "useLexicalComposerContext", "useTranslation", "useCallback", "useMemo", "useState", "ReactDOM", "useCallback", "useMenuTriggerMatch", "trigger", "maxLength", "minLength", "useCallback", "query", "validChars", "PUNCTUATION", "match", "maybeLeadingWhitespace", "matchingString", "jsx", "jsxs", "baseClass", "SlashMenuItem", "isSelected", "item", "onClick", "onMouseEnter", "i18n", "useTranslation", "className", "title", "element", "SlashMenuPlugin", "anchorElem", "editor", "useLexicalComposerContext", "queryString", "setQueryString", "useState", "editorConfig", "useEditorConfigContext", "checkForTriggerMatch", "useMenuTriggerMatch", "getDynamicItems", "useCallback", "groupWithItems", "dynamicItem", "dynamicGroupWithItems", "groups", "useMemo", "groupsWithItems", "groupWithItem", "group", "filteredItems", "itemTitle", "keyword", "dynamicItemGroups", "dynamicGroup", "onSelectItem", "selectedItem", "nodeToRemove", "closeMenu", "matchingString", "LexicalTypeaheadMenuPlugin", "anchorElementRef", "selectItemAndCleanUp", "selectedItemKey", "setSelectedItemKey", "groupTitle", "oi", "useLexicalComposerContext", "$createParagraphNode", "React", "useCallback", "useEffect", "useRef", "useState", "createPortal", "calculateDistanceFromScrollerElem", "scrollerElem", "pageX", "pageY", "target", "horizontalBuffer", "verticalBuffer", "distanceFromScrollerElem", "bottom", "left", "right", "top", "adjustedTop", "adjustedBottom", "$getNodeByKey", "getBoundingClientRectWithoutTransform", "elem", "rect", "transformValue", "lastNumberOfTransformValue", "getCollapsedMargins", "elem", "getMargin", "element", "margin", "marginBottom", "marginTop", "prevElemSiblingMarginBottom", "nextElemSiblingMarginTop", "collapsedTopMargin", "$getRoot", "getTopLevelNodeKeys", "editor", "Downward", "Upward", "Indeterminate", "cache", "isPointClose", "previous", "current", "threshold", "dx", "dy", "getNodeCloseToPoint", "props", "anchorElem", "cache_threshold", "editor", "fuzzy", "horizontalOffset", "x", "y", "startIndex", "useEdgeAsDefault", "verbose", "anchorElementRect", "topLevelNodeKeys", "getTopLevelNodeKeys", "closestBlockElem", "firstNode", "lastNode", "firstNodeRect", "lastNodeRect", "getBoundingClientRectWithoutTransform", "$getNodeByKey", "index", "direction", "key", "elem", "point", "Point", "domRect", "Rect", "marginBottom", "marginTop", "getCollapsedMargins", "rect", "distance", "isOnBottomSide", "isOnTopSide", "isOnHandleElement", "element", "handleElementClassName", "replacedElements", "doesLineHeightAffectElement", "htmlElem", "style", "setHandlePosition", "targetElem", "handleElem", "anchorElem", "leftOffset", "targetRect", "targetStyle", "floatingElemRect", "anchorElementRect", "top", "actualLineHeight", "doesLineHeightAffectElement", "left", "jsx", "ADD_BLOCK_MENU_CLASSNAME", "prevIndex", "getCurrentIndex", "keysLength", "useAddBlockHandle", "editor", "anchorElem", "isEditable", "scrollerElem", "editorConfig", "useEditorConfigContext", "blockHandleHorizontalOffset", "menuRef", "useRef", "hoveredElement", "setHoveredElement", "useState", "useEffect", "onDocumentMouseMove", "event", "target", "isHTMLElement", "distanceFromScrollerElem", "calculateDistanceFromScrollerElem", "isOnHandleElement", "topLevelNodeKeys", "getTopLevelNodeKeys", "_emptyBlockElem", "blockNode", "foundAtIndex", "getNodeCloseToPoint", "Point", "setHandlePosition", "handleAddClick", "useCallback", "hoveredElementToUse", "isEmptyParagraph", "newParagraph", "$createParagraphNode", "ENABLE_SLASH_MENU_COMMAND", "createPortal", "AddBlockHandlePlugin", "useLexicalComposerContext", "useLexicalComposerContext", "eventFiles", "$getNearestNodeFromDOMNode", "$getNodeByKey", "React", "useEffect", "useRef", "useState", "createPortal", "highlightElemOriginalPosition", "debugHighlightRef", "htmlElem", "anchorElem", "anchorLeft", "anchorTop", "boundingRect", "getBoundingClientRectWithoutTransform", "width", "height", "top", "left", "TARGET_LINE_HALF_HEIGHT", "TEXT_BOX_HORIZONTAL_PADDING", "DEBUG", "animationTimer", "setTargetLine", "offsetWidth", "offsetLeft", "targetLineElem", "targetBlockElem", "lastTargetBlock", "mouseY", "anchorElem", "event", "debugHighlightRef", "isFoundNodeEmptyParagraph", "targetBlockElemHeight", "targetBlockElemTop", "anchorTop", "anchorWidth", "marginBottom", "marginTop", "getCollapsedMargins", "lineTop", "isBelow", "willStayInSamePosition", "lastBoundingBoxPosition", "currentBoundingBoxPosition", "targetElemTranslate2", "top", "left", "buffer", "highlightElemOriginalPosition", "jsx", "jsxs", "DRAGGABLE_BLOCK_MENU_CLASSNAME", "DRAG_DATA_FORMAT", "prevIndex", "getCurrentIndex", "keysLength", "setDragImage", "dataTransfer", "draggableBlockElem", "transform", "hideTargetLine", "targetLineElem", "lastTargetBlockElem", "useDraggableBlockMenu", "editor", "anchorElem", "isEditable", "scrollerElem", "menuRef", "useRef", "targetLineRef", "debugHighlightRef", "isDraggingBlockRef", "setDraggableBlockElem", "useState", "lastTargetBlock", "setLastTargetBlock", "editorConfig", "useEditorConfigContext", "blockHandleHorizontalOffset", "useEffect", "onDocumentMouseMove", "event", "target", "isHTMLElement", "distanceFromScrollerElem", "calculateDistanceFromScrollerElem", "isOnHandleElement", "topLevelNodeKeys", "getTopLevelNodeKeys", "_draggableBlockElem", "foundAtIndex", "isFoundNodeEmptyParagraph", "getNodeCloseToPoint", "Point", "setHandlePosition", "onDragover", "isFileTransfer", "eventFiles", "pageY", "targetBlockElem", "isBelow", "willStayInSamePosition", "setTargetLine", "onDrop", "dragData", "draggedNode", "$getNodeByKey", "targetNode", "$getNearestNodeFromDOMNode", "targetBlockElemHeight", "targetBlockElemTop", "getBoundingClientRectWithoutTransform", "highlighter", "newInsertedElem", "newInsertedElemRect", "highlightElem", "onDragStart", "nodeKey", "node", "onDragEnd", "createPortal", "DraggableBlockPlugin", "useLexicalComposerContext", "ContentEditable", "jsx", "LexicalContentEditable", "className", "jsx", "jsxs", "LexicalEditor", "props", "editorConfig", "editorContainerRef", "onChange", "editorConfigContext", "useEditorConfigContext", "editor", "useLexicalComposerContext", "t", "useTranslation", "floatingAnchorElem", "setFloatingAnchorElem", "useState", "onRef", "_floatingAnchorElem", "useEffect", "handleFocus", "handleBlur", "unregisterFocus", "FOCUS_COMMAND", "COMMAND_PRIORITY_LOW", "unregisterBlur", "BLUR_COMMAND", "isSmallWidthViewport", "setIsSmallWidthViewport", "updateViewPortWidth", "isNextSmallWidthViewport", "plugin", "EditorPlugin", "RichTextPlugin", "LexicalErrorBoundary", "LexicalContentEditable", "OnChangePlugin", "editorState", "tags", "DraggableBlockPlugin", "AddBlockHandlePlugin", "SlashMenuPlugin", "HistoryPlugin", "MarkdownShortcutPlugin", "TabIndentationPlugin", "jsx", "NestProviders", "children", "providers", "Component", "LexicalProvider", "props", "editorConfig", "fieldProps", "onChange", "path", "readOnly", "value", "parentContext", "useEditorConfigContext", "editorContainerRef", "processedValue", "useMemo", "processed", "hook", "initialConfig", "getEnabledNodes", "error", "LexicalComposer", "EditorConfigProvider", "LexicalEditor", "jsx", "jsxs", "baseClass", "_RichText", "props", "name", "CustomDescription", "CustomError", "CustomLabel", "className", "descriptionProps", "editorConfig", "errorProps", "label", "labelProps", "pathFromProps", "readOnly", "required", "style", "validate", "width", "memoizedValidate", "useCallback", "value", "validationOptions", "pathFromContext", "useFieldProps", "fieldType", "useField", "errorMessage", "initialValue", "path", "schemaPath", "setValue", "showError", "classes", "FieldError", "FieldLabel", "ErrorBoundary", "fallbackRender", "LexicalProvider", "editorState", "serializedEditorState", "hook", "FieldDescription", "error", "RichText", "withCondition"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";import{a as $,d as S}from"./chunk-6QXGZYUK.js";import{b as y}from"./chunk-IWZVO3AI.js";import{useLexicalComposerContext as H}from"@lexical/react/LexicalComposerContext.js";import{useLexicalNodeSelection as W}from"@lexical/react/useLexicalNodeSelection.js";import{mergeRegister as Y}from"@lexical/utils";import{getTranslation as j}from"@payloadcms/translations";import{Button as T,useConfig as U,useDocumentDrawer as q,usePayloadAPI as z,useTranslation as G}from"@payloadcms/ui";import{$getNodeByKey as M,$getSelection as J,$isNodeSelection as Q,CLICK_COMMAND as V,COMMAND_PRIORITY_LOW as C,KEY_BACKSPACE_COMMAND as X,KEY_DELETE_COMMAND as Z}from"lexical";import ee,{useCallback as R,useEffect as te,useReducer as oe,useRef as se,useState as ae}from"react";import{jsx as n,jsxs as g}from"react/jsx-runtime";var t="lexical-relationship",A={depth:0},ne=m=>{let{data:{relationTo:w,value:l},nodeKey:s}=m,d=se(null),[o]=H(),[a,i,p]=W(s),{field:v}=y(),{collections:K,routes:{api:O},serverURL:P}=U(),[r,le]=ae(()=>K.find(e=>e.slug===w)),{i18n:B,t:u}=G(),[_,I]=oe(e=>e+1,0),[{data:N},{setParams:D}]=z(`${P}${O}/${r.slug}/${l}`,{initialParams:A}),[L,x,{closeDrawer:E}]=q({id:l,collectionSlug:r.slug}),k=R(()=>{o.update(()=>{M(s).remove()})},[o,s]),F=ee.useCallback(({doc:e})=>{D({...A,cacheBust:_}),E(),I()},[_,D,E]),f=R(e=>{if(a&&Q(J())){e.preventDefault();let b=M(s);if(S(b))return b.remove(),!0}return!1},[a,s]),h=R(e=>{let c=e;return c.target===d.current||d.current?.contains(c.target)?(c.shiftKey?i(!a):a||(p(),i(!0)),!0):!1},[a,i,p]);return te(()=>Y(o.registerCommand(V,h,C),o.registerCommand(Z,f,C),o.registerCommand(X,f,C)),[p,o,a,s,f,i,h]),g("div",{className:[t,a&&`${t}--selected`].filter(Boolean).join(" "),contentEditable:!1,ref:d,children:[g("div",{className:`${t}__wrap`,children:[n("p",{className:`${t}__label`,children:u("fields:labelRelationship",{label:j(r.labels.singular,B)})}),n(x,{className:`${t}__doc-drawer-toggler`,children:n("p",{className:`${t}__title`,children:N?N[r?.admin?.useAsTitle||"id"]:l})})]}),o.isEditable()&&g("div",{className:`${t}__actions`,children:[n(T,{buttonStyle:"icon-label",className:`${t}__swapButton`,disabled:v?.readOnly,el:"div",icon:"swap",onClick:()=>{o.dispatchCommand($,{replace:{nodeKey:s}})},round:!0,tooltip:u("fields:swapRelationship")}),n(T,{buttonStyle:"icon-label",className:`${t}__removeButton`,disabled:v?.readOnly,icon:"x",onClick:e=>{e.preventDefault(),k()},round:!0,tooltip:u("fields:removeRelationship")})]}),l&&n(L,{onSave:F})]})},ge=m=>n(ne,{...m});export{ge as RelationshipComponent};
|
|
2
|
+
//# sourceMappingURL=RelationshipComponent-ZR2OCBGL.js.map
|