@blueking/ai-blueking 0.3.14 → 0.3.16

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/README.md CHANGED
@@ -6,6 +6,7 @@
6
6
  - 支持 popup 弹框唤起
7
7
  - 支持引用提问功能
8
8
  - 支持快捷提问(当前支持翻译、解释功能)
9
+ - 支持使用 `enablePopup` (若不设置,默认为ture,支持弹窗)属性来控制是否启用弹框唤起
9
10
 
10
11
  ## 0.3.0 重大变更(Breaking Changes)
11
12
 
@@ -19,8 +19,11 @@ interface IProps {
19
19
  model?: string;
20
20
  isShow?: boolean;
21
21
  shortcuts?: IShortCut[];
22
+ enablePopup?: boolean;
22
23
  }
23
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IProps>, {
24
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IProps>, {
25
+ enablePopup: boolean;
26
+ }>, {
24
27
  setInputMessage: (val: string) => void;
25
28
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
29
  close: () => void;
@@ -36,7 +39,9 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IP
36
39
  cite?: string | undefined;
37
40
  }) => void;
38
41
  "update:isShow": (val: boolean) => void;
39
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IProps>>> & {
42
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IProps>, {
43
+ enablePopup: boolean;
44
+ }>>> & {
40
45
  onClose?: (() => any) | undefined;
41
46
  "onChange-prompt"?: ((val: string) => any) | undefined;
42
47
  "onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
@@ -50,9 +55,19 @@ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IP
50
55
  "onScroll-load"?: (() => any) | undefined;
51
56
  "onUpdate:model"?: ((val: string) => any) | undefined;
52
57
  "onUpdate:isShow"?: ((val: boolean) => any) | undefined;
53
- }, {}, {}>;
58
+ }, {
59
+ enablePopup: boolean;
60
+ }, {}>;
54
61
  export default _default;
55
62
 
63
+ type __VLS_WithDefaults<P, D> = {
64
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
65
+ default: D[K];
66
+ }> : P[K];
67
+ };
68
+ type __VLS_Prettify<T> = {
69
+ [K in keyof T]: T[K];
70
+ } & {};
56
71
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
57
72
  type __VLS_TypePropsToOption<T> = {
58
73
  [K in keyof T]-?: {} extends Pick<T, K> ? {