@umoteam/editor 4.2.0 → 4.6.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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@umoteam/editor",
3
- "version": "4.2.0",
3
+ "version": "4.6.0",
4
+ "type": "module",
4
5
  "description": "Umo Editor is open-source document editor based on Vue3 and Tiptap. Umo Editor provides comprehensive document editing capabilities and AI creation features, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.",
5
6
  "keywords": [
6
7
  "umo editor",
@@ -36,102 +37,159 @@
36
37
  ],
37
38
  "exports": {
38
39
  ".": {
39
- "import": "./dist/umo-editor.mjs"
40
+ "import": "./dist/umo-editor.js"
40
41
  },
41
42
  "./style": {
42
43
  "import": "./dist/style.css"
43
44
  }
44
45
  },
46
+ "types": "./types/index.d.ts",
45
47
  "scripts": {
48
+ "build": "vue-tsc --noEmit && vite build",
46
49
  "dev": "vite --port 9000 --open --force",
47
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
48
- "format": "prettier --write src/",
49
- "build": "vite build",
50
+ "format": "prettier --write .",
51
+ "check:code": "eslint --cache src",
52
+ "check:style": "stylelint src/**/*.{css,less,vue}",
53
+ "check:types": "vue-tsc --noEmit",
54
+ "lint:code": "eslint --cache --fix src",
55
+ "lint:style": "stylelint --fix src/**/*.{css,less,vue}",
56
+ "test": "NODE_NO_WARNINGS=1 vitest",
57
+ "test:coverage": "npm run test --coverage",
58
+ "test:watch": "npm run test --watch --coverage",
59
+ "prepare": "husky",
50
60
  "prepublishOnly": "npm run build"
51
61
  },
