@payloadcms/richtext-lexical 3.68.0-internal-debug.2eb12b9 → 3.68.0-internal-debug.dafc24d
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/rscEntry.js +13 -5
- package/dist/cell/rscEntry.js.map +1 -1
- package/dist/features/blocks/client/component/BlockContent.js +29 -9
- package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockCollapsible.js +7 -3
- package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockEditButton.js +6 -2
- package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js +6 -2
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -1
- package/dist/features/blocks/client/component/index.js +124 -43
- package/dist/features/blocks/client/component/index.js.map +1 -1
- package/dist/features/blocks/client/component/index.scss +188 -0
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +7 -3
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +6 -2
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +6 -2
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +6 -2
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -1
- package/dist/features/blocks/client/componentInline/index.js +118 -37
- package/dist/features/blocks/client/componentInline/index.js.map +1 -1
- package/dist/features/blocks/client/componentInline/index.scss +90 -0
- package/dist/features/blocks/client/getBlockImageComponent.js +7 -3
- package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -1
- package/dist/features/blocks/client/markdown/markdownTransformer.js +1 -0
- package/dist/features/blocks/client/markdown/markdownTransformer.js.map +1 -1
- package/dist/features/blocks/client/nodes/BlocksNode.js +7 -3
- package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js +7 -3
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js +88 -27
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js +7 -3
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +13 -4
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.scss +6 -0
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +19 -6
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.scss +29 -0
- package/dist/features/blocks/premade/CodeBlock/Component/index.scss +97 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.js +1 -0
- package/dist/features/blocks/server/markdown/markdownTransformer.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/Component/index.js +9 -5
- package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +7 -3
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +7 -3
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +6 -2
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +6 -2
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js +13 -5
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js +38 -14
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +18 -6
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js +31 -11
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js +43 -15
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +31 -11
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/index.js +8 -4
- package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
- package/dist/features/debug/jsxConverter/client/plugin/index.js +14 -5
- package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
- package/dist/features/debug/jsxConverter/client/plugin/style.scss +12 -0
- package/dist/features/debug/testRecorder/client/plugin/index.js +62 -21
- package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
- package/dist/features/debug/testRecorder/client/plugin/index.scss +53 -0
- package/dist/features/debug/treeView/client/plugin/index.js +8 -3
- package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
- package/dist/features/debug/treeView/client/plugin/index.scss +80 -0
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +225 -72
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.scss +87 -0
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +32 -11
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.scss +11 -0
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +21 -9
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +26 -9
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.scss +233 -0
- package/dist/features/horizontalRule/client/plugin/index.js +1 -0
- package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
- package/dist/features/horizontalRule/client/plugin/index.scss +23 -0
- package/dist/features/indent/client/IndentPlugin.js +6 -2
- package/dist/features/indent/client/IndentPlugin.js.map +1 -1
- package/dist/features/link/client/plugins/autoLink/index.js +3 -0
- package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
- package/dist/features/link/client/plugins/clickableLink/index.js +6 -2
- package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +76 -24
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js +8 -3
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/index.scss +92 -0
- package/dist/features/link/server/baseFields.js +1 -0
- package/dist/features/link/server/baseFields.js.map +1 -1
- package/dist/features/lists/checklist/client/plugin/index.js +6 -2
- package/dist/features/lists/checklist/client/plugin/index.js.map +1 -1
- package/dist/features/lists/plugin/index.js +6 -2
- package/dist/features/lists/plugin/index.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +14 -5
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +7 -3
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.scss +16 -0
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +14 -5
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +7 -3
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.scss +16 -0
- package/dist/features/relationship/client/components/RelationshipComponent.js +56 -19
- package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
- package/dist/features/relationship/client/components/index.scss +95 -0
- package/dist/features/relationship/client/drawer/index.js +18 -6
- package/dist/features/relationship/client/drawer/index.js.map +1 -1
- package/dist/features/relationship/client/nodes/RelationshipNode.js +7 -3
- package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
- package/dist/features/relationship/client/plugins/index.js +7 -3
- package/dist/features/relationship/client/plugins/index.js.map +1 -1
- package/dist/features/textState/feature.client.js +18 -6
- package/dist/features/textState/feature.client.js.map +1 -1
- package/dist/features/toolbars/fixed/client/Toolbar/index.js +72 -23
- package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/fixed/client/Toolbar/index.scss +113 -0
- package/dist/features/toolbars/inline/client/Toolbar/index.js +72 -23
- package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/inline/client/Toolbar/index.scss +58 -0
- package/dist/features/toolbars/shared/ToolbarButton/index.js +8 -3
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarButton/index.scss +46 -0
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +60 -20
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js +37 -12
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.scss +129 -0
- package/dist/features/upload/client/component/index.js +92 -31
- package/dist/features/upload/client/component/index.js.map +1 -1
- package/dist/features/upload/client/component/index.scss +191 -0
- package/dist/features/upload/client/component/pending/index.js +14 -5
- package/dist/features/upload/client/component/pending/index.js.map +1 -1
- package/dist/features/upload/client/drawer/index.js +18 -6
- package/dist/features/upload/client/drawer/index.js.map +1 -1
- package/dist/features/upload/client/nodes/UploadNode.js +12 -4
- package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
- package/dist/features/upload/client/plugin/index.js +7 -3
- package/dist/features/upload/client/plugin/index.js.map +1 -1
- package/dist/field/Diff/converters/listitem/index.js +37 -12
- package/dist/field/Diff/converters/listitem/index.js.map +1 -1
- package/dist/field/Diff/converters/listitem/index.scss +47 -0
- package/dist/field/Diff/converters/relationship/index.js +37 -12
- package/dist/field/Diff/converters/relationship/index.js.map +1 -1
- package/dist/field/Diff/converters/relationship/index.scss +73 -0
- package/dist/field/Diff/converters/unknown/index.js +31 -10
- package/dist/field/Diff/converters/unknown/index.js.map +1 -1
- package/dist/field/Diff/converters/unknown/index.scss +40 -0
- package/dist/field/Diff/converters/upload/index.js +60 -19
- package/dist/field/Diff/converters/upload/index.js.map +1 -1
- package/dist/field/Diff/converters/upload/index.scss +115 -0
- package/dist/field/Diff/index.js +8 -3
- package/dist/field/Diff/index.js.map +1 -1
- package/dist/field/Diff/index.scss +102 -0
- package/dist/field/Field.js +81 -27
- package/dist/field/Field.js.map +1 -1
- package/dist/field/RenderLexical/index.js +36 -12
- package/dist/field/RenderLexical/index.js.map +1 -1
- package/dist/field/index.js +19 -7
- package/dist/field/index.js.map +1 -1
- package/dist/field/index.scss +41 -0
- package/dist/field/rscEntry.js +7 -3
- package/dist/field/rscEntry.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lexical/EditorPlugin.js +13 -5
- package/dist/lexical/EditorPlugin.js.map +1 -1
- package/dist/lexical/LexicalEditor.js +163 -50
- package/dist/lexical/LexicalEditor.js.map +1 -1
- package/dist/lexical/LexicalEditor.scss +54 -0
- package/dist/lexical/LexicalProvider.js +49 -17
- package/dist/lexical/LexicalProvider.js.map +1 -1
- package/dist/lexical/config/client/EditorConfigProvider.js +7 -3
- package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
- package/dist/lexical/plugins/DecoratorPlugin/index.js +1 -0
- package/dist/lexical/plugins/DecoratorPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/DecoratorPlugin/index.scss +13 -0
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +20 -7
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.scss +54 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +2 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +7 -3
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/index.js +50 -16
- package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/index.scss +68 -0
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +20 -7
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.scss +35 -0
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +32 -11
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.scss +80 -0
- package/dist/lexical/theme/EditorTheme.scss +357 -0
- package/dist/lexical/ui/ContentEditable.js +14 -5
- package/dist/lexical/ui/ContentEditable.js.map +1 -1
- package/dist/lexical/ui/ContentEditable.scss +105 -0
- package/dist/lexical/ui/icons/AI/index.js +37 -13
- package/dist/lexical/ui/icons/AI/index.js.map +1 -1
- package/dist/lexical/ui/icons/Add/index.js +19 -7
- package/dist/lexical/ui/icons/Add/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignCenter/index.js +25 -9
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.js +25 -9
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.js +25 -9
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.js +25 -9
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
- package/dist/lexical/ui/icons/Block/index.js +25 -9
- package/dist/lexical/ui/icons/Block/index.js.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.js +13 -5
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.js +13 -5
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.js +19 -7
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
- package/dist/lexical/ui/icons/Code/index.js +19 -7
- package/dist/lexical/ui/icons/Code/index.js.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.js +13 -5
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
- package/dist/lexical/ui/icons/Collapse/index.js +13 -5
- package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
- package/dist/lexical/ui/icons/H1/index.js +13 -5
- package/dist/lexical/ui/icons/H1/index.js.map +1 -1
- package/dist/lexical/ui/icons/H2/index.js +13 -5
- package/dist/lexical/ui/icons/H2/index.js.map +1 -1
- package/dist/lexical/ui/icons/H3/index.js +13 -5
- package/dist/lexical/ui/icons/H3/index.js.map +1 -1
- package/dist/lexical/ui/icons/H4/index.js +13 -5
- package/dist/lexical/ui/icons/H4/index.js.map +1 -1
- package/dist/lexical/ui/icons/H5/index.js +13 -5
- package/dist/lexical/ui/icons/H5/index.js.map +1 -1
- package/dist/lexical/ui/icons/H6/index.js +13 -5
- package/dist/lexical/ui/icons/H6/index.js.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.js +13 -5
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.js +31 -11
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.js +31 -11
- package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.js +13 -5
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.js +13 -5
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
- package/dist/lexical/ui/icons/Link/index.js +13 -5
- package/dist/lexical/ui/icons/Link/index.js.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.js +25 -9
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.js +37 -13
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.js +37 -13
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.js +19 -7
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.js +13 -5
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.js +13 -5
- package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Table/index.js +13 -5
- package/dist/lexical/ui/icons/Table/index.js.map +1 -1
- package/dist/lexical/ui/icons/Text/index.js +13 -5
- package/dist/lexical/ui/icons/Text/index.js.map +1 -1
- package/dist/lexical/ui/icons/TextState/index.js +7 -3
- package/dist/lexical/ui/icons/TextState/index.js.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.js +19 -7
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.js +43 -15
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.js +25 -9
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.js +2 -0
- package/dist/packages/@lexical/markdown/MarkdownShortcuts.js.map +1 -1
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.js +2 -0
- package/dist/packages/@lexical/markdown/importTextFormatTransformer.js.map +1 -1
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.js +2 -0
- package/dist/packages/@lexical/markdown/importTextMatchTransformer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/Drawer.js +19 -7
- package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/DrawerContent.js +19 -7
- package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +7 -3
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +7 -3
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -1
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +2 -0
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -1
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +2 -0
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
- package/package.json +8 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
3
3
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
4
4
|
import { useLexicalEditable } from '@lexical/react/useLexicalEditable';
|
|
5
5
|
import { $computeTableMapSkipCellCheck, $deleteTableColumnAtSelection, $deleteTableRowAtSelection, $getNodeTriplet, $getTableCellNodeFromLexicalNode, $getTableColumnIndexFromTableCellNode, $getTableNodeFromLexicalNodeOrThrow, $getTableRowIndexFromTableCellNode, $insertTableColumnAtSelection, $insertTableRowAtSelection, $isTableCellNode, $isTableSelection, $mergeCells, $unmergeCell, getTableElement, getTableObserverFromTableElement, TableCellHeaderStates, TableCellNode } from '@lexical/table';
|
|
@@ -9,6 +9,7 @@ import { $getSelection, $isElementNode, $isRangeSelection, $isTextNode, $setSele
|
|
|
9
9
|
import * as React from 'react';
|
|
10
10
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
11
11
|
import { createPortal } from 'react-dom';
|
|
12
|
+
import './index.scss';
|
|
12
13
|
import { MeatballsIcon } from '../../../../../lexical/ui/icons/Meatballs/index.js';
|
|
13
14
|
function computeSelectionCount(selection) {
|
|
14
15
|
const selectionShape = selection.getShape();
|
|
@@ -306,98 +307,158 @@ function TableActionMenu({ cellMerge, contextRef, onClose, setIsMenuOpen, tableC
|
|
|
306
307
|
let mergeCellButton = null;
|
|
307
308
|
if (cellMerge) {
|
|
308
309
|
if (canMergeCells) {
|
|
309
|
-
mergeCellButton = /*#__PURE__*/
|
|
310
|
+
mergeCellButton = /*#__PURE__*/ _jsxDEV("button", {
|
|
310
311
|
className: "item",
|
|
311
312
|
"data-test-id": "table-merge-cells",
|
|
312
313
|
onClick: ()=>mergeTableCellsAtSelection(),
|
|
313
314
|
type: "button",
|
|
314
|
-
children: /*#__PURE__*/
|
|
315
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
315
316
|
className: "text",
|
|
316
317
|
children: "Merge cells"
|
|
317
|
-
}
|
|
318
|
-
|
|
318
|
+
}, void 0, false, {
|
|
319
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
320
|
+
lineNumber: 384,
|
|
321
|
+
columnNumber: 11
|
|
322
|
+
}, this)
|
|
323
|
+
}, void 0, false, {
|
|
324
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
325
|
+
lineNumber: 378,
|
|
326
|
+
columnNumber: 9
|
|
327
|
+
}, this);
|
|
319
328
|
} else if (canUnmergeCell) {
|
|
320
|
-
mergeCellButton = /*#__PURE__*/
|
|
329
|
+
mergeCellButton = /*#__PURE__*/ _jsxDEV("button", {
|
|
321
330
|
className: "item",
|
|
322
331
|
"data-test-id": "table-unmerge-cells",
|
|
323
332
|
onClick: ()=>unmergeTableCellsAtSelection(),
|
|
324
333
|
type: "button",
|
|
325
|
-
children: /*#__PURE__*/
|
|
334
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
326
335
|
className: "text",
|
|
327
336
|
children: "Unmerge cells"
|
|
328
|
-
}
|
|
329
|
-
|
|
337
|
+
}, void 0, false, {
|
|
338
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
339
|
+
lineNumber: 395,
|
|
340
|
+
columnNumber: 11
|
|
341
|
+
}, this)
|
|
342
|
+
}, void 0, false, {
|
|
343
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
344
|
+
lineNumber: 389,
|
|
345
|
+
columnNumber: 9
|
|
346
|
+
}, this);
|
|
330
347
|
}
|
|
331
348
|
}
|
|
332
349
|
return /*#__PURE__*/ createPortal(// eslint-disable-next-line jsx-a11y/no-static-element-interactions,jsx-a11y/click-events-have-key-events
|
|
333
|
-
/*#__PURE__*/
|
|
350
|
+
/*#__PURE__*/ _jsxDEV("div", {
|
|
334
351
|
className: "table-action-menu-dropdown",
|
|
335
352
|
onClick: (e)=>{
|
|
336
353
|
e.stopPropagation();
|
|
337
354
|
},
|
|
338
355
|
ref: dropDownRef,
|
|
339
356
|
children: [
|
|
340
|
-
mergeCellButton ? /*#__PURE__*/
|
|
357
|
+
mergeCellButton ? /*#__PURE__*/ _jsxDEV(React.Fragment, {
|
|
341
358
|
children: [
|
|
342
359
|
mergeCellButton,
|
|
343
|
-
/*#__PURE__*/
|
|
360
|
+
/*#__PURE__*/ _jsxDEV("hr", {}, void 0, false, {
|
|
361
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
362
|
+
lineNumber: 413,
|
|
363
|
+
columnNumber: 11
|
|
364
|
+
}, this)
|
|
344
365
|
]
|
|
345
|
-
}
|
|
346
|
-
|
|
366
|
+
}, void 0, true, {
|
|
367
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
368
|
+
lineNumber: 411,
|
|
369
|
+
columnNumber: 9
|
|
370
|
+
}, this) : null,
|
|
371
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
347
372
|
className: "item",
|
|
348
373
|
"data-test-id": "table-row-striping",
|
|
349
374
|
onClick: ()=>toggleRowStriping(),
|
|
350
375
|
type: "button",
|
|
351
|
-
children: /*#__PURE__*/
|
|
376
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
352
377
|
className: "text",
|
|
353
378
|
children: "Toggle Row Striping"
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
|
|
379
|
+
}, void 0, false, {
|
|
380
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
381
|
+
lineNumber: 423,
|
|
382
|
+
columnNumber: 9
|
|
383
|
+
}, this)
|
|
384
|
+
}, void 0, false, {
|
|
385
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
386
|
+
lineNumber: 417,
|
|
387
|
+
columnNumber: 7
|
|
388
|
+
}, this),
|
|
389
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
357
390
|
className: "item",
|
|
358
391
|
"data-test-id": "table-freeze-first-column",
|
|
359
392
|
onClick: ()=>toggleFirstColumnFreeze(),
|
|
360
393
|
type: "button",
|
|
361
|
-
children: /*#__PURE__*/
|
|
394
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
362
395
|
className: "text",
|
|
363
396
|
children: "Toggle First Column Freeze"
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
397
|
+
}, void 0, false, {
|
|
398
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
399
|
+
lineNumber: 431,
|
|
400
|
+
columnNumber: 9
|
|
401
|
+
}, this)
|
|
402
|
+
}, void 0, false, {
|
|
403
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
404
|
+
lineNumber: 425,
|
|
405
|
+
columnNumber: 7
|
|
406
|
+
}, this),
|
|
407
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
367
408
|
className: "item",
|
|
368
409
|
"data-test-id": "table-insert-row-above",
|
|
369
410
|
onClick: ()=>insertTableRowAtSelection(false),
|
|
370
411
|
type: "button",
|
|
371
|
-
children: /*#__PURE__*/
|
|
412
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
372
413
|
className: "text",
|
|
373
414
|
children: [
|
|
374
415
|
"Insert ",
|
|
375
416
|
selectionCounts.rows === 1 ? 'row' : `${selectionCounts.rows} rows`,
|
|
376
417
|
" above"
|
|
377
418
|
]
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
|
|
419
|
+
}, void 0, true, {
|
|
420
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
421
|
+
lineNumber: 439,
|
|
422
|
+
columnNumber: 9
|
|
423
|
+
}, this)
|
|
424
|
+
}, void 0, false, {
|
|
425
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
426
|
+
lineNumber: 433,
|
|
427
|
+
columnNumber: 7
|
|
428
|
+
}, this),
|
|
429
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
381
430
|
className: "item",
|
|
382
431
|
"data-test-id": "table-insert-row-below",
|
|
383
432
|
onClick: ()=>insertTableRowAtSelection(true),
|
|
384
433
|
type: "button",
|
|
385
|
-
children: /*#__PURE__*/
|
|
434
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
386
435
|
className: "text",
|
|
387
436
|
children: [
|
|
388
437
|
"Insert ",
|
|
389
438
|
selectionCounts.rows === 1 ? 'row' : `${selectionCounts.rows} rows`,
|
|
390
439
|
" below"
|
|
391
440
|
]
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
441
|
+
}, void 0, true, {
|
|
442
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
443
|
+
lineNumber: 449,
|
|
444
|
+
columnNumber: 9
|
|
445
|
+
}, this)
|
|
446
|
+
}, void 0, false, {
|
|
447
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
448
|
+
lineNumber: 443,
|
|
449
|
+
columnNumber: 7
|
|
450
|
+
}, this),
|
|
451
|
+
/*#__PURE__*/ _jsxDEV("hr", {}, void 0, false, {
|
|
452
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
453
|
+
lineNumber: 453,
|
|
454
|
+
columnNumber: 7
|
|
455
|
+
}, this),
|
|
456
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
396
457
|
className: "item",
|
|
397
458
|
"data-test-id": "table-insert-column-before",
|
|
398
459
|
onClick: ()=>insertTableColumnAtSelection(false),
|
|
399
460
|
type: "button",
|
|
400
|
-
children: /*#__PURE__*/
|
|
461
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
401
462
|
className: "text",
|
|
402
463
|
children: [
|
|
403
464
|
"Insert ",
|
|
@@ -405,14 +466,22 @@ function TableActionMenu({ cellMerge, contextRef, onClose, setIsMenuOpen, tableC
|
|
|
405
466
|
' ',
|
|
406
467
|
"left"
|
|
407
468
|
]
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
|
|
469
|
+
}, void 0, true, {
|
|
470
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
471
|
+
lineNumber: 460,
|
|
472
|
+
columnNumber: 9
|
|
473
|
+
}, this)
|
|
474
|
+
}, void 0, false, {
|
|
475
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
476
|
+
lineNumber: 454,
|
|
477
|
+
columnNumber: 7
|
|
478
|
+
}, this),
|
|
479
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
411
480
|
className: "item",
|
|
412
481
|
"data-test-id": "table-insert-column-after",
|
|
413
482
|
onClick: ()=>insertTableColumnAtSelection(true),
|
|
414
483
|
type: "button",
|
|
415
|
-
children: /*#__PURE__*/
|
|
484
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
416
485
|
className: "text",
|
|
417
486
|
children: [
|
|
418
487
|
"Insert ",
|
|
@@ -420,70 +489,130 @@ function TableActionMenu({ cellMerge, contextRef, onClose, setIsMenuOpen, tableC
|
|
|
420
489
|
' ',
|
|
421
490
|
"right"
|
|
422
491
|
]
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
492
|
+
}, void 0, true, {
|
|
493
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
494
|
+
lineNumber: 471,
|
|
495
|
+
columnNumber: 9
|
|
496
|
+
}, this)
|
|
497
|
+
}, void 0, false, {
|
|
498
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
499
|
+
lineNumber: 465,
|
|
500
|
+
columnNumber: 7
|
|
501
|
+
}, this),
|
|
502
|
+
/*#__PURE__*/ _jsxDEV("hr", {}, void 0, false, {
|
|
503
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
504
|
+
lineNumber: 476,
|
|
505
|
+
columnNumber: 7
|
|
506
|
+
}, this),
|
|
507
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
427
508
|
className: "item",
|
|
428
509
|
"data-test-id": "table-delete-columns",
|
|
429
510
|
onClick: ()=>deleteTableColumnAtSelection(),
|
|
430
511
|
type: "button",
|
|
431
|
-
children: /*#__PURE__*/
|
|
512
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
432
513
|
className: "text",
|
|
433
514
|
children: "Delete column"
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
|
|
515
|
+
}, void 0, false, {
|
|
516
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
517
|
+
lineNumber: 483,
|
|
518
|
+
columnNumber: 9
|
|
519
|
+
}, this)
|
|
520
|
+
}, void 0, false, {
|
|
521
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
522
|
+
lineNumber: 477,
|
|
523
|
+
columnNumber: 7
|
|
524
|
+
}, this),
|
|
525
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
437
526
|
className: "item",
|
|
438
527
|
"data-test-id": "table-delete-rows",
|
|
439
528
|
onClick: ()=>deleteTableRowAtSelection(),
|
|
440
529
|
type: "button",
|
|
441
|
-
children: /*#__PURE__*/
|
|
530
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
442
531
|
className: "text",
|
|
443
532
|
children: "Delete row"
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
|
|
533
|
+
}, void 0, false, {
|
|
534
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
535
|
+
lineNumber: 491,
|
|
536
|
+
columnNumber: 9
|
|
537
|
+
}, this)
|
|
538
|
+
}, void 0, false, {
|
|
539
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
540
|
+
lineNumber: 485,
|
|
541
|
+
columnNumber: 7
|
|
542
|
+
}, this),
|
|
543
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
447
544
|
className: "item",
|
|
448
545
|
"data-test-id": "table-delete",
|
|
449
546
|
onClick: ()=>deleteTableAtSelection(),
|
|
450
547
|
type: "button",
|
|
451
|
-
children: /*#__PURE__*/
|
|
548
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
452
549
|
className: "text",
|
|
453
550
|
children: "Delete table"
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
551
|
+
}, void 0, false, {
|
|
552
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
553
|
+
lineNumber: 499,
|
|
554
|
+
columnNumber: 9
|
|
555
|
+
}, this)
|
|
556
|
+
}, void 0, false, {
|
|
557
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
558
|
+
lineNumber: 493,
|
|
559
|
+
columnNumber: 7
|
|
560
|
+
}, this),
|
|
561
|
+
/*#__PURE__*/ _jsxDEV("hr", {}, void 0, false, {
|
|
562
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
563
|
+
lineNumber: 501,
|
|
564
|
+
columnNumber: 7
|
|
565
|
+
}, this),
|
|
566
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
458
567
|
className: "item",
|
|
459
568
|
"data-test-id": "table-row-header",
|
|
460
569
|
onClick: ()=>toggleTableRowIsHeader(),
|
|
461
570
|
type: "button",
|
|
462
|
-
children: /*#__PURE__*/
|
|
571
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
463
572
|
className: "text",
|
|
464
573
|
children: [
|
|
465
574
|
(tableCellNode.__headerState & TableCellHeaderStates.ROW) === TableCellHeaderStates.ROW ? 'Remove' : 'Add',
|
|
466
575
|
' ',
|
|
467
576
|
"row header"
|
|
468
577
|
]
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
|
|
578
|
+
}, void 0, true, {
|
|
579
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
580
|
+
lineNumber: 508,
|
|
581
|
+
columnNumber: 9
|
|
582
|
+
}, this)
|
|
583
|
+
}, void 0, false, {
|
|
584
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
585
|
+
lineNumber: 502,
|
|
586
|
+
columnNumber: 7
|
|
587
|
+
}, this),
|
|
588
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
472
589
|
className: "item",
|
|
473
590
|
"data-test-id": "table-column-header",
|
|
474
591
|
onClick: ()=>toggleTableColumnIsHeader(),
|
|
475
592
|
type: "button",
|
|
476
|
-
children: /*#__PURE__*/
|
|
593
|
+
children: /*#__PURE__*/ _jsxDEV("span", {
|
|
477
594
|
className: "text",
|
|
478
595
|
children: [
|
|
479
596
|
(tableCellNode.__headerState & TableCellHeaderStates.COLUMN) === TableCellHeaderStates.COLUMN ? 'Remove' : 'Add',
|
|
480
597
|
' ',
|
|
481
598
|
"column header"
|
|
482
599
|
]
|
|
483
|
-
}
|
|
484
|
-
|
|
600
|
+
}, void 0, true, {
|
|
601
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
602
|
+
lineNumber: 521,
|
|
603
|
+
columnNumber: 9
|
|
604
|
+
}, this)
|
|
605
|
+
}, void 0, false, {
|
|
606
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
607
|
+
lineNumber: 515,
|
|
608
|
+
columnNumber: 7
|
|
609
|
+
}, this)
|
|
485
610
|
]
|
|
486
|
-
}
|
|
611
|
+
}, void 0, true, {
|
|
612
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
613
|
+
lineNumber: 403,
|
|
614
|
+
columnNumber: 5
|
|
615
|
+
}, this), document.body);
|
|
487
616
|
}
|
|
488
617
|
function TableCellActionMenuContainer({ anchorElem, cellMerge }) {
|
|
489
618
|
const [editor] = useLexicalComposerContext();
|
|
@@ -591,12 +720,12 @@ function TableCellActionMenuContainer({ anchorElem, cellMerge }) {
|
|
|
591
720
|
prevTableCellDOM,
|
|
592
721
|
tableCellNode
|
|
593
722
|
]);
|
|
594
|
-
return /*#__PURE__*/
|
|
723
|
+
return /*#__PURE__*/ _jsxDEV("div", {
|
|
595
724
|
className: "table-cell-action-button-container",
|
|
596
725
|
ref: menuButtonRef,
|
|
597
|
-
children: tableCellNode != null && /*#__PURE__*/
|
|
726
|
+
children: tableCellNode != null && /*#__PURE__*/ _jsxDEV(React.Fragment, {
|
|
598
727
|
children: [
|
|
599
|
-
/*#__PURE__*/
|
|
728
|
+
/*#__PURE__*/ _jsxDEV("button", {
|
|
600
729
|
className: "table-cell-action-button",
|
|
601
730
|
onClick: (e)=>{
|
|
602
731
|
e.stopPropagation();
|
|
@@ -604,25 +733,49 @@ function TableCellActionMenuContainer({ anchorElem, cellMerge }) {
|
|
|
604
733
|
},
|
|
605
734
|
ref: menuRootRef,
|
|
606
735
|
type: "button",
|
|
607
|
-
children: /*#__PURE__*/
|
|
608
|
-
|
|
609
|
-
|
|
736
|
+
children: /*#__PURE__*/ _jsxDEV(MeatballsIcon, {}, void 0, false, {
|
|
737
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
738
|
+
lineNumber: 684,
|
|
739
|
+
columnNumber: 13
|
|
740
|
+
}, this)
|
|
741
|
+
}, void 0, false, {
|
|
742
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
743
|
+
lineNumber: 675,
|
|
744
|
+
columnNumber: 11
|
|
745
|
+
}, this),
|
|
746
|
+
isMenuOpen && /*#__PURE__*/ _jsxDEV(TableActionMenu, {
|
|
610
747
|
cellMerge: cellMerge,
|
|
611
748
|
contextRef: menuRootRef,
|
|
612
749
|
onClose: ()=>setIsMenuOpen(false),
|
|
613
750
|
setIsMenuOpen: setIsMenuOpen,
|
|
614
751
|
tableCellNode: tableCellNode
|
|
615
|
-
}
|
|
752
|
+
}, void 0, false, {
|
|
753
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
754
|
+
lineNumber: 687,
|
|
755
|
+
columnNumber: 13
|
|
756
|
+
}, this)
|
|
616
757
|
]
|
|
617
|
-
}
|
|
618
|
-
|
|
758
|
+
}, void 0, true, {
|
|
759
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
760
|
+
lineNumber: 674,
|
|
761
|
+
columnNumber: 9
|
|
762
|
+
}, this)
|
|
763
|
+
}, void 0, false, {
|
|
764
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
765
|
+
lineNumber: 672,
|
|
766
|
+
columnNumber: 5
|
|
767
|
+
}, this);
|
|
619
768
|
}
|
|
620
769
|
export const TableActionMenuPlugin = ({ anchorElem })=>{
|
|
621
770
|
const isEditable = useLexicalEditable();
|
|
622
|
-
return /*#__PURE__*/ createPortal(isEditable ? /*#__PURE__*/
|
|
771
|
+
return /*#__PURE__*/ createPortal(isEditable ? /*#__PURE__*/ _jsxDEV(TableCellActionMenuContainer, {
|
|
623
772
|
anchorElem: anchorElem ?? document.body,
|
|
624
773
|
cellMerge: true
|
|
625
|
-
}
|
|
774
|
+
}, void 0, false, {
|
|
775
|
+
fileName: "src/features/experimental_table/client/plugins/TableActionMenuPlugin/index.tsx",
|
|
776
|
+
lineNumber: 705,
|
|
777
|
+
columnNumber: 7
|
|
778
|
+
}, this) : null, anchorElem ?? document.body);
|
|
626
779
|
};
|
|
627
780
|
|
|
628
781
|
//# sourceMappingURL=index.js.map
|