@ctzhian/tiptap 3.0.0 → 3.0.2
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 → Editor}/demo.d.ts +1 -1
- package/dist/{app/editor/Editor → Editor}/demo.js +2 -5
- package/dist/{app/editor/Editor → Editor}/index.d.ts +1 -1
- package/dist/{app/editor/Editor → Editor}/index.js +9 -10
- package/dist/{app/editor/EditorDiff → EditorDiff}/demo.d.ts +1 -1
- package/dist/{app/editor/EditorDiff → EditorDiff}/demo.js +2 -3
- package/dist/{app/editor/EditorDiff → EditorDiff}/index.js +2 -2
- package/dist/{features/markdown → EditorMarkdown}/Toolbar.d.ts +1 -2
- package/dist/EditorMarkdown/Toolbar.js +942 -0
- package/dist/{app/editor/EditorMarkdown → EditorMarkdown}/demo.d.ts +1 -1
- package/dist/{app/editor/EditorMarkdown → EditorMarkdown}/demo.js +2 -4
- package/dist/{features/markdown → EditorMarkdown}/index.d.ts +3 -3
- package/dist/EditorMarkdown/index.js +566 -0
- package/dist/{app/editor/EditorThemeProvider → EditorThemeProvider}/index.d.ts +1 -1
- package/dist/{app/editor/EditorThemeProvider → EditorThemeProvider}/index.js +2 -2
- package/dist/{features/toolbar → EditorToolbar}/index.d.ts +1 -1
- package/dist/EditorToolbar/index.js +361 -0
- package/dist/{components → component}/ActionDropdown/index.d.ts +1 -1
- package/dist/{components → component}/ActionDropdown/index.js +37 -23
- package/dist/{components → component}/CustomBubbleMenu/index.d.ts +1 -1
- package/dist/{components → component}/CustomBubbleMenu/index.js +3 -4
- package/dist/{features/drag-handle → component/CustomDragHandle}/index.d.ts +1 -1
- package/dist/component/CustomDragHandle/index.js +1372 -0
- package/dist/component/FloatingPopover/index.js +120 -0
- package/dist/component/HoverPopover/index.js +162 -0
- package/dist/{components → component}/Menu/NestedList.d.ts +1 -1
- package/dist/{components → component}/Menu/NestedList.js +41 -19
- package/dist/{components → component}/Menu/index.d.ts +1 -1
- package/dist/{components → component}/Menu/index.js +21 -13
- package/dist/component/Toolbar/EditorAlignSelect.js +187 -0
- package/dist/component/Toolbar/EditorCode.js +161 -0
- package/dist/{components → component}/Toolbar/EditorHeading.js +1 -1
- package/dist/component/Toolbar/EditorInsert/index.js +491 -0
- package/dist/component/Toolbar/EditorListSelect.js +174 -0
- package/dist/{components/Toolbar/CommandSelect.js → component/Toolbar/EditorMath.js} +84 -54
- package/dist/{components → component}/Toolbar/EditorMore/NotificationDialog.js +2 -2
- package/dist/{components → component}/Toolbar/EditorMore/index.d.ts +1 -1
- package/dist/{components → component}/Toolbar/EditorMore/index.js +11 -6
- package/dist/component/Toolbar/EditorScript.js +161 -0
- package/dist/component/Toolbar/EditorVerticalAlignSelect.js +174 -0
- package/dist/{components → component}/Toolbar/Item.js +1 -1
- package/dist/{components → component}/Toolbar/TableSizePicker.js +1 -1
- package/dist/{components → component}/Toolbar/index.d.ts +0 -1
- package/dist/{components → component}/Toolbar/index.js +0 -1
- package/dist/{constants → contants}/enums.d.ts +0 -2
- package/dist/{constants → contants}/enums.js +5 -19
- package/dist/{constants → contants}/slash-commands.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/Alert/index.js +3 -3
- package/dist/{editor-core/extensions → extension}/component/Attachment/AttachmentContent.js +2 -2
- package/dist/{editor-core/extensions → extension}/component/Attachment/Insert.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Attachment/Insert.js +58 -50
- package/dist/{editor-core/extensions → extension}/component/Attachment/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Attachment/index.js +28 -20
- package/dist/{editor-core/extensions → extension}/component/Audio/AudioPlayer.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Audio/AudioPlayer.js +4 -13
- package/dist/{editor-core/extensions → extension}/component/Audio/Insert.d.ts +2 -2
- package/dist/{editor-core/extensions → extension}/component/Audio/Insert.js +249 -85
- package/dist/extension/component/Audio/index.d.ts +14 -0
- package/dist/{editor-core/extensions → extension}/component/Audio/index.js +208 -111
- package/dist/{editor-core/extensions/component/CodeBlock/shared.js → extension/component/CodeBlock/Readonly.js} +134 -42
- package/dist/extension/component/CodeBlock/index.js +374 -0
- package/dist/{editor-core/extensions → extension}/component/DrawPanel/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/DrawPanel/index.js +2 -2
- package/dist/{editor-core/extensions → extension}/component/FlipGrid/ColumnView.js +3 -3
- package/dist/{editor-core/extensions → extension}/component/Flow/Edit.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/Flow/Insert.js +2 -2
- package/dist/{editor-core/extensions → extension}/component/Flow/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Flow/index.js +4 -4
- package/dist/{features/media/iframe → extension/component/Iframe}/Insert.d.ts +1 -1
- package/dist/{features/media/iframe → extension/component/Iframe}/Insert.js +52 -21
- package/dist/{features/media/iframe → extension/component/Iframe}/index.d.ts +1 -1
- package/dist/{features/media/iframe → extension/component/Iframe}/index.js +393 -97
- package/dist/{features/media/image → extension/component/Image}/Crop.d.ts +1 -1
- package/dist/{features/media/image → extension/component/Image}/Insert.d.ts +1 -1
- package/dist/{features/media/image → extension/component/Image}/Insert.js +107 -35
- package/dist/{features/media/image → extension/component/Image}/Readonly.js +1 -1
- package/dist/{features/media/image → extension/component/Image}/index.d.ts +1 -1
- package/dist/{features/media/image → extension/component/Image}/index.js +296 -102
- package/dist/{editor-core/extensions → extension}/component/Link/Insert.d.ts +1 -1
- package/dist/extension/component/Link/Insert.js +252 -0
- package/dist/{editor-core/extensions → extension}/component/Link/LinkContent.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Link/LinkContent.js +9 -6
- package/dist/{editor-core/extensions → extension}/component/Link/Markdown.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/Link/index.d.ts +8 -0
- package/dist/{editor-core/extensions → extension}/component/Link/index.js +124 -72
- package/dist/{editor-core/extensions → extension}/component/Mathematics/block/Readonly.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Mathematics/block/index.d.ts +4 -3
- package/dist/{editor-core/extensions → extension}/component/Mathematics/block/index.js +39 -18
- package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/Readonly.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/index.d.ts +4 -3
- package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/index.js +40 -17
- package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/Overlay.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/Overlay.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/component/SlashCommandsList/index.js +5 -5
- package/dist/extension/component/TableCellHandleMenu/index.js +512 -0
- package/dist/{features/table → extension/component}/TableExtendButton/index.d.ts +1 -1
- package/dist/{features/table → extension/component}/TableExtendButton/index.js +2 -2
- package/dist/{features/table → extension/component}/TableHandle/TableHandleAddButton.d.ts +1 -1
- package/dist/{features/table → extension/component}/TableHandle/TableHandleAddButton.js +2 -2
- package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.d.ts +1 -1
- package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.js +265 -48
- package/dist/{features/table → extension/component}/TableHandle/index.d.ts +12 -0
- package/dist/extension/component/TableHandle/index.js +140 -0
- package/dist/{features/table → extension/component}/TableHandle/use-table-handle-positioning.js +1 -1
- package/dist/{features/table → extension/component}/TableHandle/use-table-handle-state.d.ts +1 -1
- package/dist/{features/table → extension/component}/TableSelectionOverlay/index.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/Tooltip/EditPopover.js +22 -12
- package/dist/{editor-core/extensions → extension}/component/Tooltip/index.js +1 -1
- package/dist/{editor-core/extensions → extension}/component/UploadProgress/Inline.d.ts +1 -2
- package/dist/{editor-core/extensions/component/UploadProgress/shared.js → extension/component/UploadProgress/Inline.js} +50 -39
- package/dist/{editor-core/extensions → extension}/component/UploadProgress/index.d.ts +3 -2
- package/dist/extension/component/UploadProgress/index.js +111 -0
- package/dist/{features/media/video → extension/component/Video}/Insert.d.ts +1 -1
- package/dist/{features/media/video → extension/component/Video}/Insert.js +111 -35
- package/dist/{features/media/video → extension/component/Video}/index.d.ts +1 -1
- package/dist/{features/media/video → extension/component/Video}/index.js +379 -86
- package/dist/extension/extension/ImeComposition.d.ts +2 -0
- package/dist/{editor-core/extensions → extension}/extension/ImeComposition.js +23 -10
- package/dist/{editor-core/extensions → extension}/extension/StructuredDiff.js +2 -1
- package/dist/extension/index.d.ts +2 -0
- package/dist/{editor-core/extensions/builders.js → extension/index.js} +92 -126
- package/dist/{editor-core/extensions → extension}/node/Attachment.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Attachment.js +3 -15
- package/dist/{editor-core/extensions → extension}/node/Audio.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Audio.js +19 -11
- package/dist/{editor-core/extensions → extension}/node/CodeBlockLowlight.js +33 -6
- package/dist/{editor-core/extensions → extension}/node/DrawPanel.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/FileHandler.d.ts +2 -2
- package/dist/{editor-core/extensions → extension}/node/FileHandler.js +2 -2
- package/dist/{editor-core/extensions → extension}/node/Flow/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Iframe.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Iframe.js +1 -1
- package/dist/{editor-core/extensions → extension}/node/Image.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Image.js +2 -2
- package/dist/{editor-core/extensions → extension}/node/Link/index.js +5 -11
- package/dist/extension/node/ListKit.js +23 -0
- package/dist/{editor-core/extensions → extension}/node/Mathematics.d.ts +1 -1
- package/dist/extension/node/Mathematics.js +97 -0
- package/dist/{editor-core/extensions → extension}/node/Mention.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Table.js +1 -1
- package/dist/{features/table/plugin → extension/node/TableHandler}/index.d.ts +1 -3
- package/dist/{features/table/plugin → extension/node/TableHandler}/index.js +2 -5
- package/dist/{features/table/plugin/shared.d.ts → extension/node/TableHandler/plugin.d.ts} +16 -8
- package/dist/extension/node/TableHandler/plugin.js +1083 -0
- package/dist/{editor-core/extensions → extension}/node/TableOfContents/index.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/TableOfContents/index.js +1 -1
- package/dist/{editor-core/extensions → extension}/node/TableOfContents/plugin.js +3 -2
- package/dist/{editor-core/extensions → extension}/node/Video.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/node/Video.js +2 -2
- package/dist/{editor-core/extensions → extension}/suggestion/mention.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/suggestion/mention.js +1 -1
- package/dist/{editor-core/extensions → extension}/suggestion/slash.d.ts +1 -1
- package/dist/{editor-core/extensions → extension}/suggestion/slash.js +1 -1
- package/dist/{hooks → hook}/fn.d.ts +1 -1
- package/dist/{hooks → hook}/fn.js +1 -1
- package/dist/{hooks → hook}/index.d.ts +1 -1
- package/dist/{hooks → hook}/index.js +13 -23
- 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/{utils → util}/fileHandler.d.ts +2 -2
- package/dist/util/fileHandler.js +82 -0
- package/dist/util/index.d.ts +35 -0
- package/dist/util/index.js +165 -0
- package/dist/{utils → util}/resourceExtractor.d.ts +1 -1
- package/dist/{utils → util}/resourceExtractor.js +1 -1
- package/dist/{utils → util}/shortcutKey.js +1 -1
- package/package.json +32 -36
- package/dist/app/editor/EditorMarkdown/index.d.ts +0 -1
- package/dist/app/editor/EditorMarkdown/index.js +0 -1
- package/dist/components/FloatingPopover/index.js +0 -66
- package/dist/components/HoverPopover/index.js +0 -56
- package/dist/components/Toolbar/CommandSelect.d.ts +0 -20
- package/dist/components/Toolbar/EditorAlignSelect.js +0 -76
- package/dist/components/Toolbar/EditorCode.js +0 -50
- package/dist/components/Toolbar/EditorInsert/index.js +0 -40
- package/dist/components/Toolbar/EditorInsert/menu-builders.d.ts +0 -3
- package/dist/components/Toolbar/EditorInsert/menu-builders.js +0 -407
- package/dist/components/Toolbar/EditorListSelect.js +0 -62
- package/dist/components/Toolbar/EditorMath.js +0 -54
- package/dist/components/Toolbar/EditorMore/menu-builders.d.ts +0 -5
- package/dist/components/Toolbar/EditorMore/menu-builders.js +0 -13
- package/dist/components/Toolbar/EditorScript.js +0 -50
- package/dist/components/Toolbar/EditorVerticalAlignSelect.js +0 -64
- package/dist/components/shared/menu-item-content.d.ts +0 -7
- package/dist/components/shared/menu-item-content.js +0 -23
- package/dist/components/shared/menu-surface.d.ts +0 -13
- package/dist/components/shared/menu-surface.js +0 -35
- package/dist/components/shared/use-floating-popover.d.ts +0 -16
- package/dist/components/shared/use-floating-popover.js +0 -79
- package/dist/components/shared/use-hover-popover.d.ts +0 -15
- package/dist/components/shared/use-hover-popover.js +0 -96
- package/dist/components/shared/use-popover-anchor.d.ts +0 -8
- package/dist/components/shared/use-popover-anchor.js +0 -26
- package/dist/editor-core/extensions/builders.d.ts +0 -13
- package/dist/editor-core/extensions/catalog.d.ts +0 -22
- package/dist/editor-core/extensions/catalog.js +0 -326
- package/dist/editor-core/extensions/component/Audio/index.d.ts +0 -5
- package/dist/editor-core/extensions/component/Audio/shared.d.ts +0 -12
- package/dist/editor-core/extensions/component/Audio/shared.js +0 -48
- package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.d.ts +0 -21
- package/dist/editor-core/extensions/component/Audio/use-audio-upload-fields.js +0 -48
- package/dist/editor-core/extensions/component/CodeBlock/Readonly.js +0 -124
- package/dist/editor-core/extensions/component/CodeBlock/index.js +0 -330
- package/dist/editor-core/extensions/component/CodeBlock/shared.d.ts +0 -15
- package/dist/editor-core/extensions/component/Link/Insert.js +0 -162
- package/dist/editor-core/extensions/component/Link/shared.d.ts +0 -26
- package/dist/editor-core/extensions/component/Link/shared.js +0 -74
- package/dist/editor-core/extensions/component/Mathematics/shared.d.ts +0 -18
- package/dist/editor-core/extensions/component/Mathematics/shared.js +0 -64
- package/dist/editor-core/extensions/component/UploadProgress/Inline.js +0 -28
- package/dist/editor-core/extensions/component/UploadProgress/file-meta.d.ts +0 -4
- package/dist/editor-core/extensions/component/UploadProgress/file-meta.js +0 -42
- package/dist/editor-core/extensions/component/UploadProgress/index.js +0 -19
- package/dist/editor-core/extensions/component/UploadProgress/shared.d.ts +0 -10
- package/dist/editor-core/extensions/component/shared/edit-popover.d.ts +0 -27
- package/dist/editor-core/extensions/component/shared/edit-popover.js +0 -82
- package/dist/editor-core/extensions/component/shared/insert-popover.d.ts +0 -34
- package/dist/editor-core/extensions/component/shared/insert-popover.js +0 -160
- package/dist/editor-core/extensions/component/shared/resource-form.d.ts +0 -26
- package/dist/editor-core/extensions/component/shared/resource-form.js +0 -78
- package/dist/editor-core/extensions/component/shared/upload-flow.d.ts +0 -25
- package/dist/editor-core/extensions/component/shared/upload-flow.js +0 -143
- package/dist/editor-core/extensions/extension/ImeComposition.d.ts +0 -12
- package/dist/editor-core/extensions/extension/ime-shared.d.ts +0 -11
- package/dist/editor-core/extensions/extension/ime-shared.js +0 -20
- package/dist/editor-core/extensions/index.d.ts +0 -4
- package/dist/editor-core/extensions/index.js +0 -6
- package/dist/editor-core/extensions/node/ListKit.js +0 -18
- package/dist/editor-core/extensions/node/Mathematics.js +0 -58
- package/dist/editor-core/extensions/node/code-block-lowlight-shared.d.ts +0 -14
- package/dist/editor-core/extensions/node/code-block-lowlight-shared.js +0 -34
- package/dist/editor-core/extensions/node/list-shared.d.ts +0 -18
- package/dist/editor-core/extensions/node/list-shared.js +0 -18
- package/dist/editor-core/extensions/node/mathematics-shared.d.ts +0 -7
- package/dist/editor-core/extensions/node/mathematics-shared.js +0 -40
- package/dist/editor-core/extensions/node/resource-shared.d.ts +0 -13
- package/dist/editor-core/extensions/node/resource-shared.js +0 -45
- package/dist/editor-core/extensions/plugin-keys.d.ts +0 -2
- package/dist/editor-core/extensions/plugin-keys.js +0 -2
- package/dist/features/drag-handle/action-count-badge.d.ts +0 -5
- package/dist/features/drag-handle/action-count-badge.js +0 -23
- package/dist/features/drag-handle/action-groups.d.ts +0 -13
- package/dist/features/drag-handle/action-groups.js +0 -49
- package/dist/features/drag-handle/convert-builders.d.ts +0 -8
- package/dist/features/drag-handle/convert-builders.js +0 -201
- package/dist/features/drag-handle/download-builders.d.ts +0 -7
- package/dist/features/drag-handle/download-builders.js +0 -237
- package/dist/features/drag-handle/drag-handle-header.d.ts +0 -17
- package/dist/features/drag-handle/drag-handle-header.js +0 -233
- package/dist/features/drag-handle/index.js +0 -210
- package/dist/features/drag-handle/insert-builders.d.ts +0 -3
- package/dist/features/drag-handle/insert-builders.js +0 -81
- package/dist/features/drag-handle/menu-builders.d.ts +0 -4
- package/dist/features/drag-handle/menu-builders.js +0 -4
- package/dist/features/drag-handle/menu-shared.d.ts +0 -11
- package/dist/features/drag-handle/menu-shared.js +0 -102
- package/dist/features/drag-handle/node-actions.d.ts +0 -5
- package/dist/features/drag-handle/node-actions.js +0 -57
- package/dist/features/drag-handle/style-builders.d.ts +0 -8
- package/dist/features/drag-handle/style-builders.js +0 -197
- package/dist/features/drag-handle/types.d.ts +0 -27
- package/dist/features/drag-handle/types.js +0 -1
- package/dist/features/drag-handle/use-current-node-context.d.ts +0 -11
- package/dist/features/drag-handle/use-current-node-context.js +0 -109
- package/dist/features/markdown/Toolbar.js +0 -81
- package/dist/features/markdown/index.js +0 -284
- package/dist/features/markdown/toolbar-actions.d.ts +0 -82
- package/dist/features/markdown/toolbar-actions.js +0 -734
- package/dist/features/markdown/toolbar-menu.d.ts +0 -9
- package/dist/features/markdown/toolbar-menu.js +0 -87
- package/dist/features/markdown/toolbar-tool-list.d.ts +0 -12
- package/dist/features/markdown/toolbar-tool-list.js +0 -24
- package/dist/features/markdown/use-ace-composition.d.ts +0 -5
- package/dist/features/markdown/use-ace-composition.js +0 -39
- package/dist/features/markdown/use-display-mode.d.ts +0 -8
- package/dist/features/markdown/use-display-mode.js +0 -28
- package/dist/features/markdown/use-markdown-file-inputs.d.ts +0 -10
- package/dist/features/markdown/use-markdown-file-inputs.js +0 -69
- package/dist/features/markdown/use-markdown-sync.d.ts +0 -13
- package/dist/features/markdown/use-markdown-sync.js +0 -56
- package/dist/features/markdown/use-markdown-transfer.d.ts +0 -18
- package/dist/features/markdown/use-markdown-transfer.js +0 -123
- package/dist/features/markdown/use-markdown-upload.d.ts +0 -13
- package/dist/features/markdown/use-markdown-upload.js +0 -98
- package/dist/features/media/shared/media-edit-popover.d.ts +0 -26
- package/dist/features/media/shared/media-edit-popover.js +0 -105
- package/dist/features/media/shared/media-hover-toolbar.d.ts +0 -18
- package/dist/features/media/shared/media-hover-toolbar.js +0 -140
- package/dist/features/media/shared/media-resize-handles.d.ts +0 -8
- package/dist/features/media/shared/media-resize-handles.js +0 -70
- package/dist/features/media/shared/use-media-resize.d.ts +0 -20
- package/dist/features/media/shared/use-media-resize.js +0 -88
- package/dist/features/media/shared/use-media-width.d.ts +0 -14
- package/dist/features/media/shared/use-media-width.js +0 -76
- package/dist/features/table/TableCellHandleMenu/index.js +0 -234
- package/dist/features/table/TableHandle/index.js +0 -73
- package/dist/features/table/TableHandle/menu-builders.d.ts +0 -14
- package/dist/features/table/TableHandle/menu-builders.js +0 -242
- package/dist/features/table/TableHandle/table-handle-group.d.ts +0 -16
- package/dist/features/table/TableHandle/table-handle-group.js +0 -84
- package/dist/features/table/TableHandle/use-table-handle-visibility.d.ts +0 -14
- package/dist/features/table/TableHandle/use-table-handle-visibility.js +0 -47
- package/dist/features/table/TableHandle/use-table-menu-open.d.ts +0 -12
- package/dist/features/table/TableHandle/use-table-menu-open.js +0 -39
- package/dist/features/table/plugin/decorations.d.ts +0 -9
- package/dist/features/table/plugin/decorations.js +0 -80
- package/dist/features/table/plugin/drag-helpers.d.ts +0 -11
- package/dist/features/table/plugin/drag-helpers.js +0 -188
- package/dist/features/table/plugin/hover-state.d.ts +0 -27
- package/dist/features/table/plugin/hover-state.js +0 -60
- package/dist/features/table/plugin/plugin.d.ts +0 -4
- package/dist/features/table/plugin/plugin.js +0 -512
- package/dist/features/table/plugin/positioning.d.ts +0 -40
- package/dist/features/table/plugin/positioning.js +0 -124
- package/dist/features/table/plugin/shared.js +0 -9
- package/dist/features/table/plugin/state-sync.d.ts +0 -12
- package/dist/features/table/plugin/state-sync.js +0 -75
- package/dist/features/toolbar/index.js +0 -179
- package/dist/features/toolbar/toolbar-config.d.ts +0 -32
- package/dist/features/toolbar/toolbar-config.js +0 -209
- package/dist/features/toolbar/toolbar-divider.d.ts +0 -3
- package/dist/features/toolbar/toolbar-divider.js +0 -14
- package/dist/features/toolbar/toolbar-sections.d.ts +0 -23
- package/dist/features/toolbar/toolbar-sections.js +0 -107
- package/dist/utils/color.d.ts +0 -1
- package/dist/utils/color.js +0 -18
- package/dist/utils/diff/index.d.ts +0 -2
- package/dist/utils/diff/index.js +0 -2
- package/dist/utils/editor.d.ts +0 -6
- package/dist/utils/editor.js +0 -29
- package/dist/utils/embed.d.ts +0 -2
- package/dist/utils/embed.js +0 -27
- package/dist/utils/file/index.d.ts +0 -3
- package/dist/utils/file/index.js +0 -3
- package/dist/utils/file.d.ts +0 -3
- package/dist/utils/file.js +0 -20
- package/dist/utils/fileHandler.js +0 -69
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -10
- package/dist/utils/link.d.ts +0 -5
- package/dist/utils/link.js +0 -25
- package/dist/utils/resource.d.ts +0 -2
- package/dist/utils/resource.js +0 -38
- package/dist/utils/table/index.d.ts +0 -1
- package/dist/utils/table/index.js +0 -1
- /package/dist/{app/editor/EditorDiff → EditorDiff}/index.d.ts +0 -0
- /package/dist/{features/markdown → EditorMarkdown}/UploadProgress.d.ts +0 -0
- /package/dist/{features/markdown → EditorMarkdown}/UploadProgress.js +0 -0
- /package/dist/{features/markdown → EditorMarkdown}/util.d.ts +0 -0
- /package/dist/{features/markdown → EditorMarkdown}/util.js +0 -0
- /package/dist/{components → component}/CustomFloatingMenu/index.d.ts +0 -0
- /package/dist/{components → component}/CustomFloatingMenu/index.js +0 -0
- /package/dist/{components → component}/FloatingPopover/index.d.ts +0 -0
- /package/dist/{components → component}/HoverPopover/index.d.ts +0 -0
- /package/dist/{components → component}/Icons/add-circle-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/add-circle-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/add-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/add-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/ai-generate-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/ai-generate-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/ai-generate-text-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/ai-generate-text-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-bottom-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-bottom-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-center-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-center-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-justify-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-justify-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-left-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-left-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-right-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-right-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-top-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-top-icon.js +0 -0
- /package/dist/{components → component}/Icons/align-vertically-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/align-vertically-icon.js +0 -0
- /package/dist/{components → component}/Icons/anticlockwise-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/anticlockwise-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/arrow-down-s-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/arrow-down-s-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/arrow-go-back-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/arrow-go-back-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/arrow-go-forward-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/arrow-go-forward-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/arrow-left-wide-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/arrow-left-wide-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/at-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/at-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/attachment-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/attachment-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/attachment-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/attachment-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/bilibili-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/bilibili-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/bold-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/bold-icon.js +0 -0
- /package/dist/{components → component}/Icons/brush-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/brush-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/carousel-view-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/carousel-view-icon.js +0 -0
- /package/dist/{components → component}/Icons/checkbox-blank-circle-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/checkbox-blank-circle-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/checkbox-circle-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/checkbox-circle-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/checkbox-circle-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/checkbox-circle-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/chrome-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/chrome-icon.js +0 -0
- /package/dist/{components → component}/Icons/clockwise-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/clockwise-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/close-circle-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/close-circle-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/code-box-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/code-box-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/code-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/code-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/code-s-slash-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/code-s-slash-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/collapse-horizontal-line.d.ts +0 -0
- /package/dist/{components → component}/Icons/collapse-horizontal-line.js +0 -0
- /package/dist/{components → component}/Icons/collapse-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/collapse-icon.js +0 -0
- /package/dist/{components → component}/Icons/command-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/command-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/copy-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/copy-icon.js +0 -0
- /package/dist/{components → component}/Icons/custom-size-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/custom-size-icon.js +0 -0
- /package/dist/{components → component}/Icons/delete-back-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/delete-back-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/delete-column-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/delete-column-icon.js +0 -0
- /package/dist/{components → component}/Icons/delete-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/delete-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/delete-row-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/delete-row-icon.js +0 -0
- /package/dist/{components → component}/Icons/double-quotes-l-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/double-quotes-l-icon.js +0 -0
- /package/dist/{components → component}/Icons/download-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/download-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/download-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/download-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/draggable-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/draggable-icon.js +0 -0
- /package/dist/{components → component}/Icons/edit-box-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/edit-box-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/edit-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/edit-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/emotion-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/emotion-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/eraser-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/eraser-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/error-warning-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/error-warning-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/expand-horizontal-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/expand-horizontal-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/expend-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/expend-icon.js +0 -0
- /package/dist/{components → component}/Icons/export-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/export-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/eye-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/eye-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/file-copy-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/file-copy-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/file-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/file-icon.js +0 -0
- /package/dist/{components → component}/Icons/file-upload-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/file-upload-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/flip-grid-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/flip-grid-icon.js +0 -0
- /package/dist/{components → component}/Icons/flip-left-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/flip-left-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/flip-right-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/flip-right-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/flow-chart-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/flow-chart-icon.js +0 -0
- /package/dist/{components → component}/Icons/folder-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/folder-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/font-color-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/font-color-icon.js +0 -0
- /package/dist/{components → component}/Icons/font-family-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/font-family-icon.js +0 -0
- /package/dist/{components → component}/Icons/font-size-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/font-size-icon.js +0 -0
- /package/dist/{components → component}/Icons/format-clear-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/format-clear-icon.js +0 -0
- /package/dist/{components → component}/Icons/formula-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/formula-icon.js +0 -0
- /package/dist/{components → component}/Icons/fullscreen-exit-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/fullscreen-exit-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/fullscreen-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/fullscreen-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/functions-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/functions-icon.js +0 -0
- /package/dist/{components → component}/Icons/game-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/game-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-1-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-1-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-3-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-3-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-4-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-4-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-5-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-5-icon.js +0 -0
- /package/dist/{components → component}/Icons/h-6-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/h-6-icon.js +0 -0
- /package/dist/{components → component}/Icons/heading-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/heading-icon.js +0 -0
- /package/dist/{components → component}/Icons/image-add-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/image-add-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/image-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/image-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/import-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/import-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/indent-decrease-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/indent-decrease-icon.js +0 -0
- /package/dist/{components → component}/Icons/indent-increase-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/indent-increase-icon.js +0 -0
- /package/dist/{components → component}/Icons/index.d.ts +0 -0
- /package/dist/{components → component}/Icons/index.js +0 -0
- /package/dist/{components → component}/Icons/information-2-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/information-2-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/information-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/information-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/insert-column-left-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/insert-column-left-icon.js +0 -0
- /package/dist/{components → component}/Icons/insert-column-right-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/insert-column-right-icon.js +0 -0
- /package/dist/{components → component}/Icons/insert-row-bottom-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/insert-row-bottom-icon.js +0 -0
- /package/dist/{components → component}/Icons/insert-row-top-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/insert-row-top-icon.js +0 -0
- /package/dist/{components → component}/Icons/italic-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/italic-icon.js +0 -0
- /package/dist/{components → component}/Icons/keyboard-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/keyboard-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/layout-left-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/layout-left-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/layout-top-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/layout-top-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/link-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/link-icon.js +0 -0
- /package/dist/{components → component}/Icons/link-unlink-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/link-unlink-icon.js +0 -0
- /package/dist/{components → component}/Icons/list-check-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/list-check-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/list-check-3-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/list-check-3-icon.js +0 -0
- /package/dist/{components → component}/Icons/list-ordered-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/list-ordered-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/list-unordered-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/list-unordered-icon.js +0 -0
- /package/dist/{components → component}/Icons/mark-pen-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/mark-pen-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/markdown-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/markdown-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/markup-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/markup-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/menu-fold-2-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/menu-fold-2-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/merge-cells-horizontal-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/merge-cells-horizontal-icon.js +0 -0
- /package/dist/{components → component}/Icons/merge-cells-vertical-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/merge-cells-vertical-icon.js +0 -0
- /package/dist/{components → component}/Icons/mind-map-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/mind-map-icon.js +0 -0
- /package/dist/{components → component}/Icons/more-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/more-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/movie-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/movie-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/music-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/music-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/node-tree-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/node-tree-icon.js +0 -0
- /package/dist/{components → component}/Icons/notification-3-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/notification-3-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/organization-chart-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/organization-chart-icon.js +0 -0
- /package/dist/{components → component}/Icons/pause-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/pause-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/play-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/play-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/question-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/question-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/quote-text-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/quote-text-icon.js +0 -0
- /package/dist/{components → component}/Icons/repeat-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/repeat-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/reset-left-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/reset-left-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/scissors-cut-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/scissors-cut-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/screenshot-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/screenshot-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/scroll-to-bottom-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/scroll-to-bottom-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/separator-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/separator-icon.js +0 -0
- /package/dist/{components → component}/Icons/share-box-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/share-box-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/sketching-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/sketching-icon.js +0 -0
- /package/dist/{components → component}/Icons/skip-down-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/skip-down-icon.js +0 -0
- /package/dist/{components → component}/Icons/skip-left-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/skip-left-icon.js +0 -0
- /package/dist/{components → component}/Icons/skip-right-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/skip-right-icon.js +0 -0
- /package/dist/{components → component}/Icons/skip-up-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/skip-up-icon.js +0 -0
- /package/dist/{components → component}/Icons/slash-commands-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/slash-commands-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/speed-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/speed-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/split-cells-horizontal-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/split-cells-horizontal-icon.js +0 -0
- /package/dist/{components → component}/Icons/split-cells-vertical-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/split-cells-vertical-icon.js +0 -0
- /package/dist/{components → component}/Icons/square-root-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/square-root-icon.js +0 -0
- /package/dist/{components → component}/Icons/strikethrough-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/strikethrough-icon.js +0 -0
- /package/dist/{components → component}/Icons/subscript-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/subscript-icon.js +0 -0
- /package/dist/{components → component}/Icons/superscript-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/superscript-icon.js +0 -0
- /package/dist/{components → component}/Icons/table-2-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/table-2-icon.js +0 -0
- /package/dist/{components → component}/Icons/table-view-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/table-view-icon.js +0 -0
- /package/dist/{components → component}/Icons/text-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/text-icon.js +0 -0
- /package/dist/{components → component}/Icons/text-wrap-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/text-wrap-icon.js +0 -0
- /package/dist/{components → component}/Icons/title-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/title-icon.js +0 -0
- /package/dist/{components → component}/Icons/tooltip-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/tooltip-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/underline-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/underline-icon.js +0 -0
- /package/dist/{components → component}/Icons/upload-cloud-2-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/upload-cloud-2-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/upload-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/upload-icon.js +0 -0
- /package/dist/{components → component}/Icons/user-smile-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/user-smile-fill-icon.js +0 -0
- /package/dist/{components → component}/Icons/volume-down-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/volume-down-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/volume-mute-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/volume-mute-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/volume-up-line-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/volume-up-line-icon.js +0 -0
- /package/dist/{components → component}/Icons/window-fill-icon.d.ts +0 -0
- /package/dist/{components → component}/Icons/window-fill-icon.js +0 -0
- /package/dist/{components → component}/ImageViewer/Item.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/Item.js +0 -0
- /package/dist/{components → component}/ImageViewer/Provider.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/Provider.js +0 -0
- /package/dist/{components → component}/ImageViewer/Toolbar.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/Toolbar.js +0 -0
- /package/dist/{components → component}/ImageViewer/context.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/context.js +0 -0
- /package/dist/{components → component}/ImageViewer/index.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/index.js +0 -0
- /package/dist/{components → component}/ImageViewer/styles.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/styles.js +0 -0
- /package/dist/{components → component}/ImageViewer/types.d.ts +0 -0
- /package/dist/{components → component}/ImageViewer/types.js +0 -0
- /package/dist/{components → component}/Toolbar/EditorAlignSelect.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorCode.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontBgColor.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontBgColor.js +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontColor.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontColor.js +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontSize.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorFontSize.js +0 -0
- /package/dist/{components → component}/Toolbar/EditorHeading.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorInsert/index.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorListSelect.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorMath.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorMore/NotificationDialog.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorScript.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/EditorVerticalAlignSelect.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/Item.d.ts +0 -0
- /package/dist/{components → component}/Toolbar/TableSizePicker.d.ts +0 -0
- /package/dist/{components → component}/index.d.ts +0 -0
- /package/dist/{components → component}/index.js +0 -0
- /package/dist/{constants → contants}/highlight.d.ts +0 -0
- /package/dist/{constants → contants}/highlight.js +0 -0
- /package/dist/{constants → contants}/markdown-placeholder.d.ts +0 -0
- /package/dist/{constants → contants}/markdown-placeholder.js +0 -0
- /package/dist/{constants → contants}/placeholder.d.ts +0 -0
- /package/dist/{constants → contants}/placeholder.js +0 -0
- /package/dist/{constants → contants}/shortcut-key.d.ts +0 -0
- /package/dist/{constants → contants}/shortcut-key.js +0 -0
- /package/dist/{constants → contants}/slash-commands.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Alert/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Attachment/AttachmentContent.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/CodeBlock/Readonly.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/CodeBlock/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/DrawPanel/ExcalidrawEditor.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/DrawPanel/ExcalidrawEditor.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/DrawPanel/Modal.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/DrawPanel/Modal.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/EmojiList/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/EmojiList/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/FlipGrid/ColumnView.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/FlipGrid/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/FlipGrid/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/FlipGrid/utils.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/FlipGrid/utils.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/Edit.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/FlowDiagram.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/FlowDiagram.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/Insert.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/Readonly.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/Readonly.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/useMermaidRender.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/useMermaidRender.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/utils.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Flow/utils.js +0 -0
- /package/dist/{features/media/iframe → extension/component/Iframe}/Readonly.d.ts +0 -0
- /package/dist/{features/media/iframe → extension/component/Iframe}/Readonly.js +0 -0
- /package/dist/{features/media/image → extension/component/Image}/Crop.js +0 -0
- /package/dist/{features/media/image → extension/component/Image}/Readonly.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Link/Markdown.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Mathematics/block/Readonly.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Mathematics/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Mathematics/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Mathematics/inline/Readonly.js +0 -0
- /package/dist/{editor-core/extensions → extension}/component/MentionList/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/MentionList/index.js +0 -0
- /package/dist/{features/table → extension/component}/TableCellHandleMenu/index.d.ts +0 -0
- /package/dist/{features/table → extension/component}/TableExtendButton/TableExtendButton.css +0 -0
- /package/dist/{features/table → extension/component}/TableExtendButton/use-table-extend-row-column.d.ts +0 -0
- /package/dist/{features/table → extension/component}/TableExtendButton/use-table-extend-row-column.js +0 -0
- /package/dist/{features/table → extension/component}/TableHandle/TableHandleMenu.css +0 -0
- /package/dist/{features/table → extension/component}/TableHandle/use-table-handle-positioning.d.ts +0 -0
- /package/dist/{features/table → extension/component}/TableHandle/use-table-handle-state.js +0 -0
- /package/dist/{features/table → extension/component}/TableSelectionOverlay/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Tooltip/EditPopover.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/component/Tooltip/index.d.ts +0 -0
- /package/dist/{features/media/video → extension/component/Video}/Readonly.d.ts +0 -0
- /package/dist/{features/media/video → extension/component/Video}/Readonly.js +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/AiWriting.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/AiWriting.js +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/SlashCommands.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/SlashCommands.js +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/StructuredDiff.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/extension/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/mark/Code.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/mark/Code.js +0 -0
- /package/dist/{editor-core/extensions → extension}/mark/Tooltip.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/mark/Tooltip.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Alert.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Alert.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/CodeBlockLowlight.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Details.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Details.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/DrawPanel.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Emoji.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Emoji.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/FlipGrid.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/FlipGrid.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Flow/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/HorizontalRule.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/HorizontalRule.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Indent.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Indent.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/InlineUploadProgress.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/InlineUploadProgress.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/autolink.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/autolink.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/clickHandler.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/clickHandler.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/pasteHandler.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/pasteHandler.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/whitespace.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/helpers/whitespace.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Link/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/ListKit.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Mention.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Script.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Script.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Table.d.ts +0 -0
- /package/dist/{features/table/plugin → extension/node/TableHandler}/create-image.d.ts +0 -0
- /package/dist/{features/table/plugin → extension/node/TableHandler}/create-image.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/TableOfContents/plugin.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/TableOfContents/types.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/TableOfContents/types.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/TableOfContents/util.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/TableOfContents/util.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/UploadProgress.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/UploadProgress.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/VerticalAlign.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/VerticalAlign.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/YamlFormat.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/YamlFormat.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Youtube.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/Youtube.js +0 -0
- /package/dist/{editor-core/extensions → extension}/node/index.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/node/index.js +0 -0
- /package/dist/{editor-core/extensions → extension}/suggestion/emoji.d.ts +0 -0
- /package/dist/{editor-core/extensions → extension}/suggestion/emoji.js +0 -0
- /package/dist/{types → type}/index.d.ts +0 -0
- /package/dist/{types → type}/index.js +0 -0
- /package/dist/{utils → util}/decorations.d.ts +0 -0
- /package/dist/{utils → util}/decorations.js +0 -0
- /package/dist/{utils → util}/fileDownload.d.ts +0 -0
- /package/dist/{utils → util}/fileDownload.js +0 -0
- /package/dist/{utils → util}/floating.d.ts +0 -0
- /package/dist/{utils → util}/floating.js +0 -0
- /package/dist/{utils → util}/linewiseConvert.d.ts +0 -0
- /package/dist/{utils → util}/linewiseConvert.js +0 -0
- /package/dist/{utils → util}/shortcutKey.d.ts +0 -0
- /package/dist/{utils → util}/structuredDiff.d.ts +0 -0
- /package/dist/{utils → util}/structuredDiff.js +0 -0
- /package/dist/{utils → util}/table-utils.d.ts +0 -0
- /package/dist/{utils → util}/table-utils.js +0 -0
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
export var TIPTAP_EXTENSION_CATALOG = [{
|
|
2
|
-
id: 'StarterKit',
|
|
3
|
-
layer: 'core',
|
|
4
|
-
maintenanceType: 'official-core',
|
|
5
|
-
upstreamPackage: '@tiptap/starter-kit',
|
|
6
|
-
files: ['src/extension/builders.tsx'],
|
|
7
|
-
rationale: 'Core upstream bundle kept as the editor baseline.',
|
|
8
|
-
reviewOnUpgrade: ['Check disabled sub-extensions and StarterKit defaults.']
|
|
9
|
-
}, {
|
|
10
|
-
id: 'Markdown',
|
|
11
|
-
layer: 'core',
|
|
12
|
-
maintenanceType: 'official-core',
|
|
13
|
-
upgradeDecision: 'partially-aligned',
|
|
14
|
-
reviewedForVersion: '3.20.2',
|
|
15
|
-
decisionNotes: ['Markdown runtime is upgraded to 3.20.2.', 'Local markdown editor synchronization and fenced-code fallbacks are still intentionally retained.'],
|
|
16
|
-
upstreamPackage: '@tiptap/markdown',
|
|
17
|
-
files: ['src/extension/builders.tsx', 'src/EditorMarkdown/index.tsx'],
|
|
18
|
-
rationale: 'Upstream markdown parser/serializer used directly.',
|
|
19
|
-
reviewOnUpgrade: ['Re-run markdown roundtrip tests and empty paragraph scenarios.']
|
|
20
|
-
}, {
|
|
21
|
-
id: 'Highlight',
|
|
22
|
-
layer: 'core',
|
|
23
|
-
maintenanceType: 'official-wrapper',
|
|
24
|
-
upstreamPackage: '@tiptap/extension-highlight',
|
|
25
|
-
files: ['src/extension/builders.tsx'],
|
|
26
|
-
rationale: 'Thin configuration wrapper over upstream highlight.',
|
|
27
|
-
reviewOnUpgrade: ['Check mark compatibility and multicolor behavior.']
|
|
28
|
-
}, {
|
|
29
|
-
id: 'TextAlign',
|
|
30
|
-
layer: 'core',
|
|
31
|
-
maintenanceType: 'official-wrapper',
|
|
32
|
-
upstreamPackage: '@tiptap/extension-text-align',
|
|
33
|
-
files: ['src/extension/builders.tsx'],
|
|
34
|
-
rationale: 'Thin wrapper for paragraph/heading alignment.',
|
|
35
|
-
reviewOnUpgrade: ['Check command names and supported node types.']
|
|
36
|
-
}, {
|
|
37
|
-
id: 'CharacterCount',
|
|
38
|
-
layer: 'core',
|
|
39
|
-
maintenanceType: 'official-wrapper',
|
|
40
|
-
upstreamPackage: '@tiptap/extensions',
|
|
41
|
-
files: ['src/extension/builders.tsx'],
|
|
42
|
-
rationale: 'Upstream extension configured with local limits.',
|
|
43
|
-
reviewOnUpgrade: ['Confirm storage shape and limit behavior.']
|
|
44
|
-
}, {
|
|
45
|
-
id: 'Placeholder',
|
|
46
|
-
layer: 'core',
|
|
47
|
-
maintenanceType: 'official-wrapper',
|
|
48
|
-
upstreamPackage: '@tiptap/extensions',
|
|
49
|
-
files: ['src/extension/builders.tsx'],
|
|
50
|
-
rationale: 'Upstream placeholder with local placeholder mapping.',
|
|
51
|
-
reviewOnUpgrade: ['Check placeholder callback signature and storage access.']
|
|
52
|
-
}, {
|
|
53
|
-
id: 'InvisibleCharacters',
|
|
54
|
-
layer: 'editable',
|
|
55
|
-
maintenanceType: 'official-core',
|
|
56
|
-
upstreamPackage: '@tiptap/extension-invisible-characters',
|
|
57
|
-
files: ['src/extension/builders.tsx'],
|
|
58
|
-
rationale: 'Pure upstream editing helper.',
|
|
59
|
-
reviewOnUpgrade: ['Check storage typings and display defaults.']
|
|
60
|
-
}, {
|
|
61
|
-
id: 'CodeExtension',
|
|
62
|
-
layer: 'core',
|
|
63
|
-
maintenanceType: 'compat-patch',
|
|
64
|
-
upgradeDecision: 'needs-follow-up',
|
|
65
|
-
nextUpgradeAction: 'try-remove',
|
|
66
|
-
reviewedForVersion: '3.20.2',
|
|
67
|
-
decisionNotes: ['Still required locally after the 3.20.2 upgrade.'],
|
|
68
|
-
upstreamPackage: '@tiptap/extension-code',
|
|
69
|
-
files: ['src/extension/mark/Code.tsx', 'src/extension/builders.tsx'],
|
|
70
|
-
rationale: 'Overrides upstream mark excludes so code can coexist with textStyle marks.',
|
|
71
|
-
reviewOnUpgrade: ['Compare with upstream code mark behavior and remove if officially supported.']
|
|
72
|
-
}, {
|
|
73
|
-
id: 'ImeComposition',
|
|
74
|
-
layer: 'core',
|
|
75
|
-
maintenanceType: 'compat-patch',
|
|
76
|
-
upgradeDecision: 'carry-forward',
|
|
77
|
-
nextUpgradeAction: 'review-only',
|
|
78
|
-
reviewedForVersion: '3.20.2',
|
|
79
|
-
decisionNotes: ['Retained as the shared IME composition contract for editor and TOC behavior.'],
|
|
80
|
-
files: ['src/extension/extension/ImeComposition.ts', 'src/extension/extension/ime-shared.ts', 'src/extension/builders.tsx'],
|
|
81
|
-
rationale: 'Protects composition/input behavior around editor IME flows and provides shared composition meta semantics for dependent features.',
|
|
82
|
-
reviewOnUpgrade: ['Re-test Chinese/Japanese/Korean input after each Tiptap upgrade.', 'Verify Safari deleteCompositionText handling.', 'Verify dependent features such as TOC still honor composition meta.']
|
|
83
|
-
}, {
|
|
84
|
-
id: 'ListExtension',
|
|
85
|
-
layer: 'core',
|
|
86
|
-
maintenanceType: 'official-wrapper',
|
|
87
|
-
upgradeDecision: 'partially-aligned',
|
|
88
|
-
nextUpgradeAction: 'review-only',
|
|
89
|
-
reviewedForVersion: '3.20.2',
|
|
90
|
-
decisionNotes: ['Kept as a thin wrapper.', 'Local task-item DOM semantics were corrected and nested list drag-handle behavior was reviewed.'],
|
|
91
|
-
files: ['src/extension/node/ListKit.tsx', 'src/extension/node/list-shared.ts', 'src/extension/builders.tsx'],
|
|
92
|
-
rationale: 'Thin wrapper around upstream ListKit with local DOM semantics for ordered, bullet, task list, and task item nodes.',
|
|
93
|
-
reviewOnUpgrade: ['Compare task list/task item DOM attributes and nested list behavior against upstream list/task-item fixes.']
|
|
94
|
-
}, {
|
|
95
|
-
id: 'CodeBlockLowlightExtension',
|
|
96
|
-
layer: 'core',
|
|
97
|
-
maintenanceType: 'business-extension',
|
|
98
|
-
upgradeDecision: 'partially-aligned',
|
|
99
|
-
nextUpgradeAction: 'review-only',
|
|
100
|
-
reviewedForVersion: '3.20.2',
|
|
101
|
-
decisionNotes: ['Aligned with safer named-import runtime behavior.', 'Local title metadata and mermaid-to-flow conversion remain intentionally retained.'],
|
|
102
|
-
files: ['src/extension/node/CodeBlockLowlight.tsx', 'src/extension/component/CodeBlock/index.tsx'],
|
|
103
|
-
rationale: 'Custom code block behavior adds title metadata, custom node views, and markdown-to-flow conversion on top of upstream lowlight.',
|
|
104
|
-
reviewOnUpgrade: ['Compare lowlight runtime fixes with upstream, but preserve title UI and mermaid/flow conversion behavior.']
|
|
105
|
-
}, {
|
|
106
|
-
id: 'TableExtension',
|
|
107
|
-
layer: 'core',
|
|
108
|
-
maintenanceType: 'compat-patch',
|
|
109
|
-
upgradeDecision: 'partially-aligned',
|
|
110
|
-
nextUpgradeAction: 'review-only',
|
|
111
|
-
reviewedForVersion: '3.20.2',
|
|
112
|
-
decisionNotes: ['Still required locally.', 'Read-only drag protections and editable-only table UI mounting were tightened during the upgrade.'],
|
|
113
|
-
files: ['src/extension/node/Table.tsx', 'src/extension/node/TableHandler/*'],
|
|
114
|
-
rationale: 'Deep table override with local drag/resize/handle behavior.',
|
|
115
|
-
reviewOnUpgrade: ['Audit drag handle, selection, resize, and nested table behavior against upstream.']
|
|
116
|
-
}, {
|
|
117
|
-
id: 'InlineLinkExtension',
|
|
118
|
-
layer: 'core',
|
|
119
|
-
maintenanceType: 'business-extension',
|
|
120
|
-
upgradeDecision: 'partially-aligned',
|
|
121
|
-
nextUpgradeAction: 'keep-business',
|
|
122
|
-
reviewedForVersion: '3.20.2',
|
|
123
|
-
decisionNotes: ['Retains local text/icon/block display modes.', 'Markdown output and title semantics were clarified to avoid conflating local display text with upstream HTML title behavior.'],
|
|
124
|
-
files: ['src/extension/node/Link/index.tsx', 'src/extension/component/Link/*'],
|
|
125
|
-
rationale: 'Started from upstream link logic but now carries product-specific text/icon/block display modes and custom node view behavior.',
|
|
126
|
-
reviewOnUpgrade: ['Compare title, click, paste, and markdown behavior with upstream link releases without removing local multi-shape rendering.', 'Keep in mind that local title currently maps to display text, not upstream HTML title semantics.']
|
|
127
|
-
}, {
|
|
128
|
-
id: 'BlockLinkExtension',
|
|
129
|
-
layer: 'core',
|
|
130
|
-
maintenanceType: 'business-extension',
|
|
131
|
-
files: ['src/extension/node/Link/index.tsx', 'src/extension/component/Link/*'],
|
|
132
|
-
rationale: 'Block-style link is a product-specific node shape.',
|
|
133
|
-
reviewOnUpgrade: ['Keep, but verify it still composes with upstream link parser changes.']
|
|
134
|
-
}, {
|
|
135
|
-
id: 'ImageExtension',
|
|
136
|
-
layer: 'core',
|
|
137
|
-
maintenanceType: 'business-extension',
|
|
138
|
-
upgradeDecision: 'partially-aligned',
|
|
139
|
-
nextUpgradeAction: 'review-only',
|
|
140
|
-
reviewedForVersion: '3.20.2',
|
|
141
|
-
decisionNotes: ['Explicit drag-handle semantics were restored so upstream atom/leaf drag fixes can apply.'],
|
|
142
|
-
files: ['src/extension/node/Image.tsx', 'src/extension/component/Image/*'],
|
|
143
|
-
rationale: 'Image node includes product-specific upload, crop, toolbar, and width behavior.',
|
|
144
|
-
reviewOnUpgrade: ['Compare drag handle, node view, and markdown/media parsing with upstream image fixes.']
|
|
145
|
-
}, {
|
|
146
|
-
id: 'VideoExtension',
|
|
147
|
-
layer: 'core',
|
|
148
|
-
maintenanceType: 'business-extension',
|
|
149
|
-
upgradeDecision: 'partially-aligned',
|
|
150
|
-
reviewedForVersion: '3.20.2',
|
|
151
|
-
decisionNotes: ['Aligned with shared media drag-handle and resize behavior after the upgrade.'],
|
|
152
|
-
files: ['src/extension/node/Video.tsx', 'src/extension/component/Video/*'],
|
|
153
|
-
rationale: 'Video node is a custom business extension with upload and resize UI.',
|
|
154
|
-
reviewOnUpgrade: ['Check media node view behavior after upstream drag-handle and selection updates.']
|
|
155
|
-
}, {
|
|
156
|
-
id: 'AudioExtension',
|
|
157
|
-
layer: 'core',
|
|
158
|
-
maintenanceType: 'business-extension',
|
|
159
|
-
upgradeDecision: 'needs-follow-up',
|
|
160
|
-
nextUpgradeAction: 'review-only',
|
|
161
|
-
reviewedForVersion: '3.20.2',
|
|
162
|
-
decisionNotes: ['Still fully custom.', 'Should be compared with the upstream native audio extension in a later pass.'],
|
|
163
|
-
files: ['src/extension/node/Audio.tsx', 'src/extension/component/Audio/*'],
|
|
164
|
-
rationale: 'Custom audio business node.',
|
|
165
|
-
reviewOnUpgrade: ['Compare against upstream native audio extension to decide whether any logic can be retired.']
|
|
166
|
-
}, {
|
|
167
|
-
id: 'IframeExtension',
|
|
168
|
-
layer: 'core',
|
|
169
|
-
maintenanceType: 'business-extension',
|
|
170
|
-
upgradeDecision: 'partially-aligned',
|
|
171
|
-
nextUpgradeAction: 'review-only',
|
|
172
|
-
reviewedForVersion: '3.20.2',
|
|
173
|
-
decisionNotes: ['Aligned with shared media drag-handle and resize behavior after the upgrade.'],
|
|
174
|
-
files: ['src/extension/node/Iframe.tsx', 'src/extension/component/Iframe/*'],
|
|
175
|
-
rationale: 'Custom iframe node with resize and validation behavior.',
|
|
176
|
-
reviewOnUpgrade: ['Check node selection, resize, and URL validation after upgrades.']
|
|
177
|
-
}, {
|
|
178
|
-
id: 'InlineAttachmentExtension',
|
|
179
|
-
layer: 'core',
|
|
180
|
-
maintenanceType: 'business-extension',
|
|
181
|
-
files: ['src/extension/node/Attachment.tsx', 'src/extension/component/Attachment/*'],
|
|
182
|
-
rationale: 'Attachment rendering and metadata are product-specific.',
|
|
183
|
-
reviewOnUpgrade: ['Keep schema-driven insertion path aligned with media/file handler changes.']
|
|
184
|
-
}, {
|
|
185
|
-
id: 'BlockAttachmentExtension',
|
|
186
|
-
layer: 'core',
|
|
187
|
-
maintenanceType: 'business-extension',
|
|
188
|
-
files: ['src/extension/node/Attachment.tsx', 'src/extension/component/Attachment/*'],
|
|
189
|
-
rationale: 'Block attachment is a product-specific node type.',
|
|
190
|
-
reviewOnUpgrade: ['Keep schema and upload flow aligned with markdown/html parser behavior.']
|
|
191
|
-
}, {
|
|
192
|
-
id: 'CustomBlockMathExtension',
|
|
193
|
-
layer: 'core',
|
|
194
|
-
maintenanceType: 'compat-patch',
|
|
195
|
-
upgradeDecision: 'needs-follow-up',
|
|
196
|
-
nextUpgradeAction: 'try-remove',
|
|
197
|
-
reviewedForVersion: '3.20.2',
|
|
198
|
-
decisionNotes: ['Still retained after the 3.20.2 upgrade; no safe removal was identified yet.'],
|
|
199
|
-
files: ['src/extension/node/Mathematics.tsx', 'src/extension/component/Mathematics/*'],
|
|
200
|
-
rationale: 'Math rendering and migration logic compensate for historical content formats.',
|
|
201
|
-
reviewOnUpgrade: ['Compare markdown parsing and migration needs against upstream mathematics releases.']
|
|
202
|
-
}, {
|
|
203
|
-
id: 'CustomInlineMathExtension',
|
|
204
|
-
layer: 'core',
|
|
205
|
-
maintenanceType: 'compat-patch',
|
|
206
|
-
upgradeDecision: 'needs-follow-up',
|
|
207
|
-
nextUpgradeAction: 'try-remove',
|
|
208
|
-
reviewedForVersion: '3.20.2',
|
|
209
|
-
decisionNotes: ['Still retained after the 3.20.2 upgrade; no safe removal was identified yet.'],
|
|
210
|
-
files: ['src/extension/node/Mathematics.tsx', 'src/extension/component/Mathematics/*'],
|
|
211
|
-
rationale: 'Inline math shares the same historical compatibility concerns as block math.',
|
|
212
|
-
reviewOnUpgrade: ['Re-test markdown, selection, and node view behavior.']
|
|
213
|
-
}, {
|
|
214
|
-
id: 'VerticalAlign',
|
|
215
|
-
layer: 'core',
|
|
216
|
-
maintenanceType: 'business-extension',
|
|
217
|
-
files: ['src/extension/node/VerticalAlign.tsx', 'src/extension/builders.tsx'],
|
|
218
|
-
rationale: 'Vertical alignment is a local editor capability on top of textStyle.',
|
|
219
|
-
reviewOnUpgrade: ['Check command names and mark application with upstream textStyle changes.']
|
|
220
|
-
}, {
|
|
221
|
-
id: 'Indent',
|
|
222
|
-
layer: 'optional-core',
|
|
223
|
-
maintenanceType: 'business-extension',
|
|
224
|
-
files: ['src/extension/node/Indent.tsx', 'src/extension/builders.tsx'],
|
|
225
|
-
rationale: 'Indent behavior spans many custom nodes and is product-specific.',
|
|
226
|
-
reviewOnUpgrade: ['Check node coverage after adding or removing schemas.']
|
|
227
|
-
}, {
|
|
228
|
-
id: 'TableOfContents',
|
|
229
|
-
layer: 'core',
|
|
230
|
-
maintenanceType: 'product-support',
|
|
231
|
-
upgradeDecision: 'carry-forward',
|
|
232
|
-
nextUpgradeAction: 'review-only',
|
|
233
|
-
reviewedForVersion: '3.20.2',
|
|
234
|
-
decisionNotes: ['Still depends on the shared IME composition contract and remains a product-support concern.'],
|
|
235
|
-
files: ['src/extension/node/TableOfContents/*'],
|
|
236
|
-
rationale: 'TOC is a product-side support feature, not a core editing schema.',
|
|
237
|
-
reviewOnUpgrade: ['Check heading scanning, IME timing, and scroll sync.', 'Verify TOC still respects shared IME composition meta contracts.']
|
|
238
|
-
}, {
|
|
239
|
-
id: 'FileHandlerExtension',
|
|
240
|
-
layer: 'editable',
|
|
241
|
-
maintenanceType: 'product-support',
|
|
242
|
-
upgradeDecision: 'partially-aligned',
|
|
243
|
-
nextUpgradeAction: 'review-only',
|
|
244
|
-
reviewedForVersion: '3.20.2',
|
|
245
|
-
decisionNotes: ['Schema-based file insertion is retained and aligned with the upgraded markdown/html flow.'],
|
|
246
|
-
files: ['src/extension/node/FileHandler.tsx', 'src/util/fileHandler.ts'],
|
|
247
|
-
rationale: 'File ingestion pipeline connects uploads to schema insertion.',
|
|
248
|
-
reviewOnUpgrade: ['Re-check paste/drop transformation APIs and schema insertion flow.']
|
|
249
|
-
}, {
|
|
250
|
-
id: 'UploadProgressExtension',
|
|
251
|
-
layer: 'editable',
|
|
252
|
-
maintenanceType: 'product-support',
|
|
253
|
-
files: ['src/extension/node/UploadProgress.tsx', 'src/extension/component/UploadProgress/*'],
|
|
254
|
-
rationale: 'UI-only support node for upload lifecycle.',
|
|
255
|
-
reviewOnUpgrade: ['Keep aligned with file handler and media upload lifecycle.']
|
|
256
|
-
}, {
|
|
257
|
-
id: 'InlineUploadProgressExtension',
|
|
258
|
-
layer: 'core',
|
|
259
|
-
maintenanceType: 'product-support',
|
|
260
|
-
files: ['src/extension/node/InlineUploadProgress.tsx'],
|
|
261
|
-
rationale: 'Inline upload feedback support node.',
|
|
262
|
-
reviewOnUpgrade: ['Keep schema and rendering aligned with upload flow.']
|
|
263
|
-
}, {
|
|
264
|
-
id: 'SlashCommands',
|
|
265
|
-
layer: 'editable',
|
|
266
|
-
maintenanceType: 'product-support',
|
|
267
|
-
files: ['src/extension/extension/SlashCommands.ts', 'src/extension/suggestion/slash.ts'],
|
|
268
|
-
rationale: 'Command menu is an editor product entrypoint built on suggestion.',
|
|
269
|
-
reviewOnUpgrade: ['Compare suggestion open/close behavior and renderer lifecycle with upstream changes.']
|
|
270
|
-
}, {
|
|
271
|
-
id: 'MentionExtension',
|
|
272
|
-
layer: 'feature',
|
|
273
|
-
maintenanceType: 'official-wrapper',
|
|
274
|
-
files: ['src/extension/node/Mention.tsx', 'src/extension/suggestion/mention.ts'],
|
|
275
|
-
rationale: 'Mention is mostly upstream capability with local data and position handling.',
|
|
276
|
-
reviewOnUpgrade: ['Check suggestion renderer lifecycle and remote filter behavior.']
|
|
277
|
-
}, {
|
|
278
|
-
id: 'AiWritingExtension',
|
|
279
|
-
layer: 'editable',
|
|
280
|
-
maintenanceType: 'product-support',
|
|
281
|
-
files: ['src/extension/extension/AiWriting.ts', 'src/hook/index.ts'],
|
|
282
|
-
rationale: 'AI writing is a product-side capability, not an upstream editing primitive.',
|
|
283
|
-
reviewOnUpgrade: ['Check keyboard interception and storage access.']
|
|
284
|
-
}, {
|
|
285
|
-
id: 'StructuredDiffExtension',
|
|
286
|
-
layer: 'readonly',
|
|
287
|
-
maintenanceType: 'product-support',
|
|
288
|
-
files: ['src/extension/extension/StructuredDiff.ts', 'src/EditorDiff/index.tsx'],
|
|
289
|
-
rationale: 'Readonly diff view is product assembly behavior.',
|
|
290
|
-
reviewOnUpgrade: ['Keep readonly editor and diff commands aligned with upstream transaction behavior.']
|
|
291
|
-
}, {
|
|
292
|
-
id: 'YoutubeExtension',
|
|
293
|
-
layer: 'feature',
|
|
294
|
-
maintenanceType: 'official-wrapper',
|
|
295
|
-
upstreamPackage: '@tiptap/extension-youtube',
|
|
296
|
-
files: ['src/extension/node/Youtube.tsx', 'src/extension/builders.tsx'],
|
|
297
|
-
rationale: 'Thin wrapper around upstream YouTube extension.',
|
|
298
|
-
reviewOnUpgrade: ['Check embed URL normalization and command options.']
|
|
299
|
-
}, {
|
|
300
|
-
id: 'ExcalidrawExtension',
|
|
301
|
-
layer: 'editable',
|
|
302
|
-
maintenanceType: 'business-extension',
|
|
303
|
-
files: ['src/extension/node/DrawPanel.tsx', 'src/extension/component/DrawPanel/*'],
|
|
304
|
-
rationale: 'Diagram insertion workflow is product-specific.',
|
|
305
|
-
reviewOnUpgrade: ['Check upload integration and node replacement flow.']
|
|
306
|
-
}];
|
|
307
|
-
export var getExtensionCatalogByMaintenanceType = function getExtensionCatalogByMaintenanceType(maintenanceType) {
|
|
308
|
-
return TIPTAP_EXTENSION_CATALOG.filter(function (item) {
|
|
309
|
-
return item.maintenanceType === maintenanceType;
|
|
310
|
-
});
|
|
311
|
-
};
|
|
312
|
-
export var getExtensionCatalogByLayer = function getExtensionCatalogByLayer(layer) {
|
|
313
|
-
return TIPTAP_EXTENSION_CATALOG.filter(function (item) {
|
|
314
|
-
return item.layer === layer;
|
|
315
|
-
});
|
|
316
|
-
};
|
|
317
|
-
export var getExtensionCatalogByUpgradeDecision = function getExtensionCatalogByUpgradeDecision(decision) {
|
|
318
|
-
return TIPTAP_EXTENSION_CATALOG.filter(function (item) {
|
|
319
|
-
return item.upgradeDecision === decision;
|
|
320
|
-
});
|
|
321
|
-
};
|
|
322
|
-
export var getExtensionCatalogByNextUpgradeAction = function getExtensionCatalogByNextUpgradeAction(nextUpgradeAction) {
|
|
323
|
-
return TIPTAP_EXTENSION_CATALOG.filter(function (item) {
|
|
324
|
-
return item.nextUpgradeAction === nextUpgradeAction;
|
|
325
|
-
});
|
|
326
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface AudioAttributes {
|
|
2
|
-
src: string;
|
|
3
|
-
title?: string | null;
|
|
4
|
-
poster?: string | null;
|
|
5
|
-
controls: boolean;
|
|
6
|
-
autoplay: boolean;
|
|
7
|
-
loop: boolean;
|
|
8
|
-
muted: boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare const createAudioAttributes: (base: AudioAttributes, overrides?: Partial<AudioAttributes>) => AudioAttributes;
|
|
11
|
-
export declare const renderAudioMarkdown: (attrs: AudioAttributes) => string;
|
|
12
|
-
export declare const getAudioDownloadName: (attrs: Pick<AudioAttributes, 'src' | 'title'>) => string;
|
|
@@ -1,48 +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 ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
import { escapeHtmlAttribute } from "../../node/resource-shared";
|
|
8
|
-
export var createAudioAttributes = function createAudioAttributes(base) {
|
|
9
|
-
var _base$title, _base$poster;
|
|
10
|
-
var overrides = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
11
|
-
return _objectSpread({
|
|
12
|
-
src: base.src,
|
|
13
|
-
title: (_base$title = base.title) !== null && _base$title !== void 0 ? _base$title : null,
|
|
14
|
-
poster: (_base$poster = base.poster) !== null && _base$poster !== void 0 ? _base$poster : null,
|
|
15
|
-
controls: base.controls,
|
|
16
|
-
autoplay: base.autoplay,
|
|
17
|
-
loop: base.loop,
|
|
18
|
-
muted: base.muted
|
|
19
|
-
}, overrides);
|
|
20
|
-
};
|
|
21
|
-
export var renderAudioMarkdown = function renderAudioMarkdown(attrs) {
|
|
22
|
-
if (!attrs.src) {
|
|
23
|
-
return '';
|
|
24
|
-
}
|
|
25
|
-
var parts = ["src=\"".concat(escapeHtmlAttribute(attrs.src), "\"")];
|
|
26
|
-
if (attrs.title) {
|
|
27
|
-
parts.push("title=\"".concat(escapeHtmlAttribute(attrs.title), "\""));
|
|
28
|
-
}
|
|
29
|
-
if (attrs.poster) {
|
|
30
|
-
parts.push("poster=\"".concat(escapeHtmlAttribute(attrs.poster), "\""));
|
|
31
|
-
}
|
|
32
|
-
if (attrs.controls) {
|
|
33
|
-
parts.push('controls');
|
|
34
|
-
}
|
|
35
|
-
if (attrs.autoplay) {
|
|
36
|
-
parts.push('autoplay');
|
|
37
|
-
}
|
|
38
|
-
if (attrs.loop) {
|
|
39
|
-
parts.push('loop');
|
|
40
|
-
}
|
|
41
|
-
if (attrs.muted) {
|
|
42
|
-
parts.push('muted');
|
|
43
|
-
}
|
|
44
|
-
return "<audio ".concat(parts.join(' '), "></audio>");
|
|
45
|
-
};
|
|
46
|
-
export var getAudioDownloadName = function getAudioDownloadName(attrs) {
|
|
47
|
-
return attrs.title || attrs.src.split('/').pop() || 'audio.mp3';
|
|
48
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { UploadFunction } from '../../../../types';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export declare const useAudioUploadFields: ({ onUpload, onError, onAudioUploaded, onPosterUploaded, }: {
|
|
4
|
-
onUpload?: UploadFunction | undefined;
|
|
5
|
-
onError?: ((error: Error) => void) | undefined;
|
|
6
|
-
onAudioUploaded: (value: {
|
|
7
|
-
url: string;
|
|
8
|
-
fileName: string;
|
|
9
|
-
}) => void;
|
|
10
|
-
onPosterUploaded: (url: string) => void;
|
|
11
|
-
}) => {
|
|
12
|
-
audioInputRef: React.RefObject<HTMLInputElement>;
|
|
13
|
-
posterInputRef: React.RefObject<HTMLInputElement>;
|
|
14
|
-
uploadingAudio: boolean;
|
|
15
|
-
uploadingPoster: boolean;
|
|
16
|
-
audioUploadProgress: number;
|
|
17
|
-
openAudioPicker: () => void;
|
|
18
|
-
openPosterPicker: () => void;
|
|
19
|
-
handleAudioUpload: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
20
|
-
handlePosterUpload: (event: React.ChangeEvent<HTMLInputElement>) => Promise<void>;
|
|
21
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { useFileUploadField } from "../shared/upload-flow";
|
|
2
|
-
export var useAudioUploadFields = function useAudioUploadFields(_ref) {
|
|
3
|
-
var onUpload = _ref.onUpload,
|
|
4
|
-
onError = _ref.onError,
|
|
5
|
-
onAudioUploaded = _ref.onAudioUploaded,
|
|
6
|
-
onPosterUploaded = _ref.onPosterUploaded;
|
|
7
|
-
var _useFileUploadField = useFileUploadField({
|
|
8
|
-
onUpload: onUpload,
|
|
9
|
-
onError: onError,
|
|
10
|
-
trackProgress: true,
|
|
11
|
-
onUploaded: function onUploaded(_ref2) {
|
|
12
|
-
var url = _ref2.url,
|
|
13
|
-
file = _ref2.file;
|
|
14
|
-
onAudioUploaded({
|
|
15
|
-
url: url,
|
|
16
|
-
fileName: file.name
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}),
|
|
20
|
-
audioInputRef = _useFileUploadField.inputRef,
|
|
21
|
-
uploadingAudio = _useFileUploadField.uploading,
|
|
22
|
-
audioUploadProgress = _useFileUploadField.progress,
|
|
23
|
-
openAudioPicker = _useFileUploadField.openPicker,
|
|
24
|
-
handleAudioUpload = _useFileUploadField.handleChange;
|
|
25
|
-
var _useFileUploadField2 = useFileUploadField({
|
|
26
|
-
onUpload: onUpload,
|
|
27
|
-
onError: onError,
|
|
28
|
-
onUploaded: function onUploaded(_ref3) {
|
|
29
|
-
var url = _ref3.url;
|
|
30
|
-
onPosterUploaded(url);
|
|
31
|
-
}
|
|
32
|
-
}),
|
|
33
|
-
posterInputRef = _useFileUploadField2.inputRef,
|
|
34
|
-
uploadingPoster = _useFileUploadField2.uploading,
|
|
35
|
-
openPosterPicker = _useFileUploadField2.openPicker,
|
|
36
|
-
handlePosterUpload = _useFileUploadField2.handleChange;
|
|
37
|
-
return {
|
|
38
|
-
audioInputRef: audioInputRef,
|
|
39
|
-
posterInputRef: posterInputRef,
|
|
40
|
-
uploadingAudio: uploadingAudio,
|
|
41
|
-
uploadingPoster: uploadingPoster,
|
|
42
|
-
audioUploadProgress: audioUploadProgress,
|
|
43
|
-
openAudioPicker: openAudioPicker,
|
|
44
|
-
openPosterPicker: openPosterPicker,
|
|
45
|
-
handleAudioUpload: handleAudioUpload,
|
|
46
|
-
handlePosterUpload: handlePosterUpload
|
|
47
|
-
};
|
|
48
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { FileCopyLineIcon } from "../../../../components/Icons";
|
|
8
|
-
import { Box, Divider, Stack } from '@mui/material';
|
|
9
|
-
import { NodeViewContent, NodeViewWrapper } from '@tiptap/react';
|
|
10
|
-
import React, { memo, useState } from 'react';
|
|
11
|
-
import { DEFAULT_CODE_BLOCK_TITLE, useCodeBlockCopy } from "./shared";
|
|
12
|
-
var ReadonlyCodeBlock = /*#__PURE__*/memo(function (_ref) {
|
|
13
|
-
var node = _ref.node,
|
|
14
|
-
selected = _ref.selected;
|
|
15
|
-
var _useState = useState(false),
|
|
16
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
17
|
-
isHovering = _useState2[0],
|
|
18
|
-
setIsHovering = _useState2[1];
|
|
19
|
-
var attrs = node.attrs;
|
|
20
|
-
var _useCodeBlockCopy = useCodeBlockCopy(node.textContent || ''),
|
|
21
|
-
copyText = _useCodeBlockCopy.copyText,
|
|
22
|
-
handleCopy = _useCodeBlockCopy.handleCopy;
|
|
23
|
-
return /*#__PURE__*/React.createElement(NodeViewWrapper, {
|
|
24
|
-
className: "codeblock-wrapper ".concat(selected ? 'ProseMirror-selectednode' : ''),
|
|
25
|
-
"data-drag-handle": true,
|
|
26
|
-
onMouseEnter: function onMouseEnter() {
|
|
27
|
-
return setIsHovering(true);
|
|
28
|
-
},
|
|
29
|
-
onMouseLeave: function onMouseLeave() {
|
|
30
|
-
return setIsHovering(false);
|
|
31
|
-
}
|
|
32
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
33
|
-
sx: {
|
|
34
|
-
position: 'relative',
|
|
35
|
-
border: '1px solid',
|
|
36
|
-
borderColor: 'divider',
|
|
37
|
-
borderRadius: 'var(--mui-shape-borderRadius)',
|
|
38
|
-
overflow: 'hidden'
|
|
39
|
-
}
|
|
40
|
-
}, /*#__PURE__*/React.createElement(Stack, {
|
|
41
|
-
direction: "row",
|
|
42
|
-
alignItems: "center",
|
|
43
|
-
justifyContent: "space-between",
|
|
44
|
-
className: "codeblock-toolbar",
|
|
45
|
-
sx: {
|
|
46
|
-
position: 'absolute',
|
|
47
|
-
top: 0,
|
|
48
|
-
left: 0,
|
|
49
|
-
right: 0,
|
|
50
|
-
height: '1.25rem',
|
|
51
|
-
lineHeight: '1.25rem',
|
|
52
|
-
px: 2.5,
|
|
53
|
-
py: 2,
|
|
54
|
-
zIndex: 1,
|
|
55
|
-
color: 'text.tertiary',
|
|
56
|
-
borderBottom: '1px solid',
|
|
57
|
-
borderColor: 'divider'
|
|
58
|
-
}
|
|
59
|
-
}, /*#__PURE__*/React.createElement(Box, {
|
|
60
|
-
sx: {
|
|
61
|
-
flex: 1,
|
|
62
|
-
fontSize: '0.875rem',
|
|
63
|
-
letterSpacing: '0.01rem'
|
|
64
|
-
}
|
|
65
|
-
}, attrs.title || DEFAULT_CODE_BLOCK_TITLE), isHovering && /*#__PURE__*/React.createElement(Stack, {
|
|
66
|
-
direction: "row",
|
|
67
|
-
alignItems: "center",
|
|
68
|
-
gap: 0.5,
|
|
69
|
-
sx: {
|
|
70
|
-
fontSize: '0.75rem'
|
|
71
|
-
}
|
|
72
|
-
}, /*#__PURE__*/React.createElement(Box, null, attrs.language || 'Auto'), /*#__PURE__*/React.createElement(Divider, {
|
|
73
|
-
orientation: "vertical",
|
|
74
|
-
flexItem: true,
|
|
75
|
-
sx: {
|
|
76
|
-
height: '0.75rem',
|
|
77
|
-
ml: 1,
|
|
78
|
-
alignSelf: 'center',
|
|
79
|
-
borderColor: 'divider'
|
|
80
|
-
}
|
|
81
|
-
}), /*#__PURE__*/React.createElement(Stack, {
|
|
82
|
-
direction: "row",
|
|
83
|
-
alignItems: "center",
|
|
84
|
-
gap: 0.5,
|
|
85
|
-
onClick: handleCopy,
|
|
86
|
-
sx: {
|
|
87
|
-
px: 1,
|
|
88
|
-
py: 0.5,
|
|
89
|
-
borderRadius: 'var(--mui-shape-borderRadius)',
|
|
90
|
-
cursor: 'pointer',
|
|
91
|
-
userSelect: 'none',
|
|
92
|
-
bgcolor: 'inherit',
|
|
93
|
-
color: 'inherit'
|
|
94
|
-
}
|
|
95
|
-
}, /*#__PURE__*/React.createElement(FileCopyLineIcon, {
|
|
96
|
-
sx: {
|
|
97
|
-
fontSize: '0.75rem',
|
|
98
|
-
color: 'inherit'
|
|
99
|
-
}
|
|
100
|
-
}), /*#__PURE__*/React.createElement(Box, {
|
|
101
|
-
sx: {
|
|
102
|
-
lineHeight: 1
|
|
103
|
-
}
|
|
104
|
-
}, copyText)))), /*#__PURE__*/React.createElement(Box, {
|
|
105
|
-
component: 'pre',
|
|
106
|
-
sx: {
|
|
107
|
-
m: 0
|
|
108
|
-
}
|
|
109
|
-
}, /*#__PURE__*/React.createElement(NodeViewContent, {
|
|
110
|
-
as: "code",
|
|
111
|
-
className: "hljs",
|
|
112
|
-
style: {
|
|
113
|
-
backgroundColor: 'var(--mui-palette-background-paper3)',
|
|
114
|
-
color: 'var(--mui-palette-text-primary)',
|
|
115
|
-
padding: '3rem 1.25rem 0.75rem 1.25rem',
|
|
116
|
-
fontSize: '0.875rem',
|
|
117
|
-
lineHeight: '1.5',
|
|
118
|
-
whiteSpace: 'pre-wrap',
|
|
119
|
-
wordBreak: 'break-word'
|
|
120
|
-
}
|
|
121
|
-
}))));
|
|
122
|
-
});
|
|
123
|
-
ReadonlyCodeBlock.displayName = 'ReadonlyCodeBlock';
|
|
124
|
-
export default ReadonlyCodeBlock;
|