@blueking/ai-blueking 0.2.15-beta.1 → 0.2.15-beta.3
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/components/render-content.vue.d.ts +3 -9
- package/dist/components/render-shortcuts.vue.d.ts +19 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/shortcuts.d.ts +2 -0
- package/dist/lang/index.d.ts +2 -1
- package/dist/types/index.d.ts +9 -0
- package/dist/vue2/index.es.min.js +4910 -4827
- package/dist/vue2/index.iife.min.js +64 -59
- package/dist/vue2/index.umd.min.js +34 -29
- package/dist/vue2/style.css +1 -1
- package/dist/vue3/index.es.min.js +591 -508
- package/dist/vue3/index.iife.min.js +53 -48
- package/dist/vue3/index.umd.min.js +8 -3
- package/dist/vue3/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IMessage, IPrompt } from '../types/index';
|
|
1
|
+
import type { IMessage, IPrompt, ISendData } from '../types/index';
|
|
2
2
|
interface IProps {
|
|
3
3
|
messages: IMessage[];
|
|
4
4
|
prompts?: IPrompt[];
|
|
@@ -17,10 +17,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
17
17
|
setInputMessage: (val: string) => void;
|
|
18
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
19
|
"ai-click": (userInput: string) => void;
|
|
20
|
-
send: (data:
|
|
21
|
-
content: string;
|
|
22
|
-
cite?: string | undefined;
|
|
23
|
-
}) => void;
|
|
20
|
+
send: (data: ISendData) => void;
|
|
24
21
|
"choose-prompt": (prompt: IPrompt) => void;
|
|
25
22
|
stop: () => void;
|
|
26
23
|
"scroll-load": () => void;
|
|
@@ -30,10 +27,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
30
27
|
}>>> & {
|
|
31
28
|
"onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
|
|
32
29
|
onStop?: (() => any) | undefined;
|
|
33
|
-
onSend?: ((data:
|
|
34
|
-
content: string;
|
|
35
|
-
cite?: string | undefined;
|
|
36
|
-
}) => any) | undefined;
|
|
30
|
+
onSend?: ((data: ISendData) => any) | undefined;
|
|
37
31
|
"onAi-click"?: ((userInput: string) => any) | undefined;
|
|
38
32
|
"onScroll-load"?: (() => any) | undefined;
|
|
39
33
|
}, {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IShortCut } from '../types/index';
|
|
2
|
+
interface IProps {
|
|
3
|
+
shortcuts: IShortCut[];
|
|
4
|
+
}
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
select: (shortcut: IShortCut) => void;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IProps>>> & {
|
|
8
|
+
onSelect?: ((shortcut: IShortCut) => any) | undefined;
|
|
9
|
+
}, {}, {}>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToOption<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './shortcuts';
|
package/dist/lang/index.d.ts
CHANGED
|
@@ -25,5 +25,6 @@ export declare const langData: {
|
|
|
25
25
|
readonly 复制成功: "Copy success";
|
|
26
26
|
readonly 您选择的文本内容: "The text content you selected";
|
|
27
27
|
readonly 问小鲸: "Ask BK GPT";
|
|
28
|
+
readonly 想对选中的文本做什么: "What do you want to do with the selected text?";
|
|
28
29
|
};
|
|
29
|
-
export declare const t: (key: keyof typeof langData) => "close" | "BK GPT" | "shrink down" | "expand upward" | "Empty chat records" | "The content is being executed, please send it after the execution is completed." | "Send" | "You can type \"/\" to see more Prompts" | "Please input" | "Latest" | "Stop" | "Scroll up to load more records" | " sunday" | " monday" | " tuesday" | " wednesday" | " thursday" | " friday" | " saturday" | "yesterday" | "this week" | "last week" | "Copy success" | "The text content you selected" | "Ask BK GPT" | "小鲸" | "向下收缩" | "向上扩展" | "清空聊天记录" | "关闭" | "内容正在执行中,请执行完成后再发送" | "发送" | "您可以键入 “/” 查看更多Prompt" | "请输入" | "返回最新" | "终止生成" | "向上滚动加载更多记录" | "日" | "一" | "二" | "三" | "四" | "五" | "六" | "昨天" | "本周" | "上周" | "复制成功" | "您选择的文本内容" | "问小鲸";
|
|
30
|
+
export declare const t: (key: keyof typeof langData) => "close" | "BK GPT" | "shrink down" | "expand upward" | "Empty chat records" | "The content is being executed, please send it after the execution is completed." | "Send" | "You can type \"/\" to see more Prompts" | "Please input" | "Latest" | "Stop" | "Scroll up to load more records" | " sunday" | " monday" | " tuesday" | " wednesday" | " thursday" | " friday" | " saturday" | "yesterday" | "this week" | "last week" | "Copy success" | "The text content you selected" | "Ask BK GPT" | "What do you want to do with the selected text?" | "小鲸" | "向下收缩" | "向上扩展" | "清空聊天记录" | "关闭" | "内容正在执行中,请执行完成后再发送" | "发送" | "您可以键入 “/” 查看更多Prompt" | "请输入" | "返回最新" | "终止生成" | "向上滚动加载更多记录" | "日" | "一" | "二" | "三" | "四" | "五" | "六" | "昨天" | "本周" | "上周" | "复制成功" | "您选择的文本内容" | "问小鲸" | "想对选中的文本做什么";
|
package/dist/types/index.d.ts
CHANGED