@mario9/tiptap-editor 1.0.3 → 1.1.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 (2) hide show
  1. package/README.md +26 -1
  2. package/package.json +32 -27
package/README.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  基于 Tiptap + Vue 3 的富文本编辑器组件,支持 Feature Plugin 架构,消费方可按需引入功能模块实现 tree-shaking。
4
4
 
5
+ ## 效果预览
6
+
7
+ ![编辑器全貌](docs/screenshots/screenshot-overview.png)
8
+
9
+ ![代码块与表格](docs/screenshots/screenshot-features.png)
10
+
11
+ ![数学公式](docs/screenshots/screenshot-math.png)
12
+
5
13
  ## 安装
6
14
 
7
15
  ```bash
@@ -70,6 +78,8 @@ const content = ref('')
70
78
  />
71
79
  ```
72
80
 
81
+ ![最小化配置工具栏](docs/screenshots/screenshot-minimal.png)
82
+
73
83
  ### 只读模式
74
84
 
75
85
  ```vue
@@ -248,7 +258,22 @@ const openMyPanel = inject<() => void>('openMyPanel')
248
258
 
249
259
  - vue 3.5.25
250
260
  - element-plus 2.13.3
251
- - @tiptap/core 3.22.5
261
+ - @tiptap/core 3.27.0+
262
+
263
+ ## 版本历史
264
+
265
+ ### v1.1.0 (计划中)
266
+ - ⬆️ 升级 Tiptap 到 3.27.0(从 3.22.5)
267
+ - 🐛 修复表格复制问题(上游修复)
268
+ - 🐛 修复 Markdown 快捷键问题(上游修复)
269
+ - ⚡ 性能优化(ProseMirror 底层升级)
270
+ - 📚 详见 [UPGRADE.md](./UPGRADE.md)
271
+
272
+ ### v1.0.4 (当前版本)
273
+ - 📸 添加效果预览截图
274
+ - ✨ 添加 playwright-cli skill
275
+ - 📖 补充常见场景示例
276
+ - 🔧 拆分 editor.scss 并统一 CSS 类名前缀
252
277
 
253
278
  ## 代码结构
254
279
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mario9/tiptap-editor",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "基于 Tiptap + Vue 3 的富文本编辑器组件。",
5
5
  "type": "module",
6
6
  "main": "./dist/tiptap-editor.umd.cjs",
@@ -43,47 +43,52 @@
43
43
  "files": [
44
44
  "dist"
45
45
  ],
46
+ "scripts": {
47
+ "dev": "vite",
48
+ "build": "vue-tsc -b && vite build",
49
+ "build:lib": "vue-tsc -b && vite build --mode lib",
50
+ "preview": "vite preview",
51
+ "test": "playwright test",
52
+ "test:ui": "playwright test --ui",
53
+ "test:headed": "playwright test --headed",
54
+ "test:report": "playwright show-report"
55
+ },
46
56
  "peerDependencies": {
47
- "@tiptap/core": "^3.22.5",
48
- "@tiptap/extension-bubble-menu": "^3.22.5",
49
- "@tiptap/extension-code-block-lowlight": "^3.22.5",
50
- "@tiptap/extension-highlight": "^3.22.5",
51
- "@tiptap/extension-horizontal-rule": "^3.22.5",
52
- "@tiptap/extension-image": "^3.22.5",
53
- "@tiptap/extension-list": "^3.22.5",
54
- "@tiptap/extension-mathematics": "^3.22.5",
55
- "@tiptap/extension-placeholder": "^3.22.5",
56
- "@tiptap/extension-subscript": "^3.22.5",
57
- "@tiptap/extension-superscript": "^3.22.5",
58
- "@tiptap/extension-table": "^3.22.5",
59
- "@tiptap/extension-text-align": "^3.22.5",
60
- "@tiptap/extension-typography": "^3.22.5",
61
- "@tiptap/extensions": "^3.22.5",
62
- "@tiptap/pm": "^3.22.5",
63
- "@tiptap/starter-kit": "^3.22.5",
64
- "@tiptap/vue-3": "^3.22.5",
57
+ "@tiptap/core": "^3.27.0",
58
+ "@tiptap/extension-bubble-menu": "^3.27.0",
59
+ "@tiptap/extension-code-block-lowlight": "^3.27.0",
60
+ "@tiptap/extension-highlight": "^3.27.0",
61
+ "@tiptap/extension-horizontal-rule": "^3.27.0",
62
+ "@tiptap/extension-image": "^3.27.0",
63
+ "@tiptap/extension-list": "^3.27.0",
64
+ "@tiptap/extension-mathematics": "^3.27.0",
65
+ "@tiptap/extension-placeholder": "^3.27.0",
66
+ "@tiptap/extension-subscript": "^3.27.0",
67
+ "@tiptap/extension-superscript": "^3.27.0",
68
+ "@tiptap/extension-table": "^3.27.0",
69
+ "@tiptap/extension-text-align": "^3.27.0",
70
+ "@tiptap/extension-typography": "^3.27.0",
71
+ "@tiptap/extensions": "^3.27.0",
72
+ "@tiptap/pm": "^3.27.0",
73
+ "@tiptap/starter-kit": "^3.27.0",
74
+ "@tiptap/vue-3": "^3.27.0",
65
75
  "element-plus": "^2.13.0",
66
76
  "katex": "^0.16.0",
67
77
  "lowlight": "^3.3.0",
68
78
  "vue": "^3.5.0"
69
79
  },
70
- "dependencies": {},
71
80
  "devDependencies": {
81
+ "@playwright/test": "^1.61.0",
72
82
  "@types/node": "^24.10.1",
73
83
  "@vitejs/plugin-vue": "^6.0.2",
74
84
  "@vitejs/plugin-vue-jsx": "^5.1.4",
75
85
  "@vue/tsconfig": "^0.8.1",
86
+ "playwright": "^1.61.0",
76
87
  "sass-embedded": "^1.97.3",
77
88
  "typescript": "~5.9.3",
78
89
  "unplugin-element-plus": "^0.11.2",
79
90
  "vite": "^7.3.1",
80
91
  "vite-plugin-dts": "^4.5.4",
81
92
  "vue-tsc": "^3.1.5"
82
- },
83
- "scripts": {
84
- "dev": "vite",
85
- "build": "vue-tsc -b && vite build",
86
- "build:lib": "vue-tsc -b && vite build --mode lib",
87
- "preview": "vite preview"
88
93
  }
89
- }
94
+ }