@payloadcms/richtext-lexical 3.0.0-beta.52 → 3.0.0-beta.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cell/index.d.ts.map +1 -1
- package/dist/cell/index.js +6 -6
- 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-XBUN6QOM.js +2 -0
- package/dist/exports/client/Field-XBUN6QOM.js.map +7 -0
- package/dist/exports/client/RelationshipComponent-5OU5HATX.js +2 -0
- package/dist/exports/client/RelationshipComponent-5OU5HATX.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -1
- package/dist/exports/client/chunk-3K3B6PJM.js +2 -0
- package/dist/exports/client/chunk-3K3B6PJM.js.map +7 -0
- package/dist/exports/client/chunk-JIP5PWU3.js +2 -0
- package/dist/exports/client/chunk-JIP5PWU3.js.map +7 -0
- package/dist/exports/client/chunk-MLIITFAS.js +3 -0
- package/dist/exports/client/chunk-MLIITFAS.js.map +7 -0
- package/dist/exports/client/chunk-OSR74ZNW.js +2 -0
- package/dist/exports/client/chunk-OSR74ZNW.js.map +7 -0
- package/dist/exports/client/chunk-TZLHAUCW.js +2 -0
- package/dist/exports/client/chunk-TZLHAUCW.js.map +7 -0
- package/dist/exports/client/component-CEUVAHRO.js +2 -0
- package/dist/exports/client/component-CEUVAHRO.js.map +7 -0
- package/dist/exports/client/component-PEFMKIXI.js +2 -0
- package/dist/exports/client/component-PEFMKIXI.js.map +7 -0
- package/dist/exports/client/component-QWIGEOVD.js +2 -0
- package/dist/exports/client/component-QWIGEOVD.js.map +7 -0
- package/dist/exports/client/index.d.ts +58 -49
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +7 -5
- package/dist/exports/client/index.js.map +4 -4
- 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.map +1 -0
- package/dist/features/align/i18n.js.map +1 -0
- package/dist/features/align/toolbarAlignGroup.d.ts.map +1 -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 +2 -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.map +1 -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.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 +193 -0
- package/dist/features/blocks/component/BlockContent.js.map +1 -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.map +1 -0
- package/dist/features/blocks/component/index.js +158 -0
- package/dist/features/blocks/component/index.js.map +1 -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/drawer/index.d.ts.map +1 -0
- package/dist/features/blocks/drawer/index.js +78 -0
- package/dist/features/blocks/drawer/index.js.map +1 -0
- package/dist/features/blocks/feature.client.d.ts +9 -0
- package/dist/features/blocks/feature.client.d.ts.map +1 -0
- package/dist/features/blocks/feature.client.js +86 -0
- package/dist/features/blocks/feature.client.js.map +1 -0
- package/dist/features/blocks/feature.server.d.ts +7 -0
- package/dist/features/blocks/feature.server.d.ts.map +1 -0
- package/dist/features/blocks/feature.server.js +105 -0
- package/dist/features/blocks/feature.server.js.map +1 -0
- package/dist/features/blocks/graphQLPopulationPromise.d.ts +5 -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.map +1 -0
- package/dist/features/blocks/i18n.js.map +1 -0
- package/dist/features/blocks/nodes/BlocksNode.d.ts.map +1 -0
- package/dist/features/blocks/nodes/BlocksNode.js.map +1 -0
- package/dist/features/blocks/plugin/commands.d.ts.map +1 -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.map +1 -0
- package/dist/features/blocks/validate.d.ts +5 -0
- package/dist/features/blocks/validate.d.ts.map +1 -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.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.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.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.map +1 -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 +6 -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.map +1 -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.map +1 -0
- package/dist/features/horizontalRule/component/index.d.ts.map +1 -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.map +1 -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.map +1 -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.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.map +1 -0
- package/dist/features/indent/i18n.js.map +1 -0
- package/dist/features/indent/toolbarIndentGroup.d.ts.map +1 -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.map +1 -0
- package/dist/features/link/drawer/index.d.ts.map +1 -0
- package/dist/features/link/drawer/index.js +94 -0
- package/dist/features/link/drawer/index.js.map +1 -0
- package/dist/features/link/drawer/types.d.ts.map +1 -0
- package/dist/features/link/drawer/types.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 +138 -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.map +1 -0
- package/dist/features/link/i18n.js.map +1 -0
- package/dist/features/link/markdownTransformer.d.ts.map +1 -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.map +1 -0
- package/dist/features/link/nodes/LinkNode.d.ts.map +1 -0
- package/dist/features/link/nodes/LinkNode.js.map +1 -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.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.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.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 +295 -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.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.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.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.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.map +1 -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.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.map +1 -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.map +1 -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.map +1 -0
- package/dist/features/lists/plugin/index.d.ts +3 -0
- package/dist/features/lists/plugin/index.d.ts.map +1 -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.map +1 -0
- package/dist/features/lists/shared/slashMenuListGroup.d.ts.map +1 -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.map +1 -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.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.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.map +1 -0
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -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.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.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.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.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 +8 -0
- package/dist/features/migrations/slateToLexical/feature.server.d.ts.map +1 -0
- package/dist/features/migrations/slateToLexical/feature.server.js +45 -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.map +1 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +1 -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.map +1 -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.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.map +1 -0
- package/dist/features/relationship/i18n.js.map +1 -0
- package/dist/features/relationship/nodes/RelationshipNode.d.ts.map +1 -0
- package/dist/features/relationship/nodes/RelationshipNode.js.map +1 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.d.ts.map +1 -0
- package/dist/features/relationship/nodes/components/RelationshipComponent.js +172 -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.map +1 -0
- package/dist/features/shared/slashMenu/basicGroup.js.map +1 -0
- package/dist/features/shared/toolbar/addDropdownGroup.d.ts.map +1 -0
- package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.d.ts.map +1 -0
- package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -0
- package/dist/features/shared/toolbar/textDropdownGroup.d.ts.map +1 -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.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.map +1 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +1 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -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 +53 -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.map +1 -0
- package/dist/features/typesClient.d.ts +182 -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 +292 -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/ExtraFieldsDrawer/index.d.ts.map +1 -0
- package/dist/features/upload/component/ExtraFieldsDrawer/index.js +123 -0
- package/dist/features/upload/component/ExtraFieldsDrawer/index.js.map +1 -0
- package/dist/features/upload/component/index.d.ts.map +1 -0
- package/dist/features/upload/component/index.js +219 -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.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 +194 -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.map +1 -0
- package/dist/features/upload/i18n.js.map +1 -0
- package/dist/features/upload/nodes/UploadNode.d.ts.map +1 -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.map +1 -0
- package/dist/field/Field.d.ts +3 -3
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +2 -2
- package/dist/field/Field.js.map +1 -1
- package/dist/field/index.d.ts +1 -1
- package/dist/field/index.d.ts.map +1 -1
- package/dist/field/index.js +9 -7
- package/dist/field/index.js.map +1 -1
- package/dist/i18n.js.map +1 -1
- package/dist/index.d.ts +68 -66
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +76 -76
- 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.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.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.map +1 -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 +176 -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.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.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.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.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +39 -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.map +1 -0
- package/dist/lexical/plugins/SlashMenu/index.js +187 -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.map +1 -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.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -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.map +1 -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.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.map +1 -0
- package/dist/lexical/theme/EditorTheme.d.ts.map +1 -0
- package/dist/lexical/theme/EditorTheme.js.map +1 -0
- package/dist/lexical/ui/ContentEditable.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Add/index.js.map +1 -0
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/IndentIncrease/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.map +1 -0
- package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -0
- package/dist/lexical/ui/icons/Link/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.map +1 -0
- package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -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.map +1 -0
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -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.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/cloneDeep.d.ts.map +1 -0
- package/dist/lexical/utils/cloneDeep.js +50 -0
- package/dist/lexical/utils/cloneDeep.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.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.map +1 -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.map +1 -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.map +1 -0
- package/dist/populateGraphQL/defaultValue.js.map +1 -1
- package/dist/populateGraphQL/populate.d.ts +3 -3
- package/dist/populateGraphQL/populate.d.ts.map +1 -1
- package/dist/populateGraphQL/populate.js +2 -2
- package/dist/populateGraphQL/populate.js.map +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.d.ts +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.d.ts +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
- package/dist/types.d.ts +7 -7
- 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/forEachNodeRecursively.d.ts.map +1 -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 +22 -0
- package/dist/utilities/generateSchemaMap.js.map +1 -0
- package/dist/utilities/recurseNodeTree.d.ts.map +1 -0
- package/dist/utilities/recurseNodeTree.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 +1 -1
- package/dist/validate/index.d.ts.map +1 -1
- package/dist/validate/index.js.map +1 -1
- package/dist/validate/validateNodes.d.ts +1 -1
- package/dist/validate/validateNodes.js.map +1 -1
- package/package.json +14 -14
- package/dist/exports/client/Component-6AVANNNR.js +0 -2
- package/dist/exports/client/Component-6AVANNNR.js.map +0 -7
- package/dist/exports/client/Component-SZVAYRJX.js +0 -2
- package/dist/exports/client/Component-SZVAYRJX.js.map +0 -7
- package/dist/exports/client/Field-U5PHZTST.js +0 -2
- package/dist/exports/client/Field-U5PHZTST.js.map +0 -7
- package/dist/exports/client/RelationshipComponent-FGUPLCD2.js +0 -2
- package/dist/exports/client/RelationshipComponent-FGUPLCD2.js.map +0 -7
- package/dist/exports/client/chunk-35NZOHAF.js +0 -2
- package/dist/exports/client/chunk-35NZOHAF.js.map +0 -7
- package/dist/exports/client/chunk-3PZ2ZFQG.js +0 -3
- package/dist/exports/client/chunk-3PZ2ZFQG.js.map +0 -7
- package/dist/exports/client/chunk-FSTRW2TI.js +0 -2
- package/dist/exports/client/chunk-FSTRW2TI.js.map +0 -7
- package/dist/exports/client/chunk-M6MN4CA5.js +0 -2
- package/dist/exports/client/chunk-M6MN4CA5.js.map +0 -7
- package/dist/exports/client/chunk-Y5455JF3.js +0 -2
- package/dist/exports/client/chunk-Y5455JF3.js.map +0 -7
- package/dist/exports/client/component-FFLILIUZ.js +0 -2
- package/dist/exports/client/component-FFLILIUZ.js.map +0 -7
- package/dist/exports/client/component-RAVN56DE.js +0 -2
- package/dist/exports/client/component-RAVN56DE.js.map +0 -7
- package/dist/exports/client/component-Z34HXRX3.js +0 -2
- package/dist/exports/client/component-Z34HXRX3.js.map +0 -7
- package/dist/field/features/align/feature.client.d.ts +0 -6
- package/dist/field/features/align/feature.client.d.ts.map +0 -1
- package/dist/field/features/align/feature.client.js +0 -153
- 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 -19
- package/dist/field/features/align/feature.server.js.map +0 -1
- package/dist/field/features/align/i18n.d.ts.map +0 -1
- package/dist/field/features/align/i18n.js.map +0 -1
- package/dist/field/features/align/toolbarAlignGroup.d.ts.map +0 -1
- package/dist/field/features/align/toolbarAlignGroup.js.map +0 -1
- package/dist/field/features/blockquote/feature.client.d.ts +0 -6
- package/dist/field/features/blockquote/feature.client.d.ts.map +0 -1
- package/dist/field/features/blockquote/feature.client.js +0 -84
- 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 -50
- package/dist/field/features/blockquote/feature.server.js.map +0 -1
- package/dist/field/features/blockquote/i18n.d.ts.map +0 -1
- package/dist/field/features/blockquote/i18n.js.map +0 -1
- package/dist/field/features/blockquote/markdownTransformer.d.ts.map +0 -1
- 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 -193
- package/dist/field/features/blocks/component/BlockContent.js.map +0 -1
- 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.map +0 -1
- package/dist/field/features/blocks/component/index.js +0 -158
- package/dist/field/features/blocks/component/index.js.map +0 -1
- 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.map +0 -1
- package/dist/field/features/blocks/drawer/index.js +0 -78
- package/dist/field/features/blocks/drawer/index.js.map +0 -1
- package/dist/field/features/blocks/feature.client.d.ts +0 -10
- package/dist/field/features/blocks/feature.client.d.ts.map +0 -1
- package/dist/field/features/blocks/feature.client.js +0 -92
- package/dist/field/features/blocks/feature.client.js.map +0 -1
- package/dist/field/features/blocks/feature.server.d.ts +0 -8
- package/dist/field/features/blocks/feature.server.d.ts.map +0 -1
- package/dist/field/features/blocks/feature.server.js +0 -107
- package/dist/field/features/blocks/feature.server.js.map +0 -1
- package/dist/field/features/blocks/graphQLPopulationPromise.d.ts +0 -5
- package/dist/field/features/blocks/graphQLPopulationPromise.d.ts.map +0 -1
- package/dist/field/features/blocks/graphQLPopulationPromise.js +0 -31
- package/dist/field/features/blocks/graphQLPopulationPromise.js.map +0 -1
- package/dist/field/features/blocks/i18n.d.ts.map +0 -1
- package/dist/field/features/blocks/i18n.js.map +0 -1
- package/dist/field/features/blocks/nodes/BlocksNode.d.ts.map +0 -1
- package/dist/field/features/blocks/nodes/BlocksNode.js.map +0 -1
- package/dist/field/features/blocks/plugin/commands.d.ts.map +0 -1
- package/dist/field/features/blocks/plugin/commands.js.map +0 -1
- package/dist/field/features/blocks/plugin/index.d.ts +0 -6
- package/dist/field/features/blocks/plugin/index.d.ts.map +0 -1
- package/dist/field/features/blocks/plugin/index.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.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.map +0 -1
- package/dist/field/features/converters/html/field/index.js +0 -154
- 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 -18
- package/dist/field/features/createFeaturePropComponent.js.map +0 -1
- package/dist/field/features/debug/testRecorder/feature.client.d.ts +0 -6
- 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 -16
- 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.map +0 -1
- package/dist/field/features/debug/treeView/feature.client.d.ts +0 -6
- 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 -16
- 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.map +0 -1
- package/dist/field/features/format/bold/feature.client.d.ts +0 -6
- package/dist/field/features/format/bold/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/bold/feature.client.js +0 -51
- 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 -28
- 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/inlineCode/feature.client.d.ts +0 -6
- package/dist/field/features/format/inlineCode/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/inlineCode/feature.client.js +0 -46
- 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 -20
- 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 -6
- package/dist/field/features/format/italic/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/italic/feature.client.js +0 -47
- 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 -21
- 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/shared/toolbarFormatGroup.d.ts.map +0 -1
- package/dist/field/features/format/shared/toolbarFormatGroup.js.map +0 -1
- package/dist/field/features/format/strikethrough/feature.client.d.ts +0 -6
- package/dist/field/features/format/strikethrough/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/strikethrough/feature.client.js +0 -46
- 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 -20
- 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 -6
- package/dist/field/features/format/subscript/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/subscript/feature.client.js +0 -42
- 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 -16
- package/dist/field/features/format/subscript/feature.server.js.map +0 -1
- package/dist/field/features/format/superscript/feature.client.d.ts +0 -6
- package/dist/field/features/format/superscript/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/superscript/feature.client.js +0 -42
- 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 -16
- package/dist/field/features/format/superscript/feature.server.js.map +0 -1
- package/dist/field/features/format/underline/feature.client.d.ts +0 -6
- package/dist/field/features/format/underline/feature.client.d.ts.map +0 -1
- package/dist/field/features/format/underline/feature.client.js +0 -42
- 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 -16
- package/dist/field/features/format/underline/feature.server.js.map +0 -1
- package/dist/field/features/heading/feature.client.d.ts +0 -7
- package/dist/field/features/heading/feature.client.d.ts.map +0 -1
- package/dist/field/features/heading/feature.client.js +0 -118
- 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 -61
- package/dist/field/features/heading/feature.server.js.map +0 -1
- package/dist/field/features/heading/i18n.d.ts.map +0 -1
- package/dist/field/features/heading/i18n.js.map +0 -1
- package/dist/field/features/heading/markdownTransformer.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/field/features/horizontalRule/feature.client.d.ts +0 -6
- package/dist/field/features/horizontalRule/feature.client.d.ts.map +0 -1
- package/dist/field/features/horizontalRule/feature.client.js +0 -77
- 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 -39
- package/dist/field/features/horizontalRule/feature.server.js.map +0 -1
- package/dist/field/features/horizontalRule/i18n.d.ts.map +0 -1
- package/dist/field/features/horizontalRule/i18n.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.map +0 -1
- package/dist/field/features/horizontalRule/nodes/HorizontalRuleNode.js.map +0 -1
- package/dist/field/features/horizontalRule/plugin/index.d.ts +0 -7
- package/dist/field/features/horizontalRule/plugin/index.d.ts.map +0 -1
- package/dist/field/features/horizontalRule/plugin/index.js.map +0 -1
- package/dist/field/features/indent/feature.client.d.ts +0 -6
- package/dist/field/features/indent/feature.client.d.ts.map +0 -1
- package/dist/field/features/indent/feature.client.js +0 -63
- 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 -19
- package/dist/field/features/indent/feature.server.js.map +0 -1
- package/dist/field/features/indent/i18n.d.ts.map +0 -1
- package/dist/field/features/indent/i18n.js.map +0 -1
- package/dist/field/features/indent/toolbarIndentGroup.d.ts.map +0 -1
- package/dist/field/features/indent/toolbarIndentGroup.js.map +0 -1
- package/dist/field/features/link/drawer/baseFields.d.ts +0 -3
- package/dist/field/features/link/drawer/baseFields.d.ts.map +0 -1
- package/dist/field/features/link/drawer/baseFields.js.map +0 -1
- package/dist/field/features/link/drawer/index.d.ts.map +0 -1
- package/dist/field/features/link/drawer/index.js +0 -94
- package/dist/field/features/link/drawer/index.js.map +0 -1
- 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 -17
- package/dist/field/features/link/feature.client.d.ts.map +0 -1
- package/dist/field/features/link/feature.client.js +0 -108
- package/dist/field/features/link/feature.client.js.map +0 -1
- package/dist/field/features/link/feature.server.d.ts +0 -37
- package/dist/field/features/link/feature.server.d.ts.map +0 -1
- package/dist/field/features/link/feature.server.js +0 -140
- package/dist/field/features/link/feature.server.js.map +0 -1
- package/dist/field/features/link/graphQLPopulationPromise.d.ts +0 -5
- package/dist/field/features/link/graphQLPopulationPromise.d.ts.map +0 -1
- package/dist/field/features/link/graphQLPopulationPromise.js +0 -31
- package/dist/field/features/link/graphQLPopulationPromise.js.map +0 -1
- package/dist/field/features/link/i18n.d.ts.map +0 -1
- package/dist/field/features/link/i18n.js.map +0 -1
- package/dist/field/features/link/markdownTransformer.d.ts.map +0 -1
- package/dist/field/features/link/markdownTransformer.js.map +0 -1
- package/dist/field/features/link/nodes/AutoLinkNode.d.ts.map +0 -1
- package/dist/field/features/link/nodes/AutoLinkNode.js.map +0 -1
- package/dist/field/features/link/nodes/LinkNode.d.ts.map +0 -1
- package/dist/field/features/link/nodes/LinkNode.js.map +0 -1
- 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 -20
- package/dist/field/features/link/plugins/autoLink/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/autoLink/index.js.map +0 -1
- package/dist/field/features/link/plugins/clickableLink/index.d.ts +0 -4
- package/dist/field/features/link/plugins/clickableLink/index.d.ts.map +0 -1
- 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.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 -295
- package/dist/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.js.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts +0 -5
- package/dist/field/features/link/plugins/floatingLinkEditor/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/index.js.map +0 -1
- 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 -9
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.d.ts.map +0 -1
- package/dist/field/features/link/plugins/floatingLinkEditor/utilities.js.map +0 -1
- package/dist/field/features/link/plugins/link/index.d.ts +0 -4
- package/dist/field/features/link/plugins/link/index.d.ts.map +0 -1
- package/dist/field/features/link/plugins/link/index.js.map +0 -1
- package/dist/field/features/link/validate.d.ts +0 -6
- package/dist/field/features/link/validate.d.ts.map +0 -1
- package/dist/field/features/link/validate.js.map +0 -1
- package/dist/field/features/lists/checklist/feature.client.d.ts +0 -6
- package/dist/field/features/lists/checklist/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/feature.client.js +0 -107
- 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 -39
- package/dist/field/features/lists/checklist/feature.server.js.map +0 -1
- package/dist/field/features/lists/checklist/i18n.d.ts.map +0 -1
- package/dist/field/features/lists/checklist/i18n.js.map +0 -1
- package/dist/field/features/lists/checklist/markdownTransformers.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/field/features/lists/htmlConverter.d.ts.map +0 -1
- package/dist/field/features/lists/htmlConverter.js +0 -56
- package/dist/field/features/lists/htmlConverter.js.map +0 -1
- package/dist/field/features/lists/orderedList/feature.client.d.ts +0 -6
- package/dist/field/features/lists/orderedList/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/orderedList/feature.client.js +0 -97
- 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 -39
- package/dist/field/features/lists/orderedList/feature.server.js.map +0 -1
- package/dist/field/features/lists/orderedList/i18n.d.ts.map +0 -1
- package/dist/field/features/lists/orderedList/i18n.js.map +0 -1
- package/dist/field/features/lists/orderedList/markdownTransformer.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/field/features/lists/shared/markdown.d.ts +0 -6
- package/dist/field/features/lists/shared/markdown.d.ts.map +0 -1
- package/dist/field/features/lists/shared/markdown.js.map +0 -1
- package/dist/field/features/lists/shared/slashMenuListGroup.d.ts.map +0 -1
- package/dist/field/features/lists/shared/slashMenuListGroup.js.map +0 -1
- package/dist/field/features/lists/unorderedList/feature.client.d.ts +0 -6
- package/dist/field/features/lists/unorderedList/feature.client.d.ts.map +0 -1
- package/dist/field/features/lists/unorderedList/feature.client.js +0 -97
- 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 -39
- package/dist/field/features/lists/unorderedList/feature.server.js.map +0 -1
- package/dist/field/features/lists/unorderedList/i18n.d.ts.map +0 -1
- package/dist/field/features/lists/unorderedList/i18n.js.map +0 -1
- package/dist/field/features/lists/unorderedList/markdownTransformer.d.ts.map +0 -1
- 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.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 -6
- 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 -48
- 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.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/field/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- 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.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.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.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.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 -6
- 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 -48
- 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.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts.map +0 -1
- package/dist/field/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +0 -1
- package/dist/field/features/paragraph/feature.client.d.ts +0 -6
- package/dist/field/features/paragraph/feature.client.d.ts.map +0 -1
- package/dist/field/features/paragraph/feature.client.js +0 -78
- 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 -19
- package/dist/field/features/paragraph/feature.server.js.map +0 -1
- package/dist/field/features/paragraph/i18n.d.ts.map +0 -1
- package/dist/field/features/paragraph/i18n.js.map +0 -1
- package/dist/field/features/relationship/drawer/commands.d.ts.map +0 -1
- 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 -83
- package/dist/field/features/relationship/drawer/index.js.map +0 -1
- package/dist/field/features/relationship/feature.client.d.ts +0 -19
- package/dist/field/features/relationship/feature.client.d.ts.map +0 -1
- package/dist/field/features/relationship/feature.client.js +0 -79
- package/dist/field/features/relationship/feature.client.js.map +0 -1
- package/dist/field/features/relationship/feature.server.d.ts +0 -27
- package/dist/field/features/relationship/feature.server.d.ts.map +0 -1
- package/dist/field/features/relationship/feature.server.js +0 -61
- package/dist/field/features/relationship/feature.server.js.map +0 -1
- package/dist/field/features/relationship/graphQLPopulationPromise.d.ts +0 -5
- package/dist/field/features/relationship/graphQLPopulationPromise.d.ts.map +0 -1
- package/dist/field/features/relationship/graphQLPopulationPromise.js +0 -29
- package/dist/field/features/relationship/graphQLPopulationPromise.js.map +0 -1
- package/dist/field/features/relationship/i18n.d.ts.map +0 -1
- package/dist/field/features/relationship/i18n.js.map +0 -1
- package/dist/field/features/relationship/nodes/RelationshipNode.d.ts.map +0 -1
- package/dist/field/features/relationship/nodes/RelationshipNode.js.map +0 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.d.ts.map +0 -1
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js +0 -172
- package/dist/field/features/relationship/nodes/components/RelationshipComponent.js.map +0 -1
- 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 -50
- package/dist/field/features/relationship/plugins/index.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 -33
- package/dist/field/features/relationship/utils/EnabledRelationshipsCondition.js.map +0 -1
- package/dist/field/features/shared/slashMenu/basicGroup.d.ts.map +0 -1
- package/dist/field/features/shared/slashMenu/basicGroup.js.map +0 -1
- package/dist/field/features/shared/toolbar/addDropdownGroup.d.ts.map +0 -1
- package/dist/field/features/shared/toolbar/addDropdownGroup.js.map +0 -1
- package/dist/field/features/shared/toolbar/featureButtonsGroup.d.ts.map +0 -1
- package/dist/field/features/shared/toolbar/featureButtonsGroup.js.map +0 -1
- package/dist/field/features/shared/toolbar/textDropdownGroup.d.ts.map +0 -1
- package/dist/field/features/shared/toolbar/textDropdownGroup.js.map +0 -1
- package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts +0 -5
- package/dist/field/features/toolbars/fixed/Toolbar/index.d.ts.map +0 -1
- package/dist/field/features/toolbars/fixed/Toolbar/index.js +0 -207
- package/dist/field/features/toolbars/fixed/Toolbar/index.js.map +0 -1
- package/dist/field/features/toolbars/fixed/feature.client.d.ts +0 -7
- package/dist/field/features/toolbars/fixed/feature.client.d.ts.map +0 -1
- package/dist/field/features/toolbars/fixed/feature.client.js +0 -20
- package/dist/field/features/toolbars/fixed/feature.client.js.map +0 -1
- package/dist/field/features/toolbars/fixed/feature.server.d.ts +0 -19
- package/dist/field/features/toolbars/fixed/feature.server.d.ts.map +0 -1
- package/dist/field/features/toolbars/fixed/feature.server.js +0 -21
- package/dist/field/features/toolbars/fixed/feature.server.js.map +0 -1
- package/dist/field/features/toolbars/inline/Toolbar/index.d.ts +0 -4
- package/dist/field/features/toolbars/inline/Toolbar/index.d.ts.map +0 -1
- package/dist/field/features/toolbars/inline/Toolbar/index.js.map +0 -1
- package/dist/field/features/toolbars/inline/feature.client.d.ts +0 -6
- package/dist/field/features/toolbars/inline/feature.client.d.ts.map +0 -1
- package/dist/field/features/toolbars/inline/feature.client.js +0 -20
- package/dist/field/features/toolbars/inline/feature.client.js.map +0 -1
- package/dist/field/features/toolbars/inline/feature.server.d.ts +0 -3
- package/dist/field/features/toolbars/inline/feature.server.d.ts.map +0 -1
- package/dist/field/features/toolbars/inline/feature.server.js +0 -16
- package/dist/field/features/toolbars/inline/feature.server.js.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarButton/index.d.ts.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarButton/index.js.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.d.ts.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +0 -1
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js +0 -141
- package/dist/field/features/toolbars/shared/ToolbarDropdown/index.js.map +0 -1
- package/dist/field/features/toolbars/types.d.ts +0 -48
- package/dist/field/features/toolbars/types.d.ts.map +0 -1
- package/dist/field/features/toolbars/types.js.map +0 -1
- package/dist/field/features/typeUtilities.d.ts +0 -8
- package/dist/field/features/typeUtilities.d.ts.map +0 -1
- package/dist/field/features/typeUtilities.js.map +0 -1
- package/dist/field/features/types.d.ts +0 -468
- 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.map +0 -1
- package/dist/field/features/upload/component/ExtraFieldsDrawer/index.js +0 -123
- 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 -219
- package/dist/field/features/upload/component/index.js.map +0 -1
- package/dist/field/features/upload/drawer/commands.d.ts.map +0 -1
- 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 -77
- package/dist/field/features/upload/drawer/index.js.map +0 -1
- package/dist/field/features/upload/feature.client.d.ts +0 -13
- package/dist/field/features/upload/feature.client.d.ts.map +0 -1
- package/dist/field/features/upload/feature.client.js +0 -81
- package/dist/field/features/upload/feature.client.js.map +0 -1
- package/dist/field/features/upload/feature.server.d.ts +0 -19
- package/dist/field/features/upload/feature.server.d.ts.map +0 -1
- package/dist/field/features/upload/feature.server.js +0 -188
- package/dist/field/features/upload/feature.server.js.map +0 -1
- package/dist/field/features/upload/graphQLPopulationPromise.d.ts +0 -5
- package/dist/field/features/upload/graphQLPopulationPromise.d.ts.map +0 -1
- package/dist/field/features/upload/graphQLPopulationPromise.js +0 -52
- package/dist/field/features/upload/graphQLPopulationPromise.js.map +0 -1
- package/dist/field/features/upload/i18n.d.ts.map +0 -1
- package/dist/field/features/upload/i18n.js.map +0 -1
- package/dist/field/features/upload/nodes/UploadNode.d.ts.map +0 -1
- package/dist/field/features/upload/nodes/UploadNode.js.map +0 -1
- package/dist/field/features/upload/plugin/index.d.ts +0 -8
- package/dist/field/features/upload/plugin/index.d.ts.map +0 -1
- package/dist/field/features/upload/plugin/index.js +0 -53
- package/dist/field/features/upload/plugin/index.js.map +0 -1
- package/dist/field/features/upload/validate.d.ts +0 -5
- package/dist/field/features/upload/validate.d.ts.map +0 -1
- package/dist/field/features/upload/validate.js.map +0 -1
- package/dist/field/lexical/EditorPlugin.d.ts +0 -8
- package/dist/field/lexical/EditorPlugin.d.ts.map +0 -1
- package/dist/field/lexical/EditorPlugin.js +0 -15
- package/dist/field/lexical/EditorPlugin.js.map +0 -1
- package/dist/field/lexical/LexicalEditor.d.ts.map +0 -1
- package/dist/field/lexical/LexicalEditor.js +0 -192
- package/dist/field/lexical/LexicalEditor.js.map +0 -1
- package/dist/field/lexical/LexicalProvider.d.ts +0 -18
- package/dist/field/lexical/LexicalProvider.d.ts.map +0 -1
- package/dist/field/lexical/LexicalProvider.js.map +0 -1
- package/dist/field/lexical/config/client/EditorConfigProvider.d.ts +0 -35
- package/dist/field/lexical/config/client/EditorConfigProvider.d.ts.map +0 -1
- package/dist/field/lexical/config/client/EditorConfigProvider.js.map +0 -1
- 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 -7
- package/dist/field/lexical/config/client/sanitize.d.ts.map +0 -1
- package/dist/field/lexical/config/client/sanitize.js +0 -176
- package/dist/field/lexical/config/client/sanitize.js.map +0 -1
- package/dist/field/lexical/config/server/default.d.ts +0 -7
- package/dist/field/lexical/config/server/default.d.ts.map +0 -1
- package/dist/field/lexical/config/server/default.js.map +0 -1
- package/dist/field/lexical/config/server/loader.d.ts +0 -10
- package/dist/field/lexical/config/server/loader.d.ts.map +0 -1
- package/dist/field/lexical/config/server/loader.js +0 -120
- package/dist/field/lexical/config/server/loader.js.map +0 -1
- package/dist/field/lexical/config/server/sanitize.d.ts +0 -6
- package/dist/field/lexical/config/server/sanitize.d.ts.map +0 -1
- package/dist/field/lexical/config/server/sanitize.js.map +0 -1
- package/dist/field/lexical/config/types.d.ts +0 -23
- 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.map +0 -1
- package/dist/field/lexical/nodes/index.js.map +0 -1
- package/dist/field/lexical/plugins/MarkdownShortcut/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/MarkdownShortcut/index.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts +0 -31
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +0 -3
- package/dist/field/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/index.d.ts.map +0 -1
- package/dist/field/lexical/plugins/SlashMenu/index.js +0 -187
- package/dist/field/lexical/plugins/SlashMenu/index.js.map +0 -1
- 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.map +0 -1
- package/dist/field/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +0 -1
- 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/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.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts +0 -10
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.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/getNodeCloseToPoint.d.ts.map +0 -1
- package/dist/field/lexical/plugins/handles/utils/getNodeCloseToPoint.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.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.map +0 -1
- package/dist/field/lexical/theme/EditorTheme.d.ts.map +0 -1
- package/dist/field/lexical/theme/EditorTheme.js.map +0 -1
- package/dist/field/lexical/ui/ContentEditable.d.ts.map +0 -1
- package/dist/field/lexical/ui/ContentEditable.js.map +0 -1
- package/dist/field/lexical/ui/icons/AI/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/AI/index.js.map +0 -1
- package/dist/field/lexical/ui/icons/Add/index.d.ts.map +0 -1
- package/dist/field/lexical/ui/icons/Add/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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- package/dist/forEachNodeRecursively.d.ts.map +0 -1
- package/dist/forEachNodeRecursively.js.map +0 -1
- package/dist/generateComponentMap.d.ts +0 -6
- package/dist/generateComponentMap.d.ts.map +0 -1
- package/dist/generateComponentMap.js +0 -77
- 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 -22
- package/dist/generateSchemaMap.js.map +0 -1
- package/dist/recurseNodeTree.d.ts.map +0 -1
- package/dist/recurseNodeTree.js.map +0 -1
- package/dist/useLexicalFeature.d.ts +0 -3
- package/dist/useLexicalFeature.d.ts.map +0 -1
- package/dist/useLexicalFeature.js +0 -12
- package/dist/useLexicalFeature.js.map +0 -1
- /package/dist/{field/features → features}/align/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/align/i18n.js +0 -0
- /package/dist/{field/features → features}/align/toolbarAlignGroup.d.ts +0 -0
- /package/dist/{field/features → features}/align/toolbarAlignGroup.js +0 -0
- /package/dist/{field/features → features}/blockquote/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/blockquote/i18n.js +0 -0
- /package/dist/{field/features → features}/blockquote/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/blockquote/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/blocks/component/FormSavePlugin.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/component/index.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/component/removeEmptyArrayValues.js +0 -0
- /package/dist/{field/features → features}/blocks/drawer/index.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/i18n.js +0 -0
- /package/dist/{field/features → features}/blocks/nodes/BlocksNode.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/nodes/BlocksNode.js +0 -0
- /package/dist/{field/features → features}/blocks/plugin/commands.d.ts +0 -0
- /package/dist/{field/features → features}/blocks/plugin/commands.js +0 -0
- /package/dist/{field/features → features}/blocks/plugin/index.js +0 -0
- /package/dist/{field/features → features}/blocks/validate.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}/converters/html/field/index.d.ts +0 -0
- /package/dist/{field/features → features}/createFeaturePropComponent.d.ts +0 -0
- /package/dist/{field/features → features}/debug/testRecorder/plugin/index.js +0 -0
- /package/dist/{field/features → features}/debug/treeView/plugin/index.js +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 → features}/format/inlineCode/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features → 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/shared/toolbarFormatGroup.d.ts +0 -0
- /package/dist/{field/features → features}/format/shared/toolbarFormatGroup.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/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/heading/i18n.js +0 -0
- /package/dist/{field/features → features}/heading/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/heading/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/horizontalRule/component/index.d.ts +0 -0
- /package/dist/{field/features → features}/horizontalRule/component/index.js +0 -0
- /package/dist/{field/features → features}/horizontalRule/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/horizontalRule/i18n.js +0 -0
- /package/dist/{field/features → features}/horizontalRule/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/horizontalRule/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/horizontalRule/nodes/HorizontalRuleNode.d.ts +0 -0
- /package/dist/{field/features → features}/horizontalRule/nodes/HorizontalRuleNode.js +0 -0
- /package/dist/{field/features → features}/horizontalRule/plugin/index.js +0 -0
- /package/dist/{field/features → features}/indent/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/indent/i18n.js +0 -0
- /package/dist/{field/features → features}/indent/toolbarIndentGroup.d.ts +0 -0
- /package/dist/{field/features → features}/indent/toolbarIndentGroup.js +0 -0
- /package/dist/{field/features → features}/link/drawer/baseFields.js +0 -0
- /package/dist/{field/features → features}/link/drawer/index.d.ts +0 -0
- /package/dist/{field/features → features}/link/drawer/types.d.ts +0 -0
- /package/dist/{field/features → features}/link/drawer/types.js +0 -0
- /package/dist/{field/features → features}/link/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/link/i18n.js +0 -0
- /package/dist/{field/features → features}/link/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/link/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/link/nodes/AutoLinkNode.d.ts +0 -0
- /package/dist/{field/features → features}/link/nodes/AutoLinkNode.js +0 -0
- /package/dist/{field/features → features}/link/nodes/LinkNode.d.ts +0 -0
- /package/dist/{field/features → features}/link/nodes/LinkNode.js +0 -0
- /package/dist/{field/features → features}/link/nodes/types.d.ts +0 -0
- /package/dist/{field/features → features}/link/nodes/types.js +0 -0
- /package/dist/{field/features → features}/link/plugins/autoLink/index.js +0 -0
- /package/dist/{field/features → features}/link/plugins/clickableLink/index.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/commands.js +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/LinkEditor/index.d.ts +0 -0
- /package/dist/{field/features → features}/link/plugins/floatingLinkEditor/index.js +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}/link/plugins/floatingLinkEditor/utilities.js +0 -0
- /package/dist/{field/features → features}/link/plugins/link/index.js +0 -0
- /package/dist/{field/features → features}/link/validate.js +0 -0
- /package/dist/{field/features → features}/lists/checklist/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/lists/checklist/i18n.js +0 -0
- /package/dist/{field/features → features}/lists/checklist/markdownTransformers.d.ts +0 -0
- /package/dist/{field/features → features}/lists/checklist/markdownTransformers.js +0 -0
- /package/dist/{field/features → features}/lists/checklist/plugin/index.js +0 -0
- /package/dist/{field/features → features}/lists/htmlConverter.d.ts +0 -0
- /package/dist/{field/features → features}/lists/orderedList/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/lists/orderedList/i18n.js +0 -0
- /package/dist/{field/features → features}/lists/orderedList/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/lists/orderedList/markdownTransformer.js +0 -0
- /package/dist/{field/features → features}/lists/plugin/index.js +0 -0
- /package/dist/{field/features → features}/lists/shared/markdown.js +0 -0
- /package/dist/{field/features → features}/lists/shared/slashMenuListGroup.d.ts +0 -0
- /package/dist/{field/features → features}/lists/shared/slashMenuListGroup.js +0 -0
- /package/dist/{field/features → features}/lists/unorderedList/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/lists/unorderedList/i18n.js +0 -0
- /package/dist/{field/features → features}/lists/unorderedList/markdownTransformer.d.ts +0 -0
- /package/dist/{field/features → features}/lists/unorderedList/markdownTransformer.js +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/converter.js +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 → 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/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/converter/converters/blockquote/client.js +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/converter.js +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/converter.js +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 → features}/migrations/slateToLexical/converter/index.js +0 -0
- /package/dist/{field/features → 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}/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/index.d.ts +0 -0
- /package/dist/{field/features → features}/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +0 -0
- /package/dist/{field/features → features}/paragraph/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/paragraph/i18n.js +0 -0
- /package/dist/{field/features → features}/relationship/drawer/commands.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/drawer/commands.js +0 -0
- /package/dist/{field/features → features}/relationship/drawer/index.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/i18n.js +0 -0
- /package/dist/{field/features → features}/relationship/nodes/RelationshipNode.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/nodes/RelationshipNode.js +0 -0
- /package/dist/{field/features → features}/relationship/nodes/components/RelationshipComponent.d.ts +0 -0
- /package/dist/{field/features → features}/relationship/utils/EnabledRelationshipsCondition.d.ts +0 -0
- /package/dist/{field/features → features}/shared/slashMenu/basicGroup.d.ts +0 -0
- /package/dist/{field/features → features}/shared/slashMenu/basicGroup.js +0 -0
- /package/dist/{field/features → features}/shared/toolbar/addDropdownGroup.d.ts +0 -0
- /package/dist/{field/features → features}/shared/toolbar/addDropdownGroup.js +0 -0
- /package/dist/{field/features → features}/shared/toolbar/featureButtonsGroup.d.ts +0 -0
- /package/dist/{field/features → features}/shared/toolbar/featureButtonsGroup.js +0 -0
- /package/dist/{field/features → features}/shared/toolbar/textDropdownGroup.d.ts +0 -0
- /package/dist/{field/features → features}/shared/toolbar/textDropdownGroup.js +0 -0
- /package/dist/{field/features → features}/toolbars/inline/Toolbar/index.js +0 -0
- /package/dist/{field/features → features}/toolbars/shared/ToolbarButton/index.d.ts +0 -0
- /package/dist/{field/features → features}/toolbars/shared/ToolbarButton/index.js +0 -0
- /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/DropDown.d.ts +0 -0
- /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/DropDown.js +0 -0
- /package/dist/{field/features → features}/toolbars/shared/ToolbarDropdown/index.d.ts +0 -0
- /package/dist/{field/features → features}/toolbars/types.js +0 -0
- /package/dist/{field/features → features}/typeUtilities.js +0 -0
- /package/dist/{field/features → features}/upload/component/ExtraFieldsDrawer/index.d.ts +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/commands.js +0 -0
- /package/dist/{field/features → features}/upload/drawer/index.d.ts +0 -0
- /package/dist/{field/features → features}/upload/i18n.d.ts +0 -0
- /package/dist/{field/features → features}/upload/i18n.js +0 -0
- /package/dist/{field/features → features}/upload/nodes/UploadNode.d.ts +0 -0
- /package/dist/{field/features → features}/upload/nodes/UploadNode.js +0 -0
- /package/dist/{field/features → features}/upload/validate.js +0 -0
- /package/dist/{field/lexical → lexical}/LexicalEditor.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/LexicalProvider.js +0 -0
- /package/dist/{field/lexical → lexical}/config/client/EditorConfigProvider.js +0 -0
- /package/dist/{field/lexical → lexical}/config/client/default.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/config/client/default.js +0 -0
- /package/dist/{field/lexical → lexical}/config/server/default.js +0 -0
- /package/dist/{field/lexical → lexical}/config/server/sanitize.js +0 -0
- /package/dist/{field/features → lexical/config}/types.js +0 -0
- /package/dist/{field/lexical → lexical}/nodes/index.d.ts +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 → lexical}/plugins/MarkdownShortcut/index.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +0 -0
- /package/dist/{field/lexical/config → lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin}/types.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/SlashMenu/index.d.ts +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/AddBlockHandlePlugin/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/AddBlockHandlePlugin/index.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.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/index.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/DraggableBlockPlugin/setTargetLine.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/calculateDistanceFromScrollerElem.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/getNodeCloseToPoint.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getNodeCloseToPoint.js +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/plugins/handles/utils/getTopLevelNodeKeys.js +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}/plugins/handles/utils/setHandlePosition.js +0 -0
- /package/dist/{field/lexical → lexical}/theme/EditorTheme.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/theme/EditorTheme.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/ContentEditable.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/ContentEditable.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AI/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AI/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Add/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Add/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Add/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Add/light.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignCenter/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignJustify/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignLeft/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/AlignRight/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Block/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Block/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Blockquote/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Bold/index.js +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/Checklist/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Code/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Code/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/CodeBlock/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/index.svg +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/DraggableBlock/light.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/H1/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H2/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H2/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H3/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H3/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H4/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H4/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H5/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H5/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H6/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/H6/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/HorizontalRule/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentDecrease/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/IndentIncrease/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Italic/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Link/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Link/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/OrderedList/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Relationship/index.js +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/Strikethrough/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Subscript/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Superscript/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Text/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Text/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Underline/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/UnorderedList/index.js +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/ui/icons/Upload/index.js +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/cloneDeep.d.ts +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/getSelectedNode.js +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/nodeFormat.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/nodeFormat.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/setFloatingElemPosition.d.ts +0 -0
- /package/dist/{field/lexical → lexical}/utils/setFloatingElemPosition.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/dist/{field/lexical → lexical}/utils/url.js +0 -0
- /package/dist/{forEachNodeRecursively.d.ts → utilities/forEachNodeRecursively.d.ts} +0 -0
- /package/dist/{forEachNodeRecursively.js → utilities/forEachNodeRecursively.js} +0 -0
- /package/dist/{recurseNodeTree.d.ts → utilities/recurseNodeTree.d.ts} +0 -0
- /package/dist/{recurseNodeTree.js → utilities/recurseNodeTree.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use client";import{a as me,b as Re,c as Ie,d as Pe}from"./chunk-3PZ2ZFQG.js";import{a as fe,b as Me,c as Ae,d as ro}from"./chunk-FSTRW2TI.js";import{a as De,b as Ce,c as Oe,d as He,e as no}from"./chunk-M6MN4CA5.js";import{a as oo,b as pi,c as mi,d as fi,e as Ci}from"./chunk-35NZOHAF.js";import{a as ui,b as S}from"./chunk-Y5455JF3.js";import{createHeadlessEditor as gi}from"@lexical/headless";import{useClientFunctions as hi,useTableCell as xi}from"@payloadcms/ui/client";import{$getRoot as Ti}from"lexical";import dt,{useEffect as so,useState as ut}from"react";var io={block:"LexicalEditorTheme__block",blockCursor:"LexicalEditorTheme__blockCursor",characterLimit:"LexicalEditorTheme__characterLimit",code:"LexicalEditorTheme__code",codeHighlight:{atrule:"LexicalEditorTheme__tokenAttr",attr:"LexicalEditorTheme__tokenAttr",boolean:"LexicalEditorTheme__tokenProperty",builtin:"LexicalEditorTheme__tokenSelector",cdata:"LexicalEditorTheme__tokenComment",char:"LexicalEditorTheme__tokenSelector",class:"LexicalEditorTheme__tokenFunction","class-name":"LexicalEditorTheme__tokenFunction",comment:"LexicalEditorTheme__tokenComment",constant:"LexicalEditorTheme__tokenProperty",deleted:"LexicalEditorTheme__tokenProperty",doctype:"LexicalEditorTheme__tokenComment",entity:"LexicalEditorTheme__tokenOperator",function:"LexicalEditorTheme__tokenFunction",important:"LexicalEditorTheme__tokenVariable",inserted:"LexicalEditorTheme__tokenSelector",keyword:"LexicalEditorTheme__tokenAttr",namespace:"LexicalEditorTheme__tokenVariable",number:"LexicalEditorTheme__tokenProperty",operator:"LexicalEditorTheme__tokenOperator",prolog:"LexicalEditorTheme__tokenComment",property:"LexicalEditorTheme__tokenProperty",punctuation:"LexicalEditorTheme__tokenPunctuation",regex:"LexicalEditorTheme__tokenVariable",selector:"LexicalEditorTheme__tokenSelector",string:"LexicalEditorTheme__tokenSelector",symbol:"LexicalEditorTheme__tokenProperty",tag:"LexicalEditorTheme__tokenProperty",url:"LexicalEditorTheme__tokenOperator",variable:"LexicalEditorTheme__tokenVariable"},embedBlock:{base:"LexicalEditorTheme__embedBlock",focus:"LexicalEditorTheme__embedBlockFocus"},hashtag:"LexicalEditorTheme__hashtag",heading:{h1:"LexicalEditorTheme__h1",h2:"LexicalEditorTheme__h2",h3:"LexicalEditorTheme__h3",h4:"LexicalEditorTheme__h4",h5:"LexicalEditorTheme__h5",h6:"LexicalEditorTheme__h6"},hr:"LexicalEditorTheme__hr",indent:"LexicalEditorTheme__indent",inlineImage:"LexicalEditor__inline-image",link:"LexicalEditorTheme__link",list:{checklist:"LexicalEditorTheme__checklist",listitem:"LexicalEditorTheme__listItem",listitemChecked:"LexicalEditorTheme__listItemChecked",listitemUnchecked:"LexicalEditorTheme__listItemUnchecked",nested:{listitem:"LexicalEditorTheme__nestedListItem"},olDepth:["LexicalEditorTheme__ol1","LexicalEditorTheme__ol2","LexicalEditorTheme__ol3","LexicalEditorTheme__ol4","LexicalEditorTheme__ol5"],ul:"LexicalEditorTheme__ul"},ltr:"LexicalEditorTheme__ltr",mark:"LexicalEditorTheme__mark",markOverlap:"LexicalEditorTheme__markOverlap",paragraph:"LexicalEditorTheme__paragraph",quote:"LexicalEditorTheme__quote",relationship:"LexicalEditorTheme__relationship",rtl:"LexicalEditorTheme__rtl",table:"LexicalEditorTheme__table",tableAddColumns:"LexicalEditorTheme__tableAddColumns",tableAddRows:"LexicalEditorTheme__tableAddRows",tableCell:"LexicalEditorTheme__tableCell",tableCellActionButton:"LexicalEditorTheme__tableCellActionButton",tableCellActionButtonContainer:"LexicalEditorTheme__tableCellActionButtonContainer",tableCellEditing:"LexicalEditorTheme__tableCellEditing",tableCellHeader:"LexicalEditorTheme__tableCellHeader",tableCellPrimarySelected:"LexicalEditorTheme__tableCellPrimarySelected",tableCellResizer:"LexicalEditorTheme__tableCellResizer",tableCellSelected:"LexicalEditorTheme__tableCellSelected",tableCellSortedIndicator:"LexicalEditorTheme__tableCellSortedIndicator",tableResizeRuler:"LexicalEditorTheme__tableCellResizeRuler",tableSelected:"LexicalEditorTheme__tableSelected",text:{bold:"LexicalEditorTheme__textBold",code:"LexicalEditorTheme__textCode",italic:"LexicalEditorTheme__textItalic",strikethrough:"LexicalEditorTheme__textStrikethrough",subscript:"LexicalEditorTheme__textSubscript",superscript:"LexicalEditorTheme__textSuperscript",underline:"LexicalEditorTheme__textUnderline",underlineStrikethrough:"LexicalEditorTheme__textUnderlineStrikethrough"},upload:"editor-upload"};var ge={namespace:"lexical",theme:io};function Be({clientFunctions:e,schemaPath:t,unSanitizedEditorConfig:o}){for(let l of o.features)if(!l?.clientFeatureProps?.featureKey||l?.clientFeatureProps?.order===void 0||l?.clientFeatureProps?.order===null)throw new Error("A Feature you have installed does not return the client props as clientFeatureProps. Please make sure to always return those props, even if they are null, as other important props like order and featureKey are later on injected.");o.features=o.features.sort((l,a)=>l.clientFeatureProps.order-a.clientFeatureProps.order);let r=new Map(o.features.map(l=>[l.clientFeatureProps.featureKey,l])),n=new Map,i=0;for(let l of o.features){let a={};Object.entries(e).forEach(([c,d])=>{if(c.startsWith(`lexicalFeature.${t}.${l.clientFeatureProps.featureKey}.components.`)){let p=c.split(`${t}.${l.clientFeatureProps.featureKey}.components.`)[1];a[p]=d}});let s=l.feature({clientFunctions:a,featureProviderMap:r,resolvedFeatures:n,unSanitizedEditorConfig:o});n.set(l.clientFeatureProps.featureKey,{...s,key:l.clientFeatureProps.featureKey,order:i}),i++}return n}var lo=e=>{let t={enabledFeatures:[],hooks:{load:[],save:[]},markdownTransformers:[],nodes:[],plugins:[],slashMenu:{dynamicGroups:[],groups:[]},toolbarFixed:{groups:[]},toolbarInline:{groups:[]}};if(!e?.size)return t;e.forEach(o=>{if(o.hooks&&(o.hooks?.load?.length&&(t.hooks.load=t.hooks.load.concat(o.hooks.load)),o.hooks?.save?.length&&(t.hooks.save=t.hooks.save.concat(o.hooks.save))),o.nodes?.length&&(t.nodes=t.nodes.concat(o.nodes)),o.plugins?.length&&o.plugins.forEach((r,n)=>{t.plugins.push({Component:r.Component,clientProps:o.clientFeatureProps,key:o.key+n,position:r.position})}),o.toolbarInline?.groups?.length)for(let r of o.toolbarInline.groups){let n=t.toolbarInline.groups.find(i=>i.key===r.key);n?t.toolbarInline.groups=t.toolbarInline.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.toolbarInline?.groups.push(n)}if(o.toolbarFixed?.groups?.length)for(let r of o.toolbarFixed.groups){let n=t.toolbarFixed.groups.find(i=>i.key===r.key);n?t.toolbarFixed.groups=t.toolbarFixed.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.toolbarFixed?.groups.push(n)}if(o.slashMenu?.groups){o.slashMenu.dynamicGroups?.length&&(t.slashMenu.dynamicGroups=t.slashMenu.dynamicGroups.concat(o.slashMenu.dynamicGroups));for(let r of o.slashMenu.groups){let n=t.slashMenu.groups.find(i=>i.key===r.key);n?t.slashMenu.groups=t.slashMenu.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.slashMenu.groups.push(n)}}o.markdownTransformers?.length&&(t.markdownTransformers=t.markdownTransformers.concat(o.markdownTransformers)),t.enabledFeatures.push(o.key)}),t.toolbarInline.groups.sort((o,r)=>o.order&&r.order?o.order-r.order:o.order?-1:r.order?1:0),t.toolbarFixed.groups.sort((o,r)=>o.order&&r.order?o.order-r.order:o.order?-1:r.order?1:0);for(let o of t.toolbarInline.groups)o.items.sort((r,n)=>r.order&&n.order?r.order-n.order:r.order?-1:n.order?1:0);for(let o of t.toolbarFixed.groups)o.items.sort((r,n)=>r.order&&n.order?r.order-n.order:r.order?-1:n.order?1:0);return t};function he(e,t,o){return{admin:o,features:lo(t),lexical:e,resolvedFeatureMap:t}}import{jsx as ao,jsxs as Li}from"react/jsx-runtime";var yi=e=>{let{admin:t,lexicalEditorConfig:o,richTextComponentMap:r}=e,[n,i]=dt.useState("Loading..."),{cellData:l,cellProps:{schemaPath:a}}=xi(),s=hi(),[c,d]=ut(!1),[p,u]=ut([]),[m,f]=ut(null),C=r.get("features").sort((x,N)=>x.order-N.order),y=0;for(let x of C){let N=Array.from(r.keys()).filter(v=>v.startsWith(`feature.${x.key}.components.`));y+=1,y+=N.length}return so(()=>{if(!c){let x=[],N=0;if(Object.entries(s).forEach(([v,g])=>{v.startsWith(`lexicalFeature.${a}.`)&&(v.includes(".components.")||x.push(g),N++)}),N===y){u(x),d(!0);let v=Be({clientFunctions:s,schemaPath:a,unSanitizedEditorConfig:{features:x,lexical:o}});f(he(o||ge,v,t))}}},[t,C,c,s,a,C.length,p,m,o,r,y]),so(()=>{if(!c)return;let x=l;if(x==null||!c||!m){i("");return}if(m?.features?.hooks?.load?.length&&m.features.hooks.load.forEach(g=>{x=g({incomingEditorState:x})}),!x||typeof x!="object"){i("");return}if(Array.isArray(x)&&!("root"in x)){i("");return}if("jsonContent"in x){i("");return}let N=gi({namespace:m.lexical.namespace,nodes:oo({editorConfig:m}),theme:m.lexical.theme});N.setEditorState(N.parseEditorState(x));let v=N.getEditorState().read(()=>Ti().getTextContent())||"";i(v)},[l,o,c,m]),c?ao("span",{children:n}):ao(dt.Fragment,{children:Array.isArray(C)&&C.map(x=>{let v=Array.from(r.keys()).filter(g=>g.startsWith(`feature.${x.key}.components.`)).map(g=>r.get(g));return Li(dt.Fragment,{children:[v?.length?v.map(g=>g):null,x.ClientComponent]},x.key)})})};import{$isElementNode as W,$isRangeSelection as $e,FORMAT_ELEMENT_COMMAND as Ue}from"lexical";import{jsx as pt,jsxs as bi}from"react/jsx-runtime";var co=()=>bi("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[pt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),pt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),pt("path",{d:"M5 15H15",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as mt,jsxs as Ei}from"react/jsx-runtime";var uo=()=>Ei("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[mt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),mt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),mt("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as ft,jsxs as ki}from"react/jsx-runtime";var Ge=()=>ki("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ft("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),ft("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),ft("path",{d:"M2.5 15H12.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as Ct,jsxs as Ni}from"react/jsx-runtime";var po=()=>Ni("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ct("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ct("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ct("path",{d:"M7.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{useAddClientFunction as vi,useFieldProps as Fi,useTableCell as _i}from"@payloadcms/ui/client";var mo=(e,t)=>{let{schemaPath:o}=Fi(),i=_i()?.cellProps?.schemaPath||o;vi(`lexicalFeature.${i}.${e}`,t)};var h=e=>t=>(mo(t.featureKey,e(t)),null);var fo=e=>({type:"dropdown",ChildComponent:Ge,items:e,key:"align",order:30});var Co=[fo([{ChildComponent:Ge,isActive:({selection:e})=>{if(!$e(e))return!1;for(let t of e.getNodes()){if(W(t)&&t.getFormatType()==="left")continue;let o=t.getParent();if(!(W(o)&&o.getFormatType()==="left"))return!1}return!0},key:"alignLeft",label:({i18n:e})=>e.t("lexical:align:alignLeftLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ue,"left")},order:1},{ChildComponent:co,isActive:({selection:e})=>{if(!$e(e))return!1;for(let t of e.getNodes()){if(W(t)&&t.getFormatType()==="center")continue;let o=t.getParent();if(!(W(o)&&o.getFormatType()==="center"))return!1}return!0},key:"alignCenter",label:({i18n:e})=>e.t("lexical:align:alignCenterLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ue,"center")},order:2},{ChildComponent:po,isActive:({selection:e})=>{if(!$e(e))return!1;for(let t of e.getNodes()){if(W(t)&&t.getFormatType()==="right")continue;let o=t.getParent();if(!(W(o)&&o.getFormatType()==="right"))return!1}return!0},key:"alignRight",label:({i18n:e})=>e.t("lexical:align:alignRightLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ue,"right")},order:3},{ChildComponent:uo,isActive:({selection:e})=>{if(!$e(e))return!1;for(let t of e.getNodes()){if(W(t)&&t.getFormatType()==="justify")continue;let o=t.getParent();if(!(W(o)&&o.getFormatType()==="justify"))return!1}return!0},key:"alignJustify",label:({i18n:e})=>e.t("lexical:align:alignJustifyLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ue,"justify")},order:4}])],wi=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,toolbarFixed:{groups:Co},toolbarInline:{groups:Co}})}),Si=h(wi);import{$createQuoteNode as bo,$isQuoteNode as yo,QuoteNode as Mi}from"@lexical/rich-text";import{$setBlocksType as Eo}from"@lexical/selection";import{$getSelection as ko,$isRangeSelection as Ai}from"lexical";import{jsx as go}from"react/jsx-runtime";var gt=()=>go("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:go("path",{d:"M13.5353 10.5725C13.5353 9.47709 11.0456 9.99991 11.0456 7.85883C11.0456 6.46464 12.1162 5.61816 13.361 5.61816C14.805 5.61816 16 6.86298 16 8.92937C16 11.2945 14.4564 13.7841 11.1203 14.3816L10.8216 13.1368C12.888 12.4895 13.5353 11.4937 13.5353 10.5725ZM6.71369 10.5725C6.71369 9.47709 4.22407 9.99991 4.22407 7.85883C4.22407 6.46464 5.29461 5.61816 6.53942 5.61816C7.9834 5.61816 9.17842 6.86298 9.17842 8.92937C9.17842 11.2945 7.63485 13.7841 4.29876 14.3816L4 13.1368C6.06639 12.4895 6.71369 11.4937 6.71369 10.5725Z",fill:"currentColor"})});function A(e){return{items:e,key:"basic",label:({i18n:t})=>t.t("lexical:general:slashMenuBasicGroupLabel")}}import{jsx as ho}from"react/jsx-runtime";var xe=()=>ho("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:ho("path",{d:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})});var M=e=>({type:"dropdown",ChildComponent:xe,items:e,key:"text",order:25});import{$createQuoteNode as Ri,$isQuoteNode as xo,QuoteNode as Ii}from"@lexical/rich-text";import{$createLineBreakNode as Pi}from"lexical";var To={type:"element",dependencies:[Ii],export:(e,t)=>{if(!xo(e))return null;let o=t(e).split(`
|
|
1
|
+
"use client";import{a as fe,b as De,c as Oe,d as He}from"./chunk-MLIITFAS.js";import{a as ge,b as Ce,c as he,d as pt}from"./chunk-OSR74ZNW.js";import{a as Be,b as xe,c as Te,d as Le,e as ut}from"./chunk-TZLHAUCW.js";import{a as dt,c as mi,e as fi,f as gi,g as Ci,h as hi}from"./chunk-JIP5PWU3.js";import{a as ui,b as v}from"./chunk-3K3B6PJM.js";import{createHeadlessEditor as xi}from"@lexical/headless";import{useClientFunctions as Ti,useTableCell as Li}from"@payloadcms/ui";import{$getRoot as yi}from"lexical";import mt,{useEffect as ao,useState as ft}from"react";var lo={block:"LexicalEditorTheme__block",blockCursor:"LexicalEditorTheme__blockCursor",characterLimit:"LexicalEditorTheme__characterLimit",code:"LexicalEditorTheme__code",codeHighlight:{atrule:"LexicalEditorTheme__tokenAttr",attr:"LexicalEditorTheme__tokenAttr",boolean:"LexicalEditorTheme__tokenProperty",builtin:"LexicalEditorTheme__tokenSelector",cdata:"LexicalEditorTheme__tokenComment",char:"LexicalEditorTheme__tokenSelector",class:"LexicalEditorTheme__tokenFunction","class-name":"LexicalEditorTheme__tokenFunction",comment:"LexicalEditorTheme__tokenComment",constant:"LexicalEditorTheme__tokenProperty",deleted:"LexicalEditorTheme__tokenProperty",doctype:"LexicalEditorTheme__tokenComment",entity:"LexicalEditorTheme__tokenOperator",function:"LexicalEditorTheme__tokenFunction",important:"LexicalEditorTheme__tokenVariable",inserted:"LexicalEditorTheme__tokenSelector",keyword:"LexicalEditorTheme__tokenAttr",namespace:"LexicalEditorTheme__tokenVariable",number:"LexicalEditorTheme__tokenProperty",operator:"LexicalEditorTheme__tokenOperator",prolog:"LexicalEditorTheme__tokenComment",property:"LexicalEditorTheme__tokenProperty",punctuation:"LexicalEditorTheme__tokenPunctuation",regex:"LexicalEditorTheme__tokenVariable",selector:"LexicalEditorTheme__tokenSelector",string:"LexicalEditorTheme__tokenSelector",symbol:"LexicalEditorTheme__tokenProperty",tag:"LexicalEditorTheme__tokenProperty",url:"LexicalEditorTheme__tokenOperator",variable:"LexicalEditorTheme__tokenVariable"},embedBlock:{base:"LexicalEditorTheme__embedBlock",focus:"LexicalEditorTheme__embedBlockFocus"},hashtag:"LexicalEditorTheme__hashtag",heading:{h1:"LexicalEditorTheme__h1",h2:"LexicalEditorTheme__h2",h3:"LexicalEditorTheme__h3",h4:"LexicalEditorTheme__h4",h5:"LexicalEditorTheme__h5",h6:"LexicalEditorTheme__h6"},hr:"LexicalEditorTheme__hr",indent:"LexicalEditorTheme__indent",inlineImage:"LexicalEditor__inline-image",link:"LexicalEditorTheme__link",list:{checklist:"LexicalEditorTheme__checklist",listitem:"LexicalEditorTheme__listItem",listitemChecked:"LexicalEditorTheme__listItemChecked",listitemUnchecked:"LexicalEditorTheme__listItemUnchecked",nested:{listitem:"LexicalEditorTheme__nestedListItem"},olDepth:["LexicalEditorTheme__ol1","LexicalEditorTheme__ol2","LexicalEditorTheme__ol3","LexicalEditorTheme__ol4","LexicalEditorTheme__ol5"],ul:"LexicalEditorTheme__ul"},ltr:"LexicalEditorTheme__ltr",mark:"LexicalEditorTheme__mark",markOverlap:"LexicalEditorTheme__markOverlap",paragraph:"LexicalEditorTheme__paragraph",quote:"LexicalEditorTheme__quote",relationship:"LexicalEditorTheme__relationship",rtl:"LexicalEditorTheme__rtl",table:"LexicalEditorTheme__table",tableAddColumns:"LexicalEditorTheme__tableAddColumns",tableAddRows:"LexicalEditorTheme__tableAddRows",tableCell:"LexicalEditorTheme__tableCell",tableCellActionButton:"LexicalEditorTheme__tableCellActionButton",tableCellActionButtonContainer:"LexicalEditorTheme__tableCellActionButtonContainer",tableCellEditing:"LexicalEditorTheme__tableCellEditing",tableCellHeader:"LexicalEditorTheme__tableCellHeader",tableCellPrimarySelected:"LexicalEditorTheme__tableCellPrimarySelected",tableCellResizer:"LexicalEditorTheme__tableCellResizer",tableCellSelected:"LexicalEditorTheme__tableCellSelected",tableCellSortedIndicator:"LexicalEditorTheme__tableCellSortedIndicator",tableResizeRuler:"LexicalEditorTheme__tableCellResizeRuler",tableSelected:"LexicalEditorTheme__tableSelected",text:{bold:"LexicalEditorTheme__textBold",code:"LexicalEditorTheme__textCode",italic:"LexicalEditorTheme__textItalic",strikethrough:"LexicalEditorTheme__textStrikethrough",subscript:"LexicalEditorTheme__textSubscript",superscript:"LexicalEditorTheme__textSuperscript",underline:"LexicalEditorTheme__textUnderline",underlineStrikethrough:"LexicalEditorTheme__textUnderlineStrikethrough"},upload:"editor-upload"};var ye={namespace:"lexical",theme:lo};function Ge({clientFunctions:e,schemaPath:t,unSanitizedEditorConfig:o}){for(let l of o.features)if(!l?.clientFeatureProps?.featureKey||l?.clientFeatureProps?.order===void 0||l?.clientFeatureProps?.order===null)throw new Error("A Feature you have installed does not return the client props as clientFeatureProps. Please make sure to always return those props, even if they are null, as other important props like order and featureKey are later on injected.");o.features=o.features.sort((l,a)=>l.clientFeatureProps.order-a.clientFeatureProps.order);let r=new Map(o.features.map(l=>[l.clientFeatureProps.featureKey,l])),n=new Map,i=0;for(let l of o.features){let a={};Object.entries(e).forEach(([c,d])=>{if(c.startsWith(`lexicalFeature.${t}.${l.clientFeatureProps.featureKey}.components.`)){let u=c.split(`${t}.${l.clientFeatureProps.featureKey}.components.`)[1];a[u]=d}});let s=typeof l.feature=="function"?l.feature({clientFunctions:a,featureProviderMap:r,resolvedFeatures:n,unSanitizedEditorConfig:o}):l.feature;n.set(l.clientFeatureProps.featureKey,{...s,key:l.clientFeatureProps.featureKey,order:i}),i++}return n}var so=e=>{let t={enabledFeatures:[],hooks:{load:[],save:[]},markdownTransformers:[],nodes:[],plugins:[],slashMenu:{dynamicGroups:[],groups:[]},toolbarFixed:{groups:[]},toolbarInline:{groups:[]}};if(!e?.size)return t;e.forEach(o=>{if(o.hooks&&(o.hooks?.load?.length&&(t.hooks.load=t.hooks.load.concat(o.hooks.load)),o.hooks?.save?.length&&(t.hooks.save=t.hooks.save.concat(o.hooks.save))),o.nodes?.length&&(t.nodes=t.nodes.concat(o.nodes)),o.plugins?.length&&o.plugins.forEach((r,n)=>{t.plugins.push({Component:r.Component,clientProps:o.sanitizedClientFeatureProps,key:o.key+n,position:r.position})}),o.toolbarInline?.groups?.length)for(let r of o.toolbarInline.groups){let n=t.toolbarInline.groups.find(i=>i.key===r.key);n?t.toolbarInline.groups=t.toolbarInline.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.toolbarInline?.groups.push(n)}if(o.toolbarFixed?.groups?.length)for(let r of o.toolbarFixed.groups){let n=t.toolbarFixed.groups.find(i=>i.key===r.key);n?t.toolbarFixed.groups=t.toolbarFixed.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.toolbarFixed?.groups.push(n)}if(o.slashMenu?.groups){o.slashMenu.dynamicGroups?.length&&(t.slashMenu.dynamicGroups=t.slashMenu.dynamicGroups.concat(o.slashMenu.dynamicGroups));for(let r of o.slashMenu.groups){let n=t.slashMenu.groups.find(i=>i.key===r.key);n?t.slashMenu.groups=t.slashMenu.groups.filter(i=>i.key!==r.key):n={...r,items:[]},r?.items?.length&&(n.items=n.items.concat(r.items)),t.slashMenu.groups.push(n)}}o.markdownTransformers?.length&&(t.markdownTransformers=t.markdownTransformers.concat(o.markdownTransformers)),t.enabledFeatures.push(o.key)}),t.toolbarInline.groups.sort((o,r)=>o.order&&r.order?o.order-r.order:o.order?-1:r.order?1:0),t.toolbarFixed.groups.sort((o,r)=>o.order&&r.order?o.order-r.order:o.order?-1:r.order?1:0);for(let o of t.toolbarInline.groups)o.items.sort((r,n)=>r.order&&n.order?r.order-n.order:r.order?-1:n.order?1:0);for(let o of t.toolbarFixed.groups)o.items.sort((r,n)=>r.order&&n.order?r.order-n.order:r.order?-1:n.order?1:0);return t};function Ee(e,t,o){return{admin:o,features:so(t),lexical:e,resolvedFeatureMap:t}}import{jsx as co,jsxs as bi}from"react/jsx-runtime";var Ei=e=>{let{admin:t,lexicalEditorConfig:o,richTextComponentMap:r}=e,[n,i]=mt.useState("Loading..."),{cellData:l,cellProps:{schemaPath:a}}=Li(),s=Ti(),[c,d]=ft(!1),[u,p]=ft([]),[m,f]=ft(null),g=r.get("features").sort((x,N)=>x.order-N.order),L=0;for(let x of g){let N=Array.from(r.keys()).filter(_=>_.startsWith(`feature.${x.key}.components.`));L+=1,L+=N.length}return ao(()=>{if(!c){let x=[],N=0;if(Object.entries(s).forEach(([_,C])=>{_.startsWith(`lexicalFeature.${a}.`)&&(_.includes(".components.")||x.push(C),N++)}),N===L){p(x),d(!0);let _=Ge({clientFunctions:s,schemaPath:a,unSanitizedEditorConfig:{features:x,lexical:o}});f(Ee(o||ye,_,t))}}},[t,g,c,s,a,g.length,u,m,o,r,L]),ao(()=>{if(!c)return;let x=l;if(x==null||!c||!m){i("");return}if(m?.features?.hooks?.load?.length&&m.features.hooks.load.forEach(C=>{x=C({incomingEditorState:x})}),!x||typeof x!="object"){i("");return}if(Array.isArray(x)&&!("root"in x)){i("");return}if("jsonContent"in x){i("");return}let N=xi({namespace:m.lexical.namespace,nodes:dt({editorConfig:m}),theme:m.lexical.theme});N.setEditorState(N.parseEditorState(x));let _=N.getEditorState().read(()=>yi().getTextContent())||"";i(_)},[l,o,c,m]),c?co("span",{children:n}):co(mt.Fragment,{children:Array.isArray(g)&&g.map(x=>{let _=Array.from(r.keys()).filter(C=>C.startsWith(`feature.${x.key}.components.`)).map(C=>r.get(C));return bi(mt.Fragment,{children:[_?.length?_.map(C=>C):null,x.ClientFeature]},x.key)})})};import{$isElementNode as j,$isRangeSelection as Ue,FORMAT_ELEMENT_COMMAND as We}from"lexical";import{jsx as gt,jsxs as ki}from"react/jsx-runtime";var po=()=>ki("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[gt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),gt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),gt("path",{d:"M5 15H15",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as Ct,jsxs as Ni}from"react/jsx-runtime";var uo=()=>Ni("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ct("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ct("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ct("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as ht,jsxs as _i}from"react/jsx-runtime";var $e=()=>_i("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ht("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),ht("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),ht("path",{d:"M2.5 15H12.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{jsx as xt,jsxs as wi}from"react/jsx-runtime";var mo=()=>wi("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[xt("path",{d:"M2.5 5H17.5",stroke:"currentColor",strokeWidth:"1.5"}),xt("path",{d:"M2.5 10H17.5",stroke:"currentColor",strokeWidth:"1.5"}),xt("path",{d:"M7.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{useAddClientFunction as Ri,useFieldProps as Si,useTableCell as vi}from"@payloadcms/ui";var fo=(e,t)=>{let{schemaPath:o}=Si(),i=vi()?.cellProps?.schemaPath||o;Ri(`lexicalFeature.${i}.${e}`,t)};var Tt=e=>t=>(fo(t.featureKey,e(t)),null);var h=e=>Tt(o=>{let r={clientFeatureProps:o};return typeof e=="function"?r.feature=({clientFunctions:n,featureProviderMap:i,resolvedFeatures:l,unSanitizedEditorConfig:a})=>{let s=e({clientFunctions:n,featureProviderMap:i,props:o,resolvedFeatures:l,unSanitizedEditorConfig:a});return s.sanitizedClientFeatureProps===null&&(s.sanitizedClientFeatureProps=o),s}:(e.sanitizedClientFeatureProps=o,r.feature=e),r});var go=e=>({type:"dropdown",ChildComponent:$e,items:e,key:"align",order:30});var Co=[go([{ChildComponent:$e,isActive:({selection:e})=>{if(!Ue(e))return!1;for(let t of e.getNodes()){if(j(t)&&t.getFormatType()==="left")continue;let o=t.getParent();if(!(j(o)&&o.getFormatType()==="left"))return!1}return!0},key:"alignLeft",label:({i18n:e})=>e.t("lexical:align:alignLeftLabel"),onSelect:({editor:e})=>{e.dispatchCommand(We,"left")},order:1},{ChildComponent:po,isActive:({selection:e})=>{if(!Ue(e))return!1;for(let t of e.getNodes()){if(j(t)&&t.getFormatType()==="center")continue;let o=t.getParent();if(!(j(o)&&o.getFormatType()==="center"))return!1}return!0},key:"alignCenter",label:({i18n:e})=>e.t("lexical:align:alignCenterLabel"),onSelect:({editor:e})=>{e.dispatchCommand(We,"center")},order:2},{ChildComponent:mo,isActive:({selection:e})=>{if(!Ue(e))return!1;for(let t of e.getNodes()){if(j(t)&&t.getFormatType()==="right")continue;let o=t.getParent();if(!(j(o)&&o.getFormatType()==="right"))return!1}return!0},key:"alignRight",label:({i18n:e})=>e.t("lexical:align:alignRightLabel"),onSelect:({editor:e})=>{e.dispatchCommand(We,"right")},order:3},{ChildComponent:uo,isActive:({selection:e})=>{if(!Ue(e))return!1;for(let t of e.getNodes()){if(j(t)&&t.getFormatType()==="justify")continue;let o=t.getParent();if(!(j(o)&&o.getFormatType()==="justify"))return!1}return!0},key:"alignJustify",label:({i18n:e})=>e.t("lexical:align:alignJustifyLabel"),onSelect:({editor:e})=>{e.dispatchCommand(We,"justify")},order:4}])],Ii=h({toolbarFixed:{groups:Co},toolbarInline:{groups:Co}});import{$createQuoteNode as bo,$isQuoteNode as yo,QuoteNode as Ai}from"@lexical/rich-text";import{$setBlocksType as ko}from"@lexical/selection";import{$getSelection as No,$isRangeSelection as Di}from"lexical";import{jsx as ho}from"react/jsx-runtime";var Lt=()=>ho("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:ho("path",{d:"M13.5353 10.5725C13.5353 9.47709 11.0456 9.99991 11.0456 7.85883C11.0456 6.46464 12.1162 5.61816 13.361 5.61816C14.805 5.61816 16 6.86298 16 8.92937C16 11.2945 14.4564 13.7841 11.1203 14.3816L10.8216 13.1368C12.888 12.4895 13.5353 11.4937 13.5353 10.5725ZM6.71369 10.5725C6.71369 9.47709 4.22407 9.99991 4.22407 7.85883C4.22407 6.46464 5.29461 5.61816 6.53942 5.61816C7.9834 5.61816 9.17842 6.86298 9.17842 8.92937C9.17842 11.2945 7.63485 13.7841 4.29876 14.3816L4 13.1368C6.06639 12.4895 6.71369 11.4937 6.71369 10.5725Z",fill:"currentColor"})});function D(e){return{items:e,key:"basic",label:({i18n:t})=>t.t("lexical:general:slashMenuBasicGroupLabel")}}import{jsx as xo}from"react/jsx-runtime";var be=()=>xo("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:xo("path",{d:"M11.708 14.5H7.79785V13.9414H8.01367C9.00391 13.9414 9.15625 13.9033 9.15625 13.6113V6.70508H8.07715C6.82031 6.70508 6.73145 7.08594 6.28711 8.67285H5.80469L5.91895 6.12109H13.5869L13.7012 8.67285H13.2188C12.7744 7.08594 12.6855 6.70508 11.4287 6.70508H10.3496V13.6113C10.3496 13.9033 10.502 13.9414 11.4922 13.9414H11.708V14.5Z",fill:"currentColor"})});var M=e=>({type:"dropdown",ChildComponent:be,items:e,key:"text",order:25});import{$createQuoteNode as Fi,$isQuoteNode as To,QuoteNode as Pi}from"@lexical/rich-text";import{$createLineBreakNode as Mi}from"lexical";var Lo={type:"element",dependencies:[Pi],export:(e,t)=>{if(!To(e))return null;let o=t(e).split(`
|
|
2
2
|
`),r=[];for(let n of o)r.push("> "+n);return r.join(`
|
|
3
|
-
`)},regExp:/^>\s/,replace:(e,t,o,r)=>{if(r){let i=e.getPreviousSibling();if(
|
|
3
|
+
`)},regExp:/^>\s/,replace:(e,t,o,r)=>{if(r){let i=e.getPreviousSibling();if(To(i)){i.splice(i.getChildrenSize(),0,[Mi(),...t]),i.select(0,0),e.remove();return}}let n=Fi();n.append(...t),e.replace(n),n.select(0,0)}};var Eo=[M([{ChildComponent:Lt,isActive:({selection:e})=>{if(!Di(e))return!1;for(let t of e.getNodes())if(!yo(t)&&!yo(t.getParent()))return!1;return!0},key:"blockquote",label:({i18n:e})=>e.t("lexical:blockquote:label"),onSelect:({editor:e})=>{e.update(()=>{let t=No();ko(t,()=>bo())})},order:20}])],Oi=h({markdownTransformers:[Lo],nodes:[Ai],slashMenu:{groups:[D([{Icon:Lt,key:"blockquote",keywords:["quote","blockquote"],label:({i18n:e})=>e.t("lexical:blockquote:label"),onSelect:({editor:e})=>{e.update(()=>{let t=No();ko(t,()=>bo())})}}])]},toolbarFixed:{groups:Eo},toolbarInline:{groups:Eo}});import{getTranslation as So}from"@payloadcms/translations";import{jsx as yt,jsxs as Hi}from"react/jsx-runtime";var Ve=()=>Hi("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[yt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"8",y:"5"}),yt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"5",y:"11"}),yt("rect",{height:"4",rx:"0.5",stroke:"currentColor",width:"4",x:"11",y:"11"})]});import{DecoratorBlockNode as Bi}from"@lexical/react/LexicalDecoratorBlockNode.js";import Gi from"bson-objectid";import $i from"react";import{jsx as Vi}from"react/jsx-runtime";var Ui=$i.lazy(()=>import("./component-PEFMKIXI.js").then(e=>({default:e.BlockComponent}))),U=class e extends Bi{__fields;constructor({fields:t,format:o,key:r}){super(o,r),this.__fields=t}static clone(t){return new e({fields:t.__fields,format:t.__format,key:t.__key})}static getType(){return"block"}static importDOM(){return{}}static importJSON(t){t.version===1&&(t={...t,fields:{...t.fields.data},version:2});let o=ne(t.fields);return o.setFormat(t.format),o}static isInline(){return!1}decorate(t,o){return Vi(Ui,{formData:this.getFields(),nodeKey:this.getKey()})}exportDOM(){let t=document.createElement("div"),o=document.createTextNode(this.getTextContent());return t.append(o),{element:t}}exportJSON(){return{...super.exportJSON(),type:this.getType(),fields:this.getFields(),version:2}}getFields(){return this.getLatest().__fields}getTextContent(){return"Block Field"}setFields(t){let o=JSON.parse(JSON.stringify(t)),r=this.getWritable();r.__fields=o}};function ne(e){return new U({fields:{...e,id:e?.id||new Gi.default().toHexString()}})}function Wi(e){return e instanceof U}import{createCommand as zi}from"lexical";var Y=zi("INSERT_BLOCK_COMMAND");import{useLexicalComposerContext as sl}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as al,mergeRegister as cl}from"@lexical/utils";import{$getPreviousSelection as dl,$getSelection as pl,$isParagraphNode as wo,$isRangeSelection as ul,COMMAND_PRIORITY_EDITOR as ml}from"lexical";import{useEffect as fl}from"react";import{useLexicalComposerContext as Ki}from"@lexical/react/LexicalComposerContext.js";import{BlocksDrawer as ji,formatDrawerSlug as Zi,useEditDepth as Xi,useModal as Ji,useTranslation as Yi}from"@payloadcms/ui";import{$getNodeByKey as qi,COMMAND_PRIORITY_EDITOR as Qi,createCommand as el}from"lexical";import{useCallback as tl,useEffect as ol,useState as rl}from"react";import{jsx as ll}from"react/jsx-runtime";var nl=el("INSERT_BLOCK_WITH_DRAWER_COMMAND"),il=({blockType:e,editor:t,replaceNodeKey:o})=>{o?t.update(()=>{let r=qi(o);r&&r.replace(ne({id:null,blockName:"",blockType:e}))}):t.dispatchCommand(Y,{id:null,blockName:"",blockType:e})},_o=()=>{let[e]=Ki(),{editorConfig:t,uuid:o}=v(),[r,n]=rl(null),i=Xi(),{t:l}=Yi(),{openModal:a}=Ji(),s={plural:l("fields:blocks")||"Blocks",singular:l("fields:block")||"Block"},c=tl((p,m)=>{il({blockType:m,editor:e,replaceNodeKey:r})},[e,r]),d=Zi({slug:"lexical-rich-text-blocks-"+o,depth:i}),u=t?.resolvedFeatureMap?.get("blocks")?.sanitizedClientFeatureProps?.reducedBlocks;return ol(()=>e.registerCommand(nl,p=>(n(p?.replace?p?.replace.nodeKey:null),a(d),!0),Qi),[e,d,a]),ll(ji,{addRow:c,addRowIndex:0,blocks:u,drawerSlug:d,labels:s})};import{jsx as gl}from"react/jsx-runtime";var Ro=()=>{let[e]=sl();return fl(()=>{if(!e.hasNodes([U]))throw new Error("BlocksPlugin: BlocksNode not registered on editor");return cl(e.registerCommand(Y,t=>(e.update(()=>{let o=pl()||dl();if(ul(o)){let r=ne(t);al(r);let{focus:n}=o,i=n.getNode();wo(i)&&i.getTextContentSize()===0&&i.getParent().getChildren().filter(l=>wo(l)).length>1&&i.remove()}}),!0),ml))},[e]),gl(_o,{})};var Cl=h(({props:e})=>({nodes:[U],plugins:[{Component:Ro,position:"normal"}],sanitizedClientFeatureProps:e,slashMenu:{groups:[{items:e.reducedBlocks.map(t=>({Icon:Ve,key:"block-"+t.slug,keywords:["block","blocks",t.slug],label:({i18n:o})=>t.labels.singular?So(t.labels.singular,o):t.slug,onSelect:({editor:o})=>{o.dispatchCommand(Y,{id:null,blockName:"",blockType:t.slug})}})),key:"blocks",label:({i18n:t})=>t.t("lexical:blocks:label")}]},toolbarFixed:{groups:[{type:"dropdown",ChildComponent:Ve,items:e.reducedBlocks.map((t,o)=>({ChildComponent:Ve,isActive:void 0,key:"block-"+t.slug,label:({i18n:r})=>t.labels.singular?So(t.labels.singular,r):t.slug,onSelect:({editor:r})=>{r.dispatchCommand(Y,{id:null,blockName:"",blockType:t.slug})},order:o})),key:"blocks",order:20}]}}));import{useLexicalComposerContext as Tl}from"@lexical/react/LexicalComposerContext.js";import{$createParagraphNode as Ll,$createTextNode as yl,$getRoot as El}from"lexical";import*as Mo from"react";import{useCallback as q,useEffect as Et,useLayoutEffect as Io,useRef as bt,useState as ze}from"react";var O=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";var hl=O&&"documentMode"in document?document.documentMode:null,vo=O&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),km=O&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Nm=O&&"InputEvent"in window&&!hl?"getTargetRanges"in new window.InputEvent("input"):!1,_m=O&&/Version\/[\d.].*Safari/.test(navigator.userAgent),wm=O&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Rm=O&&/Android/.test(navigator.userAgent),Sm=O&&/Win/.test(navigator.platform),xl=O&&/^(?=.*Chrome).*/i.test(navigator.userAgent),vm=O&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!xl;import{jsx as Q,jsxs as kt}from"react/jsx-runtime";var bl=e=>{let t=document.createElement("textarea");t.value=e||"",t.style.position="absolute",t.style.opacity="0",document.body?.appendChild(t),t.focus(),t.select();try{let o=document.execCommand("copy");console.log(o)}catch(o){console.error(o)}document.body?.removeChild(t)},kl=(e,t)=>{let o=document.createElement("a");o.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(t||"")),o.setAttribute("download",e),o.style.display="none",document.body?.appendChild(o),o.click(),document.body?.removeChild(o)},Nl=e=>{let o=((r,n)=>{switch(r){case"click":return` await page.mouse.click(${n.x}, ${n.y});`;case"press":return` await page.keyboard.press('${n}');`;case"keydown":return` await page.keyboard.keydown('${n}');`;case"keyup":return` await page.keyboard.keyup('${n}');`;case"type":return` await page.keyboard.type('${n}');`;case"selectAll":return" await selectAll(page);";case"snapshot":return` await assertHTMLSnapshot(page);
|
|
4
4
|
await assertSelection(page, {
|
|
5
5
|
anchorPath: [${n.anchorPath.toString()}],
|
|
6
6
|
anchorOffset: ${n.anchorOffset},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
`;default:return""}})(e.name,e.value);switch(e.count){case 1:return o;case 2:return[o,o].join(`
|
|
11
11
|
`);default:return` await repeat(${e.count}, async () => {
|
|
12
12
|
${o}
|
|
13
|
-
);`}};function
|
|
13
|
+
);`}};function _l(e){return e.key.toLowerCase()==="a"&&(vo?e.metaKey:e.ctrlKey)}function wl(e){let{anchorNode:t,focusNode:o}=e,{anchorOffset:r,focusOffset:n}=e;return r!==0&&r--,n!==0&&n--,{anchorNode:t,anchorOffset:r,focusNode:o,focusOffset:n}}function Fo(e,t){let o=e,r=[];for(;o!==t;)o!=null&&r.unshift(Array.from(o?.parentNode?.childNodes??[]).indexOf(o)),o=o?.parentNode;return r}var Po=new Set(["Enter","Backspace","Delete","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"]);function Rl(e){let[t,o]=ze([]),[r,n]=ze(!1),[,i]=ze(""),[l,a]=ze(""),s=bt(null),c=bt(!1),d=bt(null),u=q(()=>e,[e]),p=q(()=>{let C=e.getRootElement(),y=window.getSelection();return C==null||y==null||y.anchorNode==null||y.focusNode==null||!C.contains(y.anchorNode)||!C.contains(y.focusNode)?null:`
|
|
14
14
|
import {
|
|
15
15
|
initializeE2E,
|
|
16
16
|
assertHTMLSnapshot,
|
|
@@ -31,6 +31,8 @@ ${t.map(Nl).join(`
|
|
|
31
31
|
`)}
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
|
-
`},[e,t]),m=q((g,L)=>{o(E=>{let b=t.length-1,w=t[b];if(w&&w.name===g){if(g==="type")return[...t.slice(0,b),{...w,value:w.value+L}];if(w.value===L)return[...t.slice(0,b),{...w,count:w.count+1}]}return[...E,{name:g,count:1,value:L}]})},[t,o]);So(()=>{let g=E=>{if(!r)return;let b=E.key;vl(E)?m("selectAll",""):Io.has(b)?m("press",E.key):[...b].length>1?m("keydown",E.key):m("type",E.key)},L=E=>{if(!r)return;let b=E.key;!Io.has(b)&&[...b].length>1&&m("keyup",E.key)};return e.registerRootListener((E,b)=>{b!==null&&(b.removeEventListener("keydown",g),b.removeEventListener("keyup",L)),E!==null&&(E.addEventListener("keydown",g),E.addEventListener("keyup",L))})},[e,r,m]),So(()=>{d.current&&d.current.scrollTo(0,d.current.scrollHeight)},[u]),xt(()=>{if(t){let g=u();g!==null&&a(g),d.current&&d.current.scrollTo(0,d.current.scrollHeight)}},[u,t]),xt(()=>e.registerUpdateListener(({dirtyElements:L,dirtyLeaves:E,editorState:b})=>{if(!r)return;let w=b._selection,P=s.current,k=c.current;if(P!==w){if(E.size===0&&L.size===0&&!k){let G=window.getSelection();if(G&&(G.anchorNode==null||G.focusNode==null))return}s.current=w}c.current=!1;let _=u();_!==null&&a(_)}),[e,u,r,m]),xt(()=>r?e.registerUpdateListener(()=>{let L=e.getRootElement();L!==null&&i(L?.innerHTML)}):void 0,[e,r]);let f=q(g=>{r||(g.update(()=>{let L=bl();L.clear();let E=Ll();L.append(yl().append(E)),E.select()}),o([])),n(L=>!L)},[r]),C=q(()=>{if(!r)return;let g=window.getSelection();if(g===null||g.anchorNode==null||g.focusNode==null)return;let{anchorNode:L,anchorOffset:E,focusNode:b,focusOffset:w}=Fl(g),P=p().getRootElement(),k;L!==null&&(k=Ro(L,P));let _;b!==null&&(_=Ro(b,P)),m("snapshot",{anchorNode:L,anchorOffset:E,anchorPath:k,focusNode:b,focusOffset:w,focusPath:_})},[m,r,p]),y=q(()=>{El(u())},[u]),x=q(()=>{kl("test.js",u())},[u]);return[Q("button",{className:`editor-dev-button ${r?"active":""}`,id:"test-recorder-button",onClick:g=>{f(p()),g.preventDefault()},title:r?"Disable test recorder":"Enable test recorder",type:"button",children:r?"Disable test recorder":"Enable test recorder"}),r?yt("div",{className:"test-recorder-output",children:[yt("div",{className:"test-recorder-toolbar",children:[Q("button",{className:"test-recorder-button",id:"test-recorder-button-snapshot",onClick:g=>{C(),g.preventDefault()},title:"Insert snapshot",type:"button",children:"Insert Snapshot"}),Q("button",{className:"test-recorder-button",id:"test-recorder-button-copy",onClick:g=>{y(),g.preventDefault()},title:"Copy to clipboard",type:"button",children:"Copy"}),Q("button",{className:"test-recorder-button",id:"test-recorder-button-download",onClick:g=>{x(),g.preventDefault()},title:"Download as a file",type:"button",children:"Download"})]}),Q("pre",{id:"test-recorder",ref:d,children:l})]}):null]}var Mo=()=>{let[e]=Tl(),[t,o]=_l(e);return yt(Po.Fragment,{children:[Q("p",{children:"HI"}),t,o,Q("p",{children:"DONE"})]})};var wl=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,plugins:[{Component:Mo,position:"bottom"}]})}),Sl=h(wl);import{useLexicalComposerContext as Rl}from"@lexical/react/LexicalComposerContext.js";import{TreeView as Il}from"@lexical/react/LexicalTreeView.js";import{jsx as Pl}from"react/jsx-runtime";var Ao=()=>{let[e]=Rl();return Pl(Il,{editor:e,timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",treeTypeButtonClassName:"debug-treetype-button",viewClassName:"tree-view-output"})};var Ml=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,plugins:[{Component:Ao,position:"bottom"}]})}),Al=h(Ml);import{$isRangeSelection as Dl,FORMAT_TEXT_COMMAND as Ol}from"lexical";import{jsx as Do}from"react/jsx-runtime";var Oo=()=>Do("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Do("path",{d:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})});var R=e=>({type:"buttons",items:e,key:"format",order:40});var Ho={type:"text-format",format:["bold","italic"],tag:"***"},Bo={type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},Go={type:"text-format",format:["bold"],tag:"**"},$o={type:"text-format",format:["bold"],intraword:!1,tag:"__"};var Uo=[R([{ChildComponent:Oo,isActive:({selection:e})=>Dl(e)?e.hasFormat("bold"):!1,key:"bold",onSelect:({editor:e})=>{e.dispatchCommand(Ol,"bold")},order:1}])],Hl=e=>({clientFeatureProps:e,feature:({featureProviderMap:t})=>{let o=[Go,$o];return t.get("italic")&&o.push(Bo,Ho),{clientFeatureProps:e,markdownTransformers:o,toolbarFixed:{groups:Uo},toolbarInline:{groups:Uo}}}}),Bl=h(Hl);import{$isRangeSelection as $l,FORMAT_TEXT_COMMAND as Ul}from"lexical";import{jsx as Wo,jsxs as Gl}from"react/jsx-runtime";var Vo=()=>Gl("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Wo("path",{d:"M7.76465 6L3.76465 10L7.76465 14",stroke:"currentColor"}),Wo("path",{d:"M12.2354 6L16.2354 10L12.2354 14",stroke:"currentColor"})]});var Ko={type:"text-format",format:["code"],tag:"`"};var zo=[R([{ChildComponent:Vo,isActive:({selection:e})=>$l(e)?e.hasFormat("code"):!1,key:"inlineCode",onSelect:({editor:e})=>{e.dispatchCommand(Ul,"code")},order:7}])],Wl=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[Ko],toolbarFixed:{groups:zo},toolbarInline:{groups:zo}})}),Vl=h(Wl);import{$isRangeSelection as Kl,FORMAT_TEXT_COMMAND as zl}from"lexical";import{jsx as jo}from"react/jsx-runtime";var Zo=()=>jo("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:jo("path",{d:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})});var Jo={type:"text-format",format:["italic"],tag:"*"},Xo={type:"text-format",format:["italic"],intraword:!1,tag:"_"};var Yo=[R([{ChildComponent:Zo,isActive:({selection:e})=>Kl(e)?e.hasFormat("italic"):!1,key:"italic",onSelect:({editor:e})=>{e.dispatchCommand(zl,"italic")},order:2}])],jl=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[Jo,Xo],toolbarFixed:{groups:Yo},toolbarInline:{groups:Yo}})}),Zl=h(jl);import{$isRangeSelection as Xl,FORMAT_TEXT_COMMAND as Yl}from"lexical";import{jsx as qo,jsxs as Jl}from"react/jsx-runtime";var Qo=()=>Jl("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[qo("path",{d:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),qo("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]});var er={type:"text-format",format:["strikethrough"],tag:"~~"};var tr=[R([{ChildComponent:Qo,isActive:({selection:e})=>Xl(e)?e.hasFormat("strikethrough"):!1,key:"strikethrough",onSelect:({editor:e})=>{e.dispatchCommand(Yl,"strikethrough")},order:4}])],ql=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[er],toolbarFixed:{groups:tr},toolbarInline:{groups:tr}})}),Ql=h(ql);import{$isRangeSelection as es,FORMAT_TEXT_COMMAND as ts}from"lexical";import{jsx as or}from"react/jsx-runtime";var rr=()=>or("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:or("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})});var nr=[R([{ChildComponent:rr,isActive:({selection:e})=>es(e)?e.hasFormat("subscript"):!1,key:"subscript",onSelect:({editor:e})=>{e.dispatchCommand(ts,"subscript")},order:5}])],os=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,toolbarFixed:{groups:nr},toolbarInline:{groups:nr}})}),rs=h(os);import{$isRangeSelection as ns,FORMAT_TEXT_COMMAND as is}from"lexical";import{jsx as ir}from"react/jsx-runtime";var lr=()=>ir("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:ir("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})});var sr=[R([{ChildComponent:lr,isActive:({selection:e})=>ns(e)?e.hasFormat("superscript"):!1,key:"superscript",onSelect:({editor:e})=>{e.dispatchCommand(is,"superscript")},order:6}])],ls=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,toolbarFixed:{groups:sr},toolbarInline:{groups:sr}})}),ss=h(ls);import{$isRangeSelection as cs,FORMAT_TEXT_COMMAND as ds}from"lexical";import{jsx as ar,jsxs as as}from"react/jsx-runtime";var cr=()=>as("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ar("path",{d:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),ar("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]});var dr=[R([{ChildComponent:cr,isActive:({selection:e})=>cs(e)?e.hasFormat("underline"):!1,key:"underline",onSelect:({editor:e})=>{e.dispatchCommand(ds,"underline")},order:3}])],us=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,toolbarFixed:{groups:dr},toolbarInline:{groups:dr}})}),ps=h(us);import{$createHeadingNode as gs,$isHeadingNode as kr,HeadingNode as hs}from"@lexical/rich-text";import{$setBlocksType as xs}from"@lexical/selection";import{$getSelection as Ts,$isRangeSelection as ys}from"lexical";import{jsx as ur}from"react/jsx-runtime";var pr=()=>ur("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:ur("path",{d:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})});import{jsx as mr}from"react/jsx-runtime";var fr=()=>mr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:mr("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})});import{jsx as Cr}from"react/jsx-runtime";var gr=()=>Cr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Cr("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})});import{jsx as hr}from"react/jsx-runtime";var xr=()=>hr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:hr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});import{jsx as Tr}from"react/jsx-runtime";var yr=()=>Tr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Tr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.1576 10.269C12.6896 10.269 12.3746 10.494 12.2216 10.737H10.8176L11.1956 7.074H15.2546V8.28H12.3206L12.1856 9.549C12.4016 9.351 12.8516 9.126 13.4636 9.126C14.7866 9.126 15.6596 10.053 15.6596 11.358C15.6596 12.609 14.7326 13.608 13.1756 13.608C11.5826 13.608 10.6556 12.753 10.5566 11.511H12.1136C12.1586 12.06 12.5456 12.465 13.1576 12.465C13.8236 12.465 14.1746 11.97 14.1746 11.376C14.1746 10.764 13.8416 10.269 13.1576 10.269Z",fill:"currentColor"})});import{jsx as Lr}from"react/jsx-runtime";var br=()=>Lr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Lr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.3646 8.127C12.5456 8.127 12.0416 8.937 12.0416 9.999C12.3296 9.54 12.8246 9.207 13.5536 9.207C14.8586 9.207 15.8036 10.134 15.8036 11.376C15.8036 12.645 14.8226 13.608 13.3196 13.608C11.7266 13.608 10.6196 12.393 10.6196 10.395C10.6196 8.316 11.7716 6.966 13.4186 6.966C14.7056 6.966 15.5786 7.749 15.7316 8.829H14.3186C14.2016 8.415 13.9226 8.127 13.3646 8.127ZM13.3106 12.51C13.9586 12.51 14.3816 12.042 14.3816 11.385C14.3816 10.737 13.9586 10.278 13.3106 10.278C12.6536 10.278 12.2126 10.737 12.2126 11.385C12.2126 12.042 12.6536 12.51 13.3106 12.51Z",fill:"currentColor"})});import{$createHeadingNode as ms,$isHeadingNode as fs,HeadingNode as Cs}from"@lexical/rich-text";var Lt=e=>(t,o,r)=>{let n=e(r);n&&(n.append(...o),t.replace(n),n.select(0,0))};var Er=e=>{let o=`^(${e.map(n=>Number(n.slice(1))).map(n=>`#{${n}}`).join("|")})\\s`,r=new RegExp(o);return{type:"element",dependencies:[Cs],export:(n,i)=>{if(!fs(n))return null;let l=Number(n.getTag().slice(1));return"#".repeat(l)+" "+i(n)},regExp:r,replace:Lt(n=>{let i="h"+n[1].length;return ms(i)})}};var Nr=e=>{let t=Ts();xs(t,()=>gs(e))},vr={h1:pr,h2:fr,h3:gr,h4:xr,h5:yr,h6:br},Ls=e=>({clientFeatureProps:e,feature:()=>{let{enabledHeadingSizes:t=["h1","h2","h3","h4","h5","h6"]}=e,o=[M(t.map((r,n)=>({ChildComponent:vr[r],isActive:({selection:i})=>{if(!ys(i))return!1;for(let l of i.getNodes()){if(kr(l)&&l.getTag()===r)continue;let a=l.getParent();if(!(kr(a)&&a.getTag()===r))return!1}return!0},key:r,label:({i18n:i})=>i.t("lexical:heading:label",{headingLevel:r.charAt(1)}),onSelect:({editor:i})=>{i.update(()=>{Nr(r)})},order:n+2})))];return{clientFeatureProps:e,markdownTransformers:[Er(t)],nodes:[hs],slashMenu:{groups:t?.length?[A(t.map(r=>({Icon:vr[r],key:`heading-${r.charAt(1)}`,keywords:["heading",r],label:({i18n:n})=>n.t("lexical:heading:label",{headingLevel:r.charAt(1)}),onSelect:({editor:n})=>{n.update(()=>{Nr(r)})}})))]:[]},toolbarFixed:{groups:t?.length?o:[]},toolbarInline:{groups:t?.length?o:[]}}}}),bs=h(Ls);import{$isNodeSelection as Ss}from"lexical";import{jsx as Fr}from"react/jsx-runtime";var bt=()=>Fr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Fr("rect",{fill:"currentColor",height:"1",width:"12",x:"4",y:"9.5"})});import{jsx as _r,jsxs as Es}from"react/jsx-runtime";var wr=()=>Es("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_r("path",{d:"M5 10h10",stroke:"currentColor"}),_r("path",{d:"M10 15V5",stroke:"currentColor"})]});var ee=e=>({type:"dropdown",ChildComponent:wr,items:e,key:"add",order:10});var Sr={type:"element",dependencies:[Re],export:(e,t)=>Pe(e)?"---":null,regExp:/^---\s*$/,replace:e=>{let t=Ie();t&&e.replace(t)}};import{useLexicalComposerContext as ks}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as Ns}from"@lexical/utils";import{$getSelection as vs,$isRangeSelection as Fs,COMMAND_PRIORITY_EDITOR as _s}from"lexical";import{useEffect as ws}from"react";var Rr=()=>{let[e]=ks();return ws(()=>e.registerCommand(me,t=>{let o=vs();if(!Fs(o))return!1;if(o.focus.getNode()!==null){let n=Ie();Ns(n)}return!0},_s),[e]),null};var Rs=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[Sr],nodes:[Re],plugins:[{Component:Rr,position:"normal"}],slashMenu:{groups:[A([{Icon:bt,key:"horizontalRule",keywords:["hr","horizontal rule","line","separator"],label:({i18n:t})=>t.t("lexical:horizontalRule:label"),onSelect:({editor:t})=>{t.dispatchCommand(me,void 0)}}])]},toolbarFixed:{groups:[ee([{ChildComponent:bt,isActive:({selection:t})=>{if(!Ss(t)||!t.getNodes().length)return!1;let o=t.getNodes()[0];return Pe(o)},key:"horizontalRule",label:({i18n:t})=>t.t("lexical:horizontalRule:label"),onSelect:({editor:t})=>{t.dispatchCommand(me,void 0)}}])]}})}),Is=h(Rs);import{INDENT_CONTENT_COMMAND as As,OUTDENT_CONTENT_COMMAND as Ds}from"lexical";import{jsx as Ke,jsxs as Ps}from"react/jsx-runtime";var Ir=()=>Ps("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ke("path",{d:"M2.5 5H10.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M2.5 10H10.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M12.25 7.25L17.25 3.75V10.75L12.25 7.25Z",fill:"currentColor"})]});import{jsx as ze,jsxs as Ms}from"react/jsx-runtime";var Pr=()=>Ms("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ze("path",{d:"M17.5 5H9.5",stroke:"currentColor",strokeWidth:"1.5"}),ze("path",{d:"M17.5 10H9.5",stroke:"currentColor",strokeWidth:"1.5"}),ze("path",{d:"M17.5 15H2.5",stroke:"currentColor",strokeWidth:"1.5"}),ze("path",{d:"M7.75 7.25L2.75 3.75V10.75L7.75 7.25Z",fill:"currentColor"})]});var Mr=e=>({type:"buttons",items:e,key:"indent",order:35});var Ar=[Mr([{ChildComponent:Ir,isActive:()=>!1,isEnabled:({selection:e})=>{if(!e||!e?.getNodes()?.length)return!1;for(let t of e.getNodes())if("__indent"in t&&t.__indent>0||t.getParent()&&"__indent"in t.getParent()&&t.getParent().__indent>0)return!0;return!1},key:"indentDecrease",label:({i18n:e})=>e.t("lexical:indent:decreaseLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ds,void 0)},order:1},{ChildComponent:Pr,isActive:()=>!1,key:"indentIncrease",label:({i18n:e})=>e.t("lexical:indent:increaseLabel"),onSelect:({editor:e})=>{e.dispatchCommand(As,void 0)},order:2}])],Os=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,toolbarFixed:{groups:Ar},toolbarInline:{groups:Ar}})}),Hs=h(Os);import{$findMatchingParent as rc}from"@lexical/utils";import{$getSelection as Pt,$isRangeSelection as mn}from"lexical";import{jsx as Dr}from"react/jsx-runtime";var Or=()=>Dr("svg",{"aria-hidden":"true",className:"icon",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Dr("path",{d:"M8.5 11.5L11.5 8.5M8.5 7L9.625 5.875C10.868 4.633 12.882 4.633 14.125 5.875C15.368 7.118 15.368 9.133 14.125 10.375L13 11.5M7 8.5L5.746 9.754C4.56 10.94 4.519 12.85 5.652 14.087C6.814 15.354 8.78 15.449 10.058 14.298L11.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})});import{$isAtNodeEnd as Hr}from"@lexical/selection";function ne(e){let{anchor:t}=e,{focus:o}=e,r=e.anchor.getNode(),n=e.focus.getNode();return r===n?r:e.isBackward()?Hr(o)?r:n:Hr(t)?r:n}var Et=e=>({type:"buttons",items:e,key:"features",order:50});import{$createTextNode as Js,$isTextNode as Xs}from"lexical";import{addClassNamesToElement as Bs,isHTMLAnchorElement as Gs}from"@lexical/utils";import vt from"bson-objectid";import{$applyNodeReplacement as $s,$createTextNode as Br,$getSelection as Us,$isElementNode as Gr,$isRangeSelection as Nt,ElementNode as Ws,createCommand as Vs}from"lexical";var Ks=new Set(["http:","https:","mailto:","sms:","tel:"]),O=class e extends Ws{__fields;__id;constructor({id:t,fields:o={doc:null,linkType:"custom",newTab:!1,url:void 0},key:r}){super(r),this.__fields=o,this.__id=t}static clone(t){return new e({id:t.__id,fields:t.__fields,key:t.__key})}static getType(){return"link"}static importDOM(){return{a:t=>({conversion:zs,priority:1})}}static importJSON(t){t.version===1&&typeof t.fields?.doc?.value=="object"&&t.fields?.doc?.value?.id&&(t.fields.doc.value=t.fields.doc.value.id,t.version=2),t.version===2&&!t.id&&(t.id=new vt.default().toHexString(),t.version=3);let o=V({id:t.id,fields:t.fields});return o.setFormat(t.format),o.setIndent(t.indent),o.setDirection(t.direction),o}canBeEmpty(){return!1}canInsertTextAfter(){return!1}canInsertTextBefore(){return!1}createDOM(t){let o=document.createElement("a");return this.__fields?.linkType==="custom"&&(o.href=this.sanitizeUrl(this.__fields.url??"")),(this.__fields?.newTab??!1)&&(o.target="_blank"),this.__fields?.newTab===!0&&this.__fields?.linkType==="custom"&&(o.rel=kt(o.rel,"add","noopener")),Bs(o,t.theme.link),o}exportJSON(){let t={...super.exportJSON(),type:this.getType(),fields:this.getFields(),version:3},o=this.getID();return o&&(t.id=o),t}extractWithChild(t,o,r){if(!Nt(o))return!1;let n=o.anchor.getNode(),i=o.focus.getNode();return this.isParentOf(n)&&this.isParentOf(i)&&o.getTextContent().length>0}getFields(){return this.getLatest().__fields}getID(){return this.getLatest().__id}insertNewAfter(t,o=!0){let r=this.getParentOrThrow().insertNewAfter(t,o);if(Gr(r)){let n=V({fields:this.__fields});return r.append(n),n}return null}isInline(){return!0}sanitizeUrl(t){try{let o=new URL(t);if(!Ks.has(o.protocol))return"about:blank"}catch{return"https://"}return t}setFields(t){let o=this.getWritable();o.__fields=t}updateDOM(t,o,r){let n=this.__fields?.url,i=this.__fields?.newTab;return n!=null&&n!==t.__fields?.url&&this.__fields?.linkType==="custom"&&(o.href=n),this.__fields?.linkType==="internal"&&t.__fields?.linkType==="custom"&&o.removeAttribute("href"),o.rel==null&&(o.rel=""),i!==t.__fields?.newTab&&(i??!1?(o.target="_blank",this.__fields?.linkType==="custom"&&(o.rel=kt(o.rel,"add","noopener"))):(o.removeAttribute("target"),o.rel=kt(o.rel,"remove","noopener"))),!1}};function zs(e){let t=null;if(Gs(e)){let o=e.textContent;o!==null&&o!==""&&(t=V({id:new vt.default().toHexString(),fields:{doc:null,linkType:"custom",newTab:e.getAttribute("target")==="_blank",url:e.getAttribute("href")??""}}))}return{node:t}}function V({id:e,fields:t}){return $s(new O({id:e??new vt.default().toHexString(),fields:t}))}function I(e){return e instanceof O}var $=Vs("TOGGLE_LINK_COMMAND");function $r(e){let t=Us();if(!Nt(t)&&!e.selectedNodes.length)return;let o=Nt(t)?t.extract():e.selectedNodes;if(e===null)o.forEach(r=>{let n=r.getParent();if(I(n)){let i=n.getChildren();for(let l=0;l<i.length;l+=1)n.insertBefore(i[l]);n.remove()}});else{if(o.length===1){let i=o[0],l=I(i)?i:js(i);if(l!==null){l.setFields(e.fields),e.text!=null&&e.text!==l.getTextContent()&&(l.append(Br(e.text)),l.getChildren().forEach(a=>{a!==l.getLastChild()&&a.remove()}));return}}let r=null,n=null;o.forEach(i=>{let l=i.getParent();if(!(l===n||l===null||Gr(i)&&!i.isInline())){if(I(l)){n=l,l.setFields(e.fields),e.text!=null&&e.text!==l.getTextContent()&&(l.append(Br(e.text)),l.getChildren().forEach(a=>{a!==l.getLastChild()&&a.remove()}));return}if(l.is(r)||(r=l,n=V({fields:e.fields}),I(l)?i.getPreviousSibling()===null?l.insertBefore(n):l.insertAfter(n):i.insertBefore(n)),I(i)){if(i.is(n))return;if(n!==null){let a=i.getChildren();for(let s=0;s<a.length;s+=1)n.append(a[s])}i.remove();return}n!==null&&n.append(i)}})}}function js(e){return Zs(e,t=>I(t))}function Zs(e,t){let o=e;for(;o!==null&&(o=o.getParent())!==null&&!t(o););return o}function kt(e,t,o){let r,n=`${e}`;if(t==="add"){if(n.includes(o)){let i=new RegExp(o,"g");n=n.replace(i,"").trim()}n=n.trim(),r=n.length===0?`${o}`:`${n} ${o}`}else{let i=new RegExp(o,"g");r=n.replace(i,"").trim()}return r}var Ur={type:"text-match",dependencies:[O],export:(e,t,o)=>{if(!I(e))return null;let r=e,{url:n}=r.getFields(),i=`[${r.getTextContent()}](${n})`,l=r.getFirstChild();return r.getChildrenSize()===1&&Xs(l)?o(l,i):i},importRegExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)/,regExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)$/,replace:(e,t)=>{let[,o,r]=t,n=V({fields:{doc:null,linkType:"custom",newTab:!1,url:r}}),i=Js(o);i.setFormat(e.getFormat()),n.append(i),e.replace(n)},trigger:")"};import{$applyNodeReplacement as Ys,$isElementNode as qs}from"lexical";var K=class e extends O{static clone(t){return new e({id:void 0,fields:t.__fields,key:t.__key})}static getType(){return"autolink"}static importDOM(){return null}static importJSON(t){t.version===1&&typeof t.fields?.doc?.value=="object"&&t.fields?.doc?.value?.id&&(t.fields.doc.value=t.fields.doc.value.id,t.version=2);let o=je({fields:t.fields});return o.setFormat(t.format),o.setIndent(t.indent),o.setDirection(t.direction),o}exportJSON(){return{...super.exportJSON(),type:"autolink",version:2}}insertNewAfter(t,o=!0){let r=this.getParentOrThrow().insertNewAfter(t,o);if(qs(r)){let n=je({fields:this.__fields});return r.append(n),n}return null}};function je({fields:e}){return Ys(new K({id:void 0,fields:e}))}function z(e){return e instanceof K}import{useLexicalComposerContext as Qs}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as ea}from"@lexical/utils";import{$createTextNode as Wr,$getSelection as ta,$isElementNode as Kr,$isLineBreakNode as zr,$isNodeSelection as oa,$isRangeSelection as ra,$isTextNode as ye,TextNode as na}from"lexical";import{useEffect as ia}from"react";function Ft(e,t,...o){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function Vr(e,t=o=>o){return o=>{let r=e.exec(o);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function jr(e,t){for(let o=0;o<t.length;o++){let r=t[o](e);if(r!=null)return r}return null}var la=/[.,;\s]/;function Je(e){return la.test(e)}function Zr(e){return Je(e[e.length-1])}function wt(e){return Je(e[0])}function Jr(e){let t=e.getPreviousSibling();return Kr(t)&&(t=t.getLastDescendant()),t===null||zr(t)||ye(t)&&Zr(t.getTextContent())}function Xr(e){let t=e.getNextSibling();return Kr(t)&&(t=t.getFirstDescendant()),t===null||zr(t)||ye(t)&&wt(t.getTextContent())}function sa(e,t,o,r){return(e>0?Je(o[e-1]):Jr(r[0]))?t<o.length?Je(o[t]):Xr(r[r.length-1]):!1}function aa(e,t,o){let r=[],n=[],i=[],l=0,a=0,s=[...e];for(;s.length>0;){let c=s[0],p=c.getTextContent().length,u=a;a+p<=t?(r.push(c),l+=p):u>=o?i.push(c):n.push(c),a+=p,s.shift()}return[l,r,n,i]}function ca(e,t,o,r){let n={linkType:"custom",url:r.url,...r.fields},i=je({fields:n});if(e.length===1){let l=e[0],a;t===0?[a,l]=l.splitText(o):[,a,l]=l.splitText(t,o);let s=Wr(r.text);return s.setFormat(a.getFormat()),s.setDetail(a.getDetail()),s.setStyle(a.getStyle()),i.append(s),a.replace(i),l}else if(e.length>1){let l=e[0],a=l.getTextContent().length,s;t===0?s=l:[,s]=l.splitText(t);let c=[],d;for(let f=1;f<e.length;f++){let C=e[f],x=C.getTextContent().length,N=a,v=a+x;if(N<o)if(v<=o)c.push(C);else{let[g,L]=C.splitText(o-N);c.push(g),d=L}a+=x}let p=ta(),u=p?p.getNodes().find(ye):void 0,m=Wr(s.getTextContent());return m.setFormat(s.getFormat()),m.setDetail(s.getDetail()),m.setStyle(s.getStyle()),i.append(m,...c),u&&u===s&&(ra(p)?m.select(p.anchor.offset,p.focus.offset):oa(p)&&m.select(0,m.getTextContent().length)),s.replace(i),d}}function da(e,t,o){let r=[...e],n=r.map(s=>s.getTextContent()).join(""),i=n,l,a=0;for(;(l=jr(i,t))!=null&&l!==null;){let s=l.index,c=l.length,d=s+c;if(sa(a+s,a+d,n,r)){let[u,,m,f]=aa(r,a+s,a+d),C=a+s-u,y=a+d-u,x=ca(m,C,y,l);r=x?[x,...f]:f,o(l.url,null),a=0}else a+=d;i=i.substring(d)}}function _t(e,t,o){let r=e.getChildren(),n=r.length;for(let s=0;s<n;s++){let c=r[s];if(!ye(c)||!c.isSimpleText()){Ze(e),o(null,e.getFields()?.url??null);return}}let i=e.getTextContent(),l=jr(i,t);if(l===null||l.text!==i){Ze(e),o(null,e.getFields()?.url??null);return}if(!Jr(e)||!Xr(e)){Ze(e),o(null,e.getFields()?.url??null);return}let a=e.getFields()?.url;if(a!==l?.url){let s=e.getFields();s.url=l?.url,e.setFields(s),o(l.url,a??null)}}function ua(e,t,o){let r=e.getPreviousSibling(),n=e.getNextSibling(),i=e.getTextContent();z(r)&&!wt(i)&&(r.append(e),_t(r,t,o),o(null,r.getFields()?.url??null)),z(n)&&!Zr(i)&&(Ze(n),_t(n,t,o),o(null,n.getFields()?.url??null))}function Ze(e){let t=e.getChildren(),o=t.length;for(let r=o-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(r=>r.getLatest())}function pa(e){let t=[e],o=e.getNextSibling();for(;o!==null&&ye(o)&&o.isSimpleText()&&(t.push(o),!/\s/.test(o.getTextContent()));)o=o.getNextSibling();return t}function ma(e,t,o){ia(()=>{e.hasNodes([K])||Ft(!1,"LexicalAutoLinkPlugin: AutoLinkNode not registered on editor");let r=(n,i)=>{o?.(n,i)};return ea(e.registerNodeTransform(na,n=>{let i=n.getParentOrThrow(),l=n.getPreviousSibling();if(z(i))_t(i,t,r);else if(!I(i)){if(n.isSimpleText()&&(wt(n.getTextContent())||!z(l))){let a=pa(n);da(a,t,r)}ua(n,t,r)}}))},[e,t,o])}var fa=/((https?:\/\/(www\.)?)|(www\.))[-\w@:%.+~#=]{1,256}\.[a-zA-Z\d()]{1,6}\b([-\w()@:%+.~#?&/=]*)/,Ca=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-\d]+\.)+[a-z]{2,}))/i,ga=[Vr(fa,e=>e.startsWith("http")?e:`https://${e}`),Vr(Ca,e=>`mailto:${e}`)],Yr=()=>{let[e]=Qs();return ma(e,ga),null};import{ClickableLinkPlugin as ha}from"@lexical/react/LexicalClickableLinkPlugin.js";import{jsx as xa}from"react/jsx-runtime";var qr=()=>xa(ha,{});import{createCommand as Ta}from"lexical";var Xe=Ta("TOGGLE_LINK_WITH_MODAL_COMMAND");import{createPortal as za}from"react-dom";import{useLexicalComposerContext as Ma}from"@lexical/react/LexicalComposerContext.js";import{$findMatchingParent as tn,mergeRegister as on}from"@lexical/utils";import{getTranslation as Aa}from"@payloadcms/translations";import{formatDrawerSlug as Da,useConfig as Oa,useEditDepth as Ha,useModal as Ba,useTranslation as Ga}from"@payloadcms/ui/client";import{$getSelection as rn,$isLineBreakNode as $a,$isRangeSelection as nn,COMMAND_PRIORITY_HIGH as Ua,COMMAND_PRIORITY_LOW as ln,KEY_ESCAPE_COMMAND as Wa,SELECTION_CHANGE_COMMAND as Va}from"lexical";import sn,{useCallback as an,useEffect as qe,useRef as Ka,useState as ie}from"react";function Ye(e,t,o,r=10,n=5){let i=o.parentElement;if(e===null||i==null){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}let l=t.getBoundingClientRect(),a=o.getBoundingClientRect(),s=i.getBoundingClientRect(),c=e.top-r,d=e.left-n;c<s.top&&(c+=l.height+e.height+r*2),d+l.width>s.right&&(d=s.right-l.width-n),c-=a.top,d-=a.left,t.style.opacity="1",t.style.transform=`translate(${d}px, ${c}px)`}import{Drawer as ya,Form as La,FormSubmit as ba,RenderFields as Ea,useConfig as ka,useDocumentInfo as Na,useFieldProps as va,useTranslation as Fa}from"@payloadcms/ui/client";import{getFormState as Qr}from"@payloadcms/ui/shared";import{useCallback as _a,useEffect as wa,useState as Sa}from"react";import{v4 as Ra}from"uuid";import{jsx as St,jsxs as Pa}from"react/jsx-runtime";var Ia="lexical-link-edit-drawer",en=({drawerSlug:e,handleModalSubmit:t,stateData:o})=>{let{t:r}=Fa(),{id:n}=Na(),{schemaPath:i}=va(),l=ka(),[a,s]=Sa(!1),{field:{richTextComponentMap:c}}=S(),d="feature.link.fields.fields",p=`${i}.feature.link.fields`,u=c.get(d);wa(()=>{o&&(async()=>{let C=await Qr({apiRoute:l.routes.api,body:{id:n,data:o,operation:"update",schemaPath:p},serverURL:l.serverURL});s(C)})()},[l.routes.api,l.serverURL,p,n,o]);let m=_a(async({formState:f})=>await Qr({apiRoute:l.routes.api,body:{id:n,formState:f,operation:"update",schemaPath:p},serverURL:l.serverURL}),[l.routes.api,l.serverURL,p,n]);return St(ya,{className:Ia,slug:e,title:r("fields:editLink")??"",children:a!==!1&&Pa(La,{beforeSubmit:[m],disableValidationOnSubmit:!0,fields:Array.isArray(u)?u:[],initialState:a,onChange:[m],onSubmit:t,uuid:Ra(),children:[St(Ea,{fieldMap:Array.isArray(u)?u:[],forceRender:!0,path:"",readOnly:!1,schemaPath:p}),St(ba,{children:r("general:submit")})]})})};import{jsx as le,jsxs as Rt}from"react/jsx-runtime";function cn({anchorElem:e}){let[t]=Ma(),o=Ka(null),[r,n]=ie(null),[i,l]=ie(null),{uuid:a}=S(),s=Oa(),{i18n:c,t:d}=Ga(),[p,u]=ie({}),{closeModal:m,isModalOpen:f,toggleModal:C}=Ba(),y=Ha(),[x,N]=ie(!1),[v,g]=ie([]),[L,E]=ie(!1),b=Da({slug:"lexical-rich-text-link-"+a,depth:y}),w=an(()=>{N(!1),o&&o.current&&(o.current.style.opacity="0",o.current.style.transform="translate(-10000px, -10000px)"),E(!1),n(null),l(null),g([]),u({})},[N,n,l,g]),P=an(()=>{let k=rn(),_=null;if(!nn(k)||!k){w();return}let G=ne(k);_=t.getElementByKey(G.getKey())?.getBoundingClientRect();let F=tn(G,I),Se=k.getNodes().filter(re=>!$a(re)).find(re=>{let J=tn(re,I);return F&&!F.is(J)||J&&!J.is(F)});if(F==null||Se){w();return}let Z={doc:void 0,linkType:void 0,newTab:void 0,url:"",...F.getFields(),id:F.getID(),text:F.getTextContent()};if(F.getFields()?.linkType==="custom")n(F.getFields()?.url??null),l(null);else{n(`/admin/collections/${F.getFields()?.doc?.relationTo}/${F.getFields()?.doc?.value}`);let re=s.collections.find(J=>J.slug===F.getFields()?.doc?.relationTo);if(!re)l(F.getFields()?.label?String(F.getFields()?.label):null),n(F.getFields()?.url?String(F.getFields()?.url):null);else{let J=d("fields:linkedTo",{label:Aa(re.labels.singular,c)}).replace(/<[^>]*>?/g,"");l(J)}}u(Z),N(!0),g(k?k?.getNodes():[]),z(F)?E(!0):E(!1);let pe=o.current,at=window.getSelection(),{activeElement:to}=document;if(pe===null)return;let ct=t.getRootElement();return at!==null&&ct!==null&&ct.contains(at.anchorNode)?(_||(_=at.getRangeAt(0).getBoundingClientRect()),_!=null&&(_.y+=40,Ye(_,pe,e))):(to==null||to.className!=="link-input")&&(ct!==null&&Ye(null,pe,e),n(null),l(null)),!0},[t,w,s.collections,d,c,e]);return qe(()=>on(t.registerCommand(Xe,k=>(t.dispatchCommand($,k),P(),C(b),!0),ln)),[t,P,C,b]),qe(()=>{let k=e.parentElement,_=()=>{t.getEditorState().read(()=>{P()})};return window.addEventListener("resize",_),k?.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),k?.removeEventListener("scroll",_)}},[e.parentElement,t,P]),qe(()=>on(t.registerUpdateListener(({editorState:k})=>{k.read(()=>{P()})}),t.registerCommand(Va,()=>(P(),!0),ln),t.registerCommand(Wa,()=>x?(w(),!0):!1,Ua)),[t,P,x,w]),qe(()=>{t.getEditorState().read(()=>{P()})},[t,P]),Rt(sn.Fragment,{children:[le("div",{className:"link-editor",ref:o,children:Rt("div",{className:"link-input",children:[r&&r.length>0?le("a",{href:r,rel:"noopener noreferrer",target:"_blank",children:i!=null&&i.length>0?i:r}):i!=null&&i.length>0?le("span",{className:"link-input__label-pure",children:i}):null,t.isEditable()&&Rt(sn.Fragment,{children:[le("button",{"aria-label":"Edit link",className:"link-edit",onClick:()=>{C(b)},onMouseDown:k=>{k.preventDefault()},tabIndex:0,type:"button"}),!L&&le("button",{"aria-label":"Remove link",className:"link-trash",onClick:()=>{t.dispatchCommand($,null)},onMouseDown:k=>{k.preventDefault()},tabIndex:0,type:"button"})]})]})}),f(b)&&le(en,{drawerSlug:b,handleModalSubmit:(k,_)=>{m(b);let G=_,F={...G};delete F.text,t.update(()=>{let Se=rn(),Z=null;if(nn(Se)?Z=ne(Se).getParent():v.length&&(Z=v[0].getParent()),Z&&z(Z)){let pe=V({fields:F});Z.replace(pe,!0)}}),t.dispatchCommand($,{fields:F,selectedNodes:v,text:G.text})},stateData:p})]})}import{jsx as ja}from"react/jsx-runtime";var dn=e=>{let{anchorElem:t=document.body}=e;return za(ja(cn,{anchorElem:t}),t)};import{useLexicalComposerContext as Xa}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as Ya}from"@lexical/utils";import{$getSelection as qa,$isElementNode as Qa,$isRangeSelection as ec,COMMAND_PRIORITY_LOW as un,PASTE_COMMAND as tc}from"lexical";import{useEffect as oc}from"react";var Za=/(?:[A-Za-z]{3,9}:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z\d.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z\d.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*/,Ja=/^[\w\-./]*(?:#\w[\w-]*)?$/;function It(e){if(!e)return!1;if(e==="https://"||Za.test(e)||Ja.test(e))return!0;try{return new URL(e),!0}catch{}return!1}var pn=()=>{let[e]=Xa();return oc(()=>{if(!e.hasNodes([O]))throw new Error("LinkPlugin: LinkNode not registered on editor");return Ya(e.registerCommand($,t=>($r(t),!0),un),It!==void 0?e.registerCommand(tc,t=>{let o=qa();if(!ec(o)||o.isCollapsed()||!(t instanceof ClipboardEvent)||t.clipboardData==null)return!1;let r=t.clipboardData.getData("text");if(!It(r))return!1;if(!o.getNodes().some(n=>Qa(n))){let n={doc:null,linkType:"custom",newTab:!1,url:r};return e.dispatchCommand($,{fields:n,text:null}),t.preventDefault(),!0}return!1},un):()=>{})},[e]),null};var fn=[Et([{ChildComponent:Or,isActive:({selection:e})=>{if(mn(e)){let t=ne(e);return rc(t,I)!=null}return!1},isEnabled:({selection:e})=>!!(mn(e)&&Pt()?.getTextContent()?.length),key:"link",label:({i18n:e})=>e.t("lexical:link:label"),onSelect:({editor:e,isActive:t})=>{if(t)e.dispatchCommand($,null);else{let o=null,r=[];if(e.getEditorState().read(()=>{o=Pt()?.getTextContent(),r=Pt()?.getNodes()??[]}),!o?.length)return;let n={doc:null,linkType:"custom",newTab:!1,url:"https://"};e.dispatchCommand(Xe,{fields:n,selectedNodes:r,text:o})}},order:1}])],nc=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[Ur],nodes:[O,K],plugins:[{Component:pn,position:"normal"},{Component:Yr,position:"normal"},{Component:qr,position:"normal"},{Component:dn,position:"floatingAnchorElem"}],toolbarFixed:{groups:fn},toolbarInline:{groups:fn}})}),ic=h(nc);import{$isListNode as Dt,INSERT_CHECK_LIST_COMMAND as yn,ListItemNode as hc,ListNode as xc}from"@lexical/list";import{$isRangeSelection as Tc}from"lexical";import{jsx as Cn,jsxs as lc}from"react/jsx-runtime";var Mt=()=>lc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Cn("rect",{height:"13",rx:"1.5",stroke:"currentColor",width:"13",x:"3.5",y:"3.5"}),Cn("path",{d:"M7 10L9 12.5L13 7.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{ListPlugin as sc}from"@lexical/react/LexicalListPlugin.js";import{jsx as ac}from"react/jsx-runtime";var se=()=>ac(sc,{});function ae(e){return{items:e,key:"lists",label:({i18n:t})=>t.t("lexical:general:slashMenuListGroupLabel")}}import{$isListNode as pc,ListItemNode as mc,ListNode as fc}from"@lexical/list";import{$createListItemNode as cc,$createListNode as dc,$isListItemNode as uc,$isListNode as At}from"@lexical/list";var gn=4,ce=e=>(t,o,r)=>{let n=t.getPreviousSibling(),i=t.getNextSibling(),l=cc(e==="check"?r[3]==="x":void 0);if(At(i)&&i.getListType()===e){let s=i.getFirstChild();s!==null?s.insertBefore(l):i.append(l),t.remove()}else if(At(n)&&n.getListType()===e)n.append(l),t.remove();else{let s=dc(e,e==="number"?Number(r[2]):void 0);s.append(l),t.replace(s)}l.append(...o),l.select(0,0);let a=Math.floor(r[1].length/gn);a&&l.setIndent(a)},te=(e,t,o)=>{let r=[],n=e.getChildren(),i=0;for(let l of n)if(uc(l)){if(l.getChildrenSize()===1){let d=l.getFirstChild();if(At(d)){r.push(te(d,t,o+1));continue}}let a=" ".repeat(o*gn),s=e.getListType(),c=s==="number"?`${e.getStart()+i}. `:s==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(a+c+t(l)),i++}return r.join(`
|
|
35
|
-
`)};var hn={type:"element",dependencies:[fc,mc],export:(e,t)=>pc(e)?te(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:ce("check")};import{CheckListPlugin as Cc}from"@lexical/react/LexicalCheckListPlugin.js";import{jsx as gc}from"react/jsx-runtime";var xn=()=>gc(Cc,{});var Tn=[M([{ChildComponent:Mt,isActive:({selection:e})=>{if(!Tc(e))return!1;for(let t of e.getNodes()){if(Dt(t)&&t.getListType()==="check")continue;let o=t.getParent();if(Dt(o)&&o.getListType()==="check")continue;let r=o?.getParent();if(!(Dt(r)&&r.getListType()==="check"))return!1}return!0},key:"checklist",label:({i18n:e})=>e.t("lexical:checklist:label"),onSelect:({editor:e})=>{e.dispatchCommand(yn,void 0)},order:12}])],yc=e=>({clientFeatureProps:e,feature:({featureProviderMap:t})=>{let o=[{Component:xn,position:"normal"}];return!t.has("unorderedList")&&!t.has("orderedList")&&o.push({Component:se,position:"normal"}),{clientFeatureProps:e,markdownTransformers:[hn],nodes:t.has("unorderedList")||t.has("orderedList")?[]:[xc,hc],plugins:o,slashMenu:{groups:[ae([{Icon:Mt,key:"checklist",keywords:["check list","check","checklist","cl"],label:({i18n:r})=>r.t("lexical:checklist:label"),onSelect:({editor:r})=>{r.dispatchCommand(yn,void 0)}}])]},toolbarFixed:{groups:Tn},toolbarInline:{groups:Tn}}}}),Lc=h(yc);import{$isListNode as Ht,INSERT_ORDERED_LIST_COMMAND as En,ListItemNode as vc,ListNode as Fc}from"@lexical/list";import{$isRangeSelection as _c}from"lexical";import{jsx as Le,jsxs as bc}from"react/jsx-runtime";var Ot=()=>bc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Le("path",{d:"M5.89284 12.479C5.89284 13.368 5.26284 13.788 4.38084 14.236C3.75084 14.558 3.43584 14.789 3.40784 15.062H5.89984V16H2.06384V15.573C2.06384 14.523 2.92484 13.935 3.66684 13.501C4.38084 13.088 4.75184 12.878 4.75184 12.458C4.75184 12.08 4.52084 11.835 4.06584 11.835C3.58984 11.835 3.30984 12.199 3.28184 12.654H2.11284C2.18984 11.681 2.87584 10.918 4.07284 10.918C5.15784 10.918 5.89284 11.555 5.89284 12.479Z",fill:"currentColor"}),Le("path",{d:"M2.68608 4.535V3.737C3.54008 3.737 3.90408 3.513 4.02308 2.995H4.89108V8H3.68008L3.68008 4.535H2.68608Z",fill:"currentColor"}),Le("path",{d:"M8 15L17 15",stroke:"currentColor",strokeWidth:"1.5"}),Le("path",{d:"M8 10L17 10",stroke:"currentColor",strokeWidth:"1.5"}),Le("path",{d:"M8 5L17 5",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as Ec,ListItemNode as kc,ListNode as Nc}from"@lexical/list";var Ln={type:"element",dependencies:[Nc,kc],export:(e,t)=>Ec(e)?te(e,t,0):null,regExp:/^(\s*)(\d+)\.\s/,replace:ce("number")};var bn=[M([{ChildComponent:Ot,isActive:({selection:e})=>{if(!_c(e))return!1;for(let t of e.getNodes()){if(Ht(t)&&t.getListType()==="number")continue;let o=t.getParent();if(Ht(o)&&o.getListType()==="number")continue;let r=o?.getParent();if(!(Ht(r)&&r.getListType()==="number"))return!1}return!0},key:"orderedList",label:({i18n:e})=>e.t("lexical:orderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(En,void 0)},order:10}])],wc=e=>({clientFeatureProps:e,feature:({featureProviderMap:t})=>({clientFeatureProps:e,markdownTransformers:[Ln],nodes:t.has("orderedList")?[]:[Fc,vc],plugins:t.has("orderedList")?[]:[{Component:se,position:"normal"}],slashMenu:{groups:[ae([{Icon:Ot,key:"orderedList",keywords:["ordered list","ol"],label:({i18n:o})=>o.t("lexical:orderedList:label"),onSelect:({editor:o})=>{o.dispatchCommand(En,void 0)}}])]},toolbarFixed:{groups:bn},toolbarInline:{groups:bn}})}),Sc=h(wc);import{$isListNode as Gt,INSERT_UNORDERED_LIST_COMMAND as vn,ListItemNode as Ac,ListNode as Dc}from"@lexical/list";import{$isRangeSelection as Oc}from"lexical";import{jsx as de,jsxs as Rc}from"react/jsx-runtime";var Bt=()=>Rc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[de("circle",{cx:"4",cy:"5",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),de("circle",{cx:"4",cy:"10",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),de("circle",{cx:"4",cy:"15",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),de("path",{d:"M17 5H7",stroke:"currentColor",strokeWidth:"1.5"}),de("path",{d:"M17 10H7",stroke:"currentColor",strokeWidth:"1.5"}),de("path",{d:"M17 15H7",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as Ic,ListItemNode as Pc,ListNode as Mc}from"@lexical/list";var kn={type:"element",dependencies:[Mc,Pc],export:(e,t)=>Ic(e)?te(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:ce("bullet")};var Nn=[M([{ChildComponent:Bt,isActive:({selection:e})=>{if(!Oc(e))return!1;for(let t of e.getNodes()){if(Gt(t)&&t.getListType()==="bullet")continue;let o=t.getParent();if(Gt(o)&&o.getListType()==="bullet")continue;let r=o?.getParent();if(!(Gt(r)&&r.getListType()==="bullet"))return!1}return!0},key:"unorderedList",label:({i18n:e})=>e.t("lexical:unorderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(vn,void 0)},order:11}])],Hc=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,markdownTransformers:[kn],nodes:[Dc,Ac],plugins:[{Component:se,position:"normal"}],slashMenu:{groups:[ae([{Icon:Bt,key:"unorderedList",keywords:["unordered list","ul"],label:({i18n:t})=>t.t("lexical:unorderedList:label"),onSelect:({editor:t})=>{t.dispatchCommand(vn,void 0)}}])]},toolbarFixed:{groups:Nn},toolbarInline:{groups:Nn}})}),Bc=h(Hc);function Fn({converters:e,lexicalPluginData:t}){return{root:{type:"root",children:_n({converters:e,lexicalPluginNodes:t?.jsonContent?.root?.children||[],parentNodeType:"root"}),direction:t?.jsonContent?.root?.direction||"ltr",format:t?.jsonContent?.root?.format||"",indent:t?.jsonContent?.root?.indent||0,version:1}}}function _n({converters:e,lexicalPluginNodes:t,parentNodeType:o}){if(!t?.length)return[];let r=e.find(n=>n.nodeTypes.includes("unknown"));return t.map((n,i)=>{if(n.type==="paragraph")return Gc(e,n);if(n.type==="text"||!n.type)return n;let l=e.find(a=>a.nodeTypes.includes(n.type));return l?l.converter({childIndex:i,converters:e,lexicalPluginNode:n,parentNodeType:o}):(console.warn("lexicalPluginToLexical > No converter found for node type: "+n.type),r?.converter({childIndex:i,converters:e,lexicalPluginNode:n,parentNodeType:o}))})||[]}function Gc(e,t){return{...t,type:"paragraph",children:_n({converters:e,lexicalPluginNodes:t.children||[],parentNodeType:"paragraph"}),version:1}}import{addClassNamesToElement as $c}from"@lexical/utils";import{DecoratorNode as Uc}from"lexical";import*as wn from"react";import{jsx as Kc}from"react/jsx-runtime";var Wc=wn.lazy(()=>import("./Component-SZVAYRJX.js").then(e=>({default:e.UnknownConvertedNodeComponent}))),be=class e extends Uc{__data;constructor({data:t,key:o}){super(o),this.__data=t}static clone(t){return new e({data:t.__data,key:t.__key})}static getType(){return"unknownConverted"}static importJSON(t){return Vc({data:t.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(t){let o=document.createElement("span");return $c(o,"unknownConverted"),o}decorate(){return Kc(Wc,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(t,o){return!1}};function Vc({data:e}){return new be({data:e})}var zc=e=>({clientFeatureProps:e,feature:({clientFunctions:t,resolvedFeatures:o})=>{let r=Object.values(t);return{clientFeatureProps:e,hooks:{load({incomingEditorState:n}){return!n||!("jsonContent"in n)?n:Fn({converters:r,lexicalPluginData:n})}},nodes:[be]}}}),jc=h(zc);var T={DOM_ELEMENT_TYPE:1,DOM_TEXT_TYPE:3,NO_DIRTY_NODES:0,HAS_DIRTY_NODES:1,FULL_RECONCILE:2,IS_NORMAL:0,IS_TOKEN:1,IS_SEGMENTED:2,IS_INERT:3,IS_BOLD:1,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_UNDERLINE:8,IS_CODE:16,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_HIGHLIGHT:128,IS_DIRECTIONLESS:1,IS_UNMERGEABLE:2,IS_ALIGN_LEFT:1,IS_ALIGN_CENTER:2,IS_ALIGN_RIGHT:3,IS_ALIGN_JUSTIFY:4,IS_ALIGN_START:5,IS_ALIGN_END:6},qh=T.IS_BOLD|T.IS_ITALIC|T.IS_STRIKETHROUGH|T.IS_UNDERLINE|T.IS_CODE|T.IS_SUBSCRIPT|T.IS_SUPERSCRIPT|T.IS_HIGHLIGHT;var Sn="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Rn="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",Qh=new RegExp("^[^"+Rn+"]*["+Sn+"]"),ex=new RegExp("^[^"+Sn+"]*["+Rn+"]"),tx={bold:T.IS_BOLD,code:T.IS_CODE,highlight:T.IS_HIGHLIGHT,italic:T.IS_ITALIC,strikethrough:T.IS_STRIKETHROUGH,subscript:T.IS_SUBSCRIPT,superscript:T.IS_SUPERSCRIPT,underline:T.IS_UNDERLINE},ox={directionless:T.IS_DIRECTIONLESS,unmergeable:T.IS_UNMERGEABLE},rx={center:T.IS_ALIGN_CENTER,end:T.IS_ALIGN_END,justify:T.IS_ALIGN_JUSTIFY,left:T.IS_ALIGN_LEFT,right:T.IS_ALIGN_RIGHT,start:T.IS_ALIGN_START},nx={[T.IS_ALIGN_CENTER]:"center",[T.IS_ALIGN_END]:"end",[T.IS_ALIGN_JUSTIFY]:"justify",[T.IS_ALIGN_LEFT]:"left",[T.IS_ALIGN_RIGHT]:"right",[T.IS_ALIGN_START]:"start"},ix={normal:T.IS_NORMAL,segmented:T.IS_SEGMENTED,token:T.IS_TOKEN},lx={[T.IS_NORMAL]:"normal",[T.IS_SEGMENTED]:"segmented",[T.IS_TOKEN]:"token"};function Pn({converters:e,slateData:t}){return{root:{type:"root",children:Mn({canContainParagraphs:!0,converters:e,parentNodeType:"root",slateNodes:t}),direction:"ltr",format:"",indent:0,version:1}}}function Mn({canContainParagraphs:e,converters:t,parentNodeType:o,slateNodes:r}){if(!t?.length)return[];let n=t.find(i=>i.nodeTypes.includes("unknown"));return r.map((i,l)=>{if(!("type"in i))return e?In(t,i):Zc(i);if(i.type==="p")return In(t,i);let a=t.find(s=>s.nodeTypes.includes(i.type));return a?a.converter({childIndex:l,converters:t,parentNodeType:o,slateNode:i}):(console.warn("slateToLexical > No converter found for node type: "+i.type),n?.converter({childIndex:l,converters:t,parentNodeType:o,slateNode:i}))})||[]}function In(e,t){return{type:"paragraph",children:Mn({canContainParagraphs:!1,converters:e,parentNodeType:"paragraph",slateNodes:t.children||[]}),direction:"ltr",format:"",indent:0,textFormat:0,version:1}}function Zc(e){return{type:"text",detail:0,format:Jc(e),mode:"normal",style:"",text:e.text,version:1}}function Jc(e){let t=0;return e.bold&&(t=t|T.IS_BOLD),e.italic&&(t=t|T.IS_ITALIC),e.strikethrough&&(t=t|T.IS_STRIKETHROUGH),e.underline&&(t=t|T.IS_UNDERLINE),e.subscript&&(t=t|T.IS_SUBSCRIPT),e.superscript&&(t=t|T.IS_SUPERSCRIPT),e.code&&(t=t|T.IS_CODE),t}import{addClassNamesToElement as Xc}from"@lexical/utils";import{DecoratorNode as Yc}from"lexical";import*as An from"react";import{jsx as ed}from"react/jsx-runtime";var qc=An.lazy(()=>import("./Component-6AVANNNR.js").then(e=>({default:e.UnknownConvertedNodeComponent}))),Ee=class e extends Yc{__data;constructor({data:t,key:o}){super(o),this.__data=t}static clone(t){return new e({data:t.__data,key:t.__key})}static getType(){return"unknownConverted"}static importJSON(t){return Qc({data:t.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(t){let o=document.createElement("span");return Xc(o,"unknownConverted"),o}decorate(){return ed(qc,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(t,o){return!1}};function Qc({data:e}){return new Ee({data:e})}var td=e=>({clientFeatureProps:e,feature:({clientFunctions:t})=>{let o=Object.values(t);return{clientFeatureProps:e,hooks:{load({incomingEditorState:r}){return!r||!Array.isArray(r)||"root"in r?r:Pn({converters:o,slateData:r})}},nodes:[Ee]}}}),od=h(td);import{$setBlocksType as Hn}from"@lexical/selection";import{$createParagraphNode as Bn,$getSelection as Gn,$isParagraphNode as Dn,$isRangeSelection as rd}from"lexical";var On=[M([{ChildComponent:xe,isActive:({selection:e})=>{if(!rd(e))return!1;for(let t of e.getNodes())if(!Dn(t)&&!Dn(t.getParent()))return!1;return!0},key:"paragraph",label:({i18n:e})=>e.t("lexical:paragraph:label2"),onSelect:({editor:e})=>{e.update(()=>{let t=Gn();Hn(t,()=>Bn())})},order:1}])],nd=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,slashMenu:{groups:[A([{Icon:xe,key:"paragraph",keywords:["normal","paragraph","p","text"],label:({i18n:t})=>t.t("lexical:paragraph:label"),onSelect:({editor:t})=>{t.update(()=>{let o=Gn();Hn(o,()=>Bn())})}}])]},toolbarFixed:{groups:On},toolbarInline:{groups:On}})}),id=h(nd);import{$isNodeSelection as Ed}from"lexical";import{jsx as ke,jsxs as ld}from"react/jsx-runtime";var $t=()=>ld("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[ke("g",{clipPath:"url(#clip0_4397_10817)",children:ke("path",{d:"M7.75 12.25L15.25 4.75M15.25 4.75H11.5M15.25 4.75V8.5M13 11.5V13.75C13 14.5784 12.3284 15.25 11.5 15.25H6.25C5.42157 15.25 4.75 14.5784 4.75 13.75V8.5C4.75 7.67157 5.42157 7 6.25 7H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),ke("defs",{children:ke("clipPath",{id:"clip0_4397_10817",children:ke("rect",{fill:"currentColor",height:"12",transform:"translate(4 4)",width:"12"})})})]});import{useLexicalComposerContext as md}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as fd}from"@lexical/utils";import{useConfig as Cd}from"@payloadcms/ui/client";import{$getPreviousSelection as gd,$getSelection as hd,$isParagraphNode as Kn,$isRangeSelection as xd,COMMAND_PRIORITY_EDITOR as Td,createCommand as yd}from"lexical";import{useEffect as Ld}from"react";import{useLexicalComposerContext as sd}from"@lexical/react/LexicalComposerContext.js";import{useListDrawer as ad}from"@payloadcms/ui/client";import{$getNodeByKey as cd,COMMAND_PRIORITY_EDITOR as dd}from"lexical";import{useCallback as ud,useEffect as $n,useState as Un}from"react";import{jsx as Qe}from"react/jsx-runtime";var pd=({editor:e,relationTo:t,replaceNodeKey:o,value:r})=>{o?e.update(()=>{let n=cd(o);n&&n.replace(Ae({relationTo:t,value:r}))}):e.dispatchCommand(Ut,{relationTo:t,value:r})},Wn=({enabledCollectionSlugs:e})=>{let[t]=sd(),[o,r]=Un(()=>e[0]),[n,i]=Un(null),[l,a,{closeDrawer:s,isDrawerOpen:c,openDrawer:d}]=ad({collectionSlugs:e,selectedCollection:o});$n(()=>t.registerCommand(fe,u=>(i(u?.replace?u?.replace.nodeKey:null),d(),!0),dd),[t,d]);let p=ud(({collectionSlug:u,docID:m})=>{pd({editor:t,relationTo:u,replaceNodeKey:n,value:m}),s()},[t,s,n]);return $n(()=>{r(e[0])},[c,e]),Qe(l,{onSelect:p})},Vn=e=>e?.enabledCollectionSlugs?.length>0?Qe(Wn,{...e}):Qe(De,{...e,children:Qe(Wn,{...e})});import{jsx as bd}from"react/jsx-runtime";var Ut=yd("INSERT_RELATIONSHIP_COMMAND"),zn=({clientProps:e})=>{let[t]=md(),{collections:o}=Cd(),r=null;return e?.enabledCollections?r=e?.enabledCollections:e?.disabledCollections&&(r=o.filter(({slug:n})=>!e?.disabledCollections?.includes(n)).map(({slug:n})=>n)),Ld(()=>{if(!t.hasNodes([Me]))throw new Error("RelationshipPlugin: RelationshipNode not registered on editor");return t.registerCommand(Ut,n=>{let i=hd()||gd();if(xd(i)){let l=Ae(n);fd(l);let{focus:a}=i,s=a.getNode();Kn(s)&&s.getTextContentSize()===0&&s.getParent().getChildren().filter(c=>Kn(c)).length>1&&s.remove()}return!0},Td)},[t]),bd(Vn,{enabledCollectionSlugs:r})};var kd=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,nodes:[Me],plugins:[{Component:zn,position:"normal"}],slashMenu:{groups:[A([{Icon:$t,key:"relationship",keywords:["relationship","relation","rel"],label:({i18n:t})=>t.t("lexical:relationship:label"),onSelect:({editor:t})=>{t.dispatchCommand(fe,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:$t,isActive:({selection:t})=>{if(!Ed(t)||!t.getNodes().length)return!1;let o=t.getNodes()[0];return ro(o)},key:"relationship",label:({i18n:t})=>t.t("lexical:relationship:label"),onSelect:({editor:t})=>{t.dispatchCommand(fe,{replace:!1})}}])]}})}),Nd=h(kd);import{useLexicalComposerContext as Gd}from"@lexical/react/LexicalComposerContext.js";import{useScrollInfo as $d,useThrottledEffect as Ud,useTranslation as Wd}from"@payloadcms/ui/client";import*as U from"react";import{useMemo as Vd}from"react";import{mergeRegister as vd}from"@lexical/utils";import{$getSelection as Fd}from"lexical";import{useCallback as _d,useEffect as et,useState as Wt}from"react";import{jsx as wd}from"react/jsx-runtime";var Vt="toolbar-popup__button",Ne=({children:e,editor:t,item:o})=>{let[r,n]=Wt(!0),[i,l]=Wt(!1),[a,s]=Wt(Vt),c=S(),d=_d(()=>{t.getEditorState().read(()=>{let p=Fd();if(o.isActive){let u=o.isActive({editor:t,editorConfigContext:c,selection:p});i!==u&&l(u)}if(o.isEnabled){let u=o.isEnabled({editor:t,editorConfigContext:c,selection:p});r!==u&&n(u)}})},[i,t,c,r,o]);return et(()=>{d()},[d]),et(()=>(document.addEventListener("mouseup",d),()=>{document.removeEventListener("mouseup",d)}),[d]),et(()=>vd(t.registerUpdateListener(()=>{d()})),[t,d]),et(()=>{s([Vt,r===!1?"disabled":"",i?"active":"",o?.key?`${Vt}-`+o.key:""].filter(Boolean).join(" "))},[r,i,a,o.key]),wd("button",{className:a,onClick:()=>{if(r!==!1)return t._updateTags=new Set([...t._updateTags,"toolbar"]),t.focus(()=>{o.onSelect({editor:t,isActive:i})}),!0},onMouseDown:p=>{p.preventDefault()},type:"button",children:e})};import Yn,{useCallback as Md,useEffect as jt}from"react";import{mergeRegister as Ad}from"@lexical/utils";import{useTranslation as Dd}from"@payloadcms/ui/client";import{$getSelection as Od}from"lexical";import tt,{useCallback as Sd,useEffect as ve,useMemo as Rd,useRef as zt,useState as ot}from"react";import{createPortal as Id}from"react-dom";import{jsx as j,jsxs as jn}from"react/jsx-runtime";var Kt="toolbar-popup__dropdown-item",Zn=tt.createContext(null);function Jn({active:e,children:t,editor:o,enabled:r,item:n,title:i}){let[l,a]=ot(Kt);ve(()=>{a([Kt,r===!1?"disabled":"",e?"active":"",n?.key?`${Kt}-${n.key}`:""].filter(Boolean).join(" "))},[r,e,l,n.key]);let s=zt(null),c=tt.useContext(Zn);if(c===null)throw new Error("DropDownItem must be used within a DropDown");let{registerItem:d}=c;return ve(()=>{s?.current!=null&&d(s)},[s,d]),j("button",{className:l,onClick:()=>{r!==!1&&(o._updateTags=new Set([...o._updateTags,"toolbar"]),o.focus(()=>{n.onSelect({editor:o,isActive:e})}))},onMouseDown:p=>{p.preventDefault()},ref:s,title:i,type:"button",children:t})}function Pd({children:e,dropDownRef:t,itemsContainerClassNames:o,onClose:r}){let[n,i]=ot(),[l,a]=ot(),s=Sd(p=>{i(u=>u!=null?[...u,p]:[p])},[i]),c=p=>{if(n==null)return;let{key:u}=p;["ArrowDown","ArrowUp","Escape","Tab"].includes(u)&&p.preventDefault(),u==="Escape"||u==="Tab"?r():u==="ArrowUp"?a(m=>{if(m==null)return n[0];let f=n.indexOf(m)-1;return n[f===-1?n.length-1:f]}):u==="ArrowDown"&&a(m=>m==null?n[0]:n[n.indexOf(m)+1])},d=Rd(()=>({registerItem:s}),[s]);return ve(()=>{n!=null&&l==null&&a(n[0]),l!=null&&l?.current!=null&&l.current.focus()},[n,l]),j(Zn.Provider,{value:d,children:j("div",{className:(o??["toolbar-popup__dropdown-items"]).join(" "),onKeyDown:c,ref:t,children:e})})}function Xn({Icon:e,buttonAriaLabel:t,buttonClassName:o,children:r,disabled:n=!1,itemsContainerClassNames:i,label:l,stopCloseOnClickSelf:a}){let s=zt(null),c=zt(null),[d,p]=ot(!1),u=()=>{p(!1),c?.current!=null&&c.current.focus()};ve(()=>{let f=c.current,C=s.current;if(d&&f!==null&&C!==null){let{left:y,top:x}=f.getBoundingClientRect(),N=window.scrollY||document.documentElement.scrollTop;C.style.top=`${x+N+f.offsetHeight+5}px`,C.style.left=`${Math.min(y-5,window.innerWidth-C.offsetWidth-20)}px`}},[s,c,d]),ve(()=>{let f=c.current;if(f!==null&&d){let C=y=>{let{target:x}=y;a!=null&&s.current!=null&&s.current.contains(x)||f.contains(x)||p(!1)};return document.addEventListener("click",C),()=>{document.removeEventListener("click",C)}}},[s,c,d,a]);let m=Id(j(Pd,{dropDownRef:s,itemsContainerClassNames:i,onClose:u,children:r}),document.body);return jn(tt.Fragment,{children:[jn("button",{"aria-label":t,className:o+(d?" active":""),disabled:n,onClick:f=>{f.preventDefault(),p(!d)},onMouseDown:f=>{f.preventDefault()},ref:c,type:"button",children:[e&&j(e,{}),l&&j("span",{className:"toolbar-popup__dropdown-label",children:l}),j("i",{className:"toolbar-popup__dropdown-caret"})]}),d&&j(tt.Fragment,{children:m})]})}import{jsx as Fe,jsxs as Bd}from"react/jsx-runtime";var Zt="toolbar-popup__dropdown",Hd=({active:e,anchorElem:t,editor:o,enabled:r,item:n})=>{let{i18n:i}=Dd();if(n.Component)return n?.Component&&Fe(n.Component,{active:e,anchorElem:t,editor:o,enabled:r,item:n},n.key);let l=n.key;return n.label&&(l=typeof n.label=="function"?n.label({i18n:i}):n.label),l.length>25&&(l=l.substring(0,25)+"..."),Bd(Jn,{active:e,editor:o,enabled:r,item:n,children:[n?.ChildComponent&&Fe(n.ChildComponent,{}),Fe("span",{className:"text",children:l})]},n.key)},oe=({Icon:e,anchorElem:t,classNames:o,editor:r,groupKey:n,items:i,itemsContainerClassNames:l,label:a,maxActiveItems:s,onActiveChange:c})=>{let[d,p]=Yn.useState([]),[u,m]=Yn.useState([]),f=S(),C=Md(()=>{r.getEditorState().read(()=>{let y=Od(),x=[],N=[],v=[];for(let g of i)g.isActive&&(!s||x.length<s)&&g.isActive({editor:r,editorConfigContext:f,selection:y})&&(x.push(g.key),N.push(g)),g.isEnabled?g.isEnabled({editor:r,editorConfigContext:f,selection:y})&&v.push(g.key):v.push(g.key);p(x),m(v),c&&c({activeItems:N})})},[r,f,i,s,c]);return jt(()=>{C()},[C]),jt(()=>(document.addEventListener("mouseup",C),()=>{document.removeEventListener("mouseup",C)}),[C]),jt(()=>Ad(r.registerUpdateListener(()=>{C()})),[r,C]),Fe(Xn,{Icon:e,buttonAriaLabel:`${n} dropdown`,buttonClassName:[Zt,`${Zt}-${n}`,...o||[]].filter(Boolean).join(" "),itemsContainerClassNames:[`${Zt}-items`,...l||[]],label:a,children:i.length&&i.map(y=>Fe(Hd,{active:d.includes(y.key),anchorElem:t,editor:r,enabled:u.includes(y.key),item:y},y.key))},n)};import{jsx as H,jsxs as Zd}from"react/jsx-runtime";function Kd({anchorElem:e,editor:t,item:o}){return o.Component?o?.Component&&H(o.Component,{anchorElem:e,editor:t,item:o},o.key):H(Ne,{editor:t,item:o,children:o?.ChildComponent&&H(o.ChildComponent,{})},o.key)}function zd({anchorElem:e,editor:t,editorConfig:o,group:r,index:n}){let{i18n:i}=Wd(),[l,a]=U.useState(null),[s,c]=U.useState(null);U.useEffect(()=>{r?.type==="dropdown"&&r.items.length&&r.ChildComponent?c(()=>r.ChildComponent):c(null)},[r]);let d=({activeItems:p})=>{if(!p.length){r?.type==="dropdown"&&r.items.length&&r.ChildComponent?(c(()=>r.ChildComponent),a(null)):(c(null),a(null));return}let u=p[0],m=u.key;u.label&&(m=typeof u.label=="function"?u.label({i18n:i}):u.label),m.length>25&&(m=m.substring(0,25)+"..."),a(m),c(()=>u.ChildComponent)};return Zd("div",{className:`fixed-toolbar__group fixed-toolbar__group-${r.key}`,children:[r.type==="dropdown"&&r.items.length&&(s?H(oe,{Icon:s,anchorElem:e,editor:t,groupKey:r.key,items:r.items,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:l,maxActiveItems:1,onActiveChange:d}):H(oe,{anchorElem:e,editor:t,groupKey:r.key,items:r.items,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:l,maxActiveItems:1,onActiveChange:d})),r.type==="buttons"&&r.items.length&&r.items.map(p=>H(Kd,{anchorElem:e,editor:t,item:p},p.key)),n<o.features.toolbarFixed?.groups.length-1&&H("div",{className:"divider"})]},r.key)}function jd({anchorElem:e,clientProps:t,editor:o,editorConfig:r,parentWithFixedToolbar:n}){let i=U.useRef(null),{y:l}=$d(),a=Vd(()=>{if(!n||t?.disableIfParentHasFixedToolbar)return null;let c=n.editorContainerRef.current.previousElementSibling;for(;c;){if(c.classList.contains("fixed-toolbar"))return c;c=c.previousElementSibling}return null},[t?.disableIfParentHasFixedToolbar,n]);return Ud(()=>{if(!a)return;let s=i.current;if(!s)return;let c=s.getBoundingClientRect(),d=a.getBoundingClientRect();if(!(c.bottom<d.top||c.top>d.bottom))i.current.className="fixed-toolbar fixed-toolbar--overlapping",a.className="fixed-toolbar fixed-toolbar--hide";else{if(!i.current.classList.contains("fixed-toolbar--overlapping"))return;i.current.className="fixed-toolbar",a.className="fixed-toolbar"}},50,[i,a,l]),H("div",{className:"fixed-toolbar",onFocus:s=>{s.stopPropagation()},ref:i,children:o.isEditable()&&H(U.Fragment,{children:r?.features&&r.features?.toolbarFixed?.groups.map((s,c)=>H(zd,{anchorElem:e,editor:o,editorConfig:r,group:s,index:c},s.key))})})}var qn=e=>{if(e.parentEditor?.editorConfig){if(e.parentEditor?.editorConfig.resolvedFeatureMap.has("toolbarFixed"))return e.parentEditor;if(e.parentEditor)return qn(e.parentEditor)}return!1},Qn=({anchorElem:e,clientProps:t})=>{let[o]=Gd(),r=S(),{editorConfig:n}=r,i=t.applyToFocusedEditor&&r.focusedEditor?.editor||o,l=t.applyToFocusedEditor&&r.focusedEditor?.editorConfig||n,a=qn(r);return t?.disableIfParentHasFixedToolbar&&a||!l?.features?.toolbarFixed?.groups?.length?null:H(jd,{anchorElem:e,editor:i,editorConfig:l,parentWithFixedToolbar:a})};var Jd=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,plugins:[{Component:Qn,position:"aboveContainer"}]})}),Xd=h(Jd);import{useLexicalComposerContext as Yd}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as oi}from"@lexical/utils";import{$getSelection as ri,$isRangeSelection as ei,$isTextNode as qd,COMMAND_PRIORITY_LOW as Qd,SELECTION_CHANGE_COMMAND as eu}from"lexical";import{useCallback as _e,useEffect as we,useRef as ti,useState as tu}from"react";import*as ue from"react";import{createPortal as ou}from"react-dom";function Jt(e,t){let o=e.getRangeAt(0),r;if(e.anchorNode===t){let n=t;for(;n.firstElementChild!=null;)n=n.firstElementChild;r=n.getBoundingClientRect()}else r=o.getBoundingClientRect();return r}function rt(e){let{alwaysDisplayOnTop:t=!1,anchorElem:o,anchorFlippedOffset:r=0,floatingElem:n,horizontalOffset:i=5,horizontalPosition:l="left",specialHandlingForCaret:a=!1,targetRect:s,verticalGap:c=10}=e,d=o.parentElement;if(s===null||d==null){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}let p=n.getBoundingClientRect(),u=o.getBoundingClientRect(),m=d.getBoundingClientRect(),f=s.top-p.height-c,C=s.left-i;l==="center"&&(C=s.left+s.width/2-p.width/2);let y=0;return!t&&f<m.top&&!a&&(y=p.height+s.height+c*2,f+=y),l==="center"?C+p.width>m.right?C=m.right-p.width-i:C<m.left&&(C=m.left+i):C+p.width>m.right&&(C=m.right-p.width-i),C-=u.left,n.style.opacity="1",a&&r!==0?(f-=u.bottom-r+p.height-3,n.style.transform=`translate(${C}px, ${f}px) rotate(180deg)`):(f-=u.top,n.style.transform=`translate(${C}px, ${f}px)`),y}import{jsx as B,jsxs as ii}from"react/jsx-runtime";function ru({anchorElem:e,editor:t,item:o}){return o.Component?o?.Component&&B(o.Component,{anchorElem:e,editor:t,item:o},o.key):B(Ne,{editor:t,item:o,children:o?.ChildComponent&&B(o.ChildComponent,{})},o.key)}function nu({anchorElem:e,editor:t,group:o,index:r}){let{editorConfig:n}=S(),[i,l]=ue.useState(null);ue.useEffect(()=>{o?.type==="dropdown"&&o.items.length&&o.ChildComponent?l(()=>o.ChildComponent):l(null)},[o]);let a=({activeItems:s})=>{if(!s.length){o?.type==="dropdown"&&o.items.length&&o.ChildComponent?l(()=>o.ChildComponent):l(null);return}let c=s[0];l(()=>c.ChildComponent)};return ii("div",{className:`inline-toolbar-popup__group inline-toolbar-popup__group-${o.key}`,children:[o.type==="dropdown"&&o.items.length&&(i?B(oe,{Icon:i,anchorElem:e,editor:t,groupKey:o.key,items:o.items,maxActiveItems:1,onActiveChange:a}):B(oe,{anchorElem:e,editor:t,groupKey:o.key,items:o.items,maxActiveItems:1,onActiveChange:a})),o.type==="buttons"&&o.items.length&&o.items.map(s=>B(ru,{anchorElem:e,editor:t,item:s},s.key)),r<n.features.toolbarInline?.groups.length-1&&B("div",{className:"divider"})]},o.key)}function iu({anchorElem:e,editor:t}){let o=ti(null),r=ti(null),{editorConfig:n}=S(),i=_e(()=>{if(o?.current){let c=o.current.style.opacity==="0",d=o.current.style.pointerEvents==="none";c||(o.current.style.opacity="0"),d||(o.current.style.pointerEvents="none")}},[o]),l=_e(c=>{if(o?.current&&(c.buttons===1||c.buttons===3)){let d=o.current.style.opacity==="0",p=o.current.style.pointerEvents==="none";if(!d||!p){let u=c.clientX,m=c.clientY,f=document.elementFromPoint(u,m);o.current.contains(f)||i()}}},[i]),a=_e(()=>{o?.current&&(o.current.style.opacity!=="1"&&(o.current.style.opacity="1"),o.current.style.pointerEvents!=="auto"&&(o.current.style.pointerEvents="auto"))},[]);we(()=>(document.addEventListener("mousemove",l),document.addEventListener("mouseup",a),()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a)}),[o,l,a]);let s=_e(()=>{let c=ri(),d=window.getSelection();if(o.current===null)return;let p=e.querySelector(":scope > .link-editor"),u=p!==null&&"style"in p&&p?.style?.opacity==="1",m=t.getRootElement();if(c!==null&&d!==null&&!d.isCollapsed&&m!==null&&m.contains(d.anchorNode)){let f=Jt(d,m),C=rt({alwaysDisplayOnTop:u,anchorElem:e,floatingElem:o.current,horizontalPosition:"center",targetRect:f});r.current&&rt({anchorElem:o.current,anchorFlippedOffset:C,floatingElem:r.current,horizontalOffset:5,horizontalPosition:"center",specialHandlingForCaret:!0,targetRect:f,verticalGap:10})}else i()},[t,i,e]);return we(()=>{let c=e.parentElement,d=()=>{t.getEditorState().read(()=>{s()})};return window.addEventListener("resize",d),c&&c.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),c&&c.removeEventListener("scroll",d)}},[t,s,e]),we(()=>(t.getEditorState().read(()=>{s()}),oi(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{s()})}),t.registerCommand(eu,()=>(s(),!1),Qd))),[t,s]),ii("div",{className:"inline-toolbar-popup",ref:o,children:[B("div",{className:"caret",ref:r}),t.isEditable()&&B(ue.Fragment,{children:n?.features&&n.features?.toolbarInline?.groups.map((c,d)=>B(nu,{anchorElem:e,editor:t,group:c,index:d},c.key))})]})}function lu(e,t){let[o,r]=tu(!1),n=_e(()=>{e.getEditorState().read(()=>{if(e.isComposing())return;let i=ri(),l=window.getSelection(),a=e.getRootElement();if(l!==null&&(!ei(i)||a===null||!a.contains(l.anchorNode))){r(!1);return}if(!ei(i))return;if(i.getTextContent()!==""){let c=i.getNodes(),d=!1;for(let p of c)if(qd(p)){r(!0),d=!0;break}d||r(!1)}else r(!1);let s=i.getTextContent().replace(/\n/g,"");if(!i.isCollapsed()&&s===""){r(!1);return}})},[e]);return we(()=>(document.addEventListener("selectionchange",n),document.addEventListener("mouseup",n),()=>{document.removeEventListener("selectionchange",n),document.removeEventListener("mouseup",n)}),[n]),we(()=>oi(e.registerUpdateListener(()=>{n()}),e.registerRootListener(()=>{e.getRootElement()===null&&r(!1)})),[e,n]),o?ou(B(iu,{anchorElem:t,editor:e}),t):null}var ni=({anchorElem:e})=>{let[t]=Yd();return lu(t,e)};var su=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,plugins:[{Component:ni,position:"floatingAnchorElem"}]})}),au=h(su);import{$isNodeSelection as Su}from"lexical";import{jsx as Xt,jsxs as cu}from"react/jsx-runtime";var Yt=()=>cu("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Xt("path",{d:"M14.6667 4H5.33333C4.59695 4 4 4.59695 4 5.33333V14.6667C4 15.403 4.59695 16 5.33333 16H14.6667C15.403 16 16 15.403 16 14.6667V5.33333C16 4.59695 15.403 4 14.6667 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Xt("path",{d:"M7.99984 9.33366C8.73622 9.33366 9.33317 8.73671 9.33317 8.00033C9.33317 7.26395 8.73622 6.66699 7.99984 6.66699C7.26346 6.66699 6.6665 7.26395 6.6665 8.00033C6.6665 8.73671 7.26346 9.33366 7.99984 9.33366Z",stroke:"#currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),Xt("path",{d:"M16 11.9995L13.9427 9.94214C13.6926 9.69218 13.3536 9.55176 13 9.55176C12.6464 9.55176 12.3074 9.69218 12.0573 9.94214L6 15.9995",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});import{useLexicalComposerContext as Tu}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as yu,mergeRegister as Lu}from"@lexical/utils";import{useConfig as bu}from"@payloadcms/ui/client";import{$getPreviousSelection as Eu,$getSelection as ku,$isParagraphNode as si,$isRangeSelection as Nu,COMMAND_PRIORITY_EDITOR as vu,createCommand as Fu}from"lexical";import{useEffect as _u}from"react";import{useLexicalComposerContext as du}from"@lexical/react/LexicalComposerContext.js";import{useListDrawer as uu}from"@payloadcms/ui/client";import{$getNodeByKey as pu,COMMAND_PRIORITY_EDITOR as mu}from"lexical";import{useCallback as fu,useEffect as Cu,useState as gu}from"react";import{jsx as qt}from"react/jsx-runtime";var hu=({editor:e,relationTo:t,replaceNodeKey:o,value:r})=>{o?e.update(()=>{let n=pu(o);n&&n.replace(He({data:{fields:null,relationTo:t,value:r}}))}):e.dispatchCommand(Qt,{fields:null,relationTo:t,value:r})},xu=({enabledCollectionSlugs:e})=>{let[t]=du(),[o,r]=gu(null),[n,i,{closeDrawer:l,openDrawer:a}]=uu({collectionSlugs:e,uploads:!0});Cu(()=>t.registerCommand(Ce,c=>(r(c?.replace?c?.replace.nodeKey:null),a(),!0),mu),[t,a]);let s=fu(({collectionSlug:c,docID:d})=>{hu({editor:t,relationTo:c,replaceNodeKey:o,value:d}),l()},[t,l,o]);return qt(n,{onSelect:s})},li=e=>qt(De,{...e,uploads:!0,children:qt(xu,{...e})});import{jsx as wu}from"react/jsx-runtime";var Qt=Fu("INSERT_UPLOAD_COMMAND"),ai=({clientProps:e})=>{let[t]=Tu(),{collections:o}=bu();return _u(()=>{if(!t.hasNodes([Oe]))throw new Error("UploadPlugin: UploadNode not registered on editor");return Lu(t.registerCommand(Qt,r=>(t.update(()=>{let n=ku()||Eu();if(Nu(n)){let i=He({data:{id:r.id,fields:r.fields,relationTo:r.relationTo,value:r.value}});yu(i);let{focus:l}=n,a=l.getNode();si(a)&&a.getTextContentSize()===0&&a.getParent().getChildren().filter(s=>si(s)).length>1&&a.remove()}}),!0),vu))},[t]),wu(li,{enabledCollectionSlugs:o.map(({slug:r})=>r)})};var Ru=e=>({clientFeatureProps:e,feature:()=>({clientFeatureProps:e,nodes:[Oe],plugins:[{Component:ai,position:"normal"}],slashMenu:{groups:[A([{Icon:Yt,key:"upload",keywords:["upload","image","file","img","picture","photo","media"],label:({i18n:t})=>t.t("lexical:upload:label"),onSelect:({editor:t})=>{t.dispatchCommand(Ce,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:Yt,isActive:({selection:t})=>{if(!Su(t)||!t.getNodes().length)return!1;let o=t.getNodes()[0];return no(o)},key:"upload",label:({i18n:t})=>t.t("lexical:upload:label"),onSelect:({editor:t})=>{t.dispatchCommand(Ce,{replace:!1})}}])]}})}),Iu=h(Ru);import{ShimmerEffect as Pu,useClientFunctions as Mu,useFieldProps as Au}from"@payloadcms/ui/client";import ci,{Suspense as Du,lazy as Ou,useEffect as Hu,useState as eo}from"react";import{jsx as nt,jsxs as $u}from"react/jsx-runtime";var Bu=Ou(()=>import("./Field-U5PHZTST.js").then(e=>({default:e.RichText}))),Gu=e=>{let{admin:t,lexicalEditorConfig:o,richTextComponentMap:r}=e,{schemaPath:n}=Au(),i=Mu(),[l,a]=eo(!1),[s,c]=eo([]),[d,p]=eo(null),u=r.get("features");u=u.sort((f,C)=>f.order-C.order);let m=0;for(let f of u){let C=Array.from(r.keys()).filter(y=>y.startsWith(`feature.${f.key}.components.`));m+=1,m+=C.length}return Hu(()=>{if(!l){let f=[],C=0;if(Object.entries(i).forEach(([y,x])=>{y.startsWith(`lexicalFeature.${n}.`)&&(y.includes(".components.")||f.push(x),C++)}),C===m){c(f),a(!0);let y=Be({clientFunctions:i,schemaPath:n,unSanitizedEditorConfig:{features:f,lexical:o}});p(he(o||ge,y,t))}}},[t,l,i,n,u.length,s,d,o,m]),l?nt(Du,{fallback:nt(Pu,{height:"35vh"}),children:d&&nt(Bu,{...e,editorConfig:d})}):nt(ci.Fragment,{children:Array.isArray(u)&&u.map(f=>{let y=Array.from(r.keys()).filter(x=>x.startsWith(`feature.${f.key}.components.`)).map(x=>r.get(x));return $u(ci.Fragment,{children:[y?.length?y.map(x=>x):null,f.ClientComponent]},f.key)})})};function it(e,t=new WeakMap){if(e===null)return null;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let o=new Map;t.set(e,o);for(let[r,n]of e.entries())o.set(r,it(n,t));return o}if(e instanceof Set){let o=new Set;t.set(e,o);for(let r of e.values())o.add(it(r,t));return o}if(typeof e=="object"&&e!==null){if("$$typeof"in e&&typeof e.$$typeof=="symbol")return e;let o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));t.set(e,o);for(let r in e)(e.hasOwnProperty(r)||Object.getOwnPropertySymbols(e).includes(r))&&(o[r]=it(e[r],t));return o}return e}function Uu(...e){return e.filter(Boolean).join(" ")}var lt=new WeakMap;function di(e){let t=e.changedTouches[0];return t===void 0?null:[t.clientX,t.clientY]}function st(e,t){let o=lt.get(e);if(o===void 0){let r=new Set,n=l=>{o!==void 0&&(o.start=di(l))},i=l=>{if(o===void 0)return;let{start:a}=o;if(a===null)return;let s=di(l);for(let c of r)s!==null&&c([s[0]-a[0],s[1]-a[1]],l)};e.addEventListener("touchstart",n),e.addEventListener("touchend",i),o={handleTouchend:i,handleTouchstart:n,listeners:r,start:null},lt.set(e,o)}return o.listeners.add(t),()=>{Wu(e,t)}}function Wu(e,t){let o=lt.get(e);if(o===void 0)return;let{listeners:r}=o;r.delete(t),r.size===0&&(lt.delete(e),e.removeEventListener("touchstart",o.handleTouchstart),e.removeEventListener("touchend",o.handleTouchend))}function Vu(e,t){return st(e,(o,r)=>{let[n,i]=o;n<0&&-n>Math.abs(i)&&t(n,r)})}function Ku(e,t){return st(e,(o,r)=>{let[n,i]=o;n>0&&n>Math.abs(i)&&t(n,r)})}function zu(e,t){return st(e,(o,r)=>{let[n,i]=o;i<0&&-i>Math.abs(n)&&t(n,r)})}function ju(e,t){return st(e,(o,r)=>{let[n,i]=o;i>0&&i>Math.abs(n)&&t(n,r)})}export{Si as AlignFeatureClientComponent,Oi as BlockquoteFeatureClientComponent,gl as BlocksFeatureClientComponent,Bl as BoldFeatureClientComponent,D as CAN_USE_DOM,Lc as ChecklistFeatureClientComponent,ui as EditorConfigProvider,Xd as FixedToolbarFeatureClientComponent,bs as HeadingFeatureClientComponent,Is as HorizontalRuleFeatureClientComponent,Hs as IndentFeatureClientComponent,Vl as InlineCodeFeatureClientComponent,au as InlineToolbarFeatureClientComponent,Zl as ItalicFeatureClientComponent,jc as LexicalPluginToLexicalFeatureClientComponent,ic as LinkFeatureClientComponent,Sc as OrderedListFeatureClientComponent,id as ParagraphFeatureClientComponent,mi as Point,Ci as Rect,Nd as RelationshipFeatureClientComponent,yi as RichTextCell,Gu as RichTextField,od as SlateToLexicalFeatureClientComponent,Ql as StrikethroughFeatureClientComponent,rs as SubscriptFeatureClientComponent,ss as SuperscriptFeatureClientComponent,Sl as TestRecorderFeatureClientComponent,Ne as ToolbarButton,oe as ToolbarDropdown,Al as TreeViewFeatureClientComponent,ps as UnderlineFeatureClientComponent,Bc as UnorderedListFeatureClientComponent,Iu as UploadFeatureClientComponent,ju as addSwipeDownListener,Vu as addSwipeLeftListener,Ku as addSwipeRightListener,zu as addSwipeUpListener,it as cloneDeep,Lt as createBlockNode,h as createClientComponent,ge as defaultEditorLexicalConfig,Jt as getDOMRangeRect,ne as getSelectedNode,Ft as invariant,pi as isHTMLElement,fi as isPoint,Uu as joinClasses,he as sanitizeClientEditorConfig,lo as sanitizeClientFeatures,rt as setFloatingElemPosition,Ye as setFloatingElemPositionForLinkEditor,ee as toolbarAddDropdownGroupWithItems,Et as toolbarFeatureButtonsGroupWithItems,R as toolbarFormatGroupWithItems,M as toolbarTextDropdownGroupWithItems,S as useEditorConfigContext};
|
|
34
|
+
`},[e,t]),m=q((C,y)=>{o(b=>{let E=t.length-1,S=t[E];if(S&&S.name===C){if(C==="type")return[...t.slice(0,E),{...S,value:S.value+y}];if(S.value===y)return[...t.slice(0,E),{...S,count:S.count+1}]}return[...b,{name:C,count:1,value:y}]})},[t,o]);Io(()=>{let C=b=>{if(!r)return;let E=b.key;_l(b)?m("selectAll",""):Po.has(E)?m("press",b.key):[...E].length>1?m("keydown",b.key):m("type",b.key)},y=b=>{if(!r)return;let E=b.key;!Po.has(E)&&[...E].length>1&&m("keyup",b.key)};return e.registerRootListener((b,E)=>{E!==null&&(E.removeEventListener("keydown",C),E.removeEventListener("keyup",y)),b!==null&&(b.addEventListener("keydown",C),b.addEventListener("keyup",y))})},[e,r,m]),Io(()=>{d.current&&d.current.scrollTo(0,d.current.scrollHeight)},[p]),Et(()=>{if(t){let C=p();C!==null&&a(C),d.current&&d.current.scrollTo(0,d.current.scrollHeight)}},[p,t]),Et(()=>e.registerUpdateListener(({dirtyElements:y,dirtyLeaves:b,editorState:E})=>{if(!r)return;let S=E._selection,P=s.current,k=c.current;if(P!==S){if(b.size===0&&y.size===0&&!k){let $=window.getSelection();if($&&($.anchorNode==null||$.focusNode==null))return}s.current=S}c.current=!1;let R=p();R!==null&&a(R)}),[e,p,r,m]),Et(()=>r?e.registerUpdateListener(()=>{let y=e.getRootElement();y!==null&&i(y?.innerHTML)}):void 0,[e,r]);let f=q(C=>{r||(C.update(()=>{let y=El();y.clear();let b=yl();y.append(Ll().append(b)),b.select()}),o([])),n(y=>!y)},[r]),g=q(()=>{if(!r)return;let C=window.getSelection();if(C===null||C.anchorNode==null||C.focusNode==null)return;let{anchorNode:y,anchorOffset:b,focusNode:E,focusOffset:S}=wl(C),P=u().getRootElement(),k;y!==null&&(k=Fo(y,P));let R;E!==null&&(R=Fo(E,P)),m("snapshot",{anchorNode:y,anchorOffset:b,anchorPath:k,focusNode:E,focusOffset:S,focusPath:R})},[m,r,u]),L=q(()=>{bl(p())},[p]),x=q(()=>{kl("test.js",p())},[p]);return[Q("button",{className:`editor-dev-button ${r?"active":""}`,id:"test-recorder-button",onClick:C=>{f(u()),C.preventDefault()},title:r?"Disable test recorder":"Enable test recorder",type:"button",children:r?"Disable test recorder":"Enable test recorder"}),r?kt("div",{className:"test-recorder-output",children:[kt("div",{className:"test-recorder-toolbar",children:[Q("button",{className:"test-recorder-button",id:"test-recorder-button-snapshot",onClick:C=>{g(),C.preventDefault()},title:"Insert snapshot",type:"button",children:"Insert Snapshot"}),Q("button",{className:"test-recorder-button",id:"test-recorder-button-copy",onClick:C=>{L(),C.preventDefault()},title:"Copy to clipboard",type:"button",children:"Copy"}),Q("button",{className:"test-recorder-button",id:"test-recorder-button-download",onClick:C=>{x(),C.preventDefault()},title:"Download as a file",type:"button",children:"Download"})]}),Q("pre",{id:"test-recorder",ref:d,children:l})]}):null]}var Ao=()=>{let[e]=Tl(),[t,o]=Rl(e);return kt(Mo.Fragment,{children:[Q("p",{children:"HI"}),t,o,Q("p",{children:"DONE"})]})};var Sl=h({plugins:[{Component:Ao,position:"bottom"}]});import{useLexicalComposerContext as vl}from"@lexical/react/LexicalComposerContext.js";import{TreeView as Il}from"@lexical/react/LexicalTreeView.js";import{jsx as Fl}from"react/jsx-runtime";var Do=()=>{let[e]=vl();return Fl(Il,{editor:e,timeTravelButtonClassName:"debug-timetravel-button",timeTravelPanelButtonClassName:"debug-timetravel-panel-button",timeTravelPanelClassName:"debug-timetravel-panel",timeTravelPanelSliderClassName:"debug-timetravel-panel-slider",treeTypeButtonClassName:"debug-treetype-button",viewClassName:"tree-view-output"})};var Pl=h({plugins:[{Component:Do,position:"bottom"}]});import{$isRangeSelection as Ml,FORMAT_TEXT_COMMAND as Al}from"lexical";import{jsx as Oo}from"react/jsx-runtime";var Ho=()=>Oo("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Oo("path",{d:"M10.6772 15H6.27017V5.718H10.4172C12.6792 5.718 13.8492 6.602 13.8492 8.292C13.8492 9.098 13.1992 9.982 12.4712 10.216C13.3812 10.476 14.1742 11.256 14.1742 12.322C14.1742 14.09 12.9002 15 10.6772 15ZM8.46717 9.501H10.3262C11.3012 9.501 11.7042 9.046 11.7042 8.409C11.7042 7.72 11.2362 7.317 10.3392 7.317H8.46717V9.501ZM8.46717 11.061V13.401H10.4822C11.4702 13.401 11.9642 12.959 11.9642 12.218C11.9642 11.49 11.4702 11.061 10.4822 11.061H8.46717Z",fill:"currentColor"})});var F=e=>({type:"buttons",items:e,key:"format",order:40});var Bo={type:"text-format",format:["bold","italic"],tag:"***"},Go={type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},$o={type:"text-format",format:["bold"],tag:"**"},Uo={type:"text-format",format:["bold"],intraword:!1,tag:"__"};var Wo=[F([{ChildComponent:Ho,isActive:({selection:e})=>Ml(e)?e.hasFormat("bold"):!1,key:"bold",onSelect:({editor:e})=>{e.dispatchCommand(Al,"bold")},order:1}])],Dl=h(({featureProviderMap:e})=>{let t=[$o,Uo];return e.get("italic")&&t.push(Go,Bo),{markdownTransformers:t,toolbarFixed:{groups:Wo},toolbarInline:{groups:Wo}}});import{$isRangeSelection as Hl,FORMAT_TEXT_COMMAND as Bl}from"lexical";import{jsx as Vo,jsxs as Ol}from"react/jsx-runtime";var zo=()=>Ol("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Vo("path",{d:"M7.76465 6L3.76465 10L7.76465 14",stroke:"currentColor"}),Vo("path",{d:"M12.2354 6L16.2354 10L12.2354 14",stroke:"currentColor"})]});var Ko={type:"text-format",format:["code"],tag:"`"};var jo=[F([{ChildComponent:zo,isActive:({selection:e})=>Hl(e)?e.hasFormat("code"):!1,key:"inlineCode",onSelect:({editor:e})=>{e.dispatchCommand(Bl,"code")},order:7}])],Gl=h({markdownTransformers:[Ko],toolbarFixed:{groups:jo},toolbarInline:{groups:jo}});import{$isRangeSelection as $l,FORMAT_TEXT_COMMAND as Ul}from"lexical";import{jsx as Zo}from"react/jsx-runtime";var Xo=()=>Zo("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Zo("path",{d:"M11.311 14.2969L11.0327 15H6.18408L6.4624 14.2969C7.54639 14.2969 7.70752 14.209 7.83936 13.8721L10.8423 6.45996C10.8716 6.38672 10.8862 6.32812 10.8862 6.26953C10.8862 6.09375 10.6519 6.03516 9.80225 6.03516L10.0952 5.33203H14.9438L14.6509 6.03516C13.5669 6.03516 13.4204 6.12305 13.2886 6.45996L10.2856 13.8721C10.2563 13.9453 10.2271 14.0039 10.2271 14.0625C10.2271 14.2383 10.4614 14.2969 11.311 14.2969Z",fill:"currentColor"})});var Jo={type:"text-format",format:["italic"],tag:"*"},Yo={type:"text-format",format:["italic"],intraword:!1,tag:"_"};var qo=[F([{ChildComponent:Xo,isActive:({selection:e})=>$l(e)?e.hasFormat("italic"):!1,key:"italic",onSelect:({editor:e})=>{e.dispatchCommand(Ul,"italic")},order:2}])],Wl=h({markdownTransformers:[Jo,Yo],toolbarFixed:{groups:qo},toolbarInline:{groups:qo}});import{$isRangeSelection as zl,FORMAT_TEXT_COMMAND as Kl}from"lexical";import{jsx as Qo,jsxs as Vl}from"react/jsx-runtime";var er=()=>Vl("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Qo("path",{d:"M5.50756 12.76H7.42756C7.56256 14.215 8.82256 14.71 10.1576 14.71C11.4326 14.71 12.4226 14.14 12.4226 13.06C12.4226 12.28 11.9576 11.845 10.6676 11.605L8.70256 11.245C7.12756 10.96 5.85256 10.21 5.85256 8.335C5.85256 6.43 7.53256 5.11 9.87256 5.11C12.4226 5.11 13.9526 6.22 14.1626 8.23H12.2876C12.1526 7.18 11.2226 6.595 9.88756 6.595C8.59756 6.595 7.78756 7.27 7.78756 8.215C7.78756 9.1 8.34256 9.385 9.49756 9.61L11.5676 10.015C13.3226 10.345 14.3726 11.215 14.3726 12.94C14.3726 14.89 12.5876 16.18 10.2176 16.18C7.66756 16.18 5.70256 15.115 5.50756 12.76Z",fill:"currentColor"}),Qo("path",{d:"M4.99756 11.44H15.0026V12.19H4.99756V11.44Z",fill:"currentColor"})]});var tr={type:"text-format",format:["strikethrough"],tag:"~~"};var or=[F([{ChildComponent:er,isActive:({selection:e})=>zl(e)?e.hasFormat("strikethrough"):!1,key:"strikethrough",onSelect:({editor:e})=>{e.dispatchCommand(Kl,"strikethrough")},order:4}])],jl=h({markdownTransformers:[tr],toolbarFixed:{groups:or},toolbarInline:{groups:or}});import{$isRangeSelection as Zl,FORMAT_TEXT_COMMAND as Xl}from"lexical";import{jsx as rr}from"react/jsx-runtime";var nr=()=>rr("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:rr("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 13.258C16.7768 14.155 16.1398 14.532 15.2038 15C14.5538 15.325 14.2808 15.546 14.2418 15.78H16.7898V16.82H12.7208V16.339C12.7208 15.286 13.5918 14.675 14.3588 14.233C15.0868 13.83 15.4378 13.635 15.4378 13.232C15.4378 12.894 15.2038 12.686 14.8268 12.686C14.3848 12.686 14.1248 13.024 14.1118 13.427H12.7468C12.8248 12.426 13.5528 11.633 14.8398 11.633C15.9448 11.633 16.7768 12.257 16.7768 13.258Z",fill:"currentColor"})});var ir=[F([{ChildComponent:nr,isActive:({selection:e})=>Zl(e)?e.hasFormat("subscript"):!1,key:"subscript",onSelect:({editor:e})=>{e.dispatchCommand(Xl,"subscript")},order:5}])],Jl=h({toolbarFixed:{groups:ir},toolbarInline:{groups:ir}});import{$isRangeSelection as Yl,FORMAT_TEXT_COMMAND as ql}from"lexical";import{jsx as lr}from"react/jsx-runtime";var sr=()=>lr("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:lr("path",{d:"M10.167 15L7.45002 11.36L4.73302 15H2.91302L6.55302 10.177L3.23802 5.718H5.20102L7.54102 8.89L9.89402 5.718H11.714L8.43802 10.06L12.13 15H10.167ZM16.7768 7.252C16.7768 8.149 16.1398 8.526 15.2038 8.994C14.5538 9.319 14.2808 9.54 14.2418 9.774H16.7898V10.814H12.7208V10.333C12.7208 9.28 13.5918 8.669 14.3588 8.227C15.0868 7.824 15.4378 7.629 15.4378 7.226C15.4378 6.888 15.2038 6.68 14.8268 6.68C14.3848 6.68 14.1248 7.018 14.1118 7.421H12.7468C12.8248 6.42 13.5528 5.627 14.8398 5.627C15.9448 5.627 16.7768 6.251 16.7768 7.252Z",fill:"currentColor"})});var ar=[F([{ChildComponent:sr,isActive:({selection:e})=>Yl(e)?e.hasFormat("superscript"):!1,key:"superscript",onSelect:({editor:e})=>{e.dispatchCommand(ql,"superscript")},order:6}])],Ql=h({toolbarFixed:{groups:ar},toolbarInline:{groups:ar}});import{$isRangeSelection as ts,FORMAT_TEXT_COMMAND as os}from"lexical";import{jsx as cr,jsxs as es}from"react/jsx-runtime";var dr=()=>es("svg",{"aria-hidden":"true",className:"icon",fill:"currentColor",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[cr("path",{d:"M13.9656 11.256C13.9656 13.791 12.5096 15.156 10.0006 15.156C7.50461 15.156 6.03561 13.791 6.03561 11.23V5.718H7.76461V11.243C7.76461 12.868 8.50561 13.778 10.0006 13.778C11.4956 13.778 12.2496 12.868 12.2496 11.243V5.718H13.9656V11.256Z",fill:"currentColor"}),cr("path",{d:"M5.09961 16.3H14.9016V16.95H5.09961V16.3Z",fill:"currentColor"})]});var pr=[F([{ChildComponent:dr,isActive:({selection:e})=>ts(e)?e.hasFormat("underline"):!1,key:"underline",onSelect:({editor:e})=>{e.dispatchCommand(os,"underline")},order:3}])],rs=h({toolbarFixed:{groups:pr},toolbarInline:{groups:pr}});import{$createHeadingNode as ss,$isHeadingNode as Nr,HeadingNode as as}from"@lexical/rich-text";import{$setBlocksType as cs}from"@lexical/selection";import{$getSelection as ds,$isRangeSelection as ps}from"lexical";import{jsx as ur}from"react/jsx-runtime";var mr=()=>ur("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:ur("path",{d:"M4.639 13.5V7.074H6.196V9.648H9.076V7.074H10.642V13.5H9.076V10.836H6.196V13.5H4.639ZM11.5656 9.045V8.019C12.6636 8.019 13.1316 7.731 13.2846 7.065H14.4006V13.5H12.8436V9.045H11.5656Z",fill:"currentColor"})});import{jsx as fr}from"react/jsx-runtime";var gr=()=>fr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:fr("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM15.9796 8.973C15.9796 10.116 15.1696 10.656 14.0356 11.232C13.2256 11.646 12.8206 11.943 12.7846 12.294H15.9886V13.5H11.0566V12.951C11.0566 11.601 12.1636 10.845 13.1176 10.287C14.0356 9.756 14.5126 9.486 14.5126 8.946C14.5126 8.46 14.2156 8.145 13.6306 8.145C13.0186 8.145 12.6586 8.613 12.6226 9.198H11.1196C11.2186 7.947 12.1006 6.966 13.6396 6.966C15.0346 6.966 15.9796 7.785 15.9796 8.973Z",fill:"currentColor"})});import{jsx as Cr}from"react/jsx-runtime";var hr=()=>Cr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Cr("path",{d:"M4.139 13.5V7.074H5.696V9.648H8.576V7.074H10.142V13.5H8.576V10.836H5.696V13.5H4.139ZM16.1146 11.745C16.1146 12.744 15.2236 13.608 13.6126 13.608C12.0736 13.608 11.0926 12.762 10.9846 11.547H12.4696C12.5146 12.114 13.0006 12.456 13.6126 12.456C14.2876 12.456 14.6746 12.132 14.6746 11.619C14.6746 11.061 14.2426 10.836 13.6216 10.836H12.9826V9.738H13.6036C14.1526 9.738 14.5486 9.486 14.5486 8.937C14.5486 8.46 14.2156 8.127 13.6486 8.127C13.0366 8.127 12.6586 8.514 12.6226 9.045H11.1916C11.2726 7.929 12.1276 6.966 13.6666 6.966C15.1876 6.966 15.9706 7.848 15.9706 8.865C15.9706 9.603 15.5026 10.143 14.8186 10.269C15.6196 10.404 16.1146 10.971 16.1146 11.745Z",fill:"currentColor"})});import{jsx as xr}from"react/jsx-runtime";var Tr=()=>xr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:xr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM15.1736 7.074V10.854H16.3706V12.033H15.1736V13.5H13.6796V12.033H10.5116V10.845L13.4996 7.074H15.1736ZM13.6796 8.46L11.8256 10.854H13.6796V8.46Z",fill:"currentColor"})});import{jsx as Lr}from"react/jsx-runtime";var yr=()=>Lr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Lr("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.1576 10.269C12.6896 10.269 12.3746 10.494 12.2216 10.737H10.8176L11.1956 7.074H15.2546V8.28H12.3206L12.1856 9.549C12.4016 9.351 12.8516 9.126 13.4636 9.126C14.7866 9.126 15.6596 10.053 15.6596 11.358C15.6596 12.609 14.7326 13.608 13.1756 13.608C11.5826 13.608 10.6556 12.753 10.5566 11.511H12.1136C12.1586 12.06 12.5456 12.465 13.1576 12.465C13.8236 12.465 14.1746 11.97 14.1746 11.376C14.1746 10.764 13.8416 10.269 13.1576 10.269Z",fill:"currentColor"})});import{jsx as Er}from"react/jsx-runtime";var br=()=>Er("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Er("path",{d:"M3.639 13.5V7.074H5.196V9.648H8.076V7.074H9.642V13.5H8.076V10.836H5.196V13.5H3.639ZM13.3646 8.127C12.5456 8.127 12.0416 8.937 12.0416 9.999C12.3296 9.54 12.8246 9.207 13.5536 9.207C14.8586 9.207 15.8036 10.134 15.8036 11.376C15.8036 12.645 14.8226 13.608 13.3196 13.608C11.7266 13.608 10.6196 12.393 10.6196 10.395C10.6196 8.316 11.7716 6.966 13.4186 6.966C14.7056 6.966 15.5786 7.749 15.7316 8.829H14.3186C14.2016 8.415 13.9226 8.127 13.3646 8.127ZM13.3106 12.51C13.9586 12.51 14.3816 12.042 14.3816 11.385C14.3816 10.737 13.9586 10.278 13.3106 10.278C12.6536 10.278 12.2126 10.737 12.2126 11.385C12.2126 12.042 12.6536 12.51 13.3106 12.51Z",fill:"currentColor"})});import{$createHeadingNode as ns,$isHeadingNode as is,HeadingNode as ls}from"@lexical/rich-text";var Nt=e=>(t,o,r)=>{let n=e(r);n&&(n.append(...o),t.replace(n),n.select(0,0))};var kr=e=>{let o=`^(${e.map(n=>Number(n.slice(1))).map(n=>`#{${n}}`).join("|")})\\s`,r=new RegExp(o);return{type:"element",dependencies:[ls],export:(n,i)=>{if(!is(n))return null;let l=Number(n.getTag().slice(1));return"#".repeat(l)+" "+i(n)},regExp:r,replace:Nt(n=>{let i="h"+n[1].length;return ns(i)})}};var _r=e=>{let t=ds();cs(t,()=>ss(e))},wr={h1:mr,h2:gr,h3:hr,h4:Tr,h5:yr,h6:br},us=h(({props:e})=>{let{enabledHeadingSizes:t=["h1","h2","h3","h4","h5","h6"]}=e,o=[M(t.map((r,n)=>({ChildComponent:wr[r],isActive:({selection:i})=>{if(!ps(i))return!1;for(let l of i.getNodes()){if(Nr(l)&&l.getTag()===r)continue;let a=l.getParent();if(!(Nr(a)&&a.getTag()===r))return!1}return!0},key:r,label:({i18n:i})=>i.t("lexical:heading:label",{headingLevel:r.charAt(1)}),onSelect:({editor:i})=>{i.update(()=>{_r(r)})},order:n+2})))];return{markdownTransformers:[kr(t)],nodes:[as],sanitizedClientFeatureProps:e,slashMenu:{groups:t?.length?[D(t.map(r=>({Icon:wr[r],key:`heading-${r.charAt(1)}`,keywords:["heading",r],label:({i18n:n})=>n.t("lexical:heading:label",{headingLevel:r.charAt(1)}),onSelect:({editor:n})=>{n.update(()=>{_r(r)})}})))]:[]},toolbarFixed:{groups:t?.length?o:[]},toolbarInline:{groups:t?.length?o:[]}}});import{$isNodeSelection as Ls}from"lexical";import{jsx as Rr}from"react/jsx-runtime";var _t=()=>Rr("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Rr("rect",{fill:"currentColor",height:"1",width:"12",x:"4",y:"9.5"})});import{jsx as Sr,jsxs as ms}from"react/jsx-runtime";var vr=()=>ms("svg",{fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Sr("path",{d:"M5 10h10",stroke:"currentColor"}),Sr("path",{d:"M10 15V5",stroke:"currentColor"})]});var ee=e=>({type:"dropdown",ChildComponent:vr,items:e,key:"add",order:10});var Ir={type:"element",dependencies:[De],export:(e,t)=>He(e)?"---":null,regExp:/^---\s*$/,replace:e=>{let t=Oe();t&&e.replace(t)}};import{useLexicalComposerContext as fs}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as gs}from"@lexical/utils";import{$getSelection as Cs,$isRangeSelection as hs,COMMAND_PRIORITY_EDITOR as xs}from"lexical";import{useEffect as Ts}from"react";var Fr=()=>{let[e]=fs();return Ts(()=>e.registerCommand(fe,t=>{let o=Cs();if(!hs(o))return!1;if(o.focus.getNode()!==null){let n=Oe();gs(n)}return!0},xs),[e]),null};var ys=h({markdownTransformers:[Ir],nodes:[De],plugins:[{Component:Fr,position:"normal"}],slashMenu:{groups:[D([{Icon:_t,key:"horizontalRule",keywords:["hr","horizontal rule","line","separator"],label:({i18n:e})=>e.t("lexical:horizontalRule:label"),onSelect:({editor:e})=>{e.dispatchCommand(fe,void 0)}}])]},toolbarFixed:{groups:[ee([{ChildComponent:_t,isActive:({selection:e})=>{if(!Ls(e)||!e.getNodes().length)return!1;let t=e.getNodes()[0];return He(t)},key:"horizontalRule",label:({i18n:e})=>e.t("lexical:horizontalRule:label"),onSelect:({editor:e})=>{e.dispatchCommand(fe,void 0)}}])]}});import{INDENT_CONTENT_COMMAND as ks,OUTDENT_CONTENT_COMMAND as Ns}from"lexical";import{jsx as Ke,jsxs as Es}from"react/jsx-runtime";var Pr=()=>Es("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Ke("path",{d:"M2.5 5H10.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M2.5 10H10.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M2.5 15H17.5",stroke:"currentColor",strokeWidth:"1.5"}),Ke("path",{d:"M12.25 7.25L17.25 3.75V10.75L12.25 7.25Z",fill:"currentColor"})]});import{jsx as je,jsxs as bs}from"react/jsx-runtime";var Mr=()=>bs("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[je("path",{d:"M17.5 5H9.5",stroke:"currentColor",strokeWidth:"1.5"}),je("path",{d:"M17.5 10H9.5",stroke:"currentColor",strokeWidth:"1.5"}),je("path",{d:"M17.5 15H2.5",stroke:"currentColor",strokeWidth:"1.5"}),je("path",{d:"M7.75 7.25L2.75 3.75V10.75L7.75 7.25Z",fill:"currentColor"})]});var Ar=e=>({type:"buttons",items:e,key:"indent",order:35});var Dr=[Ar([{ChildComponent:Pr,isActive:()=>!1,isEnabled:({selection:e})=>{if(!e||!e?.getNodes()?.length)return!1;for(let t of e.getNodes())if("__indent"in t&&t.__indent>0||t.getParent()&&"__indent"in t.getParent()&&t.getParent().__indent>0)return!0;return!1},key:"indentDecrease",label:({i18n:e})=>e.t("lexical:indent:decreaseLabel"),onSelect:({editor:e})=>{e.dispatchCommand(Ns,void 0)},order:1},{ChildComponent:Mr,isActive:()=>!1,key:"indentIncrease",label:({i18n:e})=>e.t("lexical:indent:increaseLabel"),onSelect:({editor:e})=>{e.dispatchCommand(ks,void 0)},order:2}])],_s=h({toolbarFixed:{groups:Dr},toolbarInline:{groups:Dr}});import{$findMatchingParent as za}from"@lexical/utils";import{$getSelection as Ot,$isRangeSelection as fn}from"lexical";import{jsx as Or}from"react/jsx-runtime";var Hr=()=>Or("svg",{"aria-hidden":"true",className:"icon",fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:Or("path",{d:"M8.5 11.5L11.5 8.5M8.5 7L9.625 5.875C10.868 4.633 12.882 4.633 14.125 5.875C15.368 7.118 15.368 9.133 14.125 10.375L13 11.5M7 8.5L5.746 9.754C4.56 10.94 4.519 12.85 5.652 14.087C6.814 15.354 8.78 15.449 10.058 14.298L11.5 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})});import{$isAtNodeEnd as Br}from"@lexical/selection";function ie(e){let{anchor:t}=e,{focus:o}=e,r=e.anchor.getNode(),n=e.focus.getNode();return r===n?r:e.isBackward()?Br(o)?r:n:Br(t)?r:n}var wt=e=>({type:"buttons",items:e,key:"features",order:50});import{$createTextNode as Os,$isTextNode as Hs}from"lexical";import{addClassNamesToElement as ws,isHTMLAnchorElement as Rs}from"@lexical/utils";import vt from"bson-objectid";import{$applyNodeReplacement as Ss,$createTextNode as Gr,$getSelection as vs,$isElementNode as $r,$isRangeSelection as St,ElementNode as Is,createCommand as Fs}from"lexical";var Ps=new Set(["http:","https:","mailto:","sms:","tel:"]),A=class e extends Is{__fields;__id;constructor({id:t,fields:o={doc:null,linkType:"custom",newTab:!1,url:void 0},key:r}){super(r),this.__fields=o,this.__id=t}static clone(t){return new e({id:t.__id,fields:t.__fields,key:t.__key})}static getType(){return"link"}static importDOM(){return{a:t=>({conversion:Ms,priority:1})}}static importJSON(t){t.version===1&&typeof t.fields?.doc?.value=="object"&&t.fields?.doc?.value?.id&&(t.fields.doc.value=t.fields.doc.value.id,t.version=2),t.version===2&&!t.id&&(t.id=new vt.default().toHexString(),t.version=3);let o=W({id:t.id,fields:t.fields});return o.setFormat(t.format),o.setIndent(t.indent),o.setDirection(t.direction),o}canBeEmpty(){return!1}canInsertTextAfter(){return!1}canInsertTextBefore(){return!1}createDOM(t){let o=document.createElement("a");return this.__fields?.linkType==="custom"&&(o.href=this.sanitizeUrl(this.__fields.url??"")),(this.__fields?.newTab??!1)&&(o.target="_blank"),this.__fields?.newTab===!0&&this.__fields?.linkType==="custom"&&(o.rel=Rt(o.rel,"add","noopener")),ws(o,t.theme.link),o}exportJSON(){let t={...super.exportJSON(),type:this.getType(),fields:this.getFields(),version:3},o=this.getID();return o&&(t.id=o),t}extractWithChild(t,o,r){if(!St(o))return!1;let n=o.anchor.getNode(),i=o.focus.getNode();return this.isParentOf(n)&&this.isParentOf(i)&&o.getTextContent().length>0}getFields(){return this.getLatest().__fields}getID(){return this.getLatest().__id}insertNewAfter(t,o=!0){let r=this.getParentOrThrow().insertNewAfter(t,o);if($r(r)){let n=W({fields:this.__fields});return r.append(n),n}return null}isInline(){return!0}sanitizeUrl(t){try{let o=new URL(t);if(!Ps.has(o.protocol))return"about:blank"}catch{return"https://"}return t}setFields(t){let o=this.getWritable();o.__fields=t}updateDOM(t,o,r){let n=this.__fields?.url,i=this.__fields?.newTab;return n!=null&&n!==t.__fields?.url&&this.__fields?.linkType==="custom"&&(o.href=n),this.__fields?.linkType==="internal"&&t.__fields?.linkType==="custom"&&o.removeAttribute("href"),o.rel==null&&(o.rel=""),i!==t.__fields?.newTab&&(i??!1?(o.target="_blank",this.__fields?.linkType==="custom"&&(o.rel=Rt(o.rel,"add","noopener"))):(o.removeAttribute("target"),o.rel=Rt(o.rel,"remove","noopener"))),!1}};function Ms(e){let t=null;if(Rs(e)){let o=e.textContent;o!==null&&o!==""&&(t=W({id:new vt.default().toHexString(),fields:{doc:null,linkType:"custom",newTab:e.getAttribute("target")==="_blank",url:e.getAttribute("href")??""}}))}return{node:t}}function W({id:e,fields:t}){return Ss(new A({id:e??new vt.default().toHexString(),fields:t}))}function I(e){return e instanceof A}var G=Fs("TOGGLE_LINK_COMMAND");function Ur(e){let t=vs();if(!St(t)&&!e.selectedNodes.length)return;let o=St(t)?t.extract():e.selectedNodes;if(e===null)o.forEach(r=>{let n=r.getParent();if(I(n)){let i=n.getChildren();for(let l=0;l<i.length;l+=1)n.insertBefore(i[l]);n.remove()}});else{if(o.length===1){let i=o[0],l=I(i)?i:As(i);if(l!==null){l.setFields(e.fields),e.text!=null&&e.text!==l.getTextContent()&&(l.append(Gr(e.text)),l.getChildren().forEach(a=>{a!==l.getLastChild()&&a.remove()}));return}}let r=null,n=null;o.forEach(i=>{let l=i.getParent();if(!(l===n||l===null||$r(i)&&!i.isInline())){if(I(l)){n=l,l.setFields(e.fields),e.text!=null&&e.text!==l.getTextContent()&&(l.append(Gr(e.text)),l.getChildren().forEach(a=>{a!==l.getLastChild()&&a.remove()}));return}if(l.is(r)||(r=l,n=W({fields:e.fields}),I(l)?i.getPreviousSibling()===null?l.insertBefore(n):l.insertAfter(n):i.insertBefore(n)),I(i)){if(i.is(n))return;if(n!==null){let a=i.getChildren();for(let s=0;s<a.length;s+=1)n.append(a[s])}i.remove();return}n!==null&&n.append(i)}})}}function As(e){return Ds(e,t=>I(t))}function Ds(e,t){let o=e;for(;o!==null&&(o=o.getParent())!==null&&!t(o););return o}function Rt(e,t,o){let r,n=`${e}`;if(t==="add"){if(n.includes(o)){let i=new RegExp(o,"g");n=n.replace(i,"").trim()}n=n.trim(),r=n.length===0?`${o}`:`${n} ${o}`}else{let i=new RegExp(o,"g");r=n.replace(i,"").trim()}return r}var Wr={type:"text-match",dependencies:[A],export:(e,t,o)=>{if(!I(e))return null;let r=e,{url:n}=r.getFields(),i=`[${r.getTextContent()}](${n})`,l=r.getFirstChild();return r.getChildrenSize()===1&&Hs(l)?o(l,i):i},importRegExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)/,regExp:/\[([^[]+)\]\(([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?\)$/,replace:(e,t)=>{let[,o,r]=t,n=W({fields:{doc:null,linkType:"custom",newTab:!1,url:r}}),i=Os(o);i.setFormat(e.getFormat()),n.append(i),e.replace(n)},trigger:")"};import{$applyNodeReplacement as Bs,$isElementNode as Gs}from"lexical";var V=class e extends A{static clone(t){return new e({id:void 0,fields:t.__fields,key:t.__key})}static getType(){return"autolink"}static importDOM(){return null}static importJSON(t){t.version===1&&typeof t.fields?.doc?.value=="object"&&t.fields?.doc?.value?.id&&(t.fields.doc.value=t.fields.doc.value.id,t.version=2);let o=ke({fields:t.fields});return o.setFormat(t.format),o.setIndent(t.indent),o.setDirection(t.direction),o}exportJSON(){return{...super.exportJSON(),type:"autolink",version:2}}insertNewAfter(t,o=!0){let r=this.getParentOrThrow().insertNewAfter(t,o);if(Gs(r)){let n=ke({fields:this.__fields});return r.append(n),n}return null}};function ke({fields:e}){return Bs(new V({id:void 0,fields:e}))}function z(e){return e instanceof V}import{useLexicalComposerContext as $s}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as Us}from"@lexical/utils";import{$createTextNode as Vr,$getSelection as Ws,$isElementNode as Kr,$isLineBreakNode as jr,$isNodeSelection as Vs,$isRangeSelection as zs,$isTextNode as Ne,TextNode as Ks}from"lexical";import{useEffect as js}from"react";function It(e,t,...o){if(!e)throw new Error("Internal Lexical error: invariant() is meant to be replaced at compile time. There is no runtime version. Error: "+t)}function zr(e,t=o=>o){return o=>{let r=e.exec(o);return r===null?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function Zr(e,t){for(let o=0;o<t.length;o++){let r=t[o](e);if(r!=null)return r}return null}var Zs=/[.,;\s]/;function Xe(e){return Zs.test(e)}function Xr(e){return Xe(e[e.length-1])}function Pt(e){return Xe(e[0])}function Jr(e){let t=e.getPreviousSibling();return Kr(t)&&(t=t.getLastDescendant()),t===null||jr(t)||Ne(t)&&Xr(t.getTextContent())}function Yr(e){let t=e.getNextSibling();return Kr(t)&&(t=t.getFirstDescendant()),t===null||jr(t)||Ne(t)&&Pt(t.getTextContent())}function Xs(e,t,o,r){return(e>0?Xe(o[e-1]):Jr(r[0]))?t<o.length?Xe(o[t]):Yr(r[r.length-1]):!1}function Js(e,t,o){let r=[],n=[],i=[],l=0,a=0,s=[...e];for(;s.length>0;){let c=s[0],u=c.getTextContent().length,p=a;a+u<=t?(r.push(c),l+=u):p>=o?i.push(c):n.push(c),a+=u,s.shift()}return[l,r,n,i]}function Ys(e,t,o,r){let n={linkType:"custom",url:r.url,...r.fields},i=ke({fields:n});if(e.length===1){let l=e[0],a;t===0?[a,l]=l.splitText(o):[,a,l]=l.splitText(t,o);let s=Vr(r.text);return s.setFormat(a.getFormat()),s.setDetail(a.getDetail()),s.setStyle(a.getStyle()),i.append(s),a.replace(i),l}else if(e.length>1){let l=e[0],a=l.getTextContent().length,s;t===0?s=l:[,s]=l.splitText(t);let c=[],d;for(let f=1;f<e.length;f++){let g=e[f],x=g.getTextContent().length,N=a,_=a+x;if(N<o)if(_<=o)c.push(g);else{let[C,y]=g.splitText(o-N);c.push(C),d=y}a+=x}let u=Ws(),p=u?u.getNodes().find(Ne):void 0,m=Vr(s.getTextContent());return m.setFormat(s.getFormat()),m.setDetail(s.getDetail()),m.setStyle(s.getStyle()),i.append(m,...c),p&&p===s&&(zs(u)?m.select(u.anchor.offset,u.focus.offset):Vs(u)&&m.select(0,m.getTextContent().length)),s.replace(i),d}}function qs(e,t,o){let r=[...e],n=r.map(s=>s.getTextContent()).join(""),i=n,l,a=0;for(;(l=Zr(i,t))!=null&&l!==null;){let s=l.index,c=l.length,d=s+c;if(Xs(a+s,a+d,n,r)){let[p,,m,f]=Js(r,a+s,a+d),g=a+s-p,L=a+d-p,x=Ys(m,g,L,l);r=x?[x,...f]:f,o(l.url,null),a=0}else a+=d;i=i.substring(d)}}function Ft(e,t,o){let r=e.getChildren(),n=r.length;for(let s=0;s<n;s++){let c=r[s];if(!Ne(c)||!c.isSimpleText()){Ze(e),o(null,e.getFields()?.url??null);return}}let i=e.getTextContent(),l=Zr(i,t);if(l===null||l.text!==i){Ze(e),o(null,e.getFields()?.url??null);return}if(!Jr(e)||!Yr(e)){Ze(e),o(null,e.getFields()?.url??null);return}let a=e.getFields()?.url;if(a!==l?.url){let s=e.getFields();s.url=l?.url,e.setFields(s),o(l.url,a??null)}}function Qs(e,t,o){let r=e.getPreviousSibling(),n=e.getNextSibling(),i=e.getTextContent();z(r)&&!Pt(i)&&(r.append(e),Ft(r,t,o),o(null,r.getFields()?.url??null)),z(n)&&!Xr(i)&&(Ze(n),Ft(n,t,o),o(null,n.getFields()?.url??null))}function Ze(e){let t=e.getChildren(),o=t.length;for(let r=o-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(r=>r.getLatest())}function ea(e){let t=[e],o=e.getNextSibling();for(;o!==null&&Ne(o)&&o.isSimpleText()&&(t.push(o),!/\s/.test(o.getTextContent()));)o=o.getNextSibling();return t}function ta(e,t,o){js(()=>{e.hasNodes([V])||It(!1,"LexicalAutoLinkPlugin: AutoLinkNode not registered on editor");let r=(n,i)=>{o?.(n,i)};return Us(e.registerNodeTransform(Ks,n=>{let i=n.getParentOrThrow(),l=n.getPreviousSibling();if(z(i))Ft(i,t,r);else if(!I(i)){if(n.isSimpleText()&&(Pt(n.getTextContent())||!z(l))){let a=ea(n);qs(a,t,r)}Qs(n,t,r)}}))},[e,t,o])}var oa=/((https?:\/\/(www\.)?)|(www\.))[-\w@:%.+~#=]{1,256}\.[a-zA-Z\d()]{1,6}\b([-\w()@:%+.~#?&/=]*)/,ra=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-z\-\d]+\.)+[a-z]{2,}))/i,na=[zr(oa,e=>e.startsWith("http")?e:`https://${e}`),zr(ra,e=>`mailto:${e}`)],qr=()=>{let[e]=$s();return ta(e,na),null};import{ClickableLinkPlugin as ia}from"@lexical/react/LexicalClickableLinkPlugin.js";import{jsx as la}from"react/jsx-runtime";var Qr=()=>la(ia,{});import{createCommand as sa}from"lexical";var Je=sa("TOGGLE_LINK_WITH_MODAL_COMMAND");import{createPortal as Ma}from"react-dom";import{useLexicalComposerContext as Ea}from"@lexical/react/LexicalComposerContext.js";import{$findMatchingParent as on,mergeRegister as rn}from"@lexical/utils";import{getTranslation as ba}from"@payloadcms/translations";import{formatDrawerSlug as ka,useConfig as Na,useEditDepth as _a,useModal as wa,useTranslation as Ra}from"@payloadcms/ui";import{$getSelection as nn,$isLineBreakNode as Sa,$isRangeSelection as ln,COMMAND_PRIORITY_HIGH as va,COMMAND_PRIORITY_LOW as sn,KEY_ESCAPE_COMMAND as Ia,SELECTION_CHANGE_COMMAND as Fa}from"lexical";import an,{useCallback as cn,useEffect as qe,useRef as Pa,useState as le}from"react";function Ye(e,t,o,r=10,n=5){let i=o.parentElement;if(e===null||i==null){t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)";return}let l=t.getBoundingClientRect(),a=o.getBoundingClientRect(),s=i.getBoundingClientRect(),c=e.top-r,d=e.left-n;c<s.top&&(c+=l.height+e.height+r*2),d+l.width>s.right&&(d=s.right-l.width-n),c-=a.top,d-=a.left,t.style.opacity="1",t.style.transform=`translate(${d}px, ${c}px)`}import{Drawer as aa,Form as ca,FormSubmit as da,RenderFields as pa,useConfig as ua,useDocumentInfo as ma,useFieldProps as fa,useTranslation as ga}from"@payloadcms/ui";import{getFormState as en}from"@payloadcms/ui/shared";import{useCallback as Ca,useEffect as ha,useState as xa}from"react";import{v4 as Ta}from"uuid";import{jsx as Mt,jsxs as ya}from"react/jsx-runtime";var La="lexical-link-edit-drawer",tn=({drawerSlug:e,handleModalSubmit:t,stateData:o})=>{let{t:r}=ga(),{id:n}=ma(),{schemaPath:i}=fa(),l=ua(),[a,s]=xa(!1),{field:{richTextComponentMap:c}}=v(),d="feature.link.fields.fields",u=`${i}.feature.link.fields`,p=c.get(d);ha(()=>{o&&(async()=>{let g=await en({apiRoute:l.routes.api,body:{id:n,data:o,operation:"update",schemaPath:u},serverURL:l.serverURL});s(g)})()},[l.routes.api,l.serverURL,u,n,o]);let m=Ca(async({formState:f})=>await en({apiRoute:l.routes.api,body:{id:n,formState:f,operation:"update",schemaPath:u},serverURL:l.serverURL}),[l.routes.api,l.serverURL,u,n]);return Mt(aa,{className:La,slug:e,title:r("fields:editLink")??"",children:a!==!1&&ya(ca,{beforeSubmit:[m],disableValidationOnSubmit:!0,fields:Array.isArray(p)?p:[],initialState:a,onChange:[m],onSubmit:t,uuid:Ta(),children:[Mt(pa,{fieldMap:Array.isArray(p)?p:[],forceRender:!0,path:"",readOnly:!1,schemaPath:u}),Mt(da,{children:r("general:submit")})]})})};import{jsx as se,jsxs as At}from"react/jsx-runtime";function dn({anchorElem:e}){let[t]=Ea(),o=Pa(null),[r,n]=le(null),[i,l]=le(null),{uuid:a}=v(),s=Na(),{i18n:c,t:d}=Ra(),[u,p]=le({}),{closeModal:m,isModalOpen:f,toggleModal:g}=wa(),L=_a(),[x,N]=le(!1),[_,C]=le([]),[y,b]=le(!1),E=ka({slug:"lexical-rich-text-link-"+a,depth:L}),S=cn(()=>{N(!1),o&&o.current&&(o.current.style.opacity="0",o.current.style.transform="translate(-10000px, -10000px)"),b(!1),n(null),l(null),C([]),p({})},[N,n,l,C]),P=cn(()=>{let k=nn(),R=null;if(!ln(k)||!k){S();return}let $=ie(k);R=t.getElementByKey($.getKey())?.getBoundingClientRect();let w=on($,I),Ae=k.getNodes().filter(re=>!Sa(re)).find(re=>{let J=on(re,I);return w&&!w.is(J)||J&&!J.is(w)});if(w==null||Ae){S();return}let X={doc:void 0,linkType:void 0,newTab:void 0,url:"",...w.getFields(),id:w.getID(),text:w.getTextContent()};if(w.getFields()?.linkType==="custom")n(w.getFields()?.url??null),l(null);else{n(`/admin/collections/${w.getFields()?.doc?.relationTo}/${w.getFields()?.doc?.value}`);let re=s.collections.find(J=>J.slug===w.getFields()?.doc?.relationTo);if(!re)l(w.getFields()?.label?String(w.getFields()?.label):null),n(w.getFields()?.url?String(w.getFields()?.url):null);else{let J=d("fields:linkedTo",{label:ba(re.labels.singular,c)}).replace(/<[^>]*>?/g,"");l(J)}}p(X),N(!0),C(k?k?.getNodes():[]),z(w)?b(!0):b(!1);let me=o.current,at=window.getSelection(),{activeElement:io}=document;if(me===null)return;let ct=t.getRootElement();return at!==null&&ct!==null&&ct.contains(at.anchorNode)?(R||(R=at.getRangeAt(0).getBoundingClientRect()),R!=null&&(R.y+=40,Ye(R,me,e))):(io==null||io.className!=="link-input")&&(ct!==null&&Ye(null,me,e),n(null),l(null)),!0},[t,S,s.collections,d,c,e]);return qe(()=>rn(t.registerCommand(Je,k=>(t.dispatchCommand(G,k),P(),g(E),!0),sn)),[t,P,g,E]),qe(()=>{let k=e.parentElement,R=()=>{t.getEditorState().read(()=>{P()})};return window.addEventListener("resize",R),k?.addEventListener("scroll",R),()=>{window.removeEventListener("resize",R),k?.removeEventListener("scroll",R)}},[e.parentElement,t,P]),qe(()=>rn(t.registerUpdateListener(({editorState:k})=>{k.read(()=>{P()})}),t.registerCommand(Fa,()=>(P(),!0),sn),t.registerCommand(Ia,()=>x?(S(),!0):!1,va)),[t,P,x,S]),qe(()=>{t.getEditorState().read(()=>{P()})},[t,P]),At(an.Fragment,{children:[se("div",{className:"link-editor",ref:o,children:At("div",{className:"link-input",children:[r&&r.length>0?se("a",{href:r,rel:"noopener noreferrer",target:"_blank",children:i!=null&&i.length>0?i:r}):i!=null&&i.length>0?se("span",{className:"link-input__label-pure",children:i}):null,t.isEditable()&&At(an.Fragment,{children:[se("button",{"aria-label":"Edit link",className:"link-edit",onClick:()=>{g(E)},onMouseDown:k=>{k.preventDefault()},tabIndex:0,type:"button"}),!y&&se("button",{"aria-label":"Remove link",className:"link-trash",onClick:()=>{t.dispatchCommand(G,null)},onMouseDown:k=>{k.preventDefault()},tabIndex:0,type:"button"})]})]})}),f(E)&&se(tn,{drawerSlug:E,handleModalSubmit:(k,R)=>{m(E);let $=R,w={...$};delete w.text,t.update(()=>{let Ae=nn(),X=null;if(ln(Ae)?X=ie(Ae).getParent():_.length&&(X=_[0].getParent()),X&&z(X)){let me=W({fields:w});X.replace(me,!0)}}),t.dispatchCommand(G,{fields:w,selectedNodes:_,text:$.text})},stateData:u})]})}import{jsx as Aa}from"react/jsx-runtime";var pn=e=>{let{anchorElem:t=document.body}=e;return Ma(Aa(dn,{anchorElem:t}),t)};import{useLexicalComposerContext as Ha}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as Ba}from"@lexical/utils";import{$getSelection as Ga,$isElementNode as $a,$isRangeSelection as Ua,COMMAND_PRIORITY_LOW as un,PASTE_COMMAND as Wa}from"lexical";import{useEffect as Va}from"react";var Da=/(?:[A-Za-z]{3,9}:(?:\/\/)?(?:[-;:&=+$,\w]+@)?[A-Za-z\d.-]+|(?:www.|[-;:&=+$,\w]+@)[A-Za-z\d.-]+)(?:\/[+~%/.\w-]*)?\??[-+=&;%@.\w]*#?\w*/,Oa=/^[\w\-./]*(?:#\w[\w-]*)?$/;function Dt(e){if(!e)return!1;if(e==="https://"||Da.test(e)||Oa.test(e))return!0;try{return new URL(e),!0}catch{}return!1}var mn=()=>{let[e]=Ha();return Va(()=>{if(!e.hasNodes([A]))throw new Error("LinkPlugin: LinkNode not registered on editor");return Ba(e.registerCommand(G,t=>(Ur(t),!0),un),Dt!==void 0?e.registerCommand(Wa,t=>{let o=Ga();if(!Ua(o)||o.isCollapsed()||!(t instanceof ClipboardEvent)||t.clipboardData==null)return!1;let r=t.clipboardData.getData("text");if(!Dt(r))return!1;if(!o.getNodes().some(n=>$a(n))){let n={doc:null,linkType:"custom",newTab:!1,url:r};return e.dispatchCommand(G,{fields:n,text:null}),t.preventDefault(),!0}return!1},un):()=>{})},[e]),null};var gn=[wt([{ChildComponent:Hr,isActive:({selection:e})=>{if(fn(e)){let t=ie(e);return za(t,I)!=null}return!1},isEnabled:({selection:e})=>!!(fn(e)&&Ot()?.getTextContent()?.length),key:"link",label:({i18n:e})=>e.t("lexical:link:label"),onSelect:({editor:e,isActive:t})=>{if(t)e.dispatchCommand(G,null);else{let o=null,r=[];if(e.getEditorState().read(()=>{o=Ot()?.getTextContent(),r=Ot()?.getNodes()??[]}),!o?.length)return;let n={doc:null,linkType:"custom",newTab:!1,url:"https://"};e.dispatchCommand(Je,{fields:n,selectedNodes:r,text:o})}},order:1}])],Ka=h({markdownTransformers:[Wr],nodes:[A,V],plugins:[{Component:mn,position:"normal"},{Component:qr,position:"normal"},{Component:Qr,position:"normal"},{Component:pn,position:"floatingAnchorElem"}],toolbarFixed:{groups:gn},toolbarInline:{groups:gn}});import{$isListNode as Gt,INSERT_CHECK_LIST_COMMAND as yn,ListItemNode as nc,ListNode as ic}from"@lexical/list";import{$isRangeSelection as lc}from"lexical";import{jsx as Cn,jsxs as ja}from"react/jsx-runtime";var Ht=()=>ja("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Cn("rect",{height:"13",rx:"1.5",stroke:"currentColor",width:"13",x:"3.5",y:"3.5"}),Cn("path",{d:"M7 10L9 12.5L13 7.5",stroke:"currentColor",strokeWidth:"1.5"})]});import{ListPlugin as Za}from"@lexical/react/LexicalListPlugin.js";import{jsx as Xa}from"react/jsx-runtime";var ae=()=>Xa(Za,{});function ce(e){return{items:e,key:"lists",label:({i18n:t})=>t.t("lexical:general:slashMenuListGroupLabel")}}import{$isListNode as Qa,ListItemNode as ec,ListNode as tc}from"@lexical/list";import{$createListItemNode as Ja,$createListNode as Ya,$isListItemNode as qa,$isListNode as Bt}from"@lexical/list";var hn=4,de=e=>(t,o,r)=>{let n=t.getPreviousSibling(),i=t.getNextSibling(),l=Ja(e==="check"?r[3]==="x":void 0);if(Bt(i)&&i.getListType()===e){let s=i.getFirstChild();s!==null?s.insertBefore(l):i.append(l),t.remove()}else if(Bt(n)&&n.getListType()===e)n.append(l),t.remove();else{let s=Ya(e,e==="number"?Number(r[2]):void 0);s.append(l),t.replace(s)}l.append(...o),l.select(0,0);let a=Math.floor(r[1].length/hn);a&&l.setIndent(a)},te=(e,t,o)=>{let r=[],n=e.getChildren(),i=0;for(let l of n)if(qa(l)){if(l.getChildrenSize()===1){let d=l.getFirstChild();if(Bt(d)){r.push(te(d,t,o+1));continue}}let a=" ".repeat(o*hn),s=e.getListType(),c=s==="number"?`${e.getStart()+i}. `:s==="check"?`- [${l.getChecked()?"x":" "}] `:"- ";r.push(a+c+t(l)),i++}return r.join(`
|
|
35
|
+
`)};var xn={type:"element",dependencies:[tc,ec],export:(e,t)=>Qa(e)?te(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:de("check")};import{CheckListPlugin as oc}from"@lexical/react/LexicalCheckListPlugin.js";import{jsx as rc}from"react/jsx-runtime";var Tn=()=>rc(oc,{});var Ln=[M([{ChildComponent:Ht,isActive:({selection:e})=>{if(!lc(e))return!1;for(let t of e.getNodes()){if(Gt(t)&&t.getListType()==="check")continue;let o=t.getParent();if(Gt(o)&&o.getListType()==="check")continue;let r=o?.getParent();if(!(Gt(r)&&r.getListType()==="check"))return!1}return!0},key:"checklist",label:({i18n:e})=>e.t("lexical:checklist:label"),onSelect:({editor:e})=>{e.dispatchCommand(yn,void 0)},order:12}])],sc=h(({featureProviderMap:e})=>{let t=[{Component:Tn,position:"normal"}];return!e.has("unorderedList")&&!e.has("orderedList")&&t.push({Component:ae,position:"normal"}),{markdownTransformers:[xn],nodes:e.has("unorderedList")||e.has("orderedList")?[]:[ic,nc],plugins:t,slashMenu:{groups:[ce([{Icon:Ht,key:"checklist",keywords:["check list","check","checklist","cl"],label:({i18n:o})=>o.t("lexical:checklist:label"),onSelect:({editor:o})=>{o.dispatchCommand(yn,void 0)}}])]},toolbarFixed:{groups:Ln},toolbarInline:{groups:Ln}}});import{$isListNode as Ut,INSERT_ORDERED_LIST_COMMAND as kn,ListItemNode as uc,ListNode as mc}from"@lexical/list";import{$isRangeSelection as fc}from"lexical";import{jsx as _e,jsxs as ac}from"react/jsx-runtime";var $t=()=>ac("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[_e("path",{d:"M5.89284 12.479C5.89284 13.368 5.26284 13.788 4.38084 14.236C3.75084 14.558 3.43584 14.789 3.40784 15.062H5.89984V16H2.06384V15.573C2.06384 14.523 2.92484 13.935 3.66684 13.501C4.38084 13.088 4.75184 12.878 4.75184 12.458C4.75184 12.08 4.52084 11.835 4.06584 11.835C3.58984 11.835 3.30984 12.199 3.28184 12.654H2.11284C2.18984 11.681 2.87584 10.918 4.07284 10.918C5.15784 10.918 5.89284 11.555 5.89284 12.479Z",fill:"currentColor"}),_e("path",{d:"M2.68608 4.535V3.737C3.54008 3.737 3.90408 3.513 4.02308 2.995H4.89108V8H3.68008L3.68008 4.535H2.68608Z",fill:"currentColor"}),_e("path",{d:"M8 15L17 15",stroke:"currentColor",strokeWidth:"1.5"}),_e("path",{d:"M8 10L17 10",stroke:"currentColor",strokeWidth:"1.5"}),_e("path",{d:"M8 5L17 5",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as cc,ListItemNode as dc,ListNode as pc}from"@lexical/list";var En={type:"element",dependencies:[pc,dc],export:(e,t)=>cc(e)?te(e,t,0):null,regExp:/^(\s*)(\d+)\.\s/,replace:de("number")};var bn=[M([{ChildComponent:$t,isActive:({selection:e})=>{if(!fc(e))return!1;for(let t of e.getNodes()){if(Ut(t)&&t.getListType()==="number")continue;let o=t.getParent();if(Ut(o)&&o.getListType()==="number")continue;let r=o?.getParent();if(!(Ut(r)&&r.getListType()==="number"))return!1}return!0},key:"orderedList",label:({i18n:e})=>e.t("lexical:orderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(kn,void 0)},order:10}])],gc=h(({featureProviderMap:e})=>({markdownTransformers:[En],nodes:e.has("orderedList")?[]:[mc,uc],plugins:e.has("orderedList")?[]:[{Component:ae,position:"normal"}],slashMenu:{groups:[ce([{Icon:$t,key:"orderedList",keywords:["ordered list","ol"],label:({i18n:t})=>t.t("lexical:orderedList:label"),onSelect:({editor:t})=>{t.dispatchCommand(kn,void 0)}}])]},toolbarFixed:{groups:bn},toolbarInline:{groups:bn}}));import{$isListNode as Vt,INSERT_UNORDERED_LIST_COMMAND as wn,ListItemNode as Lc,ListNode as yc}from"@lexical/list";import{$isRangeSelection as Ec}from"lexical";import{jsx as pe,jsxs as Cc}from"react/jsx-runtime";var Wt=()=>Cc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[pe("circle",{cx:"4",cy:"5",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),pe("circle",{cx:"4",cy:"10",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),pe("circle",{cx:"4",cy:"15",fill:"currentColor",r:"1.15",stroke:"currentColor",strokeWidth:"0.3"}),pe("path",{d:"M17 5H7",stroke:"currentColor",strokeWidth:"1.5"}),pe("path",{d:"M17 10H7",stroke:"currentColor",strokeWidth:"1.5"}),pe("path",{d:"M17 15H7",stroke:"currentColor",strokeWidth:"1.5"})]});import{$isListNode as hc,ListItemNode as xc,ListNode as Tc}from"@lexical/list";var Nn={type:"element",dependencies:[Tc,xc],export:(e,t)=>hc(e)?te(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:de("bullet")};var _n=[M([{ChildComponent:Wt,isActive:({selection:e})=>{if(!Ec(e))return!1;for(let t of e.getNodes()){if(Vt(t)&&t.getListType()==="bullet")continue;let o=t.getParent();if(Vt(o)&&o.getListType()==="bullet")continue;let r=o?.getParent();if(!(Vt(r)&&r.getListType()==="bullet"))return!1}return!0},key:"unorderedList",label:({i18n:e})=>e.t("lexical:unorderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(wn,void 0)},order:11}])],bc=h({markdownTransformers:[Nn],nodes:[yc,Lc],plugins:[{Component:ae,position:"normal"}],slashMenu:{groups:[ce([{Icon:Wt,key:"unorderedList",keywords:["unordered list","ul"],label:({i18n:e})=>e.t("lexical:unorderedList:label"),onSelect:({editor:e})=>{e.dispatchCommand(wn,void 0)}}])]},toolbarFixed:{groups:_n},toolbarInline:{groups:_n}});function Rn({converters:e,lexicalPluginData:t}){return{root:{type:"root",children:Sn({converters:e,lexicalPluginNodes:t?.jsonContent?.root?.children||[],parentNodeType:"root"}),direction:t?.jsonContent?.root?.direction||"ltr",format:t?.jsonContent?.root?.format||"",indent:t?.jsonContent?.root?.indent||0,version:1}}}function Sn({converters:e,lexicalPluginNodes:t,parentNodeType:o}){if(!t?.length)return[];let r=e.find(n=>n.nodeTypes.includes("unknown"));return t.map((n,i)=>{if(n.type==="paragraph")return kc(e,n);if(n.type==="text"||!n.type)return n;let l=e.find(a=>a.nodeTypes.includes(n.type));return l?l.converter({childIndex:i,converters:e,lexicalPluginNode:n,parentNodeType:o}):(console.warn("lexicalPluginToLexical > No converter found for node type: "+n.type),r?.converter({childIndex:i,converters:e,lexicalPluginNode:n,parentNodeType:o}))})||[]}function kc(e,t){return{...t,type:"paragraph",children:Sn({converters:e,lexicalPluginNodes:t.children||[],parentNodeType:"paragraph"}),version:1}}import{addClassNamesToElement as Nc}from"@lexical/utils";import{DecoratorNode as _c}from"lexical";import*as vn from"react";import{jsx as Sc}from"react/jsx-runtime";var wc=vn.lazy(()=>import("./Component-7HS6FEJS.js").then(e=>({default:e.UnknownConvertedNodeComponent}))),we=class e extends _c{__data;constructor({data:t,key:o}){super(o),this.__data=t}static clone(t){return new e({data:t.__data,key:t.__key})}static getType(){return"unknownConverted"}static importJSON(t){return Rc({data:t.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(t){let o=document.createElement("span");return Nc(o,"unknownConverted"),o}decorate(){return Sc(wc,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(t,o){return!1}};function Rc({data:e}){return new we({data:e})}var vc=h(({clientFunctions:e})=>{let t=Object.values(e);return{hooks:{load({incomingEditorState:o}){return!o||!("jsonContent"in o)?o:Rn({converters:t,lexicalPluginData:o})}},nodes:[we]}});var T={DOM_ELEMENT_TYPE:1,DOM_TEXT_TYPE:3,NO_DIRTY_NODES:0,HAS_DIRTY_NODES:1,FULL_RECONCILE:2,IS_NORMAL:0,IS_TOKEN:1,IS_SEGMENTED:2,IS_INERT:3,IS_BOLD:1,IS_ITALIC:2,IS_STRIKETHROUGH:4,IS_UNDERLINE:8,IS_CODE:16,IS_SUBSCRIPT:32,IS_SUPERSCRIPT:64,IS_HIGHLIGHT:128,IS_DIRECTIONLESS:1,IS_UNMERGEABLE:2,IS_ALIGN_LEFT:1,IS_ALIGN_CENTER:2,IS_ALIGN_RIGHT:3,IS_ALIGN_JUSTIFY:4,IS_ALIGN_START:5,IS_ALIGN_END:6},Ic=T.IS_BOLD|T.IS_ITALIC|T.IS_STRIKETHROUGH|T.IS_UNDERLINE|T.IS_CODE|T.IS_SUBSCRIPT|T.IS_SUPERSCRIPT|T.IS_HIGHLIGHT,Fc="\xA0",Pc=`
|
|
36
|
+
|
|
37
|
+
`,In="\u0591-\u07FF\uFB1D-\uFDFD\uFE70-\uFEFC",Fn="A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02B8\u0300-\u0590\u0800-\u1FFF\u200E\u2C00-\uFB1C\uFE00-\uFE6F\uFEFD-\uFFFF",Mc=new RegExp("^[^"+Fn+"]*["+In+"]"),Ac=new RegExp("^[^"+In+"]*["+Fn+"]"),Dc={bold:T.IS_BOLD,code:T.IS_CODE,highlight:T.IS_HIGHLIGHT,italic:T.IS_ITALIC,strikethrough:T.IS_STRIKETHROUGH,subscript:T.IS_SUBSCRIPT,superscript:T.IS_SUPERSCRIPT,underline:T.IS_UNDERLINE},Oc={directionless:T.IS_DIRECTIONLESS,unmergeable:T.IS_UNMERGEABLE},Hc={center:T.IS_ALIGN_CENTER,end:T.IS_ALIGN_END,justify:T.IS_ALIGN_JUSTIFY,left:T.IS_ALIGN_LEFT,right:T.IS_ALIGN_RIGHT,start:T.IS_ALIGN_START},Bc={[T.IS_ALIGN_CENTER]:"center",[T.IS_ALIGN_END]:"end",[T.IS_ALIGN_JUSTIFY]:"justify",[T.IS_ALIGN_LEFT]:"left",[T.IS_ALIGN_RIGHT]:"right",[T.IS_ALIGN_START]:"start"},Gc={normal:T.IS_NORMAL,segmented:T.IS_SEGMENTED,token:T.IS_TOKEN},$c={[T.IS_NORMAL]:"normal",[T.IS_SEGMENTED]:"segmented",[T.IS_TOKEN]:"token"};function Mn({converters:e,slateData:t}){return{root:{type:"root",children:An({canContainParagraphs:!0,converters:e,parentNodeType:"root",slateNodes:t}),direction:"ltr",format:"",indent:0,version:1}}}function An({canContainParagraphs:e,converters:t,parentNodeType:o,slateNodes:r}){if(!t?.length)return[];let n=t.find(i=>i.nodeTypes.includes("unknown"));return r.map((i,l)=>{if(!("type"in i))return e?Pn(t,i):Uc(i);if(i.type==="p")return Pn(t,i);let a=t.find(s=>s.nodeTypes.includes(i.type));return a?a.converter({childIndex:l,converters:t,parentNodeType:o,slateNode:i}):(console.warn("slateToLexical > No converter found for node type: "+i.type),n?.converter({childIndex:l,converters:t,parentNodeType:o,slateNode:i}))})||[]}function Pn(e,t){return{type:"paragraph",children:An({canContainParagraphs:!1,converters:e,parentNodeType:"paragraph",slateNodes:t.children||[]}),direction:"ltr",format:"",indent:0,textFormat:0,version:1}}function Uc(e){return{type:"text",detail:0,format:Wc(e),mode:"normal",style:"",text:e.text,version:1}}function Wc(e){let t=0;return e.bold&&(t=t|T.IS_BOLD),e.italic&&(t=t|T.IS_ITALIC),e.strikethrough&&(t=t|T.IS_STRIKETHROUGH),e.underline&&(t=t|T.IS_UNDERLINE),e.subscript&&(t=t|T.IS_SUBSCRIPT),e.superscript&&(t=t|T.IS_SUPERSCRIPT),e.code&&(t=t|T.IS_CODE),t}import{addClassNamesToElement as Vc}from"@lexical/utils";import{DecoratorNode as zc}from"lexical";import*as Dn from"react";import{jsx as Zc}from"react/jsx-runtime";var Kc=Dn.lazy(()=>import("./Component-LAKSCIDX.js").then(e=>({default:e.UnknownConvertedNodeComponent}))),Re=class e extends zc{__data;constructor({data:t,key:o}){super(o),this.__data=t}static clone(t){return new e({data:t.__data,key:t.__key})}static getType(){return"unknownConverted"}static importJSON(t){return jc({data:t.data})}canInsertTextAfter(){return!0}canInsertTextBefore(){return!0}createDOM(t){let o=document.createElement("span");return Vc(o,"unknownConverted"),o}decorate(){return Zc(Kc,{data:this.__data})}exportJSON(){return{type:this.getType(),data:this.__data,version:1}}isInline(){return!0}updateDOM(t,o){return!1}};function jc({data:e}){return new Re({data:e})}var Xc=h(({clientFunctions:e})=>{let t=Object.values(e);return{hooks:{load({incomingEditorState:o}){return!o||!Array.isArray(o)||"root"in o?o:Mn({converters:t,slateData:o})}},nodes:[Re]}});import{$setBlocksType as Bn}from"@lexical/selection";import{$createParagraphNode as Gn,$getSelection as $n,$isParagraphNode as On,$isRangeSelection as Jc}from"lexical";var Hn=[M([{ChildComponent:be,isActive:({selection:e})=>{if(!Jc(e))return!1;for(let t of e.getNodes())if(!On(t)&&!On(t.getParent()))return!1;return!0},key:"paragraph",label:({i18n:e})=>e.t("lexical:paragraph:label2"),onSelect:({editor:e})=>{e.update(()=>{let t=$n();Bn(t,()=>Gn())})},order:1}])],Yc=h({slashMenu:{groups:[D([{Icon:be,key:"paragraph",keywords:["normal","paragraph","p","text"],label:({i18n:e})=>e.t("lexical:paragraph:label"),onSelect:({editor:e})=>{e.update(()=>{let t=$n();Bn(t,()=>Gn())})}}])]},toolbarFixed:{groups:Hn},toolbarInline:{groups:Hn}});import{$isNodeSelection as gd}from"lexical";import{jsx as Se,jsxs as qc}from"react/jsx-runtime";var zt=()=>qc("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[Se("g",{clipPath:"url(#clip0_4397_10817)",children:Se("path",{d:"M7.75 12.25L15.25 4.75M15.25 4.75H11.5M15.25 4.75V8.5M13 11.5V13.75C13 14.5784 12.3284 15.25 11.5 15.25H6.25C5.42157 15.25 4.75 14.5784 4.75 13.75V8.5C4.75 7.67157 5.42157 7 6.25 7H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})}),Se("defs",{children:Se("clipPath",{id:"clip0_4397_10817",children:Se("rect",{fill:"currentColor",height:"12",transform:"translate(4 4)",width:"12"})})})]});import{useLexicalComposerContext as id}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as ld}from"@lexical/utils";import{useConfig as sd}from"@payloadcms/ui";import{$getPreviousSelection as ad,$getSelection as cd,$isParagraphNode as Kn,$isRangeSelection as dd,COMMAND_PRIORITY_EDITOR as pd,createCommand as ud}from"lexical";import{useEffect as md}from"react";import{useLexicalComposerContext as Qc}from"@lexical/react/LexicalComposerContext.js";import{useListDrawer as ed}from"@payloadcms/ui";import{$getNodeByKey as td,COMMAND_PRIORITY_EDITOR as od}from"lexical";import{useCallback as rd,useEffect as Un,useState as Wn}from"react";import{jsx as Qe}from"react/jsx-runtime";var nd=({editor:e,relationTo:t,replaceNodeKey:o,value:r})=>{o?e.update(()=>{let n=td(o);n&&n.replace(he({relationTo:t,value:r}))}):e.dispatchCommand(Kt,{relationTo:t,value:r})},Vn=({enabledCollectionSlugs:e})=>{let[t]=Qc(),[o,r]=Wn(()=>e[0]),[n,i]=Wn(null),[l,a,{closeDrawer:s,isDrawerOpen:c,openDrawer:d}]=ed({collectionSlugs:e,selectedCollection:o});Un(()=>t.registerCommand(ge,p=>(i(p?.replace?p?.replace.nodeKey:null),d(),!0),od),[t,d]);let u=rd(({collectionSlug:p,docID:m})=>{nd({editor:t,relationTo:p,replaceNodeKey:n,value:m}),s()},[t,s,n]);return Un(()=>{r(e[0])},[c,e]),Qe(l,{onSelect:u})},zn=e=>e?.enabledCollectionSlugs?.length>0?Qe(Vn,{...e}):Qe(Be,{...e,children:Qe(Vn,{...e})});import{jsx as fd}from"react/jsx-runtime";var Kt=ud("INSERT_RELATIONSHIP_COMMAND"),jn=({clientProps:e})=>{let[t]=id(),{collections:o}=sd(),r=null;return e?.enabledCollections?r=e?.enabledCollections:e?.disabledCollections&&(r=o.filter(({slug:n})=>!e?.disabledCollections?.includes(n)).map(({slug:n})=>n)),md(()=>{if(!t.hasNodes([Ce]))throw new Error("RelationshipPlugin: RelationshipNode not registered on editor");return t.registerCommand(Kt,n=>{let i=cd()||ad();if(dd(i)){let l=he(n);ld(l);let{focus:a}=i,s=a.getNode();Kn(s)&&s.getTextContentSize()===0&&s.getParent().getChildren().filter(c=>Kn(c)).length>1&&s.remove()}return!0},pd)},[t]),fd(zn,{enabledCollectionSlugs:r})};var Cd=h({nodes:[Ce],plugins:[{Component:jn,position:"normal"}],slashMenu:{groups:[D([{Icon:zt,key:"relationship",keywords:["relationship","relation","rel"],label:({i18n:e})=>e.t("lexical:relationship:label"),onSelect:({editor:e})=>{e.dispatchCommand(ge,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:zt,isActive:({selection:e})=>{if(!gd(e)||!e.getNodes().length)return!1;let t=e.getNodes()[0];return pt(t)},key:"relationship",label:({i18n:e})=>e.t("lexical:relationship:label"),onSelect:({editor:e})=>{e.dispatchCommand(ge,{replace:!1})}}])]}});import{useLexicalComposerContext as Id}from"@lexical/react/LexicalComposerContext.js";import{useScrollInfo as Fd,useThrottledEffect as Pd,useTranslation as Md}from"@payloadcms/ui";import*as K from"react";import{useMemo as Ad}from"react";import{mergeRegister as hd}from"@lexical/utils";import{$getSelection as xd}from"lexical";import{useCallback as Td,useEffect as et,useState as jt}from"react";import{jsx as Ld}from"react/jsx-runtime";var Zt="toolbar-popup__button",ve=({children:e,editor:t,item:o})=>{let[r,n]=jt(!0),[i,l]=jt(!1),[a,s]=jt(Zt),c=v(),d=Td(()=>{t.getEditorState().read(()=>{let u=xd();if(o.isActive){let p=o.isActive({editor:t,editorConfigContext:c,selection:u});i!==p&&l(p)}if(o.isEnabled){let p=o.isEnabled({editor:t,editorConfigContext:c,selection:u});r!==p&&n(p)}})},[i,t,c,r,o]);return et(()=>{d()},[d]),et(()=>(document.addEventListener("mouseup",d),()=>{document.removeEventListener("mouseup",d)}),[d]),et(()=>hd(t.registerUpdateListener(()=>{d()})),[t,d]),et(()=>{s([Zt,r===!1?"disabled":"",i?"active":"",o?.key?`${Zt}-`+o.key:""].filter(Boolean).join(" "))},[r,i,a,o.key]),Ld("button",{className:a,onClick:()=>{if(r!==!1)return t._updateTags=new Set([...t._updateTags,"toolbar"]),t.focus(()=>{o.onSelect({editor:t,isActive:i})}),!0},onMouseDown:u=>{u.preventDefault()},type:"button",children:e})};import qn,{useCallback as Nd,useEffect as Yt}from"react";import{mergeRegister as _d}from"@lexical/utils";import{useTranslation as wd}from"@payloadcms/ui";import{$getSelection as Rd}from"lexical";import tt,{useCallback as yd,useEffect as Ie,useMemo as Ed,useRef as Jt,useState as ot}from"react";import{createPortal as bd}from"react-dom";import{jsx as Z,jsxs as Zn}from"react/jsx-runtime";var Xt="toolbar-popup__dropdown-item",Xn=tt.createContext(null);function Jn({active:e,children:t,editor:o,enabled:r,item:n,title:i}){let[l,a]=ot(Xt);Ie(()=>{a([Xt,r===!1?"disabled":"",e?"active":"",n?.key?`${Xt}-${n.key}`:""].filter(Boolean).join(" "))},[r,e,l,n.key]);let s=Jt(null),c=tt.useContext(Xn);if(c===null)throw new Error("DropDownItem must be used within a DropDown");let{registerItem:d}=c;return Ie(()=>{s?.current!=null&&d(s)},[s,d]),Z("button",{className:l,onClick:()=>{r!==!1&&(o._updateTags=new Set([...o._updateTags,"toolbar"]),o.focus(()=>{n.onSelect({editor:o,isActive:e})}))},onMouseDown:u=>{u.preventDefault()},ref:s,title:i,type:"button",children:t})}function kd({children:e,dropDownRef:t,itemsContainerClassNames:o,onClose:r}){let[n,i]=ot(),[l,a]=ot(),s=yd(u=>{i(p=>p!=null?[...p,u]:[u])},[i]),c=u=>{if(n==null)return;let{key:p}=u;["ArrowDown","ArrowUp","Escape","Tab"].includes(p)&&u.preventDefault(),p==="Escape"||p==="Tab"?r():p==="ArrowUp"?a(m=>{if(m==null)return n[0];let f=n.indexOf(m)-1;return n[f===-1?n.length-1:f]}):p==="ArrowDown"&&a(m=>m==null?n[0]:n[n.indexOf(m)+1])},d=Ed(()=>({registerItem:s}),[s]);return Ie(()=>{n!=null&&l==null&&a(n[0]),l!=null&&l?.current!=null&&l.current.focus()},[n,l]),Z(Xn.Provider,{value:d,children:Z("div",{className:(o??["toolbar-popup__dropdown-items"]).join(" "),onKeyDown:c,ref:t,children:e})})}function Yn({Icon:e,buttonAriaLabel:t,buttonClassName:o,children:r,disabled:n=!1,itemsContainerClassNames:i,label:l,stopCloseOnClickSelf:a}){let s=Jt(null),c=Jt(null),[d,u]=ot(!1),p=()=>{u(!1),c?.current!=null&&c.current.focus()};Ie(()=>{let f=c.current,g=s.current;if(d&&f!==null&&g!==null){let{left:L,top:x}=f.getBoundingClientRect(),N=window.scrollY||document.documentElement.scrollTop;g.style.top=`${x+N+f.offsetHeight+5}px`,g.style.left=`${Math.min(L-5,window.innerWidth-g.offsetWidth-20)}px`}},[s,c,d]),Ie(()=>{let f=c.current;if(f!==null&&d){let g=L=>{let{target:x}=L;a!=null&&s.current!=null&&s.current.contains(x)||f.contains(x)||u(!1)};return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}}},[s,c,d,a]);let m=bd(Z(kd,{dropDownRef:s,itemsContainerClassNames:i,onClose:p,children:r}),document.body);return Zn(tt.Fragment,{children:[Zn("button",{"aria-label":t,className:o+(d?" active":""),disabled:n,onClick:f=>{f.preventDefault(),u(!d)},onMouseDown:f=>{f.preventDefault()},ref:c,type:"button",children:[e&&Z(e,{}),l&&Z("span",{className:"toolbar-popup__dropdown-label",children:l}),Z("i",{className:"toolbar-popup__dropdown-caret"})]}),d&&Z(tt.Fragment,{children:m})]})}import{jsx as Fe,jsxs as vd}from"react/jsx-runtime";var qt="toolbar-popup__dropdown",Sd=({active:e,anchorElem:t,editor:o,enabled:r,item:n})=>{let{i18n:i}=wd();if(n.Component)return n?.Component&&Fe(n.Component,{active:e,anchorElem:t,editor:o,enabled:r,item:n},n.key);let l=n.key;return n.label&&(l=typeof n.label=="function"?n.label({i18n:i}):n.label),l.length>25&&(l=l.substring(0,25)+"..."),vd(Jn,{active:e,editor:o,enabled:r,item:n,children:[n?.ChildComponent&&Fe(n.ChildComponent,{}),Fe("span",{className:"text",children:l})]},n.key)},oe=({Icon:e,anchorElem:t,classNames:o,editor:r,groupKey:n,items:i,itemsContainerClassNames:l,label:a,maxActiveItems:s,onActiveChange:c})=>{let[d,u]=qn.useState([]),[p,m]=qn.useState([]),f=v(),g=Nd(()=>{r.getEditorState().read(()=>{let L=Rd(),x=[],N=[],_=[];for(let C of i)C.isActive&&(!s||x.length<s)&&C.isActive({editor:r,editorConfigContext:f,selection:L})&&(x.push(C.key),N.push(C)),C.isEnabled?C.isEnabled({editor:r,editorConfigContext:f,selection:L})&&_.push(C.key):_.push(C.key);u(x),m(_),c&&c({activeItems:N})})},[r,f,i,s,c]);return Yt(()=>{g()},[g]),Yt(()=>(document.addEventListener("mouseup",g),()=>{document.removeEventListener("mouseup",g)}),[g]),Yt(()=>_d(r.registerUpdateListener(()=>{g()})),[r,g]),Fe(Yn,{Icon:e,buttonAriaLabel:`${n} dropdown`,buttonClassName:[qt,`${qt}-${n}`,...o||[]].filter(Boolean).join(" "),itemsContainerClassNames:[`${qt}-items`,...l||[]],label:a,children:i.length&&i.map(L=>Fe(Sd,{active:d.includes(L.key),anchorElem:t,editor:r,enabled:p.includes(L.key),item:L},L.key))},n)};import{jsx as H,jsxs as Bd}from"react/jsx-runtime";function Dd({anchorElem:e,editor:t,item:o}){return o.Component?o?.Component&&H(o.Component,{anchorElem:e,editor:t,item:o},o.key):H(ve,{editor:t,item:o,children:o?.ChildComponent&&H(o.ChildComponent,{})},o.key)}function Od({anchorElem:e,editor:t,editorConfig:o,group:r,index:n}){let{i18n:i}=Md(),[l,a]=K.useState(null),[s,c]=K.useState(null);K.useEffect(()=>{r?.type==="dropdown"&&r.items.length&&r.ChildComponent?c(()=>r.ChildComponent):c(null)},[r]);let d=({activeItems:u})=>{if(!u.length){r?.type==="dropdown"&&r.items.length&&r.ChildComponent?(c(()=>r.ChildComponent),a(null)):(c(null),a(null));return}let p=u[0],m=p.key;p.label&&(m=typeof p.label=="function"?p.label({i18n:i}):p.label),m.length>25&&(m=m.substring(0,25)+"..."),a(m),c(()=>p.ChildComponent)};return Bd("div",{className:`fixed-toolbar__group fixed-toolbar__group-${r.key}`,children:[r.type==="dropdown"&&r.items.length&&(s?H(oe,{Icon:s,anchorElem:e,editor:t,groupKey:r.key,items:r.items,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:l,maxActiveItems:1,onActiveChange:d}):H(oe,{anchorElem:e,editor:t,groupKey:r.key,items:r.items,itemsContainerClassNames:["fixed-toolbar__dropdown-items"],label:l,maxActiveItems:1,onActiveChange:d})),r.type==="buttons"&&r.items.length&&r.items.map(u=>H(Dd,{anchorElem:e,editor:t,item:u},u.key)),n<o.features.toolbarFixed?.groups.length-1&&H("div",{className:"divider"})]},r.key)}function Hd({anchorElem:e,clientProps:t,editor:o,editorConfig:r,parentWithFixedToolbar:n}){let i=K.useRef(null),{y:l}=Fd(),a=Ad(()=>{if(!n||t?.disableIfParentHasFixedToolbar)return null;let c=n.editorContainerRef.current.previousElementSibling;for(;c;){if(c.classList.contains("fixed-toolbar"))return c;c=c.previousElementSibling}return null},[t?.disableIfParentHasFixedToolbar,n]);return Pd(()=>{if(!a)return;let s=i.current;if(!s)return;let c=s.getBoundingClientRect(),d=a.getBoundingClientRect();if(!(c.bottom<d.top||c.top>d.bottom))i.current.className="fixed-toolbar fixed-toolbar--overlapping",a.className="fixed-toolbar fixed-toolbar--hide";else{if(!i.current.classList.contains("fixed-toolbar--overlapping"))return;i.current.className="fixed-toolbar",a.className="fixed-toolbar"}},50,[i,a,l]),H("div",{className:"fixed-toolbar",onFocus:s=>{s.stopPropagation()},ref:i,children:o.isEditable()&&H(K.Fragment,{children:r?.features&&r.features?.toolbarFixed?.groups.map((s,c)=>H(Od,{anchorElem:e,editor:o,editorConfig:r,group:s,index:c},s.key))})})}var Qn=e=>{if(e.parentEditor?.editorConfig){if(e.parentEditor?.editorConfig.resolvedFeatureMap.has("toolbarFixed"))return e.parentEditor;if(e.parentEditor)return Qn(e.parentEditor)}return!1},ei=({anchorElem:e,clientProps:t})=>{let[o]=Id(),r=v(),{editorConfig:n}=r,i=t.applyToFocusedEditor&&r.focusedEditor?.editor||o,l=t.applyToFocusedEditor&&r.focusedEditor?.editorConfig||n,a=Qn(r);return t?.disableIfParentHasFixedToolbar&&a||!l?.features?.toolbarFixed?.groups?.length?null:H(Hd,{anchorElem:e,editor:i,editorConfig:l,parentWithFixedToolbar:a})};var Gd=h({plugins:[{Component:ei,position:"aboveContainer"}]});import{useLexicalComposerContext as $d}from"@lexical/react/LexicalComposerContext.js";import{mergeRegister as ri}from"@lexical/utils";import{$getSelection as ni,$isRangeSelection as ti,$isTextNode as Ud,COMMAND_PRIORITY_LOW as Wd,SELECTION_CHANGE_COMMAND as Vd}from"lexical";import{useCallback as Pe,useEffect as Me,useRef as oi,useState as zd}from"react";import*as ue from"react";import{createPortal as Kd}from"react-dom";function Qt(e,t){let o=e.getRangeAt(0),r;if(e.anchorNode===t){let n=t;for(;n.firstElementChild!=null;)n=n.firstElementChild;r=n.getBoundingClientRect()}else r=o.getBoundingClientRect();return r}function rt(e){let{alwaysDisplayOnTop:t=!1,anchorElem:o,anchorFlippedOffset:r=0,floatingElem:n,horizontalOffset:i=5,horizontalPosition:l="left",specialHandlingForCaret:a=!1,targetRect:s,verticalGap:c=10}=e,d=o.parentElement;if(s===null||d==null){n.style.opacity="0",n.style.transform="translate(-10000px, -10000px)";return}let u=n.getBoundingClientRect(),p=o.getBoundingClientRect(),m=d.getBoundingClientRect(),f=s.top-u.height-c,g=s.left-i;l==="center"&&(g=s.left+s.width/2-u.width/2);let L=0;return!t&&f<m.top&&!a&&(L=u.height+s.height+c*2,f+=L),l==="center"?g+u.width>m.right?g=m.right-u.width-i:g<m.left&&(g=m.left+i):g+u.width>m.right&&(g=m.right-u.width-i),g-=p.left,n.style.opacity="1",a&&r!==0?(f-=p.bottom-r+u.height-3,n.style.transform=`translate(${g}px, ${f}px) rotate(180deg)`):(f-=p.top,n.style.transform=`translate(${g}px, ${f}px)`),L}import{jsx as B,jsxs as li}from"react/jsx-runtime";function jd({anchorElem:e,editor:t,item:o}){return o.Component?o?.Component&&B(o.Component,{anchorElem:e,editor:t,item:o},o.key):B(ve,{editor:t,item:o,children:o?.ChildComponent&&B(o.ChildComponent,{})},o.key)}function Zd({anchorElem:e,editor:t,group:o,index:r}){let{editorConfig:n}=v(),[i,l]=ue.useState(null);ue.useEffect(()=>{o?.type==="dropdown"&&o.items.length&&o.ChildComponent?l(()=>o.ChildComponent):l(null)},[o]);let a=({activeItems:s})=>{if(!s.length){o?.type==="dropdown"&&o.items.length&&o.ChildComponent?l(()=>o.ChildComponent):l(null);return}let c=s[0];l(()=>c.ChildComponent)};return li("div",{className:`inline-toolbar-popup__group inline-toolbar-popup__group-${o.key}`,children:[o.type==="dropdown"&&o.items.length&&(i?B(oe,{Icon:i,anchorElem:e,editor:t,groupKey:o.key,items:o.items,maxActiveItems:1,onActiveChange:a}):B(oe,{anchorElem:e,editor:t,groupKey:o.key,items:o.items,maxActiveItems:1,onActiveChange:a})),o.type==="buttons"&&o.items.length&&o.items.map(s=>B(jd,{anchorElem:e,editor:t,item:s},s.key)),r<n.features.toolbarInline?.groups.length-1&&B("div",{className:"divider"})]},o.key)}function Xd({anchorElem:e,editor:t}){let o=oi(null),r=oi(null),{editorConfig:n}=v(),i=Pe(()=>{if(o?.current){let c=o.current.style.opacity==="0",d=o.current.style.pointerEvents==="none";c||(o.current.style.opacity="0"),d||(o.current.style.pointerEvents="none")}},[o]),l=Pe(c=>{if(o?.current&&(c.buttons===1||c.buttons===3)){let d=o.current.style.opacity==="0",u=o.current.style.pointerEvents==="none";if(!d||!u){let p=c.clientX,m=c.clientY,f=document.elementFromPoint(p,m);o.current.contains(f)||i()}}},[i]),a=Pe(()=>{o?.current&&(o.current.style.opacity!=="1"&&(o.current.style.opacity="1"),o.current.style.pointerEvents!=="auto"&&(o.current.style.pointerEvents="auto"))},[]);Me(()=>(document.addEventListener("mousemove",l),document.addEventListener("mouseup",a),()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",a)}),[o,l,a]);let s=Pe(()=>{let c=ni(),d=window.getSelection();if(o.current===null)return;let u=e.querySelector(":scope > .link-editor"),p=u!==null&&"style"in u&&u?.style?.opacity==="1",m=t.getRootElement();if(c!==null&&d!==null&&!d.isCollapsed&&m!==null&&m.contains(d.anchorNode)){let f=Qt(d,m),g=rt({alwaysDisplayOnTop:p,anchorElem:e,floatingElem:o.current,horizontalPosition:"center",targetRect:f});r.current&&rt({anchorElem:o.current,anchorFlippedOffset:g,floatingElem:r.current,horizontalOffset:5,horizontalPosition:"center",specialHandlingForCaret:!0,targetRect:f,verticalGap:10})}else i()},[t,i,e]);return Me(()=>{let c=e.parentElement,d=()=>{t.getEditorState().read(()=>{s()})};return window.addEventListener("resize",d),c&&c.addEventListener("scroll",d),()=>{window.removeEventListener("resize",d),c&&c.removeEventListener("scroll",d)}},[t,s,e]),Me(()=>(t.getEditorState().read(()=>{s()}),ri(t.registerUpdateListener(({editorState:c})=>{c.read(()=>{s()})}),t.registerCommand(Vd,()=>(s(),!1),Wd))),[t,s]),li("div",{className:"inline-toolbar-popup",ref:o,children:[B("div",{className:"caret",ref:r}),t.isEditable()&&B(ue.Fragment,{children:n?.features&&n.features?.toolbarInline?.groups.map((c,d)=>B(Zd,{anchorElem:e,editor:t,group:c,index:d},c.key))})]})}function Jd(e,t){let[o,r]=zd(!1),n=Pe(()=>{e.getEditorState().read(()=>{if(e.isComposing())return;let i=ni(),l=window.getSelection(),a=e.getRootElement();if(l!==null&&(!ti(i)||a===null||!a.contains(l.anchorNode))){r(!1);return}if(!ti(i))return;if(i.getTextContent()!==""){let c=i.getNodes(),d=!1;for(let u of c)if(Ud(u)){r(!0),d=!0;break}d||r(!1)}else r(!1);let s=i.getTextContent().replace(/\n/g,"");if(!i.isCollapsed()&&s===""){r(!1);return}})},[e]);return Me(()=>(document.addEventListener("selectionchange",n),document.addEventListener("mouseup",n),()=>{document.removeEventListener("selectionchange",n),document.removeEventListener("mouseup",n)}),[n]),Me(()=>ri(e.registerUpdateListener(()=>{n()}),e.registerRootListener(()=>{e.getRootElement()===null&&r(!1)})),[e,n]),o?Kd(B(Xd,{anchorElem:t,editor:e}),t):null}var ii=({anchorElem:e})=>{let[t]=$d();return Jd(t,e)};var Yd=h({plugins:[{Component:ii,position:"floatingAnchorElem"}]});import{$isNodeSelection as Tp}from"lexical";import{jsx as eo,jsxs as qd}from"react/jsx-runtime";var to=()=>qd("svg",{"aria-hidden":"true",className:"icon",fill:"none",focusable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[eo("path",{d:"M14.6667 4H5.33333C4.59695 4 4 4.59695 4 5.33333V14.6667C4 15.403 4.59695 16 5.33333 16H14.6667C15.403 16 16 15.403 16 14.6667V5.33333C16 4.59695 15.403 4 14.6667 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),eo("path",{d:"M7.99984 9.33366C8.73622 9.33366 9.33317 8.73671 9.33317 8.00033C9.33317 7.26395 8.73622 6.66699 7.99984 6.66699C7.26346 6.66699 6.6665 7.26395 6.6665 8.00033C6.6665 8.73671 7.26346 9.33366 7.99984 9.33366Z",stroke:"#currentColor",strokeLinecap:"round",strokeLinejoin:"round"}),eo("path",{d:"M16 11.9995L13.9427 9.94214C13.6926 9.69218 13.3536 9.55176 13 9.55176C12.6464 9.55176 12.3074 9.69218 12.0573 9.94214L6 15.9995",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round"})]});import{useLexicalComposerContext as ap}from"@lexical/react/LexicalComposerContext.js";import{$insertNodeToNearestRoot as cp,mergeRegister as dp}from"@lexical/utils";import{useConfig as pp}from"@payloadcms/ui";import{$getPreviousSelection as up,$getSelection as mp,$isParagraphNode as ai,$isRangeSelection as fp,COMMAND_PRIORITY_EDITOR as gp,createCommand as Cp}from"lexical";import{useEffect as hp}from"react";import{useLexicalComposerContext as Qd}from"@lexical/react/LexicalComposerContext.js";import{useListDrawer as ep}from"@payloadcms/ui";import{$getNodeByKey as tp,COMMAND_PRIORITY_EDITOR as op}from"lexical";import{useCallback as rp,useEffect as np,useState as ip}from"react";import{jsx as oo}from"react/jsx-runtime";var lp=({editor:e,relationTo:t,replaceNodeKey:o,value:r})=>{o?e.update(()=>{let n=tp(o);n&&n.replace(Le({data:{fields:null,relationTo:t,value:r}}))}):e.dispatchCommand(ro,{fields:null,relationTo:t,value:r})},sp=({enabledCollectionSlugs:e})=>{let[t]=Qd(),[o,r]=ip(null),[n,i,{closeDrawer:l,openDrawer:a}]=ep({collectionSlugs:e,uploads:!0});np(()=>t.registerCommand(xe,c=>(r(c?.replace?c?.replace.nodeKey:null),a(),!0),op),[t,a]);let s=rp(({collectionSlug:c,docID:d})=>{lp({editor:t,relationTo:c,replaceNodeKey:o,value:d}),l()},[t,l,o]);return oo(n,{onSelect:s})},si=e=>oo(Be,{...e,uploads:!0,children:oo(sp,{...e})});import{jsx as xp}from"react/jsx-runtime";var ro=Cp("INSERT_UPLOAD_COMMAND"),ci=({clientProps:e})=>{let[t]=ap(),{collections:o}=pp();return hp(()=>{if(!t.hasNodes([Te]))throw new Error("UploadPlugin: UploadNode not registered on editor");return dp(t.registerCommand(ro,r=>(t.update(()=>{let n=mp()||up();if(fp(n)){let i=Le({data:{id:r.id,fields:r.fields,relationTo:r.relationTo,value:r.value}});cp(i);let{focus:l}=n,a=l.getNode();ai(a)&&a.getTextContentSize()===0&&a.getParent().getChildren().filter(s=>ai(s)).length>1&&a.remove()}}),!0),gp))},[t]),xp(si,{enabledCollectionSlugs:o.map(({slug:r})=>r)})};var Lp=h({nodes:[Te],plugins:[{Component:ci,position:"normal"}],slashMenu:{groups:[D([{Icon:to,key:"upload",keywords:["upload","image","file","img","picture","photo","media"],label:({i18n:e})=>e.t("lexical:upload:label"),onSelect:({editor:e})=>{e.dispatchCommand(xe,{replace:!1})}}])]},toolbarFixed:{groups:[ee([{ChildComponent:to,isActive:({selection:e})=>{if(!Tp(e)||!e.getNodes().length)return!1;let t=e.getNodes()[0];return ut(t)},key:"upload",label:({i18n:e})=>e.t("lexical:upload:label"),onSelect:({editor:e})=>{e.dispatchCommand(xe,{replace:!1})}}])]}});import{ShimmerEffect as yp,useClientFunctions as Ep,useFieldProps as bp}from"@payloadcms/ui";import di,{Suspense as kp,lazy as Np,useEffect as _p,useState as no}from"react";import{jsx as nt,jsxs as Sp}from"react/jsx-runtime";var wp=Np(()=>import("./Field-XBUN6QOM.js").then(e=>({default:e.RichText}))),Rp=e=>{let{admin:t,lexicalEditorConfig:o,richTextComponentMap:r}=e,{schemaPath:n}=bp(),i=Ep(),[l,a]=no(!1),[s,c]=no([]),[d,u]=no(null),p=r.get("features");p=p.sort((f,g)=>f.order-g.order);let m=0;for(let f of p){let g=Array.from(r.keys()).filter(L=>L.startsWith(`feature.${f.key}.components.`));m+=1,m+=g.length}return _p(()=>{if(!l){let f=[],g=0;if(Object.entries(i).forEach(([L,x])=>{L.startsWith(`lexicalFeature.${n}.`)&&(L.includes(".components.")||f.push(x),g++)}),g===m){c(f),a(!0);let L=Ge({clientFunctions:i,schemaPath:n,unSanitizedEditorConfig:{features:f,lexical:o}});u(Ee(o||ye,L,t))}}},[t,l,i,n,p.length,s,d,o,m]),l?nt(kp,{fallback:nt(yp,{height:"35vh"}),children:d&&nt(wp,{...e,editorConfig:d})}):nt(di.Fragment,{children:Array.isArray(p)&&p.map(f=>{let L=Array.from(r.keys()).filter(x=>x.startsWith(`feature.${f.key}.components.`)).map(x=>r.get(x));return Sp(di.Fragment,{children:[L?.length?L.map(x=>x):null,f.ClientFeature]},f.key)})})};function it(e,t=new WeakMap){if(e===null)return null;if(t.has(e))return t.get(e);if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e instanceof Map){let o=new Map;t.set(e,o);for(let[r,n]of e.entries())o.set(r,it(n,t));return o}if(e instanceof Set){let o=new Set;t.set(e,o);for(let r of e.values())o.add(it(r,t));return o}if(typeof e=="object"&&e!==null){if("$$typeof"in e&&typeof e.$$typeof=="symbol")return e;let o=Array.isArray(e)?[]:Object.create(Object.getPrototypeOf(e));t.set(e,o);for(let r in e)(Object.prototype.hasOwnProperty.call(e,r)||Object.getOwnPropertySymbols(e).includes(r))&&(o[r]=it(e[r],t));return o}return e}function vp(...e){return e.filter(Boolean).join(" ")}var lt=new WeakMap;function pi(e){let t=e.changedTouches[0];return t===void 0?null:[t.clientX,t.clientY]}function st(e,t){let o=lt.get(e);if(o===void 0){let r=new Set,n=l=>{o!==void 0&&(o.start=pi(l))},i=l=>{if(o===void 0)return;let{start:a}=o;if(a===null)return;let s=pi(l);for(let c of r)s!==null&&c([s[0]-a[0],s[1]-a[1]],l)};e.addEventListener("touchstart",n),e.addEventListener("touchend",i),o={handleTouchend:i,handleTouchstart:n,listeners:r,start:null},lt.set(e,o)}return o.listeners.add(t),()=>{Ip(e,t)}}function Ip(e,t){let o=lt.get(e);if(o===void 0)return;let{listeners:r}=o;r.delete(t),r.size===0&&(lt.delete(e),e.removeEventListener("touchstart",o.handleTouchstart),e.removeEventListener("touchend",o.handleTouchend))}function Fp(e,t){return st(e,(o,r)=>{let[n,i]=o;n<0&&-n>Math.abs(i)&&t(n,r)})}function Pp(e,t){return st(e,(o,r)=>{let[n,i]=o;n>0&&n>Math.abs(i)&&t(n,r)})}function Mp(e,t){return st(e,(o,r)=>{let[n,i]=o;i<0&&-i>Math.abs(n)&&t(n,r)})}function Ap(e,t){return st(e,(o,r)=>{let[n,i]=o;i>0&&i>Math.abs(n)&&t(n,r)})}export{ke as $createAutoLinkNode,ne as $createBlockNode,W as $createLinkNode,he as $createRelationshipNode,Le as $createUploadNode,z as $isAutoLinkNode,Wi as $isBlockNode,I as $isLinkNode,pt as $isRelationshipNode,ut as $isUploadNode,Ii as AlignFeatureClient,V as AutoLinkNode,U as BlockNode,Oi as BlockquoteFeatureClient,Cl as BlocksFeatureClient,Dl as BoldFeatureClient,O as CAN_USE_DOM,sc as ChecklistFeatureClient,Oc as DETAIL_TYPE_TO_DETAIL,Pc as DOUBLE_LINE_BREAK,Bc as ELEMENT_FORMAT_TO_TYPE,Hc as ELEMENT_TYPE_TO_FORMAT,mi as ENABLE_SLASH_MENU_COMMAND,ui as EditorConfigProvider,Gd as FixedToolbarFeatureClient,us as HeadingFeatureClient,ys as HorizontalRuleFeatureClient,Ic as IS_ALL_FORMATTING,_s as IndentFeatureClient,Gl as InlineCodeFeatureClient,Yd as InlineToolbarFeatureClient,Wl as ItalicFeatureClient,Ac as LTR_REGEX,vc as LexicalPluginToLexicalFeatureClient,Ka as LinkFeatureClient,A as LinkNode,Fc as NON_BREAKING_SPACE,T as NodeFormat,gc as OrderedListFeatureClient,Yc as ParagraphFeatureClient,gi as Point,Mc as RTL_REGEX,hi as Rect,Cd as RelationshipFeatureClient,Ce as RelationshipNode,Ei as RichTextCell,Rp as RichTextField,Xc as SlateToLexicalFeatureClient,jl as StrikethroughFeatureClient,Jl as SubscriptFeatureClient,Ql as SuperscriptFeatureClient,Gc as TEXT_MODE_TO_TYPE,Dc as TEXT_TYPE_TO_FORMAT,$c as TEXT_TYPE_TO_MODE,G as TOGGLE_LINK_COMMAND,Sl as TestRecorderFeatureClient,ve as ToolbarButton,oe as ToolbarDropdown,Pl as TreeViewFeatureClient,rs as UnderlineFeatureClient,bc as UnorderedListFeatureClient,Lp as UploadFeatureClient,Te as UploadNode,Ap as addSwipeDownListener,Fp as addSwipeLeftListener,Pp as addSwipeRightListener,Mp as addSwipeUpListener,it as cloneDeep,Nt as createBlockNode,Tt as createClientComponent,h as createClientFeature,ye as defaultEditorLexicalConfig,Qt as getDOMRangeRect,dt as getEnabledNodes,ie as getSelectedNode,It as invariant,fi as isHTMLElement,Ci as isPoint,vp as joinClasses,Ee as sanitizeClientEditorConfig,so as sanitizeClientFeatures,rt as setFloatingElemPosition,Ye as setFloatingElemPositionForLinkEditor,ee as toolbarAddDropdownGroupWithItems,wt as toolbarFeatureButtonsGroupWithItems,F as toolbarFormatGroupWithItems,M as toolbarTextDropdownGroupWithItems,v as useEditorConfigContext};
|
|
36
38
|
//# sourceMappingURL=index.js.map
|