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,543 +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 { useCollaborationContext } from '@lexical/react/LexicalCollaborationContext';
|
|
10
|
-
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
11
|
-
import { syncCursorPositions, syncLexicalUpdateToYjs, createUndoManager, setLocalStateFocus, createBindingV2__EXPERIMENTAL, CLEAR_DIFF_VERSIONS_COMMAND__EXPERIMENTAL, syncYjsStateToLexicalV2__EXPERIMENTAL, DIFF_VERSIONS_COMMAND__EXPERIMENTAL, renderSnapshot__EXPERIMENTAL, syncLexicalUpdateToYjsV2__EXPERIMENTAL, syncYjsChangesToLexical, initLocalState, TOGGLE_CONNECT_COMMAND, syncYjsChangesToLexicalV2__EXPERIMENTAL, CONNECTED_COMMAND, createBinding } from '@lexical/yjs';
|
|
12
|
-
import * as React from 'react';
|
|
13
|
-
import { useRef, useCallback, useEffect, useMemo, useState } from 'react';
|
|
14
|
-
import { mergeRegister } from '@lexical/utils';
|
|
15
|
-
import { SKIP_COLLAB_TAG, FOCUS_COMMAND, COMMAND_PRIORITY_EDITOR, BLUR_COMMAND, $getRoot, HISTORY_MERGE_TAG, $createParagraphNode, $getSelection, UNDO_COMMAND, REDO_COMMAND, CAN_UNDO_COMMAND, CAN_REDO_COMMAND } from 'lexical';
|
|
16
|
-
import { createPortal } from 'react-dom';
|
|
17
|
-
import { UndoManager } from 'yjs';
|
|
18
|
-
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
function useYjsCollaboration(editor, id, provider, docMap, name, color, shouldBootstrap, binding, setDoc, cursorsContainerRef, initialEditorState, awarenessData, syncCursorPositionsFn = syncCursorPositions) {
|
|
29
|
-
const isReloadingDoc = useRef(false);
|
|
30
|
-
const onBootstrap = useCallback(() => {
|
|
31
|
-
const {
|
|
32
|
-
root
|
|
33
|
-
} = binding;
|
|
34
|
-
if (shouldBootstrap && root.isEmpty() && root._xmlText._length === 0) {
|
|
35
|
-
initializeEditor(editor, initialEditorState);
|
|
36
|
-
}
|
|
37
|
-
}, [binding, editor, initialEditorState, shouldBootstrap]);
|
|
38
|
-
useEffect(() => {
|
|
39
|
-
const {
|
|
40
|
-
root
|
|
41
|
-
} = binding;
|
|
42
|
-
const onYjsTreeChanges = (events, transaction) => {
|
|
43
|
-
const origin = transaction.origin;
|
|
44
|
-
if (origin !== binding) {
|
|
45
|
-
const isFromUndoManger = origin instanceof UndoManager;
|
|
46
|
-
syncYjsChangesToLexical(binding, provider, events, isFromUndoManger, syncCursorPositionsFn);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// This updates the local editor state when we receive updates from other clients
|
|
51
|
-
root.getSharedType().observeDeep(onYjsTreeChanges);
|
|
52
|
-
const removeListener = editor.registerUpdateListener(({
|
|
53
|
-
prevEditorState,
|
|
54
|
-
editorState,
|
|
55
|
-
dirtyLeaves,
|
|
56
|
-
dirtyElements,
|
|
57
|
-
normalizedNodes,
|
|
58
|
-
tags
|
|
59
|
-
}) => {
|
|
60
|
-
if (!tags.has(SKIP_COLLAB_TAG)) {
|
|
61
|
-
syncLexicalUpdateToYjs(binding, provider, prevEditorState, editorState, dirtyElements, dirtyLeaves, normalizedNodes, tags);
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
return () => {
|
|
65
|
-
root.getSharedType().unobserveDeep(onYjsTreeChanges);
|
|
66
|
-
removeListener();
|
|
67
|
-
};
|
|
68
|
-
}, [binding, provider, editor, setDoc, docMap, id, syncCursorPositionsFn]);
|
|
69
|
-
|
|
70
|
-
// Note: 'reload' is not an actual Yjs event type. Included here for legacy support (#1409).
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
const onProviderDocReload = ydoc => {
|
|
73
|
-
clearEditorSkipCollab(editor, binding);
|
|
74
|
-
setDoc(ydoc);
|
|
75
|
-
docMap.set(id, ydoc);
|
|
76
|
-
isReloadingDoc.current = true;
|
|
77
|
-
};
|
|
78
|
-
const onSync = () => {
|
|
79
|
-
isReloadingDoc.current = false;
|
|
80
|
-
};
|
|
81
|
-
provider.on('reload', onProviderDocReload);
|
|
82
|
-
provider.on('sync', onSync);
|
|
83
|
-
return () => {
|
|
84
|
-
provider.off('reload', onProviderDocReload);
|
|
85
|
-
provider.off('sync', onSync);
|
|
86
|
-
};
|
|
87
|
-
}, [binding, provider, editor, setDoc, docMap, id]);
|
|
88
|
-
useProvider(editor, provider, name, color, isReloadingDoc, awarenessData, onBootstrap);
|
|
89
|
-
useAwareness(binding, provider);
|
|
90
|
-
return useYjsCursors(binding, cursorsContainerRef);
|
|
91
|
-
}
|
|
92
|
-
function useYjsCollaborationV2__EXPERIMENTAL(editor, id, doc, provider, docMap, name, color, options = {}) {
|
|
93
|
-
const {
|
|
94
|
-
awarenessData,
|
|
95
|
-
excludedProperties,
|
|
96
|
-
rootName,
|
|
97
|
-
__shouldBootstrapUnsafe: shouldBootstrap
|
|
98
|
-
} = options;
|
|
99
|
-
|
|
100
|
-
// Note: v2 does not support 'reload' event, which is not an actual Yjs event type.
|
|
101
|
-
const isReloadingDoc = useMemo(() => ({
|
|
102
|
-
current: false
|
|
103
|
-
}), []);
|
|
104
|
-
const binding = useMemo(() => createBindingV2__EXPERIMENTAL(editor, id, doc, docMap, {
|
|
105
|
-
excludedProperties,
|
|
106
|
-
rootName
|
|
107
|
-
}), [editor, id, doc, docMap, excludedProperties, rootName]);
|
|
108
|
-
useEffect(() => {
|
|
109
|
-
docMap.set(id, doc);
|
|
110
|
-
return () => {
|
|
111
|
-
docMap.delete(id);
|
|
112
|
-
};
|
|
113
|
-
}, [doc, docMap, id]);
|
|
114
|
-
const onBootstrap = useCallback(() => {
|
|
115
|
-
const {
|
|
116
|
-
root
|
|
117
|
-
} = binding;
|
|
118
|
-
if (shouldBootstrap && root._length === 0) {
|
|
119
|
-
initializeEditor(editor);
|
|
120
|
-
}
|
|
121
|
-
}, [binding, editor, shouldBootstrap]);
|
|
122
|
-
const [diffSnapshots, setDiffSnapshots] = useState();
|
|
123
|
-
useEffect(() => {
|
|
124
|
-
mergeRegister(editor.registerCommand(CLEAR_DIFF_VERSIONS_COMMAND__EXPERIMENTAL, () => {
|
|
125
|
-
setDiffSnapshots(null);
|
|
126
|
-
// Ensure that any state already in Yjs is loaded into the editor (eg: after clearing diff view).
|
|
127
|
-
syncYjsStateToLexicalV2__EXPERIMENTAL(binding, provider);
|
|
128
|
-
return true;
|
|
129
|
-
}, COMMAND_PRIORITY_EDITOR), editor.registerCommand(DIFF_VERSIONS_COMMAND__EXPERIMENTAL, ({
|
|
130
|
-
prevSnapshot,
|
|
131
|
-
snapshot
|
|
132
|
-
}) => {
|
|
133
|
-
setDiffSnapshots({
|
|
134
|
-
prevSnapshot,
|
|
135
|
-
snapshot
|
|
136
|
-
});
|
|
137
|
-
return true;
|
|
138
|
-
}, COMMAND_PRIORITY_EDITOR));
|
|
139
|
-
}, [editor, binding, provider]);
|
|
140
|
-
useEffect(() => {
|
|
141
|
-
const {
|
|
142
|
-
root
|
|
143
|
-
} = binding;
|
|
144
|
-
if (diffSnapshots) {
|
|
145
|
-
renderSnapshot__EXPERIMENTAL(binding, diffSnapshots.snapshot, diffSnapshots.prevSnapshot);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const onYjsTreeChanges = (events, transaction) => {
|
|
149
|
-
const origin = transaction.origin;
|
|
150
|
-
if (origin !== binding) {
|
|
151
|
-
const isFromUndoManger = origin instanceof UndoManager;
|
|
152
|
-
syncYjsChangesToLexicalV2__EXPERIMENTAL(binding, provider, events, transaction, isFromUndoManger);
|
|
153
|
-
}
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
// This updates the local editor state when we receive updates from other clients
|
|
157
|
-
root.observeDeep(onYjsTreeChanges);
|
|
158
|
-
const removeListener = editor.registerUpdateListener(({
|
|
159
|
-
prevEditorState,
|
|
160
|
-
editorState,
|
|
161
|
-
dirtyElements,
|
|
162
|
-
normalizedNodes,
|
|
163
|
-
tags
|
|
164
|
-
}) => {
|
|
165
|
-
if (!tags.has(SKIP_COLLAB_TAG)) {
|
|
166
|
-
syncLexicalUpdateToYjsV2__EXPERIMENTAL(binding, provider, prevEditorState, editorState, dirtyElements, normalizedNodes, tags);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
return () => {
|
|
170
|
-
root.unobserveDeep(onYjsTreeChanges);
|
|
171
|
-
removeListener();
|
|
172
|
-
};
|
|
173
|
-
}, [binding, provider, editor, diffSnapshots]);
|
|
174
|
-
useProvider(editor, provider, name, color, isReloadingDoc, awarenessData, onBootstrap);
|
|
175
|
-
useAwareness(binding, provider);
|
|
176
|
-
return binding;
|
|
177
|
-
}
|
|
178
|
-
function useProvider(editor, provider, name, color, isReloadingDoc, awarenessData, onBootstrap) {
|
|
179
|
-
const connect = useCallback(() => provider.connect(), [provider]);
|
|
180
|
-
const disconnect = useCallback(() => {
|
|
181
|
-
try {
|
|
182
|
-
provider.disconnect();
|
|
183
|
-
} catch (_e) {
|
|
184
|
-
// Do nothing
|
|
185
|
-
}
|
|
186
|
-
}, [provider]);
|
|
187
|
-
useEffect(() => {
|
|
188
|
-
const onStatus = ({
|
|
189
|
-
status
|
|
190
|
-
}) => {
|
|
191
|
-
editor.dispatchCommand(CONNECTED_COMMAND, status === 'connected');
|
|
192
|
-
};
|
|
193
|
-
const onSync = isSynced => {
|
|
194
|
-
if (isSynced && isReloadingDoc.current === false && onBootstrap) {
|
|
195
|
-
onBootstrap();
|
|
196
|
-
}
|
|
197
|
-
};
|
|
198
|
-
initLocalState(provider, name, color, document.activeElement === editor.getRootElement(), awarenessData || {});
|
|
199
|
-
provider.on('status', onStatus);
|
|
200
|
-
provider.on('sync', onSync);
|
|
201
|
-
const connectionPromise = connect();
|
|
202
|
-
return () => {
|
|
203
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps -- expected that isReloadingDoc.current may change
|
|
204
|
-
if (isReloadingDoc.current === false) {
|
|
205
|
-
if (connectionPromise) {
|
|
206
|
-
connectionPromise.then(disconnect);
|
|
207
|
-
} else {
|
|
208
|
-
// Workaround for race condition in StrictMode. It's possible there
|
|
209
|
-
// is a different race for the above case where connect returns a
|
|
210
|
-
// promise, but we don't have an example of that in-repo.
|
|
211
|
-
// It's possible that there is a similar issue with
|
|
212
|
-
// TOGGLE_CONNECT_COMMAND below when the provider connect returns a
|
|
213
|
-
// promise.
|
|
214
|
-
// https://github.com/facebook/lexical/issues/6640
|
|
215
|
-
disconnect();
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
provider.off('sync', onSync);
|
|
219
|
-
provider.off('status', onStatus);
|
|
220
|
-
};
|
|
221
|
-
}, [editor, provider, name, color, isReloadingDoc, awarenessData, onBootstrap, connect, disconnect]);
|
|
222
|
-
useEffect(() => {
|
|
223
|
-
return editor.registerCommand(TOGGLE_CONNECT_COMMAND, payload => {
|
|
224
|
-
const shouldConnect = payload;
|
|
225
|
-
if (shouldConnect) {
|
|
226
|
-
// eslint-disable-next-line no-console
|
|
227
|
-
console.log('Collaboration connected!');
|
|
228
|
-
connect();
|
|
229
|
-
} else {
|
|
230
|
-
// eslint-disable-next-line no-console
|
|
231
|
-
console.log('Collaboration disconnected!');
|
|
232
|
-
disconnect();
|
|
233
|
-
}
|
|
234
|
-
return true;
|
|
235
|
-
}, COMMAND_PRIORITY_EDITOR);
|
|
236
|
-
}, [connect, disconnect, editor]);
|
|
237
|
-
}
|
|
238
|
-
function useAwareness(binding, provider) {
|
|
239
|
-
useEffect(() => {
|
|
240
|
-
const {
|
|
241
|
-
awareness
|
|
242
|
-
} = provider;
|
|
243
|
-
const onAwarenessUpdate = () => {
|
|
244
|
-
syncCursorPositions(binding, provider);
|
|
245
|
-
};
|
|
246
|
-
awareness.on('update', onAwarenessUpdate);
|
|
247
|
-
return () => {
|
|
248
|
-
awareness.off('update', onAwarenessUpdate);
|
|
249
|
-
};
|
|
250
|
-
}, [binding, provider]);
|
|
251
|
-
}
|
|
252
|
-
function useYjsCursors(binding, cursorsContainerRef) {
|
|
253
|
-
return useMemo(() => {
|
|
254
|
-
const ref = element => {
|
|
255
|
-
binding.cursorsContainer = element;
|
|
256
|
-
};
|
|
257
|
-
return /*#__PURE__*/createPortal(/*#__PURE__*/jsx("div", {
|
|
258
|
-
ref: ref
|
|
259
|
-
}), cursorsContainerRef && cursorsContainerRef.current || document.body);
|
|
260
|
-
}, [binding, cursorsContainerRef]);
|
|
261
|
-
}
|
|
262
|
-
function useYjsFocusTracking(editor, provider, name, color, awarenessData) {
|
|
263
|
-
useEffect(() => {
|
|
264
|
-
return mergeRegister(editor.registerCommand(FOCUS_COMMAND, () => {
|
|
265
|
-
setLocalStateFocus(provider, name, color, true, awarenessData || {});
|
|
266
|
-
return false;
|
|
267
|
-
}, COMMAND_PRIORITY_EDITOR), editor.registerCommand(BLUR_COMMAND, () => {
|
|
268
|
-
setLocalStateFocus(provider, name, color, false, awarenessData || {});
|
|
269
|
-
return false;
|
|
270
|
-
}, COMMAND_PRIORITY_EDITOR));
|
|
271
|
-
}, [color, editor, name, provider, awarenessData]);
|
|
272
|
-
}
|
|
273
|
-
function useYjsHistory(editor, binding) {
|
|
274
|
-
const undoManager = useMemo(() => createUndoManager(binding, binding.root.getSharedType()), [binding]);
|
|
275
|
-
return useYjsUndoManager(editor, undoManager);
|
|
276
|
-
}
|
|
277
|
-
function useYjsHistoryV2(editor, binding) {
|
|
278
|
-
const undoManager = useMemo(() => createUndoManager(binding, binding.root), [binding]);
|
|
279
|
-
return useYjsUndoManager(editor, undoManager);
|
|
280
|
-
}
|
|
281
|
-
function useYjsUndoManager(editor, undoManager) {
|
|
282
|
-
useEffect(() => {
|
|
283
|
-
const undo = () => {
|
|
284
|
-
undoManager.undo();
|
|
285
|
-
};
|
|
286
|
-
const redo = () => {
|
|
287
|
-
undoManager.redo();
|
|
288
|
-
};
|
|
289
|
-
return mergeRegister(editor.registerCommand(UNDO_COMMAND, () => {
|
|
290
|
-
undo();
|
|
291
|
-
return true;
|
|
292
|
-
}, COMMAND_PRIORITY_EDITOR), editor.registerCommand(REDO_COMMAND, () => {
|
|
293
|
-
redo();
|
|
294
|
-
return true;
|
|
295
|
-
}, COMMAND_PRIORITY_EDITOR));
|
|
296
|
-
});
|
|
297
|
-
const clearHistory = useCallback(() => {
|
|
298
|
-
undoManager.clear();
|
|
299
|
-
}, [undoManager]);
|
|
300
|
-
|
|
301
|
-
// Exposing undo and redo states
|
|
302
|
-
React.useEffect(() => {
|
|
303
|
-
const updateUndoRedoStates = () => {
|
|
304
|
-
editor.dispatchCommand(CAN_UNDO_COMMAND, undoManager.undoStack.length > 0);
|
|
305
|
-
editor.dispatchCommand(CAN_REDO_COMMAND, undoManager.redoStack.length > 0);
|
|
306
|
-
};
|
|
307
|
-
undoManager.on('stack-item-added', updateUndoRedoStates);
|
|
308
|
-
undoManager.on('stack-item-popped', updateUndoRedoStates);
|
|
309
|
-
undoManager.on('stack-cleared', updateUndoRedoStates);
|
|
310
|
-
return () => {
|
|
311
|
-
undoManager.off('stack-item-added', updateUndoRedoStates);
|
|
312
|
-
undoManager.off('stack-item-popped', updateUndoRedoStates);
|
|
313
|
-
undoManager.off('stack-cleared', updateUndoRedoStates);
|
|
314
|
-
};
|
|
315
|
-
}, [editor, undoManager]);
|
|
316
|
-
return clearHistory;
|
|
317
|
-
}
|
|
318
|
-
function initializeEditor(editor, initialEditorState) {
|
|
319
|
-
editor.update(() => {
|
|
320
|
-
const root = $getRoot();
|
|
321
|
-
if (root.isEmpty()) {
|
|
322
|
-
if (initialEditorState) {
|
|
323
|
-
switch (typeof initialEditorState) {
|
|
324
|
-
case 'string':
|
|
325
|
-
{
|
|
326
|
-
const parsedEditorState = editor.parseEditorState(initialEditorState);
|
|
327
|
-
editor.setEditorState(parsedEditorState, {
|
|
328
|
-
tag: HISTORY_MERGE_TAG
|
|
329
|
-
});
|
|
330
|
-
break;
|
|
331
|
-
}
|
|
332
|
-
case 'object':
|
|
333
|
-
{
|
|
334
|
-
editor.setEditorState(initialEditorState, {
|
|
335
|
-
tag: HISTORY_MERGE_TAG
|
|
336
|
-
});
|
|
337
|
-
break;
|
|
338
|
-
}
|
|
339
|
-
case 'function':
|
|
340
|
-
{
|
|
341
|
-
editor.update(() => {
|
|
342
|
-
const root1 = $getRoot();
|
|
343
|
-
if (root1.isEmpty()) {
|
|
344
|
-
initialEditorState(editor);
|
|
345
|
-
}
|
|
346
|
-
}, {
|
|
347
|
-
tag: HISTORY_MERGE_TAG
|
|
348
|
-
});
|
|
349
|
-
break;
|
|
350
|
-
}
|
|
351
|
-
}
|
|
352
|
-
} else {
|
|
353
|
-
const paragraph = $createParagraphNode();
|
|
354
|
-
root.append(paragraph);
|
|
355
|
-
const {
|
|
356
|
-
activeElement
|
|
357
|
-
} = document;
|
|
358
|
-
if ($getSelection() !== null || activeElement !== null && activeElement === editor.getRootElement()) {
|
|
359
|
-
paragraph.select();
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
}, {
|
|
364
|
-
tag: HISTORY_MERGE_TAG
|
|
365
|
-
});
|
|
366
|
-
}
|
|
367
|
-
function clearEditorSkipCollab(editor, binding) {
|
|
368
|
-
// reset editor state
|
|
369
|
-
editor.update(() => {
|
|
370
|
-
const root = $getRoot();
|
|
371
|
-
root.clear();
|
|
372
|
-
root.select();
|
|
373
|
-
}, {
|
|
374
|
-
tag: SKIP_COLLAB_TAG
|
|
375
|
-
});
|
|
376
|
-
if (binding.cursors == null) {
|
|
377
|
-
return;
|
|
378
|
-
}
|
|
379
|
-
const cursors = binding.cursors;
|
|
380
|
-
if (cursors == null) {
|
|
381
|
-
return;
|
|
382
|
-
}
|
|
383
|
-
const cursorsContainer = binding.cursorsContainer;
|
|
384
|
-
if (cursorsContainer == null) {
|
|
385
|
-
return;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
// reset cursors in dom
|
|
389
|
-
const cursorsArr = Array.from(cursors.values());
|
|
390
|
-
for (let i = 0; i < cursorsArr.length; i++) {
|
|
391
|
-
const cursor = cursorsArr[i];
|
|
392
|
-
const selection = cursor.selection;
|
|
393
|
-
if (selection && selection.selections != null) {
|
|
394
|
-
const selections = selection.selections;
|
|
395
|
-
for (let j = 0; j < selections.length; j++) {
|
|
396
|
-
cursorsContainer.removeChild(selections[i]);
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
/**
|
|
403
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
404
|
-
*
|
|
405
|
-
* This source code is licensed under the MIT license found in the
|
|
406
|
-
* LICENSE file in the root directory of this source tree.
|
|
407
|
-
*
|
|
408
|
-
*/
|
|
409
|
-
|
|
410
|
-
function CollaborationPlugin({
|
|
411
|
-
id,
|
|
412
|
-
providerFactory,
|
|
413
|
-
shouldBootstrap,
|
|
414
|
-
username,
|
|
415
|
-
cursorColor,
|
|
416
|
-
cursorsContainerRef,
|
|
417
|
-
initialEditorState,
|
|
418
|
-
excludedProperties,
|
|
419
|
-
awarenessData,
|
|
420
|
-
syncCursorPositionsFn
|
|
421
|
-
}) {
|
|
422
|
-
const isBindingInitialized = useRef(false);
|
|
423
|
-
const isProviderInitialized = useRef(false);
|
|
424
|
-
const collabContext = useCollaborationContext(username, cursorColor);
|
|
425
|
-
const {
|
|
426
|
-
yjsDocMap,
|
|
427
|
-
name,
|
|
428
|
-
color
|
|
429
|
-
} = collabContext;
|
|
430
|
-
const [editor] = useLexicalComposerContext();
|
|
431
|
-
useCollabActive(collabContext, editor);
|
|
432
|
-
const [provider, setProvider] = useState();
|
|
433
|
-
const [doc, setDoc] = useState();
|
|
434
|
-
useEffect(() => {
|
|
435
|
-
if (isProviderInitialized.current) {
|
|
436
|
-
return;
|
|
437
|
-
}
|
|
438
|
-
isProviderInitialized.current = true;
|
|
439
|
-
const newProvider = providerFactory(id, yjsDocMap);
|
|
440
|
-
setProvider(newProvider);
|
|
441
|
-
setDoc(yjsDocMap.get(id));
|
|
442
|
-
return () => {
|
|
443
|
-
newProvider.disconnect();
|
|
444
|
-
};
|
|
445
|
-
}, [id, providerFactory, yjsDocMap]);
|
|
446
|
-
const [binding, setBinding] = useState();
|
|
447
|
-
useEffect(() => {
|
|
448
|
-
if (!provider) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
if (isBindingInitialized.current) {
|
|
452
|
-
return;
|
|
453
|
-
}
|
|
454
|
-
isBindingInitialized.current = true;
|
|
455
|
-
const newBinding = createBinding(editor, provider, id, doc || yjsDocMap.get(id), yjsDocMap, excludedProperties);
|
|
456
|
-
setBinding(newBinding);
|
|
457
|
-
return () => {
|
|
458
|
-
newBinding.root.destroy(newBinding);
|
|
459
|
-
};
|
|
460
|
-
}, [editor, provider, id, yjsDocMap, doc, excludedProperties]);
|
|
461
|
-
if (!provider || !binding) {
|
|
462
|
-
return /*#__PURE__*/jsx(Fragment, {});
|
|
463
|
-
}
|
|
464
|
-
return /*#__PURE__*/jsx(YjsCollaborationCursors, {
|
|
465
|
-
awarenessData: awarenessData,
|
|
466
|
-
binding: binding,
|
|
467
|
-
collabContext: collabContext,
|
|
468
|
-
color: color,
|
|
469
|
-
cursorsContainerRef: cursorsContainerRef,
|
|
470
|
-
editor: editor,
|
|
471
|
-
id: id,
|
|
472
|
-
initialEditorState: initialEditorState,
|
|
473
|
-
name: name,
|
|
474
|
-
provider: provider,
|
|
475
|
-
setDoc: setDoc,
|
|
476
|
-
shouldBootstrap: shouldBootstrap,
|
|
477
|
-
yjsDocMap: yjsDocMap,
|
|
478
|
-
syncCursorPositionsFn: syncCursorPositionsFn
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
function YjsCollaborationCursors({
|
|
482
|
-
editor,
|
|
483
|
-
id,
|
|
484
|
-
provider,
|
|
485
|
-
yjsDocMap,
|
|
486
|
-
name,
|
|
487
|
-
color,
|
|
488
|
-
shouldBootstrap,
|
|
489
|
-
cursorsContainerRef,
|
|
490
|
-
initialEditorState,
|
|
491
|
-
awarenessData,
|
|
492
|
-
collabContext,
|
|
493
|
-
binding,
|
|
494
|
-
setDoc,
|
|
495
|
-
syncCursorPositionsFn
|
|
496
|
-
}) {
|
|
497
|
-
const cursors = useYjsCollaboration(editor, id, provider, yjsDocMap, name, color, shouldBootstrap, binding, setDoc, cursorsContainerRef, initialEditorState, awarenessData, syncCursorPositionsFn);
|
|
498
|
-
useYjsHistory(editor, binding);
|
|
499
|
-
useYjsFocusTracking(editor, provider, name, color, awarenessData);
|
|
500
|
-
return cursors;
|
|
501
|
-
}
|
|
502
|
-
function CollaborationPluginV2__EXPERIMENTAL({
|
|
503
|
-
id,
|
|
504
|
-
doc,
|
|
505
|
-
provider,
|
|
506
|
-
__shouldBootstrapUnsafe,
|
|
507
|
-
username,
|
|
508
|
-
cursorColor,
|
|
509
|
-
cursorsContainerRef,
|
|
510
|
-
excludedProperties,
|
|
511
|
-
awarenessData
|
|
512
|
-
}) {
|
|
513
|
-
const collabContext = useCollaborationContext(username, cursorColor);
|
|
514
|
-
const {
|
|
515
|
-
yjsDocMap,
|
|
516
|
-
name,
|
|
517
|
-
color
|
|
518
|
-
} = collabContext;
|
|
519
|
-
const [editor] = useLexicalComposerContext();
|
|
520
|
-
useCollabActive(collabContext, editor);
|
|
521
|
-
const binding = useYjsCollaborationV2__EXPERIMENTAL(editor, id, doc, provider, yjsDocMap, name, color, {
|
|
522
|
-
__shouldBootstrapUnsafe,
|
|
523
|
-
awarenessData,
|
|
524
|
-
excludedProperties
|
|
525
|
-
});
|
|
526
|
-
useYjsHistoryV2(editor, binding);
|
|
527
|
-
useYjsFocusTracking(editor, provider, name, color, awarenessData);
|
|
528
|
-
return useYjsCursors(binding, cursorsContainerRef);
|
|
529
|
-
}
|
|
530
|
-
const useCollabActive = (collabContext, editor) => {
|
|
531
|
-
useEffect(() => {
|
|
532
|
-
collabContext.isCollabActive = true;
|
|
533
|
-
return () => {
|
|
534
|
-
// Resetting flag only when unmount top level editor collab plugin. Nested
|
|
535
|
-
// editors (e.g. image caption) should unmount without affecting it
|
|
536
|
-
if (editor._parentEditor == null) {
|
|
537
|
-
collabContext.isCollabActive = false;
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
}, [collabContext, editor]);
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
export { CollaborationPlugin, CollaborationPluginV2__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 LexicalCollaborationPlugin = process.env.NODE_ENV !== 'production' ? require('./LexicalCollaborationPlugin.dev.js') : require('./LexicalCollaborationPlugin.prod.js');
|
|
11
|
-
module.exports = LexicalCollaborationPlugin;
|
|
@@ -1,50 +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 type {InitialEditorStateType} from '@lexical/react/LexicalComposer';
|
|
11
|
-
import type {ExcludedProperties, ProviderAwareness} from '@lexical/yjs';
|
|
12
|
-
import type {Doc, RelativePosition} from 'yjs';
|
|
13
|
-
|
|
14
|
-
export interface Provider {
|
|
15
|
-
connect(): void | Promise<void>;
|
|
16
|
-
disconnect(): void;
|
|
17
|
-
awareness: ProviderAwareness;
|
|
18
|
-
on(type: 'sync', cb: (isSynced: boolean) => void): void;
|
|
19
|
-
on(type: 'status', cb: ({status: string}) => void): void;
|
|
20
|
-
// $FlowFixMe[unclear-type]: temp
|
|
21
|
-
on(type: 'update', cb: (any) => void): void;
|
|
22
|
-
on(type: 'reload', cb: (doc: Doc) => void): void;
|
|
23
|
-
off(type: 'sync', cb: (isSynced: boolean) => void): void;
|
|
24
|
-
// $FlowFixMe[unclear-type]: temp
|
|
25
|
-
off(type: 'update', cb: (any) => void): void;
|
|
26
|
-
off(type: 'status', cb: ({status: string}) => void): void;
|
|
27
|
-
off(type: 'reload', cb: (doc: Doc) => void): void;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export type ProviderFactory = (
|
|
31
|
-
id: string,
|
|
32
|
-
yjsDocMap: Map<string, Doc>,
|
|
33
|
-
) => Provider;
|
|
34
|
-
|
|
35
|
-
export type CursorsContainerRef = {current: null | HTMLElement};
|
|
36
|
-
|
|
37
|
-
declare export function CollaborationPlugin(arg0: {
|
|
38
|
-
id: string,
|
|
39
|
-
providerFactory: (
|
|
40
|
-
// eslint-disable-next-line no-shadow
|
|
41
|
-
id: string,
|
|
42
|
-
yjsDocMap: Map<string, Doc>,
|
|
43
|
-
) => Provider,
|
|
44
|
-
shouldBootstrap: boolean,
|
|
45
|
-
username?: string,
|
|
46
|
-
cursorColor?: string,
|
|
47
|
-
cursorsContainerRef?: CursorsContainerRef,
|
|
48
|
-
initialEditorState?: InitialEditorStateType,
|
|
49
|
-
excludedProperties?: ExcludedProperties,
|
|
50
|
-
}): React.Node;
|
|
@@ -1,13 +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 './LexicalCollaborationPlugin.dev.mjs';
|
|
10
|
-
import * as modProd from './LexicalCollaborationPlugin.prod.mjs';
|
|
11
|
-
const mod = process.env.NODE_ENV !== 'production' ? modDev : modProd;
|
|
12
|
-
export const CollaborationPlugin = mod.CollaborationPlugin;
|
|
13
|
-
export const CollaborationPluginV2__EXPERIMENTAL = mod.CollaborationPluginV2__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
|
-
const mod = await (process.env.NODE_ENV !== 'production' ? import('./LexicalCollaborationPlugin.dev.mjs') : import('./LexicalCollaborationPlugin.prod.mjs'));
|
|
10
|
-
export const CollaborationPlugin = mod.CollaborationPlugin;
|
|
11
|
-
export const CollaborationPluginV2__EXPERIMENTAL = mod.CollaborationPluginV2__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 e=require("@lexical/react/LexicalCollaborationContext"),t=require("@lexical/react/LexicalComposerContext"),o=require("@lexical/yjs"),r=require("react"),n=require("@lexical/utils"),s=require("lexical"),a=require("react-dom"),c=require("yjs"),i=require("react/jsx-runtime");function u(e){var t=Object.create(null);if(e)for(var o in e)t[o]=e[o];return t.default=e,t}var l=u(r);function d(e,t,n,a,i,u,l,d,p,_,M,g,R=o.syncCursorPositions){const O=r.useRef(!1),D=r.useCallback(()=>{const{root:t}=d;l&&t.isEmpty()&&0===t._xmlText._length&&m(e,M)},[d,e,M,l]);return r.useEffect(()=>{const{root:t}=d,r=(e,t)=>{const r=t.origin;if(r!==d){const t=r instanceof c.UndoManager;o.syncYjsChangesToLexical(d,n,e,t,R)}};t.getSharedType().observeDeep(r);const a=e.registerUpdateListener(({prevEditorState:e,editorState:t,dirtyLeaves:r,dirtyElements:a,normalizedNodes:c,tags:i})=>{i.has(s.SKIP_COLLAB_TAG)||o.syncLexicalUpdateToYjs(d,n,e,t,a,r,c,i)});return()=>{t.getSharedType().unobserveDeep(r),a()}},[d,n,e,p,a,t,R]),r.useEffect(()=>{const o=o=>{!function(e,t){if(e.update(()=>{const e=s.$getRoot();e.clear(),e.select()},{tag:s.SKIP_COLLAB_TAG}),null==t.cursors)return;const o=t.cursors;if(null==o)return;const r=t.cursorsContainer;if(null==r)return;const n=Array.from(o.values());for(let e=0;e<n.length;e++){const t=n[e].selection;if(t&&null!=t.selections){const o=t.selections;for(let t=0;t<o.length;t++)r.removeChild(o[e])}}}(e,d),p(o),a.set(t,o),O.current=!0},r=()=>{O.current=!1};return n.on("reload",o),n.on("sync",r),()=>{n.off("reload",o),n.off("sync",r)}},[d,n,e,p,a,t]),f(e,n,i,u,O,g,D),E(d,n),C(d,_)}function f(e,t,n,a,c,i,u){const l=r.useCallback(()=>t.connect(),[t]),d=r.useCallback(()=>{try{t.disconnect()}catch(e){}},[t]);r.useEffect(()=>{const r=({status:t})=>{e.dispatchCommand(o.CONNECTED_COMMAND,"connected"===t)},s=e=>{e&&!1===c.current&&u&&u()};o.initLocalState(t,n,a,document.activeElement===e.getRootElement(),i||{}),t.on("status",r),t.on("sync",s);const f=l();return()=>{!1===c.current&&(f?f.then(d):d()),t.off("sync",s),t.off("status",r)}},[e,t,n,a,c,i,u,l,d]),r.useEffect(()=>e.registerCommand(o.TOGGLE_CONNECT_COMMAND,e=>(e?(console.log("Collaboration connected!"),l()):(console.log("Collaboration disconnected!"),d()),!0),s.COMMAND_PRIORITY_EDITOR),[l,d,e])}function E(e,t){r.useEffect(()=>{const{awareness:r}=t,n=()=>{o.syncCursorPositions(e,t)};return r.on("update",n),()=>{r.off("update",n)}},[e,t])}function C(e,t){return r.useMemo(()=>a.createPortal(i.jsx("div",{ref:t=>{e.cursorsContainer=t}}),t&&t.current||document.body),[e,t])}function p(e,t,a,c,i){r.useEffect(()=>n.mergeRegister(e.registerCommand(s.FOCUS_COMMAND,()=>(o.setLocalStateFocus(t,a,c,!0,i||{}),!1),s.COMMAND_PRIORITY_EDITOR),e.registerCommand(s.BLUR_COMMAND,()=>(o.setLocalStateFocus(t,a,c,!1,i||{}),!1),s.COMMAND_PRIORITY_EDITOR)),[c,e,a,t,i])}function _(e,t){r.useEffect(()=>n.mergeRegister(e.registerCommand(s.UNDO_COMMAND,()=>(t.undo(),!0),s.COMMAND_PRIORITY_EDITOR),e.registerCommand(s.REDO_COMMAND,()=>(t.redo(),!0),s.COMMAND_PRIORITY_EDITOR)));const o=r.useCallback(()=>{t.clear()},[t]);return l.useEffect(()=>{const o=()=>{e.dispatchCommand(s.CAN_UNDO_COMMAND,t.undoStack.length>0),e.dispatchCommand(s.CAN_REDO_COMMAND,t.redoStack.length>0)};return t.on("stack-item-added",o),t.on("stack-item-popped",o),t.on("stack-cleared",o),()=>{t.off("stack-item-added",o),t.off("stack-item-popped",o),t.off("stack-cleared",o)}},[e,t]),o}function m(e,t){e.update(()=>{const o=s.$getRoot();if(o.isEmpty())if(t)switch(typeof t){case"string":{const o=e.parseEditorState(t);e.setEditorState(o,{tag:s.HISTORY_MERGE_TAG});break}case"object":e.setEditorState(t,{tag:s.HISTORY_MERGE_TAG});break;case"function":e.update(()=>{s.$getRoot().isEmpty()&&t(e)},{tag:s.HISTORY_MERGE_TAG})}else{const t=s.$createParagraphNode();o.append(t);const{activeElement:r}=document;(null!==s.$getSelection()||null!==r&&r===e.getRootElement())&&t.select()}},{tag:s.HISTORY_MERGE_TAG})}function M({editor:e,id:t,provider:n,yjsDocMap:s,name:a,color:c,shouldBootstrap:i,cursorsContainerRef:u,initialEditorState:l,awarenessData:f,collabContext:E,binding:C,setDoc:m,syncCursorPositionsFn:M}){const g=d(e,t,n,s,a,c,i,C,m,u,l,f,M);return function(e,t){_(e,r.useMemo(()=>o.createUndoManager(t,t.root.getSharedType()),[t]))}(e,C),p(e,n,a,c,f),g}const g=(e,t)=>{r.useEffect(()=>(e.isCollabActive=!0,()=>{null==t._parentEditor&&(e.isCollabActive=!1)}),[e,t])};exports.CollaborationPlugin=function({id:n,providerFactory:s,shouldBootstrap:a,username:c,cursorColor:u,cursorsContainerRef:l,initialEditorState:d,excludedProperties:f,awarenessData:E,syncCursorPositionsFn:C}){const p=r.useRef(!1),_=r.useRef(!1),m=e.useCollaborationContext(c,u),{yjsDocMap:R,name:O,color:D}=m,[T]=t.useLexicalComposerContext();g(m,T);const[A,I]=r.useState(),[N,S]=r.useState();r.useEffect(()=>{if(_.current)return;_.current=!0;const e=s(n,R);return I(e),S(R.get(n)),()=>{e.disconnect()}},[n,s,R]);const[x,y]=r.useState();return r.useEffect(()=>{if(!A)return;if(p.current)return;p.current=!0;const e=o.createBinding(T,A,n,N||R.get(n),R,f);return y(e),()=>{e.root.destroy(e)}},[T,A,n,R,N,f]),A&&x?i.jsx(M,{awarenessData:E,binding:x,collabContext:m,color:D,cursorsContainerRef:l,editor:T,id:n,initialEditorState:d,name:O,provider:A,setDoc:S,shouldBootstrap:a,yjsDocMap:R,syncCursorPositionsFn:C}):i.jsx(i.Fragment,{})},exports.CollaborationPluginV2__EXPERIMENTAL=function({id:a,doc:i,provider:u,__shouldBootstrapUnsafe:l,username:d,cursorColor:M,cursorsContainerRef:R,excludedProperties:O,awarenessData:D}){const T=e.useCollaborationContext(d,M),{yjsDocMap:A,name:I,color:N}=T,[S]=t.useLexicalComposerContext();g(T,S);const x=function(e,t,a,i,u,l,d,C={}){const{awarenessData:p,excludedProperties:_,rootName:M,__shouldBootstrapUnsafe:g}=C,R=r.useMemo(()=>({current:!1}),[]),O=r.useMemo(()=>o.createBindingV2__EXPERIMENTAL(e,t,a,u,{excludedProperties:_,rootName:M}),[e,t,a,u,_,M]);r.useEffect(()=>(u.set(t,a),()=>{u.delete(t)}),[a,u,t]);const D=r.useCallback(()=>{const{root:t}=O;g&&0===t._length&&m(e)},[O,e,g]),[T,A]=r.useState();return r.useEffect(()=>{n.mergeRegister(e.registerCommand(o.CLEAR_DIFF_VERSIONS_COMMAND__EXPERIMENTAL,()=>(A(null),o.syncYjsStateToLexicalV2__EXPERIMENTAL(O,i),!0),s.COMMAND_PRIORITY_EDITOR),e.registerCommand(o.DIFF_VERSIONS_COMMAND__EXPERIMENTAL,({prevSnapshot:e,snapshot:t})=>(A({prevSnapshot:e,snapshot:t}),!0),s.COMMAND_PRIORITY_EDITOR))},[e,O,i]),r.useEffect(()=>{const{root:t}=O;if(T)return void o.renderSnapshot__EXPERIMENTAL(O,T.snapshot,T.prevSnapshot);const r=(e,t)=>{const r=t.origin;if(r!==O){const n=r instanceof c.UndoManager;o.syncYjsChangesToLexicalV2__EXPERIMENTAL(O,i,e,t,n)}};t.observeDeep(r);const n=e.registerUpdateListener(({prevEditorState:e,editorState:t,dirtyElements:r,normalizedNodes:n,tags:a})=>{a.has(s.SKIP_COLLAB_TAG)||o.syncLexicalUpdateToYjsV2__EXPERIMENTAL(O,i,e,t,r,n,a)});return()=>{t.unobserveDeep(r),n()}},[O,i,e,T]),f(e,i,l,d,R,p,D),E(O,i),O}(S,a,i,u,A,I,N,{__shouldBootstrapUnsafe:l,awarenessData:D,excludedProperties:O});return function(e,t){_(e,r.useMemo(()=>o.createUndoManager(t,t.root),[t]))}(S,x),p(S,u,I,N,D),C(x,R)};
|
|
@@ -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{useCollaborationContext as t}from"@lexical/react/LexicalCollaborationContext";import{useLexicalComposerContext as e}from"@lexical/react/LexicalComposerContext";import{syncCursorPositions as o,syncLexicalUpdateToYjs as r,createUndoManager as n,setLocalStateFocus as s,createBindingV2__EXPERIMENTAL as a,CLEAR_DIFF_VERSIONS_COMMAND__EXPERIMENTAL as c,syncYjsStateToLexicalV2__EXPERIMENTAL as i,DIFF_VERSIONS_COMMAND__EXPERIMENTAL as d,renderSnapshot__EXPERIMENTAL as u,syncLexicalUpdateToYjsV2__EXPERIMENTAL as l,syncYjsChangesToLexical as p,initLocalState as m,TOGGLE_CONNECT_COMMAND as f,syncYjsChangesToLexicalV2__EXPERIMENTAL as g,CONNECTED_COMMAND as C,createBinding as h}from"@lexical/yjs";import*as y from"react";import{useRef as v,useCallback as x,useEffect as E,useMemo as S,useState as b}from"react";import{mergeRegister as D}from"@lexical/utils";import{SKIP_COLLAB_TAG as k,FOCUS_COMMAND as _,COMMAND_PRIORITY_EDITOR as j,BLUR_COMMAND as w,$getRoot as P,HISTORY_MERGE_TAG as B,$createParagraphNode as R,$getSelection as L,UNDO_COMMAND as U,REDO_COMMAND as F,CAN_UNDO_COMMAND as M,CAN_REDO_COMMAND as N}from"lexical";import{createPortal as T}from"react-dom";import{UndoManager as A}from"yjs";import{jsx as z,Fragment as q}from"react/jsx-runtime";function G(t,e,n,s,a,c,i,d,u,l,m,f,g=o){const C=v(!1),h=x(()=>{const{root:e}=d;i&&e.isEmpty()&&0===e._xmlText._length&&Q(t,m)},[d,t,m,i]);return E(()=>{const{root:e}=d,o=(t,e)=>{const o=e.origin;if(o!==d){p(d,n,t,o instanceof A,g)}};e.getSharedType().observeDeep(o);const s=t.registerUpdateListener(({prevEditorState:t,editorState:e,dirtyLeaves:o,dirtyElements:s,normalizedNodes:a,tags:c})=>{c.has(k)||r(d,n,t,e,s,o,a,c)});return()=>{e.getSharedType().unobserveDeep(o),s()}},[d,n,t,u,s,e,g]),E(()=>{const o=o=>{!function(t,e){if(t.update(()=>{const t=P();t.clear(),t.select()},{tag:k}),null==e.cursors)return;const o=e.cursors;if(null==o)return;const r=e.cursorsContainer;if(null==r)return;const n=Array.from(o.values());for(let t=0;t<n.length;t++){const e=n[t].selection;if(e&&null!=e.selections){const o=e.selections;for(let e=0;e<o.length;e++)r.removeChild(o[t])}}}(t,d),u(o),s.set(e,o),C.current=!0},r=()=>{C.current=!1};return n.on("reload",o),n.on("sync",r),()=>{n.off("reload",o),n.off("sync",r)}},[d,n,t,u,s,e]),H(t,n,a,c,C,f,h),I(d,n),J(d,l)}function H(t,e,o,r,n,s,a){const c=x(()=>e.connect(),[e]),i=x(()=>{try{e.disconnect()}catch(t){}},[e]);E(()=>{const d=({status:e})=>{t.dispatchCommand(C,"connected"===e)},u=t=>{t&&!1===n.current&&a&&a()};m(e,o,r,document.activeElement===t.getRootElement(),s||{}),e.on("status",d),e.on("sync",u);const l=c();return()=>{!1===n.current&&(l?l.then(i):i()),e.off("sync",u),e.off("status",d)}},[t,e,o,r,n,s,a,c,i]),E(()=>t.registerCommand(f,t=>(t?(console.log("Collaboration connected!"),c()):(console.log("Collaboration disconnected!"),i()),!0),j),[c,i,t])}function I(t,e){E(()=>{const{awareness:r}=e,n=()=>{o(t,e)};return r.on("update",n),()=>{r.off("update",n)}},[t,e])}function J(t,e){return S(()=>T(z("div",{ref:e=>{t.cursorsContainer=e}}),e&&e.current||document.body),[t,e])}function K(t,e,o,r,n){E(()=>D(t.registerCommand(_,()=>(s(e,o,r,!0,n||{}),!1),j),t.registerCommand(w,()=>(s(e,o,r,!1,n||{}),!1),j)),[r,t,o,e,n])}function O(t,e){E(()=>D(t.registerCommand(U,()=>(e.undo(),!0),j),t.registerCommand(F,()=>(e.redo(),!0),j)));const o=x(()=>{e.clear()},[e]);return y.useEffect(()=>{const o=()=>{t.dispatchCommand(M,e.undoStack.length>0),t.dispatchCommand(N,e.redoStack.length>0)};return e.on("stack-item-added",o),e.on("stack-item-popped",o),e.on("stack-cleared",o),()=>{e.off("stack-item-added",o),e.off("stack-item-popped",o),e.off("stack-cleared",o)}},[t,e]),o}function Q(t,e){t.update(()=>{const o=P();if(o.isEmpty())if(e)switch(typeof e){case"string":{const o=t.parseEditorState(e);t.setEditorState(o,{tag:B});break}case"object":t.setEditorState(e,{tag:B});break;case"function":t.update(()=>{P().isEmpty()&&e(t)},{tag:B})}else{const e=R();o.append(e);const{activeElement:r}=document;(null!==L()||null!==r&&r===t.getRootElement())&&e.select()}},{tag:B})}function V({id:o,providerFactory:r,shouldBootstrap:n,username:s,cursorColor:a,cursorsContainerRef:c,initialEditorState:i,excludedProperties:d,awarenessData:u,syncCursorPositionsFn:l}){const p=v(!1),m=v(!1),f=t(s,a),{yjsDocMap:g,name:C,color:y}=f,[x]=e();Y(f,x);const[S,D]=b(),[k,_]=b();E(()=>{if(m.current)return;m.current=!0;const t=r(o,g);return D(t),_(g.get(o)),()=>{t.disconnect()}},[o,r,g]);const[j,w]=b();return E(()=>{if(!S)return;if(p.current)return;p.current=!0;const t=h(x,S,o,k||g.get(o),g,d);return w(t),()=>{t.root.destroy(t)}},[x,S,o,g,k,d]),S&&j?z(W,{awarenessData:u,binding:j,collabContext:f,color:y,cursorsContainerRef:c,editor:x,id:o,initialEditorState:i,name:C,provider:S,setDoc:_,shouldBootstrap:n,yjsDocMap:g,syncCursorPositionsFn:l}):z(q,{})}function W({editor:t,id:e,provider:o,yjsDocMap:r,name:s,color:a,shouldBootstrap:c,cursorsContainerRef:i,initialEditorState:d,awarenessData:u,collabContext:l,binding:p,setDoc:m,syncCursorPositionsFn:f}){const g=G(t,e,o,r,s,a,c,p,m,i,d,u,f);return function(t,e){O(t,S(()=>n(e,e.root.getSharedType()),[e]))}(t,p),K(t,o,s,a,u),g}function X({id:o,doc:r,provider:s,__shouldBootstrapUnsafe:p,username:m,cursorColor:f,cursorsContainerRef:C,excludedProperties:h,awarenessData:y}){const v=t(m,f),{yjsDocMap:_,name:w,color:P}=v,[B]=e();Y(v,B);const R=function(t,e,o,r,n,s,p,m={}){const{awarenessData:f,excludedProperties:C,rootName:h,__shouldBootstrapUnsafe:y}=m,v=S(()=>({current:!1}),[]),_=S(()=>a(t,e,o,n,{excludedProperties:C,rootName:h}),[t,e,o,n,C,h]);E(()=>(n.set(e,o),()=>{n.delete(e)}),[o,n,e]);const w=x(()=>{const{root:e}=_;y&&0===e._length&&Q(t)},[_,t,y]),[P,B]=b();return E(()=>{D(t.registerCommand(c,()=>(B(null),i(_,r),!0),j),t.registerCommand(d,({prevSnapshot:t,snapshot:e})=>(B({prevSnapshot:t,snapshot:e}),!0),j))},[t,_,r]),E(()=>{const{root:e}=_;if(P)return void u(_,P.snapshot,P.prevSnapshot);const o=(t,e)=>{const o=e.origin;o!==_&&g(_,r,t,e,o instanceof A)};e.observeDeep(o);const n=t.registerUpdateListener(({prevEditorState:t,editorState:e,dirtyElements:o,normalizedNodes:n,tags:s})=>{s.has(k)||l(_,r,t,e,o,n,s)});return()=>{e.unobserveDeep(o),n()}},[_,r,t,P]),H(t,r,s,p,v,f,w),I(_,r),_}(B,o,r,s,_,w,P,{__shouldBootstrapUnsafe:p,awarenessData:y,excludedProperties:h});return function(t,e){O(t,S(()=>n(e,e.root),[e]))}(B,R),K(B,s,w,P,y),J(R,C)}const Y=(t,e)=>{E(()=>(t.isCollabActive=!0,()=>{null==e._parentEditor&&(t.isCollabActive=!1)}),[t,e])};export{V as CollaborationPlugin,X as CollaborationPluginV2__EXPERIMENTAL};
|