@4399ywkf/editor 0.8.0 → 0.8.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.
- package/README.md +13 -0
- package/package.json +26 -26
package/README.md
CHANGED
|
@@ -417,6 +417,19 @@ import "@4399ywkf/editor/styles" // dist/style.css,168KB
|
|
|
417
417
|
包内 55 个 scss 在构建期编译并拼成单文件,JS 产物里**不残留任何 scss 导入** ——
|
|
418
418
|
消费方无需配置 sass loader,SSR 也不会因为 `import "x.scss"` 报错。
|
|
419
419
|
|
|
420
|
+
## 依赖版本:`@tiptap/*` 必须同版本
|
|
421
|
+
|
|
422
|
+
Tiptap 各包之间用**精确版本**的 peerDependencies 互相钉死,本包把全部 `@tiptap/*`
|
|
423
|
+
统一声明为同一个范围(当前 `^3.30.0`,由 `src/tiptap-versions.test.ts` 守着)。
|
|
424
|
+
业务仓库自己也引了 `@tiptap/core` / `@tiptap/react` 时,版本必须落在同一个范围里,
|
|
425
|
+
否则 pnpm 会把一部分去重到你锁文件里的旧版本、给另一部分另拉新版本,构建时报
|
|
426
|
+
`Export attrsEqual doesn't exist in target module` 这类错。升级本包后在业务仓库跑:
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
pnpm update -r "@tiptap/*" # 整个 tiptap 家族对齐到一个版本
|
|
430
|
+
pnpm ls -r "@tiptap/core" # 只应出现一个版本
|
|
431
|
+
```
|
|
432
|
+
|
|
420
433
|
## 协同
|
|
421
434
|
|
|
422
435
|
`doc` 走 yjs。注入扩展时注意:**所有客户端必须注入同一组扩展**,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4399ywkf/editor",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "4399 多格式文档编辑器:doc(tiptap) / sheet(univer) / pdf / pptx,含 docx·xlsx·csv 双向导入导出与 AI 可驱动的结构化编辑面(./doc-runtime、./sheet-runtime)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -65,33 +65,33 @@
|
|
|
65
65
|
"@floating-ui/react": "^0.27.19",
|
|
66
66
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
67
67
|
"@radix-ui/react-popover": "^1.1.15",
|
|
68
|
-
"@tiptap/core": "^3.
|
|
68
|
+
"@tiptap/core": "^3.30.0",
|
|
69
69
|
"@tiptap/extension-code-block": "^3.30.0",
|
|
70
|
-
"@tiptap/extension-collaboration": "^3.
|
|
71
|
-
"@tiptap/extension-collaboration-caret": "^3.
|
|
72
|
-
"@tiptap/extension-color": "^3.
|
|
73
|
-
"@tiptap/extension-drag-handle-react": "^3.
|
|
74
|
-
"@tiptap/extension-emoji": "^3.
|
|
75
|
-
"@tiptap/extension-highlight": "^3.
|
|
76
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
77
|
-
"@tiptap/extension-image": "^3.
|
|
78
|
-
"@tiptap/extension-list": "^3.
|
|
79
|
-
"@tiptap/extension-mathematics": "^3.
|
|
80
|
-
"@tiptap/extension-mention": "^3.
|
|
81
|
-
"@tiptap/extension-subscript": "^3.
|
|
82
|
-
"@tiptap/extension-superscript": "^3.
|
|
83
|
-
"@tiptap/extension-table": "^3.
|
|
84
|
-
"@tiptap/extension-table-of-contents": "^3.
|
|
85
|
-
"@tiptap/extension-text-align": "^3.
|
|
86
|
-
"@tiptap/extension-text-style": "^3.
|
|
87
|
-
"@tiptap/extension-typography": "^3.
|
|
88
|
-
"@tiptap/extension-unique-id": "^3.
|
|
89
|
-
"@tiptap/extensions": "^3.
|
|
70
|
+
"@tiptap/extension-collaboration": "^3.30.0",
|
|
71
|
+
"@tiptap/extension-collaboration-caret": "^3.30.0",
|
|
72
|
+
"@tiptap/extension-color": "^3.30.0",
|
|
73
|
+
"@tiptap/extension-drag-handle-react": "^3.30.0",
|
|
74
|
+
"@tiptap/extension-emoji": "^3.30.0",
|
|
75
|
+
"@tiptap/extension-highlight": "^3.30.0",
|
|
76
|
+
"@tiptap/extension-horizontal-rule": "^3.30.0",
|
|
77
|
+
"@tiptap/extension-image": "^3.30.0",
|
|
78
|
+
"@tiptap/extension-list": "^3.30.0",
|
|
79
|
+
"@tiptap/extension-mathematics": "^3.30.0",
|
|
80
|
+
"@tiptap/extension-mention": "^3.30.0",
|
|
81
|
+
"@tiptap/extension-subscript": "^3.30.0",
|
|
82
|
+
"@tiptap/extension-superscript": "^3.30.0",
|
|
83
|
+
"@tiptap/extension-table": "^3.30.0",
|
|
84
|
+
"@tiptap/extension-table-of-contents": "^3.30.0",
|
|
85
|
+
"@tiptap/extension-text-align": "^3.30.0",
|
|
86
|
+
"@tiptap/extension-text-style": "^3.30.0",
|
|
87
|
+
"@tiptap/extension-typography": "^3.30.0",
|
|
88
|
+
"@tiptap/extension-unique-id": "^3.30.0",
|
|
89
|
+
"@tiptap/extensions": "^3.30.0",
|
|
90
90
|
"@tiptap/markdown": "^3.30.0",
|
|
91
|
-
"@tiptap/pm": "^3.
|
|
92
|
-
"@tiptap/react": "^3.
|
|
93
|
-
"@tiptap/starter-kit": "^3.
|
|
94
|
-
"@tiptap/suggestion": "^3.
|
|
91
|
+
"@tiptap/pm": "^3.30.0",
|
|
92
|
+
"@tiptap/react": "^3.30.0",
|
|
93
|
+
"@tiptap/starter-kit": "^3.30.0",
|
|
94
|
+
"@tiptap/suggestion": "^3.30.0",
|
|
95
95
|
"class-variance-authority": "^0.7.1",
|
|
96
96
|
"fflate": "^0.8.2",
|
|
97
97
|
"is-hotkey": "^0.2.0",
|