@blueking/ai-blueking 0.5.0 → 0.5.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.
Files changed (46) hide show
  1. package/README.md +153 -0
  2. package/dist/ai-blueking-new.vue.d.ts +44 -36
  3. package/dist/ai-blueking.vue.d.ts +87 -0
  4. package/dist/chat-helper.d.ts +23 -0
  5. package/dist/components/ai-avatar.vue.d.ts +28 -0
  6. package/dist/components/ai-cite.vue.d.ts +21 -0
  7. package/dist/components/render-back.vue.d.ts +2 -0
  8. package/dist/components/render-content.vue.d.ts +73 -0
  9. package/dist/components/render-message.vue.d.ts +32 -0
  10. package/dist/components/render-modal.vue.d.ts +99 -0
  11. package/dist/components/render-popup.vue.d.ts +21 -0
  12. package/dist/components/render-send.vue.d.ts +30 -0
  13. package/dist/components/render-shortcuts.vue.d.ts +19 -0
  14. package/dist/components/render-stop.vue.d.ts +19 -0
  15. package/dist/components/render-time.vue.d.ts +16 -0
  16. package/dist/components-new/ai-cite.vue.d.ts +7 -18
  17. package/dist/components-new/ai-header.vue.d.ts +7 -17
  18. package/dist/components-new/ai-selected-box.vue.d.ts +6 -17
  19. package/dist/components-new/bar-button.vue.d.ts +7 -19
  20. package/dist/components-new/chat-input-box.vue.d.ts +6 -18
  21. package/dist/components-new/delete-confirm.vue.d.ts +5 -18
  22. package/dist/components-new/prompt-list.vue.d.ts +9 -20
  23. package/dist/components-new/render-message.vue.d.ts +7 -30
  24. package/dist/components-new/render-popup.vue.d.ts +3 -12
  25. package/dist/components-new/shortcuts-bar.vue.d.ts +6 -16
  26. package/dist/components-new/text-editor.vue.d.ts +13 -44
  27. package/dist/composables/use-input-interaction.d.ts +1 -1
  28. package/dist/composables/use-nimbus.d.ts +6 -6
  29. package/dist/composables/use-reference-docs.d.ts +19 -0
  30. package/dist/composables/use-resizable-container.d.ts +6 -6
  31. package/dist/composables/use-scroll-show.d.ts +1 -1
  32. package/dist/composables/use-select-pop.d.ts +13 -5
  33. package/dist/composables/use-textarea-height.d.ts +2 -2
  34. package/dist/composables/use-think.d.ts +26 -0
  35. package/dist/types/index.d.ts +8 -2
  36. package/dist/util/index.d.ts +38 -0
  37. package/dist/views/nimbus.vue.d.ts +10 -17
  38. package/dist/vue2/index.es.min.js +5906 -6106
  39. package/dist/vue2/index.iife.min.js +79 -105
  40. package/dist/vue2/index.umd.min.js +38 -38
  41. package/dist/vue2/style.css +1 -1
  42. package/dist/vue3/index.es.min.js +3383 -3387
  43. package/dist/vue3/index.iife.min.js +78 -104
  44. package/dist/vue3/index.umd.min.js +16 -16
  45. package/dist/vue3/style.css +1 -1
  46. package/package.json +2 -2
