@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
|
@@ -1,602 +0,0 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw new Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw new Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
|
-
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
-
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."); }
|
|
5
|
-
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); }
|
|
6
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
7
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
8
|
-
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; }
|
|
9
|
-
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; }
|
|
10
|
-
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; }
|
|
11
|
-
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; }
|
|
12
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
13
|
-
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); }
|
|
14
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
15
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
16
|
-
import { getFileType, removeBaseUrl, withBaseUrl } from "../../util";
|
|
17
|
-
import Image from "@tiptap/extension-image";
|
|
18
|
-
import { generateJSON } from "@tiptap/html";
|
|
19
|
-
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
20
|
-
import { ReactNodeViewRenderer } from "@tiptap/react";
|
|
21
|
-
import ImageViewWrapper, { getImageDimensionsFromFile } from "../component/Image";
|
|
22
|
-
function downloadImageAsFile(_x, _x2) {
|
|
23
|
-
return _downloadImageAsFile.apply(this, arguments);
|
|
24
|
-
}
|
|
25
|
-
/** 解码 HTML 实体 */
|
|
26
|
-
function _downloadImageAsFile() {
|
|
27
|
-
_downloadImageAsFile = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(url, index) {
|
|
28
|
-
var response, blob, fileName, file;
|
|
29
|
-
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
30
|
-
while (1) switch (_context5.prev = _context5.next) {
|
|
31
|
-
case 0:
|
|
32
|
-
_context5.prev = 0;
|
|
33
|
-
_context5.next = 3;
|
|
34
|
-
return fetch(url, {
|
|
35
|
-
mode: 'cors',
|
|
36
|
-
credentials: 'omit'
|
|
37
|
-
});
|
|
38
|
-
case 3:
|
|
39
|
-
response = _context5.sent;
|
|
40
|
-
if (response.ok) {
|
|
41
|
-
_context5.next = 11;
|
|
42
|
-
break;
|
|
43
|
-
}
|
|
44
|
-
_context5.next = 7;
|
|
45
|
-
return fetch(url, {
|
|
46
|
-
mode: 'no-cors'
|
|
47
|
-
});
|
|
48
|
-
case 7:
|
|
49
|
-
response = _context5.sent;
|
|
50
|
-
if (!(response.type === 'opaque')) {
|
|
51
|
-
_context5.next = 11;
|
|
52
|
-
break;
|
|
53
|
-
}
|
|
54
|
-
console.error("[\u56FE\u7247\u4E0B\u8F7D] \u56FE\u7247 ".concat(index + 1, " \u88ABCORS\u963B\u6B62\uFF0C\u65E0\u6CD5\u4E0B\u8F7D"));
|
|
55
|
-
return _context5.abrupt("return", null);
|
|
56
|
-
case 11:
|
|
57
|
-
_context5.next = 13;
|
|
58
|
-
return response.blob();
|
|
59
|
-
case 13:
|
|
60
|
-
blob = _context5.sent;
|
|
61
|
-
if (!(blob.size === 0)) {
|
|
62
|
-
_context5.next = 17;
|
|
63
|
-
break;
|
|
64
|
-
}
|
|
65
|
-
console.error("[\u56FE\u7247\u4E0B\u8F7D] \u56FE\u7247 ".concat(index + 1, " blob\u4E3A\u7A7A"));
|
|
66
|
-
return _context5.abrupt("return", null);
|
|
67
|
-
case 17:
|
|
68
|
-
fileName = "image-".concat(index + 1, ".").concat(blob.type.split('/')[1] || 'png');
|
|
69
|
-
file = new File([blob], fileName, {
|
|
70
|
-
type: blob.type
|
|
71
|
-
});
|
|
72
|
-
return _context5.abrupt("return", file);
|
|
73
|
-
case 22:
|
|
74
|
-
_context5.prev = 22;
|
|
75
|
-
_context5.t0 = _context5["catch"](0);
|
|
76
|
-
console.error("[\u56FE\u7247\u4E0B\u8F7D] \u56FE\u7247 ".concat(index + 1, " \u4E0B\u8F7D\u5F02\u5E38:"), _context5.t0);
|
|
77
|
-
return _context5.abrupt("return", null);
|
|
78
|
-
case 26:
|
|
79
|
-
case "end":
|
|
80
|
-
return _context5.stop();
|
|
81
|
-
}
|
|
82
|
-
}, _callee5, null, [[0, 22]]);
|
|
83
|
-
}));
|
|
84
|
-
return _downloadImageAsFile.apply(this, arguments);
|
|
85
|
-
}
|
|
86
|
-
function decodeHTMLEntities(text) {
|
|
87
|
-
var textarea = document.createElement('textarea');
|
|
88
|
-
textarea.innerHTML = text;
|
|
89
|
-
return textarea.value;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/** 从 HTML 中提取所有 img 标签的 src */
|
|
93
|
-
function extractImageUrls(html) {
|
|
94
|
-
var imgRegex = /<img[^>]+src=["']([^"']+)["'][^>]*>/gi;
|
|
95
|
-
var urls = [];
|
|
96
|
-
var match;
|
|
97
|
-
while ((match = imgRegex.exec(html)) !== null) {
|
|
98
|
-
var src = match[1];
|
|
99
|
-
// 解码HTML实体(如 & -> &)
|
|
100
|
-
src = decodeHTMLEntities(src);
|
|
101
|
-
// 过滤掉 base64 和无效 URL
|
|
102
|
-
if (src && !src.startsWith('data:') && (src.startsWith('http') || src.startsWith('//'))) {
|
|
103
|
-
urls.push(src.startsWith('//') ? "https:".concat(src) : src);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return urls;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** 在 JSON 结构中用 progress 节点替换 image 节点,按顺序匹配 Files */
|
|
110
|
-
function replaceImagesWithProgressNodes(node, imageFiles, fileIndex, tempIds) {
|
|
111
|
-
if (node.type === 'image' && fileIndex.current < imageFiles.length) {
|
|
112
|
-
var idx = fileIndex.current++;
|
|
113
|
-
var tempId = "upload-".concat(Date.now(), "-").concat(idx);
|
|
114
|
-
tempIds.push(tempId);
|
|
115
|
-
return {
|
|
116
|
-
type: 'inlineUploadProgress',
|
|
117
|
-
attrs: {
|
|
118
|
-
fileName: imageFiles[idx].name,
|
|
119
|
-
fileType: 'image',
|
|
120
|
-
progress: 0,
|
|
121
|
-
tempId: tempId
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
if (node.content && Array.isArray(node.content)) {
|
|
126
|
-
return _objectSpread(_objectSpread({}, node), {}, {
|
|
127
|
-
content: node.content.map(function (child) {
|
|
128
|
-
return replaceImagesWithProgressNodes(child, imageFiles, fileIndex, tempIds);
|
|
129
|
-
})
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
return node;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/** 在 doc 末尾追加多余的图片(当 Files 数量多于 HTML 中的 img 时) */
|
|
136
|
-
function appendExtraImagesToDoc(doc, imageFiles, startIndex, tempIds) {
|
|
137
|
-
var content = _toConsumableArray(doc.content || []);
|
|
138
|
-
for (var i = startIndex; i < imageFiles.length; i++) {
|
|
139
|
-
var tempId = "upload-".concat(Date.now(), "-").concat(i);
|
|
140
|
-
tempIds.push(tempId);
|
|
141
|
-
var progressNode = {
|
|
142
|
-
type: 'inlineUploadProgress',
|
|
143
|
-
attrs: {
|
|
144
|
-
fileName: imageFiles[i].name,
|
|
145
|
-
fileType: 'image',
|
|
146
|
-
progress: 0,
|
|
147
|
-
tempId: tempId
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
content.push({
|
|
151
|
-
type: 'paragraph',
|
|
152
|
-
content: [progressNode]
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return _objectSpread(_objectSpread({}, doc), {}, {
|
|
156
|
-
content: content
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
var customImage = function customImage(props) {
|
|
160
|
-
return Image.extend({
|
|
161
|
-
addAttributes: function addAttributes() {
|
|
162
|
-
var _this$parent;
|
|
163
|
-
return _objectSpread(_objectSpread({}, (_this$parent = this.parent) === null || _this$parent === void 0 ? void 0 : _this$parent.call(this)), {}, {
|
|
164
|
-
src: {
|
|
165
|
-
default: null,
|
|
166
|
-
parseHTML: function parseHTML(element) {
|
|
167
|
-
return withBaseUrl(element.getAttribute('src') || '', props.baseUrl);
|
|
168
|
-
},
|
|
169
|
-
renderHTML: function renderHTML(attributes) {
|
|
170
|
-
if (!attributes.src) return {};
|
|
171
|
-
return {
|
|
172
|
-
src: removeBaseUrl(attributes.src, props.baseUrl)
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
},
|
|
178
|
-
addKeyboardShortcuts: function addKeyboardShortcuts() {
|
|
179
|
-
var _this = this;
|
|
180
|
-
return {
|
|
181
|
-
'Mod-2': function Mod2() {
|
|
182
|
-
return _this.editor.commands.setImage({
|
|
183
|
-
src: '',
|
|
184
|
-
width: 760
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
};
|
|
188
|
-
},
|
|
189
|
-
addNodeView: function addNodeView() {
|
|
190
|
-
return ReactNodeViewRenderer(function (renderProps) {
|
|
191
|
-
return ImageViewWrapper(_objectSpread(_objectSpread({}, renderProps), {}, {
|
|
192
|
-
onUpload: props.onUpload,
|
|
193
|
-
onUploadImgUrl: props.onUploadImgUrl,
|
|
194
|
-
onError: props.onError,
|
|
195
|
-
onValidateUrl: props.onValidateUrl
|
|
196
|
-
}));
|
|
197
|
-
});
|
|
198
|
-
},
|
|
199
|
-
addProseMirrorPlugins: function addProseMirrorPlugins() {
|
|
200
|
-
var _this2 = this;
|
|
201
|
-
return [new Plugin({
|
|
202
|
-
key: new PluginKey('imagePasteHandler'),
|
|
203
|
-
props: {
|
|
204
|
-
handlePaste: function handlePaste(view, event) {
|
|
205
|
-
var _event$clipboardData, _event$clipboardData2, _event$clipboardData3;
|
|
206
|
-
if (!props.onUpload && !props.onUploadImgUrl) return false;
|
|
207
|
-
var items = Array.from(((_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.items) || []);
|
|
208
|
-
var imageFiles = items.map(function (item) {
|
|
209
|
-
return item.getAsFile();
|
|
210
|
-
}).filter(function (file) {
|
|
211
|
-
return file !== null && getFileType(file) === 'image';
|
|
212
|
-
});
|
|
213
|
-
var htmlData = (_event$clipboardData2 = event.clipboardData) === null || _event$clipboardData2 === void 0 ? void 0 : _event$clipboardData2.getData('text/html');
|
|
214
|
-
var plainText = (_event$clipboardData3 = event.clipboardData) === null || _event$clipboardData3 === void 0 ? void 0 : _event$clipboardData3.getData('text/plain');
|
|
215
|
-
var _view$state$selection = view.state.selection,
|
|
216
|
-
from = _view$state$selection.from,
|
|
217
|
-
to = _view$state$selection.to;
|
|
218
|
-
var editor = _this2.editor;
|
|
219
|
-
|
|
220
|
-
// 辅助函数:检查内容是否包含有效文本
|
|
221
|
-
var hasValidTextContent = function hasValidTextContent(content) {
|
|
222
|
-
var _content$some;
|
|
223
|
-
return (_content$some = content === null || content === void 0 ? void 0 : content.some(function (node) {
|
|
224
|
-
if (node.type === 'text' || node.text && node.text.trim()) {
|
|
225
|
-
return true;
|
|
226
|
-
}
|
|
227
|
-
if (node.content && Array.isArray(node.content)) {
|
|
228
|
-
return hasValidTextContent(node.content);
|
|
229
|
-
}
|
|
230
|
-
return false;
|
|
231
|
-
})) !== null && _content$some !== void 0 ? _content$some : false;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
// 辅助函数:插入纯文本内容
|
|
235
|
-
var insertPlainText = function insertPlainText(text) {
|
|
236
|
-
event.preventDefault();
|
|
237
|
-
editor.chain().insertContentAt({
|
|
238
|
-
from: from,
|
|
239
|
-
to: to
|
|
240
|
-
}, {
|
|
241
|
-
type: 'doc',
|
|
242
|
-
content: [{
|
|
243
|
-
type: 'paragraph',
|
|
244
|
-
content: [{
|
|
245
|
-
type: 'text',
|
|
246
|
-
text: text
|
|
247
|
-
}]
|
|
248
|
-
}]
|
|
249
|
-
}).focus().run();
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
// 定义辅助函数
|
|
253
|
-
var findNodePosition = function findNodePosition(typeName, tempId) {
|
|
254
|
-
var targetPos = null;
|
|
255
|
-
editor.state.doc.descendants(function (node, position) {
|
|
256
|
-
if (node.type.name === typeName && node.attrs.tempId === tempId) {
|
|
257
|
-
targetPos = position;
|
|
258
|
-
return false;
|
|
259
|
-
}
|
|
260
|
-
return undefined;
|
|
261
|
-
});
|
|
262
|
-
return targetPos;
|
|
263
|
-
};
|
|
264
|
-
var uploadSingleImage = /*#__PURE__*/function () {
|
|
265
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file, tempId) {
|
|
266
|
-
var progressPos, url, chain, dimensions, fallbackChain, _progressPos, _chain;
|
|
267
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
268
|
-
while (1) switch (_context.prev = _context.next) {
|
|
269
|
-
case 0:
|
|
270
|
-
_context.prev = 0;
|
|
271
|
-
progressPos = findNodePosition('inlineUploadProgress', tempId);
|
|
272
|
-
_context.next = 4;
|
|
273
|
-
return props.onUpload(file, function (progressEvent) {
|
|
274
|
-
editor.chain().updateInlineUploadProgress(tempId, progressEvent.progress).focus().run();
|
|
275
|
-
});
|
|
276
|
-
case 4:
|
|
277
|
-
url = _context.sent;
|
|
278
|
-
editor.chain().removeInlineUploadProgress(tempId).focus().run();
|
|
279
|
-
chain = editor.chain().focus();
|
|
280
|
-
if (progressPos !== null) {
|
|
281
|
-
chain.setTextSelection(progressPos);
|
|
282
|
-
}
|
|
283
|
-
_context.prev = 8;
|
|
284
|
-
_context.next = 11;
|
|
285
|
-
return getImageDimensionsFromFile(file);
|
|
286
|
-
case 11:
|
|
287
|
-
dimensions = _context.sent;
|
|
288
|
-
chain.setImage({
|
|
289
|
-
src: url,
|
|
290
|
-
width: Math.min(dimensions.width, 760)
|
|
291
|
-
}).run();
|
|
292
|
-
_context.next = 20;
|
|
293
|
-
break;
|
|
294
|
-
case 15:
|
|
295
|
-
_context.prev = 15;
|
|
296
|
-
_context.t0 = _context["catch"](8);
|
|
297
|
-
fallbackChain = editor.chain().focus();
|
|
298
|
-
if (progressPos !== null) {
|
|
299
|
-
fallbackChain.setTextSelection(progressPos);
|
|
300
|
-
}
|
|
301
|
-
fallbackChain.setImage({
|
|
302
|
-
src: url,
|
|
303
|
-
width: 760
|
|
304
|
-
}).run();
|
|
305
|
-
case 20:
|
|
306
|
-
_context.next = 30;
|
|
307
|
-
break;
|
|
308
|
-
case 22:
|
|
309
|
-
_context.prev = 22;
|
|
310
|
-
_context.t1 = _context["catch"](0);
|
|
311
|
-
console.error("[\u56FE\u7247\u4E0A\u4F20] ".concat(file.name, " \u4E0A\u4F20\u5931\u8D25:"), _context.t1);
|
|
312
|
-
editor.chain().removeInlineUploadProgress(tempId).focus().run();
|
|
313
|
-
_progressPos = findNodePosition('inlineUploadProgress', tempId);
|
|
314
|
-
_chain = editor.chain().focus();
|
|
315
|
-
if (_progressPos !== null) {
|
|
316
|
-
_chain.setTextSelection(_progressPos);
|
|
317
|
-
}
|
|
318
|
-
_chain.setImage({
|
|
319
|
-
src: '',
|
|
320
|
-
width: 760
|
|
321
|
-
}).run();
|
|
322
|
-
case 30:
|
|
323
|
-
case "end":
|
|
324
|
-
return _context.stop();
|
|
325
|
-
}
|
|
326
|
-
}, _callee, null, [[0, 22], [8, 15]]);
|
|
327
|
-
}));
|
|
328
|
-
return function uploadSingleImage(_x3, _x4) {
|
|
329
|
-
return _ref.apply(this, arguments);
|
|
330
|
-
};
|
|
331
|
-
}();
|
|
332
|
-
var processImagePaste = /*#__PURE__*/function () {
|
|
333
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(files, html, fromPos, toPos) {
|
|
334
|
-
var _htmlTrimmed$match;
|
|
335
|
-
var htmlTrimmed, hasRichHtml, _parsed$content, extensions, parsed, tempIds, fileIndex, modifiedDoc, finalDoc, i, useSimpleInsert;
|
|
336
|
-
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
337
|
-
while (1) switch (_context2.prev = _context2.next) {
|
|
338
|
-
case 0:
|
|
339
|
-
useSimpleInsert = function _useSimpleInsert(files, fromPos, toPos) {
|
|
340
|
-
var baseTime = Date.now();
|
|
341
|
-
var content = files.map(function (file, i) {
|
|
342
|
-
return {
|
|
343
|
-
type: 'paragraph',
|
|
344
|
-
content: [{
|
|
345
|
-
type: 'inlineUploadProgress',
|
|
346
|
-
attrs: {
|
|
347
|
-
fileName: file.name,
|
|
348
|
-
fileType: 'image',
|
|
349
|
-
progress: 0,
|
|
350
|
-
tempId: "upload-".concat(baseTime, "-").concat(i)
|
|
351
|
-
}
|
|
352
|
-
}]
|
|
353
|
-
};
|
|
354
|
-
});
|
|
355
|
-
editor.chain().insertContentAt({
|
|
356
|
-
from: fromPos,
|
|
357
|
-
to: toPos
|
|
358
|
-
}, content).focus().run();
|
|
359
|
-
files.forEach(function (file, i) {
|
|
360
|
-
var tempId = "upload-".concat(baseTime, "-").concat(i);
|
|
361
|
-
uploadSingleImage(file, tempId);
|
|
362
|
-
});
|
|
363
|
-
};
|
|
364
|
-
if (props.onUpload) {
|
|
365
|
-
_context2.next = 3;
|
|
366
|
-
break;
|
|
367
|
-
}
|
|
368
|
-
return _context2.abrupt("return");
|
|
369
|
-
case 3:
|
|
370
|
-
htmlTrimmed = (html === null || html === void 0 ? void 0 : html.trim()) || '';
|
|
371
|
-
hasRichHtml = htmlTrimmed.length > 0 && (htmlTrimmed.includes('<p') || htmlTrimmed.includes('<div') || htmlTrimmed.includes('<br') || htmlTrimmed.includes('<span') || ((_htmlTrimmed$match = htmlTrimmed.match(/<img/gi)) === null || _htmlTrimmed$match === void 0 ? void 0 : _htmlTrimmed$match.length) !== 1);
|
|
372
|
-
if (!hasRichHtml) {
|
|
373
|
-
_context2.next = 31;
|
|
374
|
-
break;
|
|
375
|
-
}
|
|
376
|
-
_context2.prev = 6;
|
|
377
|
-
extensions = editor.extensionManager.extensions;
|
|
378
|
-
parsed = generateJSON(htmlTrimmed, extensions);
|
|
379
|
-
if (parsed !== null && parsed !== void 0 && (_parsed$content = parsed.content) !== null && _parsed$content !== void 0 && _parsed$content.length) {
|
|
380
|
-
_context2.next = 11;
|
|
381
|
-
break;
|
|
382
|
-
}
|
|
383
|
-
throw new Error('Empty parsed content');
|
|
384
|
-
case 11:
|
|
385
|
-
tempIds = [];
|
|
386
|
-
fileIndex = {
|
|
387
|
-
current: 0
|
|
388
|
-
};
|
|
389
|
-
modifiedDoc = replaceImagesWithProgressNodes(parsed, files, fileIndex, tempIds);
|
|
390
|
-
finalDoc = appendExtraImagesToDoc(modifiedDoc, files, fileIndex.current, tempIds);
|
|
391
|
-
editor.chain().insertContentAt({
|
|
392
|
-
from: fromPos,
|
|
393
|
-
to: toPos
|
|
394
|
-
}, finalDoc).focus().run();
|
|
395
|
-
i = 0;
|
|
396
|
-
case 17:
|
|
397
|
-
if (!(i < tempIds.length)) {
|
|
398
|
-
_context2.next = 23;
|
|
399
|
-
break;
|
|
400
|
-
}
|
|
401
|
-
_context2.next = 20;
|
|
402
|
-
return uploadSingleImage(files[i], tempIds[i]);
|
|
403
|
-
case 20:
|
|
404
|
-
i++;
|
|
405
|
-
_context2.next = 17;
|
|
406
|
-
break;
|
|
407
|
-
case 23:
|
|
408
|
-
_context2.next = 29;
|
|
409
|
-
break;
|
|
410
|
-
case 25:
|
|
411
|
-
_context2.prev = 25;
|
|
412
|
-
_context2.t0 = _context2["catch"](6);
|
|
413
|
-
console.error('[图片粘贴] 富文本解析失败,使用简单插入:', _context2.t0);
|
|
414
|
-
useSimpleInsert(files, fromPos, toPos);
|
|
415
|
-
case 29:
|
|
416
|
-
_context2.next = 32;
|
|
417
|
-
break;
|
|
418
|
-
case 31:
|
|
419
|
-
useSimpleInsert(files, fromPos, toPos);
|
|
420
|
-
case 32:
|
|
421
|
-
case "end":
|
|
422
|
-
return _context2.stop();
|
|
423
|
-
}
|
|
424
|
-
}, _callee2, null, [[6, 25]]);
|
|
425
|
-
}));
|
|
426
|
-
return function processImagePaste(_x5, _x6, _x7, _x8) {
|
|
427
|
-
return _ref2.apply(this, arguments);
|
|
428
|
-
};
|
|
429
|
-
}();
|
|
430
|
-
|
|
431
|
-
// 如果没有图片文件,尝试从 HTML 中提取图片 URL
|
|
432
|
-
if (imageFiles.length === 0) {
|
|
433
|
-
if (!htmlData) {
|
|
434
|
-
return false; // 没有 HTML 数据,让默认粘贴处理
|
|
435
|
-
}
|
|
436
|
-
var imageUrls = extractImageUrls(htmlData);
|
|
437
|
-
|
|
438
|
-
// 如果找到图片 URL,优先通过 onUploadImgUrl 走后端上传,否则前端下载再上传
|
|
439
|
-
if (imageUrls.length > 0) {
|
|
440
|
-
event.preventDefault();
|
|
441
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
442
|
-
var abortController, newUrls, modifiedHtml, _parsed$content2, extensions, parsed, _props$onError, _props$onError2, _parsed$content3, _extensions, _parsed, downloadedFiles, validFiles, _parsed2$content, _extensions2, _parsed2;
|
|
443
|
-
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
444
|
-
while (1) switch (_context3.prev = _context3.next) {
|
|
445
|
-
case 0:
|
|
446
|
-
if (!props.onUploadImgUrl) {
|
|
447
|
-
_context3.next = 17;
|
|
448
|
-
break;
|
|
449
|
-
}
|
|
450
|
-
abortController = new AbortController();
|
|
451
|
-
_context3.prev = 2;
|
|
452
|
-
_context3.next = 5;
|
|
453
|
-
return Promise.all(imageUrls.map(function (url) {
|
|
454
|
-
return props.onUploadImgUrl(url, abortController.signal);
|
|
455
|
-
}));
|
|
456
|
-
case 5:
|
|
457
|
-
newUrls = _context3.sent;
|
|
458
|
-
modifiedHtml = htmlData;
|
|
459
|
-
imageUrls.forEach(function (oldUrl, i) {
|
|
460
|
-
modifiedHtml = modifiedHtml.split(oldUrl).join(newUrls[i]);
|
|
461
|
-
});
|
|
462
|
-
try {
|
|
463
|
-
extensions = editor.extensionManager.extensions;
|
|
464
|
-
parsed = generateJSON(modifiedHtml, extensions);
|
|
465
|
-
if (parsed !== null && parsed !== void 0 && (_parsed$content2 = parsed.content) !== null && _parsed$content2 !== void 0 && _parsed$content2.length) {
|
|
466
|
-
editor.chain().insertContentAt({
|
|
467
|
-
from: from,
|
|
468
|
-
to: to
|
|
469
|
-
}, parsed).focus().run();
|
|
470
|
-
}
|
|
471
|
-
} catch (parseError) {
|
|
472
|
-
console.error('[图片粘贴] 解析上传后的 HTML 失败:', parseError);
|
|
473
|
-
(_props$onError = props.onError) === null || _props$onError === void 0 || _props$onError.call(props, parseError);
|
|
474
|
-
}
|
|
475
|
-
_context3.next = 16;
|
|
476
|
-
break;
|
|
477
|
-
case 11:
|
|
478
|
-
_context3.prev = 11;
|
|
479
|
-
_context3.t0 = _context3["catch"](2);
|
|
480
|
-
console.error('[图片粘贴] URL 上传失败:', _context3.t0);
|
|
481
|
-
(_props$onError2 = props.onError) === null || _props$onError2 === void 0 || _props$onError2.call(props, _context3.t0);
|
|
482
|
-
try {
|
|
483
|
-
if (htmlData) {
|
|
484
|
-
_extensions = editor.extensionManager.extensions;
|
|
485
|
-
_parsed = generateJSON(htmlData, _extensions);
|
|
486
|
-
if (_parsed !== null && _parsed !== void 0 && (_parsed$content3 = _parsed.content) !== null && _parsed$content3 !== void 0 && _parsed$content3.length) {
|
|
487
|
-
editor.chain().insertContentAt({
|
|
488
|
-
from: from,
|
|
489
|
-
to: to
|
|
490
|
-
}, _parsed).focus().run();
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
} catch (fallbackError) {
|
|
494
|
-
// 解析失败则不再处理
|
|
495
|
-
}
|
|
496
|
-
case 16:
|
|
497
|
-
return _context3.abrupt("return");
|
|
498
|
-
case 17:
|
|
499
|
-
_context3.next = 19;
|
|
500
|
-
return Promise.all(imageUrls.map(function (url, i) {
|
|
501
|
-
return downloadImageAsFile(url, i);
|
|
502
|
-
}));
|
|
503
|
-
case 19:
|
|
504
|
-
downloadedFiles = _context3.sent;
|
|
505
|
-
validFiles = downloadedFiles.filter(function (f) {
|
|
506
|
-
return f !== null;
|
|
507
|
-
});
|
|
508
|
-
if (!(validFiles.length === 0)) {
|
|
509
|
-
_context3.next = 24;
|
|
510
|
-
break;
|
|
511
|
-
}
|
|
512
|
-
try {
|
|
513
|
-
_extensions2 = editor.extensionManager.extensions;
|
|
514
|
-
_parsed2 = generateJSON(htmlData, _extensions2);
|
|
515
|
-
if (_parsed2 !== null && _parsed2 !== void 0 && (_parsed2$content = _parsed2.content) !== null && _parsed2$content !== void 0 && _parsed2$content.length) {
|
|
516
|
-
editor.chain().insertContentAt({
|
|
517
|
-
from: from,
|
|
518
|
-
to: to
|
|
519
|
-
}, _parsed2).focus().run();
|
|
520
|
-
}
|
|
521
|
-
} catch (err) {
|
|
522
|
-
// 解析失败则不再处理
|
|
523
|
-
}
|
|
524
|
-
return _context3.abrupt("return");
|
|
525
|
-
case 24:
|
|
526
|
-
_context3.next = 26;
|
|
527
|
-
return processImagePaste(validFiles, htmlData, from, to);
|
|
528
|
-
case 26:
|
|
529
|
-
case "end":
|
|
530
|
-
return _context3.stop();
|
|
531
|
-
}
|
|
532
|
-
}, _callee3, null, [[2, 11]]);
|
|
533
|
-
}))();
|
|
534
|
-
return true;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
// 没有图片 URL,尝试处理 HTML 或纯文本
|
|
538
|
-
// 先尝试使用 generateJSON 解析 HTML
|
|
539
|
-
try {
|
|
540
|
-
if (htmlData) {
|
|
541
|
-
var _parsed$content4;
|
|
542
|
-
var extensions = editor.extensionManager.extensions;
|
|
543
|
-
var parsed = generateJSON(htmlData, extensions);
|
|
544
|
-
|
|
545
|
-
// 检查解析后的内容是否包含有效文本
|
|
546
|
-
if (parsed !== null && parsed !== void 0 && (_parsed$content4 = parsed.content) !== null && _parsed$content4 !== void 0 && _parsed$content4.length && hasValidTextContent(parsed.content)) {
|
|
547
|
-
event.preventDefault();
|
|
548
|
-
editor.chain().insertContentAt({
|
|
549
|
-
from: from,
|
|
550
|
-
to: to
|
|
551
|
-
}, parsed).focus().run();
|
|
552
|
-
return true;
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
} catch (error) {
|
|
556
|
-
// HTML 解析失败,继续尝试纯文本
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
// HTML 解析失败或内容无效(如包含特殊格式 data-clipboard-cangjie),使用纯文本
|
|
560
|
-
if (plainText !== null && plainText !== void 0 && plainText.trim()) {
|
|
561
|
-
insertPlainText(plainText.trim());
|
|
562
|
-
return true;
|
|
563
|
-
}
|
|
564
|
-
return false; // 让默认粘贴处理
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
// 有图片文件,直接处理(需要 onUpload)
|
|
568
|
-
if (imageFiles.length > 0 && !props.onUpload) return false;
|
|
569
|
-
|
|
570
|
-
// 如果包含表格,让默认粘贴处理
|
|
571
|
-
if (htmlData !== null && htmlData !== void 0 && htmlData.trim()) {
|
|
572
|
-
var htmlLower = htmlData.toLowerCase();
|
|
573
|
-
if (htmlLower.includes('<table') || htmlLower.includes('<tr') || htmlLower.includes('<td') || htmlLower.includes('<th')) {
|
|
574
|
-
return false;
|
|
575
|
-
}
|
|
576
|
-
}
|
|
577
|
-
event.preventDefault();
|
|
578
|
-
_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
579
|
-
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
580
|
-
while (1) switch (_context4.prev = _context4.next) {
|
|
581
|
-
case 0:
|
|
582
|
-
_context4.next = 2;
|
|
583
|
-
return processImagePaste(imageFiles, htmlData, from, to);
|
|
584
|
-
case 2:
|
|
585
|
-
case "end":
|
|
586
|
-
return _context4.stop();
|
|
587
|
-
}
|
|
588
|
-
}, _callee4);
|
|
589
|
-
}))();
|
|
590
|
-
return true;
|
|
591
|
-
}
|
|
592
|
-
}
|
|
593
|
-
})];
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
};
|
|
597
|
-
export var ImageExtension = function ImageExtension(props) {
|
|
598
|
-
return customImage(props).configure({
|
|
599
|
-
inline: true,
|
|
600
|
-
allowBase64: true
|
|
601
|
-
});
|
|
602
|
-
};
|