@agilehub/agile-editor 1.8.5 → 1.9.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.
Files changed (37) hide show
  1. package/dist/agile-editor.css +1 -1
  2. package/dist/agile-editor.js +31160 -14002
  3. package/dist/{i18n-DZxiNlPY.js → i18n-CChALhQN.js} +36 -2
  4. package/dist/types/components/editor/table-background-control.vue.d.ts +1 -1
  5. package/dist/types/components/index.vue.d.ts +55 -4
  6. package/dist/types/components/menus/bubble/menus.vue.d.ts +2 -2
  7. package/dist/types/components/menus/toolbar/insert/emoji.vue.d.ts +3 -0
  8. package/dist/types/components/picker/color-panel.vue.d.ts +37 -0
  9. package/dist/types/components/picker/color.vue.d.ts +9 -0
  10. package/dist/types/components/preview-toolbar/drawing-layer.vue.d.ts +1 -1
  11. package/dist/types/components/statusbar/countdown.vue.d.ts +2 -2
  12. package/dist/types/composables/i18n.d.ts +51 -0
  13. package/dist/types/extensions/bubble-note-extensions.d.ts +1 -1
  14. package/dist/types/i18n.d.ts +51 -0
  15. package/dist/types/options/config/dicts.d.ts +8 -1
  16. package/dist/types/options/config/emojis.d.ts +15 -0
  17. package/dist/types/options/config/index.d.ts +8 -1
  18. package/dist/types/utils/emoji-search.d.ts +21 -0
  19. package/dist/types/utils/player.d.ts +12 -4
  20. package/dist/types/utils/video-frame.d.ts +1 -0
  21. package/dist/types/utils/video-skin.d.ts +1 -0
  22. package/dist/{viewer-DWO1FZ3A.js → viewer-Cv5V0Gjs.js} +2 -2
  23. package/docs/FORMATTING_TEMPLATES.md +253 -253
  24. package/docs/FORMATTING_TEMPLATE_BUSINESS_GUIDE.md +536 -536
  25. package/docs/SECONDARY_DEVELOPMENT.md +799 -799
  26. package/docs/features.md +1 -1
  27. package/docs/superpowers/plans/2026-11-27-table-reset-controls.md +185 -185
  28. package/docs/superpowers/plans/2026-11-28-bubble-note-rich-content.md +101 -101
  29. package/docs/superpowers/plans/2026-11-28-image-replace.md +190 -190
  30. package/docs/superpowers/plans/2026-11-28-table-image-resize-preview.md +121 -121
  31. package/docs/superpowers/plans/2026-11-28-table-property-category-actions.md +192 -192
  32. package/docs/superpowers/specs/2026-11-27-table-reset-controls-design.md +66 -66
  33. package/docs/superpowers/specs/2026-11-28-bubble-note-rich-content-design.md +64 -64
  34. package/docs/superpowers/specs/2026-11-28-image-replace-design.md +40 -40
  35. package/docs/superpowers/specs/2026-11-28-table-image-resize-preview-design.md +30 -30
  36. package/docs/superpowers/specs/2026-11-28-table-property-category-actions-design.md +63 -63
  37. package/package.json +165 -165
