@payloadcms/richtext-lexical 3.0.0-beta.85 → 3.0.0-beta.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cell/index.d.ts +2 -2
- package/dist/cell/index.d.ts.map +1 -1
- package/dist/cell/index.js +117 -127
- package/dist/cell/index.js.map +1 -1
- package/dist/exports/client/Component-DOSSWC76.js +2 -0
- package/dist/exports/client/Component-DOSSWC76.js.map +7 -0
- package/dist/exports/client/Component-MBLHTKDK.js +2 -0
- package/dist/exports/client/Component-MBLHTKDK.js.map +7 -0
- package/dist/exports/client/Field-63NGLPJB.js +2 -0
- package/dist/exports/client/Field-63NGLPJB.js.map +7 -0
- package/dist/exports/client/RelationshipComponent-3QWBV4GT.js +2 -0
- package/dist/exports/client/RelationshipComponent-3QWBV4GT.js.map +7 -0
- package/dist/exports/client/bundled.css +1 -1
- package/dist/exports/client/chunk-G5DTIOPI.js +2 -0
- package/dist/exports/client/chunk-G5DTIOPI.js.map +7 -0
- package/dist/exports/client/chunk-LGUXX2QH.js +2 -0
- package/dist/exports/client/chunk-LGUXX2QH.js.map +7 -0
- package/dist/exports/client/chunk-NI6Z4GBD.js +2 -0
- package/dist/exports/client/{chunk-SQHN3N6E.js.map → chunk-NI6Z4GBD.js.map} +2 -2
- package/dist/exports/client/chunk-OKMIHD2R.js +2 -0
- package/dist/exports/client/chunk-OKMIHD2R.js.map +7 -0
- package/dist/exports/client/chunk-TO2W7Q2G.js +2 -0
- package/dist/exports/client/chunk-TO2W7Q2G.js.map +7 -0
- package/dist/exports/client/chunk-V2LKLT2F.js +3 -0
- package/dist/exports/client/chunk-V2LKLT2F.js.map +7 -0
- package/dist/exports/client/component-3OFD6Q4Z.js +2 -0
- package/dist/exports/client/component-3OFD6Q4Z.js.map +7 -0
- package/dist/exports/client/component-LCAAX56T.js +2 -0
- package/dist/exports/client/component-LCAAX56T.js.map +7 -0
- package/dist/exports/client/component-LLWMZU6K.js +2 -0
- package/dist/exports/client/component-LLWMZU6K.js.map +7 -0
- package/dist/exports/client/componentInline-72VZAAHP.js +2 -0
- package/dist/exports/client/componentInline-72VZAAHP.js.map +7 -0
- package/dist/exports/client/index.js +9 -9
- package/dist/exports/client/index.js.map +3 -3
- package/dist/exports/server/migrate.js +0 -1
- package/dist/exports/server/migrate.js.map +1 -1
- package/dist/features/align/client/index.js +151 -134
- package/dist/features/align/client/index.js.map +1 -1
- package/dist/features/align/client/toolbarAlignGroup.d.ts.map +1 -1
- package/dist/features/align/client/toolbarAlignGroup.js +10 -9
- package/dist/features/align/client/toolbarAlignGroup.js.map +1 -1
- package/dist/features/align/server/i18n.js +192 -193
- package/dist/features/align/server/i18n.js.map +1 -1
- package/dist/features/align/server/index.js +5 -6
- package/dist/features/align/server/index.js.map +1 -1
- package/dist/features/blockquote/client/index.js +60 -65
- package/dist/features/blockquote/client/index.js.map +1 -1
- package/dist/features/blockquote/markdownTransformer.js +28 -34
- package/dist/features/blockquote/markdownTransformer.js.map +1 -1
- package/dist/features/blockquote/server/i18n.js +96 -97
- package/dist/features/blockquote/server/i18n.js.map +1 -1
- package/dist/features/blockquote/server/index.js +38 -37
- package/dist/features/blockquote/server/index.js.map +1 -1
- package/dist/features/blocks/client/component/BlockContent.d.ts.map +1 -1
- package/dist/features/blocks/client/component/BlockContent.js +166 -172
- package/dist/features/blocks/client/component/BlockContent.js.map +1 -1
- package/dist/features/blocks/client/component/FormSavePlugin.d.ts.map +1 -1
- package/dist/features/blocks/client/component/FormSavePlugin.js +46 -22
- package/dist/features/blocks/client/component/FormSavePlugin.js.map +1 -1
- package/dist/features/blocks/client/component/index.js +130 -142
- package/dist/features/blocks/client/component/index.js.map +1 -1
- package/dist/features/blocks/client/component/removeEmptyArrayValues.d.ts.map +1 -1
- package/dist/features/blocks/client/component/removeEmptyArrayValues.js +12 -8
- package/dist/features/blocks/client/component/removeEmptyArrayValues.js.map +1 -1
- package/dist/features/blocks/client/componentInline/index.js +106 -122
- package/dist/features/blocks/client/componentInline/index.js.map +1 -1
- package/dist/features/blocks/client/index.js +149 -142
- package/dist/features/blocks/client/index.js.map +1 -1
- package/dist/features/blocks/client/nodes/BlocksNode.d.ts.map +1 -1
- package/dist/features/blocks/client/nodes/BlocksNode.js +41 -40
- package/dist/features/blocks/client/nodes/BlocksNode.js.map +1 -1
- package/dist/features/blocks/client/nodes/InlineBlocksNode.d.ts.map +1 -1
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js +31 -30
- package/dist/features/blocks/client/nodes/InlineBlocksNode.js.map +1 -1
- package/dist/features/blocks/client/plugin/commands.d.ts.map +1 -1
- package/dist/features/blocks/client/plugin/commands.js +2 -1
- package/dist/features/blocks/client/plugin/commands.js.map +1 -1
- package/dist/features/blocks/client/plugin/index.js +179 -106
- package/dist/features/blocks/client/plugin/index.js.map +1 -1
- package/dist/features/blocks/server/graphQLPopulationPromise.js +41 -28
- package/dist/features/blocks/server/graphQLPopulationPromise.js.map +1 -1
- package/dist/features/blocks/server/i18n.js +288 -289
- package/dist/features/blocks/server/i18n.js.map +1 -1
- package/dist/features/blocks/server/index.js +149 -151
- package/dist/features/blocks/server/index.js.map +1 -1
- package/dist/features/blocks/server/nodes/BlocksNode.js +76 -73
- package/dist/features/blocks/server/nodes/BlocksNode.js.map +1 -1
- package/dist/features/blocks/server/nodes/InlineBlocksNode.js +78 -76
- package/dist/features/blocks/server/nodes/InlineBlocksNode.js.map +1 -1
- package/dist/features/blocks/server/validate.js +45 -34
- package/dist/features/blocks/server/validate.js.map +1 -1
- package/dist/features/converters/html/converter/converters/linebreak.js +4 -7
- package/dist/features/converters/html/converter/converters/linebreak.js.map +1 -1
- package/dist/features/converters/html/converter/converters/paragraph.js +24 -19
- package/dist/features/converters/html/converter/converters/paragraph.js.map +1 -1
- package/dist/features/converters/html/converter/converters/text.js +28 -29
- package/dist/features/converters/html/converter/converters/text.js.map +1 -1
- package/dist/features/converters/html/converter/defaultConverters.js +1 -6
- package/dist/features/converters/html/converter/defaultConverters.js.map +1 -1
- package/dist/features/converters/html/converter/index.js +66 -51
- package/dist/features/converters/html/converter/index.js.map +1 -1
- package/dist/features/converters/html/converter/types.js +1 -2
- package/dist/features/converters/html/converter/types.js.map +1 -1
- package/dist/features/converters/html/field/index.js +134 -139
- package/dist/features/converters/html/field/index.js.map +1 -1
- package/dist/features/converters/html/index.js +2 -3
- package/dist/features/converters/html/index.js.map +1 -1
- package/dist/features/createClientComponent.js +7 -6
- package/dist/features/createClientComponent.js.map +1 -1
- package/dist/features/createFeaturePropComponent.js +14 -13
- package/dist/features/createFeaturePropComponent.js.map +1 -1
- package/dist/features/debug/testRecorder/client/index.js +5 -7
- package/dist/features/debug/testRecorder/client/index.js.map +1 -1
- package/dist/features/debug/testRecorder/client/plugin/index.js +518 -402
- package/dist/features/debug/testRecorder/client/plugin/index.js.map +1 -1
- package/dist/features/debug/testRecorder/server/index.js +4 -5
- package/dist/features/debug/testRecorder/server/index.js.map +1 -1
- package/dist/features/debug/treeView/client/index.js +5 -7
- package/dist/features/debug/treeView/client/index.js.map +1 -1
- package/dist/features/debug/treeView/client/plugin/index.js +21 -11
- package/dist/features/debug/treeView/client/plugin/index.js.map +1 -1
- package/dist/features/debug/treeView/server/index.js +4 -5
- package/dist/features/debug/treeView/server/index.js.map +1 -1
- package/dist/features/experimental_table/client/index.js +41 -58
- package/dist/features/experimental_table/client/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js +714 -560
- package/dist/features/experimental_table/client/plugins/TableActionMenuPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js +295 -301
- package/dist/features/experimental_table/client/plugins/TableCellResizerPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts +0 -7
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.d.ts.map +1 -1
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js +228 -159
- package/dist/features/experimental_table/client/plugins/TableHoverActionsPlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.d.ts.map +1 -1
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js +129 -82
- package/dist/features/experimental_table/client/plugins/TablePlugin/index.js.map +1 -1
- package/dist/features/experimental_table/client/utils/debounce.d.ts.map +1 -1
- package/dist/features/experimental_table/client/utils/debounce.js +108 -89
- package/dist/features/experimental_table/client/utils/debounce.js.map +1 -1
- package/dist/features/experimental_table/client/utils/useDebounce.d.ts.map +1 -1
- package/dist/features/experimental_table/client/utils/useDebounce.js +11 -13
- package/dist/features/experimental_table/client/utils/useDebounce.js.map +1 -1
- package/dist/features/experimental_table/server/index.js +127 -114
- package/dist/features/experimental_table/server/index.js.map +1 -1
- package/dist/features/format/bold/feature.client.js +34 -35
- package/dist/features/format/bold/feature.client.js.map +1 -1
- package/dist/features/format/bold/feature.server.js +14 -18
- package/dist/features/format/bold/feature.server.js.map +1 -1
- package/dist/features/format/bold/markdownTransformers.js +14 -25
- package/dist/features/format/bold/markdownTransformers.js.map +1 -1
- package/dist/features/format/inlineCode/feature.client.js +26 -28
- package/dist/features/format/inlineCode/feature.client.js.map +1 -1
- package/dist/features/format/inlineCode/feature.server.js +5 -8
- package/dist/features/format/inlineCode/feature.server.js.map +1 -1
- package/dist/features/format/inlineCode/markdownTransformers.js +3 -6
- package/dist/features/format/inlineCode/markdownTransformers.js.map +1 -1
- package/dist/features/format/italic/feature.client.js +26 -29
- package/dist/features/format/italic/feature.client.js.map +1 -1
- package/dist/features/format/italic/feature.server.js +5 -9
- package/dist/features/format/italic/feature.server.js.map +1 -1
- package/dist/features/format/italic/markdownTransformers.js +7 -12
- package/dist/features/format/italic/markdownTransformers.js.map +1 -1
- package/dist/features/format/shared/toolbarFormatGroup.d.ts.map +1 -1
- package/dist/features/format/shared/toolbarFormatGroup.js +9 -8
- package/dist/features/format/shared/toolbarFormatGroup.js.map +1 -1
- package/dist/features/format/strikethrough/feature.client.js +26 -28
- package/dist/features/format/strikethrough/feature.client.js.map +1 -1
- package/dist/features/format/strikethrough/feature.server.js +5 -8
- package/dist/features/format/strikethrough/feature.server.js.map +1 -1
- package/dist/features/format/strikethrough/markdownTransformers.js +3 -6
- package/dist/features/format/strikethrough/markdownTransformers.js.map +1 -1
- package/dist/features/format/subscript/feature.client.js +25 -25
- package/dist/features/format/subscript/feature.client.js.map +1 -1
- package/dist/features/format/subscript/feature.server.js +4 -5
- package/dist/features/format/subscript/feature.server.js.map +1 -1
- package/dist/features/format/superscript/feature.client.js +25 -25
- package/dist/features/format/superscript/feature.client.js.map +1 -1
- package/dist/features/format/superscript/feature.server.js +4 -5
- package/dist/features/format/superscript/feature.server.js.map +1 -1
- package/dist/features/format/underline/feature.client.js +25 -25
- package/dist/features/format/underline/feature.client.js.map +1 -1
- package/dist/features/format/underline/feature.server.js +4 -5
- package/dist/features/format/underline/feature.server.js.map +1 -1
- package/dist/features/heading/client/index.js +86 -90
- package/dist/features/heading/client/index.js.map +1 -1
- package/dist/features/heading/markdownTransformer.js +22 -25
- package/dist/features/heading/markdownTransformer.js.map +1 -1
- package/dist/features/heading/server/i18n.js +96 -97
- package/dist/features/heading/server/i18n.js.map +1 -1
- package/dist/features/heading/server/index.js +49 -51
- package/dist/features/heading/server/index.js.map +1 -1
- package/dist/features/horizontalRule/client/component/index.js +81 -51
- package/dist/features/horizontalRule/client/component/index.js.map +1 -1
- package/dist/features/horizontalRule/client/index.js +48 -57
- package/dist/features/horizontalRule/client/index.js.map +1 -1
- package/dist/features/horizontalRule/client/markdownTransformer.js +15 -18
- package/dist/features/horizontalRule/client/markdownTransformer.js.map +1 -1
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.d.ts.map +1 -1
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js +33 -30
- package/dist/features/horizontalRule/client/nodes/HorizontalRuleNode.js.map +1 -1
- package/dist/features/horizontalRule/client/plugin/index.js +31 -20
- package/dist/features/horizontalRule/client/plugin/index.js.map +1 -1
- package/dist/features/horizontalRule/server/i18n.js +96 -97
- package/dist/features/horizontalRule/server/i18n.js.map +1 -1
- package/dist/features/horizontalRule/server/index.js +17 -24
- package/dist/features/horizontalRule/server/index.js.map +1 -1
- package/dist/features/horizontalRule/server/markdownTransformer.js +15 -18
- package/dist/features/horizontalRule/server/markdownTransformer.js.map +1 -1
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js +71 -66
- package/dist/features/horizontalRule/server/nodes/HorizontalRuleNode.js.map +1 -1
- package/dist/features/indent/client/index.js +52 -47
- package/dist/features/indent/client/index.js.map +1 -1
- package/dist/features/indent/client/toolbarIndentGroup.d.ts.map +1 -1
- package/dist/features/indent/client/toolbarIndentGroup.js +9 -8
- package/dist/features/indent/client/toolbarIndentGroup.js.map +1 -1
- package/dist/features/indent/server/i18n.js +128 -129
- package/dist/features/indent/server/i18n.js.map +1 -1
- package/dist/features/indent/server/index.js +5 -6
- package/dist/features/indent/server/index.js.map +1 -1
- package/dist/features/link/client/index.js +78 -83
- package/dist/features/link/client/index.js.map +1 -1
- package/dist/features/link/client/plugins/autoLink/index.js +267 -271
- package/dist/features/link/client/plugins/autoLink/index.js.map +1 -1
- package/dist/features/link/client/plugins/clickableLink/index.js +3 -3
- package/dist/features/link/client/plugins/clickableLink/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.d.ts.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js +2 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/commands.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js +254 -276
- package/dist/features/link/client/plugins/floatingLinkEditor/LinkEditor/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js +8 -6
- package/dist/features/link/client/plugins/floatingLinkEditor/index.js.map +1 -1
- package/dist/features/link/client/plugins/floatingLinkEditor/types.js +1 -2
- package/dist/features/link/client/plugins/floatingLinkEditor/types.js.map +1 -1
- package/dist/features/link/client/plugins/link/index.js +50 -41
- package/dist/features/link/client/plugins/link/index.js.map +1 -1
- package/dist/features/link/markdownTransformer.js +38 -39
- package/dist/features/link/markdownTransformer.js.map +1 -1
- package/dist/features/link/nodes/AutoLinkNode.js +57 -56
- package/dist/features/link/nodes/AutoLinkNode.js.map +1 -1
- package/dist/features/link/nodes/LinkNode.js +277 -276
- package/dist/features/link/nodes/LinkNode.js.map +1 -1
- package/dist/features/link/nodes/types.js +1 -2
- package/dist/features/link/nodes/types.js.map +1 -1
- package/dist/features/link/server/baseFields.js +118 -88
- package/dist/features/link/server/baseFields.js.map +1 -1
- package/dist/features/link/server/graphQLPopulationPromise.js +42 -28
- package/dist/features/link/server/graphQLPopulationPromise.js.map +1 -1
- package/dist/features/link/server/i18n.js +96 -97
- package/dist/features/link/server/i18n.js.map +1 -1
- package/dist/features/link/server/index.js +120 -114
- package/dist/features/link/server/index.js.map +1 -1
- package/dist/features/link/server/transformExtraFields.js +15 -15
- package/dist/features/link/server/transformExtraFields.js.map +1 -1
- package/dist/features/link/server/validate.js +37 -26
- package/dist/features/link/server/validate.js.map +1 -1
- package/dist/features/lists/checklist/client/index.js +77 -85
- package/dist/features/lists/checklist/client/index.js.map +1 -1
- package/dist/features/lists/checklist/client/plugin/index.js +3 -3
- package/dist/features/lists/checklist/client/plugin/index.js.map +1 -1
- package/dist/features/lists/checklist/markdownTransformers.js +7 -11
- package/dist/features/lists/checklist/markdownTransformers.js.map +1 -1
- package/dist/features/lists/checklist/server/i18n.js +96 -97
- package/dist/features/lists/checklist/server/i18n.js.map +1 -1
- package/dist/features/lists/checklist/server/index.js +21 -25
- package/dist/features/lists/checklist/server/index.js.map +1 -1
- package/dist/features/lists/htmlConverter.js +54 -43
- package/dist/features/lists/htmlConverter.js.map +1 -1
- package/dist/features/lists/orderedList/client/index.js +71 -77
- package/dist/features/lists/orderedList/client/index.js.map +1 -1
- package/dist/features/lists/orderedList/markdownTransformer.js +7 -11
- package/dist/features/lists/orderedList/markdownTransformer.js.map +1 -1
- package/dist/features/lists/orderedList/server/i18n.js +96 -97
- package/dist/features/lists/orderedList/server/i18n.js.map +1 -1
- package/dist/features/lists/orderedList/server/index.js +21 -25
- package/dist/features/lists/orderedList/server/index.js.map +1 -1
- package/dist/features/lists/plugin/index.js +3 -3
- package/dist/features/lists/plugin/index.js.map +1 -1
- package/dist/features/lists/shared/markdown.js +48 -49
- package/dist/features/lists/shared/markdown.js.map +1 -1
- package/dist/features/lists/shared/slashMenuListGroup.js +9 -8
- package/dist/features/lists/shared/slashMenuListGroup.js.map +1 -1
- package/dist/features/lists/unorderedList/client/index.js +68 -76
- package/dist/features/lists/unorderedList/client/index.js.map +1 -1
- package/dist/features/lists/unorderedList/markdownTransformer.js +7 -11
- package/dist/features/lists/unorderedList/markdownTransformer.js.map +1 -1
- package/dist/features/lists/unorderedList/server/i18n.js +96 -97
- package/dist/features/lists/unorderedList/server/i18n.js.map +1 -1
- package/dist/features/lists/unorderedList/server/index.js +17 -23
- package/dist/features/lists/unorderedList/server/index.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js +18 -17
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/heading/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js +30 -29
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/link/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js +21 -20
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/list/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js +21 -19
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/listItem/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js +18 -17
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/quote/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js +24 -23
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/unknown/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js +20 -21
- package/dist/features/migrations/lexicalPluginToLexical/converter/converters/upload/converter.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js +1 -10
- package/dist/features/migrations/lexicalPluginToLexical/converter/defaultConverters.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js +69 -61
- package/dist/features/migrations/lexicalPluginToLexical/converter/index.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js +1 -2
- package/dist/features/migrations/lexicalPluginToLexical/converter/types.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js +5 -7
- package/dist/features/migrations/lexicalPluginToLexical/feature.client.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js +42 -43
- package/dist/features/migrations/lexicalPluginToLexical/feature.server.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js +11 -11
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js +64 -59
- package/dist/features/migrations/lexicalPluginToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js +19 -19
- package/dist/features/migrations/slateToLexical/converter/converters/blockquote/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js +20 -25
- package/dist/features/migrations/slateToLexical/converter/converters/heading/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js +28 -30
- package/dist/features/migrations/slateToLexical/converter/converters/indent/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js +26 -26
- package/dist/features/migrations/slateToLexical/converter/converters/link/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js +22 -21
- package/dist/features/migrations/slateToLexical/converter/converters/listItem/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js +22 -22
- package/dist/features/migrations/slateToLexical/converter/converters/orderedList/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js +12 -13
- package/dist/features/migrations/slateToLexical/converter/converters/relationship/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js +23 -23
- package/dist/features/migrations/slateToLexical/converter/converters/unknown/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js +22 -22
- package/dist/features/migrations/slateToLexical/converter/converters/unorderedList/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js +15 -16
- package/dist/features/migrations/slateToLexical/converter/converters/upload/converter.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js +1 -13
- package/dist/features/migrations/slateToLexical/converter/defaultConverters.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/index.js +105 -98
- package/dist/features/migrations/slateToLexical/converter/index.js.map +1 -1
- package/dist/features/migrations/slateToLexical/converter/types.js +1 -2
- package/dist/features/migrations/slateToLexical/converter/types.js.map +1 -1
- package/dist/features/migrations/slateToLexical/feature.client.js +7 -7
- package/dist/features/migrations/slateToLexical/feature.client.js.map +1 -1
- package/dist/features/migrations/slateToLexical/feature.server.js +43 -44
- package/dist/features/migrations/slateToLexical/feature.server.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.d.ts.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js +11 -11
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/Component.js.map +1 -1
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js +64 -59
- package/dist/features/migrations/slateToLexical/nodes/unknownConvertedNode/index.js.map +1 -1
- package/dist/features/paragraph/client/index.js +58 -61
- package/dist/features/paragraph/client/index.js.map +1 -1
- package/dist/features/paragraph/server/i18n.js +128 -129
- package/dist/features/paragraph/server/i18n.js.map +1 -1
- package/dist/features/paragraph/server/index.js +6 -7
- package/dist/features/paragraph/server/index.js.map +1 -1
- package/dist/features/relationship/client/components/RelationshipComponent.js +141 -149
- package/dist/features/relationship/client/components/RelationshipComponent.js.map +1 -1
- package/dist/features/relationship/client/drawer/commands.js +0 -1
- package/dist/features/relationship/client/drawer/commands.js.map +1 -1
- package/dist/features/relationship/client/drawer/index.js +138 -67
- package/dist/features/relationship/client/drawer/index.js.map +1 -1
- package/dist/features/relationship/client/index.js +53 -59
- package/dist/features/relationship/client/index.js.map +1 -1
- package/dist/features/relationship/client/nodes/RelationshipNode.d.ts.map +1 -1
- package/dist/features/relationship/client/nodes/RelationshipNode.js +60 -59
- package/dist/features/relationship/client/nodes/RelationshipNode.js.map +1 -1
- package/dist/features/relationship/client/plugins/index.js +90 -35
- package/dist/features/relationship/client/plugins/index.js.map +1 -1
- package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.d.ts.map +1 -1
- package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js +97 -26
- package/dist/features/relationship/client/utils/EnabledRelationshipsCondition.js.map +1 -1
- package/dist/features/relationship/server/graphQLPopulationPromise.js +34 -26
- package/dist/features/relationship/server/graphQLPopulationPromise.js.map +1 -1
- package/dist/features/relationship/server/i18n.js +96 -97
- package/dist/features/relationship/server/i18n.js.map +1 -1
- package/dist/features/relationship/server/index.js +48 -44
- package/dist/features/relationship/server/index.js.map +1 -1
- package/dist/features/relationship/server/nodes/RelationshipNode.js +90 -87
- package/dist/features/relationship/server/nodes/RelationshipNode.js.map +1 -1
- package/dist/features/shared/slashMenu/basicGroup.js +9 -8
- package/dist/features/shared/slashMenu/basicGroup.js.map +1 -1
- package/dist/features/shared/toolbar/addDropdownGroup.js +8 -9
- package/dist/features/shared/toolbar/addDropdownGroup.js.map +1 -1
- package/dist/features/shared/toolbar/featureButtonsGroup.js +7 -8
- package/dist/features/shared/toolbar/featureButtonsGroup.js.map +1 -1
- package/dist/features/shared/toolbar/textDropdownGroup.js +8 -9
- package/dist/features/shared/toolbar/textDropdownGroup.js.map +1 -1
- package/dist/features/toolbars/fixed/client/Toolbar/index.js +264 -187
- package/dist/features/toolbars/fixed/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/fixed/client/index.js +5 -7
- package/dist/features/toolbars/fixed/client/index.js.map +1 -1
- package/dist/features/toolbars/fixed/server/index.js +14 -13
- package/dist/features/toolbars/fixed/server/index.js.map +1 -1
- package/dist/features/toolbars/inline/client/Toolbar/index.js +374 -286
- package/dist/features/toolbars/inline/client/Toolbar/index.js.map +1 -1
- package/dist/features/toolbars/inline/client/index.js +5 -7
- package/dist/features/toolbars/inline/client/index.js.map +1 -1
- package/dist/features/toolbars/inline/server/index.js +4 -5
- package/dist/features/toolbars/inline/server/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarButton/index.d.ts +1 -1
- package/dist/features/toolbars/shared/ToolbarButton/index.d.ts.map +1 -1
- package/dist/features/toolbars/shared/ToolbarButton/index.js +75 -97
- package/dist/features/toolbars/shared/ToolbarButton/index.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js +190 -211
- package/dist/features/toolbars/shared/ToolbarDropdown/DropDown.js.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.d.ts.map +1 -1
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js +289 -124
- package/dist/features/toolbars/shared/ToolbarDropdown/index.js.map +1 -1
- package/dist/features/toolbars/types.js +1 -2
- package/dist/features/toolbars/types.js.map +1 -1
- package/dist/features/typeUtilities.js +2 -3
- package/dist/features/typeUtilities.js.map +1 -1
- package/dist/features/typesClient.js +1 -2
- package/dist/features/typesClient.js.map +1 -1
- package/dist/features/typesServer.js +1 -2
- package/dist/features/typesServer.js.map +1 -1
- package/dist/features/upload/client/component/index.js +208 -224
- package/dist/features/upload/client/component/index.js.map +1 -1
- package/dist/features/upload/client/drawer/commands.js +1 -1
- package/dist/features/upload/client/drawer/commands.js.map +1 -1
- package/dist/features/upload/client/drawer/index.js +107 -58
- package/dist/features/upload/client/drawer/index.js.map +1 -1
- package/dist/features/upload/client/feature.client.js +51 -61
- package/dist/features/upload/client/feature.client.js.map +1 -1
- package/dist/features/upload/client/nodes/UploadNode.d.ts.map +1 -1
- package/dist/features/upload/client/nodes/UploadNode.js +76 -73
- package/dist/features/upload/client/nodes/UploadNode.js.map +1 -1
- package/dist/features/upload/client/plugin/index.js +67 -39
- package/dist/features/upload/client/plugin/index.js.map +1 -1
- package/dist/features/upload/server/feature.server.js +190 -171
- package/dist/features/upload/server/feature.server.js.map +1 -1
- package/dist/features/upload/server/graphQLPopulationPromise.js +60 -47
- package/dist/features/upload/server/graphQLPopulationPromise.js.map +1 -1
- package/dist/features/upload/server/i18n.js +96 -97
- package/dist/features/upload/server/i18n.js.map +1 -1
- package/dist/features/upload/server/nodes/UploadNode.js +113 -108
- package/dist/features/upload/server/nodes/UploadNode.js.map +1 -1
- package/dist/features/upload/server/validate.js +53 -40
- package/dist/features/upload/server/validate.js.map +1 -1
- package/dist/field/Field.d.ts.map +1 -1
- package/dist/field/Field.js +127 -105
- package/dist/field/Field.js.map +1 -1
- package/dist/field/bundled.css +1 -0
- package/dist/field/index.js +92 -36
- package/dist/field/index.js.map +1 -1
- package/dist/i18n.js +160 -161
- package/dist/i18n.js.map +1 -1
- package/dist/index.js +670 -623
- package/dist/index.js.map +1 -1
- package/dist/lexical/EditorPlugin.d.ts.map +1 -1
- package/dist/lexical/EditorPlugin.js +15 -10
- package/dist/lexical/EditorPlugin.js.map +1 -1
- package/dist/lexical/LexicalEditor.js +206 -161
- package/dist/lexical/LexicalEditor.js.map +1 -1
- package/dist/lexical/LexicalProvider.js +83 -82
- package/dist/lexical/LexicalProvider.js.map +1 -1
- package/dist/lexical/config/client/EditorConfigProvider.js +76 -79
- package/dist/lexical/config/client/EditorConfigProvider.js.map +1 -1
- package/dist/lexical/config/client/default.js +3 -3
- package/dist/lexical/config/client/default.js.map +1 -1
- package/dist/lexical/config/client/loader.js +42 -39
- package/dist/lexical/config/client/loader.js.map +1 -1
- package/dist/lexical/config/client/sanitize.js +165 -165
- package/dist/lexical/config/client/sanitize.js.map +1 -1
- package/dist/lexical/config/server/default.js +5 -27
- package/dist/lexical/config/server/default.js.map +1 -1
- package/dist/lexical/config/server/loader.js +103 -103
- package/dist/lexical/config/server/loader.js.map +1 -1
- package/dist/lexical/config/server/sanitize.js +98 -99
- package/dist/lexical/config/server/sanitize.js.map +1 -1
- package/dist/lexical/config/types.js +1 -2
- package/dist/lexical/config/types.js.map +1 -1
- package/dist/lexical/nodes/index.js +9 -8
- package/dist/lexical/nodes/index.js.map +1 -1
- package/dist/lexical/plugins/MarkdownShortcut/index.js +17 -5
- package/dist/lexical/plugins/MarkdownShortcut/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js +384 -361
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/LexicalMenu.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js +223 -160
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js +1 -2
- package/dist/lexical/plugins/SlashMenu/LexicalTypeaheadMenuPlugin/types.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/index.js +191 -179
- package/dist/lexical/plugins/SlashMenu/index.js.map +1 -1
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.d.ts.map +1 -1
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js +41 -26
- package/dist/lexical/plugins/SlashMenu/useMenuTriggerMatch.js.map +1 -1
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js +164 -129
- package/dist/lexical/plugins/handles/AddBlockHandlePlugin/index.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js +11 -10
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/debounce.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js +11 -10
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/getBoundingRectWithoutTransform.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js +27 -23
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/highlightElemOriginalPosition.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js +331 -300
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/index.js.map +1 -1
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js +110 -97
- package/dist/lexical/plugins/handles/DraggableBlockPlugin/setTargetLine.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js +23 -16
- package/dist/lexical/plugins/handles/utils/calculateDistanceFromScrollerElem.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js +18 -27
- package/dist/lexical/plugins/handles/utils/doesLineHeightAffectElement.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js +15 -11
- package/dist/lexical/plugins/handles/utils/getCollapsedMargins.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js +133 -118
- package/dist/lexical/plugins/handles/utils/getNodeCloseToPoint.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js +3 -2
- package/dist/lexical/plugins/handles/utils/getTopLevelNodeKeys.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.js +3 -2
- package/dist/lexical/plugins/handles/utils/isOnHandleElement.js.map +1 -1
- package/dist/lexical/plugins/handles/utils/setHandlePosition.d.ts.map +1 -1
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js +26 -25
- package/dist/lexical/plugins/handles/utils/setHandlePosition.js.map +1 -1
- package/dist/lexical/theme/EditorTheme.d.ts.map +1 -1
- package/dist/lexical/theme/EditorTheme.js +97 -102
- package/dist/lexical/theme/EditorTheme.js.map +1 -1
- package/dist/lexical/ui/ContentEditable.d.ts.map +1 -1
- package/dist/lexical/ui/ContentEditable.js +27 -10
- package/dist/lexical/ui/ContentEditable.js.map +1 -1
- package/dist/lexical/ui/icons/AI/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AI/index.js +31 -33
- package/dist/lexical/ui/icons/AI/index.js.map +1 -1
- package/dist/lexical/ui/icons/Add/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Add/index.js +16 -18
- package/dist/lexical/ui/icons/Add/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignCenter/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignCenter/index.js +25 -28
- package/dist/lexical/ui/icons/AlignCenter/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignJustify/index.js +25 -28
- package/dist/lexical/ui/icons/AlignJustify/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignLeft/index.js +25 -28
- package/dist/lexical/ui/icons/AlignLeft/index.js.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/AlignRight/index.js +25 -28
- package/dist/lexical/ui/icons/AlignRight/index.js.map +1 -1
- package/dist/lexical/ui/icons/Block/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Block/index.js +34 -37
- package/dist/lexical/ui/icons/Block/index.js.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Blockquote/index.js +16 -15
- package/dist/lexical/ui/icons/Blockquote/index.js.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Bold/index.js +16 -15
- package/dist/lexical/ui/icons/Bold/index.js.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Checklist/index.js +24 -26
- package/dist/lexical/ui/icons/Checklist/index.js.map +1 -1
- package/dist/lexical/ui/icons/Code/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Code/index.js +19 -21
- package/dist/lexical/ui/icons/Code/index.js.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/CodeBlock/index.js +19 -21
- package/dist/lexical/ui/icons/CodeBlock/index.js.map +1 -1
- package/dist/lexical/ui/icons/H1/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H1/index.js +16 -15
- package/dist/lexical/ui/icons/H1/index.js.map +1 -1
- package/dist/lexical/ui/icons/H2/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H2/index.js +16 -15
- package/dist/lexical/ui/icons/H2/index.js.map +1 -1
- package/dist/lexical/ui/icons/H3/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H3/index.js +16 -15
- package/dist/lexical/ui/icons/H3/index.js.map +1 -1
- package/dist/lexical/ui/icons/H4/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H4/index.js +16 -15
- package/dist/lexical/ui/icons/H4/index.js.map +1 -1
- package/dist/lexical/ui/icons/H5/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H5/index.js +16 -15
- package/dist/lexical/ui/icons/H5/index.js.map +1 -1
- package/dist/lexical/ui/icons/H6/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/H6/index.js +16 -15
- package/dist/lexical/ui/icons/H6/index.js.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/HorizontalRule/index.js +19 -18
- package/dist/lexical/ui/icons/HorizontalRule/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/IndentDecrease/index.js +28 -32
- package/dist/lexical/ui/icons/IndentDecrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/IndentIncrease/index.js +28 -32
- package/dist/lexical/ui/icons/IndentIncrease/index.js.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/InlineBlocks/index.js +18 -17
- package/dist/lexical/ui/icons/InlineBlocks/index.js.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Italic/index.js +16 -15
- package/dist/lexical/ui/icons/Italic/index.js.map +1 -1
- package/dist/lexical/ui/icons/Link/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Link/index.js +17 -16
- package/dist/lexical/ui/icons/Link/index.js.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Meatballs/index.js +19 -22
- package/dist/lexical/ui/icons/Meatballs/index.js.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/OrderedList/index.js +31 -36
- package/dist/lexical/ui/icons/OrderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Relationship/index.js +31 -33
- package/dist/lexical/ui/icons/Relationship/index.js.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Strikethrough/index.js +19 -21
- package/dist/lexical/ui/icons/Strikethrough/index.js.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Subscript/index.js +16 -15
- package/dist/lexical/ui/icons/Subscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Superscript/index.js +16 -15
- package/dist/lexical/ui/icons/Superscript/index.js.map +1 -1
- package/dist/lexical/ui/icons/Table/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Table/index.js +17 -16
- package/dist/lexical/ui/icons/Table/index.js.map +1 -1
- package/dist/lexical/ui/icons/Text/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Text/index.js +16 -15
- package/dist/lexical/ui/icons/Text/index.js.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Underline/index.js +19 -21
- package/dist/lexical/ui/icons/Underline/index.js.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/UnorderedList/index.js +46 -52
- package/dist/lexical/ui/icons/UnorderedList/index.js.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.d.ts.map +1 -1
- package/dist/lexical/ui/icons/Upload/index.js +28 -31
- package/dist/lexical/ui/icons/Upload/index.js.map +1 -1
- package/dist/lexical/utils/canUseDOM.d.ts.map +1 -1
- package/dist/lexical/utils/canUseDOM.js +2 -1
- package/dist/lexical/utils/canUseDOM.js.map +1 -1
- package/dist/lexical/utils/environment.d.ts.map +1 -1
- package/dist/lexical/utils/environment.js +2 -1
- package/dist/lexical/utils/environment.js.map +1 -1
- package/dist/lexical/utils/getDOMRangeRect.d.ts.map +1 -1
- package/dist/lexical/utils/getDOMRangeRect.js +13 -12
- package/dist/lexical/utils/getDOMRangeRect.js.map +1 -1
- package/dist/lexical/utils/getSelectedNode.d.ts.map +1 -1
- package/dist/lexical/utils/getSelectedNode.js +18 -13
- package/dist/lexical/utils/getSelectedNode.js.map +1 -1
- package/dist/lexical/utils/guard.d.ts.map +1 -1
- package/dist/lexical/utils/guard.js +3 -2
- package/dist/lexical/utils/guard.js.map +1 -1
- package/dist/lexical/utils/joinClasses.d.ts.map +1 -1
- package/dist/lexical/utils/joinClasses.js +3 -2
- package/dist/lexical/utils/joinClasses.js.map +1 -1
- package/dist/lexical/utils/markdown/createBlockNode.js +9 -10
- package/dist/lexical/utils/markdown/createBlockNode.js.map +1 -1
- package/dist/lexical/utils/nodeFormat.js +58 -59
- package/dist/lexical/utils/nodeFormat.js.map +1 -1
- package/dist/lexical/utils/point.d.ts.map +1 -1
- package/dist/lexical/utils/point.js +40 -32
- package/dist/lexical/utils/point.js.map +1 -1
- package/dist/lexical/utils/rect.d.ts.map +1 -1
- package/dist/lexical/utils/rect.js +167 -134
- package/dist/lexical/utils/rect.js.map +1 -1
- package/dist/lexical/utils/setFloatingElemPosition.d.ts.map +1 -1
- package/dist/lexical/utils/setFloatingElemPosition.js +56 -45
- package/dist/lexical/utils/setFloatingElemPosition.js.map +1 -1
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.d.ts.map +1 -1
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js +23 -22
- package/dist/lexical/utils/setFloatingElemPositionForLinkEditor.js.map +1 -1
- package/dist/lexical/utils/swipe.d.ts.map +1 -1
- package/dist/lexical/utils/swipe.js +82 -83
- package/dist/lexical/utils/swipe.js.map +1 -1
- package/dist/lexical/utils/url.js +23 -22
- package/dist/lexical/utils/url.js.map +1 -1
- package/dist/nodeTypes.js +1 -2
- package/dist/nodeTypes.js.map +1 -1
- package/dist/populateGraphQL/defaultValue.js +24 -29
- package/dist/populateGraphQL/defaultValue.js.map +1 -1
- package/dist/populateGraphQL/populate.js +35 -25
- package/dist/populateGraphQL/populate.js.map +1 -1
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js +47 -32
- package/dist/populateGraphQL/populateLexicalPopulationPromises.js.map +1 -1
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js +39 -25
- package/dist/populateGraphQL/recursivelyPopulateFieldsForGraphQL.js.map +1 -1
- package/dist/types.js +1 -2
- package/dist/types.js.map +1 -1
- package/dist/utilities/createClientFeature.js +40 -36
- package/dist/utilities/createClientFeature.js.map +1 -1
- package/dist/utilities/createServerFeature.js +46 -35
- package/dist/utilities/createServerFeature.js.map +1 -1
- package/dist/utilities/fieldsDrawer/Drawer.js +28 -17
- package/dist/utilities/fieldsDrawer/Drawer.js.map +1 -1
- package/dist/utilities/fieldsDrawer/DrawerContent.js +149 -78
- package/dist/utilities/fieldsDrawer/DrawerContent.js.map +1 -1
- package/dist/utilities/forEachNodeRecursively.js +24 -19
- package/dist/utilities/forEachNodeRecursively.js.map +1 -1
- package/dist/utilities/generateComponentMap.d.ts.map +1 -1
- package/dist/utilities/generateComponentMap.js +92 -82
- package/dist/utilities/generateComponentMap.js.map +1 -1
- package/dist/utilities/generateImportMap.js +53 -47
- package/dist/utilities/generateImportMap.js.map +1 -1
- package/dist/utilities/generateSchemaMap.js +35 -30
- package/dist/utilities/generateSchemaMap.js.map +1 -1
- package/dist/utilities/migrateSlateToLexical/index.js +99 -86
- package/dist/utilities/migrateSlateToLexical/index.js.map +1 -1
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js +73 -66
- package/dist/utilities/migrateSlateToLexical/migrateDocumentFieldsRecursively.js.map +1 -1
- package/dist/utilities/recurseNodeTree.js +25 -22
- package/dist/utilities/recurseNodeTree.js.map +1 -1
- package/dist/utilities/upgradeLexicalData/index.js +99 -86
- package/dist/utilities/upgradeLexicalData/index.js.map +1 -1
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js +71 -66
- package/dist/utilities/upgradeLexicalData/upgradeDocumentFieldsRecursively.js.map +1 -1
- package/dist/utilities/useLexicalFeature.js +9 -8
- package/dist/utilities/useLexicalFeature.js.map +1 -1
- package/dist/validate/index.js +32 -26
- package/dist/validate/index.js.map +1 -1
- package/dist/validate/validateNodes.js +31 -28
- package/dist/validate/validateNodes.js.map +1 -1
- package/package.json +22 -11
- package/dist/exports/client/Component-7HS6FEJS.js +0 -2
- package/dist/exports/client/Component-7HS6FEJS.js.map +0 -7
- package/dist/exports/client/Component-LAKSCIDX.js +0 -2
- package/dist/exports/client/Component-LAKSCIDX.js.map +0 -7
- package/dist/exports/client/Field-BYB3WX7J.js +0 -2
- package/dist/exports/client/Field-BYB3WX7J.js.map +0 -7
- package/dist/exports/client/RelationshipComponent-GYUTPDNG.js +0 -2
- package/dist/exports/client/RelationshipComponent-GYUTPDNG.js.map +0 -7
- package/dist/exports/client/chunk-4EX7W4UX.js +0 -2
- package/dist/exports/client/chunk-4EX7W4UX.js.map +0 -7
- package/dist/exports/client/chunk-E4HH5PS6.js +0 -2
- package/dist/exports/client/chunk-E4HH5PS6.js.map +0 -7
- package/dist/exports/client/chunk-EBB2CEB6.js +0 -2
- package/dist/exports/client/chunk-EBB2CEB6.js.map +0 -7
- package/dist/exports/client/chunk-LTR7V74A.js +0 -2
- package/dist/exports/client/chunk-LTR7V74A.js.map +0 -7
- package/dist/exports/client/chunk-SQHN3N6E.js +0 -2
- package/dist/exports/client/chunk-VMCQSR3T.js +0 -3
- package/dist/exports/client/chunk-VMCQSR3T.js.map +0 -7
- package/dist/exports/client/component-6C5JERGA.js +0 -2
- package/dist/exports/client/component-6C5JERGA.js.map +0 -7
- package/dist/exports/client/component-GUWIGB77.js +0 -2
- package/dist/exports/client/component-GUWIGB77.js.map +0 -7
- package/dist/exports/client/component-UQ2BKD5X.js +0 -2
- package/dist/exports/client/component-UQ2BKD5X.js.map +0 -7
- package/dist/exports/client/componentInline-C2XIK5VZ.js +0 -2
- package/dist/exports/client/componentInline-C2XIK5VZ.js.map +0 -7
- package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts +0 -12
- package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.d.ts.map +0 -1
- package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js +0 -181
- package/dist/features/experimental_table/plugins/TableHoverActionsPlugin/index.js.map +0 -1
|
@@ -1,66 +1,68 @@
|
|
|
1
1
|
'use client';
|
|
2
|
+
|
|
3
|
+
import { c as _c } from "react/compiler-runtime";
|
|
2
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
5
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext.js';
|
|
4
6
|
import { $createParagraphNode, $createTextNode, $getRoot } from 'lexical';
|
|
5
7
|
import * as React from 'react';
|
|
6
8
|
import { useCallback, useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
7
9
|
import { IS_APPLE } from '../../../../../lexical/utils/environment.js';
|
|
8
|
-
const copy =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const copy = text => {
|
|
11
|
+
const textArea = document.createElement('textarea');
|
|
12
|
+
textArea.value = text || '';
|
|
13
|
+
textArea.style.position = 'absolute';
|
|
14
|
+
textArea.style.opacity = '0';
|
|
15
|
+
document.body?.appendChild(textArea);
|
|
16
|
+
textArea.focus();
|
|
17
|
+
textArea.select();
|
|
18
|
+
try {
|
|
19
|
+
const result = document.execCommand('copy');
|
|
20
|
+
// eslint-disable-next-line no-console
|
|
21
|
+
console.log(result);
|
|
22
|
+
} catch (error) {
|
|
23
|
+
console.error(error);
|
|
24
|
+
}
|
|
25
|
+
document.body?.removeChild(textArea);
|
|
24
26
|
};
|
|
25
|
-
const download = (filename, text)=>{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
const download = (filename, text) => {
|
|
28
|
+
const a = document.createElement('a');
|
|
29
|
+
a.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text || ''));
|
|
30
|
+
a.setAttribute('download', filename);
|
|
31
|
+
a.style.display = 'none';
|
|
32
|
+
document.body?.appendChild(a);
|
|
33
|
+
a.click();
|
|
34
|
+
document.body?.removeChild(a);
|
|
33
35
|
};
|
|
34
|
-
const formatStep =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
36
|
+
const formatStep = step => {
|
|
37
|
+
const formatOneStep = (name, value) => {
|
|
38
|
+
switch (name) {
|
|
39
|
+
case 'click':
|
|
40
|
+
{
|
|
41
|
+
return ` await page.mouse.click(${value.x}, ${value.y});`;
|
|
42
|
+
}
|
|
43
|
+
case 'press':
|
|
44
|
+
{
|
|
45
|
+
return ` await page.keyboard.press('${value}');`;
|
|
46
|
+
}
|
|
47
|
+
case 'keydown':
|
|
48
|
+
{
|
|
49
|
+
return ` await page.keyboard.keydown('${value}');`;
|
|
50
|
+
}
|
|
51
|
+
case 'keyup':
|
|
52
|
+
{
|
|
53
|
+
return ` await page.keyboard.keyup('${value}');`;
|
|
54
|
+
}
|
|
55
|
+
case 'type':
|
|
56
|
+
{
|
|
57
|
+
return ` await page.keyboard.type('${value}');`;
|
|
58
|
+
}
|
|
59
|
+
case 'selectAll':
|
|
60
|
+
{
|
|
61
|
+
return ` await selectAll(page);`;
|
|
62
|
+
}
|
|
63
|
+
case 'snapshot':
|
|
64
|
+
{
|
|
65
|
+
return ` await assertHTMLSnapshot(page);
|
|
64
66
|
await assertSelection(page, {
|
|
65
67
|
anchorPath: [${value.anchorPath.toString()}],
|
|
66
68
|
anchorOffset: ${value.anchorOffset},
|
|
@@ -68,87 +70,95 @@ const formatStep = (step)=>{
|
|
|
68
70
|
focusOffset: ${value.focusOffset},
|
|
69
71
|
});
|
|
70
72
|
`;
|
|
71
|
-
}
|
|
72
|
-
default:
|
|
73
|
-
return ``;
|
|
74
73
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
74
|
+
default:
|
|
75
|
+
return ``;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const formattedStep = formatOneStep(step.name, step.value);
|
|
79
|
+
switch (step.count) {
|
|
80
|
+
case 1:
|
|
81
|
+
return formattedStep;
|
|
82
|
+
case 2:
|
|
83
|
+
return [formattedStep, formattedStep].join(`\n`);
|
|
84
|
+
default:
|
|
85
|
+
return ` await repeat(${step.count}, async () => {
|
|
87
86
|
${formattedStep}
|
|
88
87
|
);`;
|
|
89
|
-
|
|
88
|
+
}
|
|
90
89
|
};
|
|
91
90
|
export function isSelectAll(event) {
|
|
92
|
-
|
|
91
|
+
return event.key.toLowerCase() === 'a' && (IS_APPLE ? event.metaKey : event.ctrlKey);
|
|
93
92
|
}
|
|
94
93
|
// stolen from LexicalSelection-test
|
|
95
94
|
function sanitizeSelection(selection) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
95
|
+
const {
|
|
96
|
+
anchorNode,
|
|
97
|
+
focusNode
|
|
98
|
+
} = selection;
|
|
99
|
+
let {
|
|
100
|
+
anchorOffset,
|
|
101
|
+
focusOffset
|
|
102
|
+
} = selection;
|
|
103
|
+
if (anchorOffset !== 0) {
|
|
104
|
+
anchorOffset--;
|
|
105
|
+
}
|
|
106
|
+
if (focusOffset !== 0) {
|
|
107
|
+
focusOffset--;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
anchorNode,
|
|
111
|
+
anchorOffset,
|
|
112
|
+
focusNode,
|
|
113
|
+
focusOffset
|
|
114
|
+
};
|
|
110
115
|
}
|
|
111
116
|
function getPathFromNodeToEditor(node, rootElement) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
118
|
-
currentNode = currentNode?.parentNode;
|
|
117
|
+
let currentNode = node;
|
|
118
|
+
const path = [];
|
|
119
|
+
while (currentNode !== rootElement) {
|
|
120
|
+
if (currentNode !== null && currentNode !== undefined) {
|
|
121
|
+
path.unshift(Array.from(currentNode?.parentNode?.childNodes ?? []).indexOf(currentNode));
|
|
119
122
|
}
|
|
120
|
-
|
|
123
|
+
currentNode = currentNode?.parentNode;
|
|
124
|
+
}
|
|
125
|
+
return path;
|
|
121
126
|
}
|
|
122
|
-
const keyPresses = new Set([
|
|
123
|
-
'Enter',
|
|
124
|
-
'Backspace',
|
|
125
|
-
'Delete',
|
|
126
|
-
'Escape',
|
|
127
|
-
'ArrowLeft',
|
|
128
|
-
'ArrowRight',
|
|
129
|
-
'ArrowUp',
|
|
130
|
-
'ArrowDown'
|
|
131
|
-
]);
|
|
127
|
+
const keyPresses = new Set(['Enter', 'Backspace', 'Delete', 'Escape', 'ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown']);
|
|
132
128
|
function useTestRecorder(editor) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
129
|
+
const $ = _c(55);
|
|
130
|
+
let t0;
|
|
131
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
132
|
+
t0 = [];
|
|
133
|
+
$[0] = t0;
|
|
134
|
+
} else {
|
|
135
|
+
t0 = $[0];
|
|
136
|
+
}
|
|
137
|
+
const [steps, setSteps] = useState(t0);
|
|
138
|
+
const [isRecording, setIsRecording] = useState(false);
|
|
139
|
+
const [, setCurrentInnerHTML] = useState("");
|
|
140
|
+
const [templatedTest, setTemplatedTest] = useState("");
|
|
141
|
+
const previousSelectionRef = useRef(null);
|
|
142
|
+
const skipNextSelectionChangeRef = useRef(false);
|
|
143
|
+
const preRef = useRef(null);
|
|
144
|
+
let t1;
|
|
145
|
+
if ($[1] !== editor) {
|
|
146
|
+
t1 = () => editor;
|
|
147
|
+
$[1] = editor;
|
|
148
|
+
$[2] = t1;
|
|
149
|
+
} else {
|
|
150
|
+
t1 = $[2];
|
|
151
|
+
}
|
|
152
|
+
const getCurrentEditor = t1;
|
|
153
|
+
let t2;
|
|
154
|
+
if ($[3] !== editor || $[4] !== steps) {
|
|
155
|
+
t2 = () => {
|
|
156
|
+
const rootElement = editor.getRootElement();
|
|
157
|
+
const browserSelection = window.getSelection();
|
|
158
|
+
if (rootElement == null || browserSelection == null || browserSelection.anchorNode == null || browserSelection.focusNode == null || !rootElement.contains(browserSelection.anchorNode) || !rootElement.contains(browserSelection.focusNode)) {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
return `
|
|
152
162
|
import {
|
|
153
163
|
initializeE2E,
|
|
154
164
|
assertHTMLSnapshot,
|
|
@@ -169,303 +179,409 @@ ${steps.map(formatStep).join(`\n`)}
|
|
|
169
179
|
});
|
|
170
180
|
});
|
|
171
181
|
`;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
]
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
];
|
|
194
|
-
} else {
|
|
195
|
-
// for other events we bump the counter if their values are the same
|
|
196
|
-
if (lastStep.value === value) {
|
|
197
|
-
return [
|
|
198
|
-
...steps.slice(0, currentIndex),
|
|
199
|
-
{
|
|
200
|
-
...lastStep,
|
|
201
|
-
count: lastStep.count + 1
|
|
202
|
-
}
|
|
203
|
-
];
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
// could not group, just append a new one
|
|
209
|
-
return [
|
|
210
|
-
...currentSteps,
|
|
211
|
-
{
|
|
212
|
-
name,
|
|
213
|
-
count: 1,
|
|
214
|
-
value
|
|
215
|
-
}
|
|
216
|
-
];
|
|
217
|
-
});
|
|
218
|
-
}, [
|
|
219
|
-
steps,
|
|
220
|
-
setSteps
|
|
221
|
-
]);
|
|
222
|
-
useLayoutEffect(()=>{
|
|
223
|
-
const onKeyDown = (event)=>{
|
|
224
|
-
if (!isRecording) {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
const key = event.key;
|
|
228
|
-
if (isSelectAll(event)) {
|
|
229
|
-
pushStep('selectAll', '');
|
|
230
|
-
} else if (keyPresses.has(key)) {
|
|
231
|
-
pushStep('press', event.key);
|
|
232
|
-
} else if ([
|
|
233
|
-
...key
|
|
234
|
-
].length > 1) {
|
|
235
|
-
pushStep('keydown', event.key);
|
|
182
|
+
};
|
|
183
|
+
$[3] = editor;
|
|
184
|
+
$[4] = steps;
|
|
185
|
+
$[5] = t2;
|
|
186
|
+
} else {
|
|
187
|
+
t2 = $[5];
|
|
188
|
+
}
|
|
189
|
+
const generateTestContent = t2;
|
|
190
|
+
let t3;
|
|
191
|
+
if ($[6] !== steps) {
|
|
192
|
+
t3 = (name, value) => {
|
|
193
|
+
setSteps(currentSteps => {
|
|
194
|
+
const currentIndex = steps.length - 1;
|
|
195
|
+
const lastStep = steps[currentIndex];
|
|
196
|
+
if (lastStep) {
|
|
197
|
+
if (lastStep.name === name) {
|
|
198
|
+
if (name === "type") {
|
|
199
|
+
return [...steps.slice(0, currentIndex), {
|
|
200
|
+
...lastStep,
|
|
201
|
+
value: lastStep.value + value
|
|
202
|
+
}];
|
|
236
203
|
} else {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
const key = event.key;
|
|
245
|
-
if (!keyPresses.has(key) && [
|
|
246
|
-
...key
|
|
247
|
-
].length > 1) {
|
|
248
|
-
pushStep('keyup', event.key);
|
|
249
|
-
}
|
|
250
|
-
};
|
|
251
|
-
return editor.registerRootListener((rootElement, prevRootElement)=>{
|
|
252
|
-
if (prevRootElement !== null) {
|
|
253
|
-
prevRootElement.removeEventListener('keydown', onKeyDown);
|
|
254
|
-
prevRootElement.removeEventListener('keyup', onKeyUp);
|
|
255
|
-
}
|
|
256
|
-
if (rootElement !== null) {
|
|
257
|
-
rootElement.addEventListener('keydown', onKeyDown);
|
|
258
|
-
rootElement.addEventListener('keyup', onKeyUp);
|
|
204
|
+
if (lastStep.value === value) {
|
|
205
|
+
return [...steps.slice(0, currentIndex), {
|
|
206
|
+
...lastStep,
|
|
207
|
+
count: lastStep.count + 1
|
|
208
|
+
}];
|
|
209
|
+
}
|
|
259
210
|
}
|
|
260
|
-
|
|
261
|
-
}, [
|
|
262
|
-
editor,
|
|
263
|
-
isRecording,
|
|
264
|
-
pushStep
|
|
265
|
-
]);
|
|
266
|
-
useLayoutEffect(()=>{
|
|
267
|
-
if (preRef.current) {
|
|
268
|
-
preRef.current.scrollTo(0, preRef.current.scrollHeight);
|
|
211
|
+
}
|
|
269
212
|
}
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
const removeUpdateListener = editor.registerUpdateListener(({ dirtyElements, dirtyLeaves, editorState })=>{
|
|
289
|
-
if (!isRecording) {
|
|
290
|
-
return;
|
|
291
|
-
}
|
|
292
|
-
const currentSelection = editorState._selection;
|
|
293
|
-
const previousSelection = previousSelectionRef.current;
|
|
294
|
-
const skipNextSelectionChange = skipNextSelectionChangeRef.current;
|
|
295
|
-
if (previousSelection !== currentSelection) {
|
|
296
|
-
if (dirtyLeaves.size === 0 && dirtyElements.size === 0 && !skipNextSelectionChange) {
|
|
297
|
-
const browserSelection = window.getSelection();
|
|
298
|
-
if (browserSelection && (browserSelection.anchorNode == null || browserSelection.focusNode == null)) {
|
|
299
|
-
return;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
previousSelectionRef.current = currentSelection;
|
|
303
|
-
}
|
|
304
|
-
skipNextSelectionChangeRef.current = false;
|
|
305
|
-
const testContent = generateTestContent();
|
|
306
|
-
if (testContent !== null) {
|
|
307
|
-
setTemplatedTest(testContent);
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
return removeUpdateListener;
|
|
311
|
-
}, [
|
|
312
|
-
editor,
|
|
313
|
-
generateTestContent,
|
|
314
|
-
isRecording,
|
|
315
|
-
pushStep
|
|
316
|
-
]);
|
|
317
|
-
// save innerHTML
|
|
318
|
-
useEffect(()=>{
|
|
213
|
+
return [...currentSteps, {
|
|
214
|
+
name,
|
|
215
|
+
count: 1,
|
|
216
|
+
value
|
|
217
|
+
}];
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
$[6] = steps;
|
|
221
|
+
$[7] = t3;
|
|
222
|
+
} else {
|
|
223
|
+
t3 = $[7];
|
|
224
|
+
}
|
|
225
|
+
const pushStep = t3;
|
|
226
|
+
let t4;
|
|
227
|
+
let t5;
|
|
228
|
+
if ($[8] !== isRecording || $[9] !== pushStep || $[10] !== editor) {
|
|
229
|
+
t4 = () => {
|
|
230
|
+
const onKeyDown = event => {
|
|
319
231
|
if (!isRecording) {
|
|
320
|
-
|
|
232
|
+
return;
|
|
321
233
|
}
|
|
322
|
-
const
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
234
|
+
const key = event.key;
|
|
235
|
+
if (isSelectAll(event)) {
|
|
236
|
+
pushStep("selectAll", "");
|
|
237
|
+
} else {
|
|
238
|
+
if (keyPresses.has(key)) {
|
|
239
|
+
pushStep("press", event.key);
|
|
240
|
+
} else {
|
|
241
|
+
if ([...key].length > 1) {
|
|
242
|
+
pushStep("keydown", event.key);
|
|
243
|
+
} else {
|
|
244
|
+
pushStep("type", event.key);
|
|
326
245
|
}
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
isRecording
|
|
332
|
-
]);
|
|
333
|
-
// clear editor and start recording
|
|
334
|
-
const toggleEditorSelection = useCallback((currentEditor)=>{
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
const onKeyUp = event_0 => {
|
|
335
250
|
if (!isRecording) {
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
text.select();
|
|
342
|
-
});
|
|
343
|
-
setSteps([]);
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
const key_0 = event_0.key;
|
|
254
|
+
if (!keyPresses.has(key_0) && [...key_0].length > 1) {
|
|
255
|
+
pushStep("keyup", event_0.key);
|
|
344
256
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
257
|
+
};
|
|
258
|
+
return editor.registerRootListener((rootElement_0, prevRootElement) => {
|
|
259
|
+
if (prevRootElement !== null) {
|
|
260
|
+
prevRootElement.removeEventListener("keydown", onKeyDown);
|
|
261
|
+
prevRootElement.removeEventListener("keyup", onKeyUp);
|
|
262
|
+
}
|
|
263
|
+
if (rootElement_0 !== null) {
|
|
264
|
+
rootElement_0.addEventListener("keydown", onKeyDown);
|
|
265
|
+
rootElement_0.addEventListener("keyup", onKeyUp);
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
};
|
|
269
|
+
t5 = [editor, isRecording, pushStep];
|
|
270
|
+
$[8] = isRecording;
|
|
271
|
+
$[9] = pushStep;
|
|
272
|
+
$[10] = editor;
|
|
273
|
+
$[11] = t4;
|
|
274
|
+
$[12] = t5;
|
|
275
|
+
} else {
|
|
276
|
+
t4 = $[11];
|
|
277
|
+
t5 = $[12];
|
|
278
|
+
}
|
|
279
|
+
useLayoutEffect(t4, t5);
|
|
280
|
+
let t6;
|
|
281
|
+
if ($[13] !== generateTestContent) {
|
|
282
|
+
t6 = [generateTestContent];
|
|
283
|
+
$[13] = generateTestContent;
|
|
284
|
+
$[14] = t6;
|
|
285
|
+
} else {
|
|
286
|
+
t6 = $[14];
|
|
287
|
+
}
|
|
288
|
+
useLayoutEffect(() => {
|
|
289
|
+
if (preRef.current) {
|
|
290
|
+
preRef.current.scrollTo(0, preRef.current.scrollHeight);
|
|
291
|
+
}
|
|
292
|
+
}, t6);
|
|
293
|
+
let t7;
|
|
294
|
+
if ($[15] !== generateTestContent || $[16] !== steps) {
|
|
295
|
+
t7 = [generateTestContent, steps];
|
|
296
|
+
$[15] = generateTestContent;
|
|
297
|
+
$[16] = steps;
|
|
298
|
+
$[17] = t7;
|
|
299
|
+
} else {
|
|
300
|
+
t7 = $[17];
|
|
301
|
+
}
|
|
302
|
+
useEffect(() => {
|
|
303
|
+
if (steps) {
|
|
304
|
+
const testContent = generateTestContent();
|
|
305
|
+
if (testContent !== null) {
|
|
306
|
+
setTemplatedTest(testContent);
|
|
307
|
+
}
|
|
308
|
+
if (preRef.current) {
|
|
309
|
+
preRef.current.scrollTo(0, preRef.current.scrollHeight);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}, t7);
|
|
313
|
+
let t8;
|
|
314
|
+
if ($[18] !== editor || $[19] !== isRecording || $[20] !== generateTestContent) {
|
|
315
|
+
t8 = () => {
|
|
316
|
+
const removeUpdateListener = editor.registerUpdateListener(t9 => {
|
|
317
|
+
const {
|
|
318
|
+
dirtyElements,
|
|
319
|
+
dirtyLeaves,
|
|
320
|
+
editorState
|
|
321
|
+
} = t9;
|
|
350
322
|
if (!isRecording) {
|
|
351
|
-
|
|
323
|
+
return;
|
|
352
324
|
}
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
325
|
+
const currentSelection = editorState._selection;
|
|
326
|
+
const previousSelection = previousSelectionRef.current;
|
|
327
|
+
const skipNextSelectionChange = skipNextSelectionChangeRef.current;
|
|
328
|
+
if (previousSelection !== currentSelection) {
|
|
329
|
+
if (dirtyLeaves.size === 0 && dirtyElements.size === 0 && !skipNextSelectionChange) {
|
|
330
|
+
const browserSelection_0 = window.getSelection();
|
|
331
|
+
if (browserSelection_0 && (browserSelection_0.anchorNode == null || browserSelection_0.focusNode == null)) {
|
|
332
|
+
return;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
previousSelectionRef.current = currentSelection;
|
|
356
336
|
}
|
|
357
|
-
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
anchorPath = getPathFromNodeToEditor(anchorNode, rootElement);
|
|
337
|
+
skipNextSelectionChangeRef.current = false;
|
|
338
|
+
const testContent_0 = generateTestContent();
|
|
339
|
+
if (testContent_0 !== null) {
|
|
340
|
+
setTemplatedTest(testContent_0);
|
|
362
341
|
}
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
342
|
+
});
|
|
343
|
+
return removeUpdateListener;
|
|
344
|
+
};
|
|
345
|
+
$[18] = editor;
|
|
346
|
+
$[19] = isRecording;
|
|
347
|
+
$[20] = generateTestContent;
|
|
348
|
+
$[21] = t8;
|
|
349
|
+
} else {
|
|
350
|
+
t8 = $[21];
|
|
351
|
+
}
|
|
352
|
+
let t9;
|
|
353
|
+
if ($[22] !== editor || $[23] !== generateTestContent || $[24] !== isRecording || $[25] !== pushStep) {
|
|
354
|
+
t9 = [editor, generateTestContent, isRecording, pushStep];
|
|
355
|
+
$[22] = editor;
|
|
356
|
+
$[23] = generateTestContent;
|
|
357
|
+
$[24] = isRecording;
|
|
358
|
+
$[25] = pushStep;
|
|
359
|
+
$[26] = t9;
|
|
360
|
+
} else {
|
|
361
|
+
t9 = $[26];
|
|
362
|
+
}
|
|
363
|
+
useEffect(t8, t9);
|
|
364
|
+
let t10;
|
|
365
|
+
if ($[27] !== isRecording || $[28] !== editor || $[29] !== setCurrentInnerHTML) {
|
|
366
|
+
t10 = () => {
|
|
367
|
+
if (!isRecording) {
|
|
368
|
+
return;
|
|
369
|
+
}
|
|
370
|
+
const removeUpdateListener_0 = editor.registerUpdateListener(() => {
|
|
371
|
+
const rootElement_1 = editor.getRootElement();
|
|
372
|
+
if (rootElement_1 !== null) {
|
|
373
|
+
setCurrentInnerHTML(rootElement_1?.innerHTML);
|
|
366
374
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
375
|
+
});
|
|
376
|
+
return removeUpdateListener_0;
|
|
377
|
+
};
|
|
378
|
+
$[27] = isRecording;
|
|
379
|
+
$[28] = editor;
|
|
380
|
+
$[29] = setCurrentInnerHTML;
|
|
381
|
+
$[30] = t10;
|
|
382
|
+
} else {
|
|
383
|
+
t10 = $[30];
|
|
384
|
+
}
|
|
385
|
+
let t11;
|
|
386
|
+
if ($[31] !== editor || $[32] !== isRecording) {
|
|
387
|
+
t11 = [editor, isRecording];
|
|
388
|
+
$[31] = editor;
|
|
389
|
+
$[32] = isRecording;
|
|
390
|
+
$[33] = t11;
|
|
391
|
+
} else {
|
|
392
|
+
t11 = $[33];
|
|
393
|
+
}
|
|
394
|
+
useEffect(t10, t11);
|
|
395
|
+
let t12;
|
|
396
|
+
if ($[34] !== isRecording) {
|
|
397
|
+
t12 = currentEditor => {
|
|
398
|
+
if (!isRecording) {
|
|
399
|
+
currentEditor.update(() => {
|
|
400
|
+
const root = $getRoot();
|
|
401
|
+
root.clear();
|
|
402
|
+
const text = $createTextNode();
|
|
403
|
+
root.append($createParagraphNode().append(text));
|
|
404
|
+
text.select();
|
|
374
405
|
});
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
]
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
406
|
+
setSteps([]);
|
|
407
|
+
}
|
|
408
|
+
setIsRecording(currentIsRecording => !currentIsRecording);
|
|
409
|
+
};
|
|
410
|
+
$[34] = isRecording;
|
|
411
|
+
$[35] = t12;
|
|
412
|
+
} else {
|
|
413
|
+
t12 = $[35];
|
|
414
|
+
}
|
|
415
|
+
const toggleEditorSelection = t12;
|
|
416
|
+
let t13;
|
|
417
|
+
if ($[36] !== isRecording || $[37] !== getCurrentEditor || $[38] !== pushStep) {
|
|
418
|
+
t13 = () => {
|
|
419
|
+
if (!isRecording) {
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
const browserSelection_1 = window.getSelection();
|
|
423
|
+
if (browserSelection_1 === null || browserSelection_1.anchorNode == null || browserSelection_1.focusNode == null) {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
const {
|
|
427
|
+
anchorNode,
|
|
428
|
+
anchorOffset,
|
|
429
|
+
focusNode,
|
|
430
|
+
focusOffset
|
|
431
|
+
} = sanitizeSelection(browserSelection_1);
|
|
432
|
+
const rootElement_2 = getCurrentEditor().getRootElement();
|
|
433
|
+
let anchorPath;
|
|
434
|
+
if (anchorNode !== null) {
|
|
435
|
+
anchorPath = getPathFromNodeToEditor(anchorNode, rootElement_2);
|
|
436
|
+
}
|
|
437
|
+
let focusPath;
|
|
438
|
+
if (focusNode !== null) {
|
|
439
|
+
focusPath = getPathFromNodeToEditor(focusNode, rootElement_2);
|
|
440
|
+
}
|
|
441
|
+
pushStep("snapshot", {
|
|
442
|
+
anchorNode,
|
|
443
|
+
anchorOffset,
|
|
444
|
+
anchorPath,
|
|
445
|
+
focusNode,
|
|
446
|
+
focusOffset,
|
|
447
|
+
focusPath
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
$[36] = isRecording;
|
|
451
|
+
$[37] = getCurrentEditor;
|
|
452
|
+
$[38] = pushStep;
|
|
453
|
+
$[39] = t13;
|
|
454
|
+
} else {
|
|
455
|
+
t13 = $[39];
|
|
456
|
+
}
|
|
457
|
+
const onSnapshotClick = t13;
|
|
458
|
+
let t14;
|
|
459
|
+
if ($[40] !== generateTestContent) {
|
|
460
|
+
t14 = () => {
|
|
461
|
+
copy(generateTestContent());
|
|
462
|
+
};
|
|
463
|
+
$[40] = generateTestContent;
|
|
464
|
+
$[41] = t14;
|
|
465
|
+
} else {
|
|
466
|
+
t14 = $[41];
|
|
467
|
+
}
|
|
468
|
+
const onCopyClick = t14;
|
|
469
|
+
let t15;
|
|
470
|
+
if ($[42] !== generateTestContent) {
|
|
471
|
+
t15 = () => {
|
|
472
|
+
download("test.js", generateTestContent());
|
|
473
|
+
};
|
|
474
|
+
$[42] = generateTestContent;
|
|
475
|
+
$[43] = t15;
|
|
476
|
+
} else {
|
|
477
|
+
t15 = $[43];
|
|
478
|
+
}
|
|
479
|
+
const onDownloadClick = t15;
|
|
480
|
+
const t16 = `editor-dev-button ${isRecording ? "active" : ""}`;
|
|
481
|
+
let t17;
|
|
482
|
+
if ($[44] !== toggleEditorSelection || $[45] !== getCurrentEditor) {
|
|
483
|
+
t17 = e => {
|
|
484
|
+
toggleEditorSelection(getCurrentEditor());
|
|
485
|
+
e.preventDefault();
|
|
486
|
+
};
|
|
487
|
+
$[44] = toggleEditorSelection;
|
|
488
|
+
$[45] = getCurrentEditor;
|
|
489
|
+
$[46] = t17;
|
|
490
|
+
} else {
|
|
491
|
+
t17 = $[46];
|
|
492
|
+
}
|
|
493
|
+
const t18 = isRecording ? "Disable test recorder" : "Enable test recorder";
|
|
494
|
+
const t19 = isRecording ? "Disable test recorder" : "Enable test recorder";
|
|
495
|
+
let t20;
|
|
496
|
+
if ($[47] !== t16 || $[48] !== t17 || $[49] !== t18 || $[50] !== t19) {
|
|
497
|
+
t20 = _jsx("button", {
|
|
498
|
+
className: t16,
|
|
499
|
+
id: "test-recorder-button",
|
|
500
|
+
onClick: t17,
|
|
501
|
+
title: t18,
|
|
502
|
+
type: "button",
|
|
503
|
+
children: t19
|
|
504
|
+
});
|
|
505
|
+
$[47] = t16;
|
|
506
|
+
$[48] = t17;
|
|
507
|
+
$[49] = t18;
|
|
508
|
+
$[50] = t19;
|
|
509
|
+
$[51] = t20;
|
|
510
|
+
} else {
|
|
511
|
+
t20 = $[51];
|
|
512
|
+
}
|
|
513
|
+
const button = t20;
|
|
514
|
+
const output = isRecording ? _jsxs("div", {
|
|
515
|
+
className: "test-recorder-output",
|
|
516
|
+
children: [_jsxs("div", {
|
|
517
|
+
className: "test-recorder-toolbar",
|
|
518
|
+
children: [_jsx("button", {
|
|
519
|
+
className: "test-recorder-button",
|
|
520
|
+
id: "test-recorder-button-snapshot",
|
|
521
|
+
onClick: e_0 => {
|
|
522
|
+
onSnapshotClick();
|
|
523
|
+
e_0.preventDefault();
|
|
396
524
|
},
|
|
397
|
-
title:
|
|
525
|
+
title: "Insert snapshot",
|
|
398
526
|
type: "button",
|
|
399
|
-
children:
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
type: "button",
|
|
438
|
-
children: "Download"
|
|
439
|
-
})
|
|
440
|
-
]
|
|
441
|
-
}),
|
|
442
|
-
/*#__PURE__*/ _jsx("pre", {
|
|
443
|
-
id: "test-recorder",
|
|
444
|
-
ref: preRef,
|
|
445
|
-
children: templatedTest
|
|
446
|
-
})
|
|
447
|
-
]
|
|
448
|
-
}) : null;
|
|
449
|
-
return [
|
|
450
|
-
button,
|
|
451
|
-
output
|
|
452
|
-
];
|
|
527
|
+
children: "Insert Snapshot"
|
|
528
|
+
}), _jsx("button", {
|
|
529
|
+
className: "test-recorder-button",
|
|
530
|
+
id: "test-recorder-button-copy",
|
|
531
|
+
onClick: e_1 => {
|
|
532
|
+
onCopyClick();
|
|
533
|
+
e_1.preventDefault();
|
|
534
|
+
},
|
|
535
|
+
title: "Copy to clipboard",
|
|
536
|
+
type: "button",
|
|
537
|
+
children: "Copy"
|
|
538
|
+
}), _jsx("button", {
|
|
539
|
+
className: "test-recorder-button",
|
|
540
|
+
id: "test-recorder-button-download",
|
|
541
|
+
onClick: e_2 => {
|
|
542
|
+
onDownloadClick();
|
|
543
|
+
e_2.preventDefault();
|
|
544
|
+
},
|
|
545
|
+
title: "Download as a file",
|
|
546
|
+
type: "button",
|
|
547
|
+
children: "Download"
|
|
548
|
+
})]
|
|
549
|
+
}), _jsx("pre", {
|
|
550
|
+
id: "test-recorder",
|
|
551
|
+
ref: preRef,
|
|
552
|
+
children: templatedTest
|
|
553
|
+
})]
|
|
554
|
+
}) : null;
|
|
555
|
+
let t21;
|
|
556
|
+
if ($[52] !== button || $[53] !== output) {
|
|
557
|
+
t21 = [button, output];
|
|
558
|
+
$[52] = button;
|
|
559
|
+
$[53] = output;
|
|
560
|
+
$[54] = t21;
|
|
561
|
+
} else {
|
|
562
|
+
t21 = $[54];
|
|
563
|
+
}
|
|
564
|
+
return t21;
|
|
453
565
|
}
|
|
454
|
-
export const TestRecorderPlugin = ()=>{
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
})
|
|
467
|
-
]
|
|
566
|
+
export const TestRecorderPlugin = () => {
|
|
567
|
+
const $ = _c(3);
|
|
568
|
+
const [editor] = useLexicalComposerContext();
|
|
569
|
+
const [testRecorderButton, testRecorderOutput] = useTestRecorder(editor);
|
|
570
|
+
let t0;
|
|
571
|
+
if ($[0] !== testRecorderButton || $[1] !== testRecorderOutput) {
|
|
572
|
+
t0 = _jsxs(React.Fragment, {
|
|
573
|
+
children: [_jsx("p", {
|
|
574
|
+
children: "HI"
|
|
575
|
+
}), testRecorderButton, testRecorderOutput, _jsx("p", {
|
|
576
|
+
children: "DONE"
|
|
577
|
+
})]
|
|
468
578
|
});
|
|
579
|
+
$[0] = testRecorderButton;
|
|
580
|
+
$[1] = testRecorderOutput;
|
|
581
|
+
$[2] = t0;
|
|
582
|
+
} else {
|
|
583
|
+
t0 = $[2];
|
|
584
|
+
}
|
|
585
|
+
return t0;
|
|
469
586
|
};
|
|
470
|
-
|
|
471
587
|
//# sourceMappingURL=index.js.map
|