@blueking/chat-x 0.0.2 → 0.0.3-beta.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/ag-ui/types/messages.d.ts +1 -0
- package/dist/components/ai-buttons/file-upload-btn/file-upload-btn.vue.d.ts +2 -0
- package/dist/components/chat-input/chat-input.vue.d.ts +4 -1
- package/dist/components/chat-input/input-attachment/input-attachment.vue.d.ts +2 -0
- package/dist/components/chat-message/message-container/message-container.vue.d.ts +23 -0
- package/dist/components/image-preview/image-preview-group.vue.d.ts +24 -0
- package/dist/components/image-preview/image-preview.vue.d.ts +36 -0
- package/dist/components/image-preview/image.vue.d.ts +45 -0
- package/dist/components/image-preview/preview-toolbar.vue.d.ts +35 -0
- package/dist/components/image-preview/use-image-transform.d.ts +10 -0
- package/dist/components/image-preview/use-preview-keyboard.d.ts +8 -0
- package/dist/components/index.d.ts +4 -1
- package/dist/components/message-tools/message-tools.vue.d.ts +2 -3
- package/dist/icons/image-preview.d.ts +33 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +976 -411
- package/dist/index.js.map +1 -1
- package/dist/lang/lang.d.ts +12 -1
- package/dist/types/editor.d.ts +5 -2
- package/dist/types/image.d.ts +26 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/tool.d.ts +2 -0
- package/package.json +2 -2
package/dist/lang/lang.d.ts
CHANGED
|
@@ -74,5 +74,16 @@ export declare const lang: {
|
|
|
74
74
|
readonly 取消不满意: "Cancel dissatisfied";
|
|
75
75
|
readonly '\u786E\u8BA4\u5220\u9664\u8BE5\u56DE\u7B54\uFF1F': "Confirm delete this answer?";
|
|
76
76
|
readonly '\u5220\u9664\u64CD\u4F5C\u65E0\u6CD5\u64A4\u56DE\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\uFF01': "This operation cannot be undone. Please proceed with caution!";
|
|
77
|
+
readonly 预览: "Preview";
|
|
78
|
+
readonly 缩小: "Zoom Out";
|
|
79
|
+
readonly 放大: "Zoom In";
|
|
80
|
+
readonly 旋转: "Rotate";
|
|
81
|
+
readonly 下载: "Download";
|
|
82
|
+
readonly '\u62B1\u6B49\uFF0C\u56FE\u7247\u52A0\u8F7D\u5931\u8D25\uFF0C\u53EF\u5C1D\u8BD5\u91CD\u65B0\u52A0\u8F7D': "Sorry, image loading failed. Please try reloading.";
|
|
83
|
+
readonly 重置: "Reset";
|
|
84
|
+
readonly 重新加载: "Reload";
|
|
85
|
+
readonly 宽: "W";
|
|
86
|
+
readonly 高: "H";
|
|
87
|
+
readonly 上传图片: "Upload Image";
|
|
77
88
|
};
|
|
78
|
-
export declare const t: (key: keyof typeof lang) => "Send" | "Stop" | "Ask AI" | "Copy" | "Share" | "Like" | "Unsatisfied" | "Delete" | "Quote" | "Regenerate" | "Submit" | "Cancel" | "Preview Content" | "Jump to Detail" | "Call Tool:" | "Calling..." | "Call Success" | "Call Failed" | "Tell us your thoughts" | "What makes you satisfied?" | "What makes you dissatisfied?" | "Return Content" | "Edit" | "Deep Thinking" | "Loading image..." | "Failed to load image" | "Thinking..." | "Thinking Completed" | "Thinking Failed" | "Copy Success" | "Copy Failed" | "Return to bottom" | "Stop generating" | "Duration" | "Parameters" | "Description" | "Execution Status" | "Running" | "Success" | "Failed" | "Pending" | "Details" | "Node Details" | "Node" | "Node Config" | "Node Output" | "Basic Info" | "Flow Template" | "Node Name" | "Step Name" | "Execution Plan" | "Optional" | "Failure Handler" | "Timeout Control" | "Always Use Latest Version" | "Yes" | "No" | "Input Params" | "Output Params" | "Param Name" | "Param Value" | "Name" | "No Data" | "Node output content..." | "Call MCP:" | "More" | "Searching" | "Search Completed" | "Upload File" | "Requesting..." | "Cancel satisfied" | "Cancel dissatisfied" | "Confirm delete this answer?" | "This operation cannot be undone. Please proceed with caution!" | "发送" | "停止" | "问问小鲸" | "复制" | "分享" | "点赞" | "不满意" | "删除" | "引用" | "重新生成" | "提交" | "取消" | "预览内容" | "跳转详情" | "调用工具:" | "调用中" | "调用成功" | "调用失败" | "说出您的想法" | "什么原因让你满意?" | "什么原因让你不满意?" | "返回内容" | "编辑" | "深度思考" | "图片加载中..." | "图片加载失败" | "思考中" | "已思考完成" | "思考失败" | "复制成功" | "复制失败" | "返回底部" | "停止生成" | "耗时" | "参数" | "描述" | "执行情况" | "执行中" | "成功" | "失败" | "挂起" | "详情" | "节点详情" | "节点" | "节点配置" | "节点输出" | "基础信息" | "流程模板" | "节点名称" | "步骤名称" | "执行方案" | "是否可选" | "失败处理" | "超时控制" | "总是使用最新版本" | "是" | "否" | "输入参数" | "输出参数" | "参数名" | "参数值" | "名称" | "变量说明" | "暂无数据" | "节点输出内容..." | "调用 MCP:" | "更多" | "检索中" | "检索完成" | "上传文件" | "请求中..." | "取消满意" | "取消不满意" | "确认删除该回答?" | "删除操作无法撤回,请谨慎操作!";
|
|
89
|
+
export declare const t: (key: keyof typeof lang) => "Send" | "Stop" | "Ask AI" | "Copy" | "Share" | "Like" | "Unsatisfied" | "Delete" | "Quote" | "Regenerate" | "Submit" | "Cancel" | "Preview Content" | "Jump to Detail" | "Call Tool:" | "Calling..." | "Call Success" | "Call Failed" | "Tell us your thoughts" | "What makes you satisfied?" | "What makes you dissatisfied?" | "Return Content" | "Edit" | "Deep Thinking" | "Loading image..." | "Failed to load image" | "Thinking..." | "Thinking Completed" | "Thinking Failed" | "Copy Success" | "Copy Failed" | "Return to bottom" | "Stop generating" | "Duration" | "Parameters" | "Description" | "Execution Status" | "Running" | "Success" | "Failed" | "Pending" | "Details" | "Node Details" | "Node" | "Node Config" | "Node Output" | "Basic Info" | "Flow Template" | "Node Name" | "Step Name" | "Execution Plan" | "Optional" | "Failure Handler" | "Timeout Control" | "Always Use Latest Version" | "Yes" | "No" | "Input Params" | "Output Params" | "Param Name" | "Param Value" | "Name" | "No Data" | "Node output content..." | "Call MCP:" | "More" | "Searching" | "Search Completed" | "Upload File" | "Requesting..." | "Cancel satisfied" | "Cancel dissatisfied" | "Confirm delete this answer?" | "This operation cannot be undone. Please proceed with caution!" | "Preview" | "Zoom Out" | "Zoom In" | "Rotate" | "Download" | "Sorry, image loading failed. Please try reloading." | "Reset" | "Reload" | "W" | "H" | "Upload Image" | "发送" | "停止" | "问问小鲸" | "复制" | "分享" | "点赞" | "不满意" | "删除" | "引用" | "重新生成" | "提交" | "取消" | "预览内容" | "跳转详情" | "调用工具:" | "调用中" | "调用成功" | "调用失败" | "说出您的想法" | "什么原因让你满意?" | "什么原因让你不满意?" | "返回内容" | "编辑" | "深度思考" | "图片加载中..." | "图片加载失败" | "思考中" | "已思考完成" | "思考失败" | "复制成功" | "复制失败" | "返回底部" | "停止生成" | "耗时" | "参数" | "描述" | "执行情况" | "执行中" | "成功" | "失败" | "挂起" | "详情" | "节点详情" | "节点" | "节点配置" | "节点输出" | "基础信息" | "流程模板" | "节点名称" | "步骤名称" | "执行方案" | "是否可选" | "失败处理" | "超时控制" | "总是使用最新版本" | "是" | "否" | "输入参数" | "输出参数" | "参数名" | "参数值" | "名称" | "变量说明" | "暂无数据" | "节点输出内容..." | "调用 MCP:" | "更多" | "检索中" | "检索完成" | "上传文件" | "请求中..." | "取消满意" | "取消不满意" | "确认删除该回答?" | "删除操作无法撤回,请谨慎操作!" | "预览" | "缩小" | "放大" | "旋转" | "下载" | "抱歉,图片加载失败,可尝试重新加载" | "重置" | "重新加载" | "宽" | "高" | "上传图片";
|
package/dist/types/editor.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export interface IAiSlashGroupItem {
|
|
|
5
5
|
type: keyof typeof resourceTypeMap;
|
|
6
6
|
}
|
|
7
7
|
export interface IAiSlashMenuItem {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
code?: string;
|
|
10
|
+
icon: null | string;
|
|
11
|
+
id?: number | string;
|
|
10
12
|
name: string;
|
|
11
13
|
type: keyof typeof resourceTypeMap;
|
|
12
14
|
}
|
|
@@ -14,6 +16,7 @@ export declare const resourceTypeMap: {
|
|
|
14
16
|
readonly tool: "工具";
|
|
15
17
|
readonly mcp: "MCP";
|
|
16
18
|
readonly doc: "知识库";
|
|
19
|
+
readonly knowledgebase: "知识库";
|
|
17
20
|
readonly shortcut: "快捷指令";
|
|
18
21
|
};
|
|
19
22
|
export type ResourceType = keyof typeof resourceTypeMap;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
export interface ImageItem {
|
|
3
|
+
downloadUrl?: string;
|
|
4
|
+
file?: File;
|
|
5
|
+
height?: number;
|
|
6
|
+
name?: string;
|
|
7
|
+
resolution?: string;
|
|
8
|
+
thumbnailUrl?: string;
|
|
9
|
+
url: string;
|
|
10
|
+
width?: number;
|
|
11
|
+
}
|
|
12
|
+
export type ImageLoadingStatus = 'error' | 'loaded' | 'loading';
|
|
13
|
+
export interface ImagePreviewConfig {
|
|
14
|
+
downloadUrl?: string;
|
|
15
|
+
height?: number;
|
|
16
|
+
name?: string;
|
|
17
|
+
resolution?: string;
|
|
18
|
+
src?: string;
|
|
19
|
+
width?: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ImagePreviewGroupContext {
|
|
22
|
+
preview: (uid: symbol) => void;
|
|
23
|
+
register: (uid: symbol, getItem: () => ImageItem) => void;
|
|
24
|
+
unregister: (uid: symbol) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const IMAGE_PREVIEW_GROUP_KEY: InjectionKey<ImagePreviewGroupContext>;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/tool.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { type ToolIconsMap } from '../icons/tools';
|
|
2
|
+
import type { TippyOptions } from 'vue-tippy';
|
|
2
3
|
export declare enum MessageToolsStatus {
|
|
3
4
|
Disabled = "disabled",// 禁用
|
|
4
5
|
Hidden = "hidden"
|
|
5
6
|
}
|
|
7
|
+
export type AITippyProps = Partial<Omit<TippyOptions, 'content' | 'getReferenceClientRect' | 'theme' | 'triggerTarget'>>;
|
|
6
8
|
export interface IToolBtn {
|
|
7
9
|
description?: string;
|
|
8
10
|
id: keyof typeof ToolIconsMap;
|