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,532 +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 { eventFiles } from '@lexical/rich-text';
|
|
11
|
-
import { mergeRegister, isHTMLElement, calculateZoomLevel } from '@lexical/utils';
|
|
12
|
-
import { DRAGOVER_COMMAND, COMMAND_PRIORITY_LOW, DROP_COMMAND, COMMAND_PRIORITY_HIGH, $getNodeByKey, $getNearestNodeFromDOMNode, $getRoot } from 'lexical';
|
|
13
|
-
import { useRef, useState, useCallback, useEffect } from 'react';
|
|
14
|
-
import { createPortal } from 'react-dom';
|
|
15
|
-
import { jsxs, Fragment, 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
|
-
class Point {
|
|
25
|
-
_x;
|
|
26
|
-
_y;
|
|
27
|
-
constructor(x, y) {
|
|
28
|
-
this._x = x;
|
|
29
|
-
this._y = y;
|
|
30
|
-
}
|
|
31
|
-
get x() {
|
|
32
|
-
return this._x;
|
|
33
|
-
}
|
|
34
|
-
get y() {
|
|
35
|
-
return this._y;
|
|
36
|
-
}
|
|
37
|
-
equals({
|
|
38
|
-
x,
|
|
39
|
-
y
|
|
40
|
-
}) {
|
|
41
|
-
return this.x === x && this.y === y;
|
|
42
|
-
}
|
|
43
|
-
calcDeltaXTo({
|
|
44
|
-
x
|
|
45
|
-
}) {
|
|
46
|
-
return this.x - x;
|
|
47
|
-
}
|
|
48
|
-
calcDeltaYTo({
|
|
49
|
-
y
|
|
50
|
-
}) {
|
|
51
|
-
return this.y - y;
|
|
52
|
-
}
|
|
53
|
-
calcHorizontalDistanceTo(point) {
|
|
54
|
-
return Math.abs(this.calcDeltaXTo(point));
|
|
55
|
-
}
|
|
56
|
-
calcVerticalDistance(point) {
|
|
57
|
-
return Math.abs(this.calcDeltaYTo(point));
|
|
58
|
-
}
|
|
59
|
-
calcDistanceTo(point) {
|
|
60
|
-
return Math.sqrt(Math.pow(this.calcDeltaXTo(point), 2) + Math.pow(this.calcDeltaYTo(point), 2));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function isPoint(x) {
|
|
64
|
-
return x instanceof Point;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
69
|
-
*
|
|
70
|
-
* This source code is licensed under the MIT license found in the
|
|
71
|
-
* LICENSE file in the root directory of this source tree.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
class Rectangle {
|
|
75
|
-
_left;
|
|
76
|
-
_top;
|
|
77
|
-
_right;
|
|
78
|
-
_bottom;
|
|
79
|
-
constructor(left, top, right, bottom) {
|
|
80
|
-
const [physicTop, physicBottom] = top <= bottom ? [top, bottom] : [bottom, top];
|
|
81
|
-
const [physicLeft, physicRight] = left <= right ? [left, right] : [right, left];
|
|
82
|
-
this._top = physicTop;
|
|
83
|
-
this._right = physicRight;
|
|
84
|
-
this._left = physicLeft;
|
|
85
|
-
this._bottom = physicBottom;
|
|
86
|
-
}
|
|
87
|
-
get top() {
|
|
88
|
-
return this._top;
|
|
89
|
-
}
|
|
90
|
-
get right() {
|
|
91
|
-
return this._right;
|
|
92
|
-
}
|
|
93
|
-
get bottom() {
|
|
94
|
-
return this._bottom;
|
|
95
|
-
}
|
|
96
|
-
get left() {
|
|
97
|
-
return this._left;
|
|
98
|
-
}
|
|
99
|
-
get width() {
|
|
100
|
-
return Math.abs(this._left - this._right);
|
|
101
|
-
}
|
|
102
|
-
get height() {
|
|
103
|
-
return Math.abs(this._bottom - this._top);
|
|
104
|
-
}
|
|
105
|
-
equals({
|
|
106
|
-
top,
|
|
107
|
-
left,
|
|
108
|
-
bottom,
|
|
109
|
-
right
|
|
110
|
-
}) {
|
|
111
|
-
return top === this._top && bottom === this._bottom && left === this._left && right === this._right;
|
|
112
|
-
}
|
|
113
|
-
contains(target) {
|
|
114
|
-
if (isPoint(target)) {
|
|
115
|
-
const {
|
|
116
|
-
x,
|
|
117
|
-
y
|
|
118
|
-
} = target;
|
|
119
|
-
const isOnTopSide = y < this._top;
|
|
120
|
-
const isOnBottomSide = y > this._bottom;
|
|
121
|
-
const isOnLeftSide = x < this._left;
|
|
122
|
-
const isOnRightSide = x > this._right;
|
|
123
|
-
const result = !isOnTopSide && !isOnBottomSide && !isOnLeftSide && !isOnRightSide;
|
|
124
|
-
return {
|
|
125
|
-
reason: {
|
|
126
|
-
isOnBottomSide,
|
|
127
|
-
isOnLeftSide,
|
|
128
|
-
isOnRightSide,
|
|
129
|
-
isOnTopSide
|
|
130
|
-
},
|
|
131
|
-
result
|
|
132
|
-
};
|
|
133
|
-
} else {
|
|
134
|
-
const {
|
|
135
|
-
top,
|
|
136
|
-
left,
|
|
137
|
-
bottom,
|
|
138
|
-
right
|
|
139
|
-
} = target;
|
|
140
|
-
return top >= this._top && top <= this._bottom && bottom >= this._top && bottom <= this._bottom && left >= this._left && left <= this._right && right >= this._left && right <= this._right;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
intersectsWith(rect) {
|
|
144
|
-
const {
|
|
145
|
-
left: x1,
|
|
146
|
-
top: y1,
|
|
147
|
-
width: w1,
|
|
148
|
-
height: h1
|
|
149
|
-
} = rect;
|
|
150
|
-
const {
|
|
151
|
-
left: x2,
|
|
152
|
-
top: y2,
|
|
153
|
-
width: w2,
|
|
154
|
-
height: h2
|
|
155
|
-
} = this;
|
|
156
|
-
const maxX = x1 + w1 >= x2 + w2 ? x1 + w1 : x2 + w2;
|
|
157
|
-
const maxY = y1 + h1 >= y2 + h2 ? y1 + h1 : y2 + h2;
|
|
158
|
-
const minX = x1 <= x2 ? x1 : x2;
|
|
159
|
-
const minY = y1 <= y2 ? y1 : y2;
|
|
160
|
-
return maxX - minX <= w1 + w2 && maxY - minY <= h1 + h2;
|
|
161
|
-
}
|
|
162
|
-
generateNewRect({
|
|
163
|
-
left = this.left,
|
|
164
|
-
top = this.top,
|
|
165
|
-
right = this.right,
|
|
166
|
-
bottom = this.bottom
|
|
167
|
-
}) {
|
|
168
|
-
return new Rectangle(left, top, right, bottom);
|
|
169
|
-
}
|
|
170
|
-
static fromLTRB(left, top, right, bottom) {
|
|
171
|
-
return new Rectangle(left, top, right, bottom);
|
|
172
|
-
}
|
|
173
|
-
static fromLWTH(left, width, top, height) {
|
|
174
|
-
return new Rectangle(left, top, left + width, top + height);
|
|
175
|
-
}
|
|
176
|
-
static fromPoints(startPoint, endPoint) {
|
|
177
|
-
const {
|
|
178
|
-
y: top,
|
|
179
|
-
x: left
|
|
180
|
-
} = startPoint;
|
|
181
|
-
const {
|
|
182
|
-
y: bottom,
|
|
183
|
-
x: right
|
|
184
|
-
} = endPoint;
|
|
185
|
-
return Rectangle.fromLTRB(left, top, right, bottom);
|
|
186
|
-
}
|
|
187
|
-
static fromDOM(dom) {
|
|
188
|
-
const {
|
|
189
|
-
top,
|
|
190
|
-
width,
|
|
191
|
-
left,
|
|
192
|
-
height
|
|
193
|
-
} = dom.getBoundingClientRect();
|
|
194
|
-
return Rectangle.fromLWTH(left, width, top, height);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
200
|
-
*
|
|
201
|
-
* This source code is licensed under the MIT license found in the
|
|
202
|
-
* LICENSE file in the root directory of this source tree.
|
|
203
|
-
*
|
|
204
|
-
*/
|
|
205
|
-
|
|
206
|
-
const SPACE = 4;
|
|
207
|
-
const TARGET_LINE_HALF_HEIGHT = 2;
|
|
208
|
-
const DRAG_DATA_FORMAT = 'application/x-lexical-drag-block';
|
|
209
|
-
const TEXT_BOX_HORIZONTAL_PADDING = 28;
|
|
210
|
-
const Downward = 1;
|
|
211
|
-
const Upward = -1;
|
|
212
|
-
const Indeterminate = 0;
|
|
213
|
-
let prevIndex = Infinity;
|
|
214
|
-
function getCurrentIndex(keysLength) {
|
|
215
|
-
if (keysLength === 0) {
|
|
216
|
-
return Infinity;
|
|
217
|
-
}
|
|
218
|
-
if (prevIndex >= 0 && prevIndex < keysLength) {
|
|
219
|
-
return prevIndex;
|
|
220
|
-
}
|
|
221
|
-
return Math.floor(keysLength / 2);
|
|
222
|
-
}
|
|
223
|
-
function getTopLevelNodeKeys(editor) {
|
|
224
|
-
return editor.getEditorState().read(() => $getRoot().getChildrenKeys());
|
|
225
|
-
}
|
|
226
|
-
function getCollapsedMargins(elem) {
|
|
227
|
-
const getMargin = (element, margin) => element ? parseFloat(window.getComputedStyle(element)[margin]) : 0;
|
|
228
|
-
const {
|
|
229
|
-
marginTop,
|
|
230
|
-
marginBottom
|
|
231
|
-
} = window.getComputedStyle(elem);
|
|
232
|
-
const prevElemSiblingMarginBottom = getMargin(elem.previousElementSibling, 'marginBottom');
|
|
233
|
-
const nextElemSiblingMarginTop = getMargin(elem.nextElementSibling, 'marginTop');
|
|
234
|
-
const collapsedTopMargin = Math.max(parseFloat(marginTop), prevElemSiblingMarginBottom);
|
|
235
|
-
const collapsedBottomMargin = Math.max(parseFloat(marginBottom), nextElemSiblingMarginTop);
|
|
236
|
-
return {
|
|
237
|
-
marginBottom: collapsedBottomMargin,
|
|
238
|
-
marginTop: collapsedTopMargin
|
|
239
|
-
};
|
|
240
|
-
}
|
|
241
|
-
function getBlockElement(anchorElem, editor, event, useEdgeAsDefault = false) {
|
|
242
|
-
const anchorElementRect = anchorElem.getBoundingClientRect();
|
|
243
|
-
const topLevelNodeKeys = getTopLevelNodeKeys(editor);
|
|
244
|
-
let blockElem = null;
|
|
245
|
-
editor.getEditorState().read(() => {
|
|
246
|
-
if (useEdgeAsDefault) {
|
|
247
|
-
const [firstNode, lastNode] = [editor.getElementByKey(topLevelNodeKeys[0]), editor.getElementByKey(topLevelNodeKeys[topLevelNodeKeys.length - 1])];
|
|
248
|
-
const [firstNodeRect, lastNodeRect] = [firstNode != null ? firstNode.getBoundingClientRect() : undefined, lastNode != null ? lastNode.getBoundingClientRect() : undefined];
|
|
249
|
-
if (firstNodeRect && lastNodeRect) {
|
|
250
|
-
const firstNodeZoom = calculateZoomLevel(firstNode);
|
|
251
|
-
const lastNodeZoom = calculateZoomLevel(lastNode);
|
|
252
|
-
if (event.y / firstNodeZoom < firstNodeRect.top) {
|
|
253
|
-
blockElem = firstNode;
|
|
254
|
-
} else if (event.y / lastNodeZoom > lastNodeRect.bottom) {
|
|
255
|
-
blockElem = lastNode;
|
|
256
|
-
}
|
|
257
|
-
if (blockElem) {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
let index = getCurrentIndex(topLevelNodeKeys.length);
|
|
263
|
-
let direction = Indeterminate;
|
|
264
|
-
while (index >= 0 && index < topLevelNodeKeys.length) {
|
|
265
|
-
const key = topLevelNodeKeys[index];
|
|
266
|
-
const elem = editor.getElementByKey(key);
|
|
267
|
-
if (elem === null) {
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
const zoom = calculateZoomLevel(elem);
|
|
271
|
-
const point = new Point(event.x / zoom, event.y / zoom);
|
|
272
|
-
const domRect = Rectangle.fromDOM(elem);
|
|
273
|
-
const {
|
|
274
|
-
marginTop,
|
|
275
|
-
marginBottom
|
|
276
|
-
} = getCollapsedMargins(elem);
|
|
277
|
-
const rect = domRect.generateNewRect({
|
|
278
|
-
bottom: domRect.bottom + marginBottom,
|
|
279
|
-
left: anchorElementRect.left,
|
|
280
|
-
right: anchorElementRect.right,
|
|
281
|
-
top: domRect.top - marginTop
|
|
282
|
-
});
|
|
283
|
-
const {
|
|
284
|
-
result,
|
|
285
|
-
reason: {
|
|
286
|
-
isOnTopSide,
|
|
287
|
-
isOnBottomSide
|
|
288
|
-
}
|
|
289
|
-
} = rect.contains(point);
|
|
290
|
-
if (result) {
|
|
291
|
-
blockElem = elem;
|
|
292
|
-
prevIndex = index;
|
|
293
|
-
break;
|
|
294
|
-
}
|
|
295
|
-
if (direction === Indeterminate) {
|
|
296
|
-
if (isOnTopSide) {
|
|
297
|
-
direction = Upward;
|
|
298
|
-
} else if (isOnBottomSide) {
|
|
299
|
-
direction = Downward;
|
|
300
|
-
} else {
|
|
301
|
-
// stop search block element
|
|
302
|
-
direction = Infinity;
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
index += direction;
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
return blockElem;
|
|
309
|
-
}
|
|
310
|
-
function setMenuPosition(targetElem, floatingElem, anchorElem) {
|
|
311
|
-
if (!targetElem) {
|
|
312
|
-
floatingElem.style.opacity = '0';
|
|
313
|
-
floatingElem.style.transform = 'translate(-10000px, -10000px)';
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
const targetRect = targetElem.getBoundingClientRect();
|
|
317
|
-
const targetStyle = window.getComputedStyle(targetElem);
|
|
318
|
-
const floatingElemRect = floatingElem.getBoundingClientRect();
|
|
319
|
-
const anchorElementRect = anchorElem.getBoundingClientRect();
|
|
320
|
-
|
|
321
|
-
// top left
|
|
322
|
-
let targetCalculateHeight = parseInt(targetStyle.lineHeight, 10);
|
|
323
|
-
if (isNaN(targetCalculateHeight)) {
|
|
324
|
-
// middle
|
|
325
|
-
targetCalculateHeight = targetRect.bottom - targetRect.top;
|
|
326
|
-
}
|
|
327
|
-
const top = targetRect.top + (targetCalculateHeight - floatingElemRect.height) / 2 - anchorElementRect.top + anchorElem.scrollTop;
|
|
328
|
-
const left = SPACE;
|
|
329
|
-
floatingElem.style.opacity = '1';
|
|
330
|
-
floatingElem.style.transform = `translate(${left}px, ${top}px)`;
|
|
331
|
-
}
|
|
332
|
-
function setDragImage(dataTransfer, draggableBlockElem) {
|
|
333
|
-
const {
|
|
334
|
-
transform
|
|
335
|
-
} = draggableBlockElem.style;
|
|
336
|
-
|
|
337
|
-
// Remove dragImage borders
|
|
338
|
-
draggableBlockElem.style.transform = 'translateZ(0)';
|
|
339
|
-
dataTransfer.setDragImage(draggableBlockElem, 0, 0);
|
|
340
|
-
setTimeout(() => {
|
|
341
|
-
draggableBlockElem.style.transform = transform;
|
|
342
|
-
});
|
|
343
|
-
}
|
|
344
|
-
function setTargetLine(targetLineElem, targetBlockElem, mouseY, anchorElem) {
|
|
345
|
-
const {
|
|
346
|
-
top: targetBlockElemTop,
|
|
347
|
-
height: targetBlockElemHeight
|
|
348
|
-
} = targetBlockElem.getBoundingClientRect();
|
|
349
|
-
const {
|
|
350
|
-
top: anchorTop,
|
|
351
|
-
width: anchorWidth
|
|
352
|
-
} = anchorElem.getBoundingClientRect();
|
|
353
|
-
const {
|
|
354
|
-
marginTop,
|
|
355
|
-
marginBottom
|
|
356
|
-
} = getCollapsedMargins(targetBlockElem);
|
|
357
|
-
let lineTop = targetBlockElemTop;
|
|
358
|
-
if (mouseY >= targetBlockElemTop) {
|
|
359
|
-
lineTop += targetBlockElemHeight + marginBottom / 2;
|
|
360
|
-
} else {
|
|
361
|
-
lineTop -= marginTop / 2;
|
|
362
|
-
}
|
|
363
|
-
const top = lineTop - anchorTop - TARGET_LINE_HALF_HEIGHT + anchorElem.scrollTop;
|
|
364
|
-
const left = TEXT_BOX_HORIZONTAL_PADDING - SPACE;
|
|
365
|
-
targetLineElem.style.transform = `translate(${left}px, ${top}px)`;
|
|
366
|
-
targetLineElem.style.width = `${anchorWidth - (TEXT_BOX_HORIZONTAL_PADDING - SPACE) * 2}px`;
|
|
367
|
-
targetLineElem.style.opacity = '.4';
|
|
368
|
-
}
|
|
369
|
-
function hideTargetLine(targetLineElem) {
|
|
370
|
-
if (targetLineElem) {
|
|
371
|
-
targetLineElem.style.opacity = '0';
|
|
372
|
-
targetLineElem.style.transform = 'translate(-10000px, -10000px)';
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
function useDraggableBlockMenu(editor, anchorElem, menuRef, targetLineRef, isEditable, menuComponent, targetLineComponent, isOnMenu, onElementChanged) {
|
|
376
|
-
const scrollerElem = anchorElem.parentElement;
|
|
377
|
-
const isDraggingBlockRef = useRef(false);
|
|
378
|
-
const [draggableBlockElem, setDraggableBlockElemState] = useState(null);
|
|
379
|
-
const setDraggableBlockElem = useCallback(elem => {
|
|
380
|
-
setDraggableBlockElemState(elem);
|
|
381
|
-
if (onElementChanged) {
|
|
382
|
-
onElementChanged(elem);
|
|
383
|
-
}
|
|
384
|
-
}, [onElementChanged]);
|
|
385
|
-
useEffect(() => {
|
|
386
|
-
function onMouseMove(event) {
|
|
387
|
-
const target = event.target;
|
|
388
|
-
if (!isHTMLElement(target)) {
|
|
389
|
-
setDraggableBlockElem(null);
|
|
390
|
-
return;
|
|
391
|
-
}
|
|
392
|
-
if (isOnMenu(target)) {
|
|
393
|
-
return;
|
|
394
|
-
}
|
|
395
|
-
const _draggableBlockElem = getBlockElement(anchorElem, editor, event);
|
|
396
|
-
setDraggableBlockElem(_draggableBlockElem);
|
|
397
|
-
}
|
|
398
|
-
function onMouseLeave() {
|
|
399
|
-
setDraggableBlockElem(null);
|
|
400
|
-
}
|
|
401
|
-
if (scrollerElem != null) {
|
|
402
|
-
scrollerElem.addEventListener('mousemove', onMouseMove);
|
|
403
|
-
scrollerElem.addEventListener('mouseleave', onMouseLeave);
|
|
404
|
-
}
|
|
405
|
-
return () => {
|
|
406
|
-
if (scrollerElem != null) {
|
|
407
|
-
scrollerElem.removeEventListener('mousemove', onMouseMove);
|
|
408
|
-
scrollerElem.removeEventListener('mouseleave', onMouseLeave);
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
}, [scrollerElem, anchorElem, editor, isOnMenu, setDraggableBlockElem]);
|
|
412
|
-
useEffect(() => {
|
|
413
|
-
if (menuRef.current) {
|
|
414
|
-
setMenuPosition(draggableBlockElem, menuRef.current, anchorElem);
|
|
415
|
-
}
|
|
416
|
-
}, [anchorElem, draggableBlockElem, menuRef]);
|
|
417
|
-
useEffect(() => {
|
|
418
|
-
function onDragover(event) {
|
|
419
|
-
if (!isDraggingBlockRef.current) {
|
|
420
|
-
return false;
|
|
421
|
-
}
|
|
422
|
-
const [isFileTransfer] = eventFiles(event);
|
|
423
|
-
if (isFileTransfer) {
|
|
424
|
-
return false;
|
|
425
|
-
}
|
|
426
|
-
const {
|
|
427
|
-
pageY,
|
|
428
|
-
target
|
|
429
|
-
} = event;
|
|
430
|
-
if (!isHTMLElement(target)) {
|
|
431
|
-
return false;
|
|
432
|
-
}
|
|
433
|
-
const targetBlockElem = getBlockElement(anchorElem, editor, event, true);
|
|
434
|
-
const targetLineElem = targetLineRef.current;
|
|
435
|
-
if (targetBlockElem === null || targetLineElem === null) {
|
|
436
|
-
return false;
|
|
437
|
-
}
|
|
438
|
-
setTargetLine(targetLineElem, targetBlockElem, pageY / calculateZoomLevel(target), anchorElem);
|
|
439
|
-
// Prevent default event to be able to trigger onDrop events
|
|
440
|
-
event.preventDefault();
|
|
441
|
-
return true;
|
|
442
|
-
}
|
|
443
|
-
function $onDrop(event) {
|
|
444
|
-
if (!isDraggingBlockRef.current) {
|
|
445
|
-
return false;
|
|
446
|
-
}
|
|
447
|
-
const [isFileTransfer] = eventFiles(event);
|
|
448
|
-
if (isFileTransfer) {
|
|
449
|
-
return false;
|
|
450
|
-
}
|
|
451
|
-
const {
|
|
452
|
-
target,
|
|
453
|
-
dataTransfer,
|
|
454
|
-
pageY
|
|
455
|
-
} = event;
|
|
456
|
-
const dragData = dataTransfer != null ? dataTransfer.getData(DRAG_DATA_FORMAT) : '';
|
|
457
|
-
const draggedNode = $getNodeByKey(dragData);
|
|
458
|
-
if (!draggedNode) {
|
|
459
|
-
return false;
|
|
460
|
-
}
|
|
461
|
-
if (!isHTMLElement(target)) {
|
|
462
|
-
return false;
|
|
463
|
-
}
|
|
464
|
-
const targetBlockElem = getBlockElement(anchorElem, editor, event, true);
|
|
465
|
-
if (!targetBlockElem) {
|
|
466
|
-
return false;
|
|
467
|
-
}
|
|
468
|
-
const targetNode = $getNearestNodeFromDOMNode(targetBlockElem);
|
|
469
|
-
if (!targetNode) {
|
|
470
|
-
return false;
|
|
471
|
-
}
|
|
472
|
-
if (targetNode === draggedNode) {
|
|
473
|
-
return true;
|
|
474
|
-
}
|
|
475
|
-
const targetBlockElemTop = targetBlockElem.getBoundingClientRect().top;
|
|
476
|
-
if (pageY / calculateZoomLevel(target) >= targetBlockElemTop) {
|
|
477
|
-
targetNode.insertAfter(draggedNode);
|
|
478
|
-
} else {
|
|
479
|
-
targetNode.insertBefore(draggedNode);
|
|
480
|
-
}
|
|
481
|
-
setDraggableBlockElem(null);
|
|
482
|
-
return true;
|
|
483
|
-
}
|
|
484
|
-
return mergeRegister(editor.registerCommand(DRAGOVER_COMMAND, event => {
|
|
485
|
-
return onDragover(event);
|
|
486
|
-
}, COMMAND_PRIORITY_LOW), editor.registerCommand(DROP_COMMAND, event => {
|
|
487
|
-
return $onDrop(event);
|
|
488
|
-
}, COMMAND_PRIORITY_HIGH));
|
|
489
|
-
}, [anchorElem, editor, targetLineRef, setDraggableBlockElem]);
|
|
490
|
-
function onDragStart(event) {
|
|
491
|
-
const dataTransfer = event.dataTransfer;
|
|
492
|
-
if (!dataTransfer || !draggableBlockElem) {
|
|
493
|
-
return;
|
|
494
|
-
}
|
|
495
|
-
setDragImage(dataTransfer, draggableBlockElem);
|
|
496
|
-
let nodeKey = '';
|
|
497
|
-
editor.update(() => {
|
|
498
|
-
const node = $getNearestNodeFromDOMNode(draggableBlockElem);
|
|
499
|
-
if (node) {
|
|
500
|
-
nodeKey = node.getKey();
|
|
501
|
-
}
|
|
502
|
-
});
|
|
503
|
-
isDraggingBlockRef.current = true;
|
|
504
|
-
dataTransfer.setData(DRAG_DATA_FORMAT, nodeKey);
|
|
505
|
-
}
|
|
506
|
-
function onDragEnd() {
|
|
507
|
-
isDraggingBlockRef.current = false;
|
|
508
|
-
hideTargetLine(targetLineRef.current);
|
|
509
|
-
}
|
|
510
|
-
return /*#__PURE__*/createPortal(/*#__PURE__*/jsxs(Fragment, {
|
|
511
|
-
children: [/*#__PURE__*/jsx("div", {
|
|
512
|
-
draggable: true,
|
|
513
|
-
onDragStart: onDragStart,
|
|
514
|
-
onDragEnd: onDragEnd,
|
|
515
|
-
children: isEditable && menuComponent
|
|
516
|
-
}), targetLineComponent]
|
|
517
|
-
}), anchorElem);
|
|
518
|
-
}
|
|
519
|
-
function DraggableBlockPlugin_EXPERIMENTAL({
|
|
520
|
-
anchorElem = document.body,
|
|
521
|
-
menuRef,
|
|
522
|
-
targetLineRef,
|
|
523
|
-
menuComponent,
|
|
524
|
-
targetLineComponent,
|
|
525
|
-
isOnMenu,
|
|
526
|
-
onElementChanged
|
|
527
|
-
}) {
|
|
528
|
-
const [editor] = useLexicalComposerContext();
|
|
529
|
-
return useDraggableBlockMenu(editor, anchorElem, menuRef, targetLineRef, editor._editable, menuComponent, targetLineComponent, isOnMenu, onElementChanged);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export { DraggableBlockPlugin_EXPERIMENTAL };
|
|
@@ -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 LexicalDraggableBlockPlugin = process.env.NODE_ENV !== 'production' ? require('./LexicalDraggableBlockPlugin.dev.js') : require('./LexicalDraggableBlockPlugin.prod.js');
|
|
11
|
-
module.exports = LexicalDraggableBlockPlugin;
|
|
@@ -1,24 +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
|
-
import * as React from 'react';
|
|
11
|
-
|
|
12
|
-
type Props = $ReadOnly<{
|
|
13
|
-
anchorElem?: ?HTMLElement,
|
|
14
|
-
menuRef: React.RefObject<?HTMLElement>,
|
|
15
|
-
targetLineRef: React.RefObject<?HTMLElement>,
|
|
16
|
-
menuComponent: React.Node,
|
|
17
|
-
targetLineComponent: React.Node,
|
|
18
|
-
isOnMenu: (element: HTMLElement) => boolean,
|
|
19
|
-
onElementChanged?: (element: HTMLElement | null) => void
|
|
20
|
-
}>;
|
|
21
|
-
|
|
22
|
-
declare export function DraggableBlockPlugin_EXPERIMENTAL(
|
|
23
|
-
props: Props,
|
|
24
|
-
): React.MixedElement;
|
|
@@ -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 './LexicalDraggableBlockPlugin.dev.mjs';
|
|
10
|
-
import * as modProd from './LexicalDraggableBlockPlugin.prod.mjs';
|
|
11
|
-
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
|
|
12
|
-
export const DraggableBlockPlugin_EXPERIMENTAL = mod.DraggableBlockPlugin_EXPERIMENTAL;
|
|
@@ -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('./LexicalDraggableBlockPlugin.dev.mjs') : import('./LexicalDraggableBlockPlugin.prod.mjs'));
|
|
10
|
-
export const DraggableBlockPlugin_EXPERIMENTAL = mod.DraggableBlockPlugin_EXPERIMENTAL;
|
|
@@ -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 t=require("@lexical/react/LexicalComposerContext"),e=require("@lexical/rich-text"),n=require("@lexical/utils"),r=require("lexical"),o=require("react"),i=require("react-dom"),s=require("react/jsx-runtime");class l{_x;_y;constructor(t,e){this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals({x:t,y:e}){return this.x===t&&this.y===e}calcDeltaXTo({x:t}){return this.x-t}calcDeltaYTo({y:t}){return this.y-t}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){return Math.sqrt(Math.pow(this.calcDeltaXTo(t),2)+Math.pow(this.calcDeltaYTo(t),2))}}class a{_left;_top;_right;_bottom;constructor(t,e,n,r){const[o,i]=e<=r?[e,r]:[r,e],[s,l]=t<=n?[t,n]:[n,t];this._top=o,this._right=l,this._left=s,this._bottom=i}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:t,left:e,bottom:n,right:r}){return t===this._top&&n===this._bottom&&e===this._left&&r===this._right}contains(t){if(t instanceof l){const{x:e,y:n}=t,r=n<this._top,o=n>this._bottom,i=e<this._left,s=e>this._right;return{reason:{isOnBottomSide:o,isOnLeftSide:i,isOnRightSide:s,isOnTopSide:r},result:!(r||o||i||s)}}{const{top:e,left:n,bottom:r,right:o}=t;return e>=this._top&&e<=this._bottom&&r>=this._top&&r<=this._bottom&&n>=this._left&&n<=this._right&&o>=this._left&&o<=this._right}}intersectsWith(t){const{left:e,top:n,width:r,height:o}=t,{left:i,top:s,width:l,height:a}=this;return(e+r>=i+l?e+r:i+l)-(e<=i?e:i)<=r+l&&(n+o>=s+a?n+o:s+a)-(n<=s?n:s)<=o+a}generateNewRect({left:t=this.left,top:e=this.top,right:n=this.right,bottom:r=this.bottom}){return new a(t,e,n,r)}static fromLTRB(t,e,n,r){return new a(t,e,n,r)}static fromLWTH(t,e,n,r){return new a(t,n,t+e,n+r)}static fromPoints(t,e){const{y:n,x:r}=t,{y:o,x:i}=e;return a.fromLTRB(r,n,i,o)}static fromDOM(t){const{top:e,width:n,left:r,height:o}=t.getBoundingClientRect();return a.fromLWTH(r,n,e,o)}}const c="application/x-lexical-drag-block";let u=1/0;function g(t){const e=(t,e)=>t?parseFloat(window.getComputedStyle(t)[e]):0,{marginTop:n,marginBottom:r}=window.getComputedStyle(t),o=e(t.previousElementSibling,"marginBottom"),i=e(t.nextElementSibling,"marginTop"),s=Math.max(parseFloat(n),o);return{marginBottom:Math.max(parseFloat(r),i),marginTop:s}}function h(t,e,o,i=!1){const s=t.getBoundingClientRect(),c=function(t){return t.getEditorState().read(()=>r.$getRoot().getChildrenKeys())}(e);let h=null;return e.getEditorState().read(()=>{if(i){const[t,r]=[e.getElementByKey(c[0]),e.getElementByKey(c[c.length-1])],[i,s]=[null!=t?t.getBoundingClientRect():void 0,null!=r?r.getBoundingClientRect():void 0];if(i&&s){const e=n.calculateZoomLevel(t),l=n.calculateZoomLevel(r);if(o.y/e<i.top?h=t:o.y/l>s.bottom&&(h=r),h)return}}let t=0===(r=c.length)?1/0:u>=0&&u<r?u:Math.floor(r/2);var r;let m=0;for(;t>=0&&t<c.length;){const r=c[t],i=e.getElementByKey(r);if(null===i)break;const f=n.calculateZoomLevel(i),p=new l(o.x/f,o.y/f),d=a.fromDOM(i),{marginTop:_,marginBottom:y}=g(i),x=d.generateNewRect({bottom:d.bottom+y,left:s.left,right:s.right,top:d.top-_}),{result:b,reason:{isOnTopSide:T,isOnBottomSide:C}}=x.contains(p);if(b){h=i,u=t;break}0===m&&(m=T?-1:C?1:1/0),t+=m}}),h}function m(t,l,a,u,m,f,p,d,_){const y=l.parentElement,x=o.useRef(!1),[b,T]=o.useState(null),C=o.useCallback(t=>{T(t),_&&_(t)},[_]);return o.useEffect(()=>{function e(e){const r=e.target;if(!n.isHTMLElement(r))return void C(null);if(d(r))return;const o=h(l,t,e);C(o)}function r(){C(null)}return null!=y&&(y.addEventListener("mousemove",e),y.addEventListener("mouseleave",r)),()=>{null!=y&&(y.removeEventListener("mousemove",e),y.removeEventListener("mouseleave",r))}},[y,l,t,d,C]),o.useEffect(()=>{a.current&&function(t,e,n){if(!t)return e.style.opacity="0",void(e.style.transform="translate(-10000px, -10000px)");const r=t.getBoundingClientRect(),o=window.getComputedStyle(t),i=e.getBoundingClientRect(),s=n.getBoundingClientRect();let l=parseInt(o.lineHeight,10);isNaN(l)&&(l=r.bottom-r.top);const a=r.top+(l-i.height)/2-s.top+n.scrollTop;e.style.opacity="1",e.style.transform=`translate(4px, ${a}px)`}(b,a.current,l)},[l,b,a]),o.useEffect(()=>{function o(r){if(!x.current)return!1;const[o]=e.eventFiles(r);if(o)return!1;const{pageY:i,target:s}=r;if(!n.isHTMLElement(s))return!1;const a=h(l,t,r,!0),c=u.current;return null!==a&&null!==c&&(function(t,e,n,r){const{top:o,height:i}=e.getBoundingClientRect(),{top:s,width:l}=r.getBoundingClientRect(),{marginTop:a,marginBottom:c}=g(e);let u=o;n>=o?u+=i+c/2:u-=a/2;const h=u-s-2+r.scrollTop;t.style.transform=`translate(24px, ${h}px)`,t.style.width=l-48+"px",t.style.opacity=".4"}(c,a,i/n.calculateZoomLevel(s),l),r.preventDefault(),!0)}return n.mergeRegister(t.registerCommand(r.DRAGOVER_COMMAND,t=>o(t),r.COMMAND_PRIORITY_LOW),t.registerCommand(r.DROP_COMMAND,o=>function(o){if(!x.current)return!1;const[i]=e.eventFiles(o);if(i)return!1;const{target:s,dataTransfer:a,pageY:u}=o,g=null!=a?a.getData(c):"",m=r.$getNodeByKey(g);if(!m)return!1;if(!n.isHTMLElement(s))return!1;const f=h(l,t,o,!0);if(!f)return!1;const p=r.$getNearestNodeFromDOMNode(f);if(!p)return!1;if(p===m)return!0;const d=f.getBoundingClientRect().top;return u/n.calculateZoomLevel(s)>=d?p.insertAfter(m):p.insertBefore(m),C(null),!0}(o),r.COMMAND_PRIORITY_HIGH))},[l,t,u,C]),i.createPortal(s.jsxs(s.Fragment,{children:[s.jsx("div",{draggable:!0,onDragStart:function(e){const n=e.dataTransfer;if(!n||!b)return;!function(t,e){const{transform:n}=e.style;e.style.transform="translateZ(0)",t.setDragImage(e,0,0),setTimeout(()=>{e.style.transform=n})}(n,b);let o="";t.update(()=>{const t=r.$getNearestNodeFromDOMNode(b);t&&(o=t.getKey())}),x.current=!0,n.setData(c,o)},onDragEnd:function(){var t;x.current=!1,(t=u.current)&&(t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)")},children:m&&f}),p]}),l)}exports.DraggableBlockPlugin_EXPERIMENTAL=function({anchorElem:e=document.body,menuRef:n,targetLineRef:r,menuComponent:o,targetLineComponent:i,isOnMenu:s,onElementChanged:l}){const[a]=t.useLexicalComposerContext();return m(a,e,n,r,a._editable,o,i,s,l)};
|
|
@@ -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 t}from"@lexical/react/LexicalComposerContext";import{eventFiles as e}from"@lexical/rich-text";import{mergeRegister as n,isHTMLElement as r,calculateZoomLevel as o}from"@lexical/utils";import{DRAGOVER_COMMAND as i,COMMAND_PRIORITY_LOW as s,DROP_COMMAND as l,COMMAND_PRIORITY_HIGH as a,$getNodeByKey as c,$getNearestNodeFromDOMNode as u,$getRoot as h}from"lexical";import{useRef as m,useState as g,useCallback as f,useEffect as p}from"react";import{createPortal as d}from"react-dom";import{jsxs as y,Fragment as _,jsx as x}from"react/jsx-runtime";class b{_x;_y;constructor(t,e){this._x=t,this._y=e}get x(){return this._x}get y(){return this._y}equals({x:t,y:e}){return this.x===t&&this.y===e}calcDeltaXTo({x:t}){return this.x-t}calcDeltaYTo({y:t}){return this.y-t}calcHorizontalDistanceTo(t){return Math.abs(this.calcDeltaXTo(t))}calcVerticalDistance(t){return Math.abs(this.calcDeltaYTo(t))}calcDistanceTo(t){return Math.sqrt(Math.pow(this.calcDeltaXTo(t),2)+Math.pow(this.calcDeltaYTo(t),2))}}class T{_left;_top;_right;_bottom;constructor(t,e,n,r){const[o,i]=e<=r?[e,r]:[r,e],[s,l]=t<=n?[t,n]:[n,t];this._top=o,this._right=l,this._left=s,this._bottom=i}get top(){return this._top}get right(){return this._right}get bottom(){return this._bottom}get left(){return this._left}get width(){return Math.abs(this._left-this._right)}get height(){return Math.abs(this._bottom-this._top)}equals({top:t,left:e,bottom:n,right:r}){return t===this._top&&n===this._bottom&&e===this._left&&r===this._right}contains(t){if(t instanceof b){const{x:e,y:n}=t,r=n<this._top,o=n>this._bottom,i=e<this._left,s=e>this._right;return{reason:{isOnBottomSide:o,isOnLeftSide:i,isOnRightSide:s,isOnTopSide:r},result:!(r||o||i||s)}}{const{top:e,left:n,bottom:r,right:o}=t;return e>=this._top&&e<=this._bottom&&r>=this._top&&r<=this._bottom&&n>=this._left&&n<=this._right&&o>=this._left&&o<=this._right}}intersectsWith(t){const{left:e,top:n,width:r,height:o}=t,{left:i,top:s,width:l,height:a}=this;return(e+r>=i+l?e+r:i+l)-(e<=i?e:i)<=r+l&&(n+o>=s+a?n+o:s+a)-(n<=s?n:s)<=o+a}generateNewRect({left:t=this.left,top:e=this.top,right:n=this.right,bottom:r=this.bottom}){return new T(t,e,n,r)}static fromLTRB(t,e,n,r){return new T(t,e,n,r)}static fromLWTH(t,e,n,r){return new T(t,n,t+e,n+r)}static fromPoints(t,e){const{y:n,x:r}=t,{y:o,x:i}=e;return T.fromLTRB(r,n,i,o)}static fromDOM(t){const{top:e,width:n,left:r,height:o}=t.getBoundingClientRect();return T.fromLWTH(r,n,e,o)}}const B="application/x-lexical-drag-block";let C=1/0;function w(t){const e=(t,e)=>t?parseFloat(window.getComputedStyle(t)[e]):0,{marginTop:n,marginBottom:r}=window.getComputedStyle(t),o=e(t.previousElementSibling,"marginBottom"),i=e(t.nextElementSibling,"marginTop"),s=Math.max(parseFloat(n),o);return{marginBottom:Math.max(parseFloat(r),i),marginTop:s}}function v(t,e,n,r=!1){const i=t.getBoundingClientRect(),s=function(t){return t.getEditorState().read(()=>h().getChildrenKeys())}(e);let l=null;return e.getEditorState().read(()=>{if(r){const[t,r]=[e.getElementByKey(s[0]),e.getElementByKey(s[s.length-1])],[i,a]=[null!=t?t.getBoundingClientRect():void 0,null!=r?r.getBoundingClientRect():void 0];if(i&&a){const e=o(t),s=o(r);if(n.y/e<i.top?l=t:n.y/s>a.bottom&&(l=r),l)return}}let t=0===(a=s.length)?1/0:C>=0&&C<a?C:Math.floor(a/2);var a;let c=0;for(;t>=0&&t<s.length;){const r=s[t],a=e.getElementByKey(r);if(null===a)break;const u=o(a),h=new b(n.x/u,n.y/u),m=T.fromDOM(a),{marginTop:g,marginBottom:f}=w(a),p=m.generateNewRect({bottom:m.bottom+f,left:i.left,right:i.right,top:m.top-g}),{result:d,reason:{isOnTopSide:y,isOnBottomSide:_}}=p.contains(h);if(d){l=a,C=t;break}0===c&&(c=y?-1:_?1:1/0),t+=c}}),l}function D(t,h,b,T,C,D,R,E,S){const M=h.parentElement,L=m(!1),[O,K]=g(null),Y=f(t=>{K(t),S&&S(t)},[S]);return p(()=>{function e(e){const n=e.target;if(!r(n))return void Y(null);if(E(n))return;const o=v(h,t,e);Y(o)}function n(){Y(null)}return null!=M&&(M.addEventListener("mousemove",e),M.addEventListener("mouseleave",n)),()=>{null!=M&&(M.removeEventListener("mousemove",e),M.removeEventListener("mouseleave",n))}},[M,h,t,E,Y]),p(()=>{b.current&&function(t,e,n){if(!t)return e.style.opacity="0",void(e.style.transform="translate(-10000px, -10000px)");const r=t.getBoundingClientRect(),o=window.getComputedStyle(t),i=e.getBoundingClientRect(),s=n.getBoundingClientRect();let l=parseInt(o.lineHeight,10);isNaN(l)&&(l=r.bottom-r.top);const a=r.top+(l-i.height)/2-s.top+n.scrollTop;e.style.opacity="1",e.style.transform=`translate(4px, ${a}px)`}(O,b.current,h)},[h,O,b]),p(()=>{function m(n){if(!L.current)return!1;const[i]=e(n);if(i)return!1;const{pageY:s,target:l}=n;if(!r(l))return!1;const a=v(h,t,n,!0),c=T.current;return null!==a&&null!==c&&(function(t,e,n,r){const{top:o,height:i}=e.getBoundingClientRect(),{top:s,width:l}=r.getBoundingClientRect(),{marginTop:a,marginBottom:c}=w(e);let u=o;n>=o?u+=i+c/2:u-=a/2;const h=u-s-2+r.scrollTop;t.style.transform=`translate(24px, ${h}px)`,t.style.width=l-48+"px",t.style.opacity=".4"}(c,a,s/o(l),h),n.preventDefault(),!0)}return n(t.registerCommand(i,t=>m(t),s),t.registerCommand(l,n=>function(n){if(!L.current)return!1;const[i]=e(n);if(i)return!1;const{target:s,dataTransfer:l,pageY:a}=n,m=null!=l?l.getData(B):"",g=c(m);if(!g)return!1;if(!r(s))return!1;const f=v(h,t,n,!0);if(!f)return!1;const p=u(f);if(!p)return!1;if(p===g)return!0;const d=f.getBoundingClientRect().top;return a/o(s)>=d?p.insertAfter(g):p.insertBefore(g),Y(null),!0}(n),a))},[h,t,T,Y]),d(y(_,{children:[x("div",{draggable:!0,onDragStart:function(e){const n=e.dataTransfer;if(!n||!O)return;!function(t,e){const{transform:n}=e.style;e.style.transform="translateZ(0)",t.setDragImage(e,0,0),setTimeout(()=>{e.style.transform=n})}(n,O);let r="";t.update(()=>{const t=u(O);t&&(r=t.getKey())}),L.current=!0,n.setData(B,r)},onDragEnd:function(){var t;L.current=!1,(t=T.current)&&(t.style.opacity="0",t.style.transform="translate(-10000px, -10000px)")},children:C&&D}),R]}),h)}function R({anchorElem:e=document.body,menuRef:n,targetLineRef:r,menuComponent:o,targetLineComponent:i,isOnMenu:s,onElementChanged:l}){const[a]=t();return D(a,e,n,r,a._editable,o,i,s,l)}export{R as DraggableBlockPlugin_EXPERIMENTAL};
|
|
@@ -1,20 +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
|
-
import { LexicalEditor } from 'lexical';
|
|
9
|
-
import { RefObject } from 'react';
|
|
10
|
-
import * as React from 'react';
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* Use this plugin to access the editor instance outside of the
|
|
14
|
-
* LexicalComposer. This can help with things like buttons or other
|
|
15
|
-
* UI components that need to update or read EditorState but need to
|
|
16
|
-
* be positioned outside the LexicalComposer in the React tree.
|
|
17
|
-
*/
|
|
18
|
-
export declare function EditorRefPlugin({ editorRef, }: {
|
|
19
|
-
editorRef: React.RefCallback<LexicalEditor> | RefObject<LexicalEditor | null | undefined>;
|
|
20
|
-
}): null;
|