@payloadcms/richtext-lexical 3.68.0-internal-debug.e9b66ee → 3.68.0-internal-debug.654e4ad
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 +21 -2
- package/dist/cell/rscEntry.js.map +1 -1
- package/dist/exports/client/index.d.ts +1 -0
- package/dist/exports/client/index.d.ts.map +1 -1
- package/dist/exports/client/index.js +1 -0
- package/dist/exports/client/index.js.map +1 -1
- package/dist/exports/client/internal-client.d.ts +3 -0
- package/dist/exports/client/internal-client.d.ts.map +1 -0
- package/dist/exports/client/internal-client.js +4 -0
- package/dist/exports/client/internal-client.js.map +1 -0
- package/dist/exports/react/index.d.ts +1 -1
- package/dist/exports/react/index.d.ts.map +1 -1
- package/dist/exports/react/index.js.map +1 -1
- package/dist/features/blocks/client/component/BlockContent.js +48 -13
- package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockCollapsible.js +10 -1
- package/dist/features/blocks/client/component/components/BlockCollapsible.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockEditButton.js +7 -1
- package/dist/features/blocks/client/component/components/BlockEditButton.js.map +1 -1
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js +7 -1
- package/dist/features/blocks/client/component/components/BlockRemoveButton.js.map +1 -1
- package/dist/features/blocks/client/component/index.js +247 -81
- package/dist/features/blocks/client/component/index.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js +9 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockContainer.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js +7 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockEditButton.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js +7 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockLabel.js.map +1 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js +7 -1
- package/dist/features/blocks/client/componentInline/components/InlineBlockRemoveButton.js.map +1 -1
- package/dist/features/blocks/client/componentInline/index.js +217 -68
- package/dist/features/blocks/client/componentInline/index.js.map +1 -1
- package/dist/features/blocks/client/getBlockImageComponent.js +15 -4
- package/dist/features/blocks/client/getBlockImageComponent.js.map +1 -1
- package/dist/features/blocks/client/nodes/BlocksNode.js +12 -1
- package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js +12 -2
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js +127 -26
- package/dist/features/blocks/premade/CodeBlock/Component/Block.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js +65 -49
- package/dist/features/blocks/premade/CodeBlock/Component/Code.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js +16 -3
- package/dist/features/blocks/premade/CodeBlock/Component/Collapse/index.js.map +1 -1
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js +25 -4
- package/dist/features/blocks/premade/CodeBlock/Component/FloatingCollapse/index.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/Component/index.d.ts +2 -14
- package/dist/features/converters/lexicalToJSX/Component/index.d.ts.map +1 -1
- package/dist/features/converters/lexicalToJSX/Component/index.js +16 -10
- package/dist/features/converters/lexicalToJSX/Component/index.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js +8 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/blockquote.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js +8 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/heading.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js +6 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/horizontalRule.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js +6 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/linebreak.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js +19 -10
- package/dist/features/converters/lexicalToJSX/converter/converters/link.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js +63 -16
- package/dist/features/converters/lexicalToJSX/converter/converters/list.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js +19 -4
- package/dist/features/converters/lexicalToJSX/converter/converters/paragraph.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js +45 -12
- package/dist/features/converters/lexicalToJSX/converter/converters/table.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js +57 -11
- package/dist/features/converters/lexicalToJSX/converter/converters/text.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js +46 -7
- package/dist/features/converters/lexicalToJSX/converter/converters/upload.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/index.d.ts +16 -1
- package/dist/features/converters/lexicalToJSX/converter/index.d.ts.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/index.js +98 -9
- package/dist/features/converters/lexicalToJSX/converter/index.js.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/types.d.ts +14 -10
- package/dist/features/converters/lexicalToJSX/converter/types.d.ts.map +1 -1
- package/dist/features/converters/lexicalToJSX/converter/types.js.map +1 -1
- package/dist/features/debug/jsxConverter/client/plugin/index.js +17 -4
- package/dist/features/debug/jsxConverter/client/plugin/index.js.map +1 -1
- package/dist/features/debug/testRecorder/client/plugin/index.js +113 -38
- package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
- package/dist/features/debug/treeView/client/plugin/index.js +15 -1
- package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +357 -79
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +41 -7
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +39 -9
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +59 -28
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +1 -0
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
- package/dist/features/indent/client/IndentPlugin.js +6 -1
- package/dist/features/indent/client/IndentPlugin.js.map +1 -1
- package/dist/features/link/client/plugins/clickableLink/index.js +7 -1
- package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +151 -59
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js +9 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
- package/dist/features/lists/checklist/client/plugin/index.js +7 -1
- package/dist/features/lists/checklist/client/plugin/index.js.map +1 -1
- package/dist/features/lists/plugin/index.js +7 -1
- package/dist/features/lists/plugin/index.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +18 -3
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +9 -2
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +18 -3
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +9 -2
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/relationship/client/components/RelationshipComponent.js +100 -31
- package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
- package/dist/features/relationship/client/drawer/index.js +21 -4
- package/dist/features/relationship/client/drawer/index.js.map +1 -1
- package/dist/features/relationship/client/nodes/RelationshipNode.js +12 -2
- package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
- package/dist/features/relationship/client/plugins/index.js +8 -1
- package/dist/features/relationship/client/plugins/index.js.map +1 -1
- package/dist/features/textState/feature.client.js +22 -5
- package/dist/features/textState/feature.client.js.map +1 -1
- package/dist/features/toolbars/fixed/client/Toolbar/index.js +123 -27
- package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/inline/client/Toolbar/index.js +111 -18
- package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarButton/index.js +14 -4
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +135 -56
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js +70 -16
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
- package/dist/features/upload/client/component/index.js +167 -43
- package/dist/features/upload/client/component/index.js.map +1 -1
- package/dist/features/upload/client/component/pending/index.js +16 -3
- package/dist/features/upload/client/component/pending/index.js.map +1 -1
- package/dist/features/upload/client/drawer/index.js +21 -4
- package/dist/features/upload/client/drawer/index.js.map +1 -1
- package/dist/features/upload/client/nodes/UploadNode.js +17 -3
- package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
- package/dist/features/upload/client/plugin/index.js +9 -2
- package/dist/features/upload/client/plugin/index.js.map +1 -1
- package/dist/field/Diff/converters/listitem/index.js +54 -11
- package/dist/field/Diff/converters/listitem/index.js.map +1 -1
- package/dist/field/Diff/converters/relationship/index.js +60 -18
- package/dist/field/Diff/converters/relationship/index.js.map +1 -1
- package/dist/field/Diff/converters/unknown/index.js +42 -7
- package/dist/field/Diff/converters/unknown/index.js.map +1 -1
- package/dist/field/Diff/converters/upload/index.js +91 -21
- package/dist/field/Diff/converters/upload/index.js.map +1 -1
- package/dist/field/Diff/index.js +17 -4
- package/dist/field/Diff/index.js.map +1 -1
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +141 -26
- package/dist/field/Field.js.map +1 -1
- package/dist/field/RenderLexical/index.js +47 -15
- package/dist/field/RenderLexical/index.js.map +1 -1
- package/dist/field/RichTextViewProvider.d.ts +83 -0
- package/dist/field/RichTextViewProvider.d.ts.map +1 -0
- package/dist/field/RichTextViewProvider.js +102 -0
- package/dist/field/RichTextViewProvider.js.map +1 -0
- package/dist/field/ViewSelector.d.ts +4 -0
- package/dist/field/ViewSelector.d.ts.map +1 -0
- package/dist/field/ViewSelector.js +90 -0
- package/dist/field/ViewSelector.js.map +1 -0
- package/dist/field/ViewSelector.scss +34 -0
- package/dist/field/index.d.ts +1 -0
- package/dist/field/index.d.ts.map +1 -1
- package/dist/field/index.js +56 -12
- package/dist/field/index.js.map +1 -1
- package/dist/field/index.scss +12 -0
- package/dist/field/rscEntry.d.ts +1 -1
- package/dist/field/rscEntry.d.ts.map +1 -1
- package/dist/field/rscEntry.js +21 -1
- package/dist/field/rscEntry.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/lexical/EditorPlugin.js +17 -2
- package/dist/lexical/EditorPlugin.js.map +1 -1
- package/dist/lexical/LexicalEditor.d.ts.map +1 -1
- package/dist/lexical/LexicalEditor.js +238 -69
- package/dist/lexical/LexicalEditor.js.map +1 -1
- package/dist/lexical/LexicalProvider.d.ts.map +1 -1
- package/dist/lexical/LexicalProvider.js +74 -15
- package/dist/lexical/LexicalProvider.js.map +1 -1
- package/dist/lexical/config/client/EditorConfigProvider.js +11 -2
- package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
- package/dist/lexical/config/client/sanitize.d.ts +1 -1
- package/dist/lexical/config/client/sanitize.d.ts.map +1 -1
- package/dist/lexical/config/client/sanitize.js +3 -2
- package/dist/lexical/config/client/sanitize.js.map +1 -1
- package/dist/lexical/config/types.d.ts +4 -0
- package/dist/lexical/config/types.d.ts.map +1 -1
- package/dist/lexical/config/types.js +3 -1
- package/dist/lexical/config/types.js.map +1 -1
- package/dist/lexical/nodes/index.d.ts +12 -2
- package/dist/lexical/nodes/index.d.ts.map +1 -1
- package/dist/lexical/nodes/index.js +187 -2
- package/dist/lexical/nodes/index.js.map +1 -1
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js +28 -5
- package/dist/lexical/plugins/InsertParagraphAtEnd/index.js.map +1 -1
- package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts +2 -0
- package/dist/lexical/plugins/NodeViewOverridePlugin/index.d.ts.map +1 -0
- package/dist/lexical/plugins/NodeViewOverridePlugin/index.js +31 -0
- package/dist/lexical/plugins/NodeViewOverridePlugin/index.js.map +1 -0
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +14 -1
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/index.js +98 -31
- package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +27 -7
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +45 -7
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
- package/dist/lexical/ui/ContentEditable.js +18 -3
- package/dist/lexical/ui/ContentEditable.js.map +1 -1
- package/dist/lexical/ui/icons/AI/index.js +58 -10
- package/dist/lexical/ui/icons/AI/index.js.map +1 -1
- package/dist/lexical/ui/icons/Add/index.js +31 -4
- package/dist/lexical/ui/icons/Add/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignCenter/index.js +45 -5
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.js +45 -5
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.js +45 -5
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.js +45 -5
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
- package/dist/lexical/ui/icons/Block/index.js +54 -5
- package/dist/lexical/ui/icons/Block/index.js.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.js +24 -3
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.js +24 -3
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.js +39 -4
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
- package/dist/lexical/ui/icons/Code/index.js +34 -4
- package/dist/lexical/ui/icons/Code/index.js.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.js +22 -3
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
- package/dist/lexical/ui/icons/Collapse/index.js +23 -3
- package/dist/lexical/ui/icons/Collapse/index.js.map +1 -1
- package/dist/lexical/ui/icons/H1/index.js +24 -3
- package/dist/lexical/ui/icons/H1/index.js.map +1 -1
- package/dist/lexical/ui/icons/H2/index.js +24 -3
- package/dist/lexical/ui/icons/H2/index.js.map +1 -1
- package/dist/lexical/ui/icons/H3/index.js +24 -3
- package/dist/lexical/ui/icons/H3/index.js.map +1 -1
- package/dist/lexical/ui/icons/H4/index.js +24 -3
- package/dist/lexical/ui/icons/H4/index.js.map +1 -1
- package/dist/lexical/ui/icons/H5/index.js +24 -3
- package/dist/lexical/ui/icons/H5/index.js.map +1 -1
- package/dist/lexical/ui/icons/H6/index.js +24 -3
- package/dist/lexical/ui/icons/H6/index.js.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.js +27 -3
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.js +53 -6
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.js +53 -6
- package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.js +26 -3
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.js +24 -3
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
- package/dist/lexical/ui/icons/Link/index.js +25 -3
- package/dist/lexical/ui/icons/Link/index.js.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.js +39 -5
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.js +61 -7
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.js +58 -10
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.js +34 -4
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.js +24 -3
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.js +24 -3
- package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Table/index.js +24 -3
- package/dist/lexical/ui/icons/Table/index.js.map +1 -1
- package/dist/lexical/ui/icons/Text/index.js +24 -3
- package/dist/lexical/ui/icons/Text/index.js.map +1 -1
- package/dist/lexical/ui/icons/TextState/index.js +18 -12
- package/dist/lexical/ui/icons/TextState/index.js.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.js +34 -4
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.js +81 -8
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.js +48 -5
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
- package/dist/types.d.ts +152 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +55 -0
- package/dist/types.js.map +1 -1
- package/dist/utilities/fieldsDrawer/Drawer.js +41 -16
- package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/DrawerContent.js +42 -10
- package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js +9 -1
- package/dist/utilities/fieldsDrawer/useLexicalDocumentDrawer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js +11 -3
- package/dist/utilities/fieldsDrawer/useLexicalListDrawer.js.map +1 -1
- package/dist/utilities/generateImportMap.d.ts.map +1 -1
- package/dist/utilities/generateImportMap.js +1 -0
- package/dist/utilities/generateImportMap.js.map +1 -1
- package/dist/validate/hasText.d.ts +6 -1
- package/dist/validate/hasText.d.ts.map +1 -1
- package/dist/validate/hasText.js +10 -4
- package/dist/validate/hasText.js.map +1 -1
- package/package.json +12 -7
package/dist/cell/rscEntry.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
1
2
|
import { getTranslation } from '@payloadcms/translations';
|
|
2
3
|
import { Link } from '@payloadcms/ui';
|
|
3
4
|
import { formatAdminURL } from 'payload/shared';
|
|
5
|
+
import React from 'react';
|
|
4
6
|
function recurseEditorState(editorState, textContent, i = 0) {
|
|
5
7
|
for (const node of editorState){
|
|
6
8
|
i++;
|
|
@@ -8,7 +10,17 @@ function recurseEditorState(editorState, textContent, i = 0) {
|
|
|
8
10
|
textContent.push(node.text);
|
|
9
11
|
} else {
|
|
10
12
|
if (!('children' in node)) {
|
|
11
|
-
textContent.push(
|
|
13
|
+
textContent.push(/*#__PURE__*/ _jsxDEV("code", {
|
|
14
|
+
children: [
|
|
15
|
+
" [",
|
|
16
|
+
node.type,
|
|
17
|
+
"]"
|
|
18
|
+
]
|
|
19
|
+
}, i, true, {
|
|
20
|
+
fileName: "src/cell/rscEntry.tsx",
|
|
21
|
+
lineNumber: 21,
|
|
22
|
+
columnNumber: 26
|
|
23
|
+
}, this));
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
26
|
if ('children' in node && node.children) {
|
|
@@ -57,7 +69,14 @@ export const RscEntryLexicalCell = (props)=>{
|
|
|
57
69
|
})
|
|
58
70
|
];
|
|
59
71
|
}
|
|
60
|
-
return
|
|
72
|
+
return /*#__PURE__*/ _jsxDEV(WrapElement, {
|
|
73
|
+
...wrapElementProps,
|
|
74
|
+
children: textContent
|
|
75
|
+
}, void 0, false, {
|
|
76
|
+
fileName: "src/cell/rscEntry.tsx",
|
|
77
|
+
lineNumber: 104,
|
|
78
|
+
columnNumber: 10
|
|
79
|
+
}, this);
|
|
61
80
|
};
|
|
62
81
|
|
|
63
82
|
//# sourceMappingURL=rscEntry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/cell/rscEntry.tsx"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { Link } from '@payloadcms/ui'\nimport { formatAdminURL } from 'payload/shared'\nimport React from 'react'\n\nimport type { LexicalRichTextCellProps } from '../types.js'\n\nfunction recurseEditorState(\n editorState: SerializedLexicalNode[],\n textContent: React.ReactNode[],\n i: number = 0,\n): React.ReactNode[] {\n for (const node of editorState) {\n i++\n if ('text' in node && node.text) {\n textContent.push(node.text as string)\n } else {\n if (!('children' in node)) {\n textContent.push(<code key={i}> [{node.type}]</code>)\n }\n }\n if ('children' in node && node.children) {\n textContent = recurseEditorState(node.children as SerializedLexicalNode[], textContent, i)\n }\n }\n return textContent\n}\n\nexport const RscEntryLexicalCell: React.FC<LexicalRichTextCellProps> = (props) => {\n const {\n cellData,\n className: classNameFromProps,\n collectionConfig,\n field: { admin },\n field,\n i18n,\n link,\n onClick: onClickFromProps,\n payload,\n rowData,\n } = props\n\n const classNameFromConfigContext = admin && 'className' in admin ? admin.className : undefined\n\n const className =\n classNameFromProps ||\n (field.admin && 'className' in field.admin ? field.admin.className : null) ||\n classNameFromConfigContext\n const adminRoute = payload.config.routes.admin\n\n const onClick = onClickFromProps\n\n let WrapElement: React.ComponentType<any> | string = 'span'\n\n const wrapElementProps: {\n className?: string\n href?: string\n onClick?: () => void\n prefetch?: false\n type?: 'button'\n } = {\n className,\n }\n\n if (link) {\n wrapElementProps.prefetch = false\n WrapElement = Link\n wrapElementProps.href = collectionConfig?.slug\n ? formatAdminURL({\n adminRoute,\n path: `/collections/${collectionConfig?.slug}/${rowData.id}`,\n })\n : ''\n }\n\n if (typeof onClick === 'function') {\n WrapElement = 'button'\n wrapElementProps.type = 'button'\n wrapElementProps.onClick = () => {\n onClick({\n cellData,\n collectionSlug: collectionConfig?.slug,\n rowData,\n })\n }\n }\n\n let textContent: React.ReactNode[] = []\n\n if (cellData?.root?.children) {\n textContent = recurseEditorState(cellData?.root?.children, textContent)\n }\n\n if (!textContent?.length) {\n textContent = [\n i18n.t('general:noLabel', {\n label: getTranslation(('label' in field ? field.label : null) || 'data', i18n),\n }),\n ]\n }\n\n return <WrapElement {...wrapElementProps}>{textContent}</WrapElement>\n}\n"],"names":["getTranslation","Link","formatAdminURL","recurseEditorState","editorState","textContent","i","node","text","push","code","
|
|
1
|
+
{"version":3,"sources":["../../src/cell/rscEntry.tsx"],"sourcesContent":["import type { SerializedLexicalNode } from 'lexical'\n\nimport { getTranslation } from '@payloadcms/translations'\nimport { Link } from '@payloadcms/ui'\nimport { formatAdminURL } from 'payload/shared'\nimport React from 'react'\n\nimport type { LexicalRichTextCellProps } from '../types.js'\n\nfunction recurseEditorState(\n editorState: SerializedLexicalNode[],\n textContent: React.ReactNode[],\n i: number = 0,\n): React.ReactNode[] {\n for (const node of editorState) {\n i++\n if ('text' in node && node.text) {\n textContent.push(node.text as string)\n } else {\n if (!('children' in node)) {\n textContent.push(<code key={i}> [{node.type}]</code>)\n }\n }\n if ('children' in node && node.children) {\n textContent = recurseEditorState(node.children as SerializedLexicalNode[], textContent, i)\n }\n }\n return textContent\n}\n\nexport const RscEntryLexicalCell: React.FC<LexicalRichTextCellProps> = (props) => {\n const {\n cellData,\n className: classNameFromProps,\n collectionConfig,\n field: { admin },\n field,\n i18n,\n link,\n onClick: onClickFromProps,\n payload,\n rowData,\n } = props\n\n const classNameFromConfigContext = admin && 'className' in admin ? admin.className : undefined\n\n const className =\n classNameFromProps ||\n (field.admin && 'className' in field.admin ? field.admin.className : null) ||\n classNameFromConfigContext\n const adminRoute = payload.config.routes.admin\n\n const onClick = onClickFromProps\n\n let WrapElement: React.ComponentType<any> | string = 'span'\n\n const wrapElementProps: {\n className?: string\n href?: string\n onClick?: () => void\n prefetch?: false\n type?: 'button'\n } = {\n className,\n }\n\n if (link) {\n wrapElementProps.prefetch = false\n WrapElement = Link\n wrapElementProps.href = collectionConfig?.slug\n ? formatAdminURL({\n adminRoute,\n path: `/collections/${collectionConfig?.slug}/${rowData.id}`,\n })\n : ''\n }\n\n if (typeof onClick === 'function') {\n WrapElement = 'button'\n wrapElementProps.type = 'button'\n wrapElementProps.onClick = () => {\n onClick({\n cellData,\n collectionSlug: collectionConfig?.slug,\n rowData,\n })\n }\n }\n\n let textContent: React.ReactNode[] = []\n\n if (cellData?.root?.children) {\n textContent = recurseEditorState(cellData?.root?.children, textContent)\n }\n\n if (!textContent?.length) {\n textContent = [\n i18n.t('general:noLabel', {\n label: getTranslation(('label' in field ? field.label : null) || 'data', i18n),\n }),\n ]\n }\n\n return <WrapElement {...wrapElementProps}>{textContent}</WrapElement>\n}\n"],"names":["getTranslation","Link","formatAdminURL","React","recurseEditorState","editorState","textContent","i","node","text","push","code","type","children","RscEntryLexicalCell","props","cellData","className","classNameFromProps","collectionConfig","field","admin","i18n","link","onClick","onClickFromProps","payload","rowData","classNameFromConfigContext","undefined","adminRoute","config","routes","WrapElement","wrapElementProps","prefetch","href","slug","path","id","collectionSlug","root","length","t","label"],"mappings":";AAEA,SAASA,cAAc,QAAQ,2BAA0B;AACzD,SAASC,IAAI,QAAQ,iBAAgB;AACrC,SAASC,cAAc,QAAQ,iBAAgB;AAC/C,OAAOC,WAAW,QAAO;AAIzB,SAASC,mBACPC,WAAoC,EACpCC,WAA8B,EAC9BC,IAAY,CAAC;IAEb,KAAK,MAAMC,QAAQH,YAAa;QAC9BE;QACA,IAAI,UAAUC,QAAQA,KAAKC,IAAI,EAAE;YAC/BH,YAAYI,IAAI,CAACF,KAAKC,IAAI;QAC5B,OAAO;YACL,IAAI,CAAE,CAAA,cAAcD,IAAG,GAAI;gBACzBF,YAAYI,IAAI,eAAC,QAACC;;wBAAa;wBAAOH,KAAKI,IAAI;wBAAC;;mBAApBL;;;;;YAC9B;QACF;QACA,IAAI,cAAcC,QAAQA,KAAKK,QAAQ,EAAE;YACvCP,cAAcF,mBAAmBI,KAAKK,QAAQ,EAA6BP,aAAaC;QAC1F;IACF;IACA,OAAOD;AACT;AAEA,OAAO,MAAMQ,sBAA0D,CAACC;IACtE,MAAM,EACJC,QAAQ,EACRC,WAAWC,kBAAkB,EAC7BC,gBAAgB,EAChBC,OAAO,EAAEC,KAAK,EAAE,EAChBD,KAAK,EACLE,IAAI,EACJC,IAAI,EACJC,SAASC,gBAAgB,EACzBC,OAAO,EACPC,OAAO,EACR,GAAGZ;IAEJ,MAAMa,6BAA6BP,SAAS,eAAeA,QAAQA,MAAMJ,SAAS,GAAGY;IAErF,MAAMZ,YACJC,sBACCE,CAAAA,MAAMC,KAAK,IAAI,eAAeD,MAAMC,KAAK,GAAGD,MAAMC,KAAK,CAACJ,SAAS,GAAG,IAAG,KACxEW;IACF,MAAME,aAAaJ,QAAQK,MAAM,CAACC,MAAM,CAACX,KAAK;IAE9C,MAAMG,UAAUC;IAEhB,IAAIQ,cAAiD;IAErD,MAAMC,mBAMF;QACFjB;IACF;IAEA,IAAIM,MAAM;QACRW,iBAAiBC,QAAQ,GAAG;QAC5BF,cAAchC;QACdiC,iBAAiBE,IAAI,GAAGjB,kBAAkBkB,OACtCnC,eAAe;YACb4B;YACAQ,MAAM,CAAC,aAAa,EAAEnB,kBAAkBkB,KAAK,CAAC,EAAEV,QAAQY,EAAE,EAAE;QAC9D,KACA;IACN;IAEA,IAAI,OAAOf,YAAY,YAAY;QACjCS,cAAc;QACdC,iBAAiBtB,IAAI,GAAG;QACxBsB,iBAAiBV,OAAO,GAAG;YACzBA,QAAQ;gBACNR;gBACAwB,gBAAgBrB,kBAAkBkB;gBAClCV;YACF;QACF;IACF;IAEA,IAAIrB,cAAiC,EAAE;IAEvC,IAAIU,UAAUyB,MAAM5B,UAAU;QAC5BP,cAAcF,mBAAmBY,UAAUyB,MAAM5B,UAAUP;IAC7D;IAEA,IAAI,CAACA,aAAaoC,QAAQ;QACxBpC,cAAc;YACZgB,KAAKqB,CAAC,CAAC,mBAAmB;gBACxBC,OAAO5C,eAAe,AAAC,CAAA,WAAWoB,QAAQA,MAAMwB,KAAK,GAAG,IAAG,KAAM,QAAQtB;YAC3E;SACD;IACH;IAEA,qBAAO,QAACW;QAAa,GAAGC,gBAAgB;kBAAG5B;;;;;;AAC7C,EAAC"}
|
|
@@ -81,4 +81,5 @@ export { CodeComponent } from '../../features/blocks/premade/CodeBlock/Component
|
|
|
81
81
|
export { CodeBlockBlockComponent } from '../../features/blocks/premade/CodeBlock/Component/Block.js';
|
|
82
82
|
export { RenderLexical } from '../../field/RenderLexical/index.js';
|
|
83
83
|
export { buildDefaultEditorState, buildEditorState } from '../../utilities/buildEditorState.js';
|
|
84
|
+
export { RichTextViewProvider, useRichTextView } from '../../field/RichTextViewProvider.js';
|
|
84
85
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/client/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,4BAA4B,EAAE,MAAM,+CAA+C,CAAA;AAE5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAA;AACzE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAA;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAC3E,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAC5B,MAAM,iDAAiD,CAAA;AAExD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,MAAM,oDAAoD,CAAA;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,gDAAgD,CAAA;AACpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,uDAAuD,CAAA;AAClG,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAA;AAC9F,OAAO,EAAE,sBAAsB,EAAE,MAAM,mDAAmD,CAAA;AAC1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAA;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAC7E,OAAO,EAAE,2BAA2B,EAAE,MAAM,+CAA+C,CAAA;AAC3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAA;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,EAAE,sB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A;AAClE,OAAO,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAA;AAC/F,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA"}
|
|
@@ -82,5 +82,6 @@ export { CodeComponent } from '../../features/blocks/premade/CodeBlock/Component
|
|
|
82
82
|
export { CodeBlockBlockComponent } from '../../features/blocks/premade/CodeBlock/Component/Block.js';
|
|
83
83
|
export { RenderLexical } from '../../field/RenderLexical/index.js';
|
|
84
84
|
export { buildDefaultEditorState, buildEditorState } from '../../utilities/buildEditorState.js';
|
|
85
|
+
export { RichTextViewProvider, useRichTextView } from '../../field/RichTextViewProvider.js';
|
|
85
86
|
|
|
86
87
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/exports/client/index.ts"],"sourcesContent":["/* eslint-disable perfectionist/sort-exports */\n'use client'\n\nexport { slashMenuBasicGroupWithItems } from '../../features/shared/slashMenu/basicGroup.js'\n\nexport { AlignFeatureClient } from '../../features/align/client/index.js'\nexport { BlockquoteFeatureClient } from '../../features/blockquote/client/index.js'\nexport { BlocksFeatureClient } from '../../features/blocks/client/index.js'\nexport {\n INSERT_BLOCK_COMMAND,\n INSERT_INLINE_BLOCK_COMMAND,\n} from '../../features/blocks/client/plugin/commands.js'\n\nexport { TestRecorderFeatureClient } from '../../features/debug/testRecorder/client/index.js'\nexport { TreeViewFeatureClient } from '../../features/debug/treeView/client/index.js'\nexport { BoldFeatureClient } from '../../features/format/bold/feature.client.js'\nexport { InlineCodeFeatureClient } from '../../features/format/inlineCode/feature.client.js'\nexport { ItalicFeatureClient } from '../../features/format/italic/feature.client.js'\nexport { StrikethroughFeatureClient } from '../../features/format/strikethrough/feature.client.js'\nexport { SubscriptFeatureClient } from '../../features/format/subscript/feature.client.js'\nexport { SuperscriptFeatureClient } from '../../features/format/superscript/feature.client.js'\nexport { UnderlineFeatureClient } from '../../features/format/underline/feature.client.js'\nexport { TextStateFeatureClient } from '../../features/textState/feature.client.js'\nexport { HeadingFeatureClient } from '../../features/heading/client/index.js'\nexport { HorizontalRuleFeatureClient } from '../../features/horizontalRule/client/index.js'\nexport { IndentFeatureClient } from '../../features/indent/client/index.js'\nexport { LinkFeatureClient } from '../../features/link/client/index.js'\nexport { ChecklistFeatureClient } from '../../features/lists/checklist/client/index.js'\nexport { OrderedListFeatureClient } from '../../features/lists/orderedList/client/index.js'\nexport { UnorderedListFeatureClient } from '../../features/lists/unorderedList/client/index.js'\nexport { LexicalPluginToLexicalFeatureClient } from '../../features/migrations/lexicalPluginToLexical/feature.client.js'\nexport { SlateToLexicalFeatureClient } from '../../features/migrations/slateToLexical/feature.client.js'\nexport { ParagraphFeatureClient } from '../../features/paragraph/client/index.js'\nexport { DebugJsxConverterFeatureClient } from '../../features/debug/jsxConverter/client/index.js'\nexport { defaultColors } from '../../features/textState/defaultColors.js'\n\nexport { RelationshipFeatureClient } from '../../features/relationship/client/index.js'\n\nexport { toolbarFormatGroupWithItems } from '../../features/format/shared/toolbarFormatGroup.js'\nexport { toolbarAddDropdownGroupWithItems } from '../../features/shared/toolbar/addDropdownGroup.js'\nexport { toolbarFeatureButtonsGroupWithItems } from '../../features/shared/toolbar/featureButtonsGroup.js'\nexport { toolbarTextDropdownGroupWithItems } from '../../features/shared/toolbar/textDropdownGroup.js'\nexport { FixedToolbarFeatureClient } from '../../features/toolbars/fixed/client/index.js'\nexport { InlineToolbarFeatureClient } from '../../features/toolbars/inline/client/index.js'\nexport { ToolbarButton } from '../../features/toolbars/shared/ToolbarButton/index.js'\nexport { TableFeatureClient } from '../../features/experimental_table/client/index.js'\n\nexport { ToolbarDropdown } from '../../features/toolbars/shared/ToolbarDropdown/index.js'\nexport { UploadFeatureClient } from '../../features/upload/client/index.js'\n\nexport { RichTextField } from '../../field/index.js'\nexport {\n EditorConfigProvider,\n useEditorConfigContext,\n} from '../../lexical/config/client/EditorConfigProvider.js'\nexport { defaultEditorLexicalConfig } from '../../lexical/config/client/default.js'\n\nexport {\n sanitizeClientEditorConfig,\n sanitizeClientFeatures,\n} from '../../lexical/config/client/sanitize.js'\nexport { CAN_USE_DOM } from '../../lexical/utils/canUseDOM.js'\nexport { getDOMRangeRect } from '../../lexical/utils/getDOMRangeRect.js'\nexport { getSelectedNode } from '../../lexical/utils/getSelectedNode.js'\nexport { isHTMLElement } from '../../lexical/utils/guard.js'\nexport { joinClasses } from '../../lexical/utils/joinClasses.js'\n\nexport { createBlockNode } from '../../lexical/utils/markdown/createBlockNode.js'\nexport { isPoint, Point } from '../../lexical/utils/point.js'\nexport { Rect } from '../../lexical/utils/rect.js'\nexport { setFloatingElemPosition } from '../../lexical/utils/setFloatingElemPosition.js'\nexport { setFloatingElemPositionForLinkEditor } from '../../lexical/utils/setFloatingElemPositionForLinkEditor.js'\n\nexport {\n addSwipeDownListener,\n addSwipeLeftListener,\n addSwipeRightListener,\n addSwipeUpListener,\n} from '../../lexical/utils/swipe.js'\nexport { createClientFeature } from '../../utilities/createClientFeature.js'\n\nexport {\n DETAIL_TYPE_TO_DETAIL,\n DOUBLE_LINE_BREAK,\n ELEMENT_FORMAT_TO_TYPE,\n ELEMENT_TYPE_TO_FORMAT,\n IS_ALL_FORMATTING,\n LTR_REGEX,\n NodeFormat,\n NON_BREAKING_SPACE,\n RTL_REGEX,\n TEXT_MODE_TO_TYPE,\n TEXT_TYPE_TO_FORMAT,\n TEXT_TYPE_TO_MODE,\n} from '../../lexical/utils/nodeFormat.js'\n\nexport { ENABLE_SLASH_MENU_COMMAND } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js'\n\nexport { getEnabledNodes } from '../../lexical/nodes/index.js'\n\nexport {\n $createUploadNode,\n $isUploadNode,\n UploadNode,\n} from '../../features/upload/client/nodes/UploadNode.js'\n\nexport {\n $createRelationshipNode,\n $isRelationshipNode,\n RelationshipNode,\n} from '../../features/relationship/client/nodes/RelationshipNode.js'\n\nexport {\n $createLinkNode,\n $isLinkNode,\n LinkNode,\n TOGGLE_LINK_COMMAND,\n} from '../../features/link/nodes/LinkNode.js'\n\nexport {\n $createAutoLinkNode,\n $isAutoLinkNode,\n AutoLinkNode,\n} from '../../features/link/nodes/AutoLinkNode.js'\n\nexport {\n $createBlockNode,\n $isBlockNode,\n BlockNode,\n} from '../../features/blocks/client/nodes/BlocksNode.js'\n\nexport {\n $createInlineBlockNode,\n $isInlineBlockNode,\n InlineBlockNode,\n} from '../../features/blocks/client/nodes/InlineBlocksNode.js'\n\nexport {\n $createHorizontalRuleNode,\n $isHorizontalRuleNode,\n HorizontalRuleNode,\n} from '../../features/horizontalRule/client/nodes/HorizontalRuleNode.js'\n\nexport { FieldsDrawer } from '../../utilities/fieldsDrawer/Drawer.js'\nexport { useLexicalDocumentDrawer } from '../../utilities/fieldsDrawer/useLexicalDocumentDrawer.js'\nexport { useLexicalDrawer } from '../../utilities/fieldsDrawer/useLexicalDrawer.js'\nexport { useLexicalListDrawer } from '../../utilities/fieldsDrawer/useLexicalListDrawer.js'\n\nexport { InlineBlockEditButton } from '../../features/blocks/client/componentInline/components/InlineBlockEditButton.js'\nexport { InlineBlockRemoveButton } from '../../features/blocks/client/componentInline/components/InlineBlockRemoveButton.js'\nexport { InlineBlockLabel } from '../../features/blocks/client/componentInline/components/InlineBlockLabel.js'\nexport { InlineBlockContainer } from '../../features/blocks/client/componentInline/components/InlineBlockContainer.js'\nexport { useInlineBlockComponentContext } from '../../features/blocks/client/componentInline/index.js'\nexport { BlockCollapsible } from '../../features/blocks/client/component/components/BlockCollapsible.js'\nexport { BlockEditButton } from '../../features/blocks/client/component/components/BlockEditButton.js'\nexport { BlockRemoveButton } from '../../features/blocks/client/component/components/BlockRemoveButton.js'\nexport { useBlockComponentContext } from '../../features/blocks/client/component/BlockContent.js'\nexport { getRestPopulateFn } from '../../features/converters/utilities/restPopulateFn.js'\nexport { codeConverterClient } from '../../features/blocks/premade/CodeBlock/converterClient.js'\nexport { CodeComponent } from '../../features/blocks/premade/CodeBlock/Component/Code.js'\nexport { CodeBlockBlockComponent } from '../../features/blocks/premade/CodeBlock/Component/Block.js'\n\nexport { RenderLexical } from '../../field/RenderLexical/index.js'\nexport { buildDefaultEditorState, buildEditorState } from '../../utilities/buildEditorState.js'\n"],"names":["slashMenuBasicGroupWithItems","AlignFeatureClient","BlockquoteFeatureClient","BlocksFeatureClient","INSERT_BLOCK_COMMAND","INSERT_INLINE_BLOCK_COMMAND","TestRecorderFeatureClient","TreeViewFeatureClient","BoldFeatureClient","InlineCodeFeatureClient","ItalicFeatureClient","StrikethroughFeatureClient","SubscriptFeatureClient","SuperscriptFeatureClient","UnderlineFeatureClient","TextStateFeatureClient","HeadingFeatureClient","HorizontalRuleFeatureClient","IndentFeatureClient","LinkFeatureClient","ChecklistFeatureClient","OrderedListFeatureClient","UnorderedListFeatureClient","LexicalPluginToLexicalFeatureClient","SlateToLexicalFeatureClient","ParagraphFeatureClient","DebugJsxConverterFeatureClient","defaultColors","RelationshipFeatureClient","toolbarFormatGroupWithItems","toolbarAddDropdownGroupWithItems","toolbarFeatureButtonsGroupWithItems","toolbarTextDropdownGroupWithItems","FixedToolbarFeatureClient","InlineToolbarFeatureClient","ToolbarButton","TableFeatureClient","ToolbarDropdown","UploadFeatureClient","RichTextField","EditorConfigProvider","useEditorConfigContext","defaultEditorLexicalConfig","sanitizeClientEditorConfig","sanitizeClientFeatures","CAN_USE_DOM","getDOMRangeRect","getSelectedNode","isHTMLElement","joinClasses","createBlockNode","isPoint","Point","Rect","setFloatingElemPosition","setFloatingElemPositionForLinkEditor","addSwipeDownListener","addSwipeLeftListener","addSwipeRightListener","addSwipeUpListener","createClientFeature","DETAIL_TYPE_TO_DETAIL","DOUBLE_LINE_BREAK","ELEMENT_FORMAT_TO_TYPE","ELEMENT_TYPE_TO_FORMAT","IS_ALL_FORMATTING","LTR_REGEX","NodeFormat","NON_BREAKING_SPACE","RTL_REGEX","TEXT_MODE_TO_TYPE","TEXT_TYPE_TO_FORMAT","TEXT_TYPE_TO_MODE","ENABLE_SLASH_MENU_COMMAND","getEnabledNodes","$createUploadNode","$isUploadNode","UploadNode","$createRelationshipNode","$isRelationshipNode","RelationshipNode","$createLinkNode","$isLinkNode","LinkNode","TOGGLE_LINK_COMMAND","$createAutoLinkNode","$isAutoLinkNode","AutoLinkNode","$createBlockNode","$isBlockNode","BlockNode","$createInlineBlockNode","$isInlineBlockNode","InlineBlockNode","$createHorizontalRuleNode","$isHorizontalRuleNode","HorizontalRuleNode","FieldsDrawer","useLexicalDocumentDrawer","useLexicalDrawer","useLexicalListDrawer","InlineBlockEditButton","InlineBlockRemoveButton","InlineBlockLabel","InlineBlockContainer","useInlineBlockComponentContext","BlockCollapsible","BlockEditButton","BlockRemoveButton","useBlockComponentContext","getRestPopulateFn","codeConverterClient","CodeComponent","CodeBlockBlockComponent","RenderLexical","buildDefaultEditorState","buildEditorState"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,SAASA,4BAA4B,QAAQ,gDAA+C;AAE5F,SAASC,kBAAkB,QAAQ,uCAAsC;AACzE,SAASC,uBAAuB,QAAQ,4CAA2C;AACnF,SAASC,mBAAmB,QAAQ,wCAAuC;AAC3E,SACEC,oBAAoB,EACpBC,2BAA2B,QACtB,kDAAiD;AAExD,SAASC,yBAAyB,QAAQ,oDAAmD;AAC7F,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,iBAAiB,QAAQ,+CAA8C;AAChF,SAASC,uBAAuB,QAAQ,qDAAoD;AAC5F,SAASC,mBAAmB,QAAQ,iDAAgD;AACpF,SAASC,0BAA0B,QAAQ,wDAAuD;AAClG,SAASC,sBAAsB,QAAQ,oDAAmD;AAC1F,SAASC,wBAAwB,QAAQ,sDAAqD;AAC9F,SAASC,sBAAsB,QAAQ,oDAAmD;AAC1F,SAASC,sBAAsB,QAAQ,6CAA4C;AACnF,SAASC,oBAAoB,QAAQ,yCAAwC;AAC7E,SAASC,2BAA2B,QAAQ,gDAA+C;AAC3F,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BAAgB,QAAQ,wEAAuE;AACxG,SAASC,eAAe,QAAQ,uEAAsE;AACtG,SAASC,iBAAiB,QAAQ,yEAAwE;AAC1G,SAASC,wBAAwB,QAAQ,yDAAwD;AACjG,SAASC,iBAAiB,QAAQ,wDAAuD;AACzF,SAASC,mBAAmB,QAAQ,6DAA4D;AAChG,SAASC,aAAa,QAAQ,4DAA2D;AACzF,SAASC,uBAAuB,QAAQ,6DAA4D;AAEpG,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,uBAAuB,EAAEC,gBAAgB,QAAQ,sCAAqC"}
|
|
1
|
+
{"version":3,"sources":["../../../src/exports/client/index.ts"],"sourcesContent":["/* eslint-disable perfectionist/sort-exports */\n'use client'\n\nexport { slashMenuBasicGroupWithItems } from '../../features/shared/slashMenu/basicGroup.js'\n\nexport { AlignFeatureClient } from '../../features/align/client/index.js'\nexport { BlockquoteFeatureClient } from '../../features/blockquote/client/index.js'\nexport { BlocksFeatureClient } from '../../features/blocks/client/index.js'\nexport {\n INSERT_BLOCK_COMMAND,\n INSERT_INLINE_BLOCK_COMMAND,\n} from '../../features/blocks/client/plugin/commands.js'\n\nexport { TestRecorderFeatureClient } from '../../features/debug/testRecorder/client/index.js'\nexport { TreeViewFeatureClient } from '../../features/debug/treeView/client/index.js'\nexport { BoldFeatureClient } from '../../features/format/bold/feature.client.js'\nexport { InlineCodeFeatureClient } from '../../features/format/inlineCode/feature.client.js'\nexport { ItalicFeatureClient } from '../../features/format/italic/feature.client.js'\nexport { StrikethroughFeatureClient } from '../../features/format/strikethrough/feature.client.js'\nexport { SubscriptFeatureClient } from '../../features/format/subscript/feature.client.js'\nexport { SuperscriptFeatureClient } from '../../features/format/superscript/feature.client.js'\nexport { UnderlineFeatureClient } from '../../features/format/underline/feature.client.js'\nexport { TextStateFeatureClient } from '../../features/textState/feature.client.js'\nexport { HeadingFeatureClient } from '../../features/heading/client/index.js'\nexport { HorizontalRuleFeatureClient } from '../../features/horizontalRule/client/index.js'\nexport { IndentFeatureClient } from '../../features/indent/client/index.js'\nexport { LinkFeatureClient } from '../../features/link/client/index.js'\nexport { ChecklistFeatureClient } from '../../features/lists/checklist/client/index.js'\nexport { OrderedListFeatureClient } from '../../features/lists/orderedList/client/index.js'\nexport { UnorderedListFeatureClient } from '../../features/lists/unorderedList/client/index.js'\nexport { LexicalPluginToLexicalFeatureClient } from '../../features/migrations/lexicalPluginToLexical/feature.client.js'\nexport { SlateToLexicalFeatureClient } from '../../features/migrations/slateToLexical/feature.client.js'\nexport { ParagraphFeatureClient } from '../../features/paragraph/client/index.js'\nexport { DebugJsxConverterFeatureClient } from '../../features/debug/jsxConverter/client/index.js'\nexport { defaultColors } from '../../features/textState/defaultColors.js'\n\nexport { RelationshipFeatureClient } from '../../features/relationship/client/index.js'\n\nexport { toolbarFormatGroupWithItems } from '../../features/format/shared/toolbarFormatGroup.js'\nexport { toolbarAddDropdownGroupWithItems } from '../../features/shared/toolbar/addDropdownGroup.js'\nexport { toolbarFeatureButtonsGroupWithItems } from '../../features/shared/toolbar/featureButtonsGroup.js'\nexport { toolbarTextDropdownGroupWithItems } from '../../features/shared/toolbar/textDropdownGroup.js'\nexport { FixedToolbarFeatureClient } from '../../features/toolbars/fixed/client/index.js'\nexport { InlineToolbarFeatureClient } from '../../features/toolbars/inline/client/index.js'\nexport { ToolbarButton } from '../../features/toolbars/shared/ToolbarButton/index.js'\nexport { TableFeatureClient } from '../../features/experimental_table/client/index.js'\n\nexport { ToolbarDropdown } from '../../features/toolbars/shared/ToolbarDropdown/index.js'\nexport { UploadFeatureClient } from '../../features/upload/client/index.js'\n\nexport { RichTextField } from '../../field/index.js'\nexport {\n EditorConfigProvider,\n useEditorConfigContext,\n} from '../../lexical/config/client/EditorConfigProvider.js'\nexport { defaultEditorLexicalConfig } from '../../lexical/config/client/default.js'\n\nexport {\n sanitizeClientEditorConfig,\n sanitizeClientFeatures,\n} from '../../lexical/config/client/sanitize.js'\nexport { CAN_USE_DOM } from '../../lexical/utils/canUseDOM.js'\nexport { getDOMRangeRect } from '../../lexical/utils/getDOMRangeRect.js'\nexport { getSelectedNode } from '../../lexical/utils/getSelectedNode.js'\nexport { isHTMLElement } from '../../lexical/utils/guard.js'\nexport { joinClasses } from '../../lexical/utils/joinClasses.js'\n\nexport { createBlockNode } from '../../lexical/utils/markdown/createBlockNode.js'\nexport { isPoint, Point } from '../../lexical/utils/point.js'\nexport { Rect } from '../../lexical/utils/rect.js'\nexport { setFloatingElemPosition } from '../../lexical/utils/setFloatingElemPosition.js'\nexport { setFloatingElemPositionForLinkEditor } from '../../lexical/utils/setFloatingElemPositionForLinkEditor.js'\n\nexport {\n addSwipeDownListener,\n addSwipeLeftListener,\n addSwipeRightListener,\n addSwipeUpListener,\n} from '../../lexical/utils/swipe.js'\nexport { createClientFeature } from '../../utilities/createClientFeature.js'\n\nexport {\n DETAIL_TYPE_TO_DETAIL,\n DOUBLE_LINE_BREAK,\n ELEMENT_FORMAT_TO_TYPE,\n ELEMENT_TYPE_TO_FORMAT,\n IS_ALL_FORMATTING,\n LTR_REGEX,\n NodeFormat,\n NON_BREAKING_SPACE,\n RTL_REGEX,\n TEXT_MODE_TO_TYPE,\n TEXT_TYPE_TO_FORMAT,\n TEXT_TYPE_TO_MODE,\n} from '../../lexical/utils/nodeFormat.js'\n\nexport { ENABLE_SLASH_MENU_COMMAND } from '../../lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js'\n\nexport { getEnabledNodes } from '../../lexical/nodes/index.js'\n\nexport {\n $createUploadNode,\n $isUploadNode,\n UploadNode,\n} from '../../features/upload/client/nodes/UploadNode.js'\n\nexport {\n $createRelationshipNode,\n $isRelationshipNode,\n RelationshipNode,\n} from '../../features/relationship/client/nodes/RelationshipNode.js'\n\nexport {\n $createLinkNode,\n $isLinkNode,\n LinkNode,\n TOGGLE_LINK_COMMAND,\n} from '../../features/link/nodes/LinkNode.js'\n\nexport {\n $createAutoLinkNode,\n $isAutoLinkNode,\n AutoLinkNode,\n} from '../../features/link/nodes/AutoLinkNode.js'\n\nexport {\n $createBlockNode,\n $isBlockNode,\n BlockNode,\n} from '../../features/blocks/client/nodes/BlocksNode.js'\n\nexport {\n $createInlineBlockNode,\n $isInlineBlockNode,\n InlineBlockNode,\n} from '../../features/blocks/client/nodes/InlineBlocksNode.js'\n\nexport {\n $createHorizontalRuleNode,\n $isHorizontalRuleNode,\n HorizontalRuleNode,\n} from '../../features/horizontalRule/client/nodes/HorizontalRuleNode.js'\n\nexport { FieldsDrawer } from '../../utilities/fieldsDrawer/Drawer.js'\nexport { useLexicalDocumentDrawer } from '../../utilities/fieldsDrawer/useLexicalDocumentDrawer.js'\nexport { useLexicalDrawer } from '../../utilities/fieldsDrawer/useLexicalDrawer.js'\nexport { useLexicalListDrawer } from '../../utilities/fieldsDrawer/useLexicalListDrawer.js'\n\nexport { InlineBlockEditButton } from '../../features/blocks/client/componentInline/components/InlineBlockEditButton.js'\nexport { InlineBlockRemoveButton } from '../../features/blocks/client/componentInline/components/InlineBlockRemoveButton.js'\nexport { InlineBlockLabel } from '../../features/blocks/client/componentInline/components/InlineBlockLabel.js'\nexport { InlineBlockContainer } from '../../features/blocks/client/componentInline/components/InlineBlockContainer.js'\nexport { useInlineBlockComponentContext } from '../../features/blocks/client/componentInline/index.js'\nexport { BlockCollapsible } from '../../features/blocks/client/component/components/BlockCollapsible.js'\nexport { BlockEditButton } from '../../features/blocks/client/component/components/BlockEditButton.js'\nexport { BlockRemoveButton } from '../../features/blocks/client/component/components/BlockRemoveButton.js'\nexport { useBlockComponentContext } from '../../features/blocks/client/component/BlockContent.js'\nexport { getRestPopulateFn } from '../../features/converters/utilities/restPopulateFn.js'\nexport { codeConverterClient } from '../../features/blocks/premade/CodeBlock/converterClient.js'\nexport { CodeComponent } from '../../features/blocks/premade/CodeBlock/Component/Code.js'\nexport { CodeBlockBlockComponent } from '../../features/blocks/premade/CodeBlock/Component/Block.js'\n\nexport { RenderLexical } from '../../field/RenderLexical/index.js'\nexport { buildDefaultEditorState, buildEditorState } from '../../utilities/buildEditorState.js'\nexport { RichTextViewProvider, useRichTextView } from '../../field/RichTextViewProvider.js'\n"],"names":["slashMenuBasicGroupWithItems","AlignFeatureClient","BlockquoteFeatureClient","BlocksFeatureClient","INSERT_BLOCK_COMMAND","INSERT_INLINE_BLOCK_COMMAND","TestRecorderFeatureClient","TreeViewFeatureClient","BoldFeatureClient","InlineCodeFeatureClient","ItalicFeatureClient","StrikethroughFeatureClient","SubscriptFeatureClient","SuperscriptFeatureClient","UnderlineFeatureClient","TextStateFeatureClient","HeadingFeatureClient","HorizontalRuleFeatureClient","IndentFeatureClient","LinkFeatureClient","ChecklistFeatureClient","OrderedListFeatureClient","UnorderedListFeatureClient","LexicalPluginToLexicalFeatureClient","SlateToLexicalFeatureClient","ParagraphFeatureClient","DebugJsxConverterFeatureClient","defaultColors","RelationshipFeatureClient","toolbarFormatGroupWithItems","toolbarAddDropdownGroupWithItems","toolbarFeatureButtonsGroupWithItems","toolbarTextDropdownGroupWithItems","FixedToolbarFeatureClient","InlineToolbarFeatureClient","ToolbarButton","TableFeatureClient","ToolbarDropdown","UploadFeatureClient","RichTextField","EditorConfigProvider","useEditorConfigContext","defaultEditorLexicalConfig","sanitizeClientEditorConfig","sanitizeClientFeatures","CAN_USE_DOM","getDOMRangeRect","getSelectedNode","isHTMLElement","joinClasses","createBlockNode","isPoint","Point","Rect","setFloatingElemPosition","setFloatingElemPositionForLinkEditor","addSwipeDownListener","addSwipeLeftListener","addSwipeRightListener","addSwipeUpListener","createClientFeature","DETAIL_TYPE_TO_DETAIL","DOUBLE_LINE_BREAK","ELEMENT_FORMAT_TO_TYPE","ELEMENT_TYPE_TO_FORMAT","IS_ALL_FORMATTING","LTR_REGEX","NodeFormat","NON_BREAKING_SPACE","RTL_REGEX","TEXT_MODE_TO_TYPE","TEXT_TYPE_TO_FORMAT","TEXT_TYPE_TO_MODE","ENABLE_SLASH_MENU_COMMAND","getEnabledNodes","$createUploadNode","$isUploadNode","UploadNode","$createRelationshipNode","$isRelationshipNode","RelationshipNode","$createLinkNode","$isLinkNode","LinkNode","TOGGLE_LINK_COMMAND","$createAutoLinkNode","$isAutoLinkNode","AutoLinkNode","$createBlockNode","$isBlockNode","BlockNode","$createInlineBlockNode","$isInlineBlockNode","InlineBlockNode","$createHorizontalRuleNode","$isHorizontalRuleNode","HorizontalRuleNode","FieldsDrawer","useLexicalDocumentDrawer","useLexicalDrawer","useLexicalListDrawer","InlineBlockEditButton","InlineBlockRemoveButton","InlineBlockLabel","InlineBlockContainer","useInlineBlockComponentContext","BlockCollapsible","BlockEditButton","BlockRemoveButton","useBlockComponentContext","getRestPopulateFn","codeConverterClient","CodeComponent","CodeBlockBlockComponent","RenderLexical","buildDefaultEditorState","buildEditorState","RichTextViewProvider","useRichTextView"],"mappings":"AAAA,6CAA6C,GAC7C;AAEA,SAASA,4BAA4B,QAAQ,gDAA+C;AAE5F,SAASC,kBAAkB,QAAQ,uCAAsC;AACzE,SAASC,uBAAuB,QAAQ,4CAA2C;AACnF,SAASC,mBAAmB,QAAQ,wCAAuC;AAC3E,SACEC,oBAAoB,EACpBC,2BAA2B,QACtB,kDAAiD;AAExD,SAASC,yBAAyB,QAAQ,oDAAmD;AAC7F,SAASC,qBAAqB,QAAQ,gDAA+C;AACrF,SAASC,iBAAiB,QAAQ,+CAA8C;AAChF,SAASC,uBAAuB,QAAQ,qDAAoD;AAC5F,SAASC,mBAAmB,QAAQ,iDAAgD;AACpF,SAASC,0BAA0B,QAAQ,wDAAuD;AAClG,SAASC,sBAAsB,QAAQ,oDAAmD;AAC1F,SAASC,wBAAwB,QAAQ,sDAAqD;AAC9F,SAASC,sBAAsB,QAAQ,oDAAmD;AAC1F,SAASC,sBAAsB,QAAQ,6CAA4C;AACnF,SAASC,oBAAoB,QAAQ,yCAAwC;AAC7E,SAASC,2BAA2B,QAAQ,gDAA+C;AAC3F,SAASC,mBAAmB,QAAQ,wCAAuC;AAC3E,SAASC,iBAAiB,QAAQ,sCAAq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ASC,iBAAiB,QAAQ,yEAAwE;AAC1G,SAASC,wBAAwB,QAAQ,yDAAwD;AACjG,SAASC,iBAAiB,QAAQ,wDAAuD;AACzF,SAASC,mBAAmB,QAAQ,6DAA4D;AAChG,SAASC,aAAa,QAAQ,4DAA2D;AACzF,SAASC,uBAAuB,QAAQ,6DAA4D;AAEpG,SAASC,aAAa,QAAQ,qCAAoC;AAClE,SAASC,uBAAuB,EAAEC,gBAAgB,QAAQ,sCAAqC;AAC/F,SAASC,oBAAoB,EAAEC,eAAe,QAAQ,sCAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal-client.d.ts","sourceRoot":"","sources":["../../../src/exports/client/internal-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,wBAAwB,GACzB,MAAM,wDAAwD,CAAA;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,iDAAiD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/exports/client/internal-client.ts"],"sourcesContent":["export {\n BlockContent,\n useBlockComponentContext,\n} from '../../features/blocks/client/component/BlockContent.js'\nexport { BlockComponent } from '../../features/blocks/client/component/index.js'\n"],"names":["BlockContent","useBlockComponentContext","BlockComponent"],"mappings":"AAAA,SACEA,YAAY,EACZC,wBAAwB,QACnB,yDAAwD;AAC/D,SAASC,cAAc,QAAQ,kDAAiD"}
|
|
@@ -12,5 +12,5 @@ export { TextJSXConverter } from '../../features/converters/lexicalToJSX/convert
|
|
|
12
12
|
export { UploadJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/upload.js';
|
|
13
13
|
export { defaultJSXConverters } from '../../features/converters/lexicalToJSX/converter/defaultConverters.js';
|
|
14
14
|
export { convertLexicalNodesToJSX } from '../../features/converters/lexicalToJSX/converter/index.js';
|
|
15
|
-
export type { JSXConverter, JSXConverters, SerializedLexicalNodeWithParent, } from '../../features/converters/lexicalToJSX/converter/types.js';
|
|
15
|
+
export type { JSXConverter, JSXConverterArgs, JSXConverters, SerializedLexicalNodeWithParent, } from '../../features/converters/lexicalToJSX/converter/types.js';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,QAAQ,GACT,MAAM,2DAA2D,CAAA;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2EAA2E,CAAA;AAClH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wEAAwE,CAAA;AAC5G,OAAO,EAAE,0BAA0B,EAAE,MAAM,+EAA+E,CAAA;AAC1H,OAAO,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAA;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAA;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAA;AAExG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AAEtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uEAAuE,CAAA;AAC1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAC5G,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAA;AACpG,YAAY,EACV,YAAY,EACZ,aAAa,EACb,+BAA+B,GAChC,MAAM,2DAA2D,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/react/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,qBAAqB,EAC1B,QAAQ,GACT,MAAM,2DAA2D,CAAA;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2EAA2E,CAAA;AAClH,OAAO,EAAE,mBAAmB,EAAE,MAAM,wEAAwE,CAAA;AAC5G,OAAO,EAAE,0BAA0B,EAAE,MAAM,+EAA+E,CAAA;AAC1H,OAAO,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAA;AAChH,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AACtG,OAAO,EAAE,qBAAqB,EAAE,MAAM,0EAA0E,CAAA;AAChH,OAAO,EAAE,eAAe,EAAE,MAAM,oEAAoE,CAAA;AACpG,OAAO,EAAE,iBAAiB,EAAE,MAAM,sEAAsE,CAAA;AAExG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qEAAqE,CAAA;AAEtG,OAAO,EAAE,kBAAkB,EAAE,MAAM,uEAAuE,CAAA;AAC1G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uEAAuE,CAAA;AAC5G,OAAO,EAAE,wBAAwB,EAAE,MAAM,2DAA2D,CAAA;AACpG,YAAY,EACV,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,+BAA+B,GAChC,MAAM,2DAA2D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/exports/react/index.ts"],"sourcesContent":["export {\n type JSXConvertersFunction,\n RichText,\n} from '../../features/converters/lexicalToJSX/Component/index.js'\nexport { BlockquoteJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/blockquote.js'\nexport { HeadingJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/heading.js'\nexport { HorizontalRuleJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/horizontalRule.js'\nexport { LinebreakJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/linebreak.js'\nexport { LinkJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/link.js'\nexport { ListJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/list.js'\nexport { ParagraphJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/paragraph.js'\nexport { TabJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/tab.js'\nexport { TableJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/table.js'\n\nexport { TextJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/text.js'\n\nexport { UploadJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/upload.js'\nexport { defaultJSXConverters } from '../../features/converters/lexicalToJSX/converter/defaultConverters.js'\nexport { convertLexicalNodesToJSX } from '../../features/converters/lexicalToJSX/converter/index.js'\nexport type {\n JSXConverter,\n JSXConverters,\n SerializedLexicalNodeWithParent,\n} from '../../features/converters/lexicalToJSX/converter/types.js'\n"],"names":["RichText","BlockquoteJSXConverter","HeadingJSXConverter","HorizontalRuleJSXConverter","LinebreakJSXConverter","LinkJSXConverter","ListJSXConverter","ParagraphJSXConverter","TabJSXConverter","TableJSXConverter","TextJSXConverter","UploadJSXConverter","defaultJSXConverters","convertLexicalNodesToJSX"],"mappings":"AAAA,SAEEA,QAAQ,QACH,4DAA2D;AAClE,SAASC,sBAAsB,QAAQ,4EAA2E;AAClH,SAASC,mBAAmB,QAAQ,yEAAwE;AAC5G,SAASC,0BAA0B,QAAQ,gFAA+E;AAC1H,SAASC,qBAAqB,QAAQ,2EAA0E;AAChH,SAASC,gBAAgB,QAAQ,sEAAqE;AACtG,SAASC,gBAAgB,QAAQ,sEAAqE;AACtG,SAASC,qBAAqB,QAAQ,2EAA0E;AAChH,SAASC,eAAe,QAAQ,qEAAoE;AACpG,SAASC,iBAAiB,QAAQ,uEAAsE;AAExG,SAASC,gBAAgB,QAAQ,sEAAqE;AAEtG,SAASC,kBAAkB,QAAQ,wEAAuE;AAC1G,SAASC,oBAAoB,QAAQ,wEAAuE;AAC5G,SAASC,wBAAwB,QAAQ,4DAA2D"}
|
|
1
|
+
{"version":3,"sources":["../../../src/exports/react/index.ts"],"sourcesContent":["export {\n type JSXConvertersFunction,\n RichText,\n} from '../../features/converters/lexicalToJSX/Component/index.js'\nexport { BlockquoteJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/blockquote.js'\nexport { HeadingJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/heading.js'\nexport { HorizontalRuleJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/horizontalRule.js'\nexport { LinebreakJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/linebreak.js'\nexport { LinkJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/link.js'\nexport { ListJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/list.js'\nexport { ParagraphJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/paragraph.js'\nexport { TabJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/tab.js'\nexport { TableJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/table.js'\n\nexport { TextJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/text.js'\n\nexport { UploadJSXConverter } from '../../features/converters/lexicalToJSX/converter/converters/upload.js'\nexport { defaultJSXConverters } from '../../features/converters/lexicalToJSX/converter/defaultConverters.js'\nexport { convertLexicalNodesToJSX } from '../../features/converters/lexicalToJSX/converter/index.js'\nexport type {\n JSXConverter,\n JSXConverterArgs,\n JSXConverters,\n SerializedLexicalNodeWithParent,\n} from '../../features/converters/lexicalToJSX/converter/types.js'\n"],"names":["RichText","BlockquoteJSXConverter","HeadingJSXConverter","HorizontalRuleJSXConverter","LinebreakJSXConverter","LinkJSXConverter","ListJSXConverter","ParagraphJSXConverter","TabJSXConverter","TableJSXConverter","TextJSXConverter","UploadJSXConverter","defaultJSXConverters","convertLexicalNodesToJSX"],"mappings":"AAAA,SAEEA,QAAQ,QACH,4DAA2D;AAClE,SAASC,sBAAsB,QAAQ,4EAA2E;AAClH,SAASC,mBAAmB,QAAQ,yEAAwE;AAC5G,SAASC,0BAA0B,QAAQ,gFAA+E;AAC1H,SAASC,qBAAqB,QAAQ,2EAA0E;AAChH,SAASC,gBAAgB,QAAQ,sEAAqE;AACtG,SAASC,gBAAgB,QAAQ,sEAAqE;AACtG,SAASC,qBAAqB,QAAQ,2EAA0E;AAChH,SAASC,eAAe,QAAQ,qEAAoE;AACpG,SAASC,iBAAiB,QAAQ,uEAAsE;AAExG,SAASC,gBAAgB,QAAQ,sEAAqE;AAEtG,SAASC,kBAAkB,QAAQ,wEAAuE;AAC1G,SAASC,oBAAoB,QAAQ,wEAAuE;AAC5G,SAASC,wBAAwB,QAAQ,4DAA2D"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
2
3
|
import { useLexicalEditable } from '@lexical/react/useLexicalEditable';
|
|
3
4
|
import { RenderFields, useFormSubmitted } from '@payloadcms/ui';
|
|
4
5
|
import React, { createContext, useMemo } from 'react';
|
|
@@ -25,7 +26,7 @@ import React, { createContext, useMemo } from 'react';
|
|
|
25
26
|
* Whether to show the Remove button
|
|
26
27
|
* If `Actions` is provided, this property is ignored.
|
|
27
28
|
* @default true
|
|
28
|
-
*/ const BlockComponentContext = createContext({
|
|
29
|
+
*/ const BlockComponentContext = /*#__PURE__*/ createContext({
|
|
29
30
|
baseClass: 'LexicalEditorTheme__block',
|
|
30
31
|
BlockCollapsible: ()=>null,
|
|
31
32
|
BlockDrawer: ()=>null,
|
|
@@ -50,23 +51,57 @@ export const useBlockComponentContext = ()=>React.use(BlockComponentContext);
|
|
|
50
51
|
const isEditable = useLexicalEditable();
|
|
51
52
|
const CollapsibleWithErrorProps = useMemo(()=>(props)=>{
|
|
52
53
|
const { children, ...rest } = props;
|
|
53
|
-
return
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
return /*#__PURE__*/ _jsxDEV(Collapsible, {
|
|
55
|
+
errorCount: errorCount,
|
|
56
|
+
fieldHasErrors: fieldHasErrors,
|
|
57
|
+
...rest,
|
|
58
|
+
children: children
|
|
59
|
+
}, void 0, false, {
|
|
60
|
+
fileName: "src/features/blocks/client/component/BlockContent.tsx",
|
|
61
|
+
lineNumber: 109,
|
|
62
|
+
columnNumber: 9
|
|
63
|
+
}, this);
|
|
56
64
|
}, [
|
|
57
65
|
Collapsible,
|
|
58
66
|
fieldHasErrors,
|
|
59
67
|
errorCount
|
|
60
68
|
]);
|
|
61
|
-
return CustomBlock ?
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
return CustomBlock ? /*#__PURE__*/ _jsxDEV(BlockComponentContext, {
|
|
70
|
+
value: {
|
|
71
|
+
...contextProps,
|
|
72
|
+
BlockCollapsible: CollapsibleWithErrorProps
|
|
73
|
+
},
|
|
74
|
+
children: [
|
|
75
|
+
CustomBlock,
|
|
76
|
+
/*#__PURE__*/ _jsxDEV(BlockDrawer, {}, void 0, false, {
|
|
77
|
+
fileName: "src/features/blocks/client/component/BlockContent.tsx",
|
|
78
|
+
lineNumber: 125,
|
|
79
|
+
columnNumber: 7
|
|
80
|
+
}, this)
|
|
81
|
+
]
|
|
82
|
+
}, void 0, true, {
|
|
83
|
+
fileName: "src/features/blocks/client/component/BlockContent.tsx",
|
|
84
|
+
lineNumber: 118,
|
|
85
|
+
columnNumber: 5
|
|
86
|
+
}, this) : /*#__PURE__*/ _jsxDEV(CollapsibleWithErrorProps, {
|
|
87
|
+
children: /*#__PURE__*/ _jsxDEV(RenderFields, {
|
|
88
|
+
fields: formSchema,
|
|
89
|
+
forceRender: true,
|
|
90
|
+
parentIndexPath: "",
|
|
91
|
+
parentPath: '',
|
|
92
|
+
parentSchemaPath: "",
|
|
93
|
+
permissions: true,
|
|
94
|
+
readOnly: !isEditable
|
|
95
|
+
}, void 0, false, {
|
|
96
|
+
fileName: "src/features/blocks/client/component/BlockContent.tsx",
|
|
97
|
+
lineNumber: 129,
|
|
98
|
+
columnNumber: 7
|
|
99
|
+
}, this)
|
|
100
|
+
}, void 0, false, {
|
|
101
|
+
fileName: "src/features/blocks/client/component/BlockContent.tsx",
|
|
102
|
+
lineNumber: 128,
|
|
103
|
+
columnNumber: 5
|
|
104
|
+
}, this);
|
|
70
105
|
};
|
|
71
106
|
|
|
72
107
|
//# sourceMappingURL=BlockContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/features/blocks/client/component/BlockContent.tsx"],"sourcesContent":["'use client'\nimport type { CollapsibleProps } from '@payloadcms/ui/elements/Collapsible'\nimport type { ClientField, FormState } from 'payload'\n\nimport { useLexicalEditable } from '@lexical/react/useLexicalEditable'\nimport { RenderFields, useFormSubmitted } from '@payloadcms/ui'\nimport React, { createContext, useMemo } from 'react'\n\nexport type BlockCollapsibleProps = {\n /**\n * Replace the top-right portion of the header that renders the Edit and Remove buttons with custom content.\n * If this property is provided, the `removeButton` and `editButton` properties are ignored.\n */\n Actions?: React.ReactNode\n children?: React.ReactNode\n /**\n * Additional className to the collapsible wrapper\n */\n className?: string\n /**\n * Props to pass to the underlying Collapsible component. You could use this to override the `Header` entirely, for example.\n */\n collapsibleProps?: Partial<CollapsibleProps>\n /**\n * Whether to disable rendering the block name field in the header Label\n * @default false\n */\n disableBlockName?: boolean\n /**\n * Whether to show the Edit button\n * If `Actions` is provided, this property is ignored.\n * @default true\n */\n editButton?: boolean\n /**\n * Replace the default Label component with a custom Label\n */\n Label?: React.ReactNode\n /**\n * Replace the default Pill component component that's rendered within the default Label component with a custom Pill.\n * This property has no effect if you provide a custom Label component via the `Label` property.\n */\n Pill?: React.ReactNode\n /**\n * Whether to show the Remove button\n * If `Actions` is provided, this property is ignored.\n * @default true\n */\n removeButton?: boolean\n}\n\nexport type BlockCollapsibleWithErrorProps = {\n errorCount?: number\n fieldHasErrors?: boolean\n} & BlockCollapsibleProps\n\nexport type BlockContentProps = {\n baseClass: string\n BlockDrawer: React.FC\n Collapsible: React.FC<BlockCollapsibleWithErrorProps>\n CustomBlock: React.ReactNode\n EditButton: React.FC\n errorCount: number\n formSchema: ClientField[]\n initialState: false | FormState | undefined\n\n nodeKey: string\n RemoveButton: React.FC\n}\n\ntype BlockComponentContextType = {\n BlockCollapsible: React.FC<BlockCollapsibleProps>\n} & Omit<BlockContentProps, 'Collapsible'>\n\nconst BlockComponentContext = createContext<BlockComponentContextType>({\n baseClass: 'LexicalEditorTheme__block',\n BlockCollapsible: () => null,\n BlockDrawer: () => null,\n CustomBlock: null,\n EditButton: () => null,\n errorCount: 0,\n formSchema: [],\n initialState: false,\n nodeKey: '',\n RemoveButton: () => null,\n})\n\nexport const useBlockComponentContext = () => React.use(BlockComponentContext)\n\n/**\n * The actual content of the Block. This should be INSIDE a Form component,\n * scoped to the block. All format operations in here are thus scoped to the block's form, and\n * not the whole document.\n */\nexport const BlockContent: React.FC<BlockContentProps> = (props) => {\n const { Collapsible, ...contextProps } = props\n\n const { BlockDrawer, CustomBlock, errorCount, formSchema } = contextProps\n\n const hasSubmitted = useFormSubmitted()\n\n const fieldHasErrors = hasSubmitted && errorCount > 0\n const isEditable = useLexicalEditable()\n\n const CollapsibleWithErrorProps = useMemo(\n () => (props: BlockCollapsibleProps) => {\n const { children, ...rest } = props\n return (\n <Collapsible errorCount={errorCount} fieldHasErrors={fieldHasErrors} {...rest}>\n {children}\n </Collapsible>\n )\n },\n [Collapsible, fieldHasErrors, errorCount],\n )\n\n return CustomBlock ? (\n <BlockComponentContext\n value={{\n ...contextProps,\n BlockCollapsible: CollapsibleWithErrorProps,\n }}\n >\n {CustomBlock}\n <BlockDrawer />\n </BlockComponentContext>\n ) : (\n <CollapsibleWithErrorProps>\n <RenderFields\n fields={formSchema}\n forceRender={true}\n parentIndexPath=\"\"\n parentPath={''}\n parentSchemaPath=\"\"\n permissions={true}\n readOnly={!isEditable}\n />\n </CollapsibleWithErrorProps>\n )\n}\n"],"names":["useLexicalEditable","RenderFields","useFormSubmitted","React","createContext","useMemo","BlockComponentContext","baseClass","BlockCollapsible","BlockDrawer","CustomBlock","EditButton","errorCount","formSchema","initialState","nodeKey","RemoveButton","useBlockComponentContext","use","BlockContent","props","Collapsible","contextProps","hasSubmitted","fieldHasErrors","isEditable","CollapsibleWithErrorProps","children","rest","value","fields","forceRender","parentIndexPath","parentPath","parentSchemaPath","permissions","readOnly"],"mappings":"AAAA
|
|
1
|
+
{"version":3,"sources":["../../../../../src/features/blocks/client/component/BlockContent.tsx"],"sourcesContent":["'use client'\nimport type { CollapsibleProps } from '@payloadcms/ui/elements/Collapsible'\nimport type { ClientField, FormState } from 'payload'\n\nimport { useLexicalEditable } from '@lexical/react/useLexicalEditable'\nimport { RenderFields, useFormSubmitted } from '@payloadcms/ui'\nimport React, { createContext, useMemo } from 'react'\n\nexport type BlockCollapsibleProps = {\n /**\n * Replace the top-right portion of the header that renders the Edit and Remove buttons with custom content.\n * If this property is provided, the `removeButton` and `editButton` properties are ignored.\n */\n Actions?: React.ReactNode\n children?: React.ReactNode\n /**\n * Additional className to the collapsible wrapper\n */\n className?: string\n /**\n * Props to pass to the underlying Collapsible component. You could use this to override the `Header` entirely, for example.\n */\n collapsibleProps?: Partial<CollapsibleProps>\n /**\n * Whether to disable rendering the block name field in the header Label\n * @default false\n */\n disableBlockName?: boolean\n /**\n * Whether to show the Edit button\n * If `Actions` is provided, this property is ignored.\n * @default true\n */\n editButton?: boolean\n /**\n * Replace the default Label component with a custom Label\n */\n Label?: React.ReactNode\n /**\n * Replace the default Pill component component that's rendered within the default Label component with a custom Pill.\n * This property has no effect if you provide a custom Label component via the `Label` property.\n */\n Pill?: React.ReactNode\n /**\n * Whether to show the Remove button\n * If `Actions` is provided, this property is ignored.\n * @default true\n */\n removeButton?: boolean\n}\n\nexport type BlockCollapsibleWithErrorProps = {\n errorCount?: number\n fieldHasErrors?: boolean\n} & BlockCollapsibleProps\n\nexport type BlockContentProps = {\n baseClass: string\n BlockDrawer: React.FC\n Collapsible: React.FC<BlockCollapsibleWithErrorProps>\n CustomBlock: React.ReactNode\n EditButton: React.FC\n errorCount: number\n formSchema: ClientField[]\n initialState: false | FormState | undefined\n\n nodeKey: string\n RemoveButton: React.FC\n}\n\ntype BlockComponentContextType = {\n BlockCollapsible: React.FC<BlockCollapsibleProps>\n} & Omit<BlockContentProps, 'Collapsible'>\n\nconst BlockComponentContext = createContext<BlockComponentContextType>({\n baseClass: 'LexicalEditorTheme__block',\n BlockCollapsible: () => null,\n BlockDrawer: () => null,\n CustomBlock: null,\n EditButton: () => null,\n errorCount: 0,\n formSchema: [],\n initialState: false,\n nodeKey: '',\n RemoveButton: () => null,\n})\n\nexport const useBlockComponentContext = () => React.use(BlockComponentContext)\n\n/**\n * The actual content of the Block. This should be INSIDE a Form component,\n * scoped to the block. All format operations in here are thus scoped to the block's form, and\n * not the whole document.\n */\nexport const BlockContent: React.FC<BlockContentProps> = (props) => {\n const { Collapsible, ...contextProps } = props\n\n const { BlockDrawer, CustomBlock, errorCount, formSchema } = contextProps\n\n const hasSubmitted = useFormSubmitted()\n\n const fieldHasErrors = hasSubmitted && errorCount > 0\n const isEditable = useLexicalEditable()\n\n const CollapsibleWithErrorProps = useMemo(\n () => (props: BlockCollapsibleProps) => {\n const { children, ...rest } = props\n return (\n <Collapsible errorCount={errorCount} fieldHasErrors={fieldHasErrors} {...rest}>\n {children}\n </Collapsible>\n )\n },\n [Collapsible, fieldHasErrors, errorCount],\n )\n\n return CustomBlock ? (\n <BlockComponentContext\n value={{\n ...contextProps,\n BlockCollapsible: CollapsibleWithErrorProps,\n }}\n >\n {CustomBlock}\n <BlockDrawer />\n </BlockComponentContext>\n ) : (\n <CollapsibleWithErrorProps>\n <RenderFields\n fields={formSchema}\n forceRender={true}\n parentIndexPath=\"\"\n parentPath={''}\n parentSchemaPath=\"\"\n permissions={true}\n readOnly={!isEditable}\n />\n </CollapsibleWithErrorProps>\n )\n}\n"],"names":["useLexicalEditable","RenderFields","useFormSubmitted","React","createContext","useMemo","BlockComponentContext","baseClass","BlockCollapsible","BlockDrawer","CustomBlock","EditButton","errorCount","formSchema","initialState","nodeKey","RemoveButton","useBlockComponentContext","use","BlockContent","props","Collapsible","contextProps","hasSubmitted","fieldHasErrors","isEditable","CollapsibleWithErrorProps","children","rest","value","fields","forceRender","parentIndexPath","parentPath","parentSchemaPath","permissions","readOnly"],"mappings":"AAAA;;AAIA,SAASA,kBAAkB,QAAQ,oCAAmC;AACtE,SAASC,YAAY,EAAEC,gBAAgB,QAAQ,iBAAgB;AAC/D,OAAOC,SAASC,aAAa,EAAEC,OAAO,QAAQ,QAAO;AAGnD;;;GAGC,GAGD;;GAEC,GAED;;GAEC,GAED;;;GAGC,GAED;;;;GAIC,GAED;;GAEC,GAED;;;GAGC,GAED;;;;GAIC,GA2BH,MAAMC,sCAAwBF,cAAyC;IACrEG,WAAW;IACXC,kBAAkB,IAAM;IACxBC,aAAa,IAAM;IACnBC,aAAa;IACbC,YAAY,IAAM;IAClBC,YAAY;IACZC,YAAY,EAAE;IACdC,cAAc;IACdC,SAAS;IACTC,cAAc,IAAM;AACtB;AAEA,OAAO,MAAMC,2BAA2B,IAAMd,MAAMe,GAAG,CAACZ,uBAAsB;AAE9E;;;;CAIC,GACD,OAAO,MAAMa,eAA4C,CAACC;IACxD,MAAM,EAAEC,WAAW,EAAE,GAAGC,cAAc,GAAGF;IAEzC,MAAM,EAAEX,WAAW,EAAEC,WAAW,EAAEE,UAAU,EAAEC,UAAU,EAAE,GAAGS;IAE7D,MAAMC,eAAerB;IAErB,MAAMsB,iBAAiBD,gBAAgBX,aAAa;IACpD,MAAMa,aAAazB;IAEnB,MAAM0B,4BAA4BrB,QAChC,IAAM,CAACe;YACL,MAAM,EAAEO,QAAQ,EAAE,GAAGC,MAAM,GAAGR;YAC9B,qBACE,QAACC;gBAAYT,YAAYA;gBAAYY,gBAAgBA;gBAAiB,GAAGI,IAAI;0BAC1ED;;;;;;QAGP,GACA;QAACN;QAAaG;QAAgBZ;KAAW;IAG3C,OAAOF,4BACL,QAACJ;QACCuB,OAAO;YACL,GAAGP,YAAY;YACfd,kBAAkBkB;QACpB;;YAEChB;0BACD,QAACD;;;;;;;;;;6BAGH,QAACiB;kBACC,cAAA,QAACzB;YACC6B,QAAQjB;YACRkB,aAAa;YACbC,iBAAgB;YAChBC,YAAY;YACZC,kBAAiB;YACjBC,aAAa;YACbC,UAAU,CAACX;;;;;;;;;;;AAInB,EAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
3
|
+
import React from 'react';
|
|
2
4
|
import { useBlockComponentContext } from '../BlockContent.js';
|
|
3
5
|
export const BlockCollapsible = (props)=>{
|
|
4
6
|
const { children, ...rest } = props;
|
|
5
7
|
const { BlockCollapsible } = useBlockComponentContext();
|
|
6
|
-
return BlockCollapsible ?
|
|
8
|
+
return BlockCollapsible ? /*#__PURE__*/ _jsxDEV(BlockCollapsible, {
|
|
9
|
+
...rest,
|
|
10
|
+
children: children
|
|
11
|
+
}, void 0, false, {
|
|
12
|
+
fileName: "src/features/blocks/client/component/components/BlockCollapsible.tsx",
|
|
13
|
+
lineNumber: 10,
|
|
14
|
+
columnNumber: 29
|
|
15
|
+
}, this) : null;
|
|
7
16
|
};
|
|
8
17
|
|
|
9
18
|
//# sourceMappingURL=BlockCollapsible.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockCollapsible.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { type BlockCollapsibleProps, useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockCollapsible: React.FC<BlockCollapsibleProps> = (props) => {\n const { children, ...rest } = props\n const { BlockCollapsible } = useBlockComponentContext()\n\n return BlockCollapsible ? <BlockCollapsible {...rest}>{children}</BlockCollapsible> : null\n}\n"],"names":["useBlockComponentContext","BlockCollapsible","props","children","rest"],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockCollapsible.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { type BlockCollapsibleProps, useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockCollapsible: React.FC<BlockCollapsibleProps> = (props) => {\n const { children, ...rest } = props\n const { BlockCollapsible } = useBlockComponentContext()\n\n return BlockCollapsible ? <BlockCollapsible {...rest}>{children}</BlockCollapsible> : null\n}\n"],"names":["React","useBlockComponentContext","BlockCollapsible","props","children","rest"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,SAAqCC,wBAAwB,QAAQ,qBAAoB;AAEzF,OAAO,MAAMC,mBAAoD,CAACC;IAChE,MAAM,EAAEC,QAAQ,EAAE,GAAGC,MAAM,GAAGF;IAC9B,MAAM,EAAED,gBAAgB,EAAE,GAAGD;IAE7B,OAAOC,iCAAmB,QAACA;QAAkB,GAAGG,IAAI;kBAAGD;;;;;eAA+B;AACxF,EAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
3
|
+
import React from 'react';
|
|
2
4
|
import { useBlockComponentContext } from '../BlockContent.js';
|
|
3
5
|
export const BlockEditButton = ()=>{
|
|
4
6
|
const { EditButton } = useBlockComponentContext();
|
|
5
|
-
return EditButton ?
|
|
7
|
+
return EditButton ? /*#__PURE__*/ _jsxDEV(EditButton, {}, void 0, false, {
|
|
8
|
+
fileName: "src/features/blocks/client/component/components/BlockEditButton.tsx",
|
|
9
|
+
lineNumber: 9,
|
|
10
|
+
columnNumber: 23
|
|
11
|
+
}, this) : null;
|
|
6
12
|
};
|
|
7
13
|
|
|
8
14
|
//# sourceMappingURL=BlockEditButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockEditButton.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockEditButton = () => {\n const { EditButton } = useBlockComponentContext()\n\n return EditButton ? <EditButton /> : null\n}\n"],"names":["useBlockComponentContext","BlockEditButton","EditButton"],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockEditButton.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockEditButton = () => {\n const { EditButton } = useBlockComponentContext()\n\n return EditButton ? <EditButton /> : null\n}\n"],"names":["React","useBlockComponentContext","BlockEditButton","EditButton"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,SAASC,wBAAwB,QAAQ,qBAAoB;AAE7D,OAAO,MAAMC,kBAAkB;IAC7B,MAAM,EAAEC,UAAU,EAAE,GAAGF;IAEvB,OAAOE,2BAAa,QAACA;;;;eAAgB;AACvC,EAAC"}
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
|
|
3
|
+
import React from 'react';
|
|
2
4
|
import { useBlockComponentContext } from '../BlockContent.js';
|
|
3
5
|
export const BlockRemoveButton = ()=>{
|
|
4
6
|
const { RemoveButton } = useBlockComponentContext();
|
|
5
|
-
return RemoveButton ?
|
|
7
|
+
return RemoveButton ? /*#__PURE__*/ _jsxDEV(RemoveButton, {}, void 0, false, {
|
|
8
|
+
fileName: "src/features/blocks/client/component/components/BlockRemoveButton.tsx",
|
|
9
|
+
lineNumber: 9,
|
|
10
|
+
columnNumber: 25
|
|
11
|
+
}, this) : null;
|
|
6
12
|
};
|
|
7
13
|
|
|
8
14
|
//# sourceMappingURL=BlockRemoveButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockRemoveButton.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockRemoveButton = () => {\n const { RemoveButton } = useBlockComponentContext()\n\n return RemoveButton ? <RemoveButton /> : null\n}\n"],"names":["useBlockComponentContext","BlockRemoveButton","RemoveButton"],"mappings":"AAAA;
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/features/blocks/client/component/components/BlockRemoveButton.tsx"],"sourcesContent":["'use client'\nimport React from 'react'\n\nimport { useBlockComponentContext } from '../BlockContent.js'\n\nexport const BlockRemoveButton = () => {\n const { RemoveButton } = useBlockComponentContext()\n\n return RemoveButton ? <RemoveButton /> : null\n}\n"],"names":["React","useBlockComponentContext","BlockRemoveButton","RemoveButton"],"mappings":"AAAA;;AACA,OAAOA,WAAW,QAAO;AAEzB,SAASC,wBAAwB,QAAQ,qBAAoB;AAE7D,OAAO,MAAMC,oBAAoB;IAC/B,MAAM,EAAEC,YAAY,EAAE,GAAGF;IAEzB,OAAOE,6BAAe,QAACA;;;;eAAkB;AAC3C,EAAC"}
|