@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.
- package/README.md +1 -0
- package/dist/agile-editor.css +1 -1
- package/dist/agile-editor.js +17696 -18074
- package/dist/i18n-DCR9QpaV.js +2785 -0
- package/dist/types/components/editor/courseware-dialog.vue.d.ts +3 -0
- package/dist/types/components/editor/smart-sheet-dialog.vue.d.ts +3 -0
- package/dist/types/components/index.d.ts +2 -1
- package/dist/types/components/index.vue.d.ts +355 -19
- package/dist/types/components/menus/button.vue.d.ts +1 -1
- package/dist/types/components/menus/toolbar/insert/courseware.vue.d.ts +3 -0
- package/dist/types/components/menus/toolbar/insert/smart-sheet.vue.d.ts +3 -0
- package/dist/types/components/preview-toolbar/index.vue.d.ts +2 -2
- package/dist/types/components/toolbar/classic.vue.d.ts +14 -14
- package/dist/types/components/toolbar/ribbon.vue.d.ts +14 -14
- package/dist/types/composables/i18n.d.ts +351 -15
- package/dist/types/extensions/bookmark-transaction.d.ts +4 -0
- package/dist/types/extensions/bubble-note.d.ts +1 -0
- package/dist/types/extensions/courseware/annotation-session.d.ts +4 -0
- package/dist/types/extensions/courseware/index.d.ts +49 -0
- package/dist/types/extensions/courseware/model.d.ts +20 -0
- package/dist/types/extensions/courseware/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/courseware/reader.vue.d.ts +22 -0
- package/dist/types/extensions/smart-sheet/index.d.ts +47 -0
- package/dist/types/extensions/smart-sheet/model.d.ts +18 -0
- package/dist/types/extensions/smart-sheet/node-view.vue.d.ts +93 -0
- package/dist/types/extensions/smart-sheet/viewer.vue.d.ts +36 -0
- package/dist/types/i18n.d.ts +351 -15
- package/dist/types/utils/bubble-note-icon.d.ts +1 -0
- package/dist/types/utils/document-formatting.d.ts +41 -37
- package/dist/types/utils/document-import.d.ts +2 -0
- package/dist/types/utils/html-element-id.d.ts +9 -2
- package/dist/types/utils/md5.d.ts +2 -0
- package/dist/viewer-CyuLA7YS.js +97 -0
- package/docs/FORMATTING_TEMPLATES.md +253 -250
- package/docs/FORMATTING_TEMPLATE_BUSINESS_GUIDE.md +536 -0
- package/docs/README.md +1 -0
- package/docs/configuration.md +25 -0
- package/package.json +165 -162
package/package.json
CHANGED
|
@@ -1,163 +1,166 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agilehub/agile-editor",
|
|
3
|
-
"version": "1.
|
|
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
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@tiptap/
|
|
64
|
-
"@tiptap/extension-
|
|
65
|
-
"@tiptap/extension-code-block
|
|
66
|
-
"@tiptap/extension-
|
|
67
|
-
"@tiptap/extension-
|
|
68
|
-
"@tiptap/extension-
|
|
69
|
-
"@tiptap/extension-
|
|
70
|
-
"@tiptap/extension-drag-handle
|
|
71
|
-
"@tiptap/extension-
|
|
72
|
-
"@tiptap/extension-
|
|
73
|
-
"@tiptap/extension-
|
|
74
|
-
"@tiptap/extension-
|
|
75
|
-
"@tiptap/extension-
|
|
76
|
-
"@tiptap/extension-
|
|
77
|
-
"@tiptap/extension-
|
|
78
|
-
"@tiptap/extension-
|
|
79
|
-
"@tiptap/extension-
|
|
80
|
-
"@tiptap/extension-
|
|
81
|
-
"@tiptap/extension-
|
|
82
|
-
"@tiptap/extension-table
|
|
83
|
-
"@tiptap/extension-
|
|
84
|
-
"@tiptap/extension-text-
|
|
85
|
-
"@tiptap/extension-
|
|
86
|
-
"@tiptap/extension-
|
|
87
|
-
"@tiptap/
|
|
88
|
-
"@tiptap/
|
|
89
|
-
"@tiptap/
|
|
90
|
-
"@tiptap/
|
|
91
|
-
"@tiptap/
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
94
|
-
"@
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"stylelint
|
|
130
|
-
"stylelint-config-
|
|
131
|
-
"stylelint-
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
"
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
"
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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
|
}
|