@@ -0,0 +1,30 @@
1
+ import type { IPrompt } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ prompts?: IPrompt[] | undefined;
4
+ placeholder?: string | undefined;
5
+ value: string;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "change-prompt": (val: string) => void;
8
+ "update:value": (val: string) => void;
9
+ enter: () => void;
10
+ "choose-prompt": (prompt: IPrompt) => void;
11
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
12
+ prompts?: IPrompt[] | undefined;
13
+ placeholder?: string | undefined;
14
+ value: string;
15
+ }>>> & {
16
+ "onChange-prompt"?: ((val: string) => any) | undefined;
17
+ "onUpdate:value"?: ((val: string) => any) | undefined;
18
+ onEnter?: (() => any) | undefined;
19
+ "onChoose-prompt"?: ((prompt: IPrompt) => any) | undefined;
20
+ }, {}, {}>;
21
+ export default _default;
22
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
+ type __VLS_TypePropsToOption<T> = {
24
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
25
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
+ } : {
27
+ type: import('vue').PropType<T[K]>;
28
+ required: true;
29
+ };
30
+ };
@@ -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,19 @@
1
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ isShow?: boolean | undefined;
3
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ stop: () => void;
5
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
6
+ isShow?: boolean | undefined;
7
+ }>>> & {
8
+ onStop?: (() => 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,16 @@
1
+ import type { IMessage } from '../types';
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
3
+ message: IMessage;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
5
+ message: IMessage;
6
+ }>>>, {}, {}>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToOption<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -1,21 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ type __VLS_Props = {
2
2
  text: string;
3
- showCloseIcon?: boolean | undefined;
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- close: () => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- text: string;
8
- showCloseIcon?: boolean | undefined;
9
- }>>> & {
3
+ showCloseIcon?: boolean;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ close: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
8
  onClose?: (() => any) | undefined;
11
- }, {}, {}>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
10
  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,11 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ type __VLS_Props = {
2
2
  isCompressionHeight: boolean;
3
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
- close: () => void;
5
- toggleCompression: () => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- isCompressionHeight: boolean;
8
- }>>> & {
3
+ };
4
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
+ close: () => any;
6
+ toggleCompression: () => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
8
  onClose?: (() => any) | undefined;
10
9
  onToggleCompression?: (() => any) | undefined;
11
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
11
  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,22 +1,11 @@
1
1
  import { type ShortCut } from '@blueking/ai-ui-sdk';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ type __VLS_Props = {
3
3
  selectedText: string;
4
4
  actions: ShortCut[];
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- "shortcut-click": (shortcut: ShortCut) => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
8
- selectedText: string;
9
- actions: ShortCut[];
10
- }>>> & {
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
7
+ "shortcut-click": (shortcut: ShortCut) => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
9
  "onShortcut-click"?: ((shortcut: ShortCut) => any) | undefined;
12
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
11
  export default _default;
14
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
- type __VLS_TypePropsToOption<T> = {
16
- [K in keyof T]-?: {} extends Pick<T, K> ? {
17
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
- } : {
19
- type: import('vue').PropType<T[K]>;
20
- required: true;
21
- };
22
- };
@@ -1,23 +1,11 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ type __VLS_Props = {
2
2
  icon: string;
3
- color?: string | undefined;
3
+ color?: string;
4
4
  text: string;
5
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
- click: () => void;
7
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
8
- icon: string;
9
- color?: string | undefined;
10
- text: string;
11
- }>>> & {
5
+ };
6
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ click: () => any;
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
12
9
  onClick?: (() => any) | undefined;
13
- }, {}, {}>;
10
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
11
  export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToOption<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
@@ -1,32 +1,20 @@
1
1
  import { type ShortCut } from '@blueking/ai-ui-sdk';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ type __VLS_Props = {
3
3
  shortcuts: ShortCut[];
4
4
  loading: boolean;
5
5
  prompts: string[];
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
8
  send: (value: string) => void;
8
9
  "update:modelValue": (value: string) => void;
9
10
  stop: () => void;
10
11
  "height-change": (height: number) => void;
11
12
  "shortcut-click": (shortcut: ShortCut) => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
13
- shortcuts: ShortCut[];
14
- loading: boolean;
15
- prompts: string[];
16
- }>>> & {
17
- onSend?: ((value: string) => any) | undefined;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
14
  onStop?: (() => any) | undefined;
19
15
  "onShortcut-click"?: ((shortcut: ShortCut) => any) | undefined;
20
16
  "onHeight-change"?: ((height: number) => any) | undefined;
17
+ onSend?: ((value: string) => any) | undefined;
21
18
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
22
- }, {}, {}>;
19
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
20
  export default _default;
24
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
- type __VLS_TypePropsToOption<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
@@ -1,21 +1,8 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ type __VLS_Props = {
2
2
  onConfirm: () => void;
3
3
  onCancel: () => void;
4
- title?: string | undefined;
5
- content?: string | undefined;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- onConfirm: () => void;
8
- onCancel: () => void;
9
- title?: string | undefined;
10
- content?: string | undefined;
11
- }>>>, {}, {}>;
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
- };
4
+ title?: string;
5
+ content?: string;
21
6
  };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ export default _default;
