@ctzhian/tiptap 1.5.0 → 1.5.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/package.json +1 -1
- package/dist/Editor/demo.d.ts +0 -4
- package/dist/Editor/demo.js +0 -153
- package/dist/Editor/index.d.ts +0 -4
- package/dist/Editor/index.js +0 -21
- package/dist/EditorDiff/demo.d.ts +0 -4
- package/dist/EditorDiff/demo.js +0 -12
- package/dist/EditorDiff/index.d.ts +0 -7
- package/dist/EditorDiff/index.js +0 -24
- package/dist/EditorThemeProvider/index.d.ts +0 -11
- package/dist/EditorThemeProvider/index.js +0 -90
- package/dist/EditorToolbar/index.d.ts +0 -9
- package/dist/EditorToolbar/index.js +0 -325
- package/dist/asset/css/index.css +0 -165
- package/dist/asset/images/disk.png +0 -0
- package/dist/component/CustomBubbleMenu/SelectionText.d.ts +0 -9
- package/dist/component/CustomBubbleMenu/SelectionText.js +0 -292
- package/dist/component/CustomDragHandle/index.d.ts +0 -9
- package/dist/component/CustomDragHandle/index.js +0 -1345
- package/dist/component/CustomFloatingMenu/index.d.ts +0 -0
- package/dist/component/CustomFloatingMenu/index.js +0 -85
- package/dist/component/FloatingPopover/index.d.ts +0 -15
- package/dist/component/FloatingPopover/index.js +0 -108
- package/dist/component/Icons/ai-generate-2-icon.d.ts +0 -6
- package/dist/component/Icons/ai-generate-2-icon.js +0 -13
- package/dist/component/Icons/ai-generate-text-icon.d.ts +0 -6
- package/dist/component/Icons/ai-generate-text-icon.js +0 -13
- package/dist/component/Icons/align-bottom-icon.d.ts +0 -6
- package/dist/component/Icons/align-bottom-icon.js +0 -13
- package/dist/component/Icons/align-center-icon.d.ts +0 -6
- package/dist/component/Icons/align-center-icon.js +0 -13
- package/dist/component/Icons/align-justify-icon.d.ts +0 -6
- package/dist/component/Icons/align-justify-icon.js +0 -13
- package/dist/component/Icons/align-left-icon.d.ts +0 -6
- package/dist/component/Icons/align-left-icon.js +0 -13
- package/dist/component/Icons/align-right-icon.d.ts +0 -6
- package/dist/component/Icons/align-right-icon.js +0 -13
- package/dist/component/Icons/align-top-icon.d.ts +0 -6
- package/dist/component/Icons/align-top-icon.js +0 -13
- package/dist/component/Icons/align-vertically-icon.d.ts +0 -6
- package/dist/component/Icons/align-vertically-icon.js +0 -13
- package/dist/component/Icons/anticlockwise-line-icon.d.ts +0 -6
- package/dist/component/Icons/anticlockwise-line-icon.js +0 -13
- package/dist/component/Icons/arrow-down-s-line-icon.d.ts +0 -6
- package/dist/component/Icons/arrow-down-s-line-icon.js +0 -13
- package/dist/component/Icons/arrow-go-back-line-icon.d.ts +0 -6
- package/dist/component/Icons/arrow-go-back-line-icon.js +0 -13
- package/dist/component/Icons/arrow-go-forward-line-icon.d.ts +0 -6
- package/dist/component/Icons/arrow-go-forward-line-icon.js +0 -13
- package/dist/component/Icons/arrow-left-wide-line-icon.d.ts +0 -6
- package/dist/component/Icons/arrow-left-wide-line-icon.js +0 -13
- package/dist/component/Icons/at-line-icon.d.ts +0 -6
- package/dist/component/Icons/at-line-icon.js +0 -13
- package/dist/component/Icons/attachment-2-icon.d.ts +0 -6
- package/dist/component/Icons/attachment-2-icon.js +0 -13
- package/dist/component/Icons/attachment-line-icon.d.ts +0 -6
- package/dist/component/Icons/attachment-line-icon.js +0 -13
- package/dist/component/Icons/bold-icon.d.ts +0 -6
- package/dist/component/Icons/bold-icon.js +0 -13
- package/dist/component/Icons/brush-line-icon.d.ts +0 -6
- package/dist/component/Icons/brush-line-icon.js +0 -13
- package/dist/component/Icons/carousel-view-icon.d.ts +0 -6
- package/dist/component/Icons/carousel-view-icon.js +0 -13
- package/dist/component/Icons/checkbox-blank-circle-line-icon.d.ts +0 -6
- package/dist/component/Icons/checkbox-blank-circle-line-icon.js +0 -13
- package/dist/component/Icons/checkbox-circle-fill-icon.d.ts +0 -6
- package/dist/component/Icons/checkbox-circle-fill-icon.js +0 -13
- package/dist/component/Icons/checkbox-circle-line-icon.d.ts +0 -6
- package/dist/component/Icons/checkbox-circle-line-icon.js +0 -13
- package/dist/component/Icons/clockwise-line-icon.d.ts +0 -6
- package/dist/component/Icons/clockwise-line-icon.js +0 -13
- package/dist/component/Icons/close-circle-fill-icon.d.ts +0 -6
- package/dist/component/Icons/close-circle-fill-icon.js +0 -13
- package/dist/component/Icons/code-box-line-icon.d.ts +0 -6
- package/dist/component/Icons/code-box-line-icon.js +0 -13
- package/dist/component/Icons/code-line-icon.d.ts +0 -6
- package/dist/component/Icons/code-line-icon.js +0 -13
- package/dist/component/Icons/code-s-slash-line-icon.d.ts +0 -6
- package/dist/component/Icons/code-s-slash-line-icon.js +0 -13
- package/dist/component/Icons/copy-icon.d.ts +0 -6
- package/dist/component/Icons/copy-icon.js +0 -13
- package/dist/component/Icons/custom-size-icon.d.ts +0 -6
- package/dist/component/Icons/custom-size-icon.js +0 -13
- package/dist/component/Icons/delete-column-icon.d.ts +0 -6
- package/dist/component/Icons/delete-column-icon.js +0 -13
- package/dist/component/Icons/delete-line-icon.d.ts +0 -6
- package/dist/component/Icons/delete-line-icon.js +0 -13
- package/dist/component/Icons/delete-row-icon.d.ts +0 -6
- package/dist/component/Icons/delete-row-icon.js +0 -13
- package/dist/component/Icons/double-quotes-l-icon.d.ts +0 -6
- package/dist/component/Icons/double-quotes-l-icon.js +0 -13
- package/dist/component/Icons/download-line-icon.d.ts +0 -6
- package/dist/component/Icons/download-line-icon.js +0 -13
- package/dist/component/Icons/draggable-icon.d.ts +0 -6
- package/dist/component/Icons/draggable-icon.js +0 -13
- package/dist/component/Icons/edit-box-line-icon.d.ts +0 -6
- package/dist/component/Icons/edit-box-line-icon.js +0 -13
- package/dist/component/Icons/error-warning-fill-icon.d.ts +0 -6
- package/dist/component/Icons/error-warning-fill-icon.js +0 -13
- package/dist/component/Icons/export-line-icon.d.ts +0 -6
- package/dist/component/Icons/export-line-icon.js +0 -13
- package/dist/component/Icons/file-copy-line-icon.d.ts +0 -6
- package/dist/component/Icons/file-copy-line-icon.js +0 -13
- package/dist/component/Icons/file-upload-line-icon.d.ts +0 -6
- package/dist/component/Icons/file-upload-line-icon.js +0 -13
- package/dist/component/Icons/flow-chart-icon.d.ts +0 -6
- package/dist/component/Icons/flow-chart-icon.js +0 -13
- package/dist/component/Icons/font-color-icon.d.ts +0 -6
- package/dist/component/Icons/font-color-icon.js +0 -13
- package/dist/component/Icons/font-family-icon.d.ts +0 -6
- package/dist/component/Icons/font-family-icon.js +0 -13
- package/dist/component/Icons/font-size-icon.d.ts +0 -6
- package/dist/component/Icons/font-size-icon.js +0 -13
- package/dist/component/Icons/format-clear-icon.d.ts +0 -6
- package/dist/component/Icons/format-clear-icon.js +0 -13
- package/dist/component/Icons/formula-icon.d.ts +0 -6
- package/dist/component/Icons/formula-icon.js +0 -13
- package/dist/component/Icons/fullscreen-exit-line-icon.d.ts +0 -6
- package/dist/component/Icons/fullscreen-exit-line-icon.js +0 -13
- package/dist/component/Icons/fullscreen-line-icon.d.ts +0 -6
- package/dist/component/Icons/fullscreen-line-icon.js +0 -13
- package/dist/component/Icons/functions-icon.d.ts +0 -6
- package/dist/component/Icons/functions-icon.js +0 -13
- package/dist/component/Icons/game-line-icon.d.ts +0 -6
- package/dist/component/Icons/game-line-icon.js +0 -13
- package/dist/component/Icons/h-1-icon.d.ts +0 -6
- package/dist/component/Icons/h-1-icon.js +0 -13
- package/dist/component/Icons/h-2-icon.d.ts +0 -6
- package/dist/component/Icons/h-2-icon.js +0 -13
- package/dist/component/Icons/h-3-icon.d.ts +0 -6
- package/dist/component/Icons/h-3-icon.js +0 -13
- package/dist/component/Icons/h-4-icon.d.ts +0 -6
- package/dist/component/Icons/h-4-icon.js +0 -13
- package/dist/component/Icons/h-5-icon.d.ts +0 -6
- package/dist/component/Icons/h-5-icon.js +0 -13
- package/dist/component/Icons/h-6-icon.d.ts +0 -6
- package/dist/component/Icons/h-6-icon.js +0 -13
- package/dist/component/Icons/heading-icon.d.ts +0 -6
- package/dist/component/Icons/heading-icon.js +0 -13
- package/dist/component/Icons/image-add-line-icon.d.ts +0 -6
- package/dist/component/Icons/image-add-line-icon.js +0 -13
- package/dist/component/Icons/image-line-icon.d.ts +0 -6
- package/dist/component/Icons/image-line-icon.js +0 -13
- package/dist/component/Icons/import-line-icon.d.ts +0 -6
- package/dist/component/Icons/import-line-icon.js +0 -13
- package/dist/component/Icons/indent-decrease-icon.d.ts +0 -6
- package/dist/component/Icons/indent-decrease-icon.js +0 -13
- package/dist/component/Icons/indent-increase-icon.d.ts +0 -6
- package/dist/component/Icons/indent-increase-icon.js +0 -13
- package/dist/component/Icons/index.d.ts +0 -119
- package/dist/component/Icons/index.js +0 -122
- package/dist/component/Icons/information-2-fill-icon.d.ts +0 -6
- package/dist/component/Icons/information-2-fill-icon.js +0 -13
- package/dist/component/Icons/information-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/information-2-line-icon.js +0 -13
- package/dist/component/Icons/insert-column-left-icon.d.ts +0 -6
- package/dist/component/Icons/insert-column-left-icon.js +0 -13
- package/dist/component/Icons/insert-column-right-icon.d.ts +0 -6
- package/dist/component/Icons/insert-column-right-icon.js +0 -13
- package/dist/component/Icons/insert-row-bottom-icon.d.ts +0 -6
- package/dist/component/Icons/insert-row-bottom-icon.js +0 -13
- package/dist/component/Icons/insert-row-top-icon.d.ts +0 -6
- package/dist/component/Icons/insert-row-top-icon.js +0 -13
- package/dist/component/Icons/italic-icon.d.ts +0 -6
- package/dist/component/Icons/italic-icon.js +0 -13
- package/dist/component/Icons/layout-left-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/layout-left-2-line-icon.js +0 -13
- package/dist/component/Icons/layout-top-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/layout-top-2-line-icon.js +0 -13
- package/dist/component/Icons/link-icon.d.ts +0 -6
- package/dist/component/Icons/link-icon.js +0 -13
- package/dist/component/Icons/link-unlink-icon.d.ts +0 -6
- package/dist/component/Icons/link-unlink-icon.js +0 -13
- package/dist/component/Icons/list-check-2-icon.d.ts +0 -6
- package/dist/component/Icons/list-check-2-icon.js +0 -13
- package/dist/component/Icons/list-check-3-icon.d.ts +0 -6
- package/dist/component/Icons/list-check-3-icon.js +0 -13
- package/dist/component/Icons/list-ordered-2-icon.d.ts +0 -6
- package/dist/component/Icons/list-ordered-2-icon.js +0 -13
- package/dist/component/Icons/list-unordered-icon.d.ts +0 -6
- package/dist/component/Icons/list-unordered-icon.js +0 -13
- package/dist/component/Icons/markdown-line-icon.d.ts +0 -6
- package/dist/component/Icons/markdown-line-icon.js +0 -13
- package/dist/component/Icons/markup-line-icon.d.ts +0 -6
- package/dist/component/Icons/markup-line-icon.js +0 -13
- package/dist/component/Icons/menu-fold-2-fill-icon.d.ts +0 -6
- package/dist/component/Icons/menu-fold-2-fill-icon.js +0 -13
- package/dist/component/Icons/merge-cells-horizontal-icon.d.ts +0 -6
- package/dist/component/Icons/merge-cells-horizontal-icon.js +0 -13
- package/dist/component/Icons/merge-cells-vertical-icon.d.ts +0 -6
- package/dist/component/Icons/merge-cells-vertical-icon.js +0 -13
- package/dist/component/Icons/mind-map-icon.d.ts +0 -6
- package/dist/component/Icons/mind-map-icon.js +0 -13
- package/dist/component/Icons/more-line-icon.d.ts +0 -6
- package/dist/component/Icons/more-line-icon.js +0 -13
- package/dist/component/Icons/movie-line-icon.d.ts +0 -6
- package/dist/component/Icons/movie-line-icon.js +0 -13
- package/dist/component/Icons/music-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/music-2-line-icon.js +0 -13
- package/dist/component/Icons/node-tree-icon.d.ts +0 -6
- package/dist/component/Icons/node-tree-icon.js +0 -13
- package/dist/component/Icons/notification-3-line-icon.d.ts +0 -6
- package/dist/component/Icons/notification-3-line-icon.js +0 -13
- package/dist/component/Icons/organization-chart-icon.d.ts +0 -6
- package/dist/component/Icons/organization-chart-icon.js +0 -13
- package/dist/component/Icons/pause-line-icon.d.ts +0 -6
- package/dist/component/Icons/pause-line-icon.js +0 -13
- package/dist/component/Icons/play-line-icon.d.ts +0 -6
- package/dist/component/Icons/play-line-icon.js +0 -13
- package/dist/component/Icons/question-fill-icon.d.ts +0 -6
- package/dist/component/Icons/question-fill-icon.js +0 -13
- package/dist/component/Icons/quote-text-icon.d.ts +0 -6
- package/dist/component/Icons/quote-text-icon.js +0 -13
- package/dist/component/Icons/repeat-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/repeat-2-line-icon.js +0 -13
- package/dist/component/Icons/reset-left-fill-icon.d.ts +0 -6
- package/dist/component/Icons/reset-left-fill-icon.js +0 -13
- package/dist/component/Icons/scissors-cut-line-icon.d.ts +0 -6
- package/dist/component/Icons/scissors-cut-line-icon.js +0 -13
- package/dist/component/Icons/screenshot-line-icon.d.ts +0 -6
- package/dist/component/Icons/screenshot-line-icon.js +0 -13
- package/dist/component/Icons/scroll-to-bottom-line-icon.d.ts +0 -6
- package/dist/component/Icons/scroll-to-bottom-line-icon.js +0 -13
- package/dist/component/Icons/separator-icon.d.ts +0 -6
- package/dist/component/Icons/separator-icon.js +0 -13
- package/dist/component/Icons/share-box-line-icon.d.ts +0 -6
- package/dist/component/Icons/share-box-line-icon.js +0 -13
- package/dist/component/Icons/slash-commands-2-icon.d.ts +0 -3
- package/dist/component/Icons/slash-commands-2-icon.js +0 -13
- package/dist/component/Icons/speed-line-icon.d.ts +0 -6
- package/dist/component/Icons/speed-line-icon.js +0 -13
- package/dist/component/Icons/split-cells-horizontal-icon.d.ts +0 -6
- package/dist/component/Icons/split-cells-horizontal-icon.js +0 -13
- package/dist/component/Icons/split-cells-vertical-icon.d.ts +0 -6
- package/dist/component/Icons/split-cells-vertical-icon.js +0 -13
- package/dist/component/Icons/square-root-icon.d.ts +0 -6
- package/dist/component/Icons/square-root-icon.js +0 -13
- package/dist/component/Icons/strikethrough-icon.d.ts +0 -6
- package/dist/component/Icons/strikethrough-icon.js +0 -13
- package/dist/component/Icons/subscript-icon.d.ts +0 -6
- package/dist/component/Icons/subscript-icon.js +0 -13
- package/dist/component/Icons/superscript-icon.d.ts +0 -6
- package/dist/component/Icons/superscript-icon.js +0 -13
- package/dist/component/Icons/table-2-icon.d.ts +0 -6
- package/dist/component/Icons/table-2-icon.js +0 -13
- package/dist/component/Icons/text-icon.d.ts +0 -6
- package/dist/component/Icons/text-icon.js +0 -13
- package/dist/component/Icons/text-wrap-icon.d.ts +0 -6
- package/dist/component/Icons/text-wrap-icon.js +0 -13
- package/dist/component/Icons/title-icon.d.ts +0 -6
- package/dist/component/Icons/title-icon.js +0 -13
- package/dist/component/Icons/underline-icon.d.ts +0 -6
- package/dist/component/Icons/underline-icon.js +0 -13
- package/dist/component/Icons/upload-cloud-2-line-icon.d.ts +0 -6
- package/dist/component/Icons/upload-cloud-2-line-icon.js +0 -13
- package/dist/component/Icons/upload-icon.d.ts +0 -6
- package/dist/component/Icons/upload-icon.js +0 -13
- package/dist/component/Icons/volume-mute-line-icon.d.ts +0 -6
- package/dist/component/Icons/volume-mute-line-icon.js +0 -13
- package/dist/component/Icons/volume-up-line-icon.d.ts +0 -6
- package/dist/component/Icons/volume-up-line-icon.js +0 -13
- package/dist/component/Icons/window-fill-icon.d.ts +0 -6
- package/dist/component/Icons/window-fill-icon.js +0 -13
- package/dist/component/Menu/NestedList.d.ts +0 -14
- package/dist/component/Menu/NestedList.js +0 -151
- package/dist/component/Menu/index.d.ts +0 -4
- package/dist/component/Menu/index.js +0 -84
- package/dist/component/Toolbar/EditorAlignSelect.d.ts +0 -7
- package/dist/component/Toolbar/EditorAlignSelect.js +0 -187
- package/dist/component/Toolbar/EditorCode.d.ts +0 -7
- package/dist/component/Toolbar/EditorCode.js +0 -161
- package/dist/component/Toolbar/EditorFontBgColor.d.ts +0 -7
- package/dist/component/Toolbar/EditorFontBgColor.js +0 -244
- package/dist/component/Toolbar/EditorFontColor.d.ts +0 -7
- package/dist/component/Toolbar/EditorFontColor.js +0 -246
- package/dist/component/Toolbar/EditorFontSize.d.ts +0 -7
- package/dist/component/Toolbar/EditorFontSize.js +0 -149
- package/dist/component/Toolbar/EditorHeading.d.ts +0 -7
- package/dist/component/Toolbar/EditorHeading.js +0 -185
- package/dist/component/Toolbar/EditorInsert/index.d.ts +0 -7
- package/dist/component/Toolbar/EditorInsert/index.js +0 -197
- package/dist/component/Toolbar/EditorListSelect.d.ts +0 -7
- package/dist/component/Toolbar/EditorListSelect.js +0 -174
- package/dist/component/Toolbar/EditorMath.d.ts +0 -7
- package/dist/component/Toolbar/EditorMath.js +0 -159
- package/dist/component/Toolbar/EditorMore/NotificationDialog.d.ts +0 -7
- package/dist/component/Toolbar/EditorMore/NotificationDialog.js +0 -73
- package/dist/component/Toolbar/EditorMore/index.d.ts +0 -7
- package/dist/component/Toolbar/EditorMore/index.js +0 -112
- package/dist/component/Toolbar/EditorScript.d.ts +0 -7
- package/dist/component/Toolbar/EditorScript.js +0 -161
- package/dist/component/Toolbar/EditorVerticalAlignSelect.d.ts +0 -7
- package/dist/component/Toolbar/EditorVerticalAlignSelect.js +0 -174
- package/dist/component/Toolbar/Item.d.ts +0 -16
- package/dist/component/Toolbar/Item.js +0 -74
- package/dist/component/Toolbar/TableSizePicker.d.ts +0 -5
- package/dist/component/Toolbar/TableSizePicker.js +0 -80
- package/dist/component/Toolbar/index.d.ts +0 -13
- package/dist/component/Toolbar/index.js +0 -13
- package/dist/component/index.d.ts +0 -3
- package/dist/component/index.js +0 -3
- package/dist/contants/enums.d.ts +0 -32
- package/dist/contants/enums.js +0 -108
- package/dist/contants/highlight.d.ts +0 -4
- package/dist/contants/highlight.js +0 -580
- package/dist/contants/placeholder.d.ts +0 -16
- package/dist/contants/placeholder.js +0 -16
- package/dist/contants/shortcut-key.d.ts +0 -48
- package/dist/contants/shortcut-key.js +0 -224
- package/dist/contants/slash-commands.d.ts +0 -14
- package/dist/contants/slash-commands.js +0 -370
- package/dist/extension/component/Alert/index.d.ts +0 -9
- package/dist/extension/component/Alert/index.js +0 -204
- package/dist/extension/component/Attachment/Insert.d.ts +0 -13
- package/dist/extension/component/Attachment/Insert.js +0 -222
- package/dist/extension/component/Attachment/Readonly.d.ts +0 -9
- package/dist/extension/component/Attachment/Readonly.js +0 -92
- package/dist/extension/component/Attachment/index.d.ts +0 -13
- package/dist/extension/component/Attachment/index.js +0 -317
- package/dist/extension/component/Audio/Insert.d.ts +0 -10
- package/dist/extension/component/Audio/Insert.js +0 -351
- package/dist/extension/component/Audio/Readonly.d.ts +0 -8
- package/dist/extension/component/Audio/Readonly.js +0 -428
- package/dist/extension/component/Audio/index.d.ts +0 -14
- package/dist/extension/component/Audio/index.js +0 -740
- package/dist/extension/component/CodeBlock/Readonly.d.ts +0 -4
- package/dist/extension/component/CodeBlock/Readonly.js +0 -133
- package/dist/extension/component/CodeBlock/index.d.ts +0 -4
- package/dist/extension/component/CodeBlock/index.js +0 -291
- package/dist/extension/component/CustomLink/Insert.d.ts +0 -0
- package/dist/extension/component/CustomLink/Insert.js +0 -176
- package/dist/extension/component/CustomLink/Readonly.d.ts +0 -0
- package/dist/extension/component/CustomLink/Readonly.js +0 -106
- package/dist/extension/component/CustomLink/index.d.ts +0 -0
- package/dist/extension/component/CustomLink/index.js +0 -440
- package/dist/extension/component/EmojiList/index.d.ts +0 -14
- package/dist/extension/component/EmojiList/index.js +0 -104
- package/dist/extension/component/Iframe/Insert.d.ts +0 -14
- package/dist/extension/component/Iframe/Insert.js +0 -112
- package/dist/extension/component/Iframe/Readonly.d.ts +0 -10
- package/dist/extension/component/Iframe/Readonly.js +0 -14
- package/dist/extension/component/Iframe/index.d.ts +0 -5
- package/dist/extension/component/Iframe/index.js +0 -290
- package/dist/extension/component/Image/Crop.d.ts +0 -12
- package/dist/extension/component/Image/Crop.js +0 -218
- package/dist/extension/component/Image/Insert.d.ts +0 -10
- package/dist/extension/component/Image/Insert.js +0 -309
- package/dist/extension/component/Image/Readonly.d.ts +0 -8
- package/dist/extension/component/Image/Readonly.js +0 -51
- package/dist/extension/component/Image/index.d.ts +0 -21
- package/dist/extension/component/Image/index.js +0 -372
- package/dist/extension/component/Link/Insert.d.ts +0 -10
- package/dist/extension/component/Link/Insert.js +0 -253
- package/dist/extension/component/Link/Readonly.d.ts +0 -8
- package/dist/extension/component/Link/Readonly.js +0 -111
- package/dist/extension/component/Link/index.d.ts +0 -12
- package/dist/extension/component/Link/index.js +0 -512
- package/dist/extension/component/Mathematics/block/Readonly.d.ts +0 -9
- package/dist/extension/component/Mathematics/block/Readonly.js +0 -35
- package/dist/extension/component/Mathematics/block/index.d.ts +0 -8
- package/dist/extension/component/Mathematics/block/index.js +0 -149
- package/dist/extension/component/Mathematics/index.d.ts +0 -3
- package/dist/extension/component/Mathematics/index.js +0 -3
- package/dist/extension/component/Mathematics/inline/Readonly.d.ts +0 -9
- package/dist/extension/component/Mathematics/inline/Readonly.js +0 -33
- package/dist/extension/component/Mathematics/inline/index.d.ts +0 -8
- package/dist/extension/component/Mathematics/inline/index.js +0 -148
- package/dist/extension/component/MentionList/index.d.ts +0 -13
- package/dist/extension/component/MentionList/index.js +0 -92
- package/dist/extension/component/SlashCommandsList/index.d.ts +0 -4
- package/dist/extension/component/SlashCommandsList/index.js +0 -268
- package/dist/extension/component/Table/ContextMenu.d.ts +0 -10
- package/dist/extension/component/Table/ContextMenu.js +0 -228
- package/dist/extension/component/Table/TableContextMenuPlugin.d.ts +0 -9
- package/dist/extension/component/Table/TableContextMenuPlugin.js +0 -272
- package/dist/extension/component/Table/index.d.ts +0 -2
- package/dist/extension/component/Table/index.js +0 -2
- package/dist/extension/component/UploadProgress/index.d.ts +0 -10
- package/dist/extension/component/UploadProgress/index.js +0 -103
- package/dist/extension/component/Video/Insert.d.ts +0 -10
- package/dist/extension/component/Video/Insert.js +0 -257
- package/dist/extension/component/Video/Readonly.d.ts +0 -8
- package/dist/extension/component/Video/Readonly.js +0 -40
- package/dist/extension/component/Video/index.d.ts +0 -14
- package/dist/extension/component/Video/index.js +0 -166
- package/dist/extension/extension/SlashCommands.d.ts +0 -3
- package/dist/extension/extension/SlashCommands.js +0 -25
- package/dist/extension/extension/StructuredDiff.d.ts +0 -18
- package/dist/extension/extension/StructuredDiff.js +0 -131
- package/dist/extension/extension/index.d.ts +0 -2
- package/dist/extension/extension/index.js +0 -2
- package/dist/extension/index.d.ts +0 -2
- package/dist/extension/index.js +0 -146
- package/dist/extension/mark/Code.d.ts +0 -2
- package/dist/extension/mark/Code.js +0 -9
- package/dist/extension/mark/Link.d.ts +0 -0
- package/dist/extension/mark/Link.js +0 -58
- package/dist/extension/mark/index.d.ts +0 -0
- package/dist/extension/mark/index.js +0 -1
- package/dist/extension/node/Alert.d.ts +0 -33
- package/dist/extension/node/Alert.js +0 -116
- package/dist/extension/node/Attachment.d.ts +0 -28
- package/dist/extension/node/Attachment.js +0 -227
- package/dist/extension/node/Audio.d.ts +0 -23
- package/dist/extension/node/Audio.js +0 -194
- package/dist/extension/node/CodeBlockLowlight.d.ts +0 -1
- package/dist/extension/node/CodeBlockLowlight.js +0 -42
- package/dist/extension/node/Details.d.ts +0 -3
- package/dist/extension/node/Details.js +0 -39
- package/dist/extension/node/Emoji.d.ts +0 -1
- package/dist/extension/node/Emoji.js +0 -7
- package/dist/extension/node/FileHandler.d.ts +0 -4
- package/dist/extension/node/FileHandler.js +0 -294
- package/dist/extension/node/Iframe.d.ts +0 -16
- package/dist/extension/node/Iframe.js +0 -120
- package/dist/extension/node/Image.d.ts +0 -3
- package/dist/extension/node/Image.js +0 -38
- package/dist/extension/node/Indent.d.ts +0 -17
- package/dist/extension/node/Indent.js +0 -103
- package/dist/extension/node/Link/helpers/autolink.d.ts +0 -15
- package/dist/extension/node/Link/helpers/autolink.js +0 -162
- package/dist/extension/node/Link/helpers/clickHandler.d.ts +0 -10
- package/dist/extension/node/Link/helpers/clickHandler.js +0 -46
- package/dist/extension/node/Link/helpers/pasteHandler.d.ts +0 -10
- package/dist/extension/node/Link/helpers/pasteHandler.js +0 -32
- package/dist/extension/node/Link/helpers/whitespace.d.ts +0 -4
- package/dist/extension/node/Link/helpers/whitespace.js +0 -6
- package/dist/extension/node/Link/index.d.ts +0 -162
- package/dist/extension/node/Link/index.js +0 -461
- package/dist/extension/node/ListKit.d.ts +0 -2
- package/dist/extension/node/ListKit.js +0 -23
- package/dist/extension/node/Mathematics.d.ts +0 -27
- package/dist/extension/node/Mathematics.js +0 -97
- package/dist/extension/node/Mention.d.ts +0 -2
- package/dist/extension/node/Mention.js +0 -10
- package/dist/extension/node/Table.d.ts +0 -5
- package/dist/extension/node/Table.js +0 -283
- package/dist/extension/node/TableOfContents/index.d.ts +0 -9
- package/dist/extension/node/TableOfContents/index.js +0 -391
- package/dist/extension/node/TableOfContents/plugin.d.ts +0 -6
- package/dist/extension/node/TableOfContents/plugin.js +0 -58
- package/dist/extension/node/TableOfContents/type.d.ts +0 -45
- package/dist/extension/node/TableOfContents/type.js +0 -1
- package/dist/extension/node/TableOfContents/utils.d.ts +0 -6
- package/dist/extension/node/TableOfContents/utils.js +0 -70
- package/dist/extension/node/UploadProgress.d.ts +0 -21
- package/dist/extension/node/UploadProgress.js +0 -135
- package/dist/extension/node/VerticalAlign.d.ts +0 -49
- package/dist/extension/node/VerticalAlign.js +0 -88
- package/dist/extension/node/Video.d.ts +0 -23
- package/dist/extension/node/Video.js +0 -195
- package/dist/extension/node/Youtube.d.ts +0 -3
- package/dist/extension/node/Youtube.js +0 -14
- package/dist/extension/node/index.d.ts +0 -20
- package/dist/extension/node/index.js +0 -20
- package/dist/extension/suggestion/emoji.d.ts +0 -3
- package/dist/extension/suggestion/emoji.js +0 -57
- package/dist/extension/suggestion/mention.d.ts +0 -4
- package/dist/extension/suggestion/mention.js +0 -88
- package/dist/extension/suggestion/slash.d.ts +0 -35
- package/dist/extension/suggestion/slash.js +0 -64
- package/dist/hook/fn.d.ts +0 -13
- package/dist/hook/fn.js +0 -37
- package/dist/hook/index.d.ts +0 -4
- package/dist/hook/index.js +0 -110
- package/dist/index.css +0 -541
- package/dist/index.d.ts +0 -8
- package/dist/index.js +0 -8
- package/dist/themes/color.d.ts +0 -5
- package/dist/themes/color.js +0 -4
- package/dist/themes/componentStyleOverrides.d.ts +0 -365
- package/dist/themes/componentStyleOverrides.js +0 -392
- package/dist/themes/custom.d.ts +0 -5
- package/dist/themes/custom.js +0 -4
- package/dist/themes/dark.d.ts +0 -84
- package/dist/themes/dark.js +0 -84
- package/dist/themes/index.d.ts +0 -19
- package/dist/themes/index.js +0 -37
- package/dist/themes/light.d.ts +0 -84
- package/dist/themes/light.js +0 -84
- package/dist/themes/palette.d.ts +0 -92
- package/dist/themes/palette.js +0 -24
- package/dist/themes/shadows.d.ts +0 -2
- package/dist/themes/shadows.js +0 -3
- package/dist/themes/themeContext.d.ts +0 -8
- package/dist/themes/themeContext.js +0 -3
- package/dist/themes/typography.d.ts +0 -6
- package/dist/themes/typography.js +0 -8
- package/dist/type/index.d.ts +0 -121
- package/dist/type/index.js +0 -1
- package/dist/types/images.d.ts +0 -19
- package/dist/util/decorations.d.ts +0 -22
- package/dist/util/decorations.js +0 -302
- package/dist/util/fileDownload.d.ts +0 -16
- package/dist/util/fileDownload.js +0 -268
- package/dist/util/fileHandler.d.ts +0 -7
- package/dist/util/fileHandler.js +0 -79
- package/dist/util/floating.d.ts +0 -3
- package/dist/util/floating.js +0 -23
- package/dist/util/index.d.ts +0 -12
- package/dist/util/index.js +0 -40
- package/dist/util/linewiseConvert.d.ts +0 -40
- package/dist/util/linewiseConvert.js +0 -221
- package/dist/util/migrateMathStrings.d.ts +0 -73
- package/dist/util/migrateMathStrings.js +0 -192
- package/dist/util/resourceExtractor.d.ts +0 -15
- package/dist/util/resourceExtractor.js +0 -61
- package/dist/util/shortcutKey.d.ts +0 -2
- package/dist/util/shortcutKey.js +0 -9
- package/dist/util/structuredDiff.d.ts +0 -59
- package/dist/util/structuredDiff.js +0 -550
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
export var MAC_SYMBOLS = {
|
|
2
|
-
ctrl: "⌘",
|
|
3
|
-
alt: "⌥",
|
|
4
|
-
shift: "⇧",
|
|
5
|
-
enter: "↵"
|
|
6
|
-
};
|
|
7
|
-
export var SHORTCUT_KEYS = {
|
|
8
|
-
'Essentials': {
|
|
9
|
-
label: '基础',
|
|
10
|
-
keys: [{
|
|
11
|
-
label: '复制',
|
|
12
|
-
value: 'Copy',
|
|
13
|
-
keys: ['ctrl', 'C']
|
|
14
|
-
}, {
|
|
15
|
-
label: '剪切',
|
|
16
|
-
value: 'Cut',
|
|
17
|
-
keys: ['ctrl', 'X']
|
|
18
|
-
}, {
|
|
19
|
-
label: '粘贴',
|
|
20
|
-
value: 'Paste',
|
|
21
|
-
keys: ['ctrl', 'V']
|
|
22
|
-
}, {
|
|
23
|
-
label: '粘贴纯文本',
|
|
24
|
-
value: 'Paste without formatting',
|
|
25
|
-
keys: ['ctrl', 'shift', 'V']
|
|
26
|
-
}, {
|
|
27
|
-
label: '撤销',
|
|
28
|
-
value: 'Undo',
|
|
29
|
-
keys: ['ctrl', 'Z']
|
|
30
|
-
}, {
|
|
31
|
-
label: '重做',
|
|
32
|
-
value: 'Redo',
|
|
33
|
-
keys: ['ctrl', 'shift', 'Z']
|
|
34
|
-
}, {
|
|
35
|
-
label: '换行',
|
|
36
|
-
value: 'Add a line break',
|
|
37
|
-
keys: ['ctrl', 'enter']
|
|
38
|
-
}, {
|
|
39
|
-
label: '保存',
|
|
40
|
-
value: 'Save',
|
|
41
|
-
keys: ['ctrl', 'S']
|
|
42
|
-
}]
|
|
43
|
-
},
|
|
44
|
-
'Insert': {
|
|
45
|
-
label: '插入',
|
|
46
|
-
keys: [{
|
|
47
|
-
label: '链接',
|
|
48
|
-
value: 'Link',
|
|
49
|
-
keys: ['ctrl', '1']
|
|
50
|
-
}, {
|
|
51
|
-
label: '图片',
|
|
52
|
-
value: 'Image',
|
|
53
|
-
keys: ['ctrl', '2']
|
|
54
|
-
}, {
|
|
55
|
-
label: '视频',
|
|
56
|
-
value: 'Video',
|
|
57
|
-
keys: ['ctrl', '3']
|
|
58
|
-
}, {
|
|
59
|
-
label: '音频',
|
|
60
|
-
value: 'Audio',
|
|
61
|
-
keys: ['ctrl', '4']
|
|
62
|
-
}, {
|
|
63
|
-
label: '附件',
|
|
64
|
-
value: 'Attachment',
|
|
65
|
-
keys: ['ctrl', '5']
|
|
66
|
-
}, {
|
|
67
|
-
label: '行内数学公式',
|
|
68
|
-
value: 'Inline Math',
|
|
69
|
-
keys: ['ctrl', '6']
|
|
70
|
-
}, {
|
|
71
|
-
label: '块级数学公式',
|
|
72
|
-
value: 'Block Math',
|
|
73
|
-
keys: ['ctrl', '7']
|
|
74
|
-
}, {
|
|
75
|
-
label: '折叠块',
|
|
76
|
-
value: 'Details',
|
|
77
|
-
keys: ['ctrl', '8']
|
|
78
|
-
}, {
|
|
79
|
-
label: '表格',
|
|
80
|
-
value: 'Table',
|
|
81
|
-
keys: ['ctrl', '9']
|
|
82
|
-
}]
|
|
83
|
-
},
|
|
84
|
-
'Text Formatting': {
|
|
85
|
-
label: '文本格式',
|
|
86
|
-
keys: [{
|
|
87
|
-
label: '加粗',
|
|
88
|
-
value: 'Bold',
|
|
89
|
-
keys: ['ctrl', 'B']
|
|
90
|
-
}, {
|
|
91
|
-
label: '斜体',
|
|
92
|
-
value: 'Italic',
|
|
93
|
-
keys: ['ctrl', 'I']
|
|
94
|
-
}, {
|
|
95
|
-
label: '下划线',
|
|
96
|
-
value: 'Underline',
|
|
97
|
-
keys: ['ctrl', 'U']
|
|
98
|
-
}, {
|
|
99
|
-
label: '删除线',
|
|
100
|
-
value: 'Strikethrough',
|
|
101
|
-
keys: ['ctrl', 'shift', 'S']
|
|
102
|
-
}, {
|
|
103
|
-
label: '高亮',
|
|
104
|
-
value: 'Highlight',
|
|
105
|
-
keys: ['ctrl', 'shift', 'H']
|
|
106
|
-
}, {
|
|
107
|
-
label: '行内代码',
|
|
108
|
-
value: 'Code',
|
|
109
|
-
keys: ['ctrl', 'E']
|
|
110
|
-
}]
|
|
111
|
-
},
|
|
112
|
-
'Paragraph Formatting': {
|
|
113
|
-
label: '段落格式',
|
|
114
|
-
keys: [{
|
|
115
|
-
label: '文本',
|
|
116
|
-
value: 'Normal Text',
|
|
117
|
-
keys: ['ctrl', 'alt', '0']
|
|
118
|
-
}, {
|
|
119
|
-
label: '标题 1',
|
|
120
|
-
value: 'Heading 1',
|
|
121
|
-
keys: ['ctrl', 'alt', '1']
|
|
122
|
-
}, {
|
|
123
|
-
label: '标题 2',
|
|
124
|
-
value: 'Heading 2',
|
|
125
|
-
keys: ['ctrl', 'alt', '2']
|
|
126
|
-
}, {
|
|
127
|
-
label: '标题 3',
|
|
128
|
-
value: 'Heading 3',
|
|
129
|
-
keys: ['ctrl', 'alt', '3']
|
|
130
|
-
}, {
|
|
131
|
-
label: '标题 4',
|
|
132
|
-
value: 'Heading 4',
|
|
133
|
-
keys: ['ctrl', 'alt', '4']
|
|
134
|
-
}, {
|
|
135
|
-
label: '标题 5',
|
|
136
|
-
value: 'Heading 5',
|
|
137
|
-
keys: ['ctrl', 'alt', '5']
|
|
138
|
-
}, {
|
|
139
|
-
label: '标题 6',
|
|
140
|
-
value: 'Heading 6',
|
|
141
|
-
keys: ['ctrl', 'alt', '6']
|
|
142
|
-
}, {
|
|
143
|
-
label: '有序列表',
|
|
144
|
-
value: 'Ordered list',
|
|
145
|
-
keys: ['ctrl', 'shift', '7']
|
|
146
|
-
}, {
|
|
147
|
-
label: '无序列表',
|
|
148
|
-
value: 'Bullet list',
|
|
149
|
-
keys: ['ctrl', 'shift', '8']
|
|
150
|
-
}, {
|
|
151
|
-
label: '待办列表',
|
|
152
|
-
value: 'Task list',
|
|
153
|
-
keys: ['ctrl', 'shift', '9']
|
|
154
|
-
}, {
|
|
155
|
-
label: '引用块',
|
|
156
|
-
value: 'Blockquote',
|
|
157
|
-
keys: ['ctrl', 'shift', 'B']
|
|
158
|
-
}, {
|
|
159
|
-
label: '左对齐',
|
|
160
|
-
value: 'Left align',
|
|
161
|
-
keys: ['ctrl', 'shift', 'L']
|
|
162
|
-
}, {
|
|
163
|
-
label: '居中对齐',
|
|
164
|
-
value: 'Center align',
|
|
165
|
-
keys: ['ctrl', 'shift', 'E']
|
|
166
|
-
}, {
|
|
167
|
-
label: '右对齐',
|
|
168
|
-
value: 'Right align',
|
|
169
|
-
keys: ['ctrl', 'shift', 'R']
|
|
170
|
-
}, {
|
|
171
|
-
label: '两端对齐',
|
|
172
|
-
value: 'Justify',
|
|
173
|
-
keys: ['ctrl', 'shift', 'J']
|
|
174
|
-
}, {
|
|
175
|
-
label: '垂直顶部对齐',
|
|
176
|
-
value: 'Top align',
|
|
177
|
-
keys: ['ctrl', 'alt', 'T']
|
|
178
|
-
}, {
|
|
179
|
-
label: '垂直居中对齐',
|
|
180
|
-
value: 'Center align',
|
|
181
|
-
keys: ['ctrl', 'alt', 'M']
|
|
182
|
-
}, {
|
|
183
|
-
label: '垂直底部对齐',
|
|
184
|
-
value: 'Bottom align',
|
|
185
|
-
keys: ['ctrl', 'alt', 'B']
|
|
186
|
-
}, {
|
|
187
|
-
label: '代码块',
|
|
188
|
-
value: 'Code block',
|
|
189
|
-
keys: ['ctrl', 'alt', 'C']
|
|
190
|
-
}, {
|
|
191
|
-
label: '下标',
|
|
192
|
-
value: 'Subscript',
|
|
193
|
-
keys: ['ctrl', ',']
|
|
194
|
-
}, {
|
|
195
|
-
label: '上标',
|
|
196
|
-
value: 'Superscript',
|
|
197
|
-
keys: ['ctrl', '.']
|
|
198
|
-
}]
|
|
199
|
-
},
|
|
200
|
-
'Text Selection': {
|
|
201
|
-
label: '文本选择',
|
|
202
|
-
keys: [{
|
|
203
|
-
label: '全选',
|
|
204
|
-
value: 'Select all',
|
|
205
|
-
keys: ['ctrl', 'A']
|
|
206
|
-
}, {
|
|
207
|
-
label: '选择向左扩展一个字符',
|
|
208
|
-
value: 'Extend selection one character to left',
|
|
209
|
-
keys: ['shift', '←']
|
|
210
|
-
}, {
|
|
211
|
-
label: '选择向右扩展一个字符',
|
|
212
|
-
value: 'Extend selection one character to right',
|
|
213
|
-
keys: ['shift', '→']
|
|
214
|
-
}, {
|
|
215
|
-
label: '选择向上扩展一行',
|
|
216
|
-
value: 'Extend selection one line up',
|
|
217
|
-
keys: ['shift', '↑']
|
|
218
|
-
}, {
|
|
219
|
-
label: '选择向下扩展一行',
|
|
220
|
-
value: 'Extend selection one line down',
|
|
221
|
-
keys: ['shift', '↓']
|
|
222
|
-
}]
|
|
223
|
-
}
|
|
224
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Editor } from '@tiptap/react';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export declare const slashCommands: {
|
|
4
|
-
title: string;
|
|
5
|
-
icon: React.JSX.Element;
|
|
6
|
-
command: ({ editor, range, attrs }: {
|
|
7
|
-
editor: Editor;
|
|
8
|
-
range: {
|
|
9
|
-
from: number;
|
|
10
|
-
to: number;
|
|
11
|
-
};
|
|
12
|
-
attrs: any;
|
|
13
|
-
}) => void;
|
|
14
|
-
}[];
|
|
@@ -1,370 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { AttachmentLineIcon, CodeBoxLineIcon, CodeLineIcon, DoubleQuotesLIcon, FunctionsIcon, H1Icon, H2Icon, H3Icon, H4Icon, H5Icon, H6Icon, ImageLineIcon, Information2LineIcon, LinkIcon, ListCheck2Icon, ListOrdered2Icon, ListUnorderedIcon, MenuFold2FillIcon, MovieLineIcon, Music2LineIcon, SeparatorIcon, SquareRootIcon, Table2Icon, TextWrapIcon, WindowFillIcon } from "../component/Icons";
|
|
3
|
-
export var slashCommands = [{
|
|
4
|
-
title: '一级标题',
|
|
5
|
-
icon: /*#__PURE__*/React.createElement(H1Icon, {
|
|
6
|
-
sx: {
|
|
7
|
-
fontSize: '1rem'
|
|
8
|
-
}
|
|
9
|
-
}),
|
|
10
|
-
command: function command(_ref) {
|
|
11
|
-
var editor = _ref.editor,
|
|
12
|
-
range = _ref.range;
|
|
13
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
14
|
-
level: 1
|
|
15
|
-
}).run();
|
|
16
|
-
}
|
|
17
|
-
}, {
|
|
18
|
-
title: '二级标题',
|
|
19
|
-
icon: /*#__PURE__*/React.createElement(H2Icon, {
|
|
20
|
-
sx: {
|
|
21
|
-
fontSize: '1rem'
|
|
22
|
-
}
|
|
23
|
-
}),
|
|
24
|
-
command: function command(_ref2) {
|
|
25
|
-
var editor = _ref2.editor,
|
|
26
|
-
range = _ref2.range;
|
|
27
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
28
|
-
level: 2
|
|
29
|
-
}).run();
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
title: '三级标题',
|
|
33
|
-
icon: /*#__PURE__*/React.createElement(H3Icon, {
|
|
34
|
-
sx: {
|
|
35
|
-
fontSize: '1rem'
|
|
36
|
-
}
|
|
37
|
-
}),
|
|
38
|
-
command: function command(_ref3) {
|
|
39
|
-
var editor = _ref3.editor,
|
|
40
|
-
range = _ref3.range;
|
|
41
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
42
|
-
level: 3
|
|
43
|
-
}).run();
|
|
44
|
-
}
|
|
45
|
-
}, {
|
|
46
|
-
title: '四级标题',
|
|
47
|
-
icon: /*#__PURE__*/React.createElement(H4Icon, {
|
|
48
|
-
sx: {
|
|
49
|
-
fontSize: '1rem'
|
|
50
|
-
}
|
|
51
|
-
}),
|
|
52
|
-
command: function command(_ref4) {
|
|
53
|
-
var editor = _ref4.editor,
|
|
54
|
-
range = _ref4.range;
|
|
55
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
56
|
-
level: 4
|
|
57
|
-
}).run();
|
|
58
|
-
}
|
|
59
|
-
}, {
|
|
60
|
-
title: '五级标题',
|
|
61
|
-
icon: /*#__PURE__*/React.createElement(H5Icon, {
|
|
62
|
-
sx: {
|
|
63
|
-
fontSize: '1rem'
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
command: function command(_ref5) {
|
|
67
|
-
var editor = _ref5.editor,
|
|
68
|
-
range = _ref5.range;
|
|
69
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
70
|
-
level: 5
|
|
71
|
-
}).run();
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
title: '六级标题',
|
|
75
|
-
icon: /*#__PURE__*/React.createElement(H6Icon, {
|
|
76
|
-
sx: {
|
|
77
|
-
fontSize: '1rem'
|
|
78
|
-
}
|
|
79
|
-
}),
|
|
80
|
-
command: function command(_ref6) {
|
|
81
|
-
var editor = _ref6.editor,
|
|
82
|
-
range = _ref6.range;
|
|
83
|
-
editor.chain().focus().deleteRange(range).setNode('heading', {
|
|
84
|
-
level: 6
|
|
85
|
-
}).run();
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
title: '有序列表',
|
|
89
|
-
icon: /*#__PURE__*/React.createElement(ListOrdered2Icon, {
|
|
90
|
-
sx: {
|
|
91
|
-
fontSize: '1rem'
|
|
92
|
-
}
|
|
93
|
-
}),
|
|
94
|
-
command: function command(_ref7) {
|
|
95
|
-
var editor = _ref7.editor,
|
|
96
|
-
range = _ref7.range;
|
|
97
|
-
editor.chain().focus().deleteRange(range).toggleOrderedList().run();
|
|
98
|
-
}
|
|
99
|
-
}, {
|
|
100
|
-
title: '无序列表',
|
|
101
|
-
icon: /*#__PURE__*/React.createElement(ListUnorderedIcon, {
|
|
102
|
-
sx: {
|
|
103
|
-
fontSize: '1rem'
|
|
104
|
-
}
|
|
105
|
-
}),
|
|
106
|
-
command: function command(_ref8) {
|
|
107
|
-
var editor = _ref8.editor,
|
|
108
|
-
range = _ref8.range;
|
|
109
|
-
editor.chain().focus().deleteRange(range).toggleBulletList().run();
|
|
110
|
-
}
|
|
111
|
-
}, {
|
|
112
|
-
title: '任务列表',
|
|
113
|
-
icon: /*#__PURE__*/React.createElement(ListCheck2Icon, {
|
|
114
|
-
sx: {
|
|
115
|
-
fontSize: '1rem'
|
|
116
|
-
}
|
|
117
|
-
}),
|
|
118
|
-
command: function command(_ref9) {
|
|
119
|
-
var editor = _ref9.editor,
|
|
120
|
-
range = _ref9.range;
|
|
121
|
-
editor.chain().focus().deleteRange(range).toggleTaskList().run();
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
title: '换行',
|
|
125
|
-
icon: /*#__PURE__*/React.createElement(TextWrapIcon, {
|
|
126
|
-
sx: {
|
|
127
|
-
fontSize: '1rem'
|
|
128
|
-
}
|
|
129
|
-
}),
|
|
130
|
-
command: function command(_ref10) {
|
|
131
|
-
var editor = _ref10.editor,
|
|
132
|
-
range = _ref10.range;
|
|
133
|
-
editor.chain().focus().deleteRange(range).insertContent('<br />').run();
|
|
134
|
-
}
|
|
135
|
-
}, {
|
|
136
|
-
title: '分割线',
|
|
137
|
-
icon: /*#__PURE__*/React.createElement(SeparatorIcon, {
|
|
138
|
-
sx: {
|
|
139
|
-
fontSize: '1rem'
|
|
140
|
-
}
|
|
141
|
-
}),
|
|
142
|
-
command: function command(_ref11) {
|
|
143
|
-
var editor = _ref11.editor,
|
|
144
|
-
range = _ref11.range;
|
|
145
|
-
editor.chain().focus().deleteRange(range).setHorizontalRule().run();
|
|
146
|
-
}
|
|
147
|
-
}, {
|
|
148
|
-
title: '引用块',
|
|
149
|
-
icon: /*#__PURE__*/React.createElement(DoubleQuotesLIcon, {
|
|
150
|
-
sx: {
|
|
151
|
-
fontSize: '1rem'
|
|
152
|
-
}
|
|
153
|
-
}),
|
|
154
|
-
command: function command(_ref12) {
|
|
155
|
-
var editor = _ref12.editor,
|
|
156
|
-
range = _ref12.range;
|
|
157
|
-
editor.chain().focus().deleteRange(range).toggleBlockquote().run();
|
|
158
|
-
}
|
|
159
|
-
}, {
|
|
160
|
-
title: '行内代码',
|
|
161
|
-
icon: /*#__PURE__*/React.createElement(CodeLineIcon, {
|
|
162
|
-
sx: {
|
|
163
|
-
fontSize: '1rem'
|
|
164
|
-
}
|
|
165
|
-
}),
|
|
166
|
-
command: function command(_ref13) {
|
|
167
|
-
var editor = _ref13.editor,
|
|
168
|
-
range = _ref13.range;
|
|
169
|
-
editor.chain().focus().deleteRange(range).setMark('code').run();
|
|
170
|
-
}
|
|
171
|
-
}, {
|
|
172
|
-
title: '代码块',
|
|
173
|
-
icon: /*#__PURE__*/React.createElement(CodeBoxLineIcon, {
|
|
174
|
-
sx: {
|
|
175
|
-
fontSize: '1rem'
|
|
176
|
-
}
|
|
177
|
-
}),
|
|
178
|
-
command: function command(_ref14) {
|
|
179
|
-
var editor = _ref14.editor,
|
|
180
|
-
range = _ref14.range;
|
|
181
|
-
editor.chain().focus().deleteRange(range).toggleCodeBlock().run();
|
|
182
|
-
}
|
|
183
|
-
}, {
|
|
184
|
-
title: '链接',
|
|
185
|
-
icon: /*#__PURE__*/React.createElement(LinkIcon, {
|
|
186
|
-
sx: {
|
|
187
|
-
fontSize: '1rem'
|
|
188
|
-
}
|
|
189
|
-
}),
|
|
190
|
-
command: function command(_ref15) {
|
|
191
|
-
var editor = _ref15.editor,
|
|
192
|
-
range = _ref15.range;
|
|
193
|
-
editor.chain().focus().deleteRange(range).setInlineLink({
|
|
194
|
-
href: ''
|
|
195
|
-
}).run();
|
|
196
|
-
}
|
|
197
|
-
}, {
|
|
198
|
-
title: '折叠块',
|
|
199
|
-
icon: /*#__PURE__*/React.createElement(MenuFold2FillIcon, {
|
|
200
|
-
sx: {
|
|
201
|
-
fontSize: '1rem'
|
|
202
|
-
}
|
|
203
|
-
}),
|
|
204
|
-
command: function command(_ref16) {
|
|
205
|
-
var editor = _ref16.editor,
|
|
206
|
-
range = _ref16.range;
|
|
207
|
-
editor.chain().focus().deleteRange(range).setDetails().run();
|
|
208
|
-
}
|
|
209
|
-
}, {
|
|
210
|
-
title: 'iframe',
|
|
211
|
-
icon: /*#__PURE__*/React.createElement(WindowFillIcon, {
|
|
212
|
-
sx: {
|
|
213
|
-
fontSize: '1rem'
|
|
214
|
-
}
|
|
215
|
-
}),
|
|
216
|
-
command: function command(_ref17) {
|
|
217
|
-
var editor = _ref17.editor,
|
|
218
|
-
range = _ref17.range;
|
|
219
|
-
editor.chain().focus().deleteRange(range).setIframe({
|
|
220
|
-
src: '',
|
|
221
|
-
width: 760,
|
|
222
|
-
height: 400
|
|
223
|
-
}).run();
|
|
224
|
-
}
|
|
225
|
-
}, {
|
|
226
|
-
title: '表格',
|
|
227
|
-
icon: /*#__PURE__*/React.createElement(Table2Icon, {
|
|
228
|
-
sx: {
|
|
229
|
-
fontSize: '1rem'
|
|
230
|
-
}
|
|
231
|
-
}),
|
|
232
|
-
command: function command(_ref18) {
|
|
233
|
-
var editor = _ref18.editor,
|
|
234
|
-
range = _ref18.range,
|
|
235
|
-
attrs = _ref18.attrs;
|
|
236
|
-
editor.chain().focus().deleteRange(range).insertTable({
|
|
237
|
-
rows: attrs.rows || 3,
|
|
238
|
-
cols: attrs.cols || 4,
|
|
239
|
-
withHeaderRow: true
|
|
240
|
-
}).run();
|
|
241
|
-
}
|
|
242
|
-
}, {
|
|
243
|
-
title: '警告提示',
|
|
244
|
-
icon: /*#__PURE__*/React.createElement(Information2LineIcon, {
|
|
245
|
-
sx: {
|
|
246
|
-
fontSize: '1rem'
|
|
247
|
-
}
|
|
248
|
-
}),
|
|
249
|
-
command: function command(_ref19) {
|
|
250
|
-
var editor = _ref19.editor,
|
|
251
|
-
range = _ref19.range,
|
|
252
|
-
attrs = _ref19.attrs;
|
|
253
|
-
editor.chain().focus().deleteRange(range).toggleAlert({
|
|
254
|
-
type: (attrs === null || attrs === void 0 ? void 0 : attrs.type) || 'icon',
|
|
255
|
-
variant: (attrs === null || attrs === void 0 ? void 0 : attrs.variant) || 'info'
|
|
256
|
-
}).run();
|
|
257
|
-
}
|
|
258
|
-
}, {
|
|
259
|
-
title: '折叠块',
|
|
260
|
-
icon: /*#__PURE__*/React.createElement(MenuFold2FillIcon, {
|
|
261
|
-
sx: {
|
|
262
|
-
fontSize: '1rem'
|
|
263
|
-
}
|
|
264
|
-
}),
|
|
265
|
-
command: function command(_ref20) {
|
|
266
|
-
var editor = _ref20.editor,
|
|
267
|
-
range = _ref20.range;
|
|
268
|
-
editor.chain().focus().deleteRange(range).setDetails().run();
|
|
269
|
-
}
|
|
270
|
-
}, {
|
|
271
|
-
title: '代码块',
|
|
272
|
-
icon: /*#__PURE__*/React.createElement(CodeBoxLineIcon, {
|
|
273
|
-
sx: {
|
|
274
|
-
fontSize: '1rem'
|
|
275
|
-
}
|
|
276
|
-
}),
|
|
277
|
-
command: function command(_ref21) {
|
|
278
|
-
var editor = _ref21.editor,
|
|
279
|
-
range = _ref21.range;
|
|
280
|
-
editor.chain().focus().deleteRange(range).toggleCodeBlock().run();
|
|
281
|
-
}
|
|
282
|
-
}, {
|
|
283
|
-
title: '行内数学公式',
|
|
284
|
-
icon: /*#__PURE__*/React.createElement(SquareRootIcon, {
|
|
285
|
-
sx: {
|
|
286
|
-
fontSize: '1rem'
|
|
287
|
-
}
|
|
288
|
-
}),
|
|
289
|
-
command: function command(_ref22) {
|
|
290
|
-
var editor = _ref22.editor,
|
|
291
|
-
range = _ref22.range;
|
|
292
|
-
editor.chain().focus().deleteRange(range).setInlineMath({
|
|
293
|
-
latex: ''
|
|
294
|
-
}).run();
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
title: '块级数学公式',
|
|
298
|
-
icon: /*#__PURE__*/React.createElement(FunctionsIcon, {
|
|
299
|
-
sx: {
|
|
300
|
-
fontSize: '1rem'
|
|
301
|
-
}
|
|
302
|
-
}),
|
|
303
|
-
command: function command(_ref23) {
|
|
304
|
-
var editor = _ref23.editor,
|
|
305
|
-
range = _ref23.range;
|
|
306
|
-
editor.chain().focus().deleteRange(range).setBlockMath({
|
|
307
|
-
latex: ''
|
|
308
|
-
}).run();
|
|
309
|
-
}
|
|
310
|
-
}, {
|
|
311
|
-
title: '图片',
|
|
312
|
-
icon: /*#__PURE__*/React.createElement(ImageLineIcon, {
|
|
313
|
-
sx: {
|
|
314
|
-
fontSize: '1rem'
|
|
315
|
-
}
|
|
316
|
-
}),
|
|
317
|
-
command: function command(_ref24) {
|
|
318
|
-
var editor = _ref24.editor,
|
|
319
|
-
range = _ref24.range;
|
|
320
|
-
editor.chain().focus().deleteRange(range).setImage({
|
|
321
|
-
src: '',
|
|
322
|
-
width: 760
|
|
323
|
-
}).run();
|
|
324
|
-
}
|
|
325
|
-
}, {
|
|
326
|
-
title: '视频',
|
|
327
|
-
icon: /*#__PURE__*/React.createElement(MovieLineIcon, {
|
|
328
|
-
sx: {
|
|
329
|
-
fontSize: '1rem'
|
|
330
|
-
}
|
|
331
|
-
}),
|
|
332
|
-
command: function command(_ref25) {
|
|
333
|
-
var editor = _ref25.editor,
|
|
334
|
-
range = _ref25.range;
|
|
335
|
-
editor.chain().focus().deleteRange(range).setVideo({
|
|
336
|
-
src: '',
|
|
337
|
-
width: 760
|
|
338
|
-
}).run();
|
|
339
|
-
}
|
|
340
|
-
}, {
|
|
341
|
-
title: '音频',
|
|
342
|
-
icon: /*#__PURE__*/React.createElement(Music2LineIcon, {
|
|
343
|
-
sx: {
|
|
344
|
-
fontSize: '1rem'
|
|
345
|
-
}
|
|
346
|
-
}),
|
|
347
|
-
command: function command(_ref26) {
|
|
348
|
-
var editor = _ref26.editor,
|
|
349
|
-
range = _ref26.range;
|
|
350
|
-
editor.chain().focus().deleteRange(range).setAudio({
|
|
351
|
-
src: ''
|
|
352
|
-
}).run();
|
|
353
|
-
}
|
|
354
|
-
}, {
|
|
355
|
-
title: '附件',
|
|
356
|
-
icon: /*#__PURE__*/React.createElement(AttachmentLineIcon, {
|
|
357
|
-
sx: {
|
|
358
|
-
fontSize: '1rem'
|
|
359
|
-
}
|
|
360
|
-
}),
|
|
361
|
-
command: function command(_ref27) {
|
|
362
|
-
var editor = _ref27.editor,
|
|
363
|
-
range = _ref27.range;
|
|
364
|
-
editor.chain().focus().deleteRange(range).setInlineAttachment({
|
|
365
|
-
url: '',
|
|
366
|
-
title: '',
|
|
367
|
-
size: '0'
|
|
368
|
-
}).run();
|
|
369
|
-
}
|
|
370
|
-
}];
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { NodeViewProps } from '@tiptap/react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface AlertAttributes {
|
|
4
|
-
id?: string;
|
|
5
|
-
variant?: 'info' | 'warning' | 'error' | 'success';
|
|
6
|
-
type?: 'text' | 'icon';
|
|
7
|
-
}
|
|
8
|
-
declare const AlertView: React.FC<NodeViewProps>;
|
|
9
|
-
export default AlertView;
|