@4399ywkf/editor 0.9.1 → 0.9.2
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/dist/{DocView-R4E7QINT.js → DocView-YBRD4V4E.js} +6 -5
- package/dist/DocView-YBRD4V4E.js.map +1 -0
- package/dist/chunk-4MQS76M2.js +51666 -0
- package/dist/chunk-4MQS76M2.js.map +1 -0
- package/dist/chunk-ABMZOL26.js +116 -0
- package/dist/chunk-ABMZOL26.js.map +1 -0
- package/dist/{chunk-QMYT5WXO.js → chunk-MGSVKKK7.js} +2 -2
- package/dist/{chunk-QMYT5WXO.js.map → chunk-MGSVKKK7.js.map} +1 -1
- package/dist/chunk-UD6MDBTN.js +1192 -0
- package/dist/chunk-UD6MDBTN.js.map +1 -0
- package/dist/{code-types-Dqmit3xx.d.ts → code-types-BTrUO25D.d.ts} +9 -1
- package/dist/diagram-canvas-22ANCGUV.js +261 -0
- package/dist/diagram-canvas-22ANCGUV.js.map +1 -0
- package/dist/doc-runtime.js +45 -7
- package/dist/doc-runtime.js.map +1 -1
- package/dist/doc.d.ts +526 -54
- package/dist/doc.js +4 -3
- package/dist/doc.js.map +1 -1
- package/dist/docx.js +115 -13
- package/dist/docx.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/pdf.d.ts +2 -2
- package/dist/plugins/ai.js +1 -1
- package/dist/pptx.d.ts +2 -2
- package/dist/{registry-BQ5T1Yko.d.ts → registry-ByvNr_Fa.d.ts} +1 -1
- package/dist/sheet.d.ts +3 -3
- package/dist/style.css +1049 -6047
- package/package.json +21 -5
- package/dist/DocView-R4E7QINT.js.map +0 -1
- package/dist/chunk-OGRGQQ3D.js +0 -23747
- package/dist/chunk-OGRGQQ3D.js.map +0 -1
- package/dist/chunk-ZY5KLA7T.js +0 -258
- package/dist/chunk-ZY5KLA7T.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4399ywkf/editor",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
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",
|
|
@@ -66,18 +66,22 @@
|
|
|
66
66
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
67
67
|
"@radix-ui/react-popover": "^1.1.15",
|
|
68
68
|
"@tiptap/core": "^3.30.0",
|
|
69
|
+
"@tiptap/extension-blockquote": "^3.30.0",
|
|
70
|
+
"@tiptap/extension-code": "^3.30.0",
|
|
69
71
|
"@tiptap/extension-code-block": "^3.30.0",
|
|
70
72
|
"@tiptap/extension-collaboration": "^3.30.0",
|
|
71
73
|
"@tiptap/extension-collaboration-caret": "^3.30.0",
|
|
72
74
|
"@tiptap/extension-color": "^3.30.0",
|
|
73
75
|
"@tiptap/extension-drag-handle-react": "^3.30.0",
|
|
74
76
|
"@tiptap/extension-emoji": "^3.30.0",
|
|
77
|
+
"@tiptap/extension-heading": "^3.30.0",
|
|
75
78
|
"@tiptap/extension-highlight": "^3.30.0",
|
|
76
79
|
"@tiptap/extension-horizontal-rule": "^3.30.0",
|
|
77
80
|
"@tiptap/extension-image": "^3.30.0",
|
|
78
81
|
"@tiptap/extension-list": "^3.30.0",
|
|
79
82
|
"@tiptap/extension-mathematics": "^3.30.0",
|
|
80
83
|
"@tiptap/extension-mention": "^3.30.0",
|
|
84
|
+
"@tiptap/extension-strike": "^3.30.0",
|
|
81
85
|
"@tiptap/extension-subscript": "^3.30.0",
|
|
82
86
|
"@tiptap/extension-superscript": "^3.30.0",
|
|
83
87
|
"@tiptap/extension-table": "^3.30.0",
|
|
@@ -92,15 +96,18 @@
|
|
|
92
96
|
"@tiptap/react": "^3.30.0",
|
|
93
97
|
"@tiptap/starter-kit": "^3.30.0",
|
|
94
98
|
"@tiptap/suggestion": "^3.30.0",
|
|
99
|
+
"@xyflow/react": "^12.12.0",
|
|
95
100
|
"class-variance-authority": "^0.7.1",
|
|
96
101
|
"fflate": "^0.8.2",
|
|
97
102
|
"is-hotkey": "^0.2.0",
|
|
103
|
+
"katex": "^0.18.4",
|
|
98
104
|
"lodash.throttle": "^4.1.1",
|
|
99
105
|
"marked": "^17.0.6",
|
|
100
106
|
"react-hotkeys-hook": "^5.3.2",
|
|
101
107
|
"react-textarea-autosize": "^8.5.9",
|
|
102
108
|
"shiki": "^4.4.3",
|
|
103
|
-
"yjs": "^13.6.30"
|
|
109
|
+
"yjs": "^13.6.30",
|
|
110
|
+
"stylis": "^4.4.0"
|
|
104
111
|
},
|
|
105
112
|
"peerDependencies": {
|
|
106
113
|
"@univerjs/preset-sheets-conditional-formatting": "^1.0.3",
|
|
@@ -115,6 +122,9 @@
|
|
|
115
122
|
"@univerjs/preset-sheets-table": "^1.0.3",
|
|
116
123
|
"@univerjs/preset-sheets-thread-comment": "^1.0.3",
|
|
117
124
|
"@univerjs/presets": "^1.0.3",
|
|
125
|
+
"antd": "^6.0.0",
|
|
126
|
+
"antd-style": "^4.0.0",
|
|
127
|
+
"mermaid": "^12.2.0",
|
|
118
128
|
"pdfjs-dist": "^4.0.0 || ^5.0.0",
|
|
119
129
|
"pptx-preview": "^1.0.7",
|
|
120
130
|
"react": "^19.0.0",
|
|
@@ -162,6 +172,9 @@
|
|
|
162
172
|
},
|
|
163
173
|
"pptx-preview": {
|
|
164
174
|
"optional": true
|
|
175
|
+
},
|
|
176
|
+
"mermaid": {
|
|
177
|
+
"optional": true
|
|
165
178
|
}
|
|
166
179
|
},
|
|
167
180
|
"devDependencies": {
|
|
@@ -169,9 +182,12 @@
|
|
|
169
182
|
"@types/lodash.throttle": "^4.1.9",
|
|
170
183
|
"@types/react": "^19.1.6",
|
|
171
184
|
"@types/react-dom": "^19.1.6",
|
|
185
|
+
"@types/stylis": "^4.2.7",
|
|
172
186
|
"@xmldom/xmldom": "^0.9.11",
|
|
187
|
+
"antd": "^6.6.7",
|
|
188
|
+
"antd-style": "^4.1.0",
|
|
173
189
|
"happy-dom": "^20.11.2",
|
|
174
|
-
"
|
|
190
|
+
"mermaid": "^12.2.0",
|
|
175
191
|
"tsup": "^8.4.0",
|
|
176
192
|
"typescript": "^5.8.2"
|
|
177
193
|
},
|
|
@@ -191,9 +207,9 @@
|
|
|
191
207
|
],
|
|
192
208
|
"license": "ISC",
|
|
193
209
|
"scripts": {
|
|
194
|
-
"build": "tsup && node scripts/build-styles.mjs",
|
|
210
|
+
"build": "tsup && node --experimental-strip-types scripts/build-styles.mjs",
|
|
195
211
|
"dev": "tsup --watch",
|
|
196
|
-
"test": "node --experimental-strip-types --test src/docx/*.test.ts src/doc-runtime/*.test.ts src/sheet-runtime/*.test.ts src/xlsx/*.test.ts src/*.test.ts src/lib/*.test.ts src/plugins/**/*.test.ts src/components/tiptap-node/code-block-node/*.test.ts src/components/tiptap-templates/notion-like/*.test.ts src/components/tiptap-node/collapsible-node/*.test.ts",
|
|
212
|
+
"test": "node --experimental-strip-types --test src/docx/*.test.ts src/doc-runtime/*.test.ts src/sheet-runtime/*.test.ts src/xlsx/*.test.ts src/*.test.ts src/lib/*.test.ts src/plugins/**/*.test.ts src/components/tiptap-node/code-block-node/*.test.ts src/components/tiptap-templates/notion-like/*.test.ts src/components/tiptap-node/collapsible-node/*.test.ts src/components/tiptap-node/heading-node/*.test.ts src/components/tiptap-node/column-node/*.test.ts src/components/tiptap-node/table-node/extensions/*.test.ts src/components/tiptap-node/table-node/lib/*.test.ts src/components/tiptap-node/math-node/*.test.ts src/components/tiptap-node/image-node/*.test.ts src/components/tiptap-node/page-header-node/*.test.ts src/components/tiptap-node/embed-node/*.test.ts src/components/tiptap-ui/color-menu/*.test.ts src/components/tiptap-node/diagram-node/*.test.ts src/components/tiptap-node/bookmark-node/*.test.ts src/components/tiptap-node/file-attachment-node/*.test.ts src/components/tiptap-node/media-upload-placeholder-node/*.test.ts src/components/tiptap-node/inline-button-node/*.test.ts src/components/tiptap-node/poll-node/*.test.ts src/components/tiptap-node/reminder-node/*.test.ts src/components/tiptap-node/agenda-node/*.test.ts src/components/tiptap-node/synced-block-node/*.test.ts src/components/tiptap-node/mermaid-node/*.test.ts src/components/tiptap-node/mention-node/*.test.ts src/components/tiptap-extension/block-selection/*.test.ts src/components/tiptap-extension/feishu-keymap/*.test.ts src/components/tiptap-extension/list-fold/*.test.ts src/theme/*.test.ts src/components/tiptap-extension/read-only-guard/*.test.ts",
|
|
197
213
|
"typecheck": "tsc --noEmit"
|
|
198
214
|
}
|
|
199
215
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/views/DocView.tsx"],"names":[],"mappings":";;;;;AAMe,SAAR,OAAA,CAAyB,EAAE,OAAA,EAAS,aAAA,EAAe,UAAU,IAAA,EAAM,SAAA,EAAW,SAAQ,EAAsB;AACjH,EAAA,2BACG,KAAA,EAAA,EAAI,SAAA,EACH,8BAAC,oBAAA,EAAA,EAAqB,MAAA,EAAQ,EAAC,EAC7B,QAAA,kBAAA,GAAA;AAAA,IAAC,YAAA;AAAA,IAAA;AAAA,MACC,MAAM,IAAA,IAAQ,SAAA;AAAA,MACd,OAAA;AAAA,MACA,aAAA;AAAA,MACA,QAAA;AAAA,MACA,aAAA,EAAe,CAAC,MAAA,KAAmB,OAAA,GAAU,MAAM;AAAA;AAAA,KAEvD,CAAA,EACF,CAAA;AAEJ","file":"DocView-R4E7QINT.js","sourcesContent":["import type { Editor } from \"@tiptap/react\"\nimport { EditorConfigProvider } from \"../contexts/editor-config-context\"\nimport { NotionEditor } from \"../components/tiptap-templates/notion-like/notion-like-editor\"\nimport type { DocumentViewProps } from \"../registry\"\n\n/** doc 通道:云文档与本地 doc 是同一套 tiptap,不做区分 */\nexport default function DocView({ content, contentFormat, readOnly, room, className, onReady }: DocumentViewProps) {\n return (\n <div className={className}>\n <EditorConfigProvider config={{}}>\n <NotionEditor\n room={room ?? \"default\"}\n content={content as string}\n contentFormat={contentFormat}\n readOnly={readOnly}\n onEditorReady={(editor: Editor) => onReady?.(editor)}\n />\n </EditorConfigProvider>\n </div>\n )\n}\n"]}
|