@agilehub/agile-editor 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +8 -8
- package/README.md +198 -172
- package/dist/agile-editor.css +2 -1
- package/dist/agile-editor.js +54641 -44916
- package/dist/types/components/container/ai.vue.d.ts +7 -0
- package/dist/types/components/container/page.vue.d.ts +16 -0
- package/dist/types/components/container/print.vue.d.ts +3 -0
- package/dist/types/components/container/search-replace.vue.d.ts +3 -0
- package/dist/types/components/container/toc.vue.d.ts +7 -0
- package/dist/types/components/editor/audio-dialog.vue.d.ts +3 -0
- package/dist/types/components/editor/formula-dialog.vue.d.ts +3 -0
- package/dist/types/components/editor/gallery-dialog.vue.d.ts +3 -0
- package/dist/types/components/editor/index.vue.d.ts +16 -0
- package/dist/types/components/editor/timeline-dialog.vue.d.ts +3 -0
- package/dist/types/components/icon.vue.d.ts +32 -0
- package/dist/types/components/index.d.ts +21 -0
- package/dist/types/components/index.vue.d.ts +3804 -0
- package/dist/types/components/menus/block/common.vue.d.ts +28 -0
- package/dist/types/components/menus/block/index.vue.d.ts +3 -0
- package/dist/types/components/menus/block/node.vue.d.ts +28 -0
- package/dist/types/components/menus/bubble/ai.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/audio/edit.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/callout/background.vue.d.ts +7 -0
- package/dist/types/components/menus/bubble/callout/builtin.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/callout/emoji-remove.vue.d.ts +7 -0
- package/dist/types/components/menus/bubble/file/download.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/file/width.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/gallery.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/convert.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/crop.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/draggable.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/flip.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/open.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/preview.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/proportion.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/reset-all.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/reset.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/rotate.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/image/title.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/index.vue.d.ts +16 -0
- package/dist/types/components/menus/bubble/link/copy.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/link/open.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/link/unlink.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/math.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/menus.vue.d.ts +16 -0
- package/dist/types/components/menus/bubble/node/delete.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/node/duplicate.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/node/tofile.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/tag/background.vue.d.ts +7 -0
- package/dist/types/components/menus/bubble/tag/builtin.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/tag/color.vue.d.ts +7 -0
- package/dist/types/components/menus/bubble/tag/delete.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/tag/input.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/text-box/background.vue.d.ts +7 -0
- package/dist/types/components/menus/bubble/text-box/border.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/text-box/writing-mode.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/video/poster.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/webpage/clickable.vue.d.ts +3 -0
- package/dist/types/components/menus/bubble/webpage/open.vue.d.ts +3 -0
- package/dist/types/components/menus/button.vue.d.ts +193 -0
- package/dist/types/components/menus/color-icon.vue.d.ts +7 -0
- package/dist/types/components/menus/toolbar/base/align-center.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/align-distributed.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/align-dropdown.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/align-justify.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/align-left.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/align-right.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/background-color.vue.d.ts +37 -0
- package/dist/types/components/menus/toolbar/base/bold.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/bullet-list.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/clear-format.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/code.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/color.vue.d.ts +37 -0
- package/dist/types/components/menus/toolbar/base/font-family.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/font-size.vue.d.ts +15 -0
- package/dist/types/components/menus/toolbar/base/format-painter.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/heading.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/highlight.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/indent.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/italic.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/letter-spacing.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/line-height.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/margin.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/ordered-list.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/outdent.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/quote.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/redo.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/search-replace.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/select-all.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/strike.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/subscript.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/superscript.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/text-indent.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/underline.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/undo.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/base/word-wrap.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/audio.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/callout.vue.d.ts +15 -0
- package/dist/types/components/menus/toolbar/insert/code-block.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/columns.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/details.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/emoji.vue.d.ts +9 -0
- package/dist/types/components/menus/toolbar/insert/file.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/footnote.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/gallery.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/hard-break.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/hr.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/image-text.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/image.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/prompt.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/symbol.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/tag.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/template.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/text-box.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/timeline.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/video.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/web-page.vue.d.ts +24 -0
- package/dist/types/components/menus/toolbar/table/add-column-after.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/add-column-before.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/add-row-after.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/add-row-before.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/border-cell.vue.d.ts +7 -0
- package/dist/types/components/menus/toolbar/table/border-color.vue.d.ts +7 -0
- package/dist/types/components/menus/toolbar/table/border.vue.d.ts +7 -0
- package/dist/types/components/menus/toolbar/table/caption.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/cells-align.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/cells-background.vue.d.ts +7 -0
- package/dist/types/components/menus/toolbar/table/delete-column.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/delete-row.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/delete.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/fix.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/insert.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/merge-cells.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/next-cell.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/preset-style.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/previous-cell.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/split-cell.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/toggle-header-cell.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/toggle-header-column.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/table/toggle-header-row.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/bubble-note.vue.d.ts +24 -0
- package/dist/types/components/menus/toolbar/tools/chinese-case.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/circle-text.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/float-left.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/float-right.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/formatting.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/import-docx.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/math.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/mind-map.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/nowrap.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/tools/style-editor.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/fullscreen.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/page-settings.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/preview.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/reset.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/theme.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/toc.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/zoom-auto.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/zoom-original.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/view/zoom.vue.d.ts +3 -0
- package/dist/types/components/modal.vue.d.ts +15 -0
- package/dist/types/components/page-options.vue.d.ts +17 -0
- package/dist/types/components/picker/borderStyle.vue.d.ts +7 -0
- package/dist/types/components/picker/color.vue.d.ts +29 -0
- package/dist/types/components/statusbar/about.vue.d.ts +19 -0
- package/dist/types/components/statusbar/countdown.vue.d.ts +33 -0
- package/dist/types/components/statusbar/index.vue.d.ts +3 -0
- package/dist/types/components/statusbar/shortcuts.vue.d.ts +3 -0
- package/dist/types/components/toolbar/classic.vue.d.ts +70 -0
- package/dist/types/components/toolbar/index.vue.d.ts +21 -0
- package/dist/types/components/toolbar/ribbon.vue.d.ts +70 -0
- package/dist/types/components/toolbar/scrollable.vue.d.ts +15 -0
- package/dist/types/components/tooltip.vue.d.ts +23 -0
- package/dist/types/composables/copy.d.ts +1 -0
- package/dist/types/composables/dialog.d.ts +22 -0
- package/dist/types/composables/hotkeys.d.ts +9 -0
- package/dist/types/composables/i18n.d.ts +3658 -0
- package/dist/types/composables/isEmpty.d.ts +6 -0
- package/dist/types/composables/popup.d.ts +4 -0
- package/dist/types/composables/select.d.ts +3 -0
- package/dist/types/composables/state.d.ts +7 -0
- package/dist/types/extensions/audio/index.d.ts +35 -0
- package/dist/types/extensions/audio/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/audio/vtt.d.ts +6 -0
- package/dist/types/extensions/bookmark.d.ts +11 -0
- package/dist/types/extensions/break-marks.d.ts +2 -0
- package/dist/types/extensions/bubble-note.d.ts +4 -0
- package/dist/types/extensions/bullet-list.d.ts +2 -0
- package/dist/types/extensions/callout/index.d.ts +8 -0
- package/dist/types/extensions/callout/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/code-block/index.d.ts +2 -0
- package/dist/types/extensions/code-block/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/columns/dom.d.ts +6 -0
- package/dist/types/extensions/columns/index.d.ts +8 -0
- package/dist/types/extensions/columns/keymap.d.ts +2 -0
- package/dist/types/extensions/columns/resize.d.ts +8 -0
- package/dist/types/extensions/columns/schema.d.ts +31 -0
- package/dist/types/extensions/columns/state.d.ts +13 -0
- package/dist/types/extensions/columns/utils.d.ts +9 -0
- package/dist/types/extensions/custom-style.d.ts +8 -0
- package/dist/types/extensions/details/index.d.ts +1 -0
- package/dist/types/extensions/details/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/editor-html-serialization.d.ts +4 -0
- package/dist/types/extensions/element-style.d.ts +4 -0
- package/dist/types/extensions/file/index.d.ts +16 -0
- package/dist/types/extensions/file/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/file-handler.d.ts +12 -0
- package/dist/types/extensions/float.d.ts +8 -0
- package/dist/types/extensions/footnotes/footnote.d.ts +2 -0
- package/dist/types/extensions/footnotes/footnotes.d.ts +2 -0
- package/dist/types/extensions/footnotes/index.d.ts +9 -0
- package/dist/types/extensions/footnotes/reference.d.ts +8 -0
- package/dist/types/extensions/footnotes/rules.d.ts +8 -0
- package/dist/types/extensions/footnotes/utils.d.ts +4 -0
- package/dist/types/extensions/format-painter.d.ts +8 -0
- package/dist/types/extensions/gallery/index.d.ts +42 -0
- package/dist/types/extensions/gallery/node-view.vue.d.ts +94 -0
- package/dist/types/extensions/heading.d.ts +2 -0
- package/dist/types/extensions/horizontal-rule.d.ts +2 -0
- package/dist/types/extensions/iframe/index.d.ts +8 -0
- package/dist/types/extensions/iframe/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/image/index.d.ts +2 -0
- package/dist/types/extensions/image/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/image-cropper.d.ts +43 -0
- package/dist/types/extensions/image-text/index.d.ts +8 -0
- package/dist/types/extensions/image-text/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/indent.d.ts +14 -0
- package/dist/types/extensions/index.d.ts +18 -0
- package/dist/types/extensions/insert-newline.d.ts +8 -0
- package/dist/types/extensions/letter-spacing.d.ts +11 -0
- package/dist/types/extensions/line-height.d.ts +8 -0
- package/dist/types/extensions/list-item/index.d.ts +2 -0
- package/dist/types/extensions/list-item/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/list-item/utils.d.ts +111 -0
- package/dist/types/extensions/margin.d.ts +14 -0
- package/dist/types/extensions/math/index.d.ts +45 -0
- package/dist/types/extensions/math/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/node-align.d.ts +12 -0
- package/dist/types/extensions/node-select.d.ts +10 -0
- package/dist/types/extensions/office-paste/index.d.ts +8 -0
- package/dist/types/extensions/office-paste/transform/bookmark.d.ts +1 -0
- package/dist/types/extensions/office-paste/transform/excel.d.ts +1 -0
- package/dist/types/extensions/office-paste/transform/html-classes.d.ts +1 -0
- package/dist/types/extensions/office-paste/transform/line-number.d.ts +1 -0
- package/dist/types/extensions/office-paste/transform/list.d.ts +1 -0
- package/dist/types/extensions/office-paste/transform/style.d.ts +3 -0
- package/dist/types/extensions/office-paste/transform/toc.d.ts +1 -0
- package/dist/types/extensions/office-paste/utils.d.ts +35 -0
- package/dist/types/extensions/ordered-list.d.ts +2 -0
- package/dist/types/extensions/page-break.d.ts +14 -0
- package/dist/types/extensions/paragraph.d.ts +2 -0
- package/dist/types/extensions/prompt/index.d.ts +8 -0
- package/dist/types/extensions/prompt/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/search-replace.d.ts +25 -0
- package/dist/types/extensions/selection.d.ts +2 -0
- package/dist/types/extensions/table-row-resize.d.ts +4 -0
- package/dist/types/extensions/table.d.ts +26 -0
- package/dist/types/extensions/tag/index.d.ts +8 -0
- package/dist/types/extensions/tag/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/text-align.d.ts +2 -0
- package/dist/types/extensions/text-box/index.d.ts +8 -0
- package/dist/types/extensions/text-box/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/timeline/content.vue.d.ts +8 -0
- package/dist/types/extensions/timeline/index.d.ts +59 -0
- package/dist/types/extensions/timeline/model.d.ts +45 -0
- package/dist/types/extensions/timeline/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/tiptap-track-change-extension.d.ts +62 -0
- package/dist/types/extensions/type-writer.d.ts +9 -0
- package/dist/types/extensions/video/index.d.ts +8 -0
- package/dist/types/extensions/video/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/word-wrap.d.ts +10 -0
- package/dist/types/i18n.d.ts +3645 -0
- package/dist/types/options/config/dicts.d.ts +67 -0
- package/dist/types/options/config/index.d.ts +203 -0
- package/dist/types/options/index.d.ts +4 -0
- package/dist/types/options/schema.d.ts +3 -0
- package/dist/types/utils/bubble-note-icon.d.ts +19 -0
- package/dist/types/utils/content-migration.d.ts +12 -0
- package/dist/types/utils/content-transform.d.ts +6 -0
- package/dist/types/utils/copyright.d.ts +4 -0
- package/dist/types/utils/diagram-editor.d.ts +25 -0
- package/dist/types/utils/document-formatting.d.ts +69 -0
- package/dist/types/utils/docx-json.d.ts +17 -0
- package/dist/types/utils/file-icon.d.ts +1 -0
- package/dist/types/utils/file.d.ts +82 -0
- package/dist/types/utils/history-record.d.ts +22 -0
- package/dist/types/utils/image-cropper.d.ts +53 -0
- package/dist/types/utils/image-source.d.ts +1 -0
- package/dist/types/utils/load-resource.d.ts +8 -0
- package/dist/types/utils/options.d.ts +7 -0
- package/dist/types/utils/page-dimensions.d.ts +29 -0
- package/dist/types/utils/player.d.ts +4 -0
- package/dist/types/utils/position.d.ts +5 -0
- package/dist/types/utils/selection.d.ts +3 -0
- package/dist/types/utils/short-id.d.ts +10 -0
- package/dist/types/utils/shortcut.d.ts +1 -0
- package/dist/types/utils/storage-migration.d.ts +5 -0
- package/dist/types/utils/svg-normalizer.d.ts +25 -0
- package/dist/types/utils/time-ago.d.ts +1 -0
- package/dist/types/utils/upload.d.ts +20 -0
- package/docs/FORMATTING_TEMPLATES.md +250 -0
- package/docs/README.md +40 -0
- package/docs/SECONDARY_DEVELOPMENT.md +795 -0
- package/docs/api.md +155 -0
- package/docs/architecture.md +133 -0
- package/docs/configuration.md +233 -0
- package/docs/custom-components.md +277 -0
- package/docs/development.md +85 -0
- package/docs/faq.md +98 -0
- package/docs/features.md +181 -0
- package/docs/menu-extension.md +276 -0
- package/package.json +92 -79
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
# 菜单扩展
|
|
2
|
+
|
|
3
|
+
本文说明如何给 Agile Editor 添加工具栏按钮。先区分三件事:
|
|
4
|
+
|
|
5
|
+
- **菜单按钮**:用户看到的图标、文字和点击事件。
|
|
6
|
+
- **Tiptap 命令**:按钮点击后执行什么文档操作。
|
|
7
|
+
- **Tiptap 扩展**:文档中是否允许出现新的节点类型。
|
|
8
|
+
|
|
9
|
+
只执行已有命令时,只需要添加按钮。需要新的文档节点时,还要开发 Tiptap 扩展,参见 [二次开发指南](./SECONDARY_DEVELOPMENT.md)。
|
|
10
|
+
|
|
11
|
+
## 选择扩展路线
|
|
12
|
+
|
|
13
|
+
| 场景 | 推荐路线 |
|
|
14
|
+
| --- | --- |
|
|
15
|
+
| 业务项目添加“插入审批意见”等按钮 | 使用 `toolbar_*` 插槽 |
|
|
16
|
+
| 业务项目打开自己的表单、弹窗或接口 | 插槽组件 + `created` 获取 Editor |
|
|
17
|
+
| 修改编辑器自带按钮 | 修改本仓库源码 |
|
|
18
|
+
| 新增“业务”一级菜单 | 修改本仓库源码 |
|
|
19
|
+
|
|
20
|
+
## 业务项目添加菜单
|
|
21
|
+
|
|
22
|
+
业务项目不需要修改编辑器源码,也不需要从 npm 包导入 `classic.vue` 或 `ribbon.vue`。
|
|
23
|
+
|
|
24
|
+
### 1. 获取 Editor
|
|
25
|
+
|
|
26
|
+
父组件不能 `inject('editor')`,因为 Editor 由子组件 `<AgileEditor>` 提供。使用 `created` 事件获取:
|
|
27
|
+
|
|
28
|
+
```vue
|
|
29
|
+
<script setup lang="ts">
|
|
30
|
+
import { shallowRef } from 'vue'
|
|
31
|
+
import type { Editor } from '@tiptap/core'
|
|
32
|
+
|
|
33
|
+
const editor = shallowRef<Editor>()
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<template>
|
|
37
|
+
<AgileEditor
|
|
38
|
+
@created="({ editor: instance }) => (editor = instance)"
|
|
39
|
+
/>
|
|
40
|
+
</template>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Editor 是复杂类实例,使用 `shallowRef`,不要使用会深层代理对象的 `ref`。
|
|
44
|
+
|
|
45
|
+
### 2. 创建业务按钮
|
|
46
|
+
|
|
47
|
+
```vue
|
|
48
|
+
<!-- BusinessInsertButton.vue -->
|
|
49
|
+
<template>
|
|
50
|
+
<AgileMenuButton
|
|
51
|
+
ico="plus"
|
|
52
|
+
text="插入提示"
|
|
53
|
+
tooltip="插入业务提示内容"
|
|
54
|
+
@menu-click="insertNotice"
|
|
55
|
+
/>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script setup lang="ts">
|
|
59
|
+
import type { Editor } from '@tiptap/core'
|
|
60
|
+
import { AgileMenuButton } from '@agilehub/agile-editor'
|
|
61
|
+
|
|
62
|
+
const props = defineProps<{
|
|
63
|
+
editor?: Editor
|
|
64
|
+
}>()
|
|
65
|
+
|
|
66
|
+
function insertNotice() {
|
|
67
|
+
props.editor
|
|
68
|
+
?.chain()
|
|
69
|
+
.focus()
|
|
70
|
+
.insertContent('<p>这是一段业务提示内容。</p>')
|
|
71
|
+
.run()
|
|
72
|
+
}
|
|
73
|
+
</script>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
`AgileMenuButton` 应位于编辑器工具栏插槽中,因为它依赖编辑器的上下文。
|
|
77
|
+
|
|
78
|
+
### 3. 放入工具栏插槽
|
|
79
|
+
|
|
80
|
+
```vue
|
|
81
|
+
<script setup lang="ts">
|
|
82
|
+
import { shallowRef } from 'vue'
|
|
83
|
+
import { AgileEditor } from '@agilehub/agile-editor'
|
|
84
|
+
import type { Editor } from '@tiptap/core'
|
|
85
|
+
import BusinessInsertButton from './BusinessInsertButton.vue'
|
|
86
|
+
|
|
87
|
+
const editor = shallowRef<Editor>()
|
|
88
|
+
</script>
|
|
89
|
+
|
|
90
|
+
<template>
|
|
91
|
+
<AgileEditor
|
|
92
|
+
@created="({ editor: instance }) => (editor = instance)"
|
|
93
|
+
>
|
|
94
|
+
<template #toolbar_insert="{ toolbarMode }">
|
|
95
|
+
<BusinessInsertButton
|
|
96
|
+
:editor="editor"
|
|
97
|
+
:data-toolbar-mode="toolbarMode"
|
|
98
|
+
/>
|
|
99
|
+
</template>
|
|
100
|
+
</AgileEditor>
|
|
101
|
+
</template>
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
插槽会提供 `toolbar-mode`,值为 `classic` 或 `ribbon`。按钮需要不同尺寸时可按该值调整。
|
|
105
|
+
|
|
106
|
+
### 可用工具栏插槽
|
|
107
|
+
|
|
108
|
+
| 插槽 | 显示位置 |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| `toolbar_base` | “开始”工具栏 |
|
|
111
|
+
| `toolbar_insert` | “插入”工具栏 |
|
|
112
|
+
| `toolbar_table` | “表格”工具栏 |
|
|
113
|
+
| `toolbar_tools` | “工具”工具栏 |
|
|
114
|
+
| `toolbar_view` | “视图”工具栏 |
|
|
115
|
+
| `toolbar_copyediting` | “审阅/校对”工具栏 |
|
|
116
|
+
| `toolbar_actions` | 工具栏右侧操作区 |
|
|
117
|
+
| `bubble_menu` | 选区或节点浮动菜单 |
|
|
118
|
+
|
|
119
|
+
插槽对应的菜单必须在 `toolbar.menus` 中启用。
|
|
120
|
+
|
|
121
|
+
### 按钮打开业务弹窗
|
|
122
|
+
|
|
123
|
+
```vue
|
|
124
|
+
<template>
|
|
125
|
+
<AgileMenuButton
|
|
126
|
+
ico="edit"
|
|
127
|
+
text="业务弹窗"
|
|
128
|
+
@menu-click="visible = true"
|
|
129
|
+
/>
|
|
130
|
+
<AgileDialog
|
|
131
|
+
v-model:visible="visible"
|
|
132
|
+
header="业务设置"
|
|
133
|
+
@confirm="confirm"
|
|
134
|
+
>
|
|
135
|
+
<input v-model="value" />
|
|
136
|
+
</AgileDialog>
|
|
137
|
+
</template>
|
|
138
|
+
|
|
139
|
+
<script setup lang="ts">
|
|
140
|
+
import type { Editor } from '@tiptap/core'
|
|
141
|
+
import {
|
|
142
|
+
AgileDialog,
|
|
143
|
+
AgileMenuButton,
|
|
144
|
+
} from '@agilehub/agile-editor'
|
|
145
|
+
|
|
146
|
+
const props = defineProps<{ editor?: Editor }>()
|
|
147
|
+
const visible = ref(false)
|
|
148
|
+
const value = ref('')
|
|
149
|
+
|
|
150
|
+
function confirm() {
|
|
151
|
+
props.editor
|
|
152
|
+
?.chain()
|
|
153
|
+
.focus()
|
|
154
|
+
.insertContent(`<p>${value.value}</p>`)
|
|
155
|
+
.run()
|
|
156
|
+
visible.value = false
|
|
157
|
+
}
|
|
158
|
+
</script>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
异步确认前应重新检查 Editor 是否仍然可用。不要无条件复用已经失效的旧选区位置。
|
|
162
|
+
|
|
163
|
+
## 源码项目增加菜单
|
|
164
|
+
|
|
165
|
+
以下步骤只适用于修改本仓库源码。
|
|
166
|
+
|
|
167
|
+
### 1. 创建菜单组件
|
|
168
|
+
|
|
169
|
+
在 `src/components/menus/toolbar/insert/` 下创建:
|
|
170
|
+
|
|
171
|
+
```vue
|
|
172
|
+
<!-- notice.vue -->
|
|
173
|
+
<template>
|
|
174
|
+
<menus-button
|
|
175
|
+
ico="plus"
|
|
176
|
+
text="插入提示"
|
|
177
|
+
tooltip="插入业务提示内容"
|
|
178
|
+
@menu-click="insertNotice"
|
|
179
|
+
/>
|
|
180
|
+
</template>
|
|
181
|
+
|
|
182
|
+
<script setup lang="ts">
|
|
183
|
+
const editor = inject('editor')
|
|
184
|
+
|
|
185
|
+
function insertNotice() {
|
|
186
|
+
editor.value
|
|
187
|
+
?.chain()
|
|
188
|
+
.focus()
|
|
189
|
+
.insertContent('<p>这是一段业务提示内容。</p>')
|
|
190
|
+
.run()
|
|
191
|
+
}
|
|
192
|
+
</script>
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
仓库内部 SFC 会自动导入 Vue API、composables 和按目录命名的组件。独立 `.ts` 文件仍需显式 import。
|
|
196
|
+
|
|
197
|
+
### 2. 同时修改两种工具栏
|
|
198
|
+
|
|
199
|
+
在 `src/components/toolbar/classic.vue` 和 `src/components/toolbar/ribbon.vue` 的“插入”分支中加入:
|
|
200
|
+
|
|
201
|
+
```vue
|
|
202
|
+
<menus-toolbar-insert-notice
|
|
203
|
+
v-if="!disableMenu('notice')"
|
|
204
|
+
/>
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
如果只在一种布局添加,切换到另一种工具栏后按钮会消失。
|
|
208
|
+
|
|
209
|
+
### 3. 新增图标
|
|
210
|
+
|
|
211
|
+
把 SVG 文件放到:
|
|
212
|
+
|
|
213
|
+
```text
|
|
214
|
+
src/assets/icons/
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
文件名会注册为:
|
|
218
|
+
|
|
219
|
+
```text
|
|
220
|
+
agile-icon-<文件名>
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
组件中通过 `ico="文件名"` 使用。
|
|
224
|
+
|
|
225
|
+
### 4. 测试按钮
|
|
226
|
+
|
|
227
|
+
检查:
|
|
228
|
+
|
|
229
|
+
1. Classic 工具栏可见。
|
|
230
|
+
2. Ribbon 工具栏可见。
|
|
231
|
+
3. 菜单禁用配置有效。
|
|
232
|
+
4. 只读模式下按钮不可执行修改。
|
|
233
|
+
5. 点击后插入位置和撤销记录正确。
|
|
234
|
+
|
|
235
|
+
## 源码项目增加一级菜单
|
|
236
|
+
|
|
237
|
+
以新增“业务”菜单为例:
|
|
238
|
+
|
|
239
|
+
1. 在 `src/options/config/index.ts` 的 `toolbar.menus` 中加入 `business`。
|
|
240
|
+
2. 在 `src/components/toolbar/index.vue` 的菜单名称映射中加入 `business`。
|
|
241
|
+
3. 在 `src/locales/zh-CN.json` 和 `src/locales/en-US.json` 中加入菜单名称。
|
|
242
|
+
4. 在 `classic.vue` 和 `ribbon.vue` 增加 `currentMenu === 'business'` 分支。
|
|
243
|
+
5. 为两种布局增加 `toolbar_business` 插槽。
|
|
244
|
+
6. 检查 `src/options/schema.ts` 对 `toolbar.menus` 的校验。
|
|
245
|
+
7. 测试切换、隐藏、插槽和两种布局。
|
|
246
|
+
|
|
247
|
+
业务项目仅传入一个任意菜单名不会自动创建新选项卡,自定义一级菜单必须修改源码。
|
|
248
|
+
|
|
249
|
+
## 按钮和命令的关系
|
|
250
|
+
|
|
251
|
+
```text
|
|
252
|
+
菜单按钮
|
|
253
|
+
→ 执行已有 Tiptap 命令或业务函数
|
|
254
|
+
→ 修改文档
|
|
255
|
+
→ renderHTML / NodeView 负责显示
|
|
256
|
+
→ 保存时序列化
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
注册 Tiptap 扩展不会自动创建按钮;添加按钮也不会自动允许新的节点类型。
|
|
260
|
+
|
|
261
|
+
## 常见问题
|
|
262
|
+
|
|
263
|
+
| 问题 | 检查 |
|
|
264
|
+
| --- | --- |
|
|
265
|
+
| 按钮看不到 | 菜单是否启用、插槽是否正确、两种工具栏是否都已修改 |
|
|
266
|
+
| 点击没有反应 | Editor 是否已初始化、命令是否存在、是否只读 |
|
|
267
|
+
| 图标不显示 | SVG 文件名、`ico` 值和 sprite symbol |
|
|
268
|
+
| 业务按钮无法获取 Editor | 使用 `created` 事件,不要在父组件 inject |
|
|
269
|
+
| 按钮只在一种布局出现 | 同时检查 classic 和 ribbon |
|
|
270
|
+
| 扩展注册后仍无按钮 | `extensions` 只注册文档能力 |
|
|
271
|
+
|
|
272
|
+
## 继续阅读
|
|
273
|
+
|
|
274
|
+
- [外部组件接入](./custom-components.md)
|
|
275
|
+
- [二次开发指南](./SECONDARY_DEVELOPMENT.md)
|
|
276
|
+
- [组件方法与事件](./api.md)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agilehub/agile-editor",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "",
|
|
5
|
-
"
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Rich text editor based on Vue 3 and Tiptap 3",
|
|
5
|
+
"author": "lytdev <lytdev@outlook.com>",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"docs editor",
|
|
8
8
|
"document editor",
|
|
@@ -18,27 +18,32 @@
|
|
|
18
18
|
"web office",
|
|
19
19
|
"word editor"
|
|
20
20
|
],
|
|
21
|
-
"license": "
|
|
22
|
-
"
|
|
23
|
-
"
|
|
21
|
+
"license": "Apache 2.0",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "https://github.com/lytdev/agile-editor.git"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"access": "public"
|
|
24
28
|
},
|
|
25
29
|
"files": [
|
|
26
|
-
"dist"
|
|
30
|
+
"dist",
|
|
31
|
+
"docs"
|
|
27
32
|
],
|
|
28
33
|
"type": "module",
|
|
34
|
+
"types": "./dist/types/components/index.d.ts",
|
|
29
35
|
"exports": {
|
|
30
36
|
".": {
|
|
37
|
+
"types": "./dist/types/components/index.d.ts",
|
|
31
38
|
"import": "./dist/agile-editor.js"
|
|
32
39
|
},
|
|
33
40
|
"./style": {
|
|
34
41
|
"import": "./dist/agile-editor.css"
|
|
35
42
|
}
|
|
36
43
|
},
|
|
37
|
-
"publishConfig": {
|
|
38
|
-
"access": "public"
|
|
39
|
-
},
|
|
40
44
|
"scripts": {
|
|
41
|
-
"build": "vite build",
|
|
45
|
+
"build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.types.json",
|
|
46
|
+
"typecheck": "vue-tsc --noEmit",
|
|
42
47
|
"dev": "vite --port 9000 --open --force",
|
|
43
48
|
"format": "oxfmt --write .",
|
|
44
49
|
"lint": "oxlint --fix src",
|
|
@@ -47,94 +52,102 @@
|
|
|
47
52
|
"prepublishOnly": "npm run build"
|
|
48
53
|
},
|
|
49
54
|
"dependencies": {
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@tiptap/
|
|
55
|
-
"@tiptap/extension-
|
|
56
|
-
"@tiptap/extension-
|
|
57
|
-
"@tiptap/extension-
|
|
58
|
-
"@tiptap/extension-
|
|
59
|
-
"@tiptap/extension-
|
|
60
|
-
"@tiptap/extension-
|
|
61
|
-
"@tiptap/extension-
|
|
62
|
-
"@tiptap/extension-
|
|
63
|
-
"@tiptap/extension-
|
|
64
|
-
"@tiptap/extension-
|
|
65
|
-
"@tiptap/extension-
|
|
66
|
-
"@tiptap/extension-
|
|
67
|
-
"@tiptap/extension-
|
|
68
|
-
"@tiptap/extension-
|
|
69
|
-
"@tiptap/extension-
|
|
70
|
-
"@tiptap/extension-
|
|
71
|
-
"@tiptap/extension-
|
|
72
|
-
"@tiptap/extension-
|
|
73
|
-
"@tiptap/extension-
|
|
74
|
-
"@tiptap/extension-table
|
|
75
|
-
"@tiptap/extension-
|
|
76
|
-
"@tiptap/extension-text-
|
|
77
|
-
"@tiptap/extension-
|
|
78
|
-
"@tiptap/extension-
|
|
79
|
-
"@tiptap/
|
|
80
|
-
"@tiptap/
|
|
81
|
-
"@tiptap/
|
|
82
|
-
"@tiptap/
|
|
83
|
-
"@tiptap/
|
|
84
|
-
"@tiptap/
|
|
55
|
+
"@agilehub/docx-converter": "1.2.0",
|
|
56
|
+
"@agilehub/latex-formula": "1.2.0",
|
|
57
|
+
"@eslint/object-schema": "3.0.5",
|
|
58
|
+
"@floating-ui/dom": "1.8.0",
|
|
59
|
+
"@tiptap/core": "3.32.0",
|
|
60
|
+
"@tiptap/extension-bold": "3.32.0",
|
|
61
|
+
"@tiptap/extension-code-block": "3.32.0",
|
|
62
|
+
"@tiptap/extension-code-block-lowlight": "3.32.0",
|
|
63
|
+
"@tiptap/extension-collaboration": "3.32.0",
|
|
64
|
+
"@tiptap/extension-details": "3.32.0",
|
|
65
|
+
"@tiptap/extension-document": "3.32.0",
|
|
66
|
+
"@tiptap/extension-drag-handle": "3.32.0",
|
|
67
|
+
"@tiptap/extension-drag-handle-vue-3": "3.32.0",
|
|
68
|
+
"@tiptap/extension-heading": "3.32.0",
|
|
69
|
+
"@tiptap/extension-horizontal-rule": "3.32.0",
|
|
70
|
+
"@tiptap/extension-image": "3.32.0",
|
|
71
|
+
"@tiptap/extension-invisible-characters": "3.32.0",
|
|
72
|
+
"@tiptap/extension-link": "3.32.0",
|
|
73
|
+
"@tiptap/extension-list": "3.32.0",
|
|
74
|
+
"@tiptap/extension-mention": "3.32.0",
|
|
75
|
+
"@tiptap/extension-node-range": "3.32.0",
|
|
76
|
+
"@tiptap/extension-paragraph": "3.32.0",
|
|
77
|
+
"@tiptap/extension-subscript": "3.32.0",
|
|
78
|
+
"@tiptap/extension-superscript": "3.32.0",
|
|
79
|
+
"@tiptap/extension-table": "3.32.0",
|
|
80
|
+
"@tiptap/extension-table-of-contents": "3.32.0",
|
|
81
|
+
"@tiptap/extension-text-align": "3.32.0",
|
|
82
|
+
"@tiptap/extension-text-style": "3.32.0",
|
|
83
|
+
"@tiptap/extension-typography": "3.32.0",
|
|
84
|
+
"@tiptap/extension-unique-id": "3.32.0",
|
|
85
|
+
"@tiptap/extensions": "3.32.0",
|
|
86
|
+
"@tiptap/pm": "3.32.0",
|
|
87
|
+
"@tiptap/starter-kit": "3.32.0",
|
|
88
|
+
"@tiptap/suggestion": "3.32.0",
|
|
89
|
+
"@tiptap/vue-3": "3.32.0",
|
|
90
|
+
"@tiptap/y-tiptap": "3.0.10",
|
|
85
91
|
"@tool-belt/type-predicates": "1.4.1",
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"cropperjs": "^2.
|
|
89
|
-
"dom-to-image-more": "3.
|
|
90
|
-
"es-drager": "1.
|
|
92
|
+
"@vueuse/core": "15.0.0",
|
|
93
|
+
"@zumer/snapdom": "2.24.18",
|
|
94
|
+
"cropperjs": "^2.3.1",
|
|
95
|
+
"dom-to-image-more": "3.11.0",
|
|
96
|
+
"es-drager": "1.3.4",
|
|
91
97
|
"fast-glob": "3.3.3",
|
|
92
98
|
"file-saver": "2.0.5",
|
|
93
|
-
"
|
|
99
|
+
"flowchart.js": "1.18.0",
|
|
100
|
+
"hotkeys-js": "4.0.8",
|
|
94
101
|
"jsbarcode": "3.12.3",
|
|
95
|
-
"katex": "0.16.33",
|
|
96
102
|
"lowlight": "3.3.0",
|
|
103
|
+
"mermaid": "12.2.0",
|
|
97
104
|
"nzh": "1.0.14",
|
|
98
|
-
"
|
|
105
|
+
"plantuml-encoder": "1.4.0",
|
|
106
|
+
"plyr": "3.8.5",
|
|
107
|
+
"pretty-bytes": "7.2.0",
|
|
99
108
|
"pure-svg-code": "1.0.6",
|
|
100
|
-
"smooth-signature": "1.0
|
|
101
|
-
"
|
|
102
|
-
"vue-
|
|
103
|
-
"
|
|
104
|
-
"y-
|
|
105
|
-
"
|
|
109
|
+
"smooth-signature": "1.1.0",
|
|
110
|
+
"swiper": "14.3.0",
|
|
111
|
+
"tdesign-vue-next": "1.20.10",
|
|
112
|
+
"vue-i18n": "11.4.16",
|
|
113
|
+
"y-prosemirror": "1.3.7",
|
|
114
|
+
"y-protocols": "1.0.7",
|
|
115
|
+
"yjs": "13.6.33"
|
|
106
116
|
},
|
|
107
117
|
"devDependencies": {
|
|
108
|
-
"@
|
|
109
|
-
"@
|
|
110
|
-
"
|
|
118
|
+
"@types/node": "^26.6.5",
|
|
119
|
+
"@vitejs/plugin-vue": "^6.0.10",
|
|
120
|
+
"@vue-macros/reactivity-transform": "^3.1.4",
|
|
121
|
+
"esbuild": "^0.28.2",
|
|
111
122
|
"husky": "^9.1.7",
|
|
112
|
-
"less": "^4.
|
|
113
|
-
"less-loader": "^
|
|
114
|
-
"lint-staged": "^
|
|
115
|
-
"oxfmt": "^0.
|
|
116
|
-
"oxlint": "^1.
|
|
117
|
-
"postcss": "^8.5.
|
|
118
|
-
"postcss-html": "^
|
|
119
|
-
"
|
|
120
|
-
"unplugin-
|
|
121
|
-
"unplugin-vue
|
|
122
|
-
"unplugin-vue-
|
|
123
|
-
"vite": "^
|
|
123
|
+
"less": "^4.9.1",
|
|
124
|
+
"less-loader": "^13.0.0",
|
|
125
|
+
"lint-staged": "^17.6.0",
|
|
126
|
+
"oxfmt": "^0.74.0",
|
|
127
|
+
"oxlint": "^1.89.0",
|
|
128
|
+
"postcss": "^8.5.31",
|
|
129
|
+
"postcss-html": "^2.0.0",
|
|
130
|
+
"typescript": "~6.0.3",
|
|
131
|
+
"unplugin-auto-import": "^21.1.0",
|
|
132
|
+
"unplugin-vue": "^8.0.0",
|
|
133
|
+
"unplugin-vue-components": "^32.1.0",
|
|
134
|
+
"vite": "^8.3.4",
|
|
124
135
|
"vite-bundle-visualizer": "^1.2.1",
|
|
125
136
|
"vite-plugin-svg-icons": "^2.0.1",
|
|
126
|
-
"vue": "^3.5.
|
|
137
|
+
"vue": "^3.5.44",
|
|
138
|
+
"vue-tsc": "^3.3.13"
|
|
127
139
|
},
|
|
128
140
|
"overrides": {
|
|
129
|
-
"rolldown": "^1.
|
|
141
|
+
"rolldown": "^1.2.14",
|
|
142
|
+
"prosemirror-model": "1.25.12"
|
|
130
143
|
},
|
|
131
144
|
"lint-staged": {
|
|
132
|
-
"*.{
|
|
145
|
+
"*.{ts,vue,less}": [
|
|
133
146
|
"oxfmt --write src",
|
|
134
147
|
"oxlint --fix src"
|
|
135
148
|
]
|
|
136
149
|
},
|
|
137
150
|
"engines": {
|
|
138
|
-
"node": "^
|
|
151
|
+
"node": "^22.22.1 || ^24.11.0 || >=26.0.0"
|
|
139
152
|
}
|
|
140
153
|
}
|