zurfyx-lexical-react 0.39.1-nightly.20251225.0 → 0.39.1-nightly.20251225.1
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/package.json +4 -4
- package/npm/ExtensionComponent.d.ts +0 -42
- package/npm/LexicalAutoEmbedPlugin.d.ts +0 -39
- package/npm/LexicalAutoEmbedPlugin.dev.js +0 -146
- package/npm/LexicalAutoEmbedPlugin.dev.mjs +0 -141
- package/npm/LexicalAutoEmbedPlugin.js +0 -11
- package/npm/LexicalAutoEmbedPlugin.js.flow +0 -64
- package/npm/LexicalAutoEmbedPlugin.mjs +0 -15
- package/npm/LexicalAutoEmbedPlugin.node.mjs +0 -13
- package/npm/LexicalAutoEmbedPlugin.prod.js +0 -9
- package/npm/LexicalAutoEmbedPlugin.prod.mjs +0 -9
- package/npm/LexicalAutoFocusPlugin.d.ts +0 -12
- package/npm/LexicalAutoFocusPlugin.dev.js +0 -47
- package/npm/LexicalAutoFocusPlugin.dev.mjs +0 -45
- package/npm/LexicalAutoFocusPlugin.js +0 -11
- package/npm/LexicalAutoFocusPlugin.js.flow +0 -14
- package/npm/LexicalAutoFocusPlugin.mjs +0 -12
- package/npm/LexicalAutoFocusPlugin.node.mjs +0 -10
- package/npm/LexicalAutoFocusPlugin.prod.js +0 -9
- package/npm/LexicalAutoFocusPlugin.prod.mjs +0 -9
- package/npm/LexicalAutoLinkPlugin.d.ts +0 -14
- package/npm/LexicalAutoLinkPlugin.dev.js +0 -54
- package/npm/LexicalAutoLinkPlugin.dev.mjs +0 -52
- package/npm/LexicalAutoLinkPlugin.js +0 -11
- package/npm/LexicalAutoLinkPlugin.js.flow +0 -18
- package/npm/LexicalAutoLinkPlugin.mjs +0 -13
- package/npm/LexicalAutoLinkPlugin.node.mjs +0 -11
- package/npm/LexicalAutoLinkPlugin.prod.js +0 -9
- package/npm/LexicalAutoLinkPlugin.prod.mjs +0 -9
- package/npm/LexicalBlockWithAlignableContents.d.ts +0 -21
- package/npm/LexicalBlockWithAlignableContents.dev.js +0 -81
- package/npm/LexicalBlockWithAlignableContents.dev.mjs +0 -79
- package/npm/LexicalBlockWithAlignableContents.js +0 -11
- package/npm/LexicalBlockWithAlignableContents.js.flow +0 -28
- package/npm/LexicalBlockWithAlignableContents.mjs +0 -12
- package/npm/LexicalBlockWithAlignableContents.node.mjs +0 -10
- package/npm/LexicalBlockWithAlignableContents.prod.js +0 -9
- package/npm/LexicalBlockWithAlignableContents.prod.mjs +0 -9
- package/npm/LexicalCharacterLimitPlugin.d.ts +0 -15
- package/npm/LexicalCharacterLimitPlugin.dev.js +0 -292
- package/npm/LexicalCharacterLimitPlugin.dev.mjs +0 -290
- package/npm/LexicalCharacterLimitPlugin.js +0 -11
- package/npm/LexicalCharacterLimitPlugin.js.flow +0 -12
- package/npm/LexicalCharacterLimitPlugin.mjs +0 -12
- package/npm/LexicalCharacterLimitPlugin.node.mjs +0 -10
- package/npm/LexicalCharacterLimitPlugin.prod.js +0 -9
- package/npm/LexicalCharacterLimitPlugin.prod.mjs +0 -9
- package/npm/LexicalCheckListPlugin.d.ts +0 -8
- package/npm/LexicalCheckListPlugin.dev.js +0 -31
- package/npm/LexicalCheckListPlugin.dev.mjs +0 -29
- package/npm/LexicalCheckListPlugin.js +0 -11
- package/npm/LexicalCheckListPlugin.js.flow +0 -10
- package/npm/LexicalCheckListPlugin.mjs +0 -12
- package/npm/LexicalCheckListPlugin.node.mjs +0 -10
- package/npm/LexicalCheckListPlugin.prod.js +0 -9
- package/npm/LexicalCheckListPlugin.prod.mjs +0 -9
- package/npm/LexicalClearEditorPlugin.d.ts +0 -13
- package/npm/LexicalClearEditorPlugin.dev.js +0 -55
- package/npm/LexicalClearEditorPlugin.dev.mjs +0 -53
- package/npm/LexicalClearEditorPlugin.js +0 -11
- package/npm/LexicalClearEditorPlugin.js.flow +0 -14
- package/npm/LexicalClearEditorPlugin.mjs +0 -12
- package/npm/LexicalClearEditorPlugin.node.mjs +0 -10
- package/npm/LexicalClearEditorPlugin.prod.js +0 -9
- package/npm/LexicalClearEditorPlugin.prod.mjs +0 -9
- package/npm/LexicalClickableLinkPlugin.d.ts +0 -11
- package/npm/LexicalClickableLinkPlugin.dev.js +0 -38
- package/npm/LexicalClickableLinkPlugin.dev.mjs +0 -36
- package/npm/LexicalClickableLinkPlugin.js +0 -11
- package/npm/LexicalClickableLinkPlugin.js.flow +0 -12
- package/npm/LexicalClickableLinkPlugin.mjs +0 -12
- package/npm/LexicalClickableLinkPlugin.node.mjs +0 -10
- package/npm/LexicalClickableLinkPlugin.prod.js +0 -9
- package/npm/LexicalClickableLinkPlugin.prod.mjs +0 -9
- package/npm/LexicalCollaborationContext.d.ts +0 -19
- package/npm/LexicalCollaborationContext.dev.js +0 -69
- package/npm/LexicalCollaborationContext.dev.mjs +0 -65
- package/npm/LexicalCollaborationContext.js +0 -11
- package/npm/LexicalCollaborationContext.js.flow +0 -22
- package/npm/LexicalCollaborationContext.mjs +0 -14
- package/npm/LexicalCollaborationContext.node.mjs +0 -12
- package/npm/LexicalCollaborationContext.prod.js +0 -9
- package/npm/LexicalCollaborationContext.prod.mjs +0 -9
- package/npm/LexicalCollaborationPlugin.d.ts +0 -39
- package/npm/LexicalCollaborationPlugin.dev.js +0 -558
- package/npm/LexicalCollaborationPlugin.dev.mjs +0 -543
- package/npm/LexicalCollaborationPlugin.js +0 -11
- package/npm/LexicalCollaborationPlugin.js.flow +0 -50
- package/npm/LexicalCollaborationPlugin.mjs +0 -13
- package/npm/LexicalCollaborationPlugin.node.mjs +0 -11
- package/npm/LexicalCollaborationPlugin.prod.js +0 -9
- package/npm/LexicalCollaborationPlugin.prod.mjs +0 -9
- package/npm/LexicalComposer.d.ts +0 -25
- package/npm/LexicalComposer.dev.js +0 -134
- package/npm/LexicalComposer.dev.mjs +0 -132
- package/npm/LexicalComposer.js +0 -11
- package/npm/LexicalComposer.js.flow +0 -40
- package/npm/LexicalComposer.mjs +0 -12
- package/npm/LexicalComposer.node.mjs +0 -10
- package/npm/LexicalComposer.prod.js +0 -9
- package/npm/LexicalComposer.prod.mjs +0 -9
- package/npm/LexicalComposerContext.d.ts +0 -18
- package/npm/LexicalComposerContext.dev.js +0 -55
- package/npm/LexicalComposerContext.dev.mjs +0 -51
- package/npm/LexicalComposerContext.js +0 -11
- package/npm/LexicalComposerContext.js.flow +0 -27
- package/npm/LexicalComposerContext.mjs +0 -14
- package/npm/LexicalComposerContext.node.mjs +0 -12
- package/npm/LexicalComposerContext.prod.js +0 -9
- package/npm/LexicalComposerContext.prod.mjs +0 -9
- package/npm/LexicalContentEditable.d.ts +0 -26
- package/npm/LexicalContentEditable.dev.js +0 -242
- package/npm/LexicalContentEditable.dev.mjs +0 -239
- package/npm/LexicalContentEditable.js +0 -11
- package/npm/LexicalContentEditable.js.flow +0 -80
- package/npm/LexicalContentEditable.mjs +0 -13
- package/npm/LexicalContentEditable.node.mjs +0 -11
- package/npm/LexicalContentEditable.prod.js +0 -9
- package/npm/LexicalContentEditable.prod.mjs +0 -9
- package/npm/LexicalContextMenuPlugin.d.ts +0 -36
- package/npm/LexicalContextMenuPlugin.dev.js +0 -524
- package/npm/LexicalContextMenuPlugin.dev.mjs +0 -509
- package/npm/LexicalContextMenuPlugin.js +0 -11
- package/npm/LexicalContextMenuPlugin.js.flow +0 -13
- package/npm/LexicalContextMenuPlugin.mjs +0 -13
- package/npm/LexicalContextMenuPlugin.node.mjs +0 -11
- package/npm/LexicalContextMenuPlugin.prod.js +0 -9
- package/npm/LexicalContextMenuPlugin.prod.mjs +0 -9
- package/npm/LexicalDecoratorBlockNode.d.ts +0 -25
- package/npm/LexicalDecoratorBlockNode.dev.js +0 -59
- package/npm/LexicalDecoratorBlockNode.dev.mjs +0 -56
- package/npm/LexicalDecoratorBlockNode.js +0 -11
- package/npm/LexicalDecoratorBlockNode.js.flow +0 -35
- package/npm/LexicalDecoratorBlockNode.mjs +0 -13
- package/npm/LexicalDecoratorBlockNode.node.mjs +0 -11
- package/npm/LexicalDecoratorBlockNode.prod.js +0 -9
- package/npm/LexicalDecoratorBlockNode.prod.mjs +0 -9
- package/npm/LexicalDraggableBlockPlugin.d.ts +0 -18
- package/npm/LexicalDraggableBlockPlugin.dev.js +0 -534
- package/npm/LexicalDraggableBlockPlugin.dev.mjs +0 -532
- package/npm/LexicalDraggableBlockPlugin.js +0 -11
- package/npm/LexicalDraggableBlockPlugin.js.flow +0 -24
- package/npm/LexicalDraggableBlockPlugin.mjs +0 -12
- package/npm/LexicalDraggableBlockPlugin.node.mjs +0 -10
- package/npm/LexicalDraggableBlockPlugin.prod.js +0 -9
- package/npm/LexicalDraggableBlockPlugin.prod.mjs +0 -9
- package/npm/LexicalEditorRefPlugin.d.ts +0 -20
- package/npm/LexicalEditorRefPlugin.dev.js +0 -58
- package/npm/LexicalEditorRefPlugin.dev.mjs +0 -43
- package/npm/LexicalEditorRefPlugin.js +0 -11
- package/npm/LexicalEditorRefPlugin.js.flow +0 -19
- package/npm/LexicalEditorRefPlugin.mjs +0 -12
- package/npm/LexicalEditorRefPlugin.node.mjs +0 -10
- package/npm/LexicalEditorRefPlugin.prod.js +0 -9
- package/npm/LexicalEditorRefPlugin.prod.mjs +0 -9
- package/npm/LexicalErrorBoundary.d.ts +0 -13
- package/npm/LexicalErrorBoundary.dev.js +0 -40
- package/npm/LexicalErrorBoundary.dev.mjs +0 -38
- package/npm/LexicalErrorBoundary.js +0 -11
- package/npm/LexicalErrorBoundary.js.flow +0 -17
- package/npm/LexicalErrorBoundary.mjs +0 -12
- package/npm/LexicalErrorBoundary.node.mjs +0 -10
- package/npm/LexicalErrorBoundary.prod.js +0 -9
- package/npm/LexicalErrorBoundary.prod.mjs +0 -9
- package/npm/LexicalExtensionComponent.dev.js +0 -53
- package/npm/LexicalExtensionComponent.dev.mjs +0 -51
- package/npm/LexicalExtensionComponent.js +0 -11
- package/npm/LexicalExtensionComponent.js.flow +0 -12
- package/npm/LexicalExtensionComponent.mjs +0 -12
- package/npm/LexicalExtensionComponent.node.mjs +0 -10
- package/npm/LexicalExtensionComponent.prod.js +0 -9
- package/npm/LexicalExtensionComponent.prod.mjs +0 -9
- package/npm/LexicalExtensionComposer.d.ts +0 -69
- package/npm/LexicalExtensionComposer.dev.js +0 -105
- package/npm/LexicalExtensionComposer.dev.mjs +0 -103
- package/npm/LexicalExtensionComposer.js +0 -11
- package/npm/LexicalExtensionComposer.js.flow +0 -20
- package/npm/LexicalExtensionComposer.mjs +0 -12
- package/npm/LexicalExtensionComposer.node.mjs +0 -10
- package/npm/LexicalExtensionComposer.prod.js +0 -9
- package/npm/LexicalExtensionComposer.prod.mjs +0 -9
- package/npm/LexicalHashtagPlugin.d.ts +0 -9
- package/npm/LexicalHashtagPlugin.dev.js +0 -34
- package/npm/LexicalHashtagPlugin.dev.mjs +0 -32
- package/npm/LexicalHashtagPlugin.js +0 -11
- package/npm/LexicalHashtagPlugin.js.flow +0 -10
- package/npm/LexicalHashtagPlugin.mjs +0 -12
- package/npm/LexicalHashtagPlugin.node.mjs +0 -10
- package/npm/LexicalHashtagPlugin.prod.js +0 -9
- package/npm/LexicalHashtagPlugin.prod.mjs +0 -9
- package/npm/LexicalHistoryPlugin.d.ts +0 -14
- package/npm/LexicalHistoryPlugin.dev.js +0 -48
- package/npm/LexicalHistoryPlugin.dev.mjs +0 -46
- package/npm/LexicalHistoryPlugin.js +0 -11
- package/npm/LexicalHistoryPlugin.js.flow +0 -28
- package/npm/LexicalHistoryPlugin.mjs +0 -13
- package/npm/LexicalHistoryPlugin.node.mjs +0 -11
- package/npm/LexicalHistoryPlugin.prod.js +0 -9
- package/npm/LexicalHistoryPlugin.prod.mjs +0 -9
- package/npm/LexicalHorizontalRuleNode.d.ts +0 -25
- package/npm/LexicalHorizontalRuleNode.dev.js +0 -102
- package/npm/LexicalHorizontalRuleNode.dev.mjs +0 -98
- package/npm/LexicalHorizontalRuleNode.js +0 -11
- package/npm/LexicalHorizontalRuleNode.js.flow +0 -27
- package/npm/LexicalHorizontalRuleNode.mjs +0 -15
- package/npm/LexicalHorizontalRuleNode.node.mjs +0 -13
- package/npm/LexicalHorizontalRuleNode.prod.js +0 -9
- package/npm/LexicalHorizontalRuleNode.prod.mjs +0 -9
- package/npm/LexicalHorizontalRulePlugin.d.ts +0 -8
- package/npm/LexicalHorizontalRulePlugin.dev.js +0 -44
- package/npm/LexicalHorizontalRulePlugin.dev.mjs +0 -42
- package/npm/LexicalHorizontalRulePlugin.js +0 -11
- package/npm/LexicalHorizontalRulePlugin.js.flow +0 -12
- package/npm/LexicalHorizontalRulePlugin.mjs +0 -12
- package/npm/LexicalHorizontalRulePlugin.node.mjs +0 -10
- package/npm/LexicalHorizontalRulePlugin.prod.js +0 -9
- package/npm/LexicalHorizontalRulePlugin.prod.mjs +0 -9
- package/npm/LexicalLinkPlugin.d.ts +0 -14
- package/npm/LexicalLinkPlugin.dev.js +0 -43
- package/npm/LexicalLinkPlugin.dev.mjs +0 -41
- package/npm/LexicalLinkPlugin.js +0 -11
- package/npm/LexicalLinkPlugin.js.flow +0 -21
- package/npm/LexicalLinkPlugin.mjs +0 -12
- package/npm/LexicalLinkPlugin.node.mjs +0 -10
- package/npm/LexicalLinkPlugin.prod.js +0 -9
- package/npm/LexicalLinkPlugin.prod.mjs +0 -9
- package/npm/LexicalListPlugin.d.ts +0 -15
- package/npm/LexicalListPlugin.dev.js +0 -56
- package/npm/LexicalListPlugin.dev.mjs +0 -54
- package/npm/LexicalListPlugin.js +0 -11
- package/npm/LexicalListPlugin.js.flow +0 -15
- package/npm/LexicalListPlugin.mjs +0 -12
- package/npm/LexicalListPlugin.node.mjs +0 -10
- package/npm/LexicalListPlugin.prod.js +0 -9
- package/npm/LexicalListPlugin.prod.mjs +0 -9
- package/npm/LexicalMarkdownShortcutPlugin.d.ts +0 -12
- package/npm/LexicalMarkdownShortcutPlugin.dev.js +0 -55
- package/npm/LexicalMarkdownShortcutPlugin.dev.mjs +0 -52
- package/npm/LexicalMarkdownShortcutPlugin.js +0 -11
- package/npm/LexicalMarkdownShortcutPlugin.js.flow +0 -16
- package/npm/LexicalMarkdownShortcutPlugin.mjs +0 -13
- package/npm/LexicalMarkdownShortcutPlugin.node.mjs +0 -11
- package/npm/LexicalMarkdownShortcutPlugin.prod.js +0 -9
- package/npm/LexicalMarkdownShortcutPlugin.prod.mjs +0 -9
- package/npm/LexicalNestedComposer.d.ts +0 -57
- package/npm/LexicalNestedComposer.dev.js +0 -161
- package/npm/LexicalNestedComposer.dev.mjs +0 -159
- package/npm/LexicalNestedComposer.js +0 -11
- package/npm/LexicalNestedComposer.js.flow +0 -26
- package/npm/LexicalNestedComposer.mjs +0 -12
- package/npm/LexicalNestedComposer.node.mjs +0 -10
- package/npm/LexicalNestedComposer.prod.js +0 -9
- package/npm/LexicalNestedComposer.prod.mjs +0 -9
- package/npm/LexicalNodeContextMenuPlugin.d.ts +0 -46
- package/npm/LexicalNodeContextMenuPlugin.dev.js +0 -257
- package/npm/LexicalNodeContextMenuPlugin.dev.mjs +0 -253
- package/npm/LexicalNodeContextMenuPlugin.js +0 -11
- package/npm/LexicalNodeContextMenuPlugin.js.flow +0 -12
- package/npm/LexicalNodeContextMenuPlugin.mjs +0 -14
- package/npm/LexicalNodeContextMenuPlugin.node.mjs +0 -12
- package/npm/LexicalNodeContextMenuPlugin.prod.js +0 -9
- package/npm/LexicalNodeContextMenuPlugin.prod.mjs +0 -9
- package/npm/LexicalNodeEventPlugin.d.ts +0 -13
- package/npm/LexicalNodeEventPlugin.dev.js +0 -61
- package/npm/LexicalNodeEventPlugin.dev.mjs +0 -59
- package/npm/LexicalNodeEventPlugin.js +0 -11
- package/npm/LexicalNodeEventPlugin.js.flow +0 -20
- package/npm/LexicalNodeEventPlugin.mjs +0 -12
- package/npm/LexicalNodeEventPlugin.node.mjs +0 -10
- package/npm/LexicalNodeEventPlugin.prod.js +0 -9
- package/npm/LexicalNodeEventPlugin.prod.mjs +0 -9
- package/npm/LexicalNodeMenuPlugin.d.ts +0 -24
- package/npm/LexicalNodeMenuPlugin.dev.js +0 -527
- package/npm/LexicalNodeMenuPlugin.dev.mjs +0 -524
- package/npm/LexicalNodeMenuPlugin.js +0 -11
- package/npm/LexicalNodeMenuPlugin.js.flow +0 -64
- package/npm/LexicalNodeMenuPlugin.mjs +0 -13
- package/npm/LexicalNodeMenuPlugin.node.mjs +0 -11
- package/npm/LexicalNodeMenuPlugin.prod.js +0 -9
- package/npm/LexicalNodeMenuPlugin.prod.mjs +0 -9
- package/npm/LexicalOnChangePlugin.d.ts +0 -13
- package/npm/LexicalOnChangePlugin.dev.js +0 -72
- package/npm/LexicalOnChangePlugin.dev.mjs +0 -70
- package/npm/LexicalOnChangePlugin.js +0 -11
- package/npm/LexicalOnChangePlugin.js.flow +0 -16
- package/npm/LexicalOnChangePlugin.mjs +0 -12
- package/npm/LexicalOnChangePlugin.node.mjs +0 -10
- package/npm/LexicalOnChangePlugin.prod.js +0 -9
- package/npm/LexicalOnChangePlugin.prod.mjs +0 -9
- package/npm/LexicalPlainTextPlugin.d.ts +0 -14
- package/npm/LexicalPlainTextPlugin.dev.js +0 -235
- package/npm/LexicalPlainTextPlugin.dev.mjs +0 -233
- package/npm/LexicalPlainTextPlugin.js +0 -11
- package/npm/LexicalPlainTextPlugin.js.flow +0 -29
- package/npm/LexicalPlainTextPlugin.mjs +0 -12
- package/npm/LexicalPlainTextPlugin.node.mjs +0 -10
- package/npm/LexicalPlainTextPlugin.prod.js +0 -9
- package/npm/LexicalPlainTextPlugin.prod.mjs +0 -9
- package/npm/LexicalReactExtension.dev.js +0 -187
- package/npm/LexicalReactExtension.dev.mjs +0 -184
- package/npm/LexicalReactExtension.js +0 -11
- package/npm/LexicalReactExtension.js.flow +0 -68
- package/npm/LexicalReactExtension.mjs +0 -13
- package/npm/LexicalReactExtension.node.mjs +0 -11
- package/npm/LexicalReactExtension.prod.js +0 -9
- package/npm/LexicalReactExtension.prod.mjs +0 -9
- package/npm/LexicalReactPluginHostExtension.dev.js +0 -189
- package/npm/LexicalReactPluginHostExtension.dev.mjs +0 -181
- package/npm/LexicalReactPluginHostExtension.js +0 -11
- package/npm/LexicalReactPluginHostExtension.js.flow +0 -84
- package/npm/LexicalReactPluginHostExtension.mjs +0 -18
- package/npm/LexicalReactPluginHostExtension.node.mjs +0 -16
- package/npm/LexicalReactPluginHostExtension.prod.js +0 -9
- package/npm/LexicalReactPluginHostExtension.prod.mjs +0 -9
- package/npm/LexicalReactProviderExtension.dev.js +0 -33
- package/npm/LexicalReactProviderExtension.dev.mjs +0 -31
- package/npm/LexicalReactProviderExtension.js +0 -11
- package/npm/LexicalReactProviderExtension.js.flow +0 -12
- package/npm/LexicalReactProviderExtension.mjs +0 -12
- package/npm/LexicalReactProviderExtension.node.mjs +0 -10
- package/npm/LexicalReactProviderExtension.prod.js +0 -9
- package/npm/LexicalReactProviderExtension.prod.mjs +0 -9
- package/npm/LexicalRichTextPlugin.d.ts +0 -14
- package/npm/LexicalRichTextPlugin.dev.js +0 -235
- package/npm/LexicalRichTextPlugin.dev.mjs +0 -233
- package/npm/LexicalRichTextPlugin.js +0 -11
- package/npm/LexicalRichTextPlugin.js.flow +0 -29
- package/npm/LexicalRichTextPlugin.mjs +0 -12
- package/npm/LexicalRichTextPlugin.node.mjs +0 -10
- package/npm/LexicalRichTextPlugin.prod.js +0 -9
- package/npm/LexicalRichTextPlugin.prod.mjs +0 -9
- package/npm/LexicalSelectionAlwaysOnDisplay.d.ts +0 -8
- package/npm/LexicalSelectionAlwaysOnDisplay.dev.js +0 -31
- package/npm/LexicalSelectionAlwaysOnDisplay.dev.mjs +0 -29
- package/npm/LexicalSelectionAlwaysOnDisplay.js +0 -11
- package/npm/LexicalSelectionAlwaysOnDisplay.js.flow +0 -13
- package/npm/LexicalSelectionAlwaysOnDisplay.mjs +0 -12
- package/npm/LexicalSelectionAlwaysOnDisplay.node.mjs +0 -10
- package/npm/LexicalSelectionAlwaysOnDisplay.prod.js +0 -9
- package/npm/LexicalSelectionAlwaysOnDisplay.prod.mjs +0 -9
- package/npm/LexicalTabIndentationPlugin.d.ts +0 -17
- package/npm/LexicalTabIndentationPlugin.dev.js +0 -40
- package/npm/LexicalTabIndentationPlugin.dev.mjs +0 -38
- package/npm/LexicalTabIndentationPlugin.js +0 -11
- package/npm/LexicalTabIndentationPlugin.js.flow +0 -21
- package/npm/LexicalTabIndentationPlugin.mjs +0 -13
- package/npm/LexicalTabIndentationPlugin.node.mjs +0 -11
- package/npm/LexicalTabIndentationPlugin.prod.js +0 -9
- package/npm/LexicalTabIndentationPlugin.prod.mjs +0 -9
- package/npm/LexicalTableOfContentsPlugin.d.ts +0 -20
- package/npm/LexicalTableOfContentsPlugin.dev.js +0 -209
- package/npm/LexicalTableOfContentsPlugin.dev.mjs +0 -207
- package/npm/LexicalTableOfContentsPlugin.js +0 -11
- package/npm/LexicalTableOfContentsPlugin.js.flow +0 -18
- package/npm/LexicalTableOfContentsPlugin.mjs +0 -12
- package/npm/LexicalTableOfContentsPlugin.node.mjs +0 -10
- package/npm/LexicalTableOfContentsPlugin.prod.js +0 -9
- package/npm/LexicalTableOfContentsPlugin.prod.mjs +0 -9
- package/npm/LexicalTablePlugin.d.ts +0 -40
- package/npm/LexicalTablePlugin.dev.js +0 -77
- package/npm/LexicalTablePlugin.dev.mjs +0 -75
- package/npm/LexicalTablePlugin.js +0 -11
- package/npm/LexicalTablePlugin.js.flow +0 -15
- package/npm/LexicalTablePlugin.mjs +0 -12
- package/npm/LexicalTablePlugin.node.mjs +0 -10
- package/npm/LexicalTablePlugin.prod.js +0 -9
- package/npm/LexicalTablePlugin.prod.mjs +0 -9
- package/npm/LexicalTreeView.d.ts +0 -37
- package/npm/LexicalTreeView.dev.js +0 -105
- package/npm/LexicalTreeView.dev.mjs +0 -91
- package/npm/LexicalTreeView.js +0 -11
- package/npm/LexicalTreeView.js.flow +0 -21
- package/npm/LexicalTreeView.mjs +0 -12
- package/npm/LexicalTreeView.node.mjs +0 -10
- package/npm/LexicalTreeView.prod.js +0 -9
- package/npm/LexicalTreeView.prod.mjs +0 -9
- package/npm/LexicalTreeViewExtension.dev.js +0 -57
- package/npm/LexicalTreeViewExtension.dev.mjs +0 -54
- package/npm/LexicalTreeViewExtension.js +0 -11
- package/npm/LexicalTreeViewExtension.js.flow +0 -12
- package/npm/LexicalTreeViewExtension.mjs +0 -13
- package/npm/LexicalTreeViewExtension.node.mjs +0 -11
- package/npm/LexicalTreeViewExtension.prod.js +0 -9
- package/npm/LexicalTreeViewExtension.prod.mjs +0 -9
- package/npm/LexicalTypeaheadMenuPlugin.d.ts +0 -40
- package/npm/LexicalTypeaheadMenuPlugin.dev.js +0 -654
- package/npm/LexicalTypeaheadMenuPlugin.dev.mjs +0 -646
- package/npm/LexicalTypeaheadMenuPlugin.js +0 -11
- package/npm/LexicalTypeaheadMenuPlugin.js.flow +0 -83
- package/npm/LexicalTypeaheadMenuPlugin.mjs +0 -18
- package/npm/LexicalTypeaheadMenuPlugin.node.mjs +0 -16
- package/npm/LexicalTypeaheadMenuPlugin.prod.js +0 -9
- package/npm/LexicalTypeaheadMenuPlugin.prod.mjs +0 -9
- package/npm/README.md +0 -90
- package/npm/ReactExtension.d.ts +0 -41
- package/npm/ReactPluginHostExtension.d.ts +0 -56
- package/npm/ReactProviderExtension.d.ts +0 -9
- package/npm/TreeViewExtension.d.ts +0 -18
- package/npm/package.json +0 -1549
- package/npm/shared/LegacyDecorators.d.ts +0 -23
- package/npm/shared/LexicalContentEditableElement.d.ts +0 -43
- package/npm/shared/LexicalMenu.d.ts +0 -52
- package/npm/shared/buildEditorComponent.d.ts +0 -11
- package/npm/shared/mergeRefs.d.ts +0 -9
- package/npm/shared/point.d.ts +0 -21
- package/npm/shared/rect.d.ts +0 -45
- package/npm/shared/types.d.ts +0 -89
- package/npm/shared/useCanShowPlaceholder.d.ts +0 -9
- package/npm/shared/useCharacterLimit.d.ts +0 -16
- package/npm/shared/useDecorators.d.ts +0 -17
- package/npm/shared/useHistory.d.ts +0 -10
- package/npm/shared/useList.d.ts +0 -9
- package/npm/shared/usePlainTextSetup.d.ts +0 -9
- package/npm/shared/useReactDecorators.d.ts +0 -12
- package/npm/shared/useRichTextSetup.d.ts +0 -9
- package/npm/shared/useYjsCollaboration.d.ts +0 -25
- package/npm/useExtensionComponent.d.ts +0 -10
- package/npm/useLexicalEditable.d.ts +0 -16
- package/npm/useLexicalEditable.dev.js +0 -102
- package/npm/useLexicalEditable.dev.mjs +0 -100
- package/npm/useLexicalEditable.js +0 -11
- package/npm/useLexicalEditable.js.flow +0 -12
- package/npm/useLexicalEditable.mjs +0 -12
- package/npm/useLexicalEditable.node.mjs +0 -10
- package/npm/useLexicalEditable.prod.js +0 -9
- package/npm/useLexicalEditable.prod.mjs +0 -9
- package/npm/useLexicalExtensionComponent.dev.js +0 -37
- package/npm/useLexicalExtensionComponent.dev.mjs +0 -34
- package/npm/useLexicalExtensionComponent.js +0 -11
- package/npm/useLexicalExtensionComponent.js.flow +0 -12
- package/npm/useLexicalExtensionComponent.mjs +0 -13
- package/npm/useLexicalExtensionComponent.node.mjs +0 -11
- package/npm/useLexicalExtensionComponent.prod.js +0 -9
- package/npm/useLexicalExtensionComponent.prod.mjs +0 -9
- package/npm/useLexicalIsTextContentEmpty.d.ts +0 -9
- package/npm/useLexicalIsTextContentEmpty.dev.js +0 -60
- package/npm/useLexicalIsTextContentEmpty.dev.mjs +0 -58
- package/npm/useLexicalIsTextContentEmpty.js +0 -11
- package/npm/useLexicalIsTextContentEmpty.js.flow +0 -15
- package/npm/useLexicalIsTextContentEmpty.mjs +0 -12
- package/npm/useLexicalIsTextContentEmpty.node.mjs +0 -10
- package/npm/useLexicalIsTextContentEmpty.prod.js +0 -9
- package/npm/useLexicalIsTextContentEmpty.prod.mjs +0 -9
- package/npm/useLexicalNodeSelection.d.ts +0 -24
- package/npm/useLexicalNodeSelection.dev.js +0 -102
- package/npm/useLexicalNodeSelection.dev.mjs +0 -100
- package/npm/useLexicalNodeSelection.js +0 -11
- package/npm/useLexicalNodeSelection.js.flow +0 -14
- package/npm/useLexicalNodeSelection.mjs +0 -12
- package/npm/useLexicalNodeSelection.node.mjs +0 -10
- package/npm/useLexicalNodeSelection.prod.js +0 -9
- package/npm/useLexicalNodeSelection.prod.mjs +0 -9
- package/npm/useLexicalSubscription.d.ts +0 -17
- package/npm/useLexicalSubscription.dev.js +0 -73
- package/npm/useLexicalSubscription.dev.mjs +0 -71
- package/npm/useLexicalSubscription.js +0 -11
- package/npm/useLexicalSubscription.js.flow +0 -19
- package/npm/useLexicalSubscription.mjs +0 -12
- package/npm/useLexicalSubscription.node.mjs +0 -10
- package/npm/useLexicalSubscription.prod.js +0 -9
- package/npm/useLexicalSubscription.prod.mjs +0 -9
- package/npm/useLexicalTextEntity.d.ts +0 -10
- package/npm/useLexicalTextEntity.dev.js +0 -31
- package/npm/useLexicalTextEntity.dev.mjs +0 -29
- package/npm/useLexicalTextEntity.js +0 -11
- package/npm/useLexicalTextEntity.js.flow +0 -18
- package/npm/useLexicalTextEntity.mjs +0 -12
- package/npm/useLexicalTextEntity.node.mjs +0 -10
- package/npm/useLexicalTextEntity.prod.js +0 -9
- package/npm/useLexicalTextEntity.prod.mjs +0 -9
- package/src/ExtensionComponent.tsx +0 -57
- package/src/LexicalAutoEmbedPlugin.tsx +0 -242
- package/src/LexicalAutoFocusPlugin.ts +0 -41
- package/src/LexicalAutoLinkPlugin.ts +0 -57
- package/src/LexicalBlockWithAlignableContents.tsx +0 -119
- package/src/LexicalCharacterLimitPlugin.tsx +0 -91
- package/src/LexicalCheckListPlugin.tsx +0 -20
- package/src/LexicalClearEditorPlugin.ts +0 -26
- package/src/LexicalClickableLinkPlugin.tsx +0 -28
- package/src/LexicalCollaborationContext.tsx +0 -89
- package/src/LexicalCollaborationPlugin.tsx +0 -265
- package/src/LexicalComposer.tsx +0 -151
- package/src/LexicalComposerContext.ts +0 -63
- package/src/LexicalContentEditable.tsx +0 -97
- package/src/LexicalContextMenuPlugin.tsx +0 -169
- package/src/LexicalDecoratorBlockNode.ts +0 -78
- package/src/LexicalDraggableBlockPlugin.tsx +0 -481
- package/src/LexicalEditorRefPlugin.tsx +0 -40
- package/src/LexicalErrorBoundary.tsx +0 -39
- package/src/LexicalExtensionComposer.tsx +0 -117
- package/src/LexicalHashtagPlugin.ts +0 -26
- package/src/LexicalHistoryPlugin.ts +0 -31
- package/src/LexicalHorizontalRuleNode.tsx +0 -123
- package/src/LexicalHorizontalRulePlugin.ts +0 -49
- package/src/LexicalLinkPlugin.ts +0 -32
- package/src/LexicalListPlugin.ts +0 -49
- package/src/LexicalMarkdownShortcutPlugin.tsx +0 -55
- package/src/LexicalNestedComposer.tsx +0 -215
- package/src/LexicalNodeContextMenuPlugin.tsx +0 -316
- package/src/LexicalNodeEventPlugin.ts +0 -73
- package/src/LexicalNodeMenuPlugin.tsx +0 -130
- package/src/LexicalOnChangePlugin.ts +0 -51
- package/src/LexicalPlainTextPlugin.tsx +0 -65
- package/src/LexicalRichTextPlugin.tsx +0 -65
- package/src/LexicalSelectionAlwaysOnDisplay.tsx +0 -20
- package/src/LexicalTabIndentationPlugin.tsx +0 -27
- package/src/LexicalTableOfContentsPlugin.tsx +0 -277
- package/src/LexicalTablePlugin.ts +0 -110
- package/src/LexicalTreeView.tsx +0 -128
- package/src/LexicalTypeaheadMenuPlugin.tsx +0 -354
- package/src/ReactExtension.tsx +0 -113
- package/src/ReactPluginHostExtension.tsx +0 -228
- package/src/ReactProviderExtension.tsx +0 -20
- package/src/TreeViewExtension.tsx +0 -48
- package/src/__tests__/unit/Collaboration.test.ts +0 -563
- package/src/__tests__/unit/CollaborationSnapshot.test.ts +0 -461
- package/src/__tests__/unit/CollaborationWithCollisions.test.ts +0 -246
- package/src/__tests__/unit/LexicalCollaborationPlugin.test.tsx +0 -101
- package/src/__tests__/unit/LexicalComposer.test.tsx +0 -129
- package/src/__tests__/unit/LexicalContentEditableElement.test.tsx +0 -264
- package/src/__tests__/unit/LexicalExtensionComposer.test.tsx +0 -85
- package/src/__tests__/unit/LexicalNestedComposer.test.tsx +0 -1142
- package/src/__tests__/unit/PlainRichTextPlugin.test.tsx +0 -246
- package/src/__tests__/unit/React19.test.tsx +0 -52
- package/src/__tests__/unit/ReactExtension.test.tsx +0 -32
- package/src/__tests__/unit/ReactPluginHostExtension.test.tsx +0 -137
- package/src/__tests__/unit/useLexicalCharacterLimit.test.ts +0 -194
- package/src/__tests__/unit/useLexicalIsTextContentEmpty.test.tsx +0 -96
- package/src/__tests__/unit/useMenuAnchorRef.test.tsx +0 -65
- package/src/__tests__/unit/utils.tsx +0 -356
- package/src/shared/LegacyDecorators.tsx +0 -62
- package/src/shared/LexicalContentEditableElement.tsx +0 -126
- package/src/shared/LexicalMenu.ts +0 -664
- package/src/shared/buildEditorComponent.tsx +0 -61
- package/src/shared/mergeRefs.ts +0 -20
- package/src/shared/point.ts +0 -55
- package/src/shared/rect.ts +0 -158
- package/src/shared/types.ts +0 -106
- package/src/shared/useCanShowPlaceholder.ts +0 -49
- package/src/shared/useCharacterLimit.ts +0 -315
- package/src/shared/useDecorators.tsx +0 -71
- package/src/shared/useHistory.ts +0 -28
- package/src/shared/useList.ts +0 -18
- package/src/shared/usePlainTextSetup.ts +0 -26
- package/src/shared/useReactDecorators.tsx +0 -53
- package/src/shared/useRichTextSetup.ts +0 -26
- package/src/shared/useYjsCollaboration.tsx +0 -666
- package/src/useExtensionComponent.tsx +0 -38
- package/src/useLexicalEditable.ts +0 -33
- package/src/useLexicalIsTextContentEmpty.ts +0 -36
- package/src/useLexicalNodeSelection.ts +0 -114
- package/src/useLexicalSubscription.tsx +0 -51
- package/src/useLexicalTextEntity.ts +0 -29
- /package/{dist/ExtensionComponent.d.ts → ExtensionComponent.d.ts} +0 -0
- /package/{npm/LICENSE → LICENSE} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.d.ts → LexicalAutoEmbedPlugin.d.ts} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.dev.js → LexicalAutoEmbedPlugin.dev.js} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.dev.mjs → LexicalAutoEmbedPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.js → LexicalAutoEmbedPlugin.js} +0 -0
- /package/{flow/LexicalAutoEmbedPlugin.js.flow → LexicalAutoEmbedPlugin.js.flow} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.mjs → LexicalAutoEmbedPlugin.mjs} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.node.mjs → LexicalAutoEmbedPlugin.node.mjs} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.prod.js → LexicalAutoEmbedPlugin.prod.js} +0 -0
- /package/{dist/LexicalAutoEmbedPlugin.prod.mjs → LexicalAutoEmbedPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.d.ts → LexicalAutoFocusPlugin.d.ts} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.dev.js → LexicalAutoFocusPlugin.dev.js} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.dev.mjs → LexicalAutoFocusPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.js → LexicalAutoFocusPlugin.js} +0 -0
- /package/{flow/LexicalAutoFocusPlugin.js.flow → LexicalAutoFocusPlugin.js.flow} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.mjs → LexicalAutoFocusPlugin.mjs} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.node.mjs → LexicalAutoFocusPlugin.node.mjs} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.prod.js → LexicalAutoFocusPlugin.prod.js} +0 -0
- /package/{dist/LexicalAutoFocusPlugin.prod.mjs → LexicalAutoFocusPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.d.ts → LexicalAutoLinkPlugin.d.ts} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.dev.js → LexicalAutoLinkPlugin.dev.js} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.dev.mjs → LexicalAutoLinkPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.js → LexicalAutoLinkPlugin.js} +0 -0
- /package/{flow/LexicalAutoLinkPlugin.js.flow → LexicalAutoLinkPlugin.js.flow} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.mjs → LexicalAutoLinkPlugin.mjs} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.node.mjs → LexicalAutoLinkPlugin.node.mjs} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.prod.js → LexicalAutoLinkPlugin.prod.js} +0 -0
- /package/{dist/LexicalAutoLinkPlugin.prod.mjs → LexicalAutoLinkPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.d.ts → LexicalBlockWithAlignableContents.d.ts} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.dev.js → LexicalBlockWithAlignableContents.dev.js} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.dev.mjs → LexicalBlockWithAlignableContents.dev.mjs} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.js → LexicalBlockWithAlignableContents.js} +0 -0
- /package/{flow/LexicalBlockWithAlignableContents.js.flow → LexicalBlockWithAlignableContents.js.flow} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.mjs → LexicalBlockWithAlignableContents.mjs} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.node.mjs → LexicalBlockWithAlignableContents.node.mjs} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.prod.js → LexicalBlockWithAlignableContents.prod.js} +0 -0
- /package/{dist/LexicalBlockWithAlignableContents.prod.mjs → LexicalBlockWithAlignableContents.prod.mjs} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.d.ts → LexicalCharacterLimitPlugin.d.ts} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.dev.js → LexicalCharacterLimitPlugin.dev.js} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.dev.mjs → LexicalCharacterLimitPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.js → LexicalCharacterLimitPlugin.js} +0 -0
- /package/{flow/LexicalCharacterLimitPlugin.js.flow → LexicalCharacterLimitPlugin.js.flow} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.mjs → LexicalCharacterLimitPlugin.mjs} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.node.mjs → LexicalCharacterLimitPlugin.node.mjs} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.prod.js → LexicalCharacterLimitPlugin.prod.js} +0 -0
- /package/{dist/LexicalCharacterLimitPlugin.prod.mjs → LexicalCharacterLimitPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalCheckListPlugin.d.ts → LexicalCheckListPlugin.d.ts} +0 -0
- /package/{dist/LexicalCheckListPlugin.dev.js → LexicalCheckListPlugin.dev.js} +0 -0
- /package/{dist/LexicalCheckListPlugin.dev.mjs → LexicalCheckListPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalCheckListPlugin.js → LexicalCheckListPlugin.js} +0 -0
- /package/{flow/LexicalCheckListPlugin.js.flow → LexicalCheckListPlugin.js.flow} +0 -0
- /package/{dist/LexicalCheckListPlugin.mjs → LexicalCheckListPlugin.mjs} +0 -0
- /package/{dist/LexicalCheckListPlugin.node.mjs → LexicalCheckListPlugin.node.mjs} +0 -0
- /package/{dist/LexicalCheckListPlugin.prod.js → LexicalCheckListPlugin.prod.js} +0 -0
- /package/{dist/LexicalCheckListPlugin.prod.mjs → LexicalCheckListPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalClearEditorPlugin.d.ts → LexicalClearEditorPlugin.d.ts} +0 -0
- /package/{dist/LexicalClearEditorPlugin.dev.js → LexicalClearEditorPlugin.dev.js} +0 -0
- /package/{dist/LexicalClearEditorPlugin.dev.mjs → LexicalClearEditorPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalClearEditorPlugin.js → LexicalClearEditorPlugin.js} +0 -0
- /package/{flow/LexicalClearEditorPlugin.js.flow → LexicalClearEditorPlugin.js.flow} +0 -0
- /package/{dist/LexicalClearEditorPlugin.mjs → LexicalClearEditorPlugin.mjs} +0 -0
- /package/{dist/LexicalClearEditorPlugin.node.mjs → LexicalClearEditorPlugin.node.mjs} +0 -0
- /package/{dist/LexicalClearEditorPlugin.prod.js → LexicalClearEditorPlugin.prod.js} +0 -0
- /package/{dist/LexicalClearEditorPlugin.prod.mjs → LexicalClearEditorPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.d.ts → LexicalClickableLinkPlugin.d.ts} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.dev.js → LexicalClickableLinkPlugin.dev.js} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.dev.mjs → LexicalClickableLinkPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.js → LexicalClickableLinkPlugin.js} +0 -0
- /package/{flow/LexicalClickableLinkPlugin.js.flow → LexicalClickableLinkPlugin.js.flow} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.mjs → LexicalClickableLinkPlugin.mjs} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.node.mjs → LexicalClickableLinkPlugin.node.mjs} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.prod.js → LexicalClickableLinkPlugin.prod.js} +0 -0
- /package/{dist/LexicalClickableLinkPlugin.prod.mjs → LexicalClickableLinkPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalCollaborationContext.d.ts → LexicalCollaborationContext.d.ts} +0 -0
- /package/{dist/LexicalCollaborationContext.dev.js → LexicalCollaborationContext.dev.js} +0 -0
- /package/{dist/LexicalCollaborationContext.dev.mjs → LexicalCollaborationContext.dev.mjs} +0 -0
- /package/{dist/LexicalCollaborationContext.js → LexicalCollaborationContext.js} +0 -0
- /package/{flow/LexicalCollaborationContext.js.flow → LexicalCollaborationContext.js.flow} +0 -0
- /package/{dist/LexicalCollaborationContext.mjs → LexicalCollaborationContext.mjs} +0 -0
- /package/{dist/LexicalCollaborationContext.node.mjs → LexicalCollaborationContext.node.mjs} +0 -0
- /package/{dist/LexicalCollaborationContext.prod.js → LexicalCollaborationContext.prod.js} +0 -0
- /package/{dist/LexicalCollaborationContext.prod.mjs → LexicalCollaborationContext.prod.mjs} +0 -0
- /package/{dist/LexicalCollaborationPlugin.d.ts → LexicalCollaborationPlugin.d.ts} +0 -0
- /package/{dist/LexicalCollaborationPlugin.dev.js → LexicalCollaborationPlugin.dev.js} +0 -0
- /package/{dist/LexicalCollaborationPlugin.dev.mjs → LexicalCollaborationPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalCollaborationPlugin.js → LexicalCollaborationPlugin.js} +0 -0
- /package/{flow/LexicalCollaborationPlugin.js.flow → LexicalCollaborationPlugin.js.flow} +0 -0
- /package/{dist/LexicalCollaborationPlugin.mjs → LexicalCollaborationPlugin.mjs} +0 -0
- /package/{dist/LexicalCollaborationPlugin.node.mjs → LexicalCollaborationPlugin.node.mjs} +0 -0
- /package/{dist/LexicalCollaborationPlugin.prod.js → LexicalCollaborationPlugin.prod.js} +0 -0
- /package/{dist/LexicalCollaborationPlugin.prod.mjs → LexicalCollaborationPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalComposer.d.ts → LexicalComposer.d.ts} +0 -0
- /package/{dist/LexicalComposer.dev.js → LexicalComposer.dev.js} +0 -0
- /package/{dist/LexicalComposer.dev.mjs → LexicalComposer.dev.mjs} +0 -0
- /package/{dist/LexicalComposer.js → LexicalComposer.js} +0 -0
- /package/{flow/LexicalComposer.js.flow → LexicalComposer.js.flow} +0 -0
- /package/{dist/LexicalComposer.mjs → LexicalComposer.mjs} +0 -0
- /package/{dist/LexicalComposer.node.mjs → LexicalComposer.node.mjs} +0 -0
- /package/{dist/LexicalComposer.prod.js → LexicalComposer.prod.js} +0 -0
- /package/{dist/LexicalComposer.prod.mjs → LexicalComposer.prod.mjs} +0 -0
- /package/{dist/LexicalComposerContext.d.ts → LexicalComposerContext.d.ts} +0 -0
- /package/{dist/LexicalComposerContext.dev.js → LexicalComposerContext.dev.js} +0 -0
- /package/{dist/LexicalComposerContext.dev.mjs → LexicalComposerContext.dev.mjs} +0 -0
- /package/{dist/LexicalComposerContext.js → LexicalComposerContext.js} +0 -0
- /package/{flow/LexicalComposerContext.js.flow → LexicalComposerContext.js.flow} +0 -0
- /package/{dist/LexicalComposerContext.mjs → LexicalComposerContext.mjs} +0 -0
- /package/{dist/LexicalComposerContext.node.mjs → LexicalComposerContext.node.mjs} +0 -0
- /package/{dist/LexicalComposerContext.prod.js → LexicalComposerContext.prod.js} +0 -0
- /package/{dist/LexicalComposerContext.prod.mjs → LexicalComposerContext.prod.mjs} +0 -0
- /package/{dist/LexicalContentEditable.d.ts → LexicalContentEditable.d.ts} +0 -0
- /package/{dist/LexicalContentEditable.dev.js → LexicalContentEditable.dev.js} +0 -0
- /package/{dist/LexicalContentEditable.dev.mjs → LexicalContentEditable.dev.mjs} +0 -0
- /package/{dist/LexicalContentEditable.js → LexicalContentEditable.js} +0 -0
- /package/{flow/LexicalContentEditable.js.flow → LexicalContentEditable.js.flow} +0 -0
- /package/{dist/LexicalContentEditable.mjs → LexicalContentEditable.mjs} +0 -0
- /package/{dist/LexicalContentEditable.node.mjs → LexicalContentEditable.node.mjs} +0 -0
- /package/{dist/LexicalContentEditable.prod.js → LexicalContentEditable.prod.js} +0 -0
- /package/{dist/LexicalContentEditable.prod.mjs → LexicalContentEditable.prod.mjs} +0 -0
- /package/{dist/LexicalContextMenuPlugin.d.ts → LexicalContextMenuPlugin.d.ts} +0 -0
- /package/{dist/LexicalContextMenuPlugin.dev.js → LexicalContextMenuPlugin.dev.js} +0 -0
- /package/{dist/LexicalContextMenuPlugin.dev.mjs → LexicalContextMenuPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalContextMenuPlugin.js → LexicalContextMenuPlugin.js} +0 -0
- /package/{flow/LexicalContextMenuPlugin.js.flow → LexicalContextMenuPlugin.js.flow} +0 -0
- /package/{dist/LexicalContextMenuPlugin.mjs → LexicalContextMenuPlugin.mjs} +0 -0
- /package/{dist/LexicalContextMenuPlugin.node.mjs → LexicalContextMenuPlugin.node.mjs} +0 -0
- /package/{dist/LexicalContextMenuPlugin.prod.js → LexicalContextMenuPlugin.prod.js} +0 -0
- /package/{dist/LexicalContextMenuPlugin.prod.mjs → LexicalContextMenuPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.d.ts → LexicalDecoratorBlockNode.d.ts} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.dev.js → LexicalDecoratorBlockNode.dev.js} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.dev.mjs → LexicalDecoratorBlockNode.dev.mjs} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.js → LexicalDecoratorBlockNode.js} +0 -0
- /package/{flow/LexicalDecoratorBlockNode.js.flow → LexicalDecoratorBlockNode.js.flow} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.mjs → LexicalDecoratorBlockNode.mjs} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.node.mjs → LexicalDecoratorBlockNode.node.mjs} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.prod.js → LexicalDecoratorBlockNode.prod.js} +0 -0
- /package/{dist/LexicalDecoratorBlockNode.prod.mjs → LexicalDecoratorBlockNode.prod.mjs} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.d.ts → LexicalDraggableBlockPlugin.d.ts} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.dev.js → LexicalDraggableBlockPlugin.dev.js} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.dev.mjs → LexicalDraggableBlockPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.js → LexicalDraggableBlockPlugin.js} +0 -0
- /package/{flow/LexicalDraggableBlockPlugin.js.flow → LexicalDraggableBlockPlugin.js.flow} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.mjs → LexicalDraggableBlockPlugin.mjs} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.node.mjs → LexicalDraggableBlockPlugin.node.mjs} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.prod.js → LexicalDraggableBlockPlugin.prod.js} +0 -0
- /package/{dist/LexicalDraggableBlockPlugin.prod.mjs → LexicalDraggableBlockPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalEditorRefPlugin.d.ts → LexicalEditorRefPlugin.d.ts} +0 -0
- /package/{dist/LexicalEditorRefPlugin.dev.js → LexicalEditorRefPlugin.dev.js} +0 -0
- /package/{dist/LexicalEditorRefPlugin.dev.mjs → LexicalEditorRefPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalEditorRefPlugin.js → LexicalEditorRefPlugin.js} +0 -0
- /package/{flow/LexicalEditorRefPlugin.js.flow → LexicalEditorRefPlugin.js.flow} +0 -0
- /package/{dist/LexicalEditorRefPlugin.mjs → LexicalEditorRefPlugin.mjs} +0 -0
- /package/{dist/LexicalEditorRefPlugin.node.mjs → LexicalEditorRefPlugin.node.mjs} +0 -0
- /package/{dist/LexicalEditorRefPlugin.prod.js → LexicalEditorRefPlugin.prod.js} +0 -0
- /package/{dist/LexicalEditorRefPlugin.prod.mjs → LexicalEditorRefPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalErrorBoundary.d.ts → LexicalErrorBoundary.d.ts} +0 -0
- /package/{dist/LexicalErrorBoundary.dev.js → LexicalErrorBoundary.dev.js} +0 -0
- /package/{dist/LexicalErrorBoundary.dev.mjs → LexicalErrorBoundary.dev.mjs} +0 -0
- /package/{dist/LexicalErrorBoundary.js → LexicalErrorBoundary.js} +0 -0
- /package/{flow/LexicalErrorBoundary.js.flow → LexicalErrorBoundary.js.flow} +0 -0
- /package/{dist/LexicalErrorBoundary.mjs → LexicalErrorBoundary.mjs} +0 -0
- /package/{dist/LexicalErrorBoundary.node.mjs → LexicalErrorBoundary.node.mjs} +0 -0
- /package/{dist/LexicalErrorBoundary.prod.js → LexicalErrorBoundary.prod.js} +0 -0
- /package/{dist/LexicalErrorBoundary.prod.mjs → LexicalErrorBoundary.prod.mjs} +0 -0
- /package/{dist/LexicalExtensionComponent.dev.js → LexicalExtensionComponent.dev.js} +0 -0
- /package/{dist/LexicalExtensionComponent.dev.mjs → LexicalExtensionComponent.dev.mjs} +0 -0
- /package/{dist/LexicalExtensionComponent.js → LexicalExtensionComponent.js} +0 -0
- /package/{flow/LexicalExtensionComponent.js.flow → LexicalExtensionComponent.js.flow} +0 -0
- /package/{dist/LexicalExtensionComponent.mjs → LexicalExtensionComponent.mjs} +0 -0
- /package/{dist/LexicalExtensionComponent.node.mjs → LexicalExtensionComponent.node.mjs} +0 -0
- /package/{dist/LexicalExtensionComponent.prod.js → LexicalExtensionComponent.prod.js} +0 -0
- /package/{dist/LexicalExtensionComponent.prod.mjs → LexicalExtensionComponent.prod.mjs} +0 -0
- /package/{dist/LexicalExtensionComposer.d.ts → LexicalExtensionComposer.d.ts} +0 -0
- /package/{dist/LexicalExtensionComposer.dev.js → LexicalExtensionComposer.dev.js} +0 -0
- /package/{dist/LexicalExtensionComposer.dev.mjs → LexicalExtensionComposer.dev.mjs} +0 -0
- /package/{dist/LexicalExtensionComposer.js → LexicalExtensionComposer.js} +0 -0
- /package/{flow/LexicalExtensionComposer.js.flow → LexicalExtensionComposer.js.flow} +0 -0
- /package/{dist/LexicalExtensionComposer.mjs → LexicalExtensionComposer.mjs} +0 -0
- /package/{dist/LexicalExtensionComposer.node.mjs → LexicalExtensionComposer.node.mjs} +0 -0
- /package/{dist/LexicalExtensionComposer.prod.js → LexicalExtensionComposer.prod.js} +0 -0
- /package/{dist/LexicalExtensionComposer.prod.mjs → LexicalExtensionComposer.prod.mjs} +0 -0
- /package/{dist/LexicalHashtagPlugin.d.ts → LexicalHashtagPlugin.d.ts} +0 -0
- /package/{dist/LexicalHashtagPlugin.dev.js → LexicalHashtagPlugin.dev.js} +0 -0
- /package/{dist/LexicalHashtagPlugin.dev.mjs → LexicalHashtagPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalHashtagPlugin.js → LexicalHashtagPlugin.js} +0 -0
- /package/{flow/LexicalHashtagPlugin.js.flow → LexicalHashtagPlugin.js.flow} +0 -0
- /package/{dist/LexicalHashtagPlugin.mjs → LexicalHashtagPlugin.mjs} +0 -0
- /package/{dist/LexicalHashtagPlugin.node.mjs → LexicalHashtagPlugin.node.mjs} +0 -0
- /package/{dist/LexicalHashtagPlugin.prod.js → LexicalHashtagPlugin.prod.js} +0 -0
- /package/{dist/LexicalHashtagPlugin.prod.mjs → LexicalHashtagPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalHistoryPlugin.d.ts → LexicalHistoryPlugin.d.ts} +0 -0
- /package/{dist/LexicalHistoryPlugin.dev.js → LexicalHistoryPlugin.dev.js} +0 -0
- /package/{dist/LexicalHistoryPlugin.dev.mjs → LexicalHistoryPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalHistoryPlugin.js → LexicalHistoryPlugin.js} +0 -0
- /package/{flow/LexicalHistoryPlugin.js.flow → LexicalHistoryPlugin.js.flow} +0 -0
- /package/{dist/LexicalHistoryPlugin.mjs → LexicalHistoryPlugin.mjs} +0 -0
- /package/{dist/LexicalHistoryPlugin.node.mjs → LexicalHistoryPlugin.node.mjs} +0 -0
- /package/{dist/LexicalHistoryPlugin.prod.js → LexicalHistoryPlugin.prod.js} +0 -0
- /package/{dist/LexicalHistoryPlugin.prod.mjs → LexicalHistoryPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.d.ts → LexicalHorizontalRuleNode.d.ts} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.dev.js → LexicalHorizontalRuleNode.dev.js} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.dev.mjs → LexicalHorizontalRuleNode.dev.mjs} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.js → LexicalHorizontalRuleNode.js} +0 -0
- /package/{flow/LexicalHorizontalRuleNode.js.flow → LexicalHorizontalRuleNode.js.flow} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.mjs → LexicalHorizontalRuleNode.mjs} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.node.mjs → LexicalHorizontalRuleNode.node.mjs} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.prod.js → LexicalHorizontalRuleNode.prod.js} +0 -0
- /package/{dist/LexicalHorizontalRuleNode.prod.mjs → LexicalHorizontalRuleNode.prod.mjs} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.d.ts → LexicalHorizontalRulePlugin.d.ts} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.dev.js → LexicalHorizontalRulePlugin.dev.js} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.dev.mjs → LexicalHorizontalRulePlugin.dev.mjs} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.js → LexicalHorizontalRulePlugin.js} +0 -0
- /package/{flow/LexicalHorizontalRulePlugin.js.flow → LexicalHorizontalRulePlugin.js.flow} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.mjs → LexicalHorizontalRulePlugin.mjs} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.node.mjs → LexicalHorizontalRulePlugin.node.mjs} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.prod.js → LexicalHorizontalRulePlugin.prod.js} +0 -0
- /package/{dist/LexicalHorizontalRulePlugin.prod.mjs → LexicalHorizontalRulePlugin.prod.mjs} +0 -0
- /package/{dist/LexicalLinkPlugin.d.ts → LexicalLinkPlugin.d.ts} +0 -0
- /package/{dist/LexicalLinkPlugin.dev.js → LexicalLinkPlugin.dev.js} +0 -0
- /package/{dist/LexicalLinkPlugin.dev.mjs → LexicalLinkPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalLinkPlugin.js → LexicalLinkPlugin.js} +0 -0
- /package/{flow/LexicalLinkPlugin.js.flow → LexicalLinkPlugin.js.flow} +0 -0
- /package/{dist/LexicalLinkPlugin.mjs → LexicalLinkPlugin.mjs} +0 -0
- /package/{dist/LexicalLinkPlugin.node.mjs → LexicalLinkPlugin.node.mjs} +0 -0
- /package/{dist/LexicalLinkPlugin.prod.js → LexicalLinkPlugin.prod.js} +0 -0
- /package/{dist/LexicalLinkPlugin.prod.mjs → LexicalLinkPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalListPlugin.d.ts → LexicalListPlugin.d.ts} +0 -0
- /package/{dist/LexicalListPlugin.dev.js → LexicalListPlugin.dev.js} +0 -0
- /package/{dist/LexicalListPlugin.dev.mjs → LexicalListPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalListPlugin.js → LexicalListPlugin.js} +0 -0
- /package/{flow/LexicalListPlugin.js.flow → LexicalListPlugin.js.flow} +0 -0
- /package/{dist/LexicalListPlugin.mjs → LexicalListPlugin.mjs} +0 -0
- /package/{dist/LexicalListPlugin.node.mjs → LexicalListPlugin.node.mjs} +0 -0
- /package/{dist/LexicalListPlugin.prod.js → LexicalListPlugin.prod.js} +0 -0
- /package/{dist/LexicalListPlugin.prod.mjs → LexicalListPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.d.ts → LexicalMarkdownShortcutPlugin.d.ts} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.dev.js → LexicalMarkdownShortcutPlugin.dev.js} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.dev.mjs → LexicalMarkdownShortcutPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.js → LexicalMarkdownShortcutPlugin.js} +0 -0
- /package/{flow/LexicalMarkdownShortcutPlugin.js.flow → LexicalMarkdownShortcutPlugin.js.flow} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.mjs → LexicalMarkdownShortcutPlugin.mjs} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.node.mjs → LexicalMarkdownShortcutPlugin.node.mjs} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.prod.js → LexicalMarkdownShortcutPlugin.prod.js} +0 -0
- /package/{dist/LexicalMarkdownShortcutPlugin.prod.mjs → LexicalMarkdownShortcutPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalNestedComposer.d.ts → LexicalNestedComposer.d.ts} +0 -0
- /package/{dist/LexicalNestedComposer.dev.js → LexicalNestedComposer.dev.js} +0 -0
- /package/{dist/LexicalNestedComposer.dev.mjs → LexicalNestedComposer.dev.mjs} +0 -0
- /package/{dist/LexicalNestedComposer.js → LexicalNestedComposer.js} +0 -0
- /package/{flow/LexicalNestedComposer.js.flow → LexicalNestedComposer.js.flow} +0 -0
- /package/{dist/LexicalNestedComposer.mjs → LexicalNestedComposer.mjs} +0 -0
- /package/{dist/LexicalNestedComposer.node.mjs → LexicalNestedComposer.node.mjs} +0 -0
- /package/{dist/LexicalNestedComposer.prod.js → LexicalNestedComposer.prod.js} +0 -0
- /package/{dist/LexicalNestedComposer.prod.mjs → LexicalNestedComposer.prod.mjs} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.d.ts → LexicalNodeContextMenuPlugin.d.ts} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.dev.js → LexicalNodeContextMenuPlugin.dev.js} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.dev.mjs → LexicalNodeContextMenuPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.js → LexicalNodeContextMenuPlugin.js} +0 -0
- /package/{flow/LexicalNodeContextMenuPlugin.js.flow → LexicalNodeContextMenuPlugin.js.flow} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.mjs → LexicalNodeContextMenuPlugin.mjs} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.node.mjs → LexicalNodeContextMenuPlugin.node.mjs} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.prod.js → LexicalNodeContextMenuPlugin.prod.js} +0 -0
- /package/{dist/LexicalNodeContextMenuPlugin.prod.mjs → LexicalNodeContextMenuPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalNodeEventPlugin.d.ts → LexicalNodeEventPlugin.d.ts} +0 -0
- /package/{dist/LexicalNodeEventPlugin.dev.js → LexicalNodeEventPlugin.dev.js} +0 -0
- /package/{dist/LexicalNodeEventPlugin.dev.mjs → LexicalNodeEventPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalNodeEventPlugin.js → LexicalNodeEventPlugin.js} +0 -0
- /package/{flow/LexicalNodeEventPlugin.js.flow → LexicalNodeEventPlugin.js.flow} +0 -0
- /package/{dist/LexicalNodeEventPlugin.mjs → LexicalNodeEventPlugin.mjs} +0 -0
- /package/{dist/LexicalNodeEventPlugin.node.mjs → LexicalNodeEventPlugin.node.mjs} +0 -0
- /package/{dist/LexicalNodeEventPlugin.prod.js → LexicalNodeEventPlugin.prod.js} +0 -0
- /package/{dist/LexicalNodeEventPlugin.prod.mjs → LexicalNodeEventPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.d.ts → LexicalNodeMenuPlugin.d.ts} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.dev.js → LexicalNodeMenuPlugin.dev.js} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.dev.mjs → LexicalNodeMenuPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.js → LexicalNodeMenuPlugin.js} +0 -0
- /package/{flow/LexicalNodeMenuPlugin.js.flow → LexicalNodeMenuPlugin.js.flow} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.mjs → LexicalNodeMenuPlugin.mjs} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.node.mjs → LexicalNodeMenuPlugin.node.mjs} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.prod.js → LexicalNodeMenuPlugin.prod.js} +0 -0
- /package/{dist/LexicalNodeMenuPlugin.prod.mjs → LexicalNodeMenuPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalOnChangePlugin.d.ts → LexicalOnChangePlugin.d.ts} +0 -0
- /package/{dist/LexicalOnChangePlugin.dev.js → LexicalOnChangePlugin.dev.js} +0 -0
- /package/{dist/LexicalOnChangePlugin.dev.mjs → LexicalOnChangePlugin.dev.mjs} +0 -0
- /package/{dist/LexicalOnChangePlugin.js → LexicalOnChangePlugin.js} +0 -0
- /package/{flow/LexicalOnChangePlugin.js.flow → LexicalOnChangePlugin.js.flow} +0 -0
- /package/{dist/LexicalOnChangePlugin.mjs → LexicalOnChangePlugin.mjs} +0 -0
- /package/{dist/LexicalOnChangePlugin.node.mjs → LexicalOnChangePlugin.node.mjs} +0 -0
- /package/{dist/LexicalOnChangePlugin.prod.js → LexicalOnChangePlugin.prod.js} +0 -0
- /package/{dist/LexicalOnChangePlugin.prod.mjs → LexicalOnChangePlugin.prod.mjs} +0 -0
- /package/{dist/LexicalPlainTextPlugin.d.ts → LexicalPlainTextPlugin.d.ts} +0 -0
- /package/{dist/LexicalPlainTextPlugin.dev.js → LexicalPlainTextPlugin.dev.js} +0 -0
- /package/{dist/LexicalPlainTextPlugin.dev.mjs → LexicalPlainTextPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalPlainTextPlugin.js → LexicalPlainTextPlugin.js} +0 -0
- /package/{flow/LexicalPlainTextPlugin.js.flow → LexicalPlainTextPlugin.js.flow} +0 -0
- /package/{dist/LexicalPlainTextPlugin.mjs → LexicalPlainTextPlugin.mjs} +0 -0
- /package/{dist/LexicalPlainTextPlugin.node.mjs → LexicalPlainTextPlugin.node.mjs} +0 -0
- /package/{dist/LexicalPlainTextPlugin.prod.js → LexicalPlainTextPlugin.prod.js} +0 -0
- /package/{dist/LexicalPlainTextPlugin.prod.mjs → LexicalPlainTextPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalReactExtension.dev.js → LexicalReactExtension.dev.js} +0 -0
- /package/{dist/LexicalReactExtension.dev.mjs → LexicalReactExtension.dev.mjs} +0 -0
- /package/{dist/LexicalReactExtension.js → LexicalReactExtension.js} +0 -0
- /package/{flow/LexicalReactExtension.js.flow → LexicalReactExtension.js.flow} +0 -0
- /package/{dist/LexicalReactExtension.mjs → LexicalReactExtension.mjs} +0 -0
- /package/{dist/LexicalReactExtension.node.mjs → LexicalReactExtension.node.mjs} +0 -0
- /package/{dist/LexicalReactExtension.prod.js → LexicalReactExtension.prod.js} +0 -0
- /package/{dist/LexicalReactExtension.prod.mjs → LexicalReactExtension.prod.mjs} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.dev.js → LexicalReactPluginHostExtension.dev.js} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.dev.mjs → LexicalReactPluginHostExtension.dev.mjs} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.js → LexicalReactPluginHostExtension.js} +0 -0
- /package/{flow/LexicalReactPluginHostExtension.js.flow → LexicalReactPluginHostExtension.js.flow} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.mjs → LexicalReactPluginHostExtension.mjs} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.node.mjs → LexicalReactPluginHostExtension.node.mjs} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.prod.js → LexicalReactPluginHostExtension.prod.js} +0 -0
- /package/{dist/LexicalReactPluginHostExtension.prod.mjs → LexicalReactPluginHostExtension.prod.mjs} +0 -0
- /package/{dist/LexicalReactProviderExtension.dev.js → LexicalReactProviderExtension.dev.js} +0 -0
- /package/{dist/LexicalReactProviderExtension.dev.mjs → LexicalReactProviderExtension.dev.mjs} +0 -0
- /package/{dist/LexicalReactProviderExtension.js → LexicalReactProviderExtension.js} +0 -0
- /package/{flow/LexicalReactProviderExtension.js.flow → LexicalReactProviderExtension.js.flow} +0 -0
- /package/{dist/LexicalReactProviderExtension.mjs → LexicalReactProviderExtension.mjs} +0 -0
- /package/{dist/LexicalReactProviderExtension.node.mjs → LexicalReactProviderExtension.node.mjs} +0 -0
- /package/{dist/LexicalReactProviderExtension.prod.js → LexicalReactProviderExtension.prod.js} +0 -0
- /package/{dist/LexicalReactProviderExtension.prod.mjs → LexicalReactProviderExtension.prod.mjs} +0 -0
- /package/{dist/LexicalRichTextPlugin.d.ts → LexicalRichTextPlugin.d.ts} +0 -0
- /package/{dist/LexicalRichTextPlugin.dev.js → LexicalRichTextPlugin.dev.js} +0 -0
- /package/{dist/LexicalRichTextPlugin.dev.mjs → LexicalRichTextPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalRichTextPlugin.js → LexicalRichTextPlugin.js} +0 -0
- /package/{flow/LexicalRichTextPlugin.js.flow → LexicalRichTextPlugin.js.flow} +0 -0
- /package/{dist/LexicalRichTextPlugin.mjs → LexicalRichTextPlugin.mjs} +0 -0
- /package/{dist/LexicalRichTextPlugin.node.mjs → LexicalRichTextPlugin.node.mjs} +0 -0
- /package/{dist/LexicalRichTextPlugin.prod.js → LexicalRichTextPlugin.prod.js} +0 -0
- /package/{dist/LexicalRichTextPlugin.prod.mjs → LexicalRichTextPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.d.ts → LexicalSelectionAlwaysOnDisplay.d.ts} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.dev.js → LexicalSelectionAlwaysOnDisplay.dev.js} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.dev.mjs → LexicalSelectionAlwaysOnDisplay.dev.mjs} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.js → LexicalSelectionAlwaysOnDisplay.js} +0 -0
- /package/{flow/LexicalSelectionAlwaysOnDisplay.js.flow → LexicalSelectionAlwaysOnDisplay.js.flow} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.mjs → LexicalSelectionAlwaysOnDisplay.mjs} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.node.mjs → LexicalSelectionAlwaysOnDisplay.node.mjs} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.prod.js → LexicalSelectionAlwaysOnDisplay.prod.js} +0 -0
- /package/{dist/LexicalSelectionAlwaysOnDisplay.prod.mjs → LexicalSelectionAlwaysOnDisplay.prod.mjs} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.d.ts → LexicalTabIndentationPlugin.d.ts} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.dev.js → LexicalTabIndentationPlugin.dev.js} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.dev.mjs → LexicalTabIndentationPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.js → LexicalTabIndentationPlugin.js} +0 -0
- /package/{flow/LexicalTabIndentationPlugin.js.flow → LexicalTabIndentationPlugin.js.flow} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.mjs → LexicalTabIndentationPlugin.mjs} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.node.mjs → LexicalTabIndentationPlugin.node.mjs} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.prod.js → LexicalTabIndentationPlugin.prod.js} +0 -0
- /package/{dist/LexicalTabIndentationPlugin.prod.mjs → LexicalTabIndentationPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.d.ts → LexicalTableOfContentsPlugin.d.ts} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.dev.js → LexicalTableOfContentsPlugin.dev.js} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.dev.mjs → LexicalTableOfContentsPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.js → LexicalTableOfContentsPlugin.js} +0 -0
- /package/{flow/LexicalTableOfContentsPlugin.js.flow → LexicalTableOfContentsPlugin.js.flow} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.mjs → LexicalTableOfContentsPlugin.mjs} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.node.mjs → LexicalTableOfContentsPlugin.node.mjs} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.prod.js → LexicalTableOfContentsPlugin.prod.js} +0 -0
- /package/{dist/LexicalTableOfContentsPlugin.prod.mjs → LexicalTableOfContentsPlugin.prod.mjs} +0 -0
- /package/{dist/LexicalTablePlugin.d.ts → LexicalTablePlugin.d.ts} +0 -0
- /package/{dist/LexicalTablePlugin.dev.js → LexicalTablePlugin.dev.js} +0 -0
- /package/{dist/LexicalTablePlugin.dev.mjs → LexicalTablePlugin.dev.mjs} +0 -0
- /package/{dist/LexicalTablePlugin.js → LexicalTablePlugin.js} +0 -0
- /package/{flow/LexicalTablePlugin.js.flow → LexicalTablePlugin.js.flow} +0 -0
- /package/{dist/LexicalTablePlugin.mjs → LexicalTablePlugin.mjs} +0 -0
- /package/{dist/LexicalTablePlugin.node.mjs → LexicalTablePlugin.node.mjs} +0 -0
- /package/{dist/LexicalTablePlugin.prod.js → LexicalTablePlugin.prod.js} +0 -0
- /package/{dist/LexicalTablePlugin.prod.mjs → LexicalTablePlugin.prod.mjs} +0 -0
- /package/{dist/LexicalTreeView.d.ts → LexicalTreeView.d.ts} +0 -0
- /package/{dist/LexicalTreeView.dev.js → LexicalTreeView.dev.js} +0 -0
- /package/{dist/LexicalTreeView.dev.mjs → LexicalTreeView.dev.mjs} +0 -0
- /package/{dist/LexicalTreeView.js → LexicalTreeView.js} +0 -0
- /package/{flow/LexicalTreeView.js.flow → LexicalTreeView.js.flow} +0 -0
- /package/{dist/LexicalTreeView.mjs → LexicalTreeView.mjs} +0 -0
- /package/{dist/LexicalTreeView.node.mjs → LexicalTreeView.node.mjs} +0 -0
- /package/{dist/LexicalTreeView.prod.js → LexicalTreeView.prod.js} +0 -0
- /package/{dist/LexicalTreeView.prod.mjs → LexicalTreeView.prod.mjs} +0 -0
- /package/{dist/LexicalTreeViewExtension.dev.js → LexicalTreeViewExtension.dev.js} +0 -0
- /package/{dist/LexicalTreeViewExtension.dev.mjs → LexicalTreeViewExtension.dev.mjs} +0 -0
- /package/{dist/LexicalTreeViewExtension.js → LexicalTreeViewExtension.js} +0 -0
- /package/{flow/LexicalTreeViewExtension.js.flow → LexicalTreeViewExtension.js.flow} +0 -0
- /package/{dist/LexicalTreeViewExtension.mjs → LexicalTreeViewExtension.mjs} +0 -0
- /package/{dist/LexicalTreeViewExtension.node.mjs → LexicalTreeViewExtension.node.mjs} +0 -0
- /package/{dist/LexicalTreeViewExtension.prod.js → LexicalTreeViewExtension.prod.js} +0 -0
- /package/{dist/LexicalTreeViewExtension.prod.mjs → LexicalTreeViewExtension.prod.mjs} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.d.ts → LexicalTypeaheadMenuPlugin.d.ts} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.dev.js → LexicalTypeaheadMenuPlugin.dev.js} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.dev.mjs → LexicalTypeaheadMenuPlugin.dev.mjs} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.js → LexicalTypeaheadMenuPlugin.js} +0 -0
- /package/{flow/LexicalTypeaheadMenuPlugin.js.flow → LexicalTypeaheadMenuPlugin.js.flow} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.mjs → LexicalTypeaheadMenuPlugin.mjs} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.node.mjs → LexicalTypeaheadMenuPlugin.node.mjs} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.prod.js → LexicalTypeaheadMenuPlugin.prod.js} +0 -0
- /package/{dist/LexicalTypeaheadMenuPlugin.prod.mjs → LexicalTypeaheadMenuPlugin.prod.mjs} +0 -0
- /package/{dist/ReactExtension.d.ts → ReactExtension.d.ts} +0 -0
- /package/{dist/ReactPluginHostExtension.d.ts → ReactPluginHostExtension.d.ts} +0 -0
- /package/{dist/ReactProviderExtension.d.ts → ReactProviderExtension.d.ts} +0 -0
- /package/{dist/TreeViewExtension.d.ts → TreeViewExtension.d.ts} +0 -0
- /package/{dist/shared → shared}/LegacyDecorators.d.ts +0 -0
- /package/{dist/shared → shared}/LexicalContentEditableElement.d.ts +0 -0
- /package/{dist/shared → shared}/LexicalMenu.d.ts +0 -0
- /package/{dist/shared → shared}/buildEditorComponent.d.ts +0 -0
- /package/{dist/shared → shared}/mergeRefs.d.ts +0 -0
- /package/{dist/shared → shared}/point.d.ts +0 -0
- /package/{dist/shared → shared}/rect.d.ts +0 -0
- /package/{dist/shared → shared}/types.d.ts +0 -0
- /package/{dist/shared → shared}/useCanShowPlaceholder.d.ts +0 -0
- /package/{dist/shared → shared}/useCharacterLimit.d.ts +0 -0
- /package/{dist/shared → shared}/useDecorators.d.ts +0 -0
- /package/{dist/shared → shared}/useHistory.d.ts +0 -0
- /package/{dist/shared → shared}/useList.d.ts +0 -0
- /package/{dist/shared → shared}/usePlainTextSetup.d.ts +0 -0
- /package/{dist/shared → shared}/useReactDecorators.d.ts +0 -0
- /package/{dist/shared → shared}/useRichTextSetup.d.ts +0 -0
- /package/{dist/shared → shared}/useYjsCollaboration.d.ts +0 -0
- /package/{dist/useExtensionComponent.d.ts → useExtensionComponent.d.ts} +0 -0
- /package/{dist/useLexicalEditable.d.ts → useLexicalEditable.d.ts} +0 -0
- /package/{dist/useLexicalEditable.dev.js → useLexicalEditable.dev.js} +0 -0
- /package/{dist/useLexicalEditable.dev.mjs → useLexicalEditable.dev.mjs} +0 -0
- /package/{dist/useLexicalEditable.js → useLexicalEditable.js} +0 -0
- /package/{flow/useLexicalEditable.js.flow → useLexicalEditable.js.flow} +0 -0
- /package/{dist/useLexicalEditable.mjs → useLexicalEditable.mjs} +0 -0
- /package/{dist/useLexicalEditable.node.mjs → useLexicalEditable.node.mjs} +0 -0
- /package/{dist/useLexicalEditable.prod.js → useLexicalEditable.prod.js} +0 -0
- /package/{dist/useLexicalEditable.prod.mjs → useLexicalEditable.prod.mjs} +0 -0
- /package/{dist/useLexicalExtensionComponent.dev.js → useLexicalExtensionComponent.dev.js} +0 -0
- /package/{dist/useLexicalExtensionComponent.dev.mjs → useLexicalExtensionComponent.dev.mjs} +0 -0
- /package/{dist/useLexicalExtensionComponent.js → useLexicalExtensionComponent.js} +0 -0
- /package/{flow/useLexicalExtensionComponent.js.flow → useLexicalExtensionComponent.js.flow} +0 -0
- /package/{dist/useLexicalExtensionComponent.mjs → useLexicalExtensionComponent.mjs} +0 -0
- /package/{dist/useLexicalExtensionComponent.node.mjs → useLexicalExtensionComponent.node.mjs} +0 -0
- /package/{dist/useLexicalExtensionComponent.prod.js → useLexicalExtensionComponent.prod.js} +0 -0
- /package/{dist/useLexicalExtensionComponent.prod.mjs → useLexicalExtensionComponent.prod.mjs} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.d.ts → useLexicalIsTextContentEmpty.d.ts} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.dev.js → useLexicalIsTextContentEmpty.dev.js} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.dev.mjs → useLexicalIsTextContentEmpty.dev.mjs} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.js → useLexicalIsTextContentEmpty.js} +0 -0
- /package/{flow/useLexicalIsTextContentEmpty.js.flow → useLexicalIsTextContentEmpty.js.flow} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.mjs → useLexicalIsTextContentEmpty.mjs} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.node.mjs → useLexicalIsTextContentEmpty.node.mjs} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.prod.js → useLexicalIsTextContentEmpty.prod.js} +0 -0
- /package/{dist/useLexicalIsTextContentEmpty.prod.mjs → useLexicalIsTextContentEmpty.prod.mjs} +0 -0
- /package/{dist/useLexicalNodeSelection.d.ts → useLexicalNodeSelection.d.ts} +0 -0
- /package/{dist/useLexicalNodeSelection.dev.js → useLexicalNodeSelection.dev.js} +0 -0
- /package/{dist/useLexicalNodeSelection.dev.mjs → useLexicalNodeSelection.dev.mjs} +0 -0
- /package/{dist/useLexicalNodeSelection.js → useLexicalNodeSelection.js} +0 -0
- /package/{flow/useLexicalNodeSelection.js.flow → useLexicalNodeSelection.js.flow} +0 -0
- /package/{dist/useLexicalNodeSelection.mjs → useLexicalNodeSelection.mjs} +0 -0
- /package/{dist/useLexicalNodeSelection.node.mjs → useLexicalNodeSelection.node.mjs} +0 -0
- /package/{dist/useLexicalNodeSelection.prod.js → useLexicalNodeSelection.prod.js} +0 -0
- /package/{dist/useLexicalNodeSelection.prod.mjs → useLexicalNodeSelection.prod.mjs} +0 -0
- /package/{dist/useLexicalSubscription.d.ts → useLexicalSubscription.d.ts} +0 -0
- /package/{dist/useLexicalSubscription.dev.js → useLexicalSubscription.dev.js} +0 -0
- /package/{dist/useLexicalSubscription.dev.mjs → useLexicalSubscription.dev.mjs} +0 -0
- /package/{dist/useLexicalSubscription.js → useLexicalSubscription.js} +0 -0
- /package/{flow/useLexicalSubscription.js.flow → useLexicalSubscription.js.flow} +0 -0
- /package/{dist/useLexicalSubscription.mjs → useLexicalSubscription.mjs} +0 -0
- /package/{dist/useLexicalSubscription.node.mjs → useLexicalSubscription.node.mjs} +0 -0
- /package/{dist/useLexicalSubscription.prod.js → useLexicalSubscription.prod.js} +0 -0
- /package/{dist/useLexicalSubscription.prod.mjs → useLexicalSubscription.prod.mjs} +0 -0
- /package/{dist/useLexicalTextEntity.d.ts → useLexicalTextEntity.d.ts} +0 -0
- /package/{dist/useLexicalTextEntity.dev.js → useLexicalTextEntity.dev.js} +0 -0
- /package/{dist/useLexicalTextEntity.dev.mjs → useLexicalTextEntity.dev.mjs} +0 -0
- /package/{dist/useLexicalTextEntity.js → useLexicalTextEntity.js} +0 -0
- /package/{flow/useLexicalTextEntity.js.flow → useLexicalTextEntity.js.flow} +0 -0
- /package/{dist/useLexicalTextEntity.mjs → useLexicalTextEntity.mjs} +0 -0
- /package/{dist/useLexicalTextEntity.node.mjs → useLexicalTextEntity.node.mjs} +0 -0
- /package/{dist/useLexicalTextEntity.prod.js → useLexicalTextEntity.prod.js} +0 -0
- /package/{dist/useLexicalTextEntity.prod.mjs → useLexicalTextEntity.prod.mjs} +0 -0
|
@@ -1,292 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
'use strict';
|
|
10
|
-
|
|
11
|
-
var LexicalComposerContext = require('@lexical/react/LexicalComposerContext');
|
|
12
|
-
var react = require('react');
|
|
13
|
-
var overflow = require('@lexical/overflow');
|
|
14
|
-
var text = require('@lexical/text');
|
|
15
|
-
var utils = require('@lexical/utils');
|
|
16
|
-
var lexical = require('lexical');
|
|
17
|
-
var jsxRuntime = require('react/jsx-runtime');
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
21
|
-
*
|
|
22
|
-
* This source code is licensed under the MIT license found in the
|
|
23
|
-
* LICENSE file in the root directory of this source tree.
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
// Do not require this module directly! Use normal `invariant` calls.
|
|
28
|
-
|
|
29
|
-
function formatDevErrorMessage(message) {
|
|
30
|
-
throw new Error(message);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function useCharacterLimit(editor, maxCharacters, optional = Object.freeze({})) {
|
|
34
|
-
const {
|
|
35
|
-
strlen = input => input.length,
|
|
36
|
-
// UTF-16
|
|
37
|
-
remainingCharacters = () => {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
} = optional;
|
|
41
|
-
react.useEffect(() => {
|
|
42
|
-
if (!editor.hasNodes([overflow.OverflowNode])) {
|
|
43
|
-
{
|
|
44
|
-
formatDevErrorMessage(`useCharacterLimit: OverflowNode not registered on editor`);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}, [editor]);
|
|
48
|
-
react.useEffect(() => {
|
|
49
|
-
let text$1 = editor.getEditorState().read(text.$rootTextContent);
|
|
50
|
-
let lastComputedTextLength = 0;
|
|
51
|
-
return utils.mergeRegister(editor.registerTextContentListener(currentText => {
|
|
52
|
-
text$1 = currentText;
|
|
53
|
-
}), editor.registerUpdateListener(({
|
|
54
|
-
dirtyLeaves,
|
|
55
|
-
dirtyElements
|
|
56
|
-
}) => {
|
|
57
|
-
const isComposing = editor.isComposing();
|
|
58
|
-
const hasContentChanges = dirtyLeaves.size > 0 || dirtyElements.size > 0;
|
|
59
|
-
if (isComposing || !hasContentChanges) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
const textLength = strlen(text$1);
|
|
63
|
-
const textLengthAboveThreshold = textLength > maxCharacters || lastComputedTextLength !== null && lastComputedTextLength > maxCharacters;
|
|
64
|
-
const diff = maxCharacters - textLength;
|
|
65
|
-
remainingCharacters(diff);
|
|
66
|
-
if (lastComputedTextLength === null || textLengthAboveThreshold) {
|
|
67
|
-
const offset = findOffset(text$1, maxCharacters, strlen);
|
|
68
|
-
editor.update(() => {
|
|
69
|
-
$wrapOverflowedNodes(offset);
|
|
70
|
-
}, {
|
|
71
|
-
tag: lexical.HISTORY_MERGE_TAG
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
lastComputedTextLength = textLength;
|
|
75
|
-
}), editor.registerCommand(lexical.DELETE_CHARACTER_COMMAND, isBackward => {
|
|
76
|
-
const selection = lexical.$getSelection();
|
|
77
|
-
if (!lexical.$isRangeSelection(selection)) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
const anchorNode = selection.anchor.getNode();
|
|
81
|
-
const overflow = anchorNode.getParent();
|
|
82
|
-
const overflowParent = overflow ? overflow.getParent() : null;
|
|
83
|
-
const parentNext = overflowParent ? overflowParent.getNextSibling() : null;
|
|
84
|
-
selection.deleteCharacter(isBackward);
|
|
85
|
-
if (overflowParent && overflowParent.isEmpty()) {
|
|
86
|
-
overflowParent.remove();
|
|
87
|
-
} else if (lexical.$isElementNode(parentNext) && parentNext.isEmpty()) {
|
|
88
|
-
parentNext.remove();
|
|
89
|
-
}
|
|
90
|
-
return true;
|
|
91
|
-
}, lexical.COMMAND_PRIORITY_LOW));
|
|
92
|
-
}, [editor, maxCharacters, remainingCharacters, strlen]);
|
|
93
|
-
}
|
|
94
|
-
function findOffset(text, maxCharacters, strlen) {
|
|
95
|
-
const Segmenter = Intl.Segmenter;
|
|
96
|
-
let offsetUtf16 = 0;
|
|
97
|
-
let offset = 0;
|
|
98
|
-
if (typeof Segmenter === 'function') {
|
|
99
|
-
const segmenter = new Segmenter();
|
|
100
|
-
const graphemes = segmenter.segment(text);
|
|
101
|
-
for (const {
|
|
102
|
-
segment: grapheme
|
|
103
|
-
} of graphemes) {
|
|
104
|
-
const nextOffset = offset + strlen(grapheme);
|
|
105
|
-
if (nextOffset > maxCharacters) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
offset = nextOffset;
|
|
109
|
-
offsetUtf16 += grapheme.length;
|
|
110
|
-
}
|
|
111
|
-
} else {
|
|
112
|
-
const codepoints = Array.from(text);
|
|
113
|
-
const codepointsLength = codepoints.length;
|
|
114
|
-
for (let i = 0; i < codepointsLength; i++) {
|
|
115
|
-
const codepoint = codepoints[i];
|
|
116
|
-
const nextOffset = offset + strlen(codepoint);
|
|
117
|
-
if (nextOffset > maxCharacters) {
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
offset = nextOffset;
|
|
121
|
-
offsetUtf16 += codepoint.length;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
return offsetUtf16;
|
|
125
|
-
}
|
|
126
|
-
function $wrapOverflowedNodes(offset) {
|
|
127
|
-
const dfsNodes = utils.$dfs();
|
|
128
|
-
const dfsNodesLength = dfsNodes.length;
|
|
129
|
-
let accumulatedLength = 0;
|
|
130
|
-
for (let i = 0; i < dfsNodesLength; i += 1) {
|
|
131
|
-
const {
|
|
132
|
-
node
|
|
133
|
-
} = dfsNodes[i];
|
|
134
|
-
const needsOverflowParent = lexical.$isLeafNode(node) && !utils.$findMatchingParent(node, overflow.$isOverflowNode);
|
|
135
|
-
if (overflow.$isOverflowNode(node)) {
|
|
136
|
-
const previousLength = accumulatedLength;
|
|
137
|
-
const nextLength = accumulatedLength + node.getTextContentSize();
|
|
138
|
-
if (nextLength <= offset) {
|
|
139
|
-
const parent = node.getParent();
|
|
140
|
-
const previousSibling = node.getPreviousSibling();
|
|
141
|
-
const nextSibling = node.getNextSibling();
|
|
142
|
-
utils.$unwrapNode(node);
|
|
143
|
-
const selection = lexical.$getSelection();
|
|
144
|
-
|
|
145
|
-
// Restore selection when the overflow children are removed
|
|
146
|
-
if (lexical.$isRangeSelection(selection) && (!selection.anchor.getNode().isAttached() || !selection.focus.getNode().isAttached())) {
|
|
147
|
-
if (lexical.$isTextNode(previousSibling)) {
|
|
148
|
-
previousSibling.select();
|
|
149
|
-
} else if (lexical.$isTextNode(nextSibling)) {
|
|
150
|
-
nextSibling.select();
|
|
151
|
-
} else if (parent !== null) {
|
|
152
|
-
parent.select();
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
} else if (previousLength < offset) {
|
|
156
|
-
const descendant = node.getFirstDescendant();
|
|
157
|
-
const descendantLength = descendant !== null ? descendant.getTextContentSize() : 0;
|
|
158
|
-
const previousPlusDescendantLength = previousLength + descendantLength;
|
|
159
|
-
// For simple text we can redimension the overflow into a smaller and more accurate
|
|
160
|
-
// container
|
|
161
|
-
const firstDescendantIsSimpleText = lexical.$isTextNode(descendant) && descendant.isSimpleText();
|
|
162
|
-
const firstDescendantDoesNotOverflow = previousPlusDescendantLength <= offset;
|
|
163
|
-
if (firstDescendantIsSimpleText || firstDescendantDoesNotOverflow) {
|
|
164
|
-
utils.$unwrapNode(node);
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
} else if (needsOverflowParent) {
|
|
168
|
-
const previousAccumulatedLength = accumulatedLength;
|
|
169
|
-
accumulatedLength += node.getTextContentSize();
|
|
170
|
-
if (accumulatedLength > offset && !overflow.$isOverflowNode(node.getParent())) {
|
|
171
|
-
const previousSelection = lexical.$getSelection();
|
|
172
|
-
let overflowNode;
|
|
173
|
-
|
|
174
|
-
// For simple text we can improve the limit accuracy by splitting the TextNode
|
|
175
|
-
// on the split point
|
|
176
|
-
if (previousAccumulatedLength < offset && lexical.$isTextNode(node) && node.isSimpleText()) {
|
|
177
|
-
const [, overflowedText] = node.splitText(offset - previousAccumulatedLength);
|
|
178
|
-
overflowNode = $wrapNode(overflowedText);
|
|
179
|
-
} else {
|
|
180
|
-
overflowNode = $wrapNode(node);
|
|
181
|
-
}
|
|
182
|
-
if (previousSelection !== null) {
|
|
183
|
-
lexical.$setSelection(previousSelection);
|
|
184
|
-
}
|
|
185
|
-
$mergePrevious(overflowNode);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
function $wrapNode(node) {
|
|
191
|
-
const overflowNode = overflow.$createOverflowNode();
|
|
192
|
-
node.replace(overflowNode);
|
|
193
|
-
overflowNode.append(node);
|
|
194
|
-
return overflowNode;
|
|
195
|
-
}
|
|
196
|
-
function $mergePrevious(overflowNode) {
|
|
197
|
-
const previousNode = overflowNode.getPreviousSibling();
|
|
198
|
-
if (!overflow.$isOverflowNode(previousNode)) {
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
const firstChild = overflowNode.getFirstChild();
|
|
202
|
-
const previousNodeChildren = previousNode.getChildren();
|
|
203
|
-
const previousNodeChildrenLength = previousNodeChildren.length;
|
|
204
|
-
if (firstChild === null) {
|
|
205
|
-
overflowNode.append(...previousNodeChildren);
|
|
206
|
-
} else {
|
|
207
|
-
for (let i = 0; i < previousNodeChildrenLength; i++) {
|
|
208
|
-
firstChild.insertBefore(previousNodeChildren[i]);
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
const selection = lexical.$getSelection();
|
|
212
|
-
if (lexical.$isRangeSelection(selection)) {
|
|
213
|
-
const anchor = selection.anchor;
|
|
214
|
-
const anchorNode = anchor.getNode();
|
|
215
|
-
const focus = selection.focus;
|
|
216
|
-
const focusNode = anchor.getNode();
|
|
217
|
-
if (anchorNode.is(previousNode)) {
|
|
218
|
-
anchor.set(overflowNode.getKey(), anchor.offset, 'element');
|
|
219
|
-
} else if (anchorNode.is(overflowNode)) {
|
|
220
|
-
anchor.set(overflowNode.getKey(), previousNodeChildrenLength + anchor.offset, 'element');
|
|
221
|
-
}
|
|
222
|
-
if (focusNode.is(previousNode)) {
|
|
223
|
-
focus.set(overflowNode.getKey(), focus.offset, 'element');
|
|
224
|
-
} else if (focusNode.is(overflowNode)) {
|
|
225
|
-
focus.set(overflowNode.getKey(), previousNodeChildrenLength + focus.offset, 'element');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
previousNode.remove();
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the MIT license found in the
|
|
235
|
-
* LICENSE file in the root directory of this source tree.
|
|
236
|
-
*
|
|
237
|
-
*/
|
|
238
|
-
|
|
239
|
-
const CHARACTER_LIMIT = 5;
|
|
240
|
-
let textEncoderInstance = null;
|
|
241
|
-
function textEncoder() {
|
|
242
|
-
if (window.TextEncoder === undefined) {
|
|
243
|
-
return null;
|
|
244
|
-
}
|
|
245
|
-
if (textEncoderInstance === null) {
|
|
246
|
-
textEncoderInstance = new window.TextEncoder();
|
|
247
|
-
}
|
|
248
|
-
return textEncoderInstance;
|
|
249
|
-
}
|
|
250
|
-
function utf8Length(text) {
|
|
251
|
-
const currentTextEncoder = textEncoder();
|
|
252
|
-
if (currentTextEncoder === null) {
|
|
253
|
-
// http://stackoverflow.com/a/5515960/210370
|
|
254
|
-
const m = encodeURIComponent(text).match(/%[89ABab]/g);
|
|
255
|
-
return text.length + (m ? m.length : 0);
|
|
256
|
-
}
|
|
257
|
-
return currentTextEncoder.encode(text).length;
|
|
258
|
-
}
|
|
259
|
-
function DefaultRenderer({
|
|
260
|
-
remainingCharacters
|
|
261
|
-
}) {
|
|
262
|
-
return /*#__PURE__*/jsxRuntime.jsx("span", {
|
|
263
|
-
className: `characters-limit ${remainingCharacters < 0 ? 'characters-limit-exceeded' : ''}`,
|
|
264
|
-
children: remainingCharacters
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
function CharacterLimitPlugin({
|
|
268
|
-
charset = 'UTF-16',
|
|
269
|
-
maxLength = CHARACTER_LIMIT,
|
|
270
|
-
renderer = DefaultRenderer
|
|
271
|
-
}) {
|
|
272
|
-
const [editor] = LexicalComposerContext.useLexicalComposerContext();
|
|
273
|
-
const [remainingCharacters, setRemainingCharacters] = react.useState(maxLength);
|
|
274
|
-
const characterLimitProps = react.useMemo(() => ({
|
|
275
|
-
remainingCharacters: setRemainingCharacters,
|
|
276
|
-
strlen: text => {
|
|
277
|
-
if (charset === 'UTF-8') {
|
|
278
|
-
return utf8Length(text);
|
|
279
|
-
} else if (charset === 'UTF-16') {
|
|
280
|
-
return text.length;
|
|
281
|
-
} else {
|
|
282
|
-
throw new Error('Unrecognized charset');
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}), [charset]);
|
|
286
|
-
useCharacterLimit(editor, maxLength, characterLimitProps);
|
|
287
|
-
return renderer({
|
|
288
|
-
remainingCharacters
|
|
289
|
-
});
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
exports.CharacterLimitPlugin = CharacterLimitPlugin;
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
10
|
-
import { useEffect, useState, useMemo } from 'react';
|
|
11
|
-
import { OverflowNode, $isOverflowNode, $createOverflowNode } from '@lexical/overflow';
|
|
12
|
-
import { $rootTextContent } from '@lexical/text';
|
|
13
|
-
import { mergeRegister, $dfs, $findMatchingParent, $unwrapNode } from '@lexical/utils';
|
|
14
|
-
import { HISTORY_MERGE_TAG, DELETE_CHARACTER_COMMAND, $getSelection, $isRangeSelection, $isElementNode, COMMAND_PRIORITY_LOW, $isLeafNode, $isTextNode, $setSelection } from 'lexical';
|
|
15
|
-
import { jsx } from 'react/jsx-runtime';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
19
|
-
*
|
|
20
|
-
* This source code is licensed under the MIT license found in the
|
|
21
|
-
* LICENSE file in the root directory of this source tree.
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
// Do not require this module directly! Use normal `invariant` calls.
|
|
26
|
-
|
|
27
|
-
function formatDevErrorMessage(message) {
|
|
28
|
-
throw new Error(message);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function useCharacterLimit(editor, maxCharacters, optional = Object.freeze({})) {
|
|
32
|
-
const {
|
|
33
|
-
strlen = input => input.length,
|
|
34
|
-
// UTF-16
|
|
35
|
-
remainingCharacters = () => {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
} = optional;
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
if (!editor.hasNodes([OverflowNode])) {
|
|
41
|
-
{
|
|
42
|
-
formatDevErrorMessage(`useCharacterLimit: OverflowNode not registered on editor`);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}, [editor]);
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
let text = editor.getEditorState().read($rootTextContent);
|
|
48
|
-
let lastComputedTextLength = 0;
|
|
49
|
-
return mergeRegister(editor.registerTextContentListener(currentText => {
|
|
50
|
-
text = currentText;
|
|
51
|
-
}), editor.registerUpdateListener(({
|
|
52
|
-
dirtyLeaves,
|
|
53
|
-
dirtyElements
|
|
54
|
-
}) => {
|
|
55
|
-
const isComposing = editor.isComposing();
|
|
56
|
-
const hasContentChanges = dirtyLeaves.size > 0 || dirtyElements.size > 0;
|
|
57
|
-
if (isComposing || !hasContentChanges) {
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
const textLength = strlen(text);
|
|
61
|
-
const textLengthAboveThreshold = textLength > maxCharacters || lastComputedTextLength !== null && lastComputedTextLength > maxCharacters;
|
|
62
|
-
const diff = maxCharacters - textLength;
|
|
63
|
-
remainingCharacters(diff);
|
|
64
|
-
if (lastComputedTextLength === null || textLengthAboveThreshold) {
|
|
65
|
-
const offset = findOffset(text, maxCharacters, strlen);
|
|
66
|
-
editor.update(() => {
|
|
67
|
-
$wrapOverflowedNodes(offset);
|
|
68
|
-
}, {
|
|
69
|
-
tag: HISTORY_MERGE_TAG
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
lastComputedTextLength = textLength;
|
|
73
|
-
}), editor.registerCommand(DELETE_CHARACTER_COMMAND, isBackward => {
|
|
74
|
-
const selection = $getSelection();
|
|
75
|
-
if (!$isRangeSelection(selection)) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
const anchorNode = selection.anchor.getNode();
|
|
79
|
-
const overflow = anchorNode.getParent();
|
|
80
|
-
const overflowParent = overflow ? overflow.getParent() : null;
|
|
81
|
-
const parentNext = overflowParent ? overflowParent.getNextSibling() : null;
|
|
82
|
-
selection.deleteCharacter(isBackward);
|
|
83
|
-
if (overflowParent && overflowParent.isEmpty()) {
|
|
84
|
-
overflowParent.remove();
|
|
85
|
-
} else if ($isElementNode(parentNext) && parentNext.isEmpty()) {
|
|
86
|
-
parentNext.remove();
|
|
87
|
-
}
|
|
88
|
-
return true;
|
|
89
|
-
}, COMMAND_PRIORITY_LOW));
|
|
90
|
-
}, [editor, maxCharacters, remainingCharacters, strlen]);
|
|
91
|
-
}
|
|
92
|
-
function findOffset(text, maxCharacters, strlen) {
|
|
93
|
-
const Segmenter = Intl.Segmenter;
|
|
94
|
-
let offsetUtf16 = 0;
|
|
95
|
-
let offset = 0;
|
|
96
|
-
if (typeof Segmenter === 'function') {
|
|
97
|
-
const segmenter = new Segmenter();
|
|
98
|
-
const graphemes = segmenter.segment(text);
|
|
99
|
-
for (const {
|
|
100
|
-
segment: grapheme
|
|
101
|
-
} of graphemes) {
|
|
102
|
-
const nextOffset = offset + strlen(grapheme);
|
|
103
|
-
if (nextOffset > maxCharacters) {
|
|
104
|
-
break;
|
|
105
|
-
}
|
|
106
|
-
offset = nextOffset;
|
|
107
|
-
offsetUtf16 += grapheme.length;
|
|
108
|
-
}
|
|
109
|
-
} else {
|
|
110
|
-
const codepoints = Array.from(text);
|
|
111
|
-
const codepointsLength = codepoints.length;
|
|
112
|
-
for (let i = 0; i < codepointsLength; i++) {
|
|
113
|
-
const codepoint = codepoints[i];
|
|
114
|
-
const nextOffset = offset + strlen(codepoint);
|
|
115
|
-
if (nextOffset > maxCharacters) {
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
offset = nextOffset;
|
|
119
|
-
offsetUtf16 += codepoint.length;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
return offsetUtf16;
|
|
123
|
-
}
|
|
124
|
-
function $wrapOverflowedNodes(offset) {
|
|
125
|
-
const dfsNodes = $dfs();
|
|
126
|
-
const dfsNodesLength = dfsNodes.length;
|
|
127
|
-
let accumulatedLength = 0;
|
|
128
|
-
for (let i = 0; i < dfsNodesLength; i += 1) {
|
|
129
|
-
const {
|
|
130
|
-
node
|
|
131
|
-
} = dfsNodes[i];
|
|
132
|
-
const needsOverflowParent = $isLeafNode(node) && !$findMatchingParent(node, $isOverflowNode);
|
|
133
|
-
if ($isOverflowNode(node)) {
|
|
134
|
-
const previousLength = accumulatedLength;
|
|
135
|
-
const nextLength = accumulatedLength + node.getTextContentSize();
|
|
136
|
-
if (nextLength <= offset) {
|
|
137
|
-
const parent = node.getParent();
|
|
138
|
-
const previousSibling = node.getPreviousSibling();
|
|
139
|
-
const nextSibling = node.getNextSibling();
|
|
140
|
-
$unwrapNode(node);
|
|
141
|
-
const selection = $getSelection();
|
|
142
|
-
|
|
143
|
-
// Restore selection when the overflow children are removed
|
|
144
|
-
if ($isRangeSelection(selection) && (!selection.anchor.getNode().isAttached() || !selection.focus.getNode().isAttached())) {
|
|
145
|
-
if ($isTextNode(previousSibling)) {
|
|
146
|
-
previousSibling.select();
|
|
147
|
-
} else if ($isTextNode(nextSibling)) {
|
|
148
|
-
nextSibling.select();
|
|
149
|
-
} else if (parent !== null) {
|
|
150
|
-
parent.select();
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
} else if (previousLength < offset) {
|
|
154
|
-
const descendant = node.getFirstDescendant();
|
|
155
|
-
const descendantLength = descendant !== null ? descendant.getTextContentSize() : 0;
|
|
156
|
-
const previousPlusDescendantLength = previousLength + descendantLength;
|
|
157
|
-
// For simple text we can redimension the overflow into a smaller and more accurate
|
|
158
|
-
// container
|
|
159
|
-
const firstDescendantIsSimpleText = $isTextNode(descendant) && descendant.isSimpleText();
|
|
160
|
-
const firstDescendantDoesNotOverflow = previousPlusDescendantLength <= offset;
|
|
161
|
-
if (firstDescendantIsSimpleText || firstDescendantDoesNotOverflow) {
|
|
162
|
-
$unwrapNode(node);
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
} else if (needsOverflowParent) {
|
|
166
|
-
const previousAccumulatedLength = accumulatedLength;
|
|
167
|
-
accumulatedLength += node.getTextContentSize();
|
|
168
|
-
if (accumulatedLength > offset && !$isOverflowNode(node.getParent())) {
|
|
169
|
-
const previousSelection = $getSelection();
|
|
170
|
-
let overflowNode;
|
|
171
|
-
|
|
172
|
-
// For simple text we can improve the limit accuracy by splitting the TextNode
|
|
173
|
-
// on the split point
|
|
174
|
-
if (previousAccumulatedLength < offset && $isTextNode(node) && node.isSimpleText()) {
|
|
175
|
-
const [, overflowedText] = node.splitText(offset - previousAccumulatedLength);
|
|
176
|
-
overflowNode = $wrapNode(overflowedText);
|
|
177
|
-
} else {
|
|
178
|
-
overflowNode = $wrapNode(node);
|
|
179
|
-
}
|
|
180
|
-
if (previousSelection !== null) {
|
|
181
|
-
$setSelection(previousSelection);
|
|
182
|
-
}
|
|
183
|
-
$mergePrevious(overflowNode);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
function $wrapNode(node) {
|
|
189
|
-
const overflowNode = $createOverflowNode();
|
|
190
|
-
node.replace(overflowNode);
|
|
191
|
-
overflowNode.append(node);
|
|
192
|
-
return overflowNode;
|
|
193
|
-
}
|
|
194
|
-
function $mergePrevious(overflowNode) {
|
|
195
|
-
const previousNode = overflowNode.getPreviousSibling();
|
|
196
|
-
if (!$isOverflowNode(previousNode)) {
|
|
197
|
-
return;
|
|
198
|
-
}
|
|
199
|
-
const firstChild = overflowNode.getFirstChild();
|
|
200
|
-
const previousNodeChildren = previousNode.getChildren();
|
|
201
|
-
const previousNodeChildrenLength = previousNodeChildren.length;
|
|
202
|
-
if (firstChild === null) {
|
|
203
|
-
overflowNode.append(...previousNodeChildren);
|
|
204
|
-
} else {
|
|
205
|
-
for (let i = 0; i < previousNodeChildrenLength; i++) {
|
|
206
|
-
firstChild.insertBefore(previousNodeChildren[i]);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
const selection = $getSelection();
|
|
210
|
-
if ($isRangeSelection(selection)) {
|
|
211
|
-
const anchor = selection.anchor;
|
|
212
|
-
const anchorNode = anchor.getNode();
|
|
213
|
-
const focus = selection.focus;
|
|
214
|
-
const focusNode = anchor.getNode();
|
|
215
|
-
if (anchorNode.is(previousNode)) {
|
|
216
|
-
anchor.set(overflowNode.getKey(), anchor.offset, 'element');
|
|
217
|
-
} else if (anchorNode.is(overflowNode)) {
|
|
218
|
-
anchor.set(overflowNode.getKey(), previousNodeChildrenLength + anchor.offset, 'element');
|
|
219
|
-
}
|
|
220
|
-
if (focusNode.is(previousNode)) {
|
|
221
|
-
focus.set(overflowNode.getKey(), focus.offset, 'element');
|
|
222
|
-
} else if (focusNode.is(overflowNode)) {
|
|
223
|
-
focus.set(overflowNode.getKey(), previousNodeChildrenLength + focus.offset, 'element');
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
previousNode.remove();
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
231
|
-
*
|
|
232
|
-
* This source code is licensed under the MIT license found in the
|
|
233
|
-
* LICENSE file in the root directory of this source tree.
|
|
234
|
-
*
|
|
235
|
-
*/
|
|
236
|
-
|
|
237
|
-
const CHARACTER_LIMIT = 5;
|
|
238
|
-
let textEncoderInstance = null;
|
|
239
|
-
function textEncoder() {
|
|
240
|
-
if (window.TextEncoder === undefined) {
|
|
241
|
-
return null;
|
|
242
|
-
}
|
|
243
|
-
if (textEncoderInstance === null) {
|
|
244
|
-
textEncoderInstance = new window.TextEncoder();
|
|
245
|
-
}
|
|
246
|
-
return textEncoderInstance;
|
|
247
|
-
}
|
|
248
|
-
function utf8Length(text) {
|
|
249
|
-
const currentTextEncoder = textEncoder();
|
|
250
|
-
if (currentTextEncoder === null) {
|
|
251
|
-
// http://stackoverflow.com/a/5515960/210370
|
|
252
|
-
const m = encodeURIComponent(text).match(/%[89ABab]/g);
|
|
253
|
-
return text.length + (m ? m.length : 0);
|
|
254
|
-
}
|
|
255
|
-
return currentTextEncoder.encode(text).length;
|
|
256
|
-
}
|
|
257
|
-
function DefaultRenderer({
|
|
258
|
-
remainingCharacters
|
|
259
|
-
}) {
|
|
260
|
-
return /*#__PURE__*/jsx("span", {
|
|
261
|
-
className: `characters-limit ${remainingCharacters < 0 ? 'characters-limit-exceeded' : ''}`,
|
|
262
|
-
children: remainingCharacters
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
function CharacterLimitPlugin({
|
|
266
|
-
charset = 'UTF-16',
|
|
267
|
-
maxLength = CHARACTER_LIMIT,
|
|
268
|
-
renderer = DefaultRenderer
|
|
269
|
-
}) {
|
|
270
|
-
const [editor] = useLexicalComposerContext();
|
|
271
|
-
const [remainingCharacters, setRemainingCharacters] = useState(maxLength);
|
|
272
|
-
const characterLimitProps = useMemo(() => ({
|
|
273
|
-
remainingCharacters: setRemainingCharacters,
|
|
274
|
-
strlen: text => {
|
|
275
|
-
if (charset === 'UTF-8') {
|
|
276
|
-
return utf8Length(text);
|
|
277
|
-
} else if (charset === 'UTF-16') {
|
|
278
|
-
return text.length;
|
|
279
|
-
} else {
|
|
280
|
-
throw new Error('Unrecognized charset');
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}), [charset]);
|
|
284
|
-
useCharacterLimit(editor, maxLength, characterLimitProps);
|
|
285
|
-
return renderer({
|
|
286
|
-
remainingCharacters
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
export { CharacterLimitPlugin };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
'use strict'
|
|
10
|
-
const LexicalCharacterLimitPlugin = process.env.NODE_ENV !== 'production' ? require('./LexicalCharacterLimitPlugin.dev.js') : require('./LexicalCharacterLimitPlugin.prod.js');
|
|
11
|
-
module.exports = LexicalCharacterLimitPlugin;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
* @flow strict
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
declare export function CharacterLimitPlugin(props: {
|
|
11
|
-
charset: 'UTF-8' | 'UTF-16',
|
|
12
|
-
}): React.Node;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import * as modDev from './LexicalCharacterLimitPlugin.dev.mjs';
|
|
10
|
-
import * as modProd from './LexicalCharacterLimitPlugin.prod.mjs';
|
|
11
|
-
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
|
|
12
|
-
export const CharacterLimitPlugin = mod.CharacterLimitPlugin;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
const mod = await (process.env.NODE_ENV !== 'production' ? import('./LexicalCharacterLimitPlugin.dev.mjs') : import('./LexicalCharacterLimitPlugin.prod.mjs'));
|
|
10
|
-
export const CharacterLimitPlugin = mod.CharacterLimitPlugin;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
"use strict";var e=require("@lexical/react/LexicalComposerContext"),t=require("react"),n=require("@lexical/overflow"),r=require("@lexical/text"),i=require("@lexical/utils"),o=require("lexical"),s=require("react/jsx-runtime");function l(e,s,l=Object.freeze({})){const{strlen:f=e=>e.length,remainingCharacters:g=()=>{}}=l;t.useEffect(()=>{e.hasNodes([n.OverflowNode])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(57)},[e]),t.useEffect(()=>{let t=e.getEditorState().read(r.$rootTextContent),l=0;return i.mergeRegister(e.registerTextContentListener(e=>{t=e}),e.registerUpdateListener(({dirtyLeaves:r,dirtyElements:u})=>{const d=e.isComposing(),h=r.size>0||u.size>0;if(d||!h)return;const m=f(t),x=m>s||null!==l&&l>s;if(g(s-m),null===l||x){const r=function(e,t,n){const r=Intl.Segmenter;let i=0,o=0;if("function"==typeof r){const s=(new r).segment(e);for(const{segment:e}of s){const r=o+n(e);if(r>t)break;o=r,i+=e.length}}else{const r=Array.from(e),s=r.length;for(let e=0;e<s;e++){const s=r[e],l=o+n(s);if(l>t)break;o=l,i+=s.length}}return i}(t,s,f);e.update(()=>{!function(e){const t=i.$dfs(),r=t.length;let s=0;for(let l=0;l<r;l+=1){const{node:r}=t[l],f=o.$isLeafNode(r)&&!i.$findMatchingParent(r,n.$isOverflowNode);if(n.$isOverflowNode(r)){const t=s;if(s+r.getTextContentSize()<=e){const e=r.getParent(),t=r.getPreviousSibling(),n=r.getNextSibling();i.$unwrapNode(r);const s=o.$getSelection();!o.$isRangeSelection(s)||s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()||(o.$isTextNode(t)?t.select():o.$isTextNode(n)?n.select():null!==e&&e.select())}else if(t<e){const n=r.getFirstDescendant(),s=t+(null!==n?n.getTextContentSize():0);(o.$isTextNode(n)&&n.isSimpleText()||s<=e)&&i.$unwrapNode(r)}}else if(f){const t=s;if(s+=r.getTextContentSize(),s>e&&!n.$isOverflowNode(r.getParent())){const n=o.$getSelection();let i;if(t<e&&o.$isTextNode(r)&&r.isSimpleText()){const[,n]=r.splitText(e-t);i=c(n)}else i=c(r);null!==n&&o.$setSelection(n),a(i)}}}}(r)},{tag:o.HISTORY_MERGE_TAG})}l=m}),e.registerCommand(o.DELETE_CHARACTER_COMMAND,e=>{const t=o.$getSelection();if(!o.$isRangeSelection(t))return!1;const n=t.anchor.getNode().getParent(),r=n?n.getParent():null,i=r?r.getNextSibling():null;return t.deleteCharacter(e),r&&r.isEmpty()?r.remove():o.$isElementNode(i)&&i.isEmpty()&&i.remove(),!0},o.COMMAND_PRIORITY_LOW))},[e,s,g,f])}function c(e){const t=n.$createOverflowNode();return e.replace(t),t.append(e),t}function a(e){const t=e.getPreviousSibling();if(!n.$isOverflowNode(t))return;const r=e.getFirstChild(),i=t.getChildren(),s=i.length;if(null===r)e.append(...i);else for(let e=0;e<s;e++)r.insertBefore(i[e]);const l=o.$getSelection();if(o.$isRangeSelection(l)){const n=l.anchor,r=n.getNode(),i=l.focus,o=n.getNode();r.is(t)?n.set(e.getKey(),n.offset,"element"):r.is(e)&&n.set(e.getKey(),s+n.offset,"element"),o.is(t)?i.set(e.getKey(),i.offset,"element"):o.is(e)&&i.set(e.getKey(),s+i.offset,"element")}t.remove()}let f=null;function g(e){const t=void 0===window.TextEncoder?null:(null===f&&(f=new window.TextEncoder),f);if(null===t){const t=encodeURIComponent(e).match(/%[89ABab]/g);return e.length+(t?t.length:0)}return t.encode(e).length}function u({remainingCharacters:e}){return s.jsx("span",{className:"characters-limit "+(e<0?"characters-limit-exceeded":""),children:e})}exports.CharacterLimitPlugin=function({charset:n="UTF-16",maxLength:r=5,renderer:i=u}){const[o]=e.useLexicalComposerContext(),[s,c]=t.useState(r),a=t.useMemo(()=>({remainingCharacters:c,strlen:e=>{if("UTF-8"===n)return g(e);if("UTF-16"===n)return e.length;throw new Error("Unrecognized charset")}}),[n]);return l(o,r,a),i({remainingCharacters:s})};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import{useLexicalComposerContext as e}from"@lexical/react/LexicalComposerContext";import{useEffect as t,useState as n,useMemo as r}from"react";import{OverflowNode as o,$isOverflowNode as i,$createOverflowNode as s}from"@lexical/overflow";import{$rootTextContent as l}from"@lexical/text";import{mergeRegister as c,$dfs as a,$findMatchingParent as f,$unwrapNode as g}from"@lexical/utils";import{HISTORY_MERGE_TAG as m,DELETE_CHARACTER_COMMAND as u,$getSelection as d,$isRangeSelection as h,$isElementNode as p,COMMAND_PRIORITY_LOW as x,$isLeafNode as C,$isTextNode as S,$setSelection as v}from"lexical";import{jsx as w}from"react/jsx-runtime";function T(e,n,r=Object.freeze({})){const{strlen:s=e=>e.length,remainingCharacters:w=()=>{}}=r;t(()=>{e.hasNodes([o])||function(e,...t){const n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",e);for(const e of t)r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(57)},[e]),t(()=>{let t=e.getEditorState().read(l),r=0;return c(e.registerTextContentListener(e=>{t=e}),e.registerUpdateListener(({dirtyLeaves:o,dirtyElements:l})=>{const c=e.isComposing(),u=o.size>0||l.size>0;if(c||!u)return;const p=s(t),x=p>n||null!==r&&r>n;if(w(n-p),null===r||x){const r=function(e,t,n){const r=Intl.Segmenter;let o=0,i=0;if("function"==typeof r){const s=(new r).segment(e);for(const{segment:e}of s){const r=i+n(e);if(r>t)break;i=r,o+=e.length}}else{const r=Array.from(e),s=r.length;for(let e=0;e<s;e++){const s=r[e],l=i+n(s);if(l>t)break;i=l,o+=s.length}}return o}(t,n,s);e.update(()=>{!function(e){const t=a(),n=t.length;let r=0;for(let o=0;o<n;o+=1){const{node:n}=t[o],s=C(n)&&!f(n,i);if(i(n)){const t=r;if(r+n.getTextContentSize()<=e){const e=n.getParent(),t=n.getPreviousSibling(),r=n.getNextSibling();g(n);const o=d();!h(o)||o.anchor.getNode().isAttached()&&o.focus.getNode().isAttached()||(S(t)?t.select():S(r)?r.select():null!==e&&e.select())}else if(t<e){const r=n.getFirstDescendant(),o=t+(null!==r?r.getTextContentSize():0);(S(r)&&r.isSimpleText()||o<=e)&&g(n)}}else if(s){const t=r;if(r+=n.getTextContentSize(),r>e&&!i(n.getParent())){const r=d();let o;if(t<e&&S(n)&&n.isSimpleText()){const[,r]=n.splitText(e-t);o=y(r)}else o=y(n);null!==r&&v(r),N(o)}}}}(r)},{tag:m})}r=p}),e.registerCommand(u,e=>{const t=d();if(!h(t))return!1;const n=t.anchor.getNode().getParent(),r=n?n.getParent():null,o=r?r.getNextSibling():null;return t.deleteCharacter(e),r&&r.isEmpty()?r.remove():p(o)&&o.isEmpty()&&o.remove(),!0},x))},[e,n,w,s])}function y(e){const t=s();return e.replace(t),t.append(e),t}function N(e){const t=e.getPreviousSibling();if(!i(t))return;const n=e.getFirstChild(),r=t.getChildren(),o=r.length;if(null===n)e.append(...r);else for(let e=0;e<o;e++)n.insertBefore(r[e]);const s=d();if(h(s)){const n=s.anchor,r=n.getNode(),i=s.focus,l=n.getNode();r.is(t)?n.set(e.getKey(),n.offset,"element"):r.is(e)&&n.set(e.getKey(),o+n.offset,"element"),l.is(t)?i.set(e.getKey(),i.offset,"element"):l.is(e)&&i.set(e.getKey(),o+i.offset,"element")}t.remove()}let b=null;function E(e){const t=void 0===window.TextEncoder?null:(null===b&&(b=new window.TextEncoder),b);if(null===t){const t=encodeURIComponent(e).match(/%[89ABab]/g);return e.length+(t?t.length:0)}return t.encode(e).length}function L({remainingCharacters:e}){return w("span",{className:"characters-limit "+(e<0?"characters-limit-exceeded":""),children:e})}function U({charset:t="UTF-16",maxLength:o=5,renderer:i=L}){const[s]=e(),[l,c]=n(o);return T(s,o,r(()=>({remainingCharacters:c,strlen:e=>{if("UTF-8"===t)return E(e);if("UTF-16"===t)return e.length;throw new Error("Unrecognized charset")}}),[t])),i({remainingCharacters:l})}export{U as CharacterLimitPlugin};
|