@agilehub/agile-editor 1.7.0 → 1.8.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 (38) hide show
  1. package/README.md +1 -0
  2. package/dist/agile-editor.css +1 -1
  3. package/dist/agile-editor.js +17696 -18074
  4. package/dist/i18n-DCR9QpaV.js +2785 -0
  5. package/dist/types/components/editor/courseware-dialog.vue.d.ts +3 -0
  6. package/dist/types/components/editor/smart-sheet-dialog.vue.d.ts +3 -0
  7. package/dist/types/components/index.d.ts +2 -1
  8. package/dist/types/components/index.vue.d.ts +355 -19
  9. package/dist/types/components/menus/button.vue.d.ts +1 -1
  10. package/dist/types/components/menus/toolbar/insert/courseware.vue.d.ts +3 -0
  11. package/dist/types/components/menus/toolbar/insert/smart-sheet.vue.d.ts +3 -0
  12. package/dist/types/components/preview-toolbar/index.vue.d.ts +2 -2
  13. package/dist/types/components/toolbar/classic.vue.d.ts +14 -14
  14. package/dist/types/components/toolbar/ribbon.vue.d.ts +14 -14
  15. package/dist/types/composables/i18n.d.ts +351 -15
  16. package/dist/types/extensions/bookmark-transaction.d.ts +4 -0
  17. package/dist/types/extensions/bubble-note.d.ts +1 -0
  18. package/dist/types/extensions/courseware/annotation-session.d.ts +4 -0
  19. package/dist/types/extensions/courseware/index.d.ts +49 -0
  20. package/dist/types/extensions/courseware/model.d.ts +20 -0
  21. package/dist/types/extensions/courseware/node-view.vue.d.ts +93 -0
  22. package/dist/types/extensions/courseware/reader.vue.d.ts +22 -0
  23. package/dist/types/extensions/smart-sheet/index.d.ts +47 -0
  24. package/dist/types/extensions/smart-sheet/model.d.ts +18 -0
  25. package/dist/types/extensions/smart-sheet/node-view.vue.d.ts +93 -0
  26. package/dist/types/extensions/smart-sheet/viewer.vue.d.ts +36 -0
  27. package/dist/types/i18n.d.ts +351 -15
  28. package/dist/types/utils/bubble-note-icon.d.ts +1 -0
  29. package/dist/types/utils/document-formatting.d.ts +41 -37
  30. package/dist/types/utils/document-import.d.ts +2 -0
  31. package/dist/types/utils/html-element-id.d.ts +9 -2
  32. package/dist/types/utils/md5.d.ts +2 -0
  33. package/dist/viewer-CyuLA7YS.js +97 -0
  34. package/docs/FORMATTING_TEMPLATES.md +253 -250
  35. package/docs/FORMATTING_TEMPLATE_BUSINESS_GUIDE.md +536 -0
  36. package/docs/README.md +1 -0
  37. package/docs/configuration.md +25 -0
  38. package/package.json +165 -162
