@mario9/tiptap-editor 1.0.4 → 1.1.1

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 +20 -5
  2. package/package.json +26 -20
package/README.md CHANGED
@@ -4,11 +4,11 @@
4
4
 
5
5
  ## 效果预览
6
6
 
7
- ![编辑器全貌](docs/screenshots/screenshot-overview.png)
7
+ ![编辑器全貌](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-overview.png)
8
8
 
9
- ![代码块与表格](docs/screenshots/screenshot-features.png)
9
+ ![代码块与表格](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-features.png)
10
10
 
11
- ![数学公式](docs/screenshots/screenshot-math.png)
11
+ ![数学公式](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-math.png)
12
12
 
13
13
  ## 安装
14
14
 
@@ -78,7 +78,7 @@ const content = ref('')
78
78
  />
79
79
  ```
80
80
 
81
- ![最小化配置工具栏](docs/screenshots/screenshot-minimal.png)
81
+ ![最小化配置工具栏](https://cdn.jsdelivr.net/gh/hmfw/tiptap-editor@main/docs/screenshots/screenshot-minimal.png)
82
82
 
83
83
  ### 只读模式
84
84
 
@@ -258,7 +258,22 @@ const openMyPanel = inject<() => void>('openMyPanel')
258
258
 
259
259
  - vue 3.5.25
260
260
  - element-plus 2.13.3
261
- - @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 类名前缀
262
277
 
263
278
  ## 代码结构
264
279
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mario9/tiptap-editor",
3
- "version": "1.0.4",
3
+ "version": "1.1.1",
4
4
  "description": "基于 Tiptap + Vue 3 的富文本编辑器组件。",
5
5
  "type": "module",
6
6
  "main": "./dist/tiptap-editor.umd.cjs",
@@ -47,37 +47,43 @@
47
47
  "dev": "vite",
48
48
  "build": "vue-tsc -b && vite build",
49
49
  "build:lib": "vue-tsc -b && vite build --mode lib",
50
- "preview": "vite preview"
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"
51
55
  },
52
56
  "peerDependencies": {
53
- "@tiptap/core": "^3.22.5",
54
- "@tiptap/extension-bubble-menu": "^3.22.5",
55
- "@tiptap/extension-code-block-lowlight": "^3.22.5",
56
- "@tiptap/extension-highlight": "^3.22.5",
57
- "@tiptap/extension-horizontal-rule": "^3.22.5",
58
- "@tiptap/extension-image": "^3.22.5",
59
- "@tiptap/extension-list": "^3.22.5",
60
- "@tiptap/extension-mathematics": "^3.22.5",
61
- "@tiptap/extension-placeholder": "^3.22.5",
62
- "@tiptap/extension-subscript": "^3.22.5",
63
- "@tiptap/extension-superscript": "^3.22.5",
64
- "@tiptap/extension-table": "^3.22.5",
65
- "@tiptap/extension-text-align": "^3.22.5",
66
- "@tiptap/extension-typography": "^3.22.5",
67
- "@tiptap/extensions": "^3.22.5",
68
- "@tiptap/pm": "^3.22.5",
69
- "@tiptap/starter-kit": "^3.22.5",
70
- "@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",
71
75
  "element-plus": "^2.13.0",
72
76
  "katex": "^0.16.0",
73
77
  "lowlight": "^3.3.0",
74
78
  "vue": "^3.5.0"
75
79
  },
76
80
  "devDependencies": {
81
+ "@playwright/test": "^1.61.0",
77
82
  "@types/node": "^24.10.1",
78
83
  "@vitejs/plugin-vue": "^6.0.2",
79
84
  "@vitejs/plugin-vue-jsx": "^5.1.4",
80
85
  "@vue/tsconfig": "^0.8.1",
86
+ "playwright": "^1.61.0",
81
87
  "sass-embedded": "^1.97.3",
82
88
  "typescript": "~5.9.3",
83
89
  "unplugin-element-plus": "^0.11.2",