@umoteam/editor 4.2.0 → 4.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/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@umoteam/editor",
3
- "version": "4.2.0",
3
+ "version": "4.5.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,7 +37,7 @@
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"
@@ -44,48 +45,49 @@
44
45
  },
45
46
  "scripts": {
46
47
  "dev": "vite --port 9000 --open --force",
47
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
48
+ "lint": "eslint --fix src/",
48
49
  "format": "prettier --write src/",
49
50
  "build": "vite build",
51
+ "prepare": "husky install",
50
52
  "prepublishOnly": "npm run build"
51
53
  },
52
54
  "dependencies": {
53
55
  "@eslint/object-schema": "^2.1.4",
54
56
  "@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",
57
+ "@tiptap/core": "^2.6.6",
58
+ "@tiptap/extension-bold": "^2.6.6",
59
+ "@tiptap/extension-bubble-menu": "^2.6.6",
60
+ "@tiptap/extension-bullet-list": "^2.6.6",
61
+ "@tiptap/extension-character-count": "^2.6.6",
62
+ "@tiptap/extension-color": "^2.6.6",
63
+ "@tiptap/extension-document": "^2.6.6",
64
+ "@tiptap/extension-dropcursor": "^2.6.6",
65
+ "@tiptap/extension-focus": "^2.6.6",
66
+ "@tiptap/extension-font-family": "^2.6.6",
67
+ "@tiptap/extension-highlight": "^2.6.6",
68
+ "@tiptap/extension-horizontal-rule": "^2.6.6",
69
+ "@tiptap/extension-image": "^2.6.6",
70
+ "@tiptap/extension-link": "^2.6.6",
71
+ "@tiptap/extension-ordered-list": "^2.6.6",
72
+ "@tiptap/extension-subscript": "^2.6.6",
73
+ "@tiptap/extension-superscript": "^2.6.6",
74
+ "@tiptap/extension-table": "^2.6.6",
75
+ "@tiptap/extension-table-cell": "^2.6.6",
76
+ "@tiptap/extension-table-header": "^2.6.6",
77
+ "@tiptap/extension-table-row": "^2.6.6",
78
+ "@tiptap/extension-task-item": "^2.6.6",
79
+ "@tiptap/extension-task-list": "^2.6.6",
80
+ "@tiptap/extension-text-align": "^2.6.6",
81
+ "@tiptap/extension-text-style": "^2.6.6",
82
+ "@tiptap/extension-typography": "^2.6.6",
83
+ "@tiptap/extension-underline": "^2.6.6",
84
+ "@tiptap/pm": "^2.6.6",
85
+ "@tiptap/starter-kit": "^2.6.6",
86
+ "@tiptap/vue-3": "^2.6.6",
87
+ "@umoteam/editor-external": "4.3.0",
87
88
  "@vue-monaco/editor": "^0.0.6",
88
89
  "@vueuse/core": "^10.11.0",
90
+ "docx": "^8.5.0",
89
91
  "dom-to-image-more": "^3.3.1",
90
92
  "es-drager": "^1.2.11",
91
93
  "file-saver": "^2.0.5",
@@ -99,6 +101,8 @@
99
101
  "pretty-bytes": "^6.1.1",
100
102
  "prism-code-editor": "^3.4.0-beta.1",
101
103
  "prismjs": "^1.29.0",
104
+ "prosemirror-docx": "^0.2.0",
105
+ "prosemirror-transform": "^1.10.0",
102
106
  "qrcode-svg": "^1.1.0",
103
107
  "svg64": "^2.0.0",
104
108
  "vue-esign": "^1.1.4",
@@ -106,19 +110,26 @@
106
110
  "zeed-dom": "^0.13.3"
107
111
  },
108
112
  "devDependencies": {
113
+ "@eslint/eslintrc": "^3.1.0",
114
+ "@eslint/js": "^9.9.0",
109
115
  "@intlify/unplugin-vue-i18n": "^4.0.0",
110
116
  "@sereneinserenade/tiptap-search-and-replace": "^0.1.1",
111
117
  "@tiptap-pro/extension-mathematics": "^2.10.5",
112
118
  "@tiptap-pro/extension-table-of-contents": "^2.10.5",
119
+ "@types/jest": "^29.5.12",
120
+ "@types/node": "^22.4.2",
121
+ "@types/webpack-env": "^1.18.5",
113
122
  "@vitejs/plugin-vue": "^5.1.1",
114
123
  "@vue/eslint-config-prettier": "^9.0.0",
115
124
  "eslint": "^9.8.0",
116
125
  "eslint-plugin-vue": "^9.27.0",
117
- "husky": "^9.1.4",
126
+ "husky": "^9.1.5",
118
127
  "less": "^4.2.0",
119
128
  "less-loader": "^12.2.0",
129
+ "lint-staged": "^15.2.9",
120
130
  "prettier": "^3.3.3",
121
131
  "tdesign-vue-next": "^1.9.8",
132
+ "typescript": "^5.5.4",
122
133
  "unplugin-auto-import": "^0.18.2",
123
134
  "unplugin-vue-components": "^0.27.3",
124
135
  "unplugin-vue-macros": "^2.10.0",
@@ -129,9 +140,15 @@
129
140
  "engines": {
130
141
  "node": ">=18.0.0"
131
142
  },
143
+ "lint-staged": {
144
+ "*.{js,jsx,ts,tsx,vue,less,css}": [
145
+ "eslint --fix src/",
146
+ "prettier --write src/"
147
+ ]
148
+ },
132
149
  "husky": {
133
150
  "hooks": {
134
- "pre-commit": "npm run format"
151
+ "pre-commit": "lint-staged"
135
152
  }
136
153
  }
137
154
  }