package/package.json CHANGED
@@ -1,163 +1,166 @@
1
- {
2
- "name": "@agilehub/agile-editor",
3
- "version": "1.7.0",
4
- "description": "Rich text editor based on Vue 3 and Tiptap 3",
5
- "author": "lytdev <lytdev@outlook.com>",
6
- "keywords": [
7
- "docs editor",
8
- "document editor",
9
- "editor",
10
- "office edtior",
11
- "online office",
12
- "richtext editor",
13
- "tiptap",
14
- "tiptap3",
15
- "vue editor",
16
- "vue3 editor",
17
- "web editor",
18
- "web office",
19
- "word editor"
20
- ],
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"
28
- },
29
- "files": [
30
- "dist",
31
- "docs"
32
- ],
33
- "type": "module",
34
- "types": "./dist/types/components/index.d.ts",
35
- "exports": {
36
- ".": {
37
- "types": "./dist/types/components/index.d.ts",
38
- "import": "./dist/agile-editor.js"
39
- },
40
- "./style": {
41
- "import": "./dist/agile-editor.css"
42
- }
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/style-schema.test.mjs tests/iframe.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.1",
59
- "@agilehub/latex-formula": "1.2.0",
60
- "@eslint/object-schema": "3.0.5",
61
- "@floating-ui/dom": "1.8.0",
62
- "@tiptap/core": "3.32.0",
63
- "@tiptap/extension-bold": "3.32.0",
64
- "@tiptap/extension-code-block": "3.32.0",
65
- "@tiptap/extension-code-block-lowlight": "3.32.0",
66
- "@tiptap/extension-collaboration": "3.32.0",
67
- "@tiptap/extension-details": "3.32.0",
68
- "@tiptap/extension-document": "3.32.0",
69
- "@tiptap/extension-drag-handle": "3.32.0",
70
- "@tiptap/extension-drag-handle-vue-3": "3.32.0",
71
- "@tiptap/extension-heading": "3.32.0",
72
- "@tiptap/extension-horizontal-rule": "3.32.0",
73
- "@tiptap/extension-image": "3.32.0",
74
- "@tiptap/extension-invisible-characters": "3.32.0",
75
- "@tiptap/extension-link": "3.32.0",
76
- "@tiptap/extension-list": "3.32.0",
77
- "@tiptap/extension-node-range": "3.32.0",
78
- "@tiptap/extension-paragraph": "3.32.0",
79
- "@tiptap/extension-subscript": "3.32.0",
80
- "@tiptap/extension-superscript": "3.32.0",
81
- "@tiptap/extension-table": "3.32.0",
82
- "@tiptap/extension-table-of-contents": "3.32.0",
83
- "@tiptap/extension-text-align": "3.32.0",
84
- "@tiptap/extension-text-style": "3.32.0",
85
- "@tiptap/extension-typography": "3.32.0",
86
- "@tiptap/extension-unique-id": "3.32.0",
87
- "@tiptap/extensions": "3.32.0",
88
- "@tiptap/pm": "3.32.0",
89
- "@tiptap/starter-kit": "3.32.0",
90
- "@tiptap/vue-3": "3.32.0",
91
- "@tiptap/y-tiptap": "3.0.10",
92
- "@tool-belt/type-predicates": "1.4.1",
93
- "@vueuse/core": "15.0.0",
94
- "@zumer/snapdom": "2.24.18",
95
- "cropperjs": "^2.3.1",
96
- "dom-to-image-more": "3.11.0",
97
- "es-drager": "1.3.4",
98
- "file-saver": "2.0.5",
99
- "flowchart.js": "1.18.0",
100
- "hotkeys-js": "4.0.8",
101
- "lowlight": "3.3.0",
102
- "mermaid": "12.2.0",
103
- "nzh": "1.0.14",
104
- "plantuml-encoder": "1.4.0",
105
- "plyr": "3.8.5",
106
- "pretty-bytes": "7.2.0",
107
- "swiper": "14.3.0",
108
- "tdesign-vue-next": "1.20.10",
109
- "vue-i18n": "11.4.16",
110
- "y-protocols": "1.0.7",
111
- "yjs": "13.6.33"
112
- },
113
- "devDependencies": {
114
- "@types/node": "^26.6.5",
115
- "@vitejs/plugin-vue": "^6.0.10",
116
- "@vue-macros/reactivity-transform": "^3.1.4",
117
- "esbuild": "^0.28.2",
118
- "fast-glob": "3.3.3",
119
- "husky": "^9.1.7",
120
- "less": "^4.9.1",
121
- "lint-staged": "^17.6.0",
122
- "oxfmt": "^0.74.0",
123
- "oxlint": "^1.89.0",
124
- "postcss": "^8.5.31",
125
- "postcss-html": "^2.0.0",
126
- "stylelint": "^18.0.0",
127
- "stylelint-config-html": "^2.0.0",
128
- "stylelint-config-recommended": "^19.0.0",
129
- "stylelint-config-recommended-less": "^5.0.0",
130
- "stylelint-config-recommended-vue": "^2.0.0",
131
- "stylelint-less": "^5.0.0",
132
- "typescript": "~6.0.3",
133
- "unplugin-auto-import": "^21.1.0",
134
- "unplugin-vue-components": "^32.1.0",
135
- "vite": "^8.3.4",
136
- "vite-bundle-visualizer": "^1.2.1",
137
- "vite-plugin-svg-icons": "^2.0.1",
138
- "vue": "^3.5.44",
139
- "vue-tsc": "^3.3.13"
140
- },
141
- "overrides": {
142
- "rolldown": "^1.2.14",
143
- "prosemirror-model": "1.25.12"
144
- },
145
- "lint-staged": {
146
- "*.ts": [
147
- "oxfmt --write",
148
- "oxlint --fix"
149
- ],
150
- "*.vue": [
151
- "oxfmt --write",
152
- "oxlint --fix",
153
- "stylelint --fix"
154
- ],
155
- "*.less": [
156
- "oxfmt --write",
157
- "stylelint --fix"
158
- ]
159
- },
160
- "engines": {
161
- "node": "^22.22.1 || ^24.11.0 || >=26.0.0"
162
- }
1
+ {
2
+ "name": "@agilehub/agile-editor",
3
+ "version": "1.8.0",
4
+ "description": "Rich text editor based on Vue 3 and Tiptap 3",
5
+ "author": "lytdev <lytdev@outlook.com>",
6
+ "keywords": [
7
+ "docs editor",
8
+ "document editor",
9
+ "editor",
10
+ "office edtior",
11
+ "online office",
12
+ "richtext editor",
13
+ "tiptap",
14
+ "tiptap3",
15
+ "vue editor",
16
+ "vue3 editor",
17
+ "web editor",
18
+ "web office",
19
+ "word editor"
20
+ ],
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"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "docs"
32
+ ],
33
+ "type": "module",
34
+ "types": "./dist/types/components/index.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/types/components/index.d.ts",
38
+ "import": "./dist/agile-editor.js"
39
+ },
40
+ "./style": {
41
+ "import": "./dist/agile-editor.css"
42
+ }
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/style-schema.test.mjs tests/iframe.test.mjs tests/bookmark-transaction.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.1",
59
+ "@agilehub/latex-formula": "1.2.0",
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
+ "rolldown": "^1.2.14",
146
+ "prosemirror-model": "1.25.12"
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
+ }
163
166
  }