@@ -1,40 +1,40 @@
1
- # 图片快捷菜单原位替换
2
-
3
- ## 意图
4
-
5
- 在图片快捷气泡工具栏中增加“替换图片”入口。用户选中已插入的图片后,可以从本地选择一张新图片并直接替换当前图片内容,同时保持原节点身份、布局和图注设置不变。
6
-
7
- ## 方案
8
-
9
- 采用原位更新图片节点属性,不删除并重建节点:
10
-
11
- - 新增独立的图片替换菜单按钮,同时支持块图片和行内图片。
12
- - 点击按钮时记录当前图片节点位置、ID 和原来源地址,再打开单文件图片选择器。
13
- - 文件类型和大小沿用编辑器现有的图片上传配置。
14
- - 配置了自定义 `onFileUpload` 时使用其返回地址;未配置时读取文件为 base64 DataURL。
15
- - 上传完成后重新校验目标节点仍存在且未被替换,再通过单个事务更新节点属性。
16
- - 只更新 `src`、`srcEncoding`、`srcMimeType`、`uploaded` 和 `error` 等来源状态。节点 `id`、`style`、`class`、来源属性、尺寸、旋转、翻转、拖动位置、图注内容及图注样式等全部保持原值。
17
- - 替换操作进入撤销历史,可以通过一次撤销恢复原图片。
18
-
19
- ## 交互
20
-
21
- - 快捷菜单仅在图片节点被选中时显示“替换图片”按钮。
22
- - 选择文件期间按钮显示处理中状态,避免重复点击。
23
- - 上传或读取失败时显示错误消息,不修改原图片。
24
- - 用户取消文件选择时不产生编辑器事务。
25
-
26
- ## 非目标
27
-
28
- - 不替换图片节点或重写图片 ID。
29
- - 不修改图注文本和图注显隐设置。
30
- - 不根据新图片原始尺寸重置已有宽高、裁剪或旋转设置。
31
- - 不主动删除被替换的旧图片资源。
32
-
33
- ## 验收
34
-
35
- - 块图片和行内图片都能通过快捷菜单完成替换。
36
- - 替换后图片显示新内容,`id`、`imageId`、`style`、`class`、来源 HTML 属性和图注内容/样式保持不变。
37
- - 未配置 `onFileUpload` 时替换结果为 base64 DataURL。
38
- - 上传失败、目标节点失效或用户取消选择时,文档不发生变化。
39
- - 替换后一次撤销可以恢复原图片。
40
- - 相关单元测试、`typecheck` 和 `lint` 通过。
1
+ # 图片快捷菜单原位替换
2
+
3
+ ## 意图
4
+
5
+ 在图片快捷气泡工具栏中增加“替换图片”入口。用户选中已插入的图片后,可以从本地选择一张新图片并直接替换当前图片内容,同时保持原节点身份、布局和图注设置不变。
6
+
7
+ ## 方案
8
+
9
+ 采用原位更新图片节点属性,不删除并重建节点:
10
+
11
+ - 新增独立的图片替换菜单按钮,同时支持块图片和行内图片。
12
+ - 点击按钮时记录当前图片节点位置、ID 和原来源地址,再打开单文件图片选择器。
13
+ - 文件类型和大小沿用编辑器现有的图片上传配置。
14
+ - 配置了自定义 `onFileUpload` 时使用其返回地址;未配置时读取文件为 base64 DataURL。
15
+ - 上传完成后重新校验目标节点仍存在且未被替换,再通过单个事务更新节点属性。
16
+ - 只更新 `src`、`srcEncoding`、`srcMimeType`、`uploaded` 和 `error` 等来源状态。节点 `id`、`style`、`class`、来源属性、尺寸、旋转、翻转、拖动位置、图注内容及图注样式等全部保持原值。
17
+ - 替换操作进入撤销历史,可以通过一次撤销恢复原图片。
18
+
19
+ ## 交互
20
+
21
+ - 快捷菜单仅在图片节点被选中时显示“替换图片”按钮。
22
+ - 选择文件期间按钮显示处理中状态,避免重复点击。
23
+ - 上传或读取失败时显示错误消息,不修改原图片。
24
+ - 用户取消文件选择时不产生编辑器事务。
25
+
26
+ ## 非目标
27
+
28
+ - 不替换图片节点或重写图片 ID。
29
+ - 不修改图注文本和图注显隐设置。
30
+ - 不根据新图片原始尺寸重置已有宽高、裁剪或旋转设置。
31
+ - 不主动删除被替换的旧图片资源。
32
+
33
+ ## 验收
34
+
35
+ - 块图片和行内图片都能通过快捷菜单完成替换。
36
+ - 替换后图片显示新内容,`id`、`imageId`、`style`、`class`、来源 HTML 属性和图注内容/样式保持不变。
37
+ - 未配置 `onFileUpload` 时替换结果为 base64 DataURL。
38
+ - 上传失败、目标节点失效或用户取消选择时,文档不发生变化。
39
+ - 替换后一次撤销可以恢复原图片。
40
+ - 相关单元测试、`typecheck` 和 `lint` 通过。
@@ -1,30 +1,30 @@
1
- # 表格内图片缩放预览优化
2
-
3
- ## 意图
4
-
5
- 消除表格内图片拖拽缩放停止后约 1.2 秒才跳变到最终尺寸的延迟,让图片从拖拽开始就连续跟随鼠标预览。
6
-
7
- ## 方案
8
-
9
- - 拖拽过程中只更新图片 NodeView 的本地响应式预览尺寸,并保持 ProseMirror 文档不变。
10
- - 外框尺寸固定为拖拽起点尺寸,避免手势过程中触发表格布局连续回流。
11
- - `resize-end` 后立即调用一次 `commitPendingResize()`,将最终宽高写入文档。
12
- - 最终事务继续使用 `skipUniqueId` 和 `addToHistory: false`,避免图片 ID 重写以及重复保存完整图片数据。
13
- - 不保留 1.2 秒提交定时器;连续缩放时每个完整手势只产生一个最终事务。
14
- - 业务端已经定义的元素 ID 在尺寸、样式和普通属性变化过程中必须保持不变;运行时只允许给缺失 ID 补值。
15
- - 重复 ID 的冲突修复只允许发生在初始完整归一化阶段,不能在局部运行时事务中改写已有 ID。
16
-
17
- ## 非目标
18
-
19
- - 不修改表格列宽算法。
20
- - 不改变图片缩放比例、最小尺寸或单元格最大宽度限制。
21
- - 不在拖拽移动事件中写入编辑器文档或撤销历史。
22
-
23
- ## 验收
24
-
25
- - 按住缩放点移动时,图片视觉尺寸连续变化,不等待鼠标释放。
26
- - 鼠标释放后立即保存最终尺寸,没有明显跳变。
27
- - 连续缩放后表格 ID、图片 ID、`imageId`、NodeView 实例和表格宽度保持稳定。
28
- - 修改尺寸、样式或其他属性后,已有元素 ID、图片 `imageId` 和带 ID 的 mark 保持原值。
29
- - 拖拽缩窄单元格时,单元格内图片应按可用内容宽度等比适配显示,不能溢出;随后点击或缩放图片不能发生尺寸跳变。
30
- - `typecheck`、样式目标测试以及浏览器真实拖拽验证通过。
1
+ # 表格内图片缩放预览优化
2
+
3
+ ## 意图
4
+
5
+ 消除表格内图片拖拽缩放停止后约 1.2 秒才跳变到最终尺寸的延迟,让图片从拖拽开始就连续跟随鼠标预览。
6
+
7
+ ## 方案
8
+
9
+ - 拖拽过程中只更新图片 NodeView 的本地响应式预览尺寸,并保持 ProseMirror 文档不变。
10
+ - 外框尺寸固定为拖拽起点尺寸,避免手势过程中触发表格布局连续回流。
11
+ - `resize-end` 后立即调用一次 `commitPendingResize()`,将最终宽高写入文档。
12
+ - 最终事务继续使用 `skipUniqueId` 和 `addToHistory: false`,避免图片 ID 重写以及重复保存完整图片数据。
13
+ - 不保留 1.2 秒提交定时器;连续缩放时每个完整手势只产生一个最终事务。
14
+ - 业务端已经定义的元素 ID 在尺寸、样式和普通属性变化过程中必须保持不变;运行时只允许给缺失 ID 补值。
15
+ - 重复 ID 的冲突修复只允许发生在初始完整归一化阶段,不能在局部运行时事务中改写已有 ID。
16
+
17
+ ## 非目标
18
+
19
+ - 不修改表格列宽算法。
20
+ - 不改变图片缩放比例、最小尺寸或单元格最大宽度限制。
21
+ - 不在拖拽移动事件中写入编辑器文档或撤销历史。
22
+
23
+ ## 验收
24
+
25
+ - 按住缩放点移动时,图片视觉尺寸连续变化,不等待鼠标释放。
26
+ - 鼠标释放后立即保存最终尺寸,没有明显跳变。
27
+ - 连续缩放后表格 ID、图片 ID、`imageId`、NodeView 实例和表格宽度保持稳定。
28
+ - 修改尺寸、样式或其他属性后,已有元素 ID、图片 `imageId` 和带 ID 的 mark 保持原值。
29
+ - 拖拽缩窄单元格时,单元格内图片应按可用内容宽度等比适配显示,不能溢出;随后点击或缩放图片不能发生尺寸跳变。
30
+ - `typecheck`、样式目标测试以及浏览器真实拖拽验证通过。
@@ -1,63 +1,63 @@
1
- # Table Property Category Actions Design
2
-
3
- ## Intent
4
-
5
- Prevent table, row, and cell property edits from contaminating unrelated
6
- styles by splitting each property panel into independent categories. Every
7
- category has its own save and clear actions.
8
-
9
- ## Categories
10
-
11
- ### Table
12
-
13
- - Layout: width, unit, alignment.
14
- - Caption: caption visibility.
15
- - Background: existing independent background control.
16
-
17
- ### Row
18
-
19
- - Row type: header row.
20
- - Border: width, line style, color.
21
- - Background: existing independent background control.
22
-
23
- ### Cell
24
-
25
- - Size: width, height.
26
- - Alignment: horizontal and vertical alignment.
27
- - Border: width, line style, color.
28
- - Background: existing independent background control.
29
-
30
- ## Interaction
31
-
32
- - Each category renders its fields followed by its own Save and Clear actions.
33
- - Save submits only fields belonging to that category.
34
- - Clear removes only attributes belonging to that category.
35
- - Background retains its existing dedicated Apply and Clear actions.
36
- - There is no panel-wide Apply or Clear action.
37
- - Category sections are separated with a title and a divider in the existing
38
- compact quick-toolbar style. No nested cards are introduced.
39
-
40
- ## Clear Semantics
41
-
42
- - Table layout clear: remove table width and alignment inline declarations.
43
- - Table caption clear: hide the caption without removing its content.
44
- - Row type clear: convert selected rows to body rows.
45
- - Row border clear: remove only border attributes from selected row cells.
46
- - Cell size clear: remove width, height, and `colwidth`, preserving alignment,
47
- borders, and background.
48
- - Cell alignment clear: restore default left/top alignment and remove explicit
49
- text alignment generated by the cell alignment command.
50
- - Cell border clear: remove only border attributes, preserving size,
51
- alignment, and background.
52
-
53
- ## Non-Goals
54
-
55
- - No changes to table border menus outside the quick property panel.
56
- - No panel-wide save behavior.
57
- - No visual redesign of the editor or TDesign components.
58
-
59
- ## Constraints
60
-
61
- - Preserve existing user changes in the dirty worktree.
62
- - Reuse existing field-level patch commands where possible.
63
- - Add regression tests for all new category-level clear behavior.
1
+ # Table Property Category Actions Design
2
+
3
+ ## Intent
4
+
5
+ Prevent table, row, and cell property edits from contaminating unrelated
6
+ styles by splitting each property panel into independent categories. Every
7
+ category has its own save and clear actions.
8
+
9
+ ## Categories
10
+
11
+ ### Table
12
+
13
+ - Layout: width, unit, alignment.
14
+ - Caption: caption visibility.
15
+ - Background: existing independent background control.
16
+
17
+ ### Row
18
+
19
+ - Row type: header row.
20
+ - Border: width, line style, color.
21
+ - Background: existing independent background control.
22
+
23
+ ### Cell
24
+
25
+ - Size: width, height.
26
+ - Alignment: horizontal and vertical alignment.
27
+ - Border: width, line style, color.
28
+ - Background: existing independent background control.
29
+
30
+ ## Interaction
31
+
32
+ - Each category renders its fields followed by its own Save and Clear actions.
33
+ - Save submits only fields belonging to that category.
34
+ - Clear removes only attributes belonging to that category.
35
+ - Background retains its existing dedicated Apply and Clear actions.
36
+ - There is no panel-wide Apply or Clear action.
37
+ - Category sections are separated with a title and a divider in the existing
38
+ compact quick-toolbar style. No nested cards are introduced.
39
+
40
+ ## Clear Semantics
41
+
42
+ - Table layout clear: remove table width and alignment inline declarations.
43
+ - Table caption clear: hide the caption without removing its content.
44
+ - Row type clear: convert selected rows to body rows.
45
+ - Row border clear: remove only border attributes from selected row cells.
46
+ - Cell size clear: remove width, height, and `colwidth`, preserving alignment,
47
+ borders, and background.
48
+ - Cell alignment clear: restore default left/top alignment and remove explicit
49
+ text alignment generated by the cell alignment command.
50
+ - Cell border clear: remove only border attributes, preserving size,
51
+ alignment, and background.
52
+
53
+ ## Non-Goals
54
+
55
+ - No changes to table border menus outside the quick property panel.
56
+ - No panel-wide save behavior.
57
+ - No visual redesign of the editor or TDesign components.
58
+
59
+ ## Constraints
60
+
61
+ - Preserve existing user changes in the dirty worktree.
62
+ - Reuse existing field-level patch commands where possible.
63
+ - Add regression tests for all new category-level clear behavior.
package/package.json CHANGED
@@ -1,166 +1,166 @@
1
- {
2
- "name": "@agilehub/agile-editor",
3
- "version": "1.8.5",
4
- "description": "Rich text editor based on Vue 3 and Tiptap 3",
5
- "keywords": [
6
- "docs editor",
7
- "document editor",
8
- "editor",
9
- "office edtior",
10
- "online office",
11
- "richtext editor",
12
- "tiptap",
13
- "tiptap3",
14
- "vue editor",
15
- "vue3 editor",
16
- "web editor",
17
- "web office",
18
- "word editor"
19
- ],
20
- "license": "Apache-2.0",
21
- "author": "lytdev <lytdev@outlook.com>",
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/lytdev/agile-editor.git"
25
- },
26
- "files": [
27
- "dist",
28
- "docs"
29
- ],
30
- "type": "module",
31
- "types": "./dist/types/components/index.d.ts",
32
- "exports": {
33
- ".": {
34
- "types": "./dist/types/components/index.d.ts",
35
- "import": "./dist/agile-editor.js"
36
- },
37
- "./style": {
38
- "import": "./dist/agile-editor.css"
39
- }
40
- },
41
- "publishConfig": {
42
- "access": "public"
43
- },
44
- "scripts": {
45
- "build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.types.json",
46
- "test:style-target": "node --test tests/style-target.test.mjs tests/image-display-size.test.mjs tests/style-schema.test.mjs tests/link.test.mjs tests/iframe.test.mjs tests/bookmark-transaction.test.mjs tests/thousands-separator.test.mjs tests/font-style.test.mjs tests/font-size.test.mjs tests/callout.test.mjs tests/callout-indent.test.mjs tests/indent.test.mjs tests/style-mark-update.test.mjs tests/figure-caption-numbering.test.mjs tests/table-caption-numbering.test.mjs tests/file-name.test.mjs tests/timeline.test.mjs tests/caption-defaults.test.mjs tests/table-caption-visibility.test.mjs tests/details-collapse.test.mjs tests/editor-view.test.mjs tests/table-selection.test.mjs tests/table-appearance.test.mjs tests/table-border.test.mjs tests/table-properties.test.mjs tests/table-column-resize.test.mjs tests/table-layout.test.mjs tests/table-reset.test.mjs tests/document-loading.test.mjs tests/document-loading-i18n.test.mjs tests/document-save.test.mjs tests/attribute-roundtrip.test.mjs tests/table-attributes.test.mjs tests/bubble-note-selection.test.mjs tests/bubble-note-rich-content.test.mjs tests/bubble-note-image.test.mjs tests/bubble-note-render.test.mjs tests/bubble-note-default-limits.test.mjs tests/image-replacement.test.mjs tests/image-paste.test.mjs tests/insert-newline.test.mjs tests/table-row-resize.test.mjs tests/courseware-reader.test.mjs tests/pointer-hover-scheduler.test.mjs",
47
- "typecheck": "vue-tsc --noEmit",
48
- "dev": "vite --port 9000 --open --force",
49
- "format": "oxfmt --write .",
50
- "lint": "oxlint --fix src",
51
- "lint:style": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\"",
52
- "lint:style:fix": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\" --fix",
53
- "analyzer": "vite-bundle-visualizer",
54
- "prepare": "husky",
55
- "prepublishOnly": "npm run build"
56
- },
57
- "dependencies": {
58
- "@agilehub/docx-converter": "^1.2.3",
59
- "@agilehub/latex-formula": "1.2.2",
60
- "@agilehub/vue-pdf-flipbook": "^2.1.1",
61
- "@eslint/object-schema": "3.0.5",
62
- "@floating-ui/dom": "1.8.0",
63
- "@tiptap/core": "3.32.0",
64
- "@tiptap/extension-bold": "3.32.0",
65
- "@tiptap/extension-code-block": "3.32.0",
66
- "@tiptap/extension-code-block-lowlight": "3.32.0",
67
- "@tiptap/extension-collaboration": "3.32.0",
68
- "@tiptap/extension-details": "3.32.0",
69
- "@tiptap/extension-document": "3.32.0",
70
- "@tiptap/extension-drag-handle": "3.32.0",
71
- "@tiptap/extension-drag-handle-vue-3": "3.32.0",
72
- "@tiptap/extension-heading": "3.32.0",
73
- "@tiptap/extension-horizontal-rule": "3.32.0",
74
- "@tiptap/extension-image": "3.32.0",
75
- "@tiptap/extension-invisible-characters": "3.32.0",
76
- "@tiptap/extension-link": "3.32.0",
77
- "@tiptap/extension-list": "3.32.0",
78
- "@tiptap/extension-node-range": "3.32.0",
79
- "@tiptap/extension-paragraph": "3.32.0",
80
- "@tiptap/extension-subscript": "3.32.0",
81
- "@tiptap/extension-superscript": "3.32.0",
82
- "@tiptap/extension-table": "3.32.0",
83
- "@tiptap/extension-table-of-contents": "3.32.0",
84
- "@tiptap/extension-text-align": "3.32.0",
85
- "@tiptap/extension-text-style": "3.32.0",
86
- "@tiptap/extension-typography": "3.32.0",
87
- "@tiptap/extension-unique-id": "3.32.0",
88
- "@tiptap/extensions": "3.32.0",
89
- "@tiptap/pm": "3.32.0",
90
- "@tiptap/starter-kit": "3.32.0",
91
- "@tiptap/vue-3": "3.32.0",
92
- "@tiptap/y-tiptap": "3.0.10",
93
- "@tool-belt/type-predicates": "1.4.1",
94
- "@vueuse/core": "15.0.0",
95
- "@zumer/snapdom": "2.24.18",
96
- "cropperjs": "^2.3.1",
97
- "dom-to-image-more": "3.11.0",
98
- "es-drager": "1.3.4",
99
- "file-saver": "2.0.5",
100
- "flowchart.js": "1.18.0",
101
- "hotkeys-js": "4.0.8",
102
- "hyperformula": "3.1.0",
103
- "lowlight": "3.3.0",
104
- "mermaid": "12.2.0",
105
- "nzh": "1.0.14",
106
- "ooxml-excel-editor": "1.16.3",
107
- "plantuml-encoder": "1.4.0",
108
- "plyr": "3.8.5",
109
- "pretty-bytes": "7.2.0",
110
- "swiper": "14.3.0",
111
- "tdesign-vue-next": "1.20.10",
112
- "vue-i18n": "11.4.16",
113
- "y-protocols": "1.0.7",
114
- "yjs": "13.6.33"
115
- },
116
- "devDependencies": {
117
- "@types/node": "^26.6.5",
118
- "@vitejs/plugin-vue": "^6.0.10",
119
- "@vue-macros/reactivity-transform": "^3.1.4",
120
- "esbuild": "^0.28.2",
121
- "fast-glob": "3.3.3",
122
- "husky": "^9.1.7",
123
- "less": "^4.9.1",
124
- "lint-staged": "^17.6.0",
125
- "oxfmt": "^0.74.0",
126
- "oxlint": "^1.89.0",
127
- "postcss": "^8.5.31",
128
- "postcss-html": "^2.0.0",
129
- "stylelint": "^18.0.0",
130
- "stylelint-config-html": "^2.0.0",
131
- "stylelint-config-recommended": "^19.0.0",
132
- "stylelint-config-recommended-less": "^5.0.0",
133
- "stylelint-config-recommended-vue": "^2.0.0",
134
- "stylelint-less": "^5.0.0",
135
- "typescript": "~6.0.3",
136
- "unplugin-auto-import": "^21.1.0",
137
- "unplugin-vue-components": "^32.1.0",
138
- "vite": "^8.3.4",
139
- "vite-bundle-visualizer": "^1.2.1",
140
- "vite-plugin-svg-icons": "^2.0.1",
141
- "vue": "^3.5.44",
142
- "vue-tsc": "^3.3.13"
143
- },
144
- "overrides": {
145
- "prosemirror-model": "1.25.12",
146
- "rolldown": "^1.2.14"
147
- },
148
- "lint-staged": {
149
- "*.ts": [
150
- "oxfmt --write",
151
- "oxlint --fix"
152
- ],
153
- "*.vue": [
154
- "oxfmt --write",
155
- "oxlint --fix",
156
- "stylelint --fix"
157
- ],
158
- "*.less": [
159
- "oxfmt --write",
160
- "stylelint --fix"
161
- ]
162
- },
163
- "engines": {
164
- "node": "^22.22.1 || ^24.11.0 || >=26.0.0"
165
- }
1
+ {
2
+ "name": "@agilehub/agile-editor",
3
+ "version": "1.9.0",
4
+ "description": "Rich text editor based on Vue 3 and Tiptap 3",
5
+ "keywords": [
6
+ "docs editor",
7
+ "document editor",
8
+ "editor",
9
+ "office edtior",
10
+ "online office",
11
+ "richtext editor",
12
+ "tiptap",
13
+ "tiptap3",
14
+ "vue editor",
15
+ "vue3 editor",
16
+ "web editor",
17
+ "web office",
18
+ "word editor"
19
+ ],
20
+ "license": "Apache-2.0",
21
+ "author": "lytdev <lytdev@outlook.com>",
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "https://github.com/lytdev/agile-editor.git"
25
+ },
26
+ "files": [
27
+ "dist",
28
+ "docs"
29
+ ],
30
+ "type": "module",
31
+ "types": "./dist/types/components/index.d.ts",
32
+ "exports": {
33
+ ".": {
34
+ "types": "./dist/types/components/index.d.ts",
35
+ "import": "./dist/agile-editor.js"
36
+ },
37
+ "./style": {
38
+ "import": "./dist/agile-editor.css"
39
+ }
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ },
44
+ "scripts": {
45
+ "build": "vue-tsc --noEmit && vite build && vue-tsc -p tsconfig.types.json",
46
+ "test:style-target": "node --test tests/style-target.test.mjs tests/image-display-size.test.mjs tests/style-schema.test.mjs tests/link.test.mjs tests/iframe.test.mjs tests/bookmark-transaction.test.mjs tests/thousands-separator.test.mjs tests/font-style.test.mjs tests/font-size.test.mjs tests/callout.test.mjs tests/callout-indent.test.mjs tests/indent.test.mjs tests/style-mark-update.test.mjs tests/figure-caption-numbering.test.mjs tests/table-caption-numbering.test.mjs tests/file-name.test.mjs tests/timeline.test.mjs tests/caption-defaults.test.mjs tests/table-caption-visibility.test.mjs tests/details-collapse.test.mjs tests/editor-view.test.mjs tests/table-selection.test.mjs tests/table-appearance.test.mjs tests/table-border.test.mjs tests/table-properties.test.mjs tests/table-column-resize.test.mjs tests/table-layout.test.mjs tests/table-reset.test.mjs tests/document-loading.test.mjs tests/document-loading-i18n.test.mjs tests/document-save.test.mjs tests/attribute-roundtrip.test.mjs tests/table-attributes.test.mjs tests/bubble-note-selection.test.mjs tests/bubble-note-rich-content.test.mjs tests/bubble-note-image.test.mjs tests/bubble-note-render.test.mjs tests/bubble-note-default-limits.test.mjs tests/image-replacement.test.mjs tests/image-paste.test.mjs tests/insert-newline.test.mjs tests/table-row-resize.test.mjs tests/courseware-reader.test.mjs tests/pointer-hover-scheduler.test.mjs tests/tiptap-upgrade.test.mjs",
47
+ "typecheck": "vue-tsc --noEmit",
48
+ "dev": "vite --port 9000 --open --force",
49
+ "format": "oxfmt --write .",
50
+ "lint": "oxlint --fix src",
51
+ "lint:style": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\"",
52
+ "lint:style:fix": "stylelint \"src/**/*.{vue,less}\" \"dev/**/*.{vue,less}\" --fix",
53
+ "analyzer": "vite-bundle-visualizer",
54
+ "prepare": "husky",
55
+ "prepublishOnly": "npm run build"
56
+ },
57
+ "dependencies": {
58
+ "@agilehub/docx-converter": "^1.2.3",
59
+ "@agilehub/latex-formula": "1.2.2",
60
+ "@agilehub/vue-pdf-flipbook": "^2.1.1",
61
+ "@eslint/object-schema": "3.0.5",
62
+ "@floating-ui/dom": "1.8.0",
63
+ "@tiptap/core": "3.35.1",
64
+ "@tiptap/extension-bold": "3.35.1",
65
+ "@tiptap/extension-code-block": "3.35.1",
66
+ "@tiptap/extension-code-block-lowlight": "3.35.1",
67
+ "@tiptap/extension-collaboration": "3.35.1",
68
+ "@tiptap/extension-details": "3.35.1",
69
+ "@tiptap/extension-document": "3.35.1",
70
+ "@tiptap/extension-drag-handle": "3.35.1",
71
+ "@tiptap/extension-drag-handle-vue-3": "3.35.1",
72
+ "@tiptap/extension-heading": "3.35.1",
73
+ "@tiptap/extension-horizontal-rule": "3.35.1",
74
+ "@tiptap/extension-image": "3.35.1",
75
+ "@tiptap/extension-invisible-characters": "3.35.1",
76
+ "@tiptap/extension-link": "3.35.1",
77
+ "@tiptap/extension-list": "3.35.1",
78
+ "@tiptap/extension-node-range": "3.35.1",
79
+ "@tiptap/extension-paragraph": "3.35.1",
80
+ "@tiptap/extension-subscript": "3.35.1",
81
+ "@tiptap/extension-superscript": "3.35.1",
82
+ "@tiptap/extension-table": "3.35.1",
83
+ "@tiptap/extension-table-of-contents": "3.35.1",
84
+ "@tiptap/extension-text-align": "3.35.1",
85
+ "@tiptap/extension-text-style": "3.35.1",
86
+ "@tiptap/extension-typography": "3.35.1",
87
+ "@tiptap/extension-unique-id": "3.35.1",
88
+ "@tiptap/extensions": "3.35.1",
89
+ "@tiptap/pm": "3.35.1",
90
+ "@tiptap/starter-kit": "3.35.1",
91
+ "@tiptap/vue-3": "3.35.1",
92
+ "@tiptap/y-tiptap": "3.3.1",
93
+ "@tool-belt/type-predicates": "1.4.1",
94
+ "@videojs/html": "10.7.0",
95
+ "@vueuse/core": "15.0.0",
96
+ "@zumer/snapdom": "2.24.18",
97
+ "cropperjs": "^2.3.1",
98
+ "dom-to-image-more": "3.11.0",
99
+ "es-drager": "1.3.4",
100
+ "file-saver": "2.0.5",
101
+ "flowchart.js": "1.18.0",
102
+ "hotkeys-js": "4.0.8",
103
+ "hyperformula": "3.1.0",
104
+ "lowlight": "3.3.0",
105
+ "mermaid": "12.2.0",
106
+ "nzh": "1.0.14",
107
+ "ooxml-excel-editor": "1.16.3",
108
+ "plantuml-encoder": "1.4.0",
109
+ "pretty-bytes": "7.2.0",
110
+ "swiper": "14.3.0",
111
+ "tdesign-vue-next": "1.20.10",
112
+ "vue-i18n": "11.4.16",
113
+ "y-protocols": "1.0.7",
114
+ "yjs": "13.6.33"
115
+ },
116
+ "devDependencies": {
117
+ "@types/node": "^26.6.5",
118
+ "@vitejs/plugin-vue": "^6.0.10",
119
+ "@vue-macros/reactivity-transform": "^3.1.4",
120
+ "esbuild": "^0.28.2",
121
+ "fast-glob": "3.3.3",
122
+ "husky": "^9.1.7",
123
+ "less": "^4.9.1",
124
+ "lint-staged": "^17.6.0",
125
+ "oxfmt": "^0.74.0",
126
+ "oxlint": "^1.89.0",
127
+ "postcss": "^8.5.34",
128
+ "postcss-html": "^2.0.0",
129
+ "stylelint": "^18.0.0",
130
+ "stylelint-config-html": "^2.0.0",
131
+ "stylelint-config-recommended": "^19.0.0",
132
+ "stylelint-config-recommended-less": "^5.0.0",
133
+ "stylelint-config-recommended-vue": "^2.0.0",
134
+ "stylelint-less": "^5.0.0",
135
+ "typescript": "~6.0.3",
136
+ "unplugin-auto-import": "^21.1.0",
137
+ "unplugin-vue-components": "^32.1.0",
138
+ "vite": "^8.3.4",
139
+ "vite-bundle-visualizer": "^1.2.1",
140
+ "vite-plugin-svg-icons": "^2.0.1",
141
+ "vue": "^3.5.44",
142
+ "vue-tsc": "^3.3.13"
143
+ },
144
+ "overrides": {
145
+ "prosemirror-model": "1.25.13",
146
+ "rolldown": "^1.2.14"
147
+ },
148
+ "lint-staged": {
149
+ "*.ts": [
150
+ "oxfmt --write",
151
+ "oxlint --fix"
152
+ ],
153
+ "*.vue": [
154
+ "oxfmt --write",
155
+ "oxlint --fix",
156
+ "stylelint --fix"
157
+ ],
158
+ "*.less": [
159
+ "oxfmt --write",
160
+ "stylelint --fix"
161
+ ]
162
+ },
163
+ "engines": {
164
+ "node": "^22.22.1 || ^24.11.0 || >=26.0.0"
165
+ }
166
166
  }