52
62
  "dependencies": {
53
63
  "@eslint/object-schema": "^2.1.4",
54
- "@imgly/background-removal": "1.5.3",
55
- "@tiptap/core": "^2.5.8",
56
- "@tiptap/extension-bold": "^2.5.8",
57
- "@tiptap/extension-bubble-menu": "^2.5.8",
58
- "@tiptap/extension-bullet-list": "^2.5.8",
59
- "@tiptap/extension-character-count": "^2.5.8",
60
- "@tiptap/extension-color": "^2.5.8",
61
- "@tiptap/extension-document": "^2.5.8",
62
- "@tiptap/extension-dropcursor": "^2.5.8",
63
- "@tiptap/extension-focus": "^2.5.8",
64
- "@tiptap/extension-font-family": "^2.5.8",
65
- "@tiptap/extension-highlight": "^2.5.8",
66
- "@tiptap/extension-horizontal-rule": "^2.5.8",
67
- "@tiptap/extension-image": "^2.5.8",
68
- "@tiptap/extension-link": "^2.5.8",
69
- "@tiptap/extension-ordered-list": "^2.5.8",
70
- "@tiptap/extension-placeholder": "^2.5.8",
71
- "@tiptap/extension-subscript": "^2.5.8",
72
- "@tiptap/extension-superscript": "^2.5.8",
73
- "@tiptap/extension-table": "^2.5.8",
74
- "@tiptap/extension-table-cell": "^2.5.8",
75
- "@tiptap/extension-table-header": "^2.5.8",
76
- "@tiptap/extension-table-row": "^2.5.8",
77
- "@tiptap/extension-task-item": "^2.5.8",
78
- "@tiptap/extension-task-list": "^2.5.8",
79
- "@tiptap/extension-text-align": "^2.5.8",
80
- "@tiptap/extension-text-style": "^2.5.8",
81
- "@tiptap/extension-typography": "^2.5.8",
82
- "@tiptap/extension-underline": "^2.5.8",
83
- "@tiptap/pm": "^2.5.8",
84
- "@tiptap/starter-kit": "^2.5.8",
85
- "@tiptap/vue-3": "^2.5.8",
86
- "@umoteam/editor-external": "4.2.0",
64
+ "@imgly/background-removal": "1.5.5",
65
+ "@tiptap-pro/extension-invisible-characters": "^2.11.2",
66
+ "@tiptap/core": "^2.6.6",
67
+ "@tiptap/extension-bold": "^2.6.6",
68
+ "@tiptap/extension-bubble-menu": "^2.6.6",
69
+ "@tiptap/extension-bullet-list": "^2.6.6",
70
+ "@tiptap/extension-character-count": "^2.6.6",
71
+ "@tiptap/extension-color": "^2.6.6",
72
+ "@tiptap/extension-document": "^2.6.6",
73
+ "@tiptap/extension-dropcursor": "^2.6.6",
74
+ "@tiptap/extension-focus": "^2.6.6",
75
+ "@tiptap/extension-font-family": "^2.6.6",
76
+ "@tiptap/extension-heading": "^2.6.6",
77
+ "@tiptap/extension-highlight": "^2.6.6",
78
+ "@tiptap/extension-horizontal-rule": "^2.6.6",
79
+ "@tiptap/extension-image": "^2.6.6",
80
+ "@tiptap/extension-link": "^2.6.6",
81
+ "@tiptap/extension-ordered-list": "^2.6.6",
82
+ "@tiptap/extension-placeholder": "^2.6.6",
83
+ "@tiptap/extension-subscript": "^2.6.6",
84
+ "@tiptap/extension-superscript": "^2.6.6",
85
+ "@tiptap/extension-table": "^2.6.6",
86
+ "@tiptap/extension-table-cell": "^2.6.6",
87
+ "@tiptap/extension-table-header": "^2.6.6",
88
+ "@tiptap/extension-table-row": "^2.6.6",
89
+ "@tiptap/extension-task-item": "^2.6.6",
90
+ "@tiptap/extension-task-list": "^2.6.6",
91
+ "@tiptap/extension-text-align": "^2.6.6",
92
+ "@tiptap/extension-text-style": "^2.6.6",
93
+ "@tiptap/extension-typography": "^2.6.6",
94
+ "@tiptap/extension-underline": "^2.6.6",
95
+ "@tiptap/pm": "^2.6.6",
96
+ "@tiptap/starter-kit": "^2.6.6",
97
+ "@tiptap/vue-3": "^2.6.6",
98
+ "@tool-belt/type-predicates": "^1.3.0",
99
+ "@types/svg64": "^1.1.2",
100
+ "@umoteam/editor-external": "4.5.0",
87
101
  "@vue-monaco/editor": "^0.0.6",
88
- "@vueuse/core": "^10.11.0",
89
- "dom-to-image-more": "^3.3.1",
102
+ "@vueuse/core": "^11.0.3",
103
+ "buffer-image-size": "^0.6.4",
104
+ "docx": "^8.5.0",
105
+ "dom-to-image-more": "^3.4.3",
90
106
  "es-drager": "^1.2.11",
91
107
  "file-saver": "^2.0.5",
92
- "file64": "^1.0.3",
108
+ "file64": "^1.0.4",
93
109
  "hotkeys-js": "^3.13.7",
94
110
  "jsbarcode": "^3.11.6",
95
111
  "katex": "^0.16.11",
96
- "mermaid": "^10.9.1",
97
- "nzh": "^1.0.12",
112
+ "mermaid": "^11.2.0",
113
+ "nzh": "^1.0.13",
98
114
  "plyr": "^3.7.8",
99
115
  "pretty-bytes": "^6.1.1",
100
- "prism-code-editor": "^3.4.0-beta.1",
116
+ "prism-code-editor": "^3.4.0",
101
117
  "prismjs": "^1.29.0",
118
+ "prosemirror-docx": "^0.2.0",
119
+ "prosemirror-transform": "^1.10.0",
102
120
  "qrcode-svg": "^1.1.0",
121
+ "sign-canvas-plus": "^2.0.3",
122
+ "smooth-signature": "^1.0.15",
103
123
  "svg64": "^2.0.0",
104
- "vue-esign": "^1.1.4",
105
- "vue-i18n": "^9.13.1",
106
- "zeed-dom": "^0.13.3"
124
+ "tippy.js": "^6.3.7",
125
+ "ts-deepmerge": "^7.0.1",
126
+ "vue-i18n": "^10.0.0",
127
+ "zeed-dom": "^0.14.0"
107
128
  },