@@ -1,29 +1,18 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
1
+ type __VLS_Props = {
2
2
  prompts: string[];
3
3
  show: boolean;
4
- }>, {
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
5
6
  handleArrowDown: () => void;
6
7
  handleArrowUp: () => void;
7
8
  handleEnter: () => boolean;
8
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- select: (prompt: string) => void;
10
- "height-change": (height: number) => void;
11
- "update:show": (value: boolean) => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
13
- prompts: string[];
14
- show: boolean;
15
- }>>> & {
9
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
10
+ select: (prompt: string) => any;
11
+ "height-change": (height: number) => any;
12
+ "update:show": (value: boolean) => any;
13
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
14
  onSelect?: ((prompt: string) => any) | undefined;
17
15
  "onHeight-change"?: ((height: number) => any) | undefined;
18
16
  "onUpdate:show"?: ((value: boolean) => any) | undefined;
19
- }, {}, {}>;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
20
18
  export default _default;
21
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
22
- type __VLS_TypePropsToOption<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
@@ -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, {
12
- delete: (index: number) => void;
13
- regenerate: (index: number) => void;
8
+ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
+ delete: (index: number) => any;
10
+ regenerate: (index: number) => any;
14
11
  resend: (index: number, value: {
15
12
  message: string;
16
13
  cite: string;
17
- }) => void;
18
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
19
- userPhoto: string;
20
- showTime: boolean;
21
- }>>> & {
14
+ }) => any;
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, {
5
+ declare const _default: import("vue").DefineComponent<IProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
6
  click: (...args: any[]) => void;
7
7
  "shortcut-click": (...args: any[]) => void;
8
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<IProps>>> & {
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,10 @@
1
1
  import { type ShortCut } from '@blueking/ai-ui-sdk';
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
+ type __VLS_Props = {
3
3
  shortcuts: ShortCut[];
4
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "shortcut-click": (args_0: ShortCut) => void;
6
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
7
- shortcuts: ShortCut[];
8
- }>>> & {
4
+ };
5
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ "shortcut-click": (args_0: ShortCut) => any;
7
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
9
8
  "onShortcut-click"?: ((args_0: ShortCut) => any) | undefined;
10
- }, {}, {}>;
9
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
10
  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,57 +1,26 @@
1
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
2
- modelValue?: string | undefined;
3
- placeholder?: string | undefined;
4
- autoFocus?: boolean | undefined;
5
- loading?: boolean | undefined;
6
- }>, {
7
- modelValue: string;
8
- placeholder: string;
9
- autoFocus: boolean;
10
- loading: boolean;
11
- }>, {
1
+ type __VLS_Props = {
2
+ modelValue?: string;
3
+ placeholder?: string;
4
+ autoFocus?: boolean;
5
+ loading?: boolean;
6
+ };
7
+ declare const _default: import("vue").DefineComponent<__VLS_Props, {
12
8
  focus: () => void;
13
9
  clear: () => void;
14
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
11
  submit: (value: string) => void;
16
12
  "update:modelValue": (value: string) => void;
17
13
  stop: () => void;
18
14
  cancel: () => void;
19
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
20
- modelValue?: string | undefined;
21
- placeholder?: string | undefined;
22
- autoFocus?: boolean | undefined;
23
- loading?: boolean | undefined;
24
- }>, {
25
- modelValue: string;
26
- placeholder: string;
27
- autoFocus: boolean;
28
- loading: boolean;
29
- }>>> & {
30
- onSubmit?: ((value: string) => any) | undefined;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
31
16
  onStop?: (() => any) | undefined;
32
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
33
17
  onCancel?: (() => any) | undefined;
34
- }, {
18
+ onSubmit?: ((value: string) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
+ }>, {
35
21
  placeholder: string;
36
22
  modelValue: string;
37
23
  loading: boolean;
38
24
  autoFocus: boolean;
39
- }, {}>;
25
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
26
  export default _default;
41
- type __VLS_WithDefaults<P, D> = {
42
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
- default: D[K];
44
- }> : P[K];
45
- };
46
- type __VLS_Prettify<T> = {
47
- [K in keyof T]: T[K];
48
- } & {};
49
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
- type __VLS_TypePropsToOption<T> = {
51
- [K in keyof T]-?: {} extends Pick<T, K> ? {
52
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
- } : {
54
- type: import('vue').PropType<T[K]>;
55
- required: true;
56
- };
57
- };
@@ -19,7 +19,7 @@ interface InputInteractionOptions {
19
19
  * 处理文本输入的交互逻辑,包括Enter键处理和输入法组合输入状态
20
20
  */
21
21
  export declare function useInputInteraction(options?: InputInteractionOptions): {
22
- isComposing: Ref<boolean>;
22
+ isComposing: Ref<boolean, boolean>;
23
23
  handleCompositionStart: () => void;
24
24
  handleCompositionEnd: () => void;
25
25
  handleEnter: (e: KeyboardEvent) => void;
@@ -1,14 +1,14 @@
1
1
  export declare function useNimbus(emit: {
2
2
  (e: 'click'): void;
3
3
  (e: 'minimize', value: boolean): void;
4
- }): {
4
+ }, defaultMinimize?: boolean): {
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;
@@ -0,0 +1,19 @@
1
+ import type { IDocument } from '../types/index';
2
+ /**
3
+ * 获取引用资料的 HTML 内容
4
+ * @param documents
5
+ * @returns
6
+ */
7
+ export declare const getHtmlContentFromDocuments: (documents: IDocument[]) => string;
8
+ /**
9
+ * 移除引用资料的 HTML 内容
10
+ * @param content
11
+ * @returns
12
+ */
13
+ export declare const removeReferenceDoc: (content: string) => string;
14
+ export declare class ReferenceDocStyleManager {
15
+ private styleEle;
16
+ addStyle(): void;
17
+ removeStyle(): void;
18
+ }
19
+ export declare const useReferenceDoc: () => void;
@@ -22,12 +22,12 @@ interface ResizableContainerOptions {
22
22
  export declare function useResizableContainer(options?: ResizableContainerOptions): {
23
23
  minWidth: number;
24
24
  minHeight: number;
25
- maxWidth: import("vue").Ref<number>;
26
- top: import("vue").Ref<number>;
27
- left: import("vue").Ref<number>;
28
- width: import("vue").Ref<number>;
29
- height: import("vue").Ref<number>;
30
- isCompressionHeight: import("vue").Ref<boolean>;
25
+ maxWidth: import("vue").Ref<number, number>;
26
+ top: import("vue").Ref<number, number>;
27
+ left: import("vue").Ref<number, number>;
28
+ width: import("vue").Ref<number, number>;
29
+ height: import("vue").Ref<number, number>;
30
+ isCompressionHeight: import("vue").Ref<boolean, boolean>;
31
31
  handleDragging: (x: number, y: number) => void;
32
32
  handleResizing: (x: number, y: number, w: number, h: number) => void;
33
33
  toggleCompression: () => 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,15 +1,23 @@
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>;
8
- citeText: import("vue").Ref<string>;
14
+ selectedText: import("vue").Ref<string, string>;
15
+ citeText: import("vue").Ref<string, string>;
9
16
  hideIcon: () => void;
10
17
  clearSelection: () => void;
11
18
  setSelection: (text: string) => void;
12
19
  setCiteText: (text: string) => void;
13
- lockSelectedText: import("vue").Ref<boolean>;
14
- popupRef: import("vue").Ref<HTMLElement | null>;
20
+ lockSelectedText: import("vue").Ref<boolean, boolean>;
21
+ popupRef: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
15
22
  };
23
+ 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;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 获取思考的 HTML 内容
3
+ * @param chatContent 聊天内容
4
+ * @param content 思考内容
5
+ * @param elapsedTime 思考时间
6
+ * @returns 完整的 chatContent
7
+ */
8
+ export declare const getHtmlContentFromThink: (chatContent: string, content: string, elapsedTime?: number) => string;
9
+ /**
10
+ * 判断是否是思考中
11
+ * @param content
12
+ * @returns
13
+ */
14
+ export declare const isThinking: (content: string) => boolean | null;
15
+ /**
16
+ * 移除思考的 HTML 内容
17
+ * @param content
18
+ * @returns
19
+ */
20
+ export declare const removeThink: (content: string) => string;
21
+ export declare class ThinkStyleManager {
22
+ private styleEle;
23
+ addStyle(): void;
24
+ removeStyle(): void;
25
+ }
26
+ export declare const useThink: () => void;