@blueking/ai-blueking 0.3.4 → 0.3.5

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.
@@ -1,4 +1,4 @@
1
- import type { IMessage, IPrompt, IPositionLimit, ISize, IStartPosition, IModel } from './types';
1
+ import type { IMessage, IPrompt, IPositionLimit, ISize, IStartPosition, IModel, IShortCut } from './types';
2
2
  interface IProps {
3
3
  messages: IMessage[];
4
4
  prompts?: IPrompt[];
@@ -18,6 +18,7 @@ interface IProps {
18
18
  models?: IModel[];
19
19
  model?: string;
20
20
  isShow?: boolean;
21
+ shortcuts?: IShortCut[];
21
22
  }
22
23
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IProps>, {
23
24
  setInputMessage: (val: string) => void;
@@ -1,4 +1,4 @@
1
- import type { IMessage, IPrompt, ISendData } from '../types/index';
1
+ import type { IMessage, IPrompt, IShortCut, ISendData } from '../types/index';
2
2
  interface IProps {
3
3
  messages: IMessage[];
4
4
  prompts?: IPrompt[];
@@ -9,10 +9,12 @@ interface IProps {
9
9
  scrollLoading?: boolean;
10
10
  scrollLoadingEnd?: boolean;
11
11
  alert?: string;
12
+ shortcuts?: IShortCut[];
12
13
  }
13
14
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IProps>, {
14
15
  background: string;
15
16
  scrollLoadingEnd: boolean;
17
+ shortcuts: () => IShortCut[];
16
18
  }>, {
17
19
  setInputMessage: (val: string) => void;
18
20
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
@@ -24,6 +26,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
24
26
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IProps>, {
25
27
  background: string;
26
28
  scrollLoadingEnd: boolean;
29
+ shortcuts: () => IShortCut[];
27
30
  }>>> & {
28
31
  "onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
29
32
  onStop?: (() => any) | undefined;
@@ -31,6 +34,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
31
34
  "onAi-click"?: ((userInput: string) => any) | undefined;
32
35
  "onScroll-load"?: (() => any) | undefined;
33
36
  }, {
37
+ shortcuts: IShortCut[];
34
38
  background: string;
35
39
  scrollLoadingEnd: boolean;
36
40
  }, {}>;