108
129
  "devDependencies": {
109
- "@intlify/unplugin-vue-i18n": "^4.0.0",
130
+ "@eslint/eslintrc": "^3.1.0",
131
+ "@eslint/js": "^9.10.0",
132
+ "@intlify/unplugin-vue-i18n": "^5.0.0",
110
133
  "@sereneinserenade/tiptap-search-and-replace": "^0.1.1",
111
- "@tiptap-pro/extension-mathematics": "^2.10.5",
112
- "@tiptap-pro/extension-table-of-contents": "^2.10.5",
113
- "@vitejs/plugin-vue": "^5.1.1",
134
+ "@testing-library/vue": "^8.1.0",
135
+ "@tiptap-pro/extension-mathematics": "^2.11.2",
136
+ "@tiptap-pro/extension-table-of-contents": "^2.11.2",
137
+ "@types/dom-to-image": "^2.6.7",
138
+ "@types/file-saver": "^2.0.7",
139
+ "@types/node": "^22.5.4",
140
+ "@types/qrcode-svg": "^1.1.5",
141
+ "@typescript-eslint/eslint-plugin": "^8.5.0",
142
+ "@typescript-eslint/parser": "^8.5.0",
143
+ "@vitejs/plugin-vue": "^4.6.2",
144
+ "@vue-macros/reactivity-transform": "^1.0.4",
145
+ "@vue-macros/volar": "^0.29.1",
114
146
  "@vue/eslint-config-prettier": "^9.0.0",
115
- "eslint": "^9.8.0",
116
- "eslint-plugin-vue": "^9.27.0",
117
- "husky": "^9.1.4",
147
+ "eslint": "^8.57.0",
148
+ "eslint-config-prettier": "^9.1.0",
149
+ "eslint-plugin-functional": "^5.0.8",
150
+ "eslint-plugin-simple-import-sort": "^12.1.1",
151
+ "eslint-plugin-unused-imports": "^4.1.3",
152
+ "eslint-plugin-vue": "^9.28.0",
153
+ "globals": "^15.9.0",
154
+ "husky": "^9.1.5",
155
+ "jsdom": "^25.0.0",
118
156
  "less": "^4.2.0",
119
157
  "less-loader": "^12.2.0",
158
+ "lint-staged": "^15.2.10",
159
+ "postcss": "^8.3.3",
160
+ "postcss-html": "^1.7.0",
120
161
  "prettier": "^3.3.3",
121
- "tdesign-vue-next": "^1.9.8",
162
+ "stylelint": "^16.9.0",
163
+ "stylelint-config-recommended-less": "^3.0.1",
164
+ "stylelint-config-recommended-vue": "^1.5.0",
165
+ "stylelint-less": "^3.0.1",
166
+ "tdesign-vue-next": "^1.10.0",
167
+ "typescript": "5.5.4",
168
+ "typescript-eslint": "^8.5.0",
122
169
  "unplugin-auto-import": "^0.18.2",
123
- "unplugin-vue-components": "^0.27.3",
124
- "unplugin-vue-macros": "^2.10.0",
125
- "vite": "^5.3.5",
170
+ "unplugin-vue": "^5.1.5",
171
+ "unplugin-vue-components": "^0.27.4",
172
+ "unplugin-vue-macros": "^2.11.11",
173
+ "vite": "^4.5.3",
174
+ "vite-plugin-inspect": "^0.8.7",
126
175
  "vite-plugin-svg-icons": "^2.0.1",
127
- "vue": "^3.4.34"
176
+ "vite-tsconfig-paths": "^5.0.1",
177
+ "vitest": "^2.0.5",
178
+ "vue": "^3.0.11",
179
+ "vue-tsc": "^2.1.6"
128
180
  },
129
181
  "engines": {
130
182
  "node": ">=18.0.0"
131
183
  },
132
- "husky": {
133
- "hooks": {
134
- "pre-commit": "npm run format"
135
- }
184
+ "lint-staged": {
185
+ "*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue,less,css,yml,yaml,json,md,html}": [
186
+ "prettier --write src"
187
+ ],
188
+ "*.{css,less,vue}": [
189
+ "stylelint --write src/**/*.{css,less,vue}"
190
+ ],
191
+ "*.{js,jsx,mjs,cjs,ts,tsx,mts,cts,vue}": [
192
+ "eslint --fix src"
193
+ ]
136
194
  }
137
195
  }