@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
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AnyExtension } from "@tiptap/core";
|
|
2
|
+
import { Table } from "@tiptap/extension-table";
|
|
3
|
+
import { TableCell } from "@tiptap/extension-table-cell";
|
|
4
|
+
import { TableHeader } from "@tiptap/extension-table-header";
|
|
5
|
+
import { TableRow } from "@tiptap/extension-table-row";
|
|
6
|
+
import { AttachmentEmbed } from "../embeds/attachment";
|
|
7
|
+
import { AudioEmbed } from "../embeds/audio";
|
|
8
|
+
import { VideoEmbed } from "../embeds/video";
|
|
9
|
+
import { CodeBlock } from "./code-block";
|
|
10
|
+
import { ImageUpload } from "./image-upload";
|
|
11
|
+
import { ObsidianMarkdown } from "./obsidian-markdown";
|
|
12
|
+
import { QingwuUI } from "./qingwu-ui";
|
|
13
|
+
import { RelativeMedia } from "./relative-media";
|
|
14
|
+
import { SearchHighlight } from "./search-highlight";
|
|
15
|
+
import { createSlashCommandExtension } from "./slash-command";
|
|
16
|
+
export { AttachmentEmbed, AudioEmbed, CodeBlock, createSlashCommandExtension, ImageUpload, ObsidianMarkdown, QingwuUI, RelativeMedia, SearchHighlight, Table, TableCell, TableHeader, TableRow, VideoEmbed, };
|
|
17
|
+
export interface EditorExtensionsConfig {
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
maxLength?: number;
|
|
20
|
+
/** 单文件上传大小上限(字节),0 表示不限制 */
|
|
21
|
+
maxAttachmentSize?: number;
|
|
22
|
+
/** 文档内所有附件总大小上限(字节),0 表示不限制 */
|
|
23
|
+
maxTotalAttachmentSize?: number;
|
|
24
|
+
}
|
|
25
|
+
/** 根据配置组装编辑器扩展列表(StarterKit + 自定义节点 + 斜杠命令等)。 */
|
|
26
|
+
export declare function getEditorExtensions(config?: EditorExtensionsConfig): AnyExtension[];
|
|
27
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/index.ts"],"names":[],"mappings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BAA2B,GAAG,YAAY,EAAE,CAqDvF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"obsidian-markdown.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/obsidian-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAwEzC,eAAO,MAAM,gBAAgB;;QAMrB,KAAK;YAEH,KAAK,KAAK,GAAG;;;EASrB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
import type { AttachmentLimits } from "../attachment-limits";
|
|
3
|
+
/**
|
|
4
|
+
* UI 回调注册中心
|
|
5
|
+
*
|
|
6
|
+
* 用 Tiptap 的 Extension.addStorage 替代 window.__qingwu_* 全局变量:
|
|
7
|
+
* - 支持多编辑器实例(每个 editor 有独立 storage)
|
|
8
|
+
* - 类型安全(不再需要 as unknown as Record<string, unknown>)
|
|
9
|
+
* - 不污染全局命名空间
|
|
10
|
+
*
|
|
11
|
+
* 使用方式:
|
|
12
|
+
* - React 组件挂载时:editor.storage.qingwuUI.openImageDialog = () => setShow(true)
|
|
13
|
+
* - TipTap 扩展内调用:editor.storage.qingwuUI.openImageDialog?.()
|
|
14
|
+
*/
|
|
15
|
+
export interface QingwuUIStorage {
|
|
16
|
+
openImageDialog?: () => void;
|
|
17
|
+
openVideoDialog?: () => void;
|
|
18
|
+
openAI?: () => void;
|
|
19
|
+
chooseMd?: (filename: string, resolve: (v: "render" | "attach" | null) => void) => void;
|
|
20
|
+
parseMd?: (schema: unknown, text: string) => unknown;
|
|
21
|
+
/**
|
|
22
|
+
* 当前附件上传限制(字节)。宿主运行期更新,上传路径实时读取,
|
|
23
|
+
* 避免依赖扩展重建(tiptap setOptions 不重建扩展)。
|
|
24
|
+
*/
|
|
25
|
+
limits?: Partial<AttachmentLimits>;
|
|
26
|
+
}
|
|
27
|
+
export declare const QingwuUI: Extension<any, QingwuUIStorage>;
|
|
28
|
+
//# sourceMappingURL=qingwu-ui.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qingwu-ui.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/qingwu-ui.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,eAAe;IAC9B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,KAAK,IAAI,KAAK,IAAI,CAAC;IACxF,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;IACrD;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACpC;AAED,eAAO,MAAM,QAAQ,iCAMnB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RelativeMedia 扩展:粘贴外部 Markdown(Obsidian / Typora 等)后,自动发现并解析
|
|
3
|
+
* 文中的"本地相对路径图片/附件"。
|
|
4
|
+
*
|
|
5
|
+
* 工作方式:
|
|
6
|
+
* - 不依赖剪贴板文本里是否有 `[[`,而是**观察粘贴后落入文档的节点**——
|
|
7
|
+
* image / videoEmbed / audioEmbed / attachmentEmbed 的本地 src,以及链接型附件的本地 href。
|
|
8
|
+
* 这样 Obsidian(markdown 粘贴)与 Typora(HTML 粘贴)都能被统一捕获。
|
|
9
|
+
* - 用 `appendTransaction` 在每次文档变化后微任务里扫描新出现的本地引用。
|
|
10
|
+
* - **文档是唯一事实来源**:只要某个 src 仍以本地形式存在于文档中,下一轮编排就会
|
|
11
|
+
* 处理它——撤销(Ctrl+Z 回滚换链)、重新粘贴同路径引用都不会被永久跳过。
|
|
12
|
+
* - **失败不骚扰**:一轮编排以遗留(用户取消 / 未找到 / 读取失败)结束时,暂停探测
|
|
13
|
+
* 直到下一次粘贴(两条粘贴路径都会清 `pausedUntilPaste`),避免每次击键重复弹窗。
|
|
14
|
+
* - 解析编排(先剪贴板文件静默上传,再目录授权 / 拖拽降级)委托 `resolve-local-media.ts`。
|
|
15
|
+
*
|
|
16
|
+
* 剪贴板文件暂存在扩展 storage(`clipboardFiles`),由本扩展与 `ai-editor` 的粘贴处理共同写入,
|
|
17
|
+
* 以兼容不同来源的粘贴分流顺序;`pausedUntilPaste` 同理在两条粘贴路径中清除。
|
|
18
|
+
*/
|
|
19
|
+
import { Extension } from "@tiptap/core";
|
|
20
|
+
/** RelativeMedia 的 storage 形状(clipboardFiles / pausedUntilPaste 由粘贴路径写入) */
|
|
21
|
+
export interface RelativeMediaStorage {
|
|
22
|
+
/** 最近一次粘贴时剪贴板里的文件(basename 小写 → File) */
|
|
23
|
+
clipboardFiles: Map<string, File>;
|
|
24
|
+
/** 上一轮编排以遗留结束时暂停探测;新粘贴(任一粘贴路径)清除并重试 */
|
|
25
|
+
pausedUntilPaste: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const RelativeMedia: Extension<any, RelativeMediaStorage>;
|
|
28
|
+
//# sourceMappingURL=relative-media.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative-media.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/relative-media.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAyBzC,4EAA4E;AAC5E,MAAM,WAAW,oBAAoB;IACnC,yCAAyC;IACzC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IAClC,uCAAuC;IACvC,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,sCA6HxB,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
/**
|
|
3
|
+
* 全文搜索高亮扩展
|
|
4
|
+
*
|
|
5
|
+
* 设计:基于 ProseMirror Decoration 实现,不污染文档内容。
|
|
6
|
+
* - 匹配位置存储在 plugin state 中,文档变更时重新计算
|
|
7
|
+
* - 当前匹配项用不同 class 标识,可滚动到视图
|
|
8
|
+
* - 大小写敏感/整词匹配可配置
|
|
9
|
+
*
|
|
10
|
+
* 命令:
|
|
11
|
+
* - setSearch(keyword, opts) 设置关键词并立即匹配
|
|
12
|
+
* - nextMatch() 跳到下一个匹配
|
|
13
|
+
* - prevMatch() 跳到上一个匹配
|
|
14
|
+
* - clearSearch() 清除高亮
|
|
15
|
+
*/
|
|
16
|
+
export interface SearchOptions {
|
|
17
|
+
caseSensitive?: boolean;
|
|
18
|
+
wholeWord?: boolean;
|
|
19
|
+
}
|
|
20
|
+
interface SearchState {
|
|
21
|
+
keyword: string;
|
|
22
|
+
caseSensitive: boolean;
|
|
23
|
+
wholeWord: boolean;
|
|
24
|
+
matches: Array<{
|
|
25
|
+
from: number;
|
|
26
|
+
to: number;
|
|
27
|
+
}>;
|
|
28
|
+
currentIndex: number;
|
|
29
|
+
}
|
|
30
|
+
export declare const SearchHighlight: Extension<any, any>;
|
|
31
|
+
/** 读取当前搜索状态(供 UI 显示匹配数) */
|
|
32
|
+
export declare function getSearchState(editor: import("@tiptap/core").Editor): SearchState;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=search-highlight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-highlight.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/search-highlight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAC;AAI5D;;;;;;;;;;;;;GAaG;AAEH,MAAM,WAAW,aAAa;IAC5B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,WAAW;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;CACtB;AAuGD,eAAO,MAAM,eAAe,qBAmG1B,CAAC;AAEH,2BAA2B;AAC3B,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,cAAc,EAAE,MAAM,GAAG,WAAW,CAGjF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { Editor } from "@tiptap/core";
|
|
2
|
+
import { Extension } from "@tiptap/core";
|
|
3
|
+
import { PluginKey } from "@tiptap/pm/state";
|
|
4
|
+
import { type AttachmentLimits } from "../attachment-limits";
|
|
5
|
+
export interface SlashCommandItem {
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
icon?: string;
|
|
9
|
+
command: (props: {
|
|
10
|
+
editor: Editor;
|
|
11
|
+
}) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const slashCommandPluginKey: PluginKey<any>;
|
|
14
|
+
/**
|
|
15
|
+
* 创建 SlashCommand 扩展
|
|
16
|
+
*
|
|
17
|
+
* @param getItems - 获取命令列表的函数(用于支持 i18n 动态切换)
|
|
18
|
+
*/
|
|
19
|
+
export declare function createSlashCommandExtension(getItems: () => SlashCommandItem[]): Extension<any, any>;
|
|
20
|
+
/**
|
|
21
|
+
* 默认斜杠命令列表(中文)
|
|
22
|
+
*
|
|
23
|
+
* @param t 翻译函数
|
|
24
|
+
* @param defaultLimits 构建时的附件限制兜底(实际运行期优先读 editor.storage.qingwuUI.limits,
|
|
25
|
+
* 宿主可动态更新限制而无需重建扩展)
|
|
26
|
+
*/
|
|
27
|
+
export declare function getDefaultSlashCommands(t: (key: string) => string, defaultLimits?: Partial<AttachmentLimits>): SlashCommandItem[];
|
|
28
|
+
//# sourceMappingURL=slash-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slash-command.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/slash-command.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAU,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAMrD,OAAO,EACL,KAAK,gBAAgB,EAGtB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,qBAAqB,gBAAgC,CAAC;AAEnE;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,gBAAgB,EAAE,uBA8P7E;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,EAC1B,aAAa,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GACxC,gBAAgB,EAAE,CAqLpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-toolbar.d.ts","sourceRoot":"","sources":["../../../src/editor/extensions/table-toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAO3C,UAAU,iBAAiB;IACzB,MAAM,EAAE,MAAM,CAAC;CAChB;AAiED,wBAAgB,YAAY,CAAC,EAAE,MAAM,EAAE,EAAE,iBAAiB,sCAkRzD"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const enUS: {
|
|
2
|
+
readonly editor: {
|
|
3
|
+
readonly placeholder: "Type '/' for commands, or continue writing…";
|
|
4
|
+
readonly wordCount: "{count} words";
|
|
5
|
+
readonly characterCount: "{count} characters";
|
|
6
|
+
readonly toolbar: {
|
|
7
|
+
readonly export: "Export";
|
|
8
|
+
readonly exportTitle: "Export Document";
|
|
9
|
+
readonly ai: "AI Write";
|
|
10
|
+
readonly aiTitle: "AI Writing Assistant";
|
|
11
|
+
};
|
|
12
|
+
readonly loading: "Loading editor…";
|
|
13
|
+
readonly prompt: "Type / for commands · Select text for formatting · Click Writing Assistant for help";
|
|
14
|
+
readonly attachment: {
|
|
15
|
+
readonly preview: "Preview";
|
|
16
|
+
readonly download: "Download";
|
|
17
|
+
readonly delete: "Delete";
|
|
18
|
+
readonly loadingPreview: "Loading preview…";
|
|
19
|
+
readonly lost: "Attachment lost";
|
|
20
|
+
};
|
|
21
|
+
readonly slash: {
|
|
22
|
+
readonly heading1: "Heading 1";
|
|
23
|
+
readonly heading1Desc: "Large heading";
|
|
24
|
+
readonly heading2: "Heading 2";
|
|
25
|
+
readonly heading2Desc: "Medium heading";
|
|
26
|
+
readonly heading3: "Heading 3";
|
|
27
|
+
readonly heading3Desc: "Small heading";
|
|
28
|
+
readonly heading4: "Heading 4";
|
|
29
|
+
readonly heading4Desc: "Smaller heading";
|
|
30
|
+
readonly heading5: "Heading 5";
|
|
31
|
+
readonly heading5Desc: "Tiny heading";
|
|
32
|
+
readonly heading6: "Heading 6";
|
|
33
|
+
readonly heading6Desc: "Smallest heading";
|
|
34
|
+
readonly searchPlaceholder: "Search commands…";
|
|
35
|
+
readonly bulletList: "Bullet List";
|
|
36
|
+
readonly bulletListDesc: "Create a bullet list";
|
|
37
|
+
readonly numberedList: "Numbered List";
|
|
38
|
+
readonly numberedListDesc: "Create a numbered list";
|
|
39
|
+
readonly taskList: "Task List";
|
|
40
|
+
readonly taskListDesc: "Create a task list";
|
|
41
|
+
readonly blockquote: "Blockquote";
|
|
42
|
+
readonly blockquoteDesc: "Insert a blockquote";
|
|
43
|
+
readonly codeBlock: "Code Block";
|
|
44
|
+
readonly codeBlockDesc: "Insert code block";
|
|
45
|
+
readonly image: "Image";
|
|
46
|
+
readonly imageDesc: "Upload or paste an image";
|
|
47
|
+
readonly horizontalRule: "Divider";
|
|
48
|
+
readonly horizontalRuleDesc: "Insert a divider";
|
|
49
|
+
readonly video: "Import Video";
|
|
50
|
+
readonly videoDesc: "Import Bilibili, direct mp4/m3u8, RedNote videos";
|
|
51
|
+
readonly audio: "Import Audio";
|
|
52
|
+
readonly audioDesc: "Select audio file from local (mp3/wav/flac/aac)";
|
|
53
|
+
readonly attachment: "Add Attachment";
|
|
54
|
+
readonly attachmentDesc: "Upload any file type as attachment link";
|
|
55
|
+
readonly xiaohongshu: "RedNote";
|
|
56
|
+
readonly xiaohongshuDesc: "Embed RedNote post";
|
|
57
|
+
};
|
|
58
|
+
readonly bubble: {
|
|
59
|
+
readonly bold: "Bold";
|
|
60
|
+
readonly italic: "Italic";
|
|
61
|
+
readonly underline: "Underline";
|
|
62
|
+
readonly strikethrough: "Strikethrough";
|
|
63
|
+
readonly code: "Inline Code";
|
|
64
|
+
readonly emphasis: "Emphasis";
|
|
65
|
+
readonly link: "Link";
|
|
66
|
+
readonly highlight: "Highlight";
|
|
67
|
+
readonly copy: "Copy";
|
|
68
|
+
readonly search: "Search";
|
|
69
|
+
readonly table: "Table";
|
|
70
|
+
readonly more: "More";
|
|
71
|
+
};
|
|
72
|
+
readonly ai: {
|
|
73
|
+
readonly trigger: "Writing Assistant";
|
|
74
|
+
readonly triggerDesc: "Select text and pick an AI action. The result can replace or insert into the document.";
|
|
75
|
+
readonly close: "Close";
|
|
76
|
+
readonly continue: "Continue";
|
|
77
|
+
readonly continueDesc: "Continue writing from here";
|
|
78
|
+
readonly improve: "Improve";
|
|
79
|
+
readonly improveDesc: "Polish and improve text";
|
|
80
|
+
readonly shorter: "Shorten";
|
|
81
|
+
readonly shorterDesc: "Make it more concise";
|
|
82
|
+
readonly longer: "Expand";
|
|
83
|
+
readonly longerDesc: "Add more detail";
|
|
84
|
+
readonly fix: "Fix";
|
|
85
|
+
readonly fixDesc: "Fix grammar and typos";
|
|
86
|
+
readonly translate: "Translate";
|
|
87
|
+
readonly translateDesc: "Translate to another language";
|
|
88
|
+
readonly zap: "Custom";
|
|
89
|
+
readonly zapDesc: "Enter a custom command";
|
|
90
|
+
readonly thinking: "Thinking…";
|
|
91
|
+
readonly replace: "Replace selection";
|
|
92
|
+
readonly replaceAll: "Replace all";
|
|
93
|
+
readonly replaceTitle: "Replace selection";
|
|
94
|
+
readonly replaceAllTitle: "Replace all content";
|
|
95
|
+
readonly replaceText: "The AI result will replace the current selection.";
|
|
96
|
+
readonly replaceAllText: "The AI result will replace the entire document.";
|
|
97
|
+
readonly removeNodes: "The following media nodes will be removed:";
|
|
98
|
+
readonly nodeImage: "Image";
|
|
99
|
+
readonly nodeAttachment: "Attachment";
|
|
100
|
+
readonly nodeVideo: "Video";
|
|
101
|
+
readonly nodeAudio: "Audio";
|
|
102
|
+
readonly confirmReplace: "Replace";
|
|
103
|
+
readonly cancel: "Cancel";
|
|
104
|
+
readonly insert: "Insert below";
|
|
105
|
+
readonly discard: "Discard";
|
|
106
|
+
readonly error: "Request failed, please retry";
|
|
107
|
+
readonly confirm: "Confirm";
|
|
108
|
+
readonly back: "Back";
|
|
109
|
+
readonly customPlaceholder: "e.g. Rewrite this in a more casual tone";
|
|
110
|
+
};
|
|
111
|
+
readonly export: {
|
|
112
|
+
readonly title: "Export Document";
|
|
113
|
+
readonly html: "HTML";
|
|
114
|
+
readonly htmlDesc: "Export as HTML";
|
|
115
|
+
readonly json: "JSON (Tiptap)";
|
|
116
|
+
readonly jsonDesc: "Export as Tiptap JSON";
|
|
117
|
+
readonly md: "Markdown";
|
|
118
|
+
readonly mdDesc: "Export as Markdown";
|
|
119
|
+
readonly plainText: "Plain Text";
|
|
120
|
+
readonly plainTextDesc: "Export as plain text";
|
|
121
|
+
readonly pdf: "PDF";
|
|
122
|
+
readonly pdfDesc: "Print as PDF";
|
|
123
|
+
readonly copy: "Copy to clipboard";
|
|
124
|
+
readonly copied: "Copied";
|
|
125
|
+
readonly download: "Download";
|
|
126
|
+
};
|
|
127
|
+
readonly image: {
|
|
128
|
+
readonly upload: "Upload image";
|
|
129
|
+
readonly uploading: "Uploading…";
|
|
130
|
+
readonly error: "Upload failed";
|
|
131
|
+
readonly dragTip: "Drag image here or click to upload";
|
|
132
|
+
};
|
|
133
|
+
readonly link: {
|
|
134
|
+
readonly placeholder: "Enter link URL…";
|
|
135
|
+
readonly save: "Save";
|
|
136
|
+
readonly remove: "Remove link";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly app: {
|
|
140
|
+
readonly title: "QingWu";
|
|
141
|
+
readonly subtitle: "Smart Editor";
|
|
142
|
+
readonly settings: "Settings";
|
|
143
|
+
readonly theme: {
|
|
144
|
+
readonly label: "Theme";
|
|
145
|
+
readonly light: "Light";
|
|
146
|
+
readonly dark: "Dark";
|
|
147
|
+
readonly system: "System";
|
|
148
|
+
};
|
|
149
|
+
readonly themeToggle: {
|
|
150
|
+
readonly toDark: "Switch to dark";
|
|
151
|
+
readonly toLight: "Switch to light";
|
|
152
|
+
};
|
|
153
|
+
readonly font: {
|
|
154
|
+
readonly label: "Font";
|
|
155
|
+
readonly sans: "Default";
|
|
156
|
+
readonly serif: "Serif";
|
|
157
|
+
readonly mono: "Mono";
|
|
158
|
+
};
|
|
159
|
+
readonly language: "Language";
|
|
160
|
+
readonly about: "About QingWu";
|
|
161
|
+
readonly footer: {
|
|
162
|
+
readonly line1: "QingWu · Built on Tiptap · Supports DeepSeek / Qwen / OpenAI models";
|
|
163
|
+
readonly license: "Apache-2.0 License";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly tour: {
|
|
167
|
+
readonly welcome: {
|
|
168
|
+
readonly title: "Welcome to QingWu Editor";
|
|
169
|
+
readonly description: "QingWu is an AI-powered smart editor for Chinese users, supporting Markdown, code highlighting, Mermaid diagrams, and more. Click 'Next' to get started.";
|
|
170
|
+
};
|
|
171
|
+
readonly mode: {
|
|
172
|
+
readonly title: "Edit / View Mode";
|
|
173
|
+
readonly description: "Toggle between edit mode and view (read-only) mode. In view mode, content is read-only and action buttons are hidden — ideal for reading and presenting.";
|
|
174
|
+
};
|
|
175
|
+
readonly fullscreen: {
|
|
176
|
+
readonly title: "Fullscreen Mode";
|
|
177
|
+
readonly description: "Choose between 'page fullscreen' and 'browser fullscreen' for a focused, distraction-free writing experience.";
|
|
178
|
+
};
|
|
179
|
+
readonly ai: {
|
|
180
|
+
readonly title: "AI Writing Assistant";
|
|
181
|
+
readonly description: "After configuring DeepSeek, Qwen, OpenAI, or compatible models, access AI features like continue writing, polish, shorten, expand, fix grammar, and translate.";
|
|
182
|
+
};
|
|
183
|
+
readonly lang: {
|
|
184
|
+
readonly title: "Language Toggle";
|
|
185
|
+
readonly description: "Switch between Chinese and English for the editor interface and UI.";
|
|
186
|
+
};
|
|
187
|
+
readonly font: {
|
|
188
|
+
readonly title: "Font Switcher";
|
|
189
|
+
readonly description: "Choose between default, serif, and monospace fonts for different reading experiences.";
|
|
190
|
+
};
|
|
191
|
+
readonly editor: {
|
|
192
|
+
readonly title: "Editor Content Area";
|
|
193
|
+
readonly description: "Type your content here. Type '/' to open the command menu, select text for the formatting bubble menu, and use the AI assistant for smart writing help.";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=en-US.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
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BACF,KAAK,EAAE,MAAM;qBACb,IAAI,EAAE,SAAS;qBACf,KAAK,EAAE,OAAO;qBACd,IAAI,EAAE,MAAM;;iBAEd,QAAQ,EAAE,UAAU;iBACpB,KAAK,EAAE,cAAc;iBACrB,MAAM;qBACJ,KAAK,EAAE,qEAAqE;qBAC5E,OAAO,EAAE,oBAAoB;;;aAIjC,IAAI;iBACF,OAAO;qBACL,KAAK,EAAE,0BAA0B;qBACjC,WAAW,EACT,0JAA0J;;iBAE9J,IAAI;qBACF,KAAK,EAAE,kBAAkB;qBACzB,WAAW,EACT,0JAA0J;;iBAE9J,UAAU;qBACR,KAAK,EAAE,iBAAiB;qBACxB,WAAW,EACT,+GAA+G;;iBAEnH,EAAE;qBACA,KAAK,EAAE,sBAAsB;qBAC7B,WAAW,EACT,gKAAgK;;iBAEpK,IAAI;qBACF,KAAK,EAAE,iBAAiB;qBACxB,WAAW,EAAE,qEAAqE;;iBAEpF,IAAI;qBACF,KAAK,EAAE,eAAe;qBACtB,WAAW,EACT,uFAAuF;;iBAE3F,MAAM;qBACJ,KAAK,EAAE,qBAAqB;qBAC5B,WAAW,EACT,yJAAyJ;;;CAGvJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type Locale = "zh-CN" | "en-US";
|
|
2
|
+
export type I18nDict = Record<string, unknown>;
|
|
3
|
+
export declare function setLocale(locale: Locale): void;
|
|
4
|
+
export declare function getLocale(): Locale;
|
|
5
|
+
export declare function t(path: string): string;
|
|
6
|
+
export declare function tf(path: string, ...args: Array<string | number | Record<string, string | number>>): string;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/editor/i18n/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAS/C,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,QAMvC;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CActC;AAED,wBAAgB,EAAE,CAChB,IAAI,EAAE,MAAM,EACZ,GAAG,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC,GAChE,MAAM,CAsBR"}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
export declare const zhCN: {
|
|
2
|
+
readonly editor: {
|
|
3
|
+
readonly placeholder: "输入 '/' 打开命令菜单,或继续输入内容…";
|
|
4
|
+
readonly wordCount: "共 {count} 字";
|
|
5
|
+
readonly characterCount: "共 {count} 字符";
|
|
6
|
+
readonly toolbar: {
|
|
7
|
+
readonly export: "导出";
|
|
8
|
+
readonly exportTitle: "导出文档";
|
|
9
|
+
readonly ai: "AI 编写";
|
|
10
|
+
readonly aiTitle: "AI 编写助手";
|
|
11
|
+
};
|
|
12
|
+
readonly loading: "加载编辑器中…";
|
|
13
|
+
readonly prompt: "输入 / 打开命令菜单 · 选中文本弹出格式菜单 · 点击写作助手辅助写作";
|
|
14
|
+
readonly attachment: {
|
|
15
|
+
readonly preview: "预览";
|
|
16
|
+
readonly download: "下载";
|
|
17
|
+
readonly delete: "删除";
|
|
18
|
+
readonly loadingPreview: "加载预览中…";
|
|
19
|
+
readonly lost: "附件已丢失";
|
|
20
|
+
};
|
|
21
|
+
readonly slash: {
|
|
22
|
+
readonly heading1: "一级标题";
|
|
23
|
+
readonly heading1Desc: "大号标题";
|
|
24
|
+
readonly heading2: "二级标题";
|
|
25
|
+
readonly heading2Desc: "中号标题";
|
|
26
|
+
readonly heading3: "三级标题";
|
|
27
|
+
readonly heading3Desc: "小号标题";
|
|
28
|
+
readonly heading4: "四级标题";
|
|
29
|
+
readonly heading4Desc: "更小标题";
|
|
30
|
+
readonly heading5: "五级标题";
|
|
31
|
+
readonly heading5Desc: "小小标题";
|
|
32
|
+
readonly heading6: "六级标题";
|
|
33
|
+
readonly heading6Desc: "最小标题";
|
|
34
|
+
readonly searchPlaceholder: "搜索命令…";
|
|
35
|
+
readonly bulletList: "无序列表";
|
|
36
|
+
readonly bulletListDesc: "创建无序列表";
|
|
37
|
+
readonly numberedList: "有序列表";
|
|
38
|
+
readonly numberedListDesc: "创建有序列表";
|
|
39
|
+
readonly taskList: "任务列表";
|
|
40
|
+
readonly taskListDesc: "创建可勾选的任务";
|
|
41
|
+
readonly blockquote: "引用块";
|
|
42
|
+
readonly blockquoteDesc: "插入引用";
|
|
43
|
+
readonly codeBlock: "代码块";
|
|
44
|
+
readonly codeBlockDesc: "插入代码块";
|
|
45
|
+
readonly image: "图片";
|
|
46
|
+
readonly imageDesc: "上传或粘贴图片";
|
|
47
|
+
readonly horizontalRule: "分隔线";
|
|
48
|
+
readonly horizontalRuleDesc: "插入分隔线";
|
|
49
|
+
readonly video: "导入视频";
|
|
50
|
+
readonly videoDesc: "导入 B站、直链 mp4/m3u8、小红书等视频";
|
|
51
|
+
readonly audio: "导入音频";
|
|
52
|
+
readonly audioDesc: "从本地选择音频文件,支持 mp3/wav/flac/aac 等";
|
|
53
|
+
readonly attachment: "添加附件";
|
|
54
|
+
readonly attachmentDesc: "上传任意类型文件,以附件链接形式插入";
|
|
55
|
+
readonly xiaohongshu: "小红书";
|
|
56
|
+
readonly xiaohongshuDesc: "嵌入小红书笔记";
|
|
57
|
+
};
|
|
58
|
+
readonly bubble: {
|
|
59
|
+
readonly bold: "加粗";
|
|
60
|
+
readonly italic: "斜体";
|
|
61
|
+
readonly underline: "下划线";
|
|
62
|
+
readonly strikethrough: "删除线";
|
|
63
|
+
readonly code: "行内代码";
|
|
64
|
+
readonly emphasis: "强调";
|
|
65
|
+
readonly link: "链接";
|
|
66
|
+
readonly highlight: "高亮";
|
|
67
|
+
readonly copy: "复制";
|
|
68
|
+
readonly search: "搜索";
|
|
69
|
+
readonly table: "表格";
|
|
70
|
+
readonly more: "更多";
|
|
71
|
+
};
|
|
72
|
+
readonly ai: {
|
|
73
|
+
readonly trigger: "写作助手";
|
|
74
|
+
readonly triggerDesc: "选中文字后选择 AI 操作,生成结果可替换或插入原文。";
|
|
75
|
+
readonly close: "关闭";
|
|
76
|
+
readonly continue: "续写";
|
|
77
|
+
readonly continueDesc: "从当前位置继续写作";
|
|
78
|
+
readonly improve: "润色";
|
|
79
|
+
readonly improveDesc: "优化表达,提升文采";
|
|
80
|
+
readonly shorter: "精简";
|
|
81
|
+
readonly shorterDesc: "让文字更简洁";
|
|
82
|
+
readonly longer: "扩写";
|
|
83
|
+
readonly longerDesc: "丰富内容细节";
|
|
84
|
+
readonly fix: "修正";
|
|
85
|
+
readonly fixDesc: "修正语法和错别字";
|
|
86
|
+
readonly translate: "翻译";
|
|
87
|
+
readonly translateDesc: "翻译为其他语言";
|
|
88
|
+
readonly zap: "自定义指令";
|
|
89
|
+
readonly zapDesc: "输入自定义指令";
|
|
90
|
+
readonly thinking: "正在思考…";
|
|
91
|
+
readonly replace: "替换选中";
|
|
92
|
+
readonly replaceAll: "全文替换";
|
|
93
|
+
readonly replaceTitle: "确认替换选中";
|
|
94
|
+
readonly replaceAllTitle: "确认全文替换";
|
|
95
|
+
readonly replaceText: "将用 AI 生成结果替换当前选中内容。";
|
|
96
|
+
readonly replaceAllText: "将用 AI 生成结果替换当前全部内容。";
|
|
97
|
+
readonly removeNodes: "以下媒体节点将被移除:";
|
|
98
|
+
readonly nodeImage: "图片";
|
|
99
|
+
readonly nodeAttachment: "附件";
|
|
100
|
+
readonly nodeVideo: "视频";
|
|
101
|
+
readonly nodeAudio: "音频";
|
|
102
|
+
readonly confirmReplace: "确认替换";
|
|
103
|
+
readonly cancel: "取消";
|
|
104
|
+
readonly insert: "在下方插入";
|
|
105
|
+
readonly discard: "放弃";
|
|
106
|
+
readonly error: "请求失败,请重试";
|
|
107
|
+
readonly confirm: "确定";
|
|
108
|
+
readonly back: "返回";
|
|
109
|
+
readonly customPlaceholder: "例如:把这段内容改写成小红书风格";
|
|
110
|
+
};
|
|
111
|
+
readonly export: {
|
|
112
|
+
readonly title: "导出文档";
|
|
113
|
+
readonly html: "HTML";
|
|
114
|
+
readonly htmlDesc: "导出为 HTML 文件";
|
|
115
|
+
readonly json: "JSON (Tiptap)";
|
|
116
|
+
readonly jsonDesc: "导出为 Tiptap JSON 格式";
|
|
117
|
+
readonly md: "Markdown";
|
|
118
|
+
readonly mdDesc: "导出为 Markdown 文件";
|
|
119
|
+
readonly plainText: "纯文本";
|
|
120
|
+
readonly plainTextDesc: "导出为纯文本";
|
|
121
|
+
readonly pdf: "PDF";
|
|
122
|
+
readonly pdfDesc: "打印为 PDF";
|
|
123
|
+
readonly copy: "复制到剪贴板";
|
|
124
|
+
readonly copied: "已复制";
|
|
125
|
+
readonly download: "下载";
|
|
126
|
+
};
|
|
127
|
+
readonly image: {
|
|
128
|
+
readonly upload: "上传图片";
|
|
129
|
+
readonly uploading: "上传中…";
|
|
130
|
+
readonly error: "上传失败";
|
|
131
|
+
readonly dragTip: "拖拽图片到此处或点击上传";
|
|
132
|
+
};
|
|
133
|
+
readonly link: {
|
|
134
|
+
readonly placeholder: "输入链接地址…";
|
|
135
|
+
readonly save: "确定";
|
|
136
|
+
readonly remove: "移除链接";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly app: {
|
|
140
|
+
readonly title: "青梧";
|
|
141
|
+
readonly subtitle: "智能编辑器";
|
|
142
|
+
readonly settings: "设置";
|
|
143
|
+
readonly theme: {
|
|
144
|
+
readonly label: "主题";
|
|
145
|
+
readonly light: "浅色";
|
|
146
|
+
readonly dark: "深色";
|
|
147
|
+
readonly system: "跟随系统";
|
|
148
|
+
};
|
|
149
|
+
readonly themeToggle: {
|
|
150
|
+
readonly toDark: "切换深色";
|
|
151
|
+
readonly toLight: "切换浅色";
|
|
152
|
+
};
|
|
153
|
+
readonly font: {
|
|
154
|
+
readonly label: "字体";
|
|
155
|
+
readonly sans: "默认字体";
|
|
156
|
+
readonly serif: "宋体/衬线";
|
|
157
|
+
readonly mono: "等宽字体";
|
|
158
|
+
};
|
|
159
|
+
readonly language: "语言";
|
|
160
|
+
readonly about: "关于青梧";
|
|
161
|
+
readonly footer: {
|
|
162
|
+
readonly line1: "青梧 QingWu · 基于 Tiptap 构建 · 支持 DeepSeek / 通义千问 / OpenAI 等大模型";
|
|
163
|
+
readonly license: "Apache-2.0 License";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly tour: {
|
|
167
|
+
readonly welcome: {
|
|
168
|
+
readonly title: "欢迎使用青梧编辑器";
|
|
169
|
+
readonly description: "青梧是一款面向中文用户的 AI 智能编辑器,支持 Markdown、代码高亮、Mermaid 图表等丰富功能。点击「下一步」开始了解。";
|
|
170
|
+
};
|
|
171
|
+
readonly mode: {
|
|
172
|
+
readonly title: "编辑 / 查看模式";
|
|
173
|
+
readonly description: "点击此按钮可在「编辑模式」和「查看模式」之间切换。查看模式下内容只读,操作按钮会隐藏,适合阅读和展示。";
|
|
174
|
+
};
|
|
175
|
+
readonly fullscreen: {
|
|
176
|
+
readonly title: "全屏模式";
|
|
177
|
+
readonly description: "提供「网页全屏」和「浏览器全屏」两种沉浸式写作体验,让你专注于内容创作。";
|
|
178
|
+
};
|
|
179
|
+
readonly ai: {
|
|
180
|
+
readonly title: "AI 写作助手";
|
|
181
|
+
readonly description: "配置 DeepSeek、通义千问、OpenAI 等大模型后,可使用续写、润色、精简、扩写、修正、翻译等 AI 辅助功能。";
|
|
182
|
+
};
|
|
183
|
+
readonly lang: {
|
|
184
|
+
readonly title: "中英文切换";
|
|
185
|
+
readonly description: "编辑器和界面支持中文和英文两种语言,点击即可切换。";
|
|
186
|
+
};
|
|
187
|
+
readonly font: {
|
|
188
|
+
readonly title: "字体切换";
|
|
189
|
+
readonly description: "提供默认字体、衬线字体和等宽字体三种阅读体验,满足不同场景需求。";
|
|
190
|
+
};
|
|
191
|
+
readonly editor: {
|
|
192
|
+
readonly title: "编辑器内容区";
|
|
193
|
+
readonly description: "在此区域输入内容。输入 / 打开命令菜单插入各种元素,选中文本弹出格式菜单,点击写作助手触发 AI 辅助。";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
//# sourceMappingURL=zh-CN.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.d.ts","sourceRoot":"","sources":["../../../src/editor/i18n/zh-CN.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;aACf,MAAM;iBACJ,WAAW,EAAE,wBAAwB;iBACrC,SAAS,EAAE,aAAa;iBACxB,cAAc,EAAE,cAAc;iBAC9B,OAAO;qBACL,MAAM,EAAE,IAAI;qBACZ,WAAW,EAAE,MAAM;qBACnB,EAAE,EAAE,OAAO;qBACX,OAAO,EAAE,SAAS;;iBAEpB,OAAO,EAAE,SAAS;iBAClB,MAAM,EAAE,uCAAuC;iBAC/C,UAAU;qBACR,OAAO,EAAE,IAAI;qBACb,QAAQ,EAAE,IAAI;qBACd,MAAM,EAAE,IAAI;qBACZ,cAAc,EAAE,QAAQ;qBACxB,IAAI,EAAE,OAAO;;iBAGf,KAAK;qBACH,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,QAAQ,EAAE,MAAM;qBAChB,YAAY,EAAE,MAAM;qBACpB,iBAAiB,EAAE,OAAO;qBAC1B,UAAU,EAAE,MAAM;qBAClB,cAAc,EAAE,QAAQ;qBACxB,YAAY,EAAE,MAAM;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;qBACX,KAAK,EAAE,IAAI;qBACX,IAAI,EAAE,IAAI;qBACV,MAAM,EAAE,MAAM;;iBAEhB,WAAW;qBACT,MAAM,EAAE,MAAM;qBACd,OAAO,EAAE,MAAM;;iBAEjB,IAAI;qBACF,KAAK,EAAE,IAAI;qBACX,IAAI,EAAE,MAAM;qBACZ,KAAK,EAAE,OAAO;qBACd,IAAI,EAAE,MAAM;;iBAEd,QAAQ,EAAE,IAAI;iBACd,KAAK,EAAE,MAAM;iBACb,MAAM;qBACJ,KAAK,EAAE,6DAA6D;qBACpE,OAAO,EAAE,oBAAoB;;;aAIjC,IAAI;iBACF,OAAO;qBACL,KAAK,EAAE,WAAW;qBAClB,WAAW,EACT,qEAAqE;;iBAEzE,IAAI;qBACF,KAAK,EAAE,WAAW;qBAClB,WAAW,EACT,qDAAqD;;iBAEzD,UAAU;qBACR,KAAK,EAAE,MAAM;qBACb,WAAW,EAAE,sCAAsC;;iBAErD,EAAE;qBACA,KAAK,EAAE,SAAS;qBAChB,WAAW,EACT,8DAA8D;;iBAElE,IAAI;qBACF,KAAK,EAAE,OAAO;qBACd,WAAW,EAAE,2BAA2B;;iBAE1C,IAAI;qBACF,KAAK,EAAE,MAAM;qBACb,WAAW,EAAE,kCAAkC;;iBAEjD,MAAM;qBACJ,KAAK,EAAE,QAAQ;qBACf,WAAW,EACT,uDAAuD;;;CAGrD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { SVGProps } from "react";
|
|
2
|
+
export declare const BoldIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
3
|
+
export declare const ItalicIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
4
|
+
export declare const UnderlineIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
5
|
+
export declare const StrikethroughIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
6
|
+
export declare const CodeIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
7
|
+
export declare const HighlightIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
8
|
+
export declare const LinkIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
9
|
+
export declare const TableIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
10
|
+
export declare const CopyIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
11
|
+
export declare const SearchIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
12
|
+
export declare const SparklesIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
13
|
+
export declare const MoreIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
14
|
+
export declare const CloseIcon: (p: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
15
|
+
//# sourceMappingURL=icons.d.ts.map
|