@ctzhian/tiptap 2.13.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/editor/Editor/demo.d.ts +4 -0
- package/dist/app/editor/Editor/demo.js +222 -0
- package/dist/app/editor/Editor/index.d.ts +5 -0
- package/dist/app/editor/Editor/index.js +47 -0
- package/dist/app/editor/EditorDiff/demo.d.ts +4 -0
- package/dist/app/editor/EditorDiff/demo.js +13 -0
- package/dist/app/editor/EditorDiff/index.js +34 -0
- package/dist/app/editor/EditorMarkdown/demo.d.ts +4 -0
- package/dist/app/editor/EditorMarkdown/demo.js +169 -0
- package/dist/app/editor/EditorMarkdown/index.d.ts +1 -0
- package/dist/app/editor/EditorMarkdown/index.js +1 -0
- package/dist/app/editor/EditorThemeProvider/index.d.ts +11 -0
- package/dist/app/editor/EditorThemeProvider/index.js +90 -0
- package/dist/components/ActionDropdown/index.d.ts +30 -0
- package/dist/components/ActionDropdown/index.js +138 -0
- package/dist/components/CustomBubbleMenu/index.d.ts +9 -0
- package/dist/components/CustomBubbleMenu/index.js +165 -0
- package/dist/components/FloatingPopover/index.js +66 -0
- package/dist/components/HoverPopover/index.js +56 -0
- package/dist/components/Menu/NestedList.d.ts +16 -0
- package/dist/components/Menu/NestedList.js +141 -0
- package/dist/components/Menu/index.d.ts +7 -0
- package/dist/components/Menu/index.js +100 -0
- package/dist/components/Toolbar/CommandSelect.d.ts +20 -0
- package/dist/components/Toolbar/CommandSelect.js +129 -0
- package/dist/components/Toolbar/EditorAlignSelect.js +76 -0
- package/dist/components/Toolbar/EditorCode.js +50 -0
- package/dist/components/Toolbar/EditorHeading.js +173 -0
- package/dist/components/Toolbar/EditorInsert/index.js +40 -0
- package/dist/components/Toolbar/EditorInsert/menu-builders.d.ts +3 -0
- package/dist/components/Toolbar/EditorInsert/menu-builders.js +407 -0
- package/dist/components/Toolbar/EditorListSelect.js +62 -0
- package/dist/components/Toolbar/EditorMath.js +54 -0
- package/dist/components/Toolbar/EditorMore/NotificationDialog.js +73 -0
- package/dist/components/Toolbar/EditorMore/index.d.ts +7 -0
- package/dist/components/Toolbar/EditorMore/index.js +104 -0
- package/dist/components/Toolbar/EditorMore/menu-builders.d.ts +5 -0
- package/dist/components/Toolbar/EditorMore/menu-builders.js +13 -0
- package/dist/components/Toolbar/EditorScript.js +50 -0
- package/dist/components/Toolbar/EditorVerticalAlignSelect.js +64 -0
- package/dist/components/Toolbar/Item.js +74 -0
- package/dist/components/Toolbar/TableSizePicker.js +80 -0
- package/dist/components/Toolbar/index.d.ts +14 -0
- package/dist/components/Toolbar/index.js +14 -0
- package/dist/components/shared/menu-item-content.d.ts +7 -0
- package/dist/components/shared/menu-item-content.js +23 -0
- package/dist/components/shared/menu-surface.d.ts +13 -0
- package/dist/components/shared/menu-surface.js +35 -0
- package/dist/components/shared/use-floating-popover.d.ts +16 -0
- package/dist/components/shared/use-floating-popover.js +79 -0
- package/dist/components/shared/use-hover-popover.d.ts +15 -0
- package/dist/components/shared/use-hover-popover.js +96 -0
- package/dist/components/shared/use-popover-anchor.d.ts +8 -0
- package/dist/components/shared/use-popover-anchor.js +26 -0
- package/dist/constants/enums.d.ts +49 -0
- package/dist/constants/enums.js +213 -0
- package/dist/constants/slash-commands.js +397 -0
- package/dist/editor-core/extensions/builders.d.ts +13 -0
- package/dist/editor-core/extensions/builders.js +225 -0
- package/dist/editor-core/extensions/catalog.d.ts +22 -0
- package/dist/editor-core/extensions/catalog.js +326 -0
- package/dist/editor-core/extensions/component/Alert/index.js +239 -0
- package/dist/editor-core/extensions/component/Attachment/AttachmentContent.js +420 -0
- package/dist/editor-core/extensions/component/Attachment/Insert.d.ts +13 -0
- package/dist/editor-core/extensions/component/Attachment/Insert.js +213 -0
- package/dist/editor-core/extensions/component/Attachment/index.d.ts +15 -0
- package/dist/editor-core/extensions/component/Attachment/index.js +302 -0
- package/dist/editor-core/extensions/component/Audio/AudioPlayer.d.ts +8 -0
- package/dist/editor-core/extensions/component/Audio/AudioPlayer.js +391 -0
- package/dist/editor-core/extensions/component/Audio/Insert.d.ts +10 -0
- package/dist/editor-core/extensions/component/Audio/Insert.js +224 -0
- package/dist/editor-core/extensions/component/Audio/index.d.ts +5 -0
- package/dist/editor-core/extensions/component/Audio/index.js +309 -0
- package/dist/editor-core/extensions/component/Audio/shared.d.ts +12 -0
- package/dist/editor-core/extensions/component/Audio/shared.js +48 -0
- package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.d.ts +21 -0
- package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.js +48 -0
- package/dist/editor-core/extensions/component/CodeBlock/Readonly.js +124 -0
- package/dist/editor-core/extensions/component/CodeBlock/index.js +330 -0
- package/dist/editor-core/extensions/component/CodeBlock/shared.d.ts +15 -0
- package/dist/editor-core/extensions/component/CodeBlock/shared.js +70 -0
- package/dist/editor-core/extensions/component/DrawPanel/index.d.ts +5 -0
- package/dist/editor-core/extensions/component/DrawPanel/index.js +168 -0
- package/dist/editor-core/extensions/component/FlipGrid/ColumnView.js +191 -0
- package/dist/editor-core/extensions/component/Flow/Edit.js +69 -0
- package/dist/editor-core/extensions/component/Flow/Insert.js +108 -0
- package/dist/editor-core/extensions/component/Flow/index.d.ts +10 -0
- package/dist/editor-core/extensions/component/Flow/index.js +416 -0
- package/dist/editor-core/extensions/component/Link/Insert.d.ts +10 -0
- package/dist/editor-core/extensions/component/Link/Insert.js +162 -0
- package/dist/editor-core/extensions/component/Link/LinkContent.d.ts +13 -0
- package/dist/editor-core/extensions/component/Link/LinkContent.js +168 -0
- package/dist/editor-core/extensions/component/Link/Markdown.js +66 -0
- package/dist/editor-core/extensions/component/Link/index.d.ts +4 -0
- package/dist/editor-core/extensions/component/Link/index.js +381 -0
- package/dist/editor-core/extensions/component/Link/shared.d.ts +26 -0
- package/dist/editor-core/extensions/component/Link/shared.js +74 -0
- package/dist/editor-core/extensions/component/Mathematics/block/Readonly.d.ts +9 -0
- package/dist/editor-core/extensions/component/Mathematics/block/index.d.ts +7 -0
- package/dist/editor-core/extensions/component/Mathematics/block/index.js +128 -0
- package/dist/editor-core/extensions/component/Mathematics/inline/Readonly.d.ts +9 -0
- package/dist/editor-core/extensions/component/Mathematics/inline/index.d.ts +7 -0
- package/dist/editor-core/extensions/component/Mathematics/inline/index.js +124 -0
- package/dist/editor-core/extensions/component/Mathematics/shared.d.ts +18 -0
- package/dist/editor-core/extensions/component/Mathematics/shared.js +64 -0
- package/dist/editor-core/extensions/component/SlashCommandsList/Overlay.d.ts +10 -0
- package/dist/editor-core/extensions/component/SlashCommandsList/Overlay.js +26 -0
- package/dist/editor-core/extensions/component/SlashCommandsList/index.d.ts +4 -0
- package/dist/editor-core/extensions/component/SlashCommandsList/index.js +330 -0
- package/dist/editor-core/extensions/component/Tooltip/EditPopover.js +152 -0
- package/dist/editor-core/extensions/component/Tooltip/index.js +148 -0
- package/dist/editor-core/extensions/component/UploadProgress/Inline.d.ts +11 -0
- package/dist/editor-core/extensions/component/UploadProgress/Inline.js +28 -0
- package/dist/editor-core/extensions/component/UploadProgress/file-meta.d.ts +4 -0
- package/dist/editor-core/extensions/component/UploadProgress/file-meta.js +42 -0
- package/dist/editor-core/extensions/component/UploadProgress/index.d.ts +11 -0
- package/dist/editor-core/extensions/component/UploadProgress/index.js +19 -0
- package/dist/editor-core/extensions/component/UploadProgress/shared.d.ts +10 -0
- package/dist/editor-core/extensions/component/UploadProgress/shared.js +69 -0
- package/dist/editor-core/extensions/component/shared/edit-popover.d.ts +27 -0
- package/dist/editor-core/extensions/component/shared/edit-popover.js +82 -0
- package/dist/editor-core/extensions/component/shared/insert-popover.d.ts +34 -0
- package/dist/editor-core/extensions/component/shared/insert-popover.js +160 -0
- package/dist/editor-core/extensions/component/shared/resource-form.d.ts +26 -0
- package/dist/editor-core/extensions/component/shared/resource-form.js +78 -0
- package/dist/editor-core/extensions/component/shared/upload-flow.d.ts +25 -0
- package/dist/editor-core/extensions/component/shared/upload-flow.js +143 -0
- package/dist/editor-core/extensions/extension/ImeComposition.d.ts +12 -0
- package/dist/editor-core/extensions/extension/ImeComposition.js +132 -0
- package/dist/editor-core/extensions/extension/StructuredDiff.js +130 -0
- package/dist/editor-core/extensions/extension/ime-shared.d.ts +11 -0
- package/dist/editor-core/extensions/extension/ime-shared.js +20 -0
- package/dist/editor-core/extensions/index.d.ts +4 -0
- package/dist/editor-core/extensions/index.js +6 -0
- package/dist/editor-core/extensions/node/Attachment.d.ts +33 -0
- package/dist/editor-core/extensions/node/Attachment.js +337 -0
- package/dist/editor-core/extensions/node/Audio.d.ts +25 -0
- package/dist/editor-core/extensions/node/Audio.js +201 -0
- package/dist/editor-core/extensions/node/CodeBlockLowlight.js +31 -0
- package/dist/editor-core/extensions/node/DrawPanel.d.ts +11 -0
- package/dist/editor-core/extensions/node/FileHandler.d.ts +4 -0
- package/dist/editor-core/extensions/node/FileHandler.js +198 -0
- package/dist/editor-core/extensions/node/Flow/index.d.ts +22 -0
- package/dist/editor-core/extensions/node/Iframe.d.ts +18 -0
- package/dist/editor-core/extensions/node/Iframe.js +172 -0
- package/dist/editor-core/extensions/node/Image.d.ts +5 -0
- package/dist/editor-core/extensions/node/Image.js +602 -0
- package/dist/editor-core/extensions/node/Link/index.js +568 -0
- package/dist/editor-core/extensions/node/ListKit.js +18 -0
- package/dist/editor-core/extensions/node/Mathematics.d.ts +27 -0
- package/dist/editor-core/extensions/node/Mathematics.js +58 -0
- package/dist/editor-core/extensions/node/Mention.d.ts +2 -0
- package/dist/editor-core/extensions/node/Table.js +328 -0
- package/dist/editor-core/extensions/node/TableOfContents/index.d.ts +11 -0
- package/dist/editor-core/extensions/node/TableOfContents/index.js +449 -0
- package/dist/editor-core/extensions/node/TableOfContents/plugin.js +57 -0
- package/dist/editor-core/extensions/node/Video.d.ts +26 -0
- package/dist/editor-core/extensions/node/Video.js +368 -0
- package/dist/editor-core/extensions/node/code-block-lowlight-shared.d.ts +14 -0
- package/dist/editor-core/extensions/node/code-block-lowlight-shared.js +34 -0
- package/dist/editor-core/extensions/node/list-shared.d.ts +18 -0
- package/dist/editor-core/extensions/node/list-shared.js +18 -0
- package/dist/editor-core/extensions/node/mathematics-shared.d.ts +7 -0
- package/dist/editor-core/extensions/node/mathematics-shared.js +40 -0
- package/dist/editor-core/extensions/node/resource-shared.d.ts +13 -0
- package/dist/editor-core/extensions/node/resource-shared.js +45 -0
- package/dist/editor-core/extensions/plugin-keys.d.ts +2 -0
- package/dist/editor-core/extensions/plugin-keys.js +2 -0
- package/dist/editor-core/extensions/suggestion/mention.d.ts +4 -0
- package/dist/editor-core/extensions/suggestion/mention.js +88 -0
- package/dist/editor-core/extensions/suggestion/slash.d.ts +52 -0
- package/dist/editor-core/extensions/suggestion/slash.js +94 -0
- package/dist/features/drag-handle/action-count-badge.d.ts +5 -0
- package/dist/features/drag-handle/action-count-badge.js +23 -0
- package/dist/features/drag-handle/action-groups.d.ts +13 -0
- package/dist/features/drag-handle/action-groups.js +49 -0
- package/dist/features/drag-handle/convert-builders.d.ts +8 -0
- package/dist/features/drag-handle/convert-builders.js +201 -0
- package/dist/features/drag-handle/download-builders.d.ts +7 -0
- package/dist/features/drag-handle/download-builders.js +237 -0
- package/dist/features/drag-handle/drag-handle-header.d.ts +17 -0
- package/dist/features/drag-handle/drag-handle-header.js +233 -0
- package/dist/features/drag-handle/index.d.ts +9 -0
- package/dist/features/drag-handle/index.js +210 -0
- package/dist/features/drag-handle/insert-builders.d.ts +3 -0
- package/dist/features/drag-handle/insert-builders.js +81 -0
- package/dist/features/drag-handle/menu-builders.d.ts +4 -0
- package/dist/features/drag-handle/menu-builders.js +4 -0
- package/dist/features/drag-handle/menu-shared.d.ts +11 -0
- package/dist/features/drag-handle/menu-shared.js +102 -0
- package/dist/features/drag-handle/node-actions.d.ts +5 -0
- package/dist/features/drag-handle/node-actions.js +57 -0
- package/dist/features/drag-handle/style-builders.d.ts +8 -0
- package/dist/features/drag-handle/style-builders.js +197 -0
- package/dist/features/drag-handle/types.d.ts +27 -0
- package/dist/features/drag-handle/use-current-node-context.d.ts +11 -0
- package/dist/features/drag-handle/use-current-node-context.js +109 -0
- package/dist/features/markdown/Toolbar.d.ts +10 -0
- package/dist/features/markdown/Toolbar.js +81 -0
- package/dist/features/markdown/index.d.ts +33 -0
- package/dist/features/markdown/index.js +284 -0
- package/dist/features/markdown/toolbar-actions.d.ts +82 -0
- package/dist/features/markdown/toolbar-actions.js +734 -0
- package/dist/features/markdown/toolbar-menu.d.ts +9 -0
- package/dist/features/markdown/toolbar-menu.js +87 -0
- package/dist/features/markdown/toolbar-tool-list.d.ts +12 -0
- package/dist/features/markdown/toolbar-tool-list.js +24 -0
- package/dist/features/markdown/use-ace-composition.d.ts +5 -0
- package/dist/features/markdown/use-ace-composition.js +39 -0
- package/dist/features/markdown/use-display-mode.d.ts +8 -0
- package/dist/features/markdown/use-display-mode.js +28 -0
- package/dist/features/markdown/use-markdown-file-inputs.d.ts +10 -0
- package/dist/features/markdown/use-markdown-file-inputs.js +69 -0
- package/dist/features/markdown/use-markdown-sync.d.ts +13 -0
- package/dist/features/markdown/use-markdown-sync.js +56 -0
- package/dist/features/markdown/use-markdown-transfer.d.ts +18 -0
- package/dist/features/markdown/use-markdown-transfer.js +123 -0
- package/dist/features/markdown/use-markdown-upload.d.ts +13 -0
- package/dist/features/markdown/use-markdown-upload.js +98 -0
- package/dist/features/media/iframe/Insert.d.ts +16 -0
- package/dist/features/media/iframe/Insert.js +123 -0
- package/dist/features/media/iframe/index.d.ts +5 -0
- package/dist/features/media/iframe/index.js +255 -0
- package/dist/features/media/image/Crop.d.ts +12 -0
- package/dist/features/media/image/Insert.d.ts +10 -0
- package/dist/features/media/image/Insert.js +294 -0
- package/dist/features/media/image/Readonly.js +53 -0
- package/dist/features/media/image/index.d.ts +22 -0
- package/dist/features/media/image/index.js +408 -0
- package/dist/features/media/shared/media-edit-popover.d.ts +26 -0
- package/dist/features/media/shared/media-edit-popover.js +105 -0
- package/dist/features/media/shared/media-hover-toolbar.d.ts +18 -0
- package/dist/features/media/shared/media-hover-toolbar.js +140 -0
- package/dist/features/media/shared/media-resize-handles.d.ts +8 -0
- package/dist/features/media/shared/media-resize-handles.js +70 -0
- package/dist/features/media/shared/use-media-resize.d.ts +20 -0
- package/dist/features/media/shared/use-media-resize.js +88 -0
- package/dist/features/media/shared/use-media-width.d.ts +14 -0
- package/dist/features/media/shared/use-media-width.js +76 -0
- package/dist/features/media/video/Insert.d.ts +10 -0
- package/dist/features/media/video/Insert.js +220 -0
- package/dist/features/media/video/index.d.ts +15 -0
- package/dist/features/media/video/index.js +261 -0
- package/dist/features/table/TableCellHandleMenu/index.js +234 -0
- package/dist/features/table/TableExtendButton/index.d.ts +21 -0
- package/dist/features/table/TableExtendButton/index.js +210 -0
- package/dist/features/table/TableHandle/TableHandleAddButton.d.ts +14 -0
- package/dist/features/table/TableHandle/TableHandleAddButton.js +78 -0
- package/dist/features/table/TableHandle/TableHandleMenu.d.ts +17 -0
- package/dist/features/table/TableHandle/TableHandleMenu.js +583 -0
- package/dist/features/table/TableHandle/index.d.ts +11 -0
- package/dist/features/table/TableHandle/index.js +73 -0
- package/dist/features/table/TableHandle/menu-builders.d.ts +14 -0
- package/dist/features/table/TableHandle/menu-builders.js +242 -0
- package/dist/features/table/TableHandle/table-handle-group.d.ts +16 -0
- package/dist/features/table/TableHandle/table-handle-group.js +84 -0
- package/dist/features/table/TableHandle/use-table-handle-positioning.js +166 -0
- package/dist/features/table/TableHandle/use-table-handle-state.d.ts +13 -0
- package/dist/features/table/TableHandle/use-table-handle-visibility.d.ts +14 -0
- package/dist/features/table/TableHandle/use-table-handle-visibility.js +47 -0
- package/dist/features/table/TableHandle/use-table-menu-open.d.ts +12 -0
- package/dist/features/table/TableHandle/use-table-menu-open.js +39 -0
- package/dist/features/table/TableSelectionOverlay/index.js +449 -0
- package/dist/features/table/plugin/decorations.d.ts +9 -0
- package/dist/features/table/plugin/decorations.js +80 -0
- package/dist/features/table/plugin/drag-helpers.d.ts +11 -0
- package/dist/features/table/plugin/drag-helpers.js +188 -0
- package/dist/features/table/plugin/hover-state.d.ts +27 -0
- package/dist/features/table/plugin/hover-state.js +60 -0
- package/dist/features/table/plugin/index.d.ts +17 -0
- package/dist/features/table/plugin/index.js +36 -0
- package/dist/features/table/plugin/plugin.d.ts +4 -0
- package/dist/features/table/plugin/plugin.js +512 -0
- package/dist/features/table/plugin/positioning.d.ts +40 -0
- package/dist/features/table/plugin/positioning.js +124 -0
- package/dist/features/table/plugin/shared.d.ts +37 -0
- package/dist/features/table/plugin/shared.js +9 -0
- package/dist/features/table/plugin/state-sync.d.ts +12 -0
- package/dist/features/table/plugin/state-sync.js +75 -0
- package/dist/features/toolbar/index.d.ts +16 -0
- package/dist/features/toolbar/index.js +179 -0
- package/dist/features/toolbar/toolbar-config.d.ts +32 -0
- package/dist/features/toolbar/toolbar-config.js +209 -0
- package/dist/features/toolbar/toolbar-divider.d.ts +3 -0
- package/dist/features/toolbar/toolbar-divider.js +14 -0
- package/dist/features/toolbar/toolbar-sections.d.ts +23 -0
- package/dist/features/toolbar/toolbar-sections.js +107 -0
- package/dist/hooks/fn.d.ts +13 -0
- package/dist/hooks/fn.js +37 -0
- package/dist/hooks/index.d.ts +4 -0
- package/dist/hooks/index.js +133 -0
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/themes/componentStyleOverrides.js +1 -1
- package/dist/themes/index.d.ts +1 -1
- package/dist/types/index.js +1 -0
- package/dist/utils/color.d.ts +1 -0
- package/dist/utils/color.js +18 -0
- package/dist/utils/diff/index.d.ts +2 -0
- package/dist/utils/diff/index.js +2 -0
- package/dist/utils/editor.d.ts +6 -0
- package/dist/utils/editor.js +29 -0
- package/dist/utils/embed.d.ts +2 -0
- package/dist/utils/embed.js +27 -0
- package/dist/utils/file/index.d.ts +3 -0
- package/dist/utils/file/index.js +3 -0
- package/dist/utils/file.d.ts +3 -0
- package/dist/utils/file.js +20 -0
- package/dist/utils/fileHandler.d.ts +7 -0
- package/dist/utils/fileHandler.js +69 -0
- package/dist/utils/index.d.ts +10 -0
- package/dist/utils/index.js +10 -0
- package/dist/utils/link.d.ts +5 -0
- package/dist/utils/link.js +25 -0
- package/dist/utils/resource.d.ts +2 -0
- package/dist/utils/resource.js +38 -0
- package/dist/utils/resourceExtractor.d.ts +15 -0
- package/dist/utils/resourceExtractor.js +61 -0
- package/dist/utils/shortcutKey.js +10 -0
- package/dist/utils/table/index.d.ts +1 -0
- package/dist/utils/table/index.js +1 -0
- package/package.json +36 -32
- package/dist/Editor/demo.d.ts +0 -4
- package/dist/Editor/demo.js +0 -219
- package/dist/Editor/index.d.ts +0 -5
- package/dist/Editor/index.js +0 -46
- package/dist/EditorDiff/demo.d.ts +0 -4
- package/dist/EditorDiff/demo.js +0 -12
- package/dist/EditorDiff/index.js +0 -34
- package/dist/EditorMarkdown/Toolbar.d.ts +0 -9
- package/dist/EditorMarkdown/Toolbar.js +0 -942
- package/dist/EditorMarkdown/demo.d.ts +0 -4
- package/dist/EditorMarkdown/demo.js +0 -167
- package/dist/EditorMarkdown/index.d.ts +0 -33
- package/dist/EditorMarkdown/index.js +0 -566
- package/dist/EditorThemeProvider/index.d.ts +0 -11
- package/dist/EditorThemeProvider/index.js +0 -90
- package/dist/EditorToolbar/index.d.ts +0 -16
- package/dist/EditorToolbar/index.js +0 -361
- package/dist/component/ActionDropdown/index.d.ts +0 -30
- package/dist/component/ActionDropdown/index.js +0 -152
- package/dist/component/CustomBubbleMenu/index.d.ts +0 -9
- package/dist/component/CustomBubbleMenu/index.js +0 -164
- package/dist/component/CustomDragHandle/index.d.ts +0 -9
- package/dist/component/CustomDragHandle/index.js +0 -1372
- package/dist/component/FloatingPopover/index.js +0 -120
- package/dist/component/HoverPopover/index.js +0 -162
- package/dist/component/Menu/NestedList.d.ts +0 -16
- package/dist/component/Menu/NestedList.js +0 -163
- package/dist/component/Menu/index.d.ts +0 -7
- package/dist/component/Menu/index.js +0 -108
- package/dist/component/Toolbar/EditorAlignSelect.js +0 -187
- package/dist/component/Toolbar/EditorCode.js +0 -161
- package/dist/component/Toolbar/EditorHeading.js +0 -173
- package/dist/component/Toolbar/EditorInsert/index.js +0 -491
- package/dist/component/Toolbar/EditorListSelect.js +0 -174
- package/dist/component/Toolbar/EditorMath.js +0 -159
- package/dist/component/Toolbar/EditorMore/NotificationDialog.js +0 -73
- package/dist/component/Toolbar/EditorMore/index.d.ts +0 -7
- package/dist/component/Toolbar/EditorMore/index.js +0 -109
- package/dist/component/Toolbar/EditorScript.js +0 -161
- package/dist/component/Toolbar/EditorVerticalAlignSelect.js +0 -174
- package/dist/component/Toolbar/Item.js +0 -74
- package/dist/component/Toolbar/TableSizePicker.js +0 -80
- package/dist/component/Toolbar/index.d.ts +0 -13
- package/dist/component/Toolbar/index.js +0 -13
- package/dist/contants/enums.d.ts +0 -47
- package/dist/contants/enums.js +0 -199
- package/dist/contants/slash-commands.js +0 -397
- package/dist/extension/component/Alert/index.js +0 -239
- package/dist/extension/component/Attachment/AttachmentContent.js +0 -420
- package/dist/extension/component/Attachment/Insert.d.ts +0 -13
- package/dist/extension/component/Attachment/Insert.js +0 -221
- package/dist/extension/component/Attachment/index.d.ts +0 -15
- package/dist/extension/component/Attachment/index.js +0 -310
- package/dist/extension/component/Audio/AudioPlayer.d.ts +0 -8
- package/dist/extension/component/Audio/AudioPlayer.js +0 -382
- package/dist/extension/component/Audio/Insert.d.ts +0 -10
- package/dist/extension/component/Audio/Insert.js +0 -388
- package/dist/extension/component/Audio/index.d.ts +0 -14
- package/dist/extension/component/Audio/index.js +0 -406
- package/dist/extension/component/CodeBlock/Readonly.js +0 -162
- package/dist/extension/component/CodeBlock/index.js +0 -374
- package/dist/extension/component/DrawPanel/index.d.ts +0 -5
- package/dist/extension/component/DrawPanel/index.js +0 -168
- package/dist/extension/component/FlipGrid/ColumnView.js +0 -191
- package/dist/extension/component/Flow/Edit.js +0 -69
- package/dist/extension/component/Flow/Insert.js +0 -108
- package/dist/extension/component/Flow/index.d.ts +0 -10
- package/dist/extension/component/Flow/index.js +0 -416
- package/dist/extension/component/Iframe/Insert.d.ts +0 -16
- package/dist/extension/component/Iframe/Insert.js +0 -154
- package/dist/extension/component/Iframe/index.d.ts +0 -5
- package/dist/extension/component/Iframe/index.js +0 -551
- package/dist/extension/component/Image/Crop.d.ts +0 -12
- package/dist/extension/component/Image/Insert.d.ts +0 -10
- package/dist/extension/component/Image/Insert.js +0 -366
- package/dist/extension/component/Image/Readonly.js +0 -53
- package/dist/extension/component/Image/index.d.ts +0 -22
- package/dist/extension/component/Image/index.js +0 -602
- package/dist/extension/component/Link/Insert.d.ts +0 -10
- package/dist/extension/component/Link/Insert.js +0 -252
- package/dist/extension/component/Link/LinkContent.d.ts +0 -13
- package/dist/extension/component/Link/LinkContent.js +0 -171
- package/dist/extension/component/Link/Markdown.js +0 -66
- package/dist/extension/component/Link/index.d.ts +0 -12
- package/dist/extension/component/Link/index.js +0 -433
- package/dist/extension/component/Mathematics/block/Readonly.d.ts +0 -9
- package/dist/extension/component/Mathematics/block/index.d.ts +0 -8
- package/dist/extension/component/Mathematics/block/index.js +0 -149
- package/dist/extension/component/Mathematics/inline/Readonly.d.ts +0 -9
- package/dist/extension/component/Mathematics/inline/index.d.ts +0 -8
- package/dist/extension/component/Mathematics/inline/index.js +0 -147
- package/dist/extension/component/SlashCommandsList/Overlay.d.ts +0 -10
- package/dist/extension/component/SlashCommandsList/Overlay.js +0 -26
- package/dist/extension/component/SlashCommandsList/index.d.ts +0 -4
- package/dist/extension/component/SlashCommandsList/index.js +0 -330
- package/dist/extension/component/TableCellHandleMenu/index.js +0 -512
- package/dist/extension/component/TableExtendButton/index.d.ts +0 -21
- package/dist/extension/component/TableExtendButton/index.js +0 -210
- package/dist/extension/component/TableHandle/TableHandleAddButton.d.ts +0 -14
- package/dist/extension/component/TableHandle/TableHandleAddButton.js +0 -78
- package/dist/extension/component/TableHandle/TableHandleMenu.d.ts +0 -17
- package/dist/extension/component/TableHandle/TableHandleMenu.js +0 -800
- package/dist/extension/component/TableHandle/index.d.ts +0 -23
- package/dist/extension/component/TableHandle/index.js +0 -140
- package/dist/extension/component/TableHandle/use-table-handle-positioning.js +0 -166
- package/dist/extension/component/TableHandle/use-table-handle-state.d.ts +0 -13
- package/dist/extension/component/TableSelectionOverlay/index.js +0 -449
- package/dist/extension/component/Tooltip/EditPopover.js +0 -162
- package/dist/extension/component/Tooltip/index.js +0 -148
- package/dist/extension/component/UploadProgress/Inline.d.ts +0 -10
- package/dist/extension/component/UploadProgress/Inline.js +0 -80
- package/dist/extension/component/UploadProgress/index.d.ts +0 -12
- package/dist/extension/component/UploadProgress/index.js +0 -111
- package/dist/extension/component/Video/Insert.d.ts +0 -10
- package/dist/extension/component/Video/Insert.js +0 -296
- package/dist/extension/component/Video/index.d.ts +0 -15
- package/dist/extension/component/Video/index.js +0 -554
- package/dist/extension/extension/ImeComposition.d.ts +0 -2
- package/dist/extension/extension/ImeComposition.js +0 -145
- package/dist/extension/extension/StructuredDiff.js +0 -131
- package/dist/extension/index.d.ts +0 -2
- package/dist/extension/index.js +0 -191
- package/dist/extension/node/Attachment.d.ts +0 -33
- package/dist/extension/node/Attachment.js +0 -325
- package/dist/extension/node/Audio.d.ts +0 -25
- package/dist/extension/node/Audio.js +0 -209
- package/dist/extension/node/CodeBlockLowlight.js +0 -58
- package/dist/extension/node/DrawPanel.d.ts +0 -11
- package/dist/extension/node/FileHandler.d.ts +0 -4
- package/dist/extension/node/FileHandler.js +0 -198
- package/dist/extension/node/Flow/index.d.ts +0 -22
- package/dist/extension/node/Iframe.d.ts +0 -18
- package/dist/extension/node/Iframe.js +0 -172
- package/dist/extension/node/Image.d.ts +0 -5
- package/dist/extension/node/Image.js +0 -602
- package/dist/extension/node/Link/index.js +0 -562
- package/dist/extension/node/ListKit.js +0 -23
- package/dist/extension/node/Mathematics.d.ts +0 -27
- package/dist/extension/node/Mathematics.js +0 -97
- package/dist/extension/node/Mention.d.ts +0 -2
- package/dist/extension/node/Table.js +0 -328
- package/dist/extension/node/TableHandler/index.d.ts +0 -15
- package/dist/extension/node/TableHandler/index.js +0 -33
- package/dist/extension/node/TableHandler/plugin.d.ts +0 -45
- package/dist/extension/node/TableHandler/plugin.js +0 -1083
- package/dist/extension/node/TableOfContents/index.d.ts +0 -11
- package/dist/extension/node/TableOfContents/index.js +0 -449
- package/dist/extension/node/TableOfContents/plugin.js +0 -58
- package/dist/extension/node/Video.d.ts +0 -26
- package/dist/extension/node/Video.js +0 -368
- package/dist/extension/suggestion/mention.d.ts +0 -4
- package/dist/extension/suggestion/mention.js +0 -88
- package/dist/extension/suggestion/slash.d.ts +0 -52
- package/dist/extension/suggestion/slash.js +0 -94
- package/dist/hook/fn.d.ts +0 -13
- package/dist/hook/fn.js +0 -37
- package/dist/hook/index.d.ts +0 -4
- package/dist/hook/index.js +0 -123
- package/dist/util/fileHandler.d.ts +0 -7
- package/dist/util/fileHandler.js +0 -82
- package/dist/util/index.d.ts +0 -35
- package/dist/util/index.js +0 -165
- package/dist/util/resourceExtractor.d.ts +0 -15
- package/dist/util/resourceExtractor.js +0 -61
- package/dist/util/shortcutKey.js +0 -10
- /package/dist/{EditorDiff → app/editor/EditorDiff}/index.d.ts +0 -0
- /package/dist/{component → components}/CustomFloatingMenu/index.d.ts +0 -0
- /package/dist/{component → components}/CustomFloatingMenu/index.js +0 -0
- /package/dist/{component → components}/FloatingPopover/index.d.ts +0 -0
- /package/dist/{component → components}/HoverPopover/index.d.ts +0 -0
- /package/dist/{component → components}/Icons/add-circle-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/add-circle-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/add-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/add-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/ai-generate-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/ai-generate-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/ai-generate-text-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/ai-generate-text-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-bottom-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-bottom-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-center-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-center-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-justify-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-justify-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-left-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-left-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-right-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-right-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-top-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-top-icon.js +0 -0
- /package/dist/{component → components}/Icons/align-vertically-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/align-vertically-icon.js +0 -0
- /package/dist/{component → components}/Icons/anticlockwise-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/anticlockwise-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/arrow-down-s-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/arrow-down-s-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/arrow-go-back-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/arrow-go-back-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/arrow-go-forward-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/arrow-go-forward-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/arrow-left-wide-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/arrow-left-wide-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/at-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/at-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/attachment-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/attachment-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/attachment-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/attachment-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/bilibili-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/bilibili-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/bold-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/bold-icon.js +0 -0
- /package/dist/{component → components}/Icons/brush-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/brush-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/carousel-view-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/carousel-view-icon.js +0 -0
- /package/dist/{component → components}/Icons/checkbox-blank-circle-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/checkbox-blank-circle-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/checkbox-circle-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/checkbox-circle-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/checkbox-circle-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/checkbox-circle-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/chrome-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/chrome-icon.js +0 -0
- /package/dist/{component → components}/Icons/clockwise-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/clockwise-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/close-circle-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/close-circle-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/code-box-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/code-box-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/code-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/code-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/code-s-slash-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/code-s-slash-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/collapse-horizontal-line.d.ts +0 -0
- /package/dist/{component → components}/Icons/collapse-horizontal-line.js +0 -0
- /package/dist/{component → components}/Icons/collapse-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/collapse-icon.js +0 -0
- /package/dist/{component → components}/Icons/command-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/command-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/copy-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/copy-icon.js +0 -0
- /package/dist/{component → components}/Icons/custom-size-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/custom-size-icon.js +0 -0
- /package/dist/{component → components}/Icons/delete-back-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/delete-back-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/delete-column-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/delete-column-icon.js +0 -0
- /package/dist/{component → components}/Icons/delete-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/delete-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/delete-row-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/delete-row-icon.js +0 -0
- /package/dist/{component → components}/Icons/double-quotes-l-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/double-quotes-l-icon.js +0 -0
- /package/dist/{component → components}/Icons/download-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/download-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/download-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/download-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/draggable-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/draggable-icon.js +0 -0
- /package/dist/{component → components}/Icons/edit-box-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/edit-box-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/edit-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/edit-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/emotion-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/emotion-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/eraser-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/eraser-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/error-warning-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/error-warning-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/expand-horizontal-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/expand-horizontal-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/expend-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/expend-icon.js +0 -0
- /package/dist/{component → components}/Icons/export-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/export-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/eye-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/eye-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/file-copy-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/file-copy-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/file-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/file-icon.js +0 -0
- /package/dist/{component → components}/Icons/file-upload-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/file-upload-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/flip-grid-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/flip-grid-icon.js +0 -0
- /package/dist/{component → components}/Icons/flip-left-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/flip-left-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/flip-right-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/flip-right-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/flow-chart-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/flow-chart-icon.js +0 -0
- /package/dist/{component → components}/Icons/folder-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/folder-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/font-color-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/font-color-icon.js +0 -0
- /package/dist/{component → components}/Icons/font-family-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/font-family-icon.js +0 -0
- /package/dist/{component → components}/Icons/font-size-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/font-size-icon.js +0 -0
- /package/dist/{component → components}/Icons/format-clear-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/format-clear-icon.js +0 -0
- /package/dist/{component → components}/Icons/formula-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/formula-icon.js +0 -0
- /package/dist/{component → components}/Icons/fullscreen-exit-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/fullscreen-exit-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/fullscreen-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/fullscreen-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/functions-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/functions-icon.js +0 -0
- /package/dist/{component → components}/Icons/game-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/game-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-1-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-1-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-3-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-3-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-4-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-4-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-5-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-5-icon.js +0 -0
- /package/dist/{component → components}/Icons/h-6-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/h-6-icon.js +0 -0
- /package/dist/{component → components}/Icons/heading-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/heading-icon.js +0 -0
- /package/dist/{component → components}/Icons/image-add-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/image-add-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/image-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/image-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/import-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/import-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/indent-decrease-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/indent-decrease-icon.js +0 -0
- /package/dist/{component → components}/Icons/indent-increase-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/indent-increase-icon.js +0 -0
- /package/dist/{component → components}/Icons/index.d.ts +0 -0
- /package/dist/{component → components}/Icons/index.js +0 -0
- /package/dist/{component → components}/Icons/information-2-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/information-2-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/information-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/information-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/insert-column-left-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/insert-column-left-icon.js +0 -0
- /package/dist/{component → components}/Icons/insert-column-right-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/insert-column-right-icon.js +0 -0
- /package/dist/{component → components}/Icons/insert-row-bottom-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/insert-row-bottom-icon.js +0 -0
- /package/dist/{component → components}/Icons/insert-row-top-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/insert-row-top-icon.js +0 -0
- /package/dist/{component → components}/Icons/italic-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/italic-icon.js +0 -0
- /package/dist/{component → components}/Icons/keyboard-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/keyboard-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/layout-left-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/layout-left-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/layout-top-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/layout-top-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/link-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/link-icon.js +0 -0
- /package/dist/{component → components}/Icons/link-unlink-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/link-unlink-icon.js +0 -0
- /package/dist/{component → components}/Icons/list-check-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/list-check-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/list-check-3-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/list-check-3-icon.js +0 -0
- /package/dist/{component → components}/Icons/list-ordered-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/list-ordered-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/list-unordered-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/list-unordered-icon.js +0 -0
- /package/dist/{component → components}/Icons/mark-pen-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/mark-pen-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/markdown-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/markdown-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/markup-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/markup-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/menu-fold-2-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/menu-fold-2-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/merge-cells-horizontal-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/merge-cells-horizontal-icon.js +0 -0
- /package/dist/{component → components}/Icons/merge-cells-vertical-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/merge-cells-vertical-icon.js +0 -0
- /package/dist/{component → components}/Icons/mind-map-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/mind-map-icon.js +0 -0
- /package/dist/{component → components}/Icons/more-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/more-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/movie-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/movie-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/music-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/music-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/node-tree-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/node-tree-icon.js +0 -0
- /package/dist/{component → components}/Icons/notification-3-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/notification-3-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/organization-chart-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/organization-chart-icon.js +0 -0
- /package/dist/{component → components}/Icons/pause-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/pause-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/play-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/play-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/question-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/question-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/quote-text-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/quote-text-icon.js +0 -0
- /package/dist/{component → components}/Icons/repeat-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/repeat-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/reset-left-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/reset-left-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/scissors-cut-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/scissors-cut-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/screenshot-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/screenshot-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/scroll-to-bottom-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/scroll-to-bottom-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/separator-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/separator-icon.js +0 -0
- /package/dist/{component → components}/Icons/share-box-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/share-box-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/sketching-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/sketching-icon.js +0 -0
- /package/dist/{component → components}/Icons/skip-down-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/skip-down-icon.js +0 -0
- /package/dist/{component → components}/Icons/skip-left-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/skip-left-icon.js +0 -0
- /package/dist/{component → components}/Icons/skip-right-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/skip-right-icon.js +0 -0
- /package/dist/{component → components}/Icons/skip-up-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/skip-up-icon.js +0 -0
- /package/dist/{component → components}/Icons/slash-commands-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/slash-commands-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/speed-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/speed-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/split-cells-horizontal-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/split-cells-horizontal-icon.js +0 -0
- /package/dist/{component → components}/Icons/split-cells-vertical-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/split-cells-vertical-icon.js +0 -0
- /package/dist/{component → components}/Icons/square-root-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/square-root-icon.js +0 -0
- /package/dist/{component → components}/Icons/strikethrough-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/strikethrough-icon.js +0 -0
- /package/dist/{component → components}/Icons/subscript-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/subscript-icon.js +0 -0
- /package/dist/{component → components}/Icons/superscript-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/superscript-icon.js +0 -0
- /package/dist/{component → components}/Icons/table-2-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/table-2-icon.js +0 -0
- /package/dist/{component → components}/Icons/table-view-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/table-view-icon.js +0 -0
- /package/dist/{component → components}/Icons/text-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/text-icon.js +0 -0
- /package/dist/{component → components}/Icons/text-wrap-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/text-wrap-icon.js +0 -0
- /package/dist/{component → components}/Icons/title-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/title-icon.js +0 -0
- /package/dist/{component → components}/Icons/tooltip-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/tooltip-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/underline-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/underline-icon.js +0 -0
- /package/dist/{component → components}/Icons/upload-cloud-2-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/upload-cloud-2-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/upload-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/upload-icon.js +0 -0
- /package/dist/{component → components}/Icons/user-smile-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/user-smile-fill-icon.js +0 -0
- /package/dist/{component → components}/Icons/volume-down-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/volume-down-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/volume-mute-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/volume-mute-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/volume-up-line-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/volume-up-line-icon.js +0 -0
- /package/dist/{component → components}/Icons/window-fill-icon.d.ts +0 -0
- /package/dist/{component → components}/Icons/window-fill-icon.js +0 -0
- /package/dist/{component → components}/ImageViewer/Item.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/Item.js +0 -0
- /package/dist/{component → components}/ImageViewer/Provider.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/Provider.js +0 -0
- /package/dist/{component → components}/ImageViewer/Toolbar.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/Toolbar.js +0 -0
- /package/dist/{component → components}/ImageViewer/context.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/context.js +0 -0
- /package/dist/{component → components}/ImageViewer/index.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/index.js +0 -0
- /package/dist/{component → components}/ImageViewer/styles.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/styles.js +0 -0
- /package/dist/{component → components}/ImageViewer/types.d.ts +0 -0
- /package/dist/{component → components}/ImageViewer/types.js +0 -0
- /package/dist/{component → components}/Toolbar/EditorAlignSelect.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorCode.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontBgColor.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontBgColor.js +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontColor.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontColor.js +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontSize.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorFontSize.js +0 -0
- /package/dist/{component → components}/Toolbar/EditorHeading.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorInsert/index.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorListSelect.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorMath.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorMore/NotificationDialog.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorScript.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/EditorVerticalAlignSelect.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/Item.d.ts +0 -0
- /package/dist/{component → components}/Toolbar/TableSizePicker.d.ts +0 -0
- /package/dist/{component → components}/index.d.ts +0 -0
- /package/dist/{component → components}/index.js +0 -0
- /package/dist/{contants → constants}/highlight.d.ts +0 -0
- /package/dist/{contants → constants}/highlight.js +0 -0
- /package/dist/{contants → constants}/markdown-placeholder.d.ts +0 -0
- /package/dist/{contants → constants}/markdown-placeholder.js +0 -0
- /package/dist/{contants → constants}/placeholder.d.ts +0 -0
- /package/dist/{contants → constants}/placeholder.js +0 -0
- /package/dist/{contants → constants}/shortcut-key.d.ts +0 -0
- /package/dist/{contants → constants}/shortcut-key.js +0 -0
- /package/dist/{contants → constants}/slash-commands.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Alert/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Attachment/AttachmentContent.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/CodeBlock/Readonly.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/CodeBlock/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/DrawPanel/ExcalidrawEditor.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/DrawPanel/ExcalidrawEditor.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/DrawPanel/Modal.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/DrawPanel/Modal.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/EmojiList/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/EmojiList/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/FlipGrid/ColumnView.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/FlipGrid/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/FlipGrid/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/FlipGrid/utils.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/FlipGrid/utils.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/Edit.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/FlowDiagram.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/FlowDiagram.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/Insert.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/Readonly.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/Readonly.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/useMermaidRender.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/useMermaidRender.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/utils.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Flow/utils.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Link/Markdown.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Mathematics/block/Readonly.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Mathematics/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Mathematics/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Mathematics/inline/Readonly.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/MentionList/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/MentionList/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Tooltip/EditPopover.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/component/Tooltip/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/AiWriting.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/AiWriting.js +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/SlashCommands.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/SlashCommands.js +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/StructuredDiff.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/extension/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/mark/Code.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/mark/Code.js +0 -0
- /package/dist/{extension → editor-core/extensions}/mark/Tooltip.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/mark/Tooltip.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Alert.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Alert.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/CodeBlockLowlight.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Details.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Details.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/DrawPanel.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Emoji.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Emoji.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/FlipGrid.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/FlipGrid.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Flow/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/HorizontalRule.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/HorizontalRule.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Indent.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Indent.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/InlineUploadProgress.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/InlineUploadProgress.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/autolink.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/autolink.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/clickHandler.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/clickHandler.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/pasteHandler.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/pasteHandler.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/whitespace.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/helpers/whitespace.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Link/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/ListKit.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Mention.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Script.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Script.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Table.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/TableOfContents/plugin.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/TableOfContents/types.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/TableOfContents/types.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/TableOfContents/util.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/TableOfContents/util.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/UploadProgress.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/UploadProgress.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/VerticalAlign.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/VerticalAlign.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/YamlFormat.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/YamlFormat.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Youtube.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/Youtube.js +0 -0
- /package/dist/{extension → editor-core/extensions}/node/index.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/node/index.js +0 -0
- /package/dist/{extension → editor-core/extensions}/suggestion/emoji.d.ts +0 -0
- /package/dist/{extension → editor-core/extensions}/suggestion/emoji.js +0 -0
- /package/dist/{type/index.js → features/drag-handle/types.js} +0 -0
- /package/dist/{EditorMarkdown → features/markdown}/UploadProgress.d.ts +0 -0
- /package/dist/{EditorMarkdown → features/markdown}/UploadProgress.js +0 -0
- /package/dist/{EditorMarkdown → features/markdown}/util.d.ts +0 -0
- /package/dist/{EditorMarkdown → features/markdown}/util.js +0 -0
- /package/dist/{extension/component/Iframe → features/media/iframe}/Readonly.d.ts +0 -0
- /package/dist/{extension/component/Iframe → features/media/iframe}/Readonly.js +0 -0
- /package/dist/{extension/component/Image → features/media/image}/Crop.js +0 -0
- /package/dist/{extension/component/Image → features/media/image}/Readonly.d.ts +0 -0
- /package/dist/{extension/component/Video → features/media/video}/Readonly.d.ts +0 -0
- /package/dist/{extension/component/Video → features/media/video}/Readonly.js +0 -0
- /package/dist/{extension/component → features/table}/TableCellHandleMenu/index.d.ts +0 -0
- /package/dist/{extension/component → features/table}/TableExtendButton/TableExtendButton.css +0 -0
- /package/dist/{extension/component → features/table}/TableExtendButton/use-table-extend-row-column.d.ts +0 -0
- /package/dist/{extension/component → features/table}/TableExtendButton/use-table-extend-row-column.js +0 -0
- /package/dist/{extension/component → features/table}/TableHandle/TableHandleMenu.css +0 -0
- /package/dist/{extension/component → features/table}/TableHandle/use-table-handle-positioning.d.ts +0 -0
- /package/dist/{extension/component → features/table}/TableHandle/use-table-handle-state.js +0 -0
- /package/dist/{extension/component → features/table}/TableSelectionOverlay/index.d.ts +0 -0
- /package/dist/{extension/node/TableHandler → features/table/plugin}/create-image.d.ts +0 -0
- /package/dist/{extension/node/TableHandler → features/table/plugin}/create-image.js +0 -0
- /package/dist/{type → types}/index.d.ts +0 -0
- /package/dist/{util → utils}/decorations.d.ts +0 -0
- /package/dist/{util → utils}/decorations.js +0 -0
- /package/dist/{util → utils}/fileDownload.d.ts +0 -0
- /package/dist/{util → utils}/fileDownload.js +0 -0
- /package/dist/{util → utils}/floating.d.ts +0 -0
- /package/dist/{util → utils}/floating.js +0 -0
- /package/dist/{util → utils}/linewiseConvert.d.ts +0 -0
- /package/dist/{util → utils}/linewiseConvert.js +0 -0
- /package/dist/{util → utils}/shortcutKey.d.ts +0 -0
- /package/dist/{util → utils}/structuredDiff.d.ts +0 -0
- /package/dist/{util → utils}/structuredDiff.js +0 -0
- /package/dist/{util → utils}/table-utils.d.ts +0 -0
- /package/dist/{util → utils}/table-utils.js +0 -0
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
2
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { AlignBottomIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignRightIcon, AlignTopIcon, BrushLineIcon } from "../../../components/Icons";
|
|
8
|
+
import { getThemeTextBgColor, getThemeTextColor } from "../../../constants/enums";
|
|
9
|
+
import { Box, Divider, Typography } from '@mui/material';
|
|
10
|
+
import { TextSelection } from '@tiptap/pm/state';
|
|
11
|
+
import { CellSelection, cellAround } from '@tiptap/pm/tables';
|
|
12
|
+
import React from 'react';
|
|
13
|
+
var deferTableAction = function deferTableAction(editor, action, beforeApply) {
|
|
14
|
+
if (!editor) return;
|
|
15
|
+
beforeApply === null || beforeApply === void 0 || beforeApply();
|
|
16
|
+
window.setTimeout(function () {
|
|
17
|
+
if (editor.isDestroyed) return;
|
|
18
|
+
action();
|
|
19
|
+
}, 0);
|
|
20
|
+
};
|
|
21
|
+
var createMenuSectionLabel = function createMenuSectionLabel(key, label) {
|
|
22
|
+
return {
|
|
23
|
+
key: key,
|
|
24
|
+
customLabel: /*#__PURE__*/React.createElement(Typography, {
|
|
25
|
+
sx: {
|
|
26
|
+
p: 1,
|
|
27
|
+
fontSize: '0.75rem',
|
|
28
|
+
color: 'text.secondary',
|
|
29
|
+
fontWeight: 'bold'
|
|
30
|
+
}
|
|
31
|
+
}, label)
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
export var createTableMenuDivider = function createTableMenuDivider(key) {
|
|
35
|
+
return {
|
|
36
|
+
key: key,
|
|
37
|
+
customLabel: /*#__PURE__*/React.createElement(Divider, {
|
|
38
|
+
sx: {
|
|
39
|
+
my: 0.5
|
|
40
|
+
}
|
|
41
|
+
})
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
var createColorIcon = function createColorIcon(color, theme, withTransparentBorder) {
|
|
45
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
46
|
+
sx: {
|
|
47
|
+
width: '1rem',
|
|
48
|
+
height: '1rem',
|
|
49
|
+
borderRadius: '50%',
|
|
50
|
+
bgcolor: color,
|
|
51
|
+
border: '1px solid',
|
|
52
|
+
borderColor: withTransparentBorder ? color === theme.palette.common.white ? 'divider' : 'transparent' : 'divider'
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
var applyTextColorToTableSelection = function applyTextColorToTableSelection(editor, color, beforeApply) {
|
|
57
|
+
if (!editor) return;
|
|
58
|
+
if (editor.state.storedMarks) {
|
|
59
|
+
var textStyleMarkType = editor.schema.marks.textStyle;
|
|
60
|
+
if (textStyleMarkType) {
|
|
61
|
+
editor.view.dispatch(editor.state.tr.removeStoredMark(textStyleMarkType));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
deferTableAction(editor, function () {
|
|
65
|
+
var _editor$state = editor.state,
|
|
66
|
+
selection = _editor$state.selection,
|
|
67
|
+
doc = _editor$state.doc;
|
|
68
|
+
var textStyleMark = editor.schema.marks.textStyle;
|
|
69
|
+
if (!textStyleMark) return;
|
|
70
|
+
if (selection instanceof CellSelection) {
|
|
71
|
+
var tr = editor.state.tr;
|
|
72
|
+
var hasContent = false;
|
|
73
|
+
selection.forEachCell(function (cellNode, cellPos) {
|
|
74
|
+
if (cellNode.content.size === 0) return;
|
|
75
|
+
var from = cellPos + 1;
|
|
76
|
+
var to = cellPos + cellNode.nodeSize - 1;
|
|
77
|
+
if (from >= to) return;
|
|
78
|
+
hasContent = true;
|
|
79
|
+
var mark = textStyleMark.create({
|
|
80
|
+
color: color
|
|
81
|
+
});
|
|
82
|
+
tr = tr.addMark(from, to, mark);
|
|
83
|
+
});
|
|
84
|
+
if (hasContent) {
|
|
85
|
+
editor.view.dispatch(tr);
|
|
86
|
+
editor.commands.focus();
|
|
87
|
+
}
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
var $anchor = selection.$anchor;
|
|
91
|
+
var cell = cellAround($anchor);
|
|
92
|
+
if (cell) {
|
|
93
|
+
var cellNode = doc.nodeAt(cell.pos);
|
|
94
|
+
if (cellNode && cellNode.content.size > 0) {
|
|
95
|
+
var from = cell.pos + 1;
|
|
96
|
+
var to = cell.pos + cellNode.nodeSize - 1;
|
|
97
|
+
if (from < to) {
|
|
98
|
+
var $from = doc.resolve(from);
|
|
99
|
+
var $to = doc.resolve(to);
|
|
100
|
+
var newSelection = TextSelection.between($from, $to, 1);
|
|
101
|
+
if (newSelection) {
|
|
102
|
+
editor.view.dispatch(editor.state.tr.setSelection(newSelection));
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
editor.chain().focus().toggleMark('textStyle', {
|
|
108
|
+
color: color
|
|
109
|
+
}).run();
|
|
110
|
+
}, beforeApply);
|
|
111
|
+
};
|
|
112
|
+
var applyCellAttribute = function applyCellAttribute(editor, attribute, value, beforeApply) {
|
|
113
|
+
if (!editor) return;
|
|
114
|
+
deferTableAction(editor, function () {
|
|
115
|
+
editor.chain().focus().setCellAttribute(attribute, value).run();
|
|
116
|
+
}, beforeApply);
|
|
117
|
+
};
|
|
118
|
+
export var buildTableColorMenu = function buildTableColorMenu(_ref) {
|
|
119
|
+
var editor = _ref.editor,
|
|
120
|
+
theme = _ref.theme,
|
|
121
|
+
beforeApply = _ref.beforeApply;
|
|
122
|
+
return {
|
|
123
|
+
key: 'color',
|
|
124
|
+
label: '颜色',
|
|
125
|
+
icon: /*#__PURE__*/React.createElement(BrushLineIcon, {
|
|
126
|
+
sx: {
|
|
127
|
+
fontSize: '1rem'
|
|
128
|
+
}
|
|
129
|
+
}),
|
|
130
|
+
children: [createMenuSectionLabel('text-color', '文字颜色')].concat(_toConsumableArray(getThemeTextColor(theme).map(function (it) {
|
|
131
|
+
return {
|
|
132
|
+
key: "text-color-".concat(it.value),
|
|
133
|
+
label: it.label,
|
|
134
|
+
icon: createColorIcon(it.value, theme, true),
|
|
135
|
+
onClick: function onClick() {
|
|
136
|
+
return applyTextColorToTableSelection(editor, it.value, beforeApply);
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
})), [createMenuSectionLabel('background-color', '背景颜色')], _toConsumableArray(getThemeTextBgColor(theme).map(function (it) {
|
|
140
|
+
return {
|
|
141
|
+
key: "background-color-".concat(it.value),
|
|
142
|
+
label: it.label,
|
|
143
|
+
icon: createColorIcon(it.value, theme, false),
|
|
144
|
+
onClick: function onClick() {
|
|
145
|
+
var bgColor = it.value === 'transparent' || it.value === 'var(--mui-palette-background-paper)' ? 'transparent' : it.value;
|
|
146
|
+
applyCellAttribute(editor, 'bgcolor', bgColor, beforeApply);
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
})))
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export var buildTableAlignMenu = function buildTableAlignMenu(_ref2) {
|
|
153
|
+
var editor = _ref2.editor,
|
|
154
|
+
beforeApply = _ref2.beforeApply;
|
|
155
|
+
return {
|
|
156
|
+
key: 'align',
|
|
157
|
+
label: '对齐方式',
|
|
158
|
+
icon: /*#__PURE__*/React.createElement(AlignLeftIcon, {
|
|
159
|
+
sx: {
|
|
160
|
+
fontSize: '1rem'
|
|
161
|
+
}
|
|
162
|
+
}),
|
|
163
|
+
children: [createMenuSectionLabel('align-horizontal', '水平对齐方式'), {
|
|
164
|
+
key: 'align-horizontal-left',
|
|
165
|
+
label: '左侧对齐',
|
|
166
|
+
icon: /*#__PURE__*/React.createElement(AlignLeftIcon, {
|
|
167
|
+
sx: {
|
|
168
|
+
fontSize: '1rem'
|
|
169
|
+
}
|
|
170
|
+
}),
|
|
171
|
+
onClick: function onClick() {
|
|
172
|
+
return applyCellAttribute(editor, 'textAlign', 'left', beforeApply);
|
|
173
|
+
}
|
|
174
|
+
}, {
|
|
175
|
+
key: 'align-horizontal-center',
|
|
176
|
+
label: '居中对齐',
|
|
177
|
+
icon: /*#__PURE__*/React.createElement(AlignCenterIcon, {
|
|
178
|
+
sx: {
|
|
179
|
+
fontSize: '1rem'
|
|
180
|
+
}
|
|
181
|
+
}),
|
|
182
|
+
onClick: function onClick() {
|
|
183
|
+
return applyCellAttribute(editor, 'textAlign', 'center', beforeApply);
|
|
184
|
+
}
|
|
185
|
+
}, {
|
|
186
|
+
key: 'align-horizontal-right',
|
|
187
|
+
label: '右侧对齐',
|
|
188
|
+
icon: /*#__PURE__*/React.createElement(AlignRightIcon, {
|
|
189
|
+
sx: {
|
|
190
|
+
fontSize: '1rem'
|
|
191
|
+
}
|
|
192
|
+
}),
|
|
193
|
+
onClick: function onClick() {
|
|
194
|
+
return applyCellAttribute(editor, 'textAlign', 'right', beforeApply);
|
|
195
|
+
}
|
|
196
|
+
}, {
|
|
197
|
+
key: 'align-horizontal-justify',
|
|
198
|
+
label: '两端对齐',
|
|
199
|
+
icon: /*#__PURE__*/React.createElement(AlignJustifyIcon, {
|
|
200
|
+
sx: {
|
|
201
|
+
fontSize: '1rem'
|
|
202
|
+
}
|
|
203
|
+
}),
|
|
204
|
+
onClick: function onClick() {
|
|
205
|
+
return applyCellAttribute(editor, 'textAlign', 'justify', beforeApply);
|
|
206
|
+
}
|
|
207
|
+
}, createMenuSectionLabel('align-vertical', '垂直对齐方式'), {
|
|
208
|
+
key: 'align-vertical-top',
|
|
209
|
+
label: '顶部对齐',
|
|
210
|
+
icon: /*#__PURE__*/React.createElement(AlignTopIcon, {
|
|
211
|
+
sx: {
|
|
212
|
+
fontSize: '1rem'
|
|
213
|
+
}
|
|
214
|
+
}),
|
|
215
|
+
onClick: function onClick() {
|
|
216
|
+
return applyCellAttribute(editor, 'verticalAlign', 'top', beforeApply);
|
|
217
|
+
}
|
|
218
|
+
}, {
|
|
219
|
+
key: 'align-vertical-center',
|
|
220
|
+
label: '居中对齐',
|
|
221
|
+
icon: /*#__PURE__*/React.createElement(AlignCenterIcon, {
|
|
222
|
+
sx: {
|
|
223
|
+
fontSize: '1rem'
|
|
224
|
+
}
|
|
225
|
+
}),
|
|
226
|
+
onClick: function onClick() {
|
|
227
|
+
return applyCellAttribute(editor, 'verticalAlign', 'middle', beforeApply);
|
|
228
|
+
}
|
|
229
|
+
}, {
|
|
230
|
+
key: 'align-vertical-bottom',
|
|
231
|
+
label: '底部对齐',
|
|
232
|
+
icon: /*#__PURE__*/React.createElement(AlignBottomIcon, {
|
|
233
|
+
sx: {
|
|
234
|
+
fontSize: '1rem'
|
|
235
|
+
}
|
|
236
|
+
}),
|
|
237
|
+
onClick: function onClick() {
|
|
238
|
+
return applyCellAttribute(editor, 'verticalAlign', 'bottom', beforeApply);
|
|
239
|
+
}
|
|
240
|
+
}]
|
|
241
|
+
};
|
|
242
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Node } from '@tiptap/pm/model';
|
|
2
|
+
import type { Editor } from '@tiptap/react';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import type { Orientation } from '../../../utils/table';
|
|
5
|
+
interface TableHandleGroupProps {
|
|
6
|
+
editor: Editor;
|
|
7
|
+
orientation: Orientation;
|
|
8
|
+
index?: number;
|
|
9
|
+
tablePos?: number;
|
|
10
|
+
tableNode?: Node;
|
|
11
|
+
onToggleOtherHandle?: (visible: boolean) => void;
|
|
12
|
+
onOpenChange?: (open: boolean) => void;
|
|
13
|
+
dragStart?: (e: React.DragEvent) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function TableHandleGroup({ editor, orientation, index, tablePos, tableNode, onToggleOtherHandle, onOpenChange, dragStart, }: TableHandleGroupProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TableHandleAddButton } from "./TableHandleAddButton";
|
|
3
|
+
import { TableHandleMenu } from "./TableHandleMenu";
|
|
4
|
+
export function TableHandleGroup(_ref) {
|
|
5
|
+
var editor = _ref.editor,
|
|
6
|
+
orientation = _ref.orientation,
|
|
7
|
+
index = _ref.index,
|
|
8
|
+
tablePos = _ref.tablePos,
|
|
9
|
+
tableNode = _ref.tableNode,
|
|
10
|
+
onToggleOtherHandle = _ref.onToggleOtherHandle,
|
|
11
|
+
onOpenChange = _ref.onOpenChange,
|
|
12
|
+
dragStart = _ref.dragStart;
|
|
13
|
+
if (orientation === 'row') {
|
|
14
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
15
|
+
style: {
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'column',
|
|
18
|
+
gap: '0.125rem',
|
|
19
|
+
width: '0.75rem',
|
|
20
|
+
height: 'var(--table-handle-ref-height, 40px)'
|
|
21
|
+
}
|
|
22
|
+
}, /*#__PURE__*/React.createElement(TableHandleAddButton, {
|
|
23
|
+
editor: editor,
|
|
24
|
+
orientation: "row",
|
|
25
|
+
index: index,
|
|
26
|
+
tablePos: tablePos,
|
|
27
|
+
tableNode: tableNode,
|
|
28
|
+
direction: "before"
|
|
29
|
+
}), /*#__PURE__*/React.createElement(TableHandleMenu, {
|
|
30
|
+
editor: editor,
|
|
31
|
+
orientation: "row",
|
|
32
|
+
index: index,
|
|
33
|
+
tablePos: tablePos,
|
|
34
|
+
tableNode: tableNode,
|
|
35
|
+
onToggleOtherHandle: onToggleOtherHandle,
|
|
36
|
+
dragStart: dragStart,
|
|
37
|
+
onOpenChange: onOpenChange
|
|
38
|
+
}), /*#__PURE__*/React.createElement(TableHandleAddButton, {
|
|
39
|
+
editor: editor,
|
|
40
|
+
orientation: "row",
|
|
41
|
+
index: index,
|
|
42
|
+
tablePos: tablePos,
|
|
43
|
+
tableNode: tableNode,
|
|
44
|
+
direction: "after"
|
|
45
|
+
}));
|
|
46
|
+
}
|
|
47
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
style: {
|
|
49
|
+
display: 'flex',
|
|
50
|
+
flexDirection: 'row',
|
|
51
|
+
gap: '0.125rem',
|
|
52
|
+
height: '0.75rem',
|
|
53
|
+
width: 'var(--table-handle-ref-width, 100px)'
|
|
54
|
+
}
|
|
55
|
+
}, /*#__PURE__*/React.createElement(TableHandleAddButton, {
|
|
56
|
+
editor: editor,
|
|
57
|
+
orientation: "column",
|
|
58
|
+
index: index,
|
|
59
|
+
tablePos: tablePos,
|
|
60
|
+
tableNode: tableNode,
|
|
61
|
+
direction: "before"
|
|
62
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
style: {
|
|
64
|
+
flex: 1,
|
|
65
|
+
minWidth: 0
|
|
66
|
+
}
|
|
67
|
+
}, /*#__PURE__*/React.createElement(TableHandleMenu, {
|
|
68
|
+
editor: editor,
|
|
69
|
+
orientation: "column",
|
|
70
|
+
index: index,
|
|
71
|
+
tablePos: tablePos,
|
|
72
|
+
tableNode: tableNode,
|
|
73
|
+
onToggleOtherHandle: onToggleOtherHandle,
|
|
74
|
+
dragStart: dragStart,
|
|
75
|
+
onOpenChange: onOpenChange
|
|
76
|
+
})), /*#__PURE__*/React.createElement(TableHandleAddButton, {
|
|
77
|
+
editor: editor,
|
|
78
|
+
orientation: "column",
|
|
79
|
+
index: index,
|
|
80
|
+
tablePos: tablePos,
|
|
81
|
+
tableNode: tableNode,
|
|
82
|
+
direction: "after"
|
|
83
|
+
}));
|
|
84
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { offset, size, useFloating, useTransitionStyles } from '@floating-ui/react';
|
|
8
|
+
import { useEffect, useMemo } from 'react';
|
|
9
|
+
import { clamp } from "../../../utils/table";
|
|
10
|
+
/** 创建行手柄的参考 DOMRect,贴边并与单元格对齐 */
|
|
11
|
+
function makeRowRect(cell, table, dragging) {
|
|
12
|
+
var _dragging$initialOffs;
|
|
13
|
+
var baseY = (dragging === null || dragging === void 0 ? void 0 : dragging.draggedCellOrientation) === 'row' ? clamp(dragging.mousePos + ((_dragging$initialOffs = dragging.initialOffset) !== null && _dragging$initialOffs !== void 0 ? _dragging$initialOffs : 0), table.y, table.bottom - cell.height) : cell.y;
|
|
14
|
+
|
|
15
|
+
// 行手柄沿整行宽度,高度保持单元格高度
|
|
16
|
+
return new DOMRect(table.x, baseY, table.width, cell.height);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/** 创建列手柄的参考 DOMRect,贴边并与单元格对齐 */
|
|
20
|
+
function makeColRect(cell, table, dragging) {
|
|
21
|
+
var _dragging$initialOffs2;
|
|
22
|
+
var baseX = (dragging === null || dragging === void 0 ? void 0 : dragging.draggedCellOrientation) === 'col' ? clamp(dragging.mousePos + ((_dragging$initialOffs2 = dragging.initialOffset) !== null && _dragging$initialOffs2 !== void 0 ? _dragging$initialOffs2 : 0), table.x, table.right - cell.width) : cell.x;
|
|
23
|
+
|
|
24
|
+
// 列手柄宽度保持单元格宽度,高度沿整列
|
|
25
|
+
return new DOMRect(baseX, table.y, cell.width, table.height);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/** 创建单元格手柄的参考 DOMRect */
|
|
29
|
+
function makeCellRect(cell) {
|
|
30
|
+
return new DOMRect(cell.x, cell.y, cell.width, 0);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/** 根据手柄方向获取浮层位置 */
|
|
34
|
+
function getPlacement(orientation) {
|
|
35
|
+
switch (orientation) {
|
|
36
|
+
case 'row':
|
|
37
|
+
return 'left';
|
|
38
|
+
case 'col':
|
|
39
|
+
return 'top';
|
|
40
|
+
case 'cell':
|
|
41
|
+
default:
|
|
42
|
+
return 'bottom-end';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** 根据手柄方向获取偏移配置 */
|
|
47
|
+
function getOffset(orientation) {
|
|
48
|
+
switch (orientation) {
|
|
49
|
+
case 'row':
|
|
50
|
+
return 4;
|
|
51
|
+
case 'col':
|
|
52
|
+
return 4;
|
|
53
|
+
case 'cell':
|
|
54
|
+
default:
|
|
55
|
+
return {
|
|
56
|
+
mainAxis: 1,
|
|
57
|
+
crossAxis: -1
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/** 按方向生成对应的参考 DOMRect */
|
|
63
|
+
function rectFactory(orientation, cell, table, dragging) {
|
|
64
|
+
switch (orientation) {
|
|
65
|
+
case 'row':
|
|
66
|
+
return makeRowRect(cell, table, dragging);
|
|
67
|
+
case 'col':
|
|
68
|
+
return makeColRect(cell, table, dragging);
|
|
69
|
+
case 'cell':
|
|
70
|
+
default:
|
|
71
|
+
return makeCellRect(cell);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/** 基于 Floating UI 定位单个表格手柄的 Hook */
|
|
76
|
+
export function useTableHandlePosition(orientation, show, referencePosCell, referencePosTable, draggingState) {
|
|
77
|
+
var placement = useMemo(function () {
|
|
78
|
+
return getPlacement(orientation);
|
|
79
|
+
}, [orientation]);
|
|
80
|
+
var offsetValue = useMemo(function () {
|
|
81
|
+
return getOffset(orientation);
|
|
82
|
+
}, [orientation]);
|
|
83
|
+
var _useFloating = useFloating({
|
|
84
|
+
open: show,
|
|
85
|
+
placement: placement,
|
|
86
|
+
middleware: [offset(offsetValue), size({
|
|
87
|
+
apply: function apply(_ref) {
|
|
88
|
+
var _ref2, _referencePosTable$wi, _referencePosTable$wi2, _ref3, _referencePosTable$he, _referencePosTable$he2;
|
|
89
|
+
var rects = _ref.rects,
|
|
90
|
+
elements = _ref.elements;
|
|
91
|
+
if (!elements.floating) return;
|
|
92
|
+
var refWidth = (_ref2 = orientation === 'col' ? (_referencePosTable$wi = referencePosTable === null || referencePosTable === void 0 ? void 0 : referencePosTable.width) !== null && _referencePosTable$wi !== void 0 ? _referencePosTable$wi : referencePosCell === null || referencePosCell === void 0 ? void 0 : referencePosCell.width : (_referencePosTable$wi2 = referencePosTable === null || referencePosTable === void 0 ? void 0 : referencePosTable.width) !== null && _referencePosTable$wi2 !== void 0 ? _referencePosTable$wi2 : referencePosCell === null || referencePosCell === void 0 ? void 0 : referencePosCell.width) !== null && _ref2 !== void 0 ? _ref2 : rects.reference.width;
|
|
93
|
+
var refHeight = (_ref3 = orientation === 'row' ? (_referencePosTable$he = referencePosTable === null || referencePosTable === void 0 ? void 0 : referencePosTable.height) !== null && _referencePosTable$he !== void 0 ? _referencePosTable$he : referencePosCell === null || referencePosCell === void 0 ? void 0 : referencePosCell.height : (_referencePosTable$he2 = referencePosTable === null || referencePosTable === void 0 ? void 0 : referencePosTable.height) !== null && _referencePosTable$he2 !== void 0 ? _referencePosTable$he2 : referencePosCell === null || referencePosCell === void 0 ? void 0 : referencePosCell.height) !== null && _ref3 !== void 0 ? _ref3 : rects.reference.height;
|
|
94
|
+
|
|
95
|
+
// 将尺寸写入 CSS 变量,便于样式使用
|
|
96
|
+
elements.floating.style.setProperty('--table-handle-ref-width', "".concat(refWidth, "px"));
|
|
97
|
+
elements.floating.style.setProperty('--table-handle-ref-height', "".concat(refHeight, "px"));
|
|
98
|
+
|
|
99
|
+
// 主尺寸随方向切换,行取高度、列取宽度
|
|
100
|
+
var mainSize = orientation === 'row' ? refHeight : refWidth;
|
|
101
|
+
elements.floating.style.setProperty('--table-handle-available-size', "".concat(mainSize, "px"));
|
|
102
|
+
}
|
|
103
|
+
})]
|
|
104
|
+
}),
|
|
105
|
+
refs = _useFloating.refs,
|
|
106
|
+
update = _useFloating.update,
|
|
107
|
+
context = _useFloating.context,
|
|
108
|
+
floatingStyles = _useFloating.floatingStyles;
|
|
109
|
+
var _useTransitionStyles = useTransitionStyles(context),
|
|
110
|
+
isMounted = _useTransitionStyles.isMounted,
|
|
111
|
+
styles = _useTransitionStyles.styles;
|
|
112
|
+
|
|
113
|
+
// 为 Floating UI 提供虚拟参考矩形;使用闭包拿最新值以保证 autoUpdate 生效
|
|
114
|
+
useEffect(function () {
|
|
115
|
+
// 尚无参考节点
|
|
116
|
+
if (!referencePosCell || !referencePosTable) {
|
|
117
|
+
refs.setReference(null);
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// 拖动时隐藏单元格手柄(保持与原行为一致)
|
|
122
|
+
if (draggingState && orientation === 'cell') {
|
|
123
|
+
refs.setReference(null);
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// 创建返回最新矩形的虚拟元素,保证滚动时位置能自动更新
|
|
128
|
+
refs.setReference({
|
|
129
|
+
getBoundingClientRect: function getBoundingClientRect() {
|
|
130
|
+
if (!referencePosCell || !referencePosTable) {
|
|
131
|
+
return new DOMRect();
|
|
132
|
+
}
|
|
133
|
+
return rectFactory(orientation, referencePosCell, referencePosTable, draggingState);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}, [refs, orientation, referencePosCell, referencePosTable, draggingState]);
|
|
137
|
+
|
|
138
|
+
// 参考位置变化时更新浮层
|
|
139
|
+
useEffect(function () {
|
|
140
|
+
if (!show || !referencePosCell || !referencePosTable) return;
|
|
141
|
+
update();
|
|
142
|
+
}, [update, show, orientation, referencePosCell, referencePosTable, draggingState]);
|
|
143
|
+
return useMemo(function () {
|
|
144
|
+
return {
|
|
145
|
+
isMounted: isMounted,
|
|
146
|
+
ref: refs.setFloating,
|
|
147
|
+
style: _objectSpread(_objectSpread({
|
|
148
|
+
display: 'flex'
|
|
149
|
+
}, styles), floatingStyles)
|
|
150
|
+
};
|
|
151
|
+
}, [isMounted, refs.setFloating, styles, floatingStyles]);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/** 统一返回行、列、单元格手柄的位置数据 */
|
|
155
|
+
export function useTableHandlePositioning(show, referencePosCell, referencePosTable, draggingState) {
|
|
156
|
+
var rowHandle = useTableHandlePosition('row', show, referencePosCell, referencePosTable, draggingState);
|
|
157
|
+
var colHandle = useTableHandlePosition('col', show, referencePosCell, referencePosTable, draggingState);
|
|
158
|
+
var cellHandle = useTableHandlePosition('cell', show, referencePosCell, referencePosTable, draggingState);
|
|
159
|
+
return useMemo(function () {
|
|
160
|
+
return {
|
|
161
|
+
rowHandle: rowHandle,
|
|
162
|
+
colHandle: colHandle,
|
|
163
|
+
cellHandle: cellHandle
|
|
164
|
+
};
|
|
165
|
+
}, [rowHandle, colHandle, cellHandle]);
|
|
166
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/react';
|
|
2
|
+
import type { TableHandlesState } from '../plugin/shared';
|
|
3
|
+
export interface UseTableHandleStateConfig {
|
|
4
|
+
/** Tiptap 编辑器实例;未传则使用外部上下文中的 editor */
|
|
5
|
+
editor?: Editor | null;
|
|
6
|
+
/** 手柄的初始状态 */
|
|
7
|
+
initialState?: TableHandlesState | null;
|
|
8
|
+
/** 仅在特定字段变动时触发更新 */
|
|
9
|
+
watchFields?: (keyof TableHandlesState)[];
|
|
10
|
+
/** 状态变更回调 */
|
|
11
|
+
onStateChange?: (state: TableHandlesState | null) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function useTableHandleState(config?: UseTableHandleStateConfig): TableHandlesState | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type TableHandleMenuType = 'row' | 'column';
|
|
2
|
+
export declare function useTableHandleVisibility({ hasValidRowIndex, hasValidColIndex, rowMounted, colMounted, }: {
|
|
3
|
+
hasValidRowIndex: boolean;
|
|
4
|
+
hasValidColIndex: boolean;
|
|
5
|
+
rowMounted: boolean;
|
|
6
|
+
colMounted: boolean;
|
|
7
|
+
}): {
|
|
8
|
+
shouldShowRow: boolean;
|
|
9
|
+
shouldShowColumn: boolean;
|
|
10
|
+
toggleRowVisibility: (visible: boolean) => void;
|
|
11
|
+
toggleColumnVisibility: (visible: boolean) => void;
|
|
12
|
+
handleMenuOpenChange: (type: TableHandleMenuType, open: boolean) => void;
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useCallback, useMemo, useState } from 'react';
|
|
8
|
+
export function useTableHandleVisibility(_ref) {
|
|
9
|
+
var hasValidRowIndex = _ref.hasValidRowIndex,
|
|
10
|
+
hasValidColIndex = _ref.hasValidColIndex,
|
|
11
|
+
rowMounted = _ref.rowMounted,
|
|
12
|
+
colMounted = _ref.colMounted;
|
|
13
|
+
var _useState = useState(true),
|
|
14
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15
|
+
isRowVisible = _useState2[0],
|
|
16
|
+
setIsRowVisible = _useState2[1];
|
|
17
|
+
var _useState3 = useState(true),
|
|
18
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19
|
+
isColumnVisible = _useState4[0],
|
|
20
|
+
setIsColumnVisible = _useState4[1];
|
|
21
|
+
var _useState5 = useState(null),
|
|
22
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
23
|
+
menuOpen = _useState6[0],
|
|
24
|
+
setMenuOpen = _useState6[1];
|
|
25
|
+
var toggleRowVisibility = useCallback(function (visible) {
|
|
26
|
+
setIsRowVisible(visible);
|
|
27
|
+
}, []);
|
|
28
|
+
var toggleColumnVisibility = useCallback(function (visible) {
|
|
29
|
+
setIsColumnVisible(visible);
|
|
30
|
+
}, []);
|
|
31
|
+
var handleMenuOpenChange = useCallback(function (type, open) {
|
|
32
|
+
setMenuOpen(open ? type : null);
|
|
33
|
+
}, []);
|
|
34
|
+
var shouldShowRow = useMemo(function () {
|
|
35
|
+
return isRowVisible && rowMounted && hasValidRowIndex || menuOpen === 'row';
|
|
36
|
+
}, [hasValidRowIndex, isRowVisible, menuOpen, rowMounted]);
|
|
37
|
+
var shouldShowColumn = useMemo(function () {
|
|
38
|
+
return isColumnVisible && colMounted && hasValidColIndex || menuOpen === 'column';
|
|
39
|
+
}, [colMounted, hasValidColIndex, isColumnVisible, menuOpen]);
|
|
40
|
+
return {
|
|
41
|
+
shouldShowRow: shouldShowRow,
|
|
42
|
+
shouldShowColumn: shouldShowColumn,
|
|
43
|
+
toggleRowVisibility: toggleRowVisibility,
|
|
44
|
+
toggleColumnVisibility: toggleColumnVisibility,
|
|
45
|
+
handleMenuOpenChange: handleMenuOpenChange
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/react';
|
|
2
|
+
interface UseTableMenuOpenOptions {
|
|
3
|
+
editor?: Editor | null;
|
|
4
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
5
|
+
onOpen?: () => void;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function useTableMenuOpen({ editor, onOpenChange, onOpen, onClose, }: UseTableMenuOpenOptions): {
|
|
9
|
+
isMenuOpen: boolean;
|
|
10
|
+
handleMenuToggle: (isOpen: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
8
|
+
export function useTableMenuOpen(_ref) {
|
|
9
|
+
var editor = _ref.editor,
|
|
10
|
+
onOpenChange = _ref.onOpenChange,
|
|
11
|
+
onOpen = _ref.onOpen,
|
|
12
|
+
onClose = _ref.onClose;
|
|
13
|
+
var _useState = useState(false),
|
|
14
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
15
|
+
isMenuOpen = _useState2[0],
|
|
16
|
+
setIsMenuOpen = _useState2[1];
|
|
17
|
+
var handleMenuToggle = useCallback(function (isOpen) {
|
|
18
|
+
setIsMenuOpen(isOpen);
|
|
19
|
+
if (editor) {
|
|
20
|
+
if (isOpen) {
|
|
21
|
+
editor.commands.freezeHandles();
|
|
22
|
+
} else {
|
|
23
|
+
editor.commands.unfreezeHandles();
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (isOpen) {
|
|
27
|
+
onOpen === null || onOpen === void 0 || onOpen();
|
|
28
|
+
} else {
|
|
29
|
+
onClose === null || onClose === void 0 || onClose();
|
|
30
|
+
}
|
|
31
|
+
}, [editor, onClose, onOpen]);
|
|
32
|
+
useEffect(function () {
|
|
33
|
+
onOpenChange === null || onOpenChange === void 0 || onOpenChange(isMenuOpen);
|
|
34
|
+
}, [isMenuOpen, onOpenChange]);
|
|
35
|
+
return {
|
|
36
|
+
isMenuOpen: isMenuOpen,
|
|
37
|
+
handleMenuToggle: handleMenuToggle
|
|
38
|
+
};
|
|
39
|
+
}
|