@qingwu-ui/ai-editor 0.9.0-beta
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/LICENSE +159 -0
- package/README.en.md +327 -0
- package/README.md +460 -0
- package/dist/clipper.cjs +1 -0
- package/dist/clipper.d.ts +12 -0
- package/dist/clipper.js +73 -0
- package/dist/components/ai-settings-dialog.d.ts +8 -0
- package/dist/components/ai-settings-dialog.d.ts.map +1 -0
- package/dist/components/export-dialog.d.ts +10 -0
- package/dist/components/export-dialog.d.ts.map +1 -0
- package/dist/components/image-upload-dialog.d.ts +11 -0
- package/dist/components/image-upload-dialog.d.ts.map +1 -0
- package/dist/components/md-import-dialog.d.ts +11 -0
- package/dist/components/md-import-dialog.d.ts.map +1 -0
- package/dist/components/search-bar.d.ts +21 -0
- package/dist/components/search-bar.d.ts.map +1 -0
- package/dist/components/storage-settings-dialog.d.ts +8 -0
- package/dist/components/storage-settings-dialog.d.ts.map +1 -0
- package/dist/components/toast.d.ts +22 -0
- package/dist/components/toast.d.ts.map +1 -0
- package/dist/components/toc.d.ts +18 -0
- package/dist/components/toc.d.ts.map +1 -0
- package/dist/components/video-embed-dialog.d.ts +9 -0
- package/dist/components/video-embed-dialog.d.ts.map +1 -0
- package/dist/editor/ai/components/ai-selector.d.ts +8 -0
- package/dist/editor/ai/components/ai-selector.d.ts.map +1 -0
- package/dist/editor/ai/index.d.ts +42 -0
- package/dist/editor/ai/index.d.ts.map +1 -0
- package/dist/editor/ai/pending-removal.d.ts +20 -0
- package/dist/editor/ai/pending-removal.d.ts.map +1 -0
- package/dist/editor/ai/providers/deepseek.d.ts +12 -0
- package/dist/editor/ai/providers/deepseek.d.ts.map +1 -0
- package/dist/editor/ai/providers/openai-compat.d.ts +14 -0
- package/dist/editor/ai/providers/openai-compat.d.ts.map +1 -0
- package/dist/editor/ai/providers/openai.d.ts +10 -0
- package/dist/editor/ai/providers/openai.d.ts.map +1 -0
- package/dist/editor/ai/providers/qwen.d.ts +14 -0
- package/dist/editor/ai/providers/qwen.d.ts.map +1 -0
- package/dist/editor/ai-editor.d.ts +57 -0
- package/dist/editor/ai-editor.d.ts.map +1 -0
- package/dist/editor/attachment-limits.d.ts +32 -0
- package/dist/editor/attachment-limits.d.ts.map +1 -0
- package/dist/editor/clipper/receiver-browser.d.ts +16 -0
- package/dist/editor/clipper/receiver-browser.d.ts.map +1 -0
- package/dist/editor/clipper/receiver-node.d.ts +43 -0
- package/dist/editor/clipper/receiver-node.d.ts.map +1 -0
- package/dist/editor/clipper/receiver.d.ts +10 -0
- package/dist/editor/clipper/receiver.d.ts.map +1 -0
- package/dist/editor/clipper/types.d.ts +47 -0
- package/dist/editor/clipper/types.d.ts.map +1 -0
- package/dist/editor/embeds/attachment-view.d.ts +2 -0
- package/dist/editor/embeds/attachment-view.d.ts.map +1 -0
- package/dist/editor/embeds/attachment.d.ts +4 -0
- package/dist/editor/embeds/attachment.d.ts.map +1 -0
- package/dist/editor/embeds/audio-view.d.ts +2 -0
- package/dist/editor/embeds/audio-view.d.ts.map +1 -0
- package/dist/editor/embeds/audio.d.ts +4 -0
- package/dist/editor/embeds/audio.d.ts.map +1 -0
- package/dist/editor/embeds/video-view.d.ts +2 -0
- package/dist/editor/embeds/video-view.d.ts.map +1 -0
- package/dist/editor/embeds/video.d.ts +4 -0
- package/dist/editor/embeds/video.d.ts.map +1 -0
- package/dist/editor/extensions/bubble-menu.d.ts +23 -0
- package/dist/editor/extensions/bubble-menu.d.ts.map +1 -0
- package/dist/editor/extensions/code-block-view.d.ts +2 -0
- package/dist/editor/extensions/code-block-view.d.ts.map +1 -0
- package/dist/editor/extensions/code-block.d.ts +6 -0
- package/dist/editor/extensions/code-block.d.ts.map +1 -0
- package/dist/editor/extensions/image-upload.d.ts +12 -0
- package/dist/editor/extensions/image-upload.d.ts.map +1 -0
- package/dist/editor/extensions/image-view.d.ts +2 -0
- package/dist/editor/extensions/image-view.d.ts.map +1 -0
- package/dist/editor/extensions/index.d.ts +27 -0
- package/dist/editor/extensions/index.d.ts.map +1 -0
- package/dist/editor/extensions/obsidian-markdown.d.ts +9 -0
- package/dist/editor/extensions/obsidian-markdown.d.ts.map +1 -0
- package/dist/editor/extensions/qingwu-ui.d.ts +28 -0
- package/dist/editor/extensions/qingwu-ui.d.ts.map +1 -0
- package/dist/editor/extensions/relative-media.d.ts +28 -0
- package/dist/editor/extensions/relative-media.d.ts.map +1 -0
- package/dist/editor/extensions/search-highlight.d.ts +34 -0
- package/dist/editor/extensions/search-highlight.d.ts.map +1 -0
- package/dist/editor/extensions/slash-command.d.ts +28 -0
- package/dist/editor/extensions/slash-command.d.ts.map +1 -0
- package/dist/editor/extensions/table-toolbar.d.ts +7 -0
- package/dist/editor/extensions/table-toolbar.d.ts.map +1 -0
- package/dist/editor/i18n/en-US.d.ts +197 -0
- package/dist/editor/i18n/en-US.d.ts.map +1 -0
- package/dist/editor/i18n/index.d.ts +7 -0
- package/dist/editor/i18n/index.d.ts.map +1 -0
- package/dist/editor/i18n/zh-CN.d.ts +197 -0
- package/dist/editor/i18n/zh-CN.d.ts.map +1 -0
- package/dist/editor/icons.d.ts +15 -0
- package/dist/editor/icons.d.ts.map +1 -0
- package/dist/editor/index.d.ts +40 -0
- package/dist/editor/index.d.ts.map +1 -0
- package/dist/editor/storage/index.d.ts +67 -0
- package/dist/editor/storage/index.d.ts.map +1 -0
- package/dist/editor/storage/providers/cos.d.ts +32 -0
- package/dist/editor/storage/providers/cos.d.ts.map +1 -0
- package/dist/editor/storage/providers/local.d.ts +3 -0
- package/dist/editor/storage/providers/local.d.ts.map +1 -0
- package/dist/editor/storage/providers/oss.d.ts +29 -0
- package/dist/editor/storage/providers/oss.d.ts.map +1 -0
- package/dist/editor/storage/providers/s3.d.ts +24 -0
- package/dist/editor/storage/providers/s3.d.ts.map +1 -0
- package/dist/editor/storage/remove-resource.d.ts +3 -0
- package/dist/editor/storage/remove-resource.d.ts.map +1 -0
- package/dist/editor/storage/signed-fetch.d.ts +25 -0
- package/dist/editor/storage/signed-fetch.d.ts.map +1 -0
- package/dist/editor/utils/delete-confirm-dialog.d.ts +18 -0
- package/dist/editor/utils/delete-confirm-dialog.d.ts.map +1 -0
- package/dist/editor/utils/delete-confirm.d.ts +13 -0
- package/dist/editor/utils/delete-confirm.d.ts.map +1 -0
- package/dist/editor/utils/import-choice-dialog.d.ts +10 -0
- package/dist/editor/utils/import-choice-dialog.d.ts.map +1 -0
- package/dist/editor/utils/local-media.d.ts +119 -0
- package/dist/editor/utils/local-media.d.ts.map +1 -0
- package/dist/editor/utils/render-probe.d.ts +6 -0
- package/dist/editor/utils/render-probe.d.ts.map +1 -0
- package/dist/editor/utils/resolve-local-media.d.ts +71 -0
- package/dist/editor/utils/resolve-local-media.d.ts.map +1 -0
- package/dist/editor/utils/sanitize.d.ts +24 -0
- package/dist/editor/utils/sanitize.d.ts.map +1 -0
- package/dist/export-dialog-DLCACwRK.js +162 -0
- package/dist/export-dialog-JUHUKqo-.cjs +13 -0
- package/dist/index.cjs +9 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +7069 -0
- package/dist/local-B20eAPCo.js +93 -0
- package/dist/local-D4481lUa.cjs +3 -0
- package/dist/md-import-dialog-Cf3ZOwA_.js +129 -0
- package/dist/md-import-dialog-CnstzrIK.cjs +1 -0
- package/dist/sanitize-BLVk_EcE.cjs +1 -0
- package/dist/sanitize-OUn05c7P.js +451 -0
- package/dist/signed-fetch-CPPWCUUS.js +102 -0
- package/dist/signed-fetch-D8Rk6R5t.cjs +5 -0
- package/dist/storage-B6LsdlnG.js +37 -0
- package/dist/storage-raz9BRoZ.cjs +2 -0
- package/dist/storage-settings-dialog-BA8QlSw7.js +385 -0
- package/dist/storage-settings-dialog-Dojhp-Uo.cjs +1 -0
- package/dist/styles.css +3 -0
- package/dist/video-embed-dialog-AeGcMb4X.js +269 -0
- package/dist/video-embed-dialog-BbVHq51W.cjs +1 -0
- package/package.json +206 -0
- package/styles.d.ts +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@qingwu-ui/ai-editor",
|
|
3
|
+
"version": "0.9.0-beta",
|
|
4
|
+
"description": "青梧 - 一款面向中文用户的 AI 智能编辑器",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "Apache-2.0",
|
|
7
|
+
"packageManager": "bun@1.3.13",
|
|
8
|
+
"main": "./dist/index.cjs",
|
|
9
|
+
"module": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"style": "./dist/styles.css",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./styles": {
|
|
19
|
+
"types": "./styles.d.ts",
|
|
20
|
+
"default": "./dist/styles.css"
|
|
21
|
+
},
|
|
22
|
+
"./clipper": {
|
|
23
|
+
"types": "./dist/clipper.d.ts",
|
|
24
|
+
"import": "./dist/clipper.js",
|
|
25
|
+
"require": "./dist/clipper.cjs"
|
|
26
|
+
},
|
|
27
|
+
"./package.json": "./package.json"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"styles.d.ts",
|
|
31
|
+
"dist/*.js",
|
|
32
|
+
"dist/*.cjs",
|
|
33
|
+
"dist/*.d.ts",
|
|
34
|
+
"dist/styles.css",
|
|
35
|
+
"dist/editor",
|
|
36
|
+
"dist/components",
|
|
37
|
+
"README.md",
|
|
38
|
+
"LICENSE"
|
|
39
|
+
],
|
|
40
|
+
"sideEffects": [
|
|
41
|
+
"*.css"
|
|
42
|
+
],
|
|
43
|
+
"scripts": {
|
|
44
|
+
"dev": "vite",
|
|
45
|
+
"build": "vite build --config vite.config.lib.ts && tsc -p tsconfig.build.json",
|
|
46
|
+
"build:app": "tsc && vite build",
|
|
47
|
+
"preview": "vite preview",
|
|
48
|
+
"test": "vitest run",
|
|
49
|
+
"test:watch": "vitest",
|
|
50
|
+
"test:ui": "vitest --ui",
|
|
51
|
+
"lint": "biome lint ./src",
|
|
52
|
+
"format": "biome format ./src --write",
|
|
53
|
+
"typecheck": "tsc --noEmit"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"@qingwu-ui/text-layout": "^0.9.0-beta",
|
|
57
|
+
"@qingwu-ui/toast": "^0.9.0-beta",
|
|
58
|
+
"beautiful-mermaid": "^1.1.3",
|
|
59
|
+
"cmdk": "^1.1.1",
|
|
60
|
+
"dompurify": "^3.4.12",
|
|
61
|
+
"highlight.js": "~11.11.0",
|
|
62
|
+
"lowlight": "^3.3.0",
|
|
63
|
+
"tiptap-markdown": "0.9",
|
|
64
|
+
"xgplayer": "^3.0.26"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@ai-sdk/openai": "^4.0.18",
|
|
68
|
+
"@biomejs/biome": "^2.5.5",
|
|
69
|
+
"@file-viewer/core": "2.2.2",
|
|
70
|
+
"@file-viewer/react": "2.2.2",
|
|
71
|
+
"@file-viewer/renderer-archive": "2.2.2",
|
|
72
|
+
"@file-viewer/renderer-pdf": "2.2.2",
|
|
73
|
+
"@file-viewer/renderer-presentation": "2.2.2",
|
|
74
|
+
"@file-viewer/renderer-spreadsheet": "2.2.2",
|
|
75
|
+
"@file-viewer/renderer-text": "2.2.2",
|
|
76
|
+
"@file-viewer/renderer-word": "2.2.2",
|
|
77
|
+
"@file-viewer/vite-plugin": "2.2.2",
|
|
78
|
+
"@tailwindcss/postcss": "^4.3.3",
|
|
79
|
+
"@tailwindcss/typography": "^0.5.16",
|
|
80
|
+
"@tailwindcss/vite": "^4.3.3",
|
|
81
|
+
"@testing-library/jest-dom": "^7.0.0",
|
|
82
|
+
"@testing-library/react": "^16.3.2",
|
|
83
|
+
"@tiptap/core": "^3.28.0",
|
|
84
|
+
"@tiptap/extension-character-count": "^3.28.0",
|
|
85
|
+
"@tiptap/extension-code-block-lowlight": "^3.28.0",
|
|
86
|
+
"@tiptap/extension-color": "^3.28.0",
|
|
87
|
+
"@tiptap/extension-highlight": "^3.28.0",
|
|
88
|
+
"@tiptap/extension-horizontal-rule": "^3.28.0",
|
|
89
|
+
"@tiptap/extension-image": "^3.28.0",
|
|
90
|
+
"@tiptap/extension-link": "^3.28.0",
|
|
91
|
+
"@tiptap/extension-placeholder": "^3.28.0",
|
|
92
|
+
"@tiptap/extension-table": "^3.28.0",
|
|
93
|
+
"@tiptap/extension-table-cell": "^3.28.0",
|
|
94
|
+
"@tiptap/extension-table-header": "^3.28.0",
|
|
95
|
+
"@tiptap/extension-table-row": "^3.28.0",
|
|
96
|
+
"@tiptap/extension-task-item": "^3.28.0",
|
|
97
|
+
"@tiptap/extension-task-list": "^3.28.0",
|
|
98
|
+
"@tiptap/extension-text-style": "^3.28.0",
|
|
99
|
+
"@tiptap/extension-underline": "^3.28.0",
|
|
100
|
+
"@tiptap/pm": "^3.28.0",
|
|
101
|
+
"@tiptap/react": "^3.28.0",
|
|
102
|
+
"@tiptap/starter-kit": "^3.28.0",
|
|
103
|
+
"@tiptap/suggestion": "^3.28.0",
|
|
104
|
+
"@types/node": "^26.1.1",
|
|
105
|
+
"@types/react": "^19.2.17",
|
|
106
|
+
"@types/react-dom": "^19.2.3",
|
|
107
|
+
"@vitejs/plugin-react": "^6.0.4",
|
|
108
|
+
"ai": "^7.0.35",
|
|
109
|
+
"devicon": "^2.17.0",
|
|
110
|
+
"driver.js": "^1.8.0",
|
|
111
|
+
"jsdom": "^29.1.1",
|
|
112
|
+
"puppeteer-core": "^25.3.0",
|
|
113
|
+
"react": "^19.2.8",
|
|
114
|
+
"react-dom": "^19.2.8",
|
|
115
|
+
"tailwindcss": "^4.3.3",
|
|
116
|
+
"typescript": "^7.0.2",
|
|
117
|
+
"vite": "^8.1.5",
|
|
118
|
+
"vitest": "^4.1.10"
|
|
119
|
+
},
|
|
120
|
+
"peerDependencies": {
|
|
121
|
+
"react": "^19.0.0",
|
|
122
|
+
"react-dom": "^19.0.0",
|
|
123
|
+
"devicon": "^2.17.0",
|
|
124
|
+
"@ai-sdk/openai": "^4.0.18",
|
|
125
|
+
"@file-viewer/react": "2.2.2",
|
|
126
|
+
"@file-viewer/renderer-archive": "2.2.2",
|
|
127
|
+
"@file-viewer/renderer-pdf": "2.2.2",
|
|
128
|
+
"@file-viewer/renderer-presentation": "2.2.2",
|
|
129
|
+
"@file-viewer/renderer-spreadsheet": "2.2.2",
|
|
130
|
+
"@file-viewer/renderer-text": "2.2.2",
|
|
131
|
+
"@file-viewer/renderer-word": "2.2.2",
|
|
132
|
+
"@tiptap/core": "^3.28.0",
|
|
133
|
+
"@tiptap/extension-character-count": "^3.28.0",
|
|
134
|
+
"@tiptap/extension-code-block-lowlight": "^3.28.0",
|
|
135
|
+
"@tiptap/extension-color": "^3.28.0",
|
|
136
|
+
"@tiptap/extension-highlight": "^3.28.0",
|
|
137
|
+
"@tiptap/extension-horizontal-rule": "^3.28.0",
|
|
138
|
+
"@tiptap/extension-image": "^3.28.0",
|
|
139
|
+
"@tiptap/extension-link": "^3.28.0",
|
|
140
|
+
"@tiptap/extension-placeholder": "^3.28.0",
|
|
141
|
+
"@tiptap/extension-table": "^3.28.0",
|
|
142
|
+
"@tiptap/extension-table-cell": "^3.28.0",
|
|
143
|
+
"@tiptap/extension-table-header": "^3.28.0",
|
|
144
|
+
"@tiptap/extension-table-row": "^3.28.0",
|
|
145
|
+
"@tiptap/extension-task-item": "^3.28.0",
|
|
146
|
+
"@tiptap/extension-task-list": "^3.28.0",
|
|
147
|
+
"@tiptap/extension-text-style": "^3.28.0",
|
|
148
|
+
"@tiptap/extension-underline": "^3.28.0",
|
|
149
|
+
"@tiptap/pm": "^3.28.0",
|
|
150
|
+
"@tiptap/react": "^3.28.0",
|
|
151
|
+
"@tiptap/starter-kit": "^3.28.0",
|
|
152
|
+
"@tiptap/suggestion": "^3.28.0",
|
|
153
|
+
"ai": "^7.0.35"
|
|
154
|
+
},
|
|
155
|
+
"peerDependenciesMeta": {
|
|
156
|
+
"devicon": {
|
|
157
|
+
"optional": true
|
|
158
|
+
},
|
|
159
|
+
"@ai-sdk/openai": {
|
|
160
|
+
"optional": true
|
|
161
|
+
},
|
|
162
|
+
"@file-viewer/react": {
|
|
163
|
+
"optional": true
|
|
164
|
+
},
|
|
165
|
+
"@file-viewer/renderer-archive": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
168
|
+
"@file-viewer/renderer-pdf": {
|
|
169
|
+
"optional": true
|
|
170
|
+
},
|
|
171
|
+
"@file-viewer/renderer-presentation": {
|
|
172
|
+
"optional": true
|
|
173
|
+
},
|
|
174
|
+
"@file-viewer/renderer-spreadsheet": {
|
|
175
|
+
"optional": true
|
|
176
|
+
},
|
|
177
|
+
"@file-viewer/renderer-text": {
|
|
178
|
+
"optional": true
|
|
179
|
+
},
|
|
180
|
+
"@file-viewer/renderer-word": {
|
|
181
|
+
"optional": true
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"publishConfig": {
|
|
185
|
+
"access": "public"
|
|
186
|
+
},
|
|
187
|
+
"repository": {
|
|
188
|
+
"type": "git",
|
|
189
|
+
"url": "https://github.com/apricotdream/qingwu-ui.git",
|
|
190
|
+
"directory": "packages/ai-editor"
|
|
191
|
+
},
|
|
192
|
+
"homepage": "https://github.com/apricotdream/qingwu-ui#readme",
|
|
193
|
+
"bugs": "https://github.com/apricotdream/qingwu-ui/issues",
|
|
194
|
+
"keywords": [
|
|
195
|
+
"editor",
|
|
196
|
+
"tiptap",
|
|
197
|
+
"ai",
|
|
198
|
+
"markdown",
|
|
199
|
+
"clipper",
|
|
200
|
+
"qingwu"
|
|
201
|
+
],
|
|
202
|
+
"author": "Qingwu Team",
|
|
203
|
+
"engines": {
|
|
204
|
+
"node": ">=20"
|
|
205
|
+
}
|
|
206
|
+
}
|
package/styles.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module "@qingwu-ui/ai-editor/styles";
|