@blueking/ai-blueking 0.5.0-beta.2 → 0.5.0-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.
@@ -5,11 +5,7 @@ interface Props {
5
5
  shortcuts?: ShortCut[];
6
6
  url?: string;
7
7
  }
8
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
9
- enablePopup: boolean;
10
- shortcuts: () => ShortCut[];
11
- url: string;
12
- }>, {
8
+ declare const _default: import("vue").DefineComponent<Props, {
13
9
  handleShow: () => void;
14
10
  handleStop: () => void;
15
11
  sendChat: (content: import("@blueking/ai-ui-sdk").BasicChatContent | import("@blueking/ai-ui-sdk").ShortcutChatContent, callback?: (() => void) | undefined) => void;
@@ -21,41 +17,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
21
17
  message: string;
22
18
  cite: string;
23
19
  }) => void;
24
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
- close: () => void;
20
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
21
  "shortcut-click": (shortcut: ShortCut) => void;
27
- stop: () => void;
22
+ close: () => void;
28
23
  show: () => void;
29
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
30
- enablePopup: boolean;
31
- shortcuts: () => ShortCut[];
32
- url: string;
33
- }>>> & {
34
- onShow?: (() => any) | undefined;
24
+ stop: () => void;
25
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
35
26
  onClose?: (() => any) | undefined;
36
- "onShortcut-click"?: ((shortcut: ShortCut) => any) | undefined;
27
+ onShow?: (() => any) | undefined;
37
28
  onStop?: (() => any) | undefined;
38
- }, {
29
+ "onShortcut-click"?: ((shortcut: ShortCut) => any) | undefined;
30
+ }>, {
39
31
  shortcuts: ShortCut[];
40
32
  enablePopup: boolean;
41
33
  url: string;
42
- }, {}>;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
35
  export default _default;
44
-
45
- type __VLS_WithDefaults<P, D> = {
46
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
- default: D[K];
48
- }> : P[K];
49
- };
50
- type __VLS_Prettify<T> = {
51
- [K in keyof T]: T[K];
52
- } & {};
53
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
- type __VLS_TypePropsToOption<T> = {
55
- [K in keyof T]-?: {} extends Pick<T, K> ? {
56
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
- } : {
58
- type: import('vue').PropType<T[K]>;
59
- required: true;
60
- };
61
- };
@@ -1,21 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  text: string;
3
3
  showCloseIcon?: boolean | undefined;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  close: () => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, string, import("vue").PublicProps, Readonly<{
7
7
  text: string;
8
8
  showCloseIcon?: boolean | undefined;
9
- }>>> & {
9
+ }> & Readonly<{
10
10
  onClose?: (() => any) | undefined;
11
- }, {}, {}>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,21 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  isCompressionHeight: boolean;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  close: () => void;
5
5
  toggleCompression: () => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, string, import("vue").PublicProps, Readonly<{
7
7
  isCompressionHeight: boolean;
8
- }>>> & {
8
+ }> & Readonly<{
9
9
  onClose?: (() => any) | undefined;
10
10
  onToggleCompression?: (() => any) | undefined;
11
- }, {}, {}>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,33 +1,24 @@
1
1
  import { type ShortCut } from '@blueking/ai-ui-sdk';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ declare const _default: import("vue").DefineComponent<{
3
3
  shortcuts: ShortCut[];
4
4
  loading: boolean;
5
- }>, {
5
+ }, {
6
6
  focus: () => void | undefined;
7
7
  clear: () => void;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  send: (value: string) => void;
10
10
  "update:modelValue": (value: string) => void;
11
11
  stop: () => void;
12
12
  "height-change": (height: number) => void;
13
13
  "shortcut-click": (shortcut: ShortCut) => void;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
14
+ }, string, import("vue").PublicProps, Readonly<{
15
15
  shortcuts: ShortCut[];
16
16
  loading: boolean;
17
- }>>> & {
17
+ }> & Readonly<{
18
+ onStop?: (() => any) | undefined;
18
19
  "onShortcut-click"?: ((shortcut: ShortCut) => any) | undefined;
19
20
  onSend?: ((value: string) => any) | undefined;
20
- onStop?: (() => any) | undefined;
21
21
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
22
  "onHeight-change"?: ((height: number) => any) | undefined;
23
- }, {}, {}>;
23
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
24
  export default _default;
25
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
26
- type __VLS_TypePropsToOption<T> = {
27
- [K in keyof T]-?: {} extends Pick<T, K> ? {
28
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
29
- } : {
30
- type: import('vue').PropType<T[K]>;
31
- required: true;
32
- };
33
- };
@@ -1,21 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  onConfirm: () => void;
3
3
  onCancel: () => void;
4
4
  title?: string | undefined;
5
5
  content?: string | undefined;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
7
  onConfirm: () => void;
8
8
  onCancel: () => void;
9
9
  title?: string | undefined;
10
10
  content?: string | undefined;
11
- }>>>, {}, {}>;
11
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -5,45 +5,22 @@ interface Props {
5
5
  showTime?: boolean;
6
6
  index: number;
7
7
  }
8
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
9
- userPhoto: string;
10
- showTime: boolean;
11
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
9
  delete: (index: number) => void;
13
10
  regenerate: (index: number) => void;
14
11
  resend: (index: number, value: {
15
12
  message: string;
16
13
  cite: string;
17
14
  }) => void;
18
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
- userPhoto: string;
20
- showTime: boolean;
21
- }>>> & {
15
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
22
16
  onDelete?: ((index: number) => any) | undefined;
23
17
  onRegenerate?: ((index: number) => any) | undefined;
24
18
  onResend?: ((index: number, value: {
25
19
  message: string;
26
20
  cite: string;
27
21
  }) => any) | undefined;
28
- }, {
22
+ }>, {
29
23
  userPhoto: string;
30
24
  showTime: boolean;
31
- }, {}>;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
26
  export default _default;
33
- type __VLS_WithDefaults<P, D> = {
34
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
- default: D[K];
36
- }> : P[K];
37
- };
38
- type __VLS_Prettify<T> = {
39
- [K in keyof T]: T[K];
40
- } & {};
41
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
- type __VLS_TypePropsToOption<T> = {
43
- [K in keyof T]-?: {} extends Pick<T, K> ? {
44
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
- } : {
46
- type: import('vue').PropType<T[K]>;
47
- required: true;
48
- };
49
- };
@@ -2,20 +2,11 @@ import { type ShortCut } from '@blueking/ai-ui-sdk';
2
2
  interface IProps {
3
3
  shortcuts: ShortCut[];
4
4
  }
5
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<IProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "shortcut-click": (...args: any[]) => void;
5
+ declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
6
  click: (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IProps>>> & {
7
+ "shortcut-click": (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<IProps> & Readonly<{
9
9
  onClick?: ((...args: any[]) => any) | undefined;
10
10
  "onShortcut-click"?: ((...args: any[]) => any) | undefined;
11
- }, {}, {}>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -1,20 +1,11 @@
1
1
  import { type ShortCut } from '@blueking/ai-ui-sdk';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ declare const _default: import("vue").DefineComponent<{
3
3
  shortcuts: ShortCut[];
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  "shortcut-click": (args_0: ShortCut) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, string, import("vue").PublicProps, Readonly<{
7
7
  shortcuts: ShortCut[];
8
- }>>> & {
8
+ }> & Readonly<{
9
9
  "onShortcut-click"?: ((args_0: ShortCut) => any) | undefined;
10
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  export default _default;
12
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
- type __VLS_TypePropsToOption<T> = {
14
- [K in keyof T]-?: {} extends Pick<T, K> ? {
15
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
- } : {
17
- type: import('vue').PropType<T[K]>;
18
- required: true;
19
- };
20
- };
@@ -1,50 +1,25 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  modelValue?: string | undefined;
3
3
  placeholder?: string | undefined;
4
4
  autoFocus?: boolean | undefined;
5
- }>, {
6
- modelValue: string;
7
- placeholder: string;
8
- autoFocus: boolean;
9
- }>, {
5
+ }, {
10
6
  focus: () => void;
11
7
  clear: () => void;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
9
  submit: (value: string) => void;
14
10
  "update:modelValue": (value: string) => void;
15
11
  cancel: () => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
12
+ }, string, import("vue").PublicProps, Readonly<{
17
13
  modelValue?: string | undefined;
18
14
  placeholder?: string | undefined;
19
15
  autoFocus?: boolean | undefined;
20
- }>, {
21
- modelValue: string;
22
- placeholder: string;
23
- autoFocus: boolean;
24
- }>>> & {
16
+ }> & Readonly<{
17
+ onCancel?: (() => any) | undefined;
25
18
  onSubmit?: ((value: string) => any) | undefined;
26
19
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
27
- onCancel?: (() => any) | undefined;
28
- }, {
20
+ }>, {
29
21
  placeholder: string;
30
22
  modelValue: string;
31
23
  autoFocus: boolean;
32
- }, {}>;
24
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
25
  export default _default;
34
- type __VLS_WithDefaults<P, D> = {
35
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
36
- default: D[K];
37
- }> : P[K];
38
- };
39
- type __VLS_Prettify<T> = {
40
- [K in keyof T]: T[K];
41
- } & {};
42
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
43
- type __VLS_TypePropsToOption<T> = {
44
- [K in keyof T]-?: {} extends Pick<T, K> ? {
45
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
46
- } : {
47
- type: import('vue').PropType<T[K]>;
48
- required: true;
49
- };
50
- };
@@ -1,11 +1,11 @@
1
1
  export declare function useMainContainer(): {
2
2
  minWidth: number;
3
3
  minHeight: number;
4
- top: import("vue").Ref<number>;
5
- left: import("vue").Ref<number>;
6
- width: import("vue").Ref<number>;
7
- height: import("vue").Ref<number>;
8
- isCompressionHeight: import("vue").Ref<boolean>;
4
+ top: import("vue").Ref<number, number>;
5
+ left: import("vue").Ref<number, number>;
6
+ width: import("vue").Ref<number, number>;
7
+ height: import("vue").Ref<number, number>;
8
+ isCompressionHeight: import("vue").Ref<boolean, boolean>;
9
9
  handleDragging: (x: number, y: number) => void;
10
10
  handleResizing: (x: number, y: number, w: number, h: number) => void;
11
11
  toggleCompression: () => void;
@@ -4,11 +4,11 @@ export declare function useNimbus(emit: {
4
4
  }): {
5
5
  nimbusWidth: number;
6
6
  nimbusHeight: number;
7
- nimbusLeft: import("vue").Ref<number>;
8
- nimbusTop: import("vue").Ref<number>;
9
- isMinimize: import("vue").Ref<boolean>;
10
- isHovering: import("vue").Ref<boolean>;
11
- isDragging: import("vue").Ref<boolean>;
7
+ nimbusLeft: import("vue").Ref<number, number>;
8
+ nimbusTop: import("vue").Ref<number, number>;
9
+ isMinimize: import("vue").Ref<boolean, boolean>;
10
+ isHovering: import("vue").Ref<boolean, boolean>;
11
+ isDragging: import("vue").Ref<boolean, boolean>;
12
12
  handleNimbusDragging: (_x: number, y: number) => void;
13
13
  handleNimbusMinimize: (isMinimize: boolean) => void;
14
14
  handleClick: () => void;
@@ -1,4 +1,4 @@
1
1
  export declare function useScrollShow(): {
2
- isShow: import("vue").Ref<boolean>;
2
+ isShow: import("vue").Ref<boolean, boolean>;
3
3
  scrollToBottom: () => void;
4
4
  };
@@ -1,14 +1,22 @@
1
+ interface Position {
2
+ top: string;
3
+ left: string;
4
+ }
1
5
  export declare function useSelect(enablePopup: boolean): {
2
- isIconVisible: import("vue").Ref<boolean>;
6
+ isIconVisible: import("vue").Ref<boolean, boolean>;
3
7
  iconPosition: import("vue").Ref<{
4
8
  top: string;
5
9
  left: string;
10
+ }, Position | {
11
+ top: string;
12
+ left: string;
6
13
  }>;
7
- selectedText: import("vue").Ref<string>;
14
+ selectedText: import("vue").Ref<string, string>;
8
15
  hideIcon: () => void;
9
16
  clearSelection: () => void;
10
17
  setSelection: (text: string) => void;
11
- lockSelectedText: import("vue").Ref<boolean>;
12
- currentSelected: import("vue").Ref<string>;
13
- popupRef: import("vue").Ref<HTMLElement | null>;
18
+ lockSelectedText: import("vue").Ref<boolean, boolean>;
19
+ currentSelected: import("vue").Ref<string, string>;
20
+ popupRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
14
21
  };
22
+ export {};
@@ -11,8 +11,8 @@ interface TextareaHeightOptions {
11
11
  * @returns 相关的状态和方法
12
12
  */
13
13
  export declare function useTextareaHeight(options?: TextareaHeightOptions): {
14
- textareaHeight: import("vue").Ref<number>;
15
- textareaRef: import("vue").Ref<HTMLTextAreaElement | undefined>;
14
+ textareaHeight: import("vue").Ref<number, number>;
15
+ textareaRef: import("vue").Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
16
16
  updateHeight: () => void;
17
17
  resetHeight: () => void;
18
18
  bindTextarea: (textareaElement: HTMLTextAreaElement) => void;
@@ -1,21 +1,12 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ declare const _default: import("vue").DefineComponent<{
2
2
  isPanelShow: boolean;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
4
  click: () => void;
5
5
  minimize: (value: boolean) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ }, string, import("vue").PublicProps, Readonly<{
7
7
  isPanelShow: boolean;
8
- }>>> & {
8
+ }> & Readonly<{
9
9
  onClick?: (() => any) | undefined;
10
10
  onMinimize?: ((value: boolean) => any) | undefined;
11
- }, {}, {}>;
11
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  export default _default;
13
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };