@opentiny/tiny-robot 0.3.0-alpha.7 → 0.3.0-alpha.8

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/index.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
3
  import { AutoSize as AutoSize_2 } from './index.type';
4
- import { BubblePalcement as BubblePalcement_2 } from './index.type';
5
4
  import { Component } from 'vue';
6
5
  import { ComponentCustomProperties } from 'vue';
7
6
  import { ComponentCustomProps } from 'vue';
@@ -11,14 +10,19 @@ import { ComponentOptionsMixin } from 'vue';
11
10
  import { ComponentProvideOptions } from 'vue';
12
11
  import { ComponentPublicInstance } from 'vue';
13
12
  import { ComputedRef } from 'vue';
13
+ import { Config } from 'dompurify';
14
14
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
15
15
  import { CSSProperties } from 'vue';
16
16
  import { DebuggerEvent } from 'vue';
17
17
  import { DefineComponent } from 'vue';
18
+ import { Directive } from 'vue';
19
+ import { DisplayVariant as DisplayVariant_2 } from './index.type';
18
20
  import { ExtractPropTypes } from 'vue';
21
+ import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
19
22
  import { GlobalComponents } from 'vue';
20
23
  import { GlobalDirectives } from 'vue';
21
24
  import { InputMode as InputMode_2 } from './index.type';
25
+ import { MarketCategoryOption as MarketCategoryOption_2 } from './index.type';
22
26
  import { nextTick } from 'vue';
23
27
  import { OnCleanup } from '@vue/reactivity';
24
28
  import { Options } from 'markdown-it';
@@ -40,13 +44,153 @@ import { WatchOptions } from 'vue';
40
44
  import { WatchStopHandle } from 'vue';
41
45
 
42
46
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
43
- placement: BubblePalcement_2;
44
- type: "text" | "markdown";
45
- maxWidth: string | number;
46
47
  content: string;
48
+ placement: "start" | "end";
49
+ shape: "rounded" | "corner";
50
+ maxWidth: string | number;
51
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
52
+
53
+ declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
54
+ "update:selectedGroup": (value: string) => any;
55
+ } & {
56
+ close: () => any;
57
+ open: () => any;
58
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
59
+ "click-outside": (event: MouseEvent) => any;
60
+ "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
61
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
62
+ onClose?: (() => any) | undefined;
63
+ onOpen?: (() => any) | undefined;
64
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
65
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
66
+ "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
67
+ "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
68
+ }>, {
69
+ title: string;
70
+ trigger: "click" | "manual";
71
+ groupShowMoreTrigger: "click" | "hover";
72
+ topOffset: number;
73
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
74
+ basePopperRef: ({
75
+ $: ComponentInternalInstance;
76
+ $data: {};
77
+ $props: {
78
+ readonly appendTo?: (string | HTMLElement) | undefined;
79
+ readonly offset?: number | {
80
+ mainAxis?: number;
81
+ crossAxis?: number;
82
+ } | undefined;
83
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
84
+ readonly preventOverflow?: boolean | undefined;
85
+ readonly show?: boolean | undefined;
86
+ readonly transitionProps?: TransitionProps | undefined;
87
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
88
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
89
+ $attrs: {
90
+ [x: string]: unknown;
91
+ };
92
+ $refs: {
93
+ [x: string]: unknown;
94
+ };
95
+ $slots: Readonly<{
96
+ [name: string]: Slot<any> | undefined;
97
+ }>;
98
+ $root: ComponentPublicInstance | null;
99
+ $parent: ComponentPublicInstance | null;
100
+ $host: Element | null;
101
+ $emit: (event: string, ...args: any[]) => void;
102
+ $el: any;
103
+ $options: ComponentOptionsBase<Readonly<{
104
+ appendTo?: string | HTMLElement;
105
+ offset?: number | {
106
+ mainAxis?: number;
107
+ crossAxis?: number;
108
+ };
109
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
110
+ preventOverflow?: boolean;
111
+ show?: boolean;
112
+ transitionProps?: TransitionProps;
113
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
114
+ }> & Readonly<{}>, {
115
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
116
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
117
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
118
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
119
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
120
+ beforeCreate?: (() => void) | (() => void)[];
121
+ created?: (() => void) | (() => void)[];
122
+ beforeMount?: (() => void) | (() => void)[];
123
+ mounted?: (() => void) | (() => void)[];
124
+ beforeUpdate?: (() => void) | (() => void)[];
125
+ updated?: (() => void) | (() => void)[];
126
+ activated?: (() => void) | (() => void)[];
127
+ deactivated?: (() => void) | (() => void)[];
128
+ beforeDestroy?: (() => void) | (() => void)[];
129
+ beforeUnmount?: (() => void) | (() => void)[];
130
+ destroyed?: (() => void) | (() => void)[];
131
+ unmounted?: (() => void) | (() => void)[];
132
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
133
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
134
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
135
+ };
136
+ $forceUpdate: () => void;
137
+ $nextTick: nextTick;
138
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
139
+ } & Readonly<{
140
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
141
+ }> & Omit<Readonly<{
142
+ appendTo?: string | HTMLElement;
143
+ offset?: number | {
144
+ mainAxis?: number;
145
+ crossAxis?: number;
146
+ };
147
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
148
+ preventOverflow?: boolean;
149
+ show?: boolean;
150
+ transitionProps?: TransitionProps;
151
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
152
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
153
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
154
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
155
+ }> & {} & ComponentCustomProperties & {} & {
156
+ $slots: Readonly<{
157
+ trigger?: () => VNode[];
158
+ content?: () => VNode[];
159
+ }> & {
160
+ trigger?: () => VNode[];
161
+ content?: () => VNode[];
162
+ };
163
+ }) | null;
164
+ listRef: HTMLUListElement;
165
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
166
+ show?: TooltipContentProps["show"];
167
+ } & TooltipContentProps> & Readonly<{
168
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
169
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
170
+ "update:show": (value: boolean | undefined) => any;
171
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
172
+ P: {};
173
+ B: {};
174
+ D: {};
175
+ C: {};
176
+ M: {};
177
+ Defaults: {};
178
+ }, Readonly<{
179
+ show?: TooltipContentProps["show"];
180
+ } & TooltipContentProps> & Readonly<{
181
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
182
+ }>, {}, {}, {}, {}, {}> | null;
183
+ }, any>;
184
+
185
+ declare const __VLS_component_11: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
186
+ align: "left" | "center" | "right" | string;
47
187
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
48
188
 
49
- declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
189
+ declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
190
+ messageRenderers: Record<string, BubbleMessageRenderer>;
191
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
192
+
193
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
50
194
  "update:show": (value: boolean) => any;
51
195
  "update:fullscreen": (value: boolean | undefined) => any;
52
196
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -54,7 +198,9 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
54
198
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
55
199
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
56
200
 
57
- declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
201
+ declare const __VLS_component_4: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
202
+
203
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
58
204
  "update:show": (value: boolean) => any;
59
205
  } & {
60
206
  "item-click": (item: DropdownMenuItem) => any;
@@ -158,13 +304,13 @@ content?: () => VNode[];
158
304
  }) | null;
159
305
  }, any>;
160
306
 
161
- declare const __VLS_component_4: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
307
+ declare const __VLS_component_6: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
162
308
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
163
309
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
164
310
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
165
311
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
166
312
 
167
- declare const __VLS_component_5: DefineComponent<SenderProps, {
313
+ declare const __VLS_component_7: DefineComponent<SenderProps, {
168
314
  focus: () => void;
169
315
  blur: () => void;
170
316
  clear: () => void;
@@ -179,8 +325,8 @@ activateTemplateFirstField: () => void;
179
325
  }, string, PublicProps, Readonly<SenderProps> & Readonly<{
180
326
  [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
181
327
  }>, {
182
- loading: boolean;
183
328
  mode: InputMode_2;
329
+ loading: boolean;
184
330
  disabled: boolean;
185
331
  modelValue: string;
186
332
  autofocus: boolean;
@@ -705,9 +851,9 @@ onSelect?: ((item: string) => any) | undefined;
705
851
  }>, {}, {}, {}, {}, {}> | null;
706
852
  }, HTMLDivElement>;
707
853
 
708
- declare const __VLS_component_6: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
854
+ declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
709
855
 
710
- declare const __VLS_component_7: DefineComponent<__VLS_PublicProps_3, {
856
+ declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
711
857
  children: ComputedRef<(HTMLElement | SVGElement)[]>;
712
858
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
713
859
  "update:showAll": (value: boolean | undefined) => any;
@@ -727,180 +873,192 @@ floatingItemsRef: HTMLDivElement;
727
873
  floatingMaybeItemRefs: unknown[];
728
874
  }, HTMLDivElement>;
729
875
 
730
- declare const __VLS_component_8: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
731
- "update:selectedGroup": (value: string) => any;
732
- } & {
733
- close: () => any;
734
- open: () => any;
735
- "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
736
- "click-outside": (event: MouseEvent) => any;
737
- "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
738
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
739
- onClose?: (() => any) | undefined;
740
- onOpen?: (() => any) | undefined;
741
- "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
742
- "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
743
- "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
744
- "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
745
- }>, {
746
- title: string;
747
- trigger: "click" | "manual";
748
- groupShowMoreTrigger: "click" | "hover";
749
- topOffset: number;
750
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
751
- basePopperRef: ({
752
- $: ComponentInternalInstance;
753
- $data: {};
754
- $props: {
755
- readonly appendTo?: (string | HTMLElement) | undefined;
756
- readonly offset?: number | {
757
- mainAxis?: number;
758
- crossAxis?: number;
759
- } | undefined;
760
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
761
- readonly preventOverflow?: boolean | undefined;
762
- readonly show?: boolean | undefined;
763
- readonly transitionProps?: TransitionProps | undefined;
764
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
765
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
766
- $attrs: {
767
- [x: string]: unknown;
768
- };
769
- $refs: {
770
- [x: string]: unknown;
771
- };
772
- $slots: Readonly<{
773
- [name: string]: Slot<any> | undefined;
774
- }>;
775
- $root: ComponentPublicInstance | null;
776
- $parent: ComponentPublicInstance | null;
777
- $host: Element | null;
778
- $emit: (event: string, ...args: any[]) => void;
779
- $el: any;
780
- $options: ComponentOptionsBase<Readonly<{
781
- appendTo?: string | HTMLElement;
782
- offset?: number | {
783
- mainAxis?: number;
784
- crossAxis?: number;
876
+ declare type __VLS_Props = {
877
+ messageRenderers?: Record<string, BubbleMessageRenderer>;
785
878
  };
786
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
787
- preventOverflow?: boolean;
788
- show?: boolean;
789
- transitionProps?: TransitionProps;
790
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
791
- }> & Readonly<{}>, {
792
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
793
- popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
794
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
795
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
796
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
797
- beforeCreate?: (() => void) | (() => void)[];
798
- created?: (() => void) | (() => void)[];
799
- beforeMount?: (() => void) | (() => void)[];
800
- mounted?: (() => void) | (() => void)[];
801
- beforeUpdate?: (() => void) | (() => void)[];
802
- updated?: (() => void) | (() => void)[];
803
- activated?: (() => void) | (() => void)[];
804
- deactivated?: (() => void) | (() => void)[];
805
- beforeDestroy?: (() => void) | (() => void)[];
806
- beforeUnmount?: (() => void) | (() => void)[];
807
- destroyed?: (() => void) | (() => void)[];
808
- unmounted?: (() => void) | (() => void)[];
809
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
810
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
811
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
879
+
880
+ declare type __VLS_Props_2 = DropdownMenuProps;
881
+
882
+ declare type __VLS_Props_3 = SuggestionPillsProps;
883
+
884
+ declare type __VLS_Props_4 = SuggestionPopoverProps;
885
+
886
+ declare type __VLS_PublicProps = {
887
+ 'show': ContainerProps['show'];
888
+ 'fullscreen'?: ContainerProps['fullscreen'];
812
889
  };
813
- $forceUpdate: () => void;
814
- $nextTick: nextTick;
815
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
816
- } & Readonly<{
817
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
818
- }> & Omit<Readonly<{
819
- appendTo?: string | HTMLElement;
820
- offset?: number | {
821
- mainAxis?: number;
822
- crossAxis?: number;
890
+
891
+ declare type __VLS_PublicProps_2 = {
892
+ 'show'?: boolean;
893
+ } & __VLS_Props_2;
894
+
895
+ declare type __VLS_PublicProps_3 = {
896
+ 'showAll'?: SuggestionPillsProps['showAll'];
897
+ } & __VLS_Props_3;
898
+
899
+ declare type __VLS_PublicProps_4 = {
900
+ 'selectedGroup'?: string;
901
+ } & __VLS_Props_4;
902
+
903
+ declare function __VLS_template(): {
904
+ attrs: Partial<{}>;
905
+ slots: Readonly<BubbleSlots> & BubbleSlots;
906
+ refs: {};
907
+ rootEl: HTMLDivElement;
823
908
  };
824
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
825
- preventOverflow?: boolean;
826
- show?: boolean;
827
- transitionProps?: TransitionProps;
828
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
829
- }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
830
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
831
- popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
832
- }> & {} & ComponentCustomProperties & {} & {
833
- $slots: Readonly<{
834
- trigger?: () => VNode[];
835
- content?: () => VNode[];
836
- }> & {
837
- trigger?: () => VNode[];
838
- content?: () => VNode[];
839
- };
840
- }) | null;
841
- listRef: HTMLUListElement;
842
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
843
- show?: TooltipContentProps["show"];
844
- } & TooltipContentProps> & Readonly<{
845
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
846
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
847
- "update:show": (value: boolean | undefined) => any;
848
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
849
- P: {};
850
- B: {};
851
- D: {};
852
- C: {};
853
- M: {};
854
- Defaults: {};
855
- }, Readonly<{
856
- show?: TooltipContentProps["show"];
857
- } & TooltipContentProps> & Readonly<{
858
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
859
- }>, {}, {}, {}, {}, {}> | null;
860
- }, any>;
861
-
862
- declare const __VLS_component_9: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
863
- align: "left" | "center" | "right" | string;
864
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
865
909
 
866
- declare type __VLS_Props = DropdownMenuProps;
867
-
868
- declare type __VLS_Props_2 = SuggestionPillsProps;
869
-
870
- declare type __VLS_Props_3 = SuggestionPopoverProps;
871
-
872
- declare type __VLS_PublicProps = {
873
- 'show': ContainerProps['show'];
874
- 'fullscreen'?: ContainerProps['fullscreen'];
910
+ declare function __VLS_template_10(): {
911
+ attrs: Partial<{}>;
912
+ slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
913
+ refs: {
914
+ basePopperRef: ({
915
+ $: ComponentInternalInstance;
916
+ $data: {};
917
+ $props: {
918
+ readonly appendTo?: (string | HTMLElement) | undefined;
919
+ readonly offset?: number | {
920
+ mainAxis?: number;
921
+ crossAxis?: number;
922
+ } | undefined;
923
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
924
+ readonly preventOverflow?: boolean | undefined;
925
+ readonly show?: boolean | undefined;
926
+ readonly transitionProps?: TransitionProps | undefined;
927
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
928
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
929
+ $attrs: {
930
+ [x: string]: unknown;
931
+ };
932
+ $refs: {
933
+ [x: string]: unknown;
934
+ };
935
+ $slots: Readonly<{
936
+ [name: string]: Slot<any> | undefined;
937
+ }>;
938
+ $root: ComponentPublicInstance | null;
939
+ $parent: ComponentPublicInstance | null;
940
+ $host: Element | null;
941
+ $emit: (event: string, ...args: any[]) => void;
942
+ $el: any;
943
+ $options: ComponentOptionsBase<Readonly<{
944
+ appendTo?: string | HTMLElement;
945
+ offset?: number | {
946
+ mainAxis?: number;
947
+ crossAxis?: number;
948
+ };
949
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
950
+ preventOverflow?: boolean;
951
+ show?: boolean;
952
+ transitionProps?: TransitionProps;
953
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
954
+ }> & Readonly<{}>, {
955
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
956
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
957
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
958
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
959
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
960
+ beforeCreate?: (() => void) | (() => void)[];
961
+ created?: (() => void) | (() => void)[];
962
+ beforeMount?: (() => void) | (() => void)[];
963
+ mounted?: (() => void) | (() => void)[];
964
+ beforeUpdate?: (() => void) | (() => void)[];
965
+ updated?: (() => void) | (() => void)[];
966
+ activated?: (() => void) | (() => void)[];
967
+ deactivated?: (() => void) | (() => void)[];
968
+ beforeDestroy?: (() => void) | (() => void)[];
969
+ beforeUnmount?: (() => void) | (() => void)[];
970
+ destroyed?: (() => void) | (() => void)[];
971
+ unmounted?: (() => void) | (() => void)[];
972
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
973
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
974
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
975
+ };
976
+ $forceUpdate: () => void;
977
+ $nextTick: nextTick;
978
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
979
+ } & Readonly<{
980
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
981
+ }> & Omit<Readonly<{
982
+ appendTo?: string | HTMLElement;
983
+ offset?: number | {
984
+ mainAxis?: number;
985
+ crossAxis?: number;
986
+ };
987
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
988
+ preventOverflow?: boolean;
989
+ show?: boolean;
990
+ transitionProps?: TransitionProps;
991
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
992
+ }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
993
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
994
+ popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
995
+ }> & {} & ComponentCustomProperties & {} & {
996
+ $slots: Readonly<{
997
+ trigger?: () => VNode[];
998
+ content?: () => VNode[];
999
+ }> & {
1000
+ trigger?: () => VNode[];
1001
+ content?: () => VNode[];
1002
+ };
1003
+ }) | null;
1004
+ listRef: HTMLUListElement;
1005
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1006
+ show?: TooltipContentProps["show"];
1007
+ } & TooltipContentProps> & Readonly<{
1008
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1009
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1010
+ "update:show": (value: boolean | undefined) => any;
1011
+ }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1012
+ P: {};
1013
+ B: {};
1014
+ D: {};
1015
+ C: {};
1016
+ M: {};
1017
+ Defaults: {};
1018
+ }, Readonly<{
1019
+ show?: TooltipContentProps["show"];
1020
+ } & TooltipContentProps> & Readonly<{
1021
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1022
+ }>, {}, {}, {}, {}, {}> | null;
1023
+ };
1024
+ rootEl: any;
875
1025
  };
876
1026
 
877
- declare type __VLS_PublicProps_2 = {
878
- 'show'?: boolean;
879
- } & __VLS_Props;
880
-
881
- declare type __VLS_PublicProps_3 = {
882
- 'showAll'?: SuggestionPillsProps['showAll'];
883
- } & __VLS_Props_2;
884
-
885
- declare type __VLS_PublicProps_4 = {
886
- 'selectedGroup'?: string;
887
- } & __VLS_Props_3;
888
-
889
- declare function __VLS_template(): {
1027
+ declare function __VLS_template_11(): {
890
1028
  attrs: Partial<{}>;
891
- slots: Readonly<BubbleSlots> & BubbleSlots;
1029
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
892
1030
  refs: {};
893
1031
  rootEl: HTMLDivElement;
894
1032
  };
895
1033
 
896
1034
  declare function __VLS_template_2(): {
1035
+ attrs: Partial<{}>;
1036
+ slots: {
1037
+ default?(_: {}): any;
1038
+ };
1039
+ refs: {};
1040
+ rootEl: any;
1041
+ };
1042
+
1043
+ declare function __VLS_template_3(): {
897
1044
  attrs: Partial<{}>;
898
1045
  slots: Readonly<ContainerSlots> & ContainerSlots;
899
1046
  refs: {};
900
1047
  rootEl: HTMLDivElement;
901
1048
  };
902
1049
 
903
- declare function __VLS_template_3(): {
1050
+ declare function __VLS_template_4(): {
1051
+ attrs: Partial<{}>;
1052
+ slots: {
1053
+ overlay?(_: {
1054
+ isDragging: true;
1055
+ }): any;
1056
+ };
1057
+ refs: {};
1058
+ rootEl: any;
1059
+ };
1060
+
1061
+ declare function __VLS_template_5(): {
904
1062
  attrs: Partial<{}>;
905
1063
  slots: {
906
1064
  trigger?(_: {}): any;
@@ -1000,14 +1158,14 @@ declare function __VLS_template_3(): {
1000
1158
  rootEl: any;
1001
1159
  };
1002
1160
 
1003
- declare function __VLS_template_4(): {
1161
+ declare function __VLS_template_6(): {
1004
1162
  attrs: Partial<{}>;
1005
1163
  slots: Readonly<PromptsSlots> & PromptsSlots;
1006
1164
  refs: {};
1007
1165
  rootEl: HTMLDivElement;
1008
1166
  };
1009
1167
 
1010
- declare function __VLS_template_5(): {
1168
+ declare function __VLS_template_7(): {
1011
1169
  attrs: Partial<{}>;
1012
1170
  slots: {
1013
1171
  header?(_: {}): any;
@@ -1516,164 +1674,44 @@ declare function __VLS_template_5(): {
1516
1674
  P: {};
1517
1675
  B: {};
1518
1676
  D: {};
1519
- C: {};
1520
- M: {};
1521
- Defaults: {};
1522
- }, Readonly<Props> & Readonly<{
1523
- onSelect?: ((item: string) => any) | undefined;
1524
- "onItem-hover"?: ((index: number) => any) | undefined;
1525
- "onItem-leave"?: (() => any) | undefined;
1526
- }>, {}, {}, {}, {}, {}> | null;
1527
- };
1528
- rootEl: HTMLDivElement;
1529
- };
1530
-
1531
- declare function __VLS_template_6(): {
1532
- attrs: Partial<{}>;
1533
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1534
- refs: {};
1535
- rootEl: HTMLButtonElement;
1536
- };
1537
-
1538
- declare function __VLS_template_7(): {
1539
- attrs: Partial<{}>;
1540
- slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1541
- refs: {
1542
- containerWrapperRef: HTMLDivElement;
1543
- containerRef: HTMLDivElement;
1544
- staticMaybeItemRefs: unknown[];
1545
- floatingItemsRef: HTMLDivElement;
1546
- floatingMaybeItemRefs: unknown[];
1547
- };
1548
- rootEl: HTMLDivElement;
1549
- };
1550
-
1551
- declare function __VLS_template_8(): {
1552
- attrs: Partial<{}>;
1553
- slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
1554
- refs: {
1555
- basePopperRef: ({
1556
- $: ComponentInternalInstance;
1557
- $data: {};
1558
- $props: {
1559
- readonly appendTo?: (string | HTMLElement) | undefined;
1560
- readonly offset?: number | {
1561
- mainAxis?: number;
1562
- crossAxis?: number;
1563
- } | undefined;
1564
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
1565
- readonly preventOverflow?: boolean | undefined;
1566
- readonly show?: boolean | undefined;
1567
- readonly transitionProps?: TransitionProps | undefined;
1568
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1569
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1570
- $attrs: {
1571
- [x: string]: unknown;
1572
- };
1573
- $refs: {
1574
- [x: string]: unknown;
1575
- };
1576
- $slots: Readonly<{
1577
- [name: string]: Slot<any> | undefined;
1578
- }>;
1579
- $root: ComponentPublicInstance | null;
1580
- $parent: ComponentPublicInstance | null;
1581
- $host: Element | null;
1582
- $emit: (event: string, ...args: any[]) => void;
1583
- $el: any;
1584
- $options: ComponentOptionsBase<Readonly<{
1585
- appendTo?: string | HTMLElement;
1586
- offset?: number | {
1587
- mainAxis?: number;
1588
- crossAxis?: number;
1589
- };
1590
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1591
- preventOverflow?: boolean;
1592
- show?: boolean;
1593
- transitionProps?: TransitionProps;
1594
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1595
- }> & Readonly<{}>, {
1596
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1597
- popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
1598
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1599
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1600
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1601
- beforeCreate?: (() => void) | (() => void)[];
1602
- created?: (() => void) | (() => void)[];
1603
- beforeMount?: (() => void) | (() => void)[];
1604
- mounted?: (() => void) | (() => void)[];
1605
- beforeUpdate?: (() => void) | (() => void)[];
1606
- updated?: (() => void) | (() => void)[];
1607
- activated?: (() => void) | (() => void)[];
1608
- deactivated?: (() => void) | (() => void)[];
1609
- beforeDestroy?: (() => void) | (() => void)[];
1610
- beforeUnmount?: (() => void) | (() => void)[];
1611
- destroyed?: (() => void) | (() => void)[];
1612
- unmounted?: (() => void) | (() => void)[];
1613
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1614
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1615
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1616
- };
1617
- $forceUpdate: () => void;
1618
- $nextTick: nextTick;
1619
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
1620
- } & Readonly<{
1621
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1622
- }> & Omit<Readonly<{
1623
- appendTo?: string | HTMLElement;
1624
- offset?: number | {
1625
- mainAxis?: number;
1626
- crossAxis?: number;
1627
- };
1628
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1629
- preventOverflow?: boolean;
1630
- show?: boolean;
1631
- transitionProps?: TransitionProps;
1632
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1633
- }> & Readonly<{}>, "placement" | "triggerRef" | "popperRef"> & ShallowUnwrapRef< {
1634
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1635
- popperRef: Ref<HTMLElement | SVGElement | null | undefined, HTMLElement | SVGElement | null | undefined>;
1636
- }> & {} & ComponentCustomProperties & {} & {
1637
- $slots: Readonly<{
1638
- trigger?: () => VNode[];
1639
- content?: () => VNode[];
1640
- }> & {
1641
- trigger?: () => VNode[];
1642
- content?: () => VNode[];
1643
- };
1644
- }) | null;
1645
- listRef: HTMLUListElement;
1646
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1647
- show?: TooltipContentProps["show"];
1648
- } & TooltipContentProps> & Readonly<{
1649
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1650
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1651
- "update:show": (value: boolean | undefined) => any;
1652
- }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1653
- P: {};
1654
- B: {};
1655
- D: {};
1656
- C: {};
1657
- M: {};
1658
- Defaults: {};
1659
- }, Readonly<{
1660
- show?: TooltipContentProps["show"];
1661
- } & TooltipContentProps> & Readonly<{
1662
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1677
+ C: {};
1678
+ M: {};
1679
+ Defaults: {};
1680
+ }, Readonly<Props> & Readonly<{
1681
+ onSelect?: ((item: string) => any) | undefined;
1682
+ "onItem-hover"?: ((index: number) => any) | undefined;
1683
+ "onItem-leave"?: (() => any) | undefined;
1663
1684
  }>, {}, {}, {}, {}, {}> | null;
1664
1685
  };
1665
- rootEl: any;
1686
+ rootEl: HTMLDivElement;
1666
1687
  };
1667
1688
 
1668
- declare function __VLS_template_9(): {
1689
+ declare function __VLS_template_8(): {
1669
1690
  attrs: Partial<{}>;
1670
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1691
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1671
1692
  refs: {};
1693
+ rootEl: HTMLButtonElement;
1694
+ };
1695
+
1696
+ declare function __VLS_template_9(): {
1697
+ attrs: Partial<{}>;
1698
+ slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
1699
+ refs: {
1700
+ containerWrapperRef: HTMLDivElement;
1701
+ containerRef: HTMLDivElement;
1702
+ staticMaybeItemRefs: unknown[];
1703
+ floatingItemsRef: HTMLDivElement;
1704
+ floatingMaybeItemRefs: unknown[];
1705
+ };
1672
1706
  rootEl: HTMLDivElement;
1673
1707
  };
1674
1708
 
1675
1709
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
1676
1710
 
1711
+ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1712
+
1713
+ declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1714
+
1677
1715
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1678
1716
 
1679
1717
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1696,6 +1734,18 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
1696
1734
  };
1697
1735
  };
1698
1736
 
1737
+ declare type __VLS_WithTemplateSlots_10<T, S> = T & {
1738
+ new (): {
1739
+ $slots: S;
1740
+ };
1741
+ };
1742
+
1743
+ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1744
+ new (): {
1745
+ $slots: S;
1746
+ };
1747
+ };
1748
+
1699
1749
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1700
1750
  new (): {
1701
1751
  $slots: S;
@@ -1744,11 +1794,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1744
1794
  };
1745
1795
  };
1746
1796
 
1797
+ export declare interface ActionButton {
1798
+ type: string;
1799
+ label: string;
1800
+ handler?: (file: Attachment) => void;
1801
+ }
1802
+
1747
1803
  export declare interface ActionButtonsProps {
1748
1804
  loading?: boolean;
1749
1805
  disabled?: boolean;
1750
1806
  showClear?: boolean;
1751
1807
  hasContent?: boolean;
1808
+ buttonGroup?: ButtonGroupConfig;
1752
1809
  allowSpeech?: boolean;
1753
1810
  speechStatus?: {
1754
1811
  isRecording: boolean;
@@ -1761,11 +1818,86 @@ export declare interface ActionButtonsProps {
1761
1818
  stopText?: string;
1762
1819
  }
1763
1820
 
1821
+ export declare interface AddPluginCodeData {
1822
+ aiPlugin: string;
1823
+ openapi: string;
1824
+ }
1825
+
1826
+ export declare interface AddPluginDialogEmits {
1827
+ (e: 'update:visible', value: boolean): void;
1828
+ (e: 'confirm', data: AddPluginFormData): void;
1829
+ (e: 'cancel'): void;
1830
+ (e: 'open-code-editor'): void;
1831
+ }
1832
+
1833
+ export declare interface AddPluginDialogProps {
1834
+ visible: boolean;
1835
+ title?: string;
1836
+ }
1837
+
1838
+ export declare interface AddPluginFormData {
1839
+ name: string;
1840
+ description: string;
1841
+ type: string;
1842
+ url: string;
1843
+ headers: string;
1844
+ thumbnail?: File | null;
1845
+ }
1846
+
1847
+ export declare type Attachment = {
1848
+ id?: string;
1849
+ name?: string;
1850
+ status?: FileStatus;
1851
+ url: string;
1852
+ fileType?: FileType;
1853
+ size: number;
1854
+ message?: string;
1855
+ rawFile?: File;
1856
+ } | {
1857
+ id?: string;
1858
+ name?: string;
1859
+ status?: FileStatus;
1860
+ url?: string;
1861
+ fileType?: FileType;
1862
+ size?: number;
1863
+ message?: string;
1864
+ rawFile: File;
1865
+ };
1866
+
1867
+ export declare interface AttachmentListEmits {
1868
+ (e: 'update:items', items: Attachment[]): void;
1869
+ (e: 'remove', file: Attachment): void;
1870
+ (e: 'download', payload: {
1871
+ event: MouseEvent;
1872
+ file: Attachment;
1873
+ }): void;
1874
+ (e: 'retry', file: Attachment): void;
1875
+ (e: 'preview', file: Attachment): void;
1876
+ (e: 'action', payload: {
1877
+ action: ActionButton;
1878
+ file: Attachment;
1879
+ }): void;
1880
+ }
1881
+
1882
+ export declare interface AttachmentListProps {
1883
+ items?: Attachment[];
1884
+ disabled?: boolean;
1885
+ wrap?: boolean;
1886
+ fileIcons?: Record<string, Component>;
1887
+ actions?: ActionButton[];
1888
+ variant?: DisplayVariant;
1889
+ fileMatchers?: FileTypeMatcher[];
1890
+ }
1891
+
1764
1892
  export declare type AutoSize = boolean | {
1765
1893
  minRows: number;
1766
1894
  maxRows: number;
1767
1895
  };
1768
1896
 
1897
+ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1898
+
1899
+ export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1900
+
1769
1901
  declare interface BaseHistoryProps {
1770
1902
  activeTab?: string;
1771
1903
  searchBar?: boolean;
@@ -1781,15 +1913,32 @@ declare interface BaseTextItem {
1781
1913
  content: string;
1782
1914
  }
1783
1915
 
1784
- declare const Bubble: typeof _default_12 & {
1916
+ declare const Bubble: typeof _default_16 & {
1785
1917
  install: typeof bubbleInstall;
1786
1918
  };
1787
1919
  export { Bubble }
1788
1920
  export { Bubble as TrBubble }
1789
1921
 
1922
+ export declare interface BubbleCommonProps {
1923
+ /**
1924
+ * 气泡对齐位置
1925
+ */
1926
+ placement?: 'start' | 'end';
1927
+ /**
1928
+ * 气泡头像
1929
+ */
1930
+ avatar?: VNode;
1931
+ /**
1932
+ * 气泡形状,默认 'corner'
1933
+ */
1934
+ shape?: 'rounded' | 'corner';
1935
+ hidden?: boolean;
1936
+ maxWidth?: string | number;
1937
+ }
1938
+
1790
1939
  declare const bubbleInstall: (app: App) => void;
1791
1940
 
1792
- declare const BubbleList: typeof _default_13 & {
1941
+ declare const BubbleList: typeof _default_17 & {
1793
1942
  install: typeof bubbleListInstall;
1794
1943
  };
1795
1944
  export { BubbleList }
@@ -1805,37 +1954,71 @@ export declare interface BubbleListProps {
1805
1954
  * 每个角色的默认配置项
1806
1955
  */
1807
1956
  roles?: Record<string, BubbleRoleConfig>;
1957
+ /**
1958
+ * 列表是否加载中
1959
+ */
1960
+ loading?: boolean;
1961
+ /**
1962
+ * 指定哪个角色可以有加载中状态
1963
+ */
1964
+ loadingRole?: string;
1808
1965
  autoScroll?: boolean;
1809
1966
  }
1810
1967
 
1811
- export declare type BubblePalcement = 'start' | 'end';
1968
+ export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1969
+ readonly mdConfig: Options;
1970
+ readonly dompurifyConfig: Config & {
1971
+ disable?: boolean;
1972
+ };
1973
+ private md;
1974
+ constructor(mdConfig?: Options, dompurifyConfig?: Config & {
1975
+ disable?: boolean;
1976
+ });
1977
+ render(options: {
1978
+ content?: string;
1979
+ }): VNode<RendererNode, RendererElement, {
1980
+ [key: string]: any;
1981
+ }>;
1982
+ }
1983
+
1984
+ export declare abstract class BubbleMessageClassRenderer {
1985
+ abstract render(options: {
1986
+ [key: string]: any;
1987
+ }): VNode;
1988
+ }
1989
+
1990
+ export declare type BubbleMessageFunctionRenderer = (options: {
1991
+ [key: string]: any;
1992
+ }) => VNode;
1993
+
1994
+ export declare interface BubbleMessageProps {
1995
+ type: string;
1996
+ [key: string]: any;
1997
+ }
1998
+
1999
+ export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component;
1812
2000
 
1813
- export declare interface BubbleProps {
2001
+ export declare interface BubbleProps extends BubbleCommonProps {
1814
2002
  /**
1815
2003
  * 气泡内容
1816
2004
  */
1817
2005
  content?: string;
2006
+ messages?: BubbleMessageProps[];
1818
2007
  id?: string | number | symbol;
1819
- /**
1820
- * 气泡位置
1821
- */
1822
- placement?: BubblePalcement;
1823
- avatar?: VNode;
1824
2008
  role?: string;
1825
- /**
1826
- * 内容类型
1827
- */
1828
- type?: 'text' | 'markdown';
1829
2009
  loading?: boolean;
1830
2010
  aborted?: boolean;
1831
- /**
1832
- * type 为 'markdown' 时,markdown 的配置项
1833
- */
1834
- mdConfig?: Options;
1835
- maxWidth?: string | number;
1836
2011
  }
1837
2012
 
1838
- export declare type BubbleRoleConfig = Pick<BubbleProps, 'placement' | 'avatar' | 'type' | 'mdConfig' | 'maxWidth'> & {
2013
+ declare const BubbleProvider: typeof _default_18 & {
2014
+ install: typeof bubbleProviderInstall;
2015
+ };
2016
+ export { BubbleProvider }
2017
+ export { BubbleProvider as TrBubbleProvider }
2018
+
2019
+ declare const bubbleProviderInstall: (app: App) => void;
2020
+
2021
+ export declare type BubbleRoleConfig = BubbleCommonProps & {
1839
2022
  slots?: BubbleSlots;
1840
2023
  };
1841
2024
 
@@ -1851,6 +2034,11 @@ export declare interface BubbleSlots {
1851
2034
  }) => unknown;
1852
2035
  }
1853
2036
 
2037
+ export declare interface ButtonGroupConfig {
2038
+ file?: ControlState & fileUploadConfig;
2039
+ submit?: ControlState;
2040
+ }
2041
+
1854
2042
  export declare interface ContainerProps {
1855
2043
  /**
1856
2044
  * model:show
@@ -1869,114 +2057,284 @@ export declare interface ContainerSlots {
1869
2057
  footer: () => unknown;
1870
2058
  }
1871
2059
 
2060
+ export declare interface ControlState {
2061
+ tooltips?: string | TooltipRender;
2062
+ disabled?: boolean;
2063
+ }
2064
+
2065
+ export declare interface CreatePluginDialogEmits {
2066
+ (e: 'update:visible', value: boolean): void;
2067
+ (e: 'confirm', data: AddPluginCodeData): void;
2068
+ (e: 'cancel'): void;
2069
+ }
2070
+
2071
+ export declare interface CreatePluginDialogProps {
2072
+ visible: boolean;
2073
+ title?: string;
2074
+ }
2075
+
1872
2076
  declare const _default: {
1873
2077
  install<T>(app: App<T>): void;
1874
2078
  };
1875
2079
  export default _default;
1876
2080
 
1877
- declare const _default_10: typeof _default_24 & {
2081
+ declare const _default_10: typeof _default_27 & {
1878
2082
  install: typeof install_8;
1879
2083
  };
1880
- export { _default_10 as SuggestionPopover }
1881
- export { _default_10 as TrSuggestionPopover }
2084
+ export { _default_10 as Sender }
2085
+ export { _default_10 as TrSender }
1882
2086
 
1883
- declare const _default_11: typeof _default_25 & {
2087
+ declare const _default_11: typeof _default_29 & {
1884
2088
  install: typeof install_9;
1885
2089
  };
1886
- export { _default_11 as TrWelcome }
1887
- export { _default_11 as Welcome }
2090
+ export { _default_11 as SuggestionPills }
2091
+ export { _default_11 as TrSuggestionPills }
2092
+
2093
+ declare const _default_12: typeof _default_30 & {
2094
+ install: typeof install_10;
2095
+ };
2096
+ export { _default_12 as SuggestionPopover }
2097
+ export { _default_12 as TrSuggestionPopover }
2098
+
2099
+ declare const _default_13: typeof _default_31 & {
2100
+ install: typeof install_11;
2101
+ };
2102
+ export { _default_13 as TrWelcome }
2103
+ export { _default_13 as Welcome }
2104
+
2105
+ declare const _default_14: typeof _default_32 & {
2106
+ install: typeof install_12;
2107
+ };
2108
+ export { _default_14 as McpServerPicker }
2109
+ export { _default_14 as TrMcpServerPicker }
2110
+
2111
+ declare const _default_15: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2112
+ "update:items": (items: Attachment[]) => any;
2113
+ remove: (file: Attachment) => any;
2114
+ download: (payload: {
2115
+ event: MouseEvent;
2116
+ file: Attachment;
2117
+ }) => any;
2118
+ retry: (file: Attachment) => any;
2119
+ preview: (file: Attachment) => any;
2120
+ action: (payload: {
2121
+ action: ActionButton;
2122
+ file: Attachment;
2123
+ }) => any;
2124
+ }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2125
+ "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2126
+ onRemove?: ((file: Attachment) => any) | undefined;
2127
+ onDownload?: ((payload: {
2128
+ event: MouseEvent;
2129
+ file: Attachment;
2130
+ }) => any) | undefined;
2131
+ onRetry?: ((file: Attachment) => any) | undefined;
2132
+ onPreview?: ((file: Attachment) => any) | undefined;
2133
+ onAction?: ((payload: {
2134
+ action: ActionButton;
2135
+ file: Attachment;
2136
+ }) => any) | undefined;
2137
+ }>, {
2138
+ actions: ActionButton[];
2139
+ fileMatchers: FileTypeMatcher_2[];
2140
+ variant: DisplayVariant_2;
2141
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1888
2142
 
1889
- declare const _default_12: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2143
+ declare const _default_16: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
1890
2144
 
1891
- declare const _default_13: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2145
+ declare const _default_17: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
1892
2146
  scrollContainerRef: HTMLDivElement;
1893
2147
  }, HTMLDivElement>;
1894
2148
 
1895
- declare const _default_14: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2149
+ declare const _default_18: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2150
+
2151
+ declare const _default_19: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
1896
2152
 
1897
- declare const _default_15: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2153
+ declare const _default_2: typeof _default_15 & {
2154
+ install: typeof install;
2155
+ };
2156
+ export { _default_2 as Attachments }
2157
+ export { _default_2 as TrAttachments }
1898
2158
 
1899
- declare const _default_16: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2159
+ declare const _default_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1900
2160
 
1901
- declare const _default_17: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1902
- operation: (name: string) => any;
2161
+ declare const _default_21: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2162
+
2163
+ declare const _default_22: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2164
+
2165
+ declare const _default_23: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1903
2166
  action: (name: string) => any;
2167
+ operation: (name: string) => any;
1904
2168
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
1905
- onOperation?: ((name: string) => any) | undefined;
1906
2169
  onAction?: ((name: string) => any) | undefined;
2170
+ onOperation?: ((name: string) => any) | undefined;
1907
2171
  }>, {
1908
2172
  operationsLimit: number;
1909
2173
  actionsLimit: number;
1910
2174
  sourcesLinesLimit: number;
1911
2175
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1912
2176
 
1913
- declare const _default_18: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2177
+ declare const _default_24: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
1914
2178
  size: string | number;
1915
2179
  svgSize: string | number;
1916
2180
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
1917
2181
 
1918
- declare const _default_19: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1919
-
1920
- declare const _default_2: typeof _default_14 & {
1921
- install: typeof install;
1922
- };
1923
- export { _default_2 as Container }
1924
- export { _default_2 as TrContainer }
1925
-
1926
- declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2182
+ declare const _default_25: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1927
2183
 
1928
- declare const _default_21: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2184
+ declare const _default_26: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
1929
2185
 
1930
- declare const _default_22: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2186
+ declare const _default_27: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
1931
2187
 
1932
- declare const _default_23: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2188
+ declare const _default_28: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
1933
2189
 
1934
- declare const _default_24: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2190
+ declare const _default_29: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1935
2191
 
1936
- declare const _default_25: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
1937
-
1938
- declare const _default_3: typeof _default_15 & {
2192
+ declare const _default_3: typeof _default_19 & {
1939
2193
  install: typeof install_2;
1940
2194
  };
1941
- export { _default_3 as Conversations }
1942
- export { _default_3 as TrConversations }
2195
+ export { _default_3 as Container }
2196
+ export { _default_3 as TrContainer }
2197
+
2198
+ declare const _default_30: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
1943
2199
 
1944
- declare const _default_4: typeof _default_16 & {
2200
+ declare const _default_31: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2201
+
2202
+ declare const _default_32: DefineComponent<McpServerPickerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2203
+ [x: string]: any;
2204
+ } & {
2205
+ [x: string]: any;
2206
+ }, string, PublicProps, Readonly<McpServerPickerProps> & Readonly<{
2207
+ [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
2208
+ }>, {
2209
+ title: string;
2210
+ loading: boolean;
2211
+ visible: boolean;
2212
+ searchPlaceholder: string;
2213
+ enableParentChildSync: boolean;
2214
+ installedPlugins: PluginInfo[];
2215
+ marketPlugins: PluginInfo[];
2216
+ enableSearch: boolean;
2217
+ marketCategoryOptions: MarketCategoryOption_2[];
2218
+ marketCategoryPlaceholder: string;
2219
+ enableMarketCategoryFilter: boolean;
2220
+ defaultActiveTab: "installed" | "market";
2221
+ showInstalledTab: boolean;
2222
+ showMarketTab: boolean;
2223
+ popupConfig: PopupConfig;
2224
+ installedTabTitle: string;
2225
+ marketTabTitle: string;
2226
+ showCustomAddButton: boolean;
2227
+ customAddButtonText: string;
2228
+ allowPluginToggle: boolean;
2229
+ allowToolToggle: boolean;
2230
+ allowPluginDelete: boolean;
2231
+ allowPluginAdd: boolean;
2232
+ marketLoading: boolean;
2233
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2234
+
2235
+ declare const _default_4: typeof _default_20 & {
1945
2236
  install: typeof install_3;
1946
2237
  };
1947
- export { _default_4 as DropdownMenu }
1948
- export { _default_4 as TrDropdownMenu }
2238
+ export { _default_4 as Conversations }
2239
+ export { _default_4 as TrConversations }
1949
2240
 
1950
- declare const _default_5: typeof _default_17 & {
2241
+ declare const _default_5: typeof _default_21 & {
1951
2242
  install: typeof install_4;
1952
2243
  };
1953
- export { _default_5 as Feedback }
1954
- export { _default_5 as TrFeedback }
1955
-
1956
- declare const _default_6: {
1957
- install: <T>(app: App<T>) => void;
1958
- name: string;
1959
- };
1960
- export { _default_6 as History }
1961
- export { _default_6 as TrHistory }
2244
+ export { _default_5 as DragOverlay }
2245
+ export { _default_5 as TrDragOverlay }
1962
2246
 
1963
- declare const _default_7: typeof _default_18 & {
2247
+ declare const _default_6: typeof _default_22 & {
1964
2248
  install: typeof install_5;
1965
2249
  };
1966
- export { _default_7 as IconButton }
1967
- export { _default_7 as TrIconButton }
2250
+ export { _default_6 as DropdownMenu }
2251
+ export { _default_6 as TrDropdownMenu }
1968
2252
 
1969
- declare const _default_8: typeof _default_21 & {
2253
+ declare const _default_7: typeof _default_23 & {
1970
2254
  install: typeof install_6;
1971
2255
  };
1972
- export { _default_8 as Sender }
1973
- export { _default_8 as TrSender }
2256
+ export { _default_7 as Feedback }
2257
+ export { _default_7 as TrFeedback }
2258
+
2259
+ declare const _default_8: {
2260
+ install: <T>(app: App<T>) => void;
2261
+ name: string;
2262
+ };
2263
+ export { _default_8 as History }
2264
+ export { _default_8 as TrHistory }
1974
2265
 
1975
- declare const _default_9: typeof _default_23 & {
2266
+ declare const _default_9: typeof _default_24 & {
1976
2267
  install: typeof install_7;
1977
2268
  };
1978
- export { _default_9 as SuggestionPills }
1979
- export { _default_9 as TrSuggestionPills }
2269
+ export { _default_9 as IconButton }
2270
+ export { _default_9 as TrIconButton }
2271
+
2272
+ export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2273
+
2274
+ declare interface DragAwareElement extends HTMLElement {
2275
+ __vDropzoneHandlers__?: Handlers;
2276
+ __vDropzoneOptions__?: DragAwareOptions;
2277
+ }
2278
+
2279
+ declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2280
+
2281
+ /**
2282
+ * 拖拽上传组件的属性
2283
+ */
2284
+ export declare interface DragOverlayProps {
2285
+ /**
2286
+ * 覆盖层标题
2287
+ * @default ''
2288
+ */
2289
+ overlayTitle?: string;
2290
+ /**
2291
+ * 覆盖层描述文本数组
2292
+ * @default []
2293
+ */
2294
+ overlayDescription?: string[];
2295
+ /**
2296
+ * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2297
+ * @default false
2298
+ */
2299
+ isDragging?: boolean;
2300
+ /**
2301
+ * @description 拖拽目标元素,用于定位覆盖层
2302
+ * @default null
2303
+ */
2304
+ dragTarget?: HTMLElement | null;
2305
+ /**
2306
+ * @description 是否全屏模式,控制覆盖层的边框显示
2307
+ * @default false
2308
+ */
2309
+ fullscreen?: boolean;
2310
+ }
2311
+
2312
+ export declare interface DragOverlaySlots {
2313
+ /**
2314
+ * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2315
+ */
2316
+ overlay?: (props: {
2317
+ isDragging: boolean;
2318
+ }) => unknown;
2319
+ }
2320
+
2321
+ /**
2322
+ * 拖拽区域错误码
2323
+ */
2324
+ declare enum DragZoneErrorCode {
2325
+ /**
2326
+ * 文件类型不允许
2327
+ */
2328
+ FileTypeNotAllowed = "file-type-not-allowed",
2329
+ /**
2330
+ * 文件大小超出限制
2331
+ */
2332
+ FileSizeExceeded = "file-size-exceeded",
2333
+ /**
2334
+ * 文件数量超出限制
2335
+ */
2336
+ FileCountExceeded = "file-count-exceeded"
2337
+ }
1980
2338
 
1981
2339
  export declare interface DropdownMenuEmits {
1982
2340
  (e: 'item-click', item: DropdownMenuItem): void;
@@ -2025,6 +2383,54 @@ export declare interface DropdownMenuSlots {
2025
2383
  trigger?: () => VNode | VNode[];
2026
2384
  }
2027
2385
 
2386
+ /**
2387
+ * 拖拽上传组件的属性
2388
+ */
2389
+ export declare interface DropzoneBinding {
2390
+ /**
2391
+ * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2392
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2393
+ * @example '.jpg,.png,image/*'
2394
+ */
2395
+ accept?: string;
2396
+ /**
2397
+ * 是否允许多选
2398
+ * @default true
2399
+ */
2400
+ multiple?: boolean;
2401
+ /**
2402
+ * 是否禁用拖拽
2403
+ * @default false
2404
+ */
2405
+ disabled?: boolean;
2406
+ /**
2407
+ * 单个文件的最大大小(单位:字节)
2408
+ * @default 10 * 1024 * 1024 (10MB)
2409
+ */
2410
+ maxSize?: number;
2411
+ /**
2412
+ * 允许上传的最大文件数量
2413
+ * @default 3
2414
+ */
2415
+ maxFiles?: number;
2416
+ /**
2417
+ * 拖拽完成后的回调
2418
+ * @param files 上传的文件
2419
+ */
2420
+ onDrop: (files: File[]) => void;
2421
+ /**
2422
+ * 拖拽失败后的回调
2423
+ * @param rejection 拒绝信息
2424
+ */
2425
+ onError: (rejection: FileRejection) => void;
2426
+ /**
2427
+ * 拖拽开始时的回调
2428
+ * @param dragging 是否正在拖拽
2429
+ * @param element 拖拽目标元素
2430
+ */
2431
+ onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2432
+ }
2433
+
2028
2434
  export declare interface FeedbackEvents {
2029
2435
  (e: 'operation', name: string): void;
2030
2436
  (e: 'action', name: string): void;
@@ -2051,6 +2457,57 @@ export declare interface FeedbackProps {
2051
2457
  sourcesLinesLimit?: number;
2052
2458
  }
2053
2459
 
2460
+ export declare interface FileCardEmits {
2461
+ (e: 'remove', file: Attachment): void;
2462
+ (e: 'preview', file: Attachment): void;
2463
+ (e: 'download', payload: {
2464
+ event: MouseEvent;
2465
+ file: Attachment;
2466
+ }): void;
2467
+ (e: 'retry', file: Attachment): void;
2468
+ (e: 'action', payload: {
2469
+ action: ActionButton;
2470
+ file: Attachment;
2471
+ }): void;
2472
+ }
2473
+
2474
+ export declare interface FileCardProps extends BaseCardProps {
2475
+ file: Attachment;
2476
+ variant: 'picture' | 'card';
2477
+ showStatus?: boolean;
2478
+ }
2479
+
2480
+ /**
2481
+ * 文件拒绝信息
2482
+ */
2483
+ export declare interface FileRejection {
2484
+ files: File[];
2485
+ code: DragZoneErrorCode;
2486
+ message: string;
2487
+ }
2488
+
2489
+ export declare type FileStatus = 'uploading' | 'success' | 'error';
2490
+
2491
+ export declare type FileType = BaseFileType | string;
2492
+
2493
+ export declare interface FileTypeMatcher {
2494
+ type: string;
2495
+ matcher: (file: File | string) => boolean;
2496
+ icon?: Component;
2497
+ }
2498
+
2499
+ declare interface fileUploadConfig {
2500
+ accept?: string;
2501
+ multiple?: boolean;
2502
+ }
2503
+
2504
+ export declare interface Handlers {
2505
+ handleDragEnter: (e: DragEvent) => void;
2506
+ handleDragOver: (e: DragEvent) => void;
2507
+ handleDragLeave: (e: DragEvent) => void;
2508
+ handleDrop: (e: DragEvent) => void;
2509
+ }
2510
+
2054
2511
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2055
2512
 
2056
2513
  export declare interface HistoryEvents {
@@ -2097,6 +2554,12 @@ export declare type InputMode = 'single' | 'multiple';
2097
2554
 
2098
2555
  declare const install: <T>(app: App<T>) => void;
2099
2556
 
2557
+ declare const install_10: <T>(app: App<T>) => void;
2558
+
2559
+ declare const install_11: <T>(app: App<T>) => void;
2560
+
2561
+ declare const install_12: <T>(app: App<T>) => void;
2562
+
2100
2563
  declare const install_2: <T>(app: App<T>) => void;
2101
2564
 
2102
2565
  declare const install_3: <T>(app: App<T>) => void;
@@ -2124,6 +2587,56 @@ export declare interface KeyboardHandler {
2124
2587
  triggerSubmit: () => void;
2125
2588
  }
2126
2589
 
2590
+ export declare interface MarketCategoryOption {
2591
+ value: string;
2592
+ label: string;
2593
+ }
2594
+
2595
+ export declare interface McpServerPickerEmits {
2596
+ (e: 'search', query: string, tab: 'installed' | 'market'): void;
2597
+ (e: 'market-category-change', category: string): void;
2598
+ (e: 'tab-change', activeTab: 'installed' | 'market'): void;
2599
+ (e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
2600
+ (e: 'plugin-delete', plugin: PluginInfo): void;
2601
+ (e: 'plugin-add', plugin: PluginInfo, added: boolean): void;
2602
+ (e: 'plugin-expand', plugin: PluginInfo, expanded: boolean): void;
2603
+ (e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
2604
+ (e: 'custom-add'): void;
2605
+ (e: 'plugin-form-add', data: AddPluginFormData): void;
2606
+ (e: 'plugin-code-add', data: AddPluginCodeData): void;
2607
+ (e: 'refresh', tab: 'installed' | 'market'): void;
2608
+ (e: 'update:activeCount', count: number): void;
2609
+ (e: 'update:visible', visible: boolean): void;
2610
+ }
2611
+
2612
+ export declare interface McpServerPickerProps {
2613
+ installedPlugins?: PluginInfo[];
2614
+ marketPlugins?: PluginInfo[];
2615
+ searchPlaceholder?: string;
2616
+ enableSearch?: boolean;
2617
+ marketCategoryOptions?: MarketCategoryOption[];
2618
+ marketCategoryPlaceholder?: string;
2619
+ enableMarketCategoryFilter?: boolean;
2620
+ defaultActiveTab?: 'installed' | 'market';
2621
+ showInstalledTab?: boolean;
2622
+ showMarketTab?: boolean;
2623
+ visible?: boolean;
2624
+ popupConfig?: PopupConfig;
2625
+ activeCount?: number;
2626
+ installedTabTitle?: string;
2627
+ marketTabTitle?: string;
2628
+ title?: string;
2629
+ showCustomAddButton?: boolean;
2630
+ customAddButtonText?: string;
2631
+ allowPluginToggle?: boolean;
2632
+ allowToolToggle?: boolean;
2633
+ allowPluginDelete?: boolean;
2634
+ allowPluginAdd?: boolean;
2635
+ enableParentChildSync?: boolean;
2636
+ loading?: boolean;
2637
+ marketLoading?: boolean;
2638
+ }
2639
+
2127
2640
  export declare type MultiTabHistoryProps = {
2128
2641
  tabs: {
2129
2642
  title: string;
@@ -2132,7 +2645,65 @@ export declare type MultiTabHistoryProps = {
2132
2645
  data: Record<string, HistoryData>;
2133
2646
  } & BaseHistoryProps;
2134
2647
 
2135
- declare const Prompt: typeof _default_19 & {
2648
+ export declare interface PluginCardEmits {
2649
+ (e: 'update:expanded', value: boolean): void;
2650
+ (e: 'toggle-expand'): void;
2651
+ (e: 'toggle-plugin', enabled: boolean): void;
2652
+ (e: 'toggle-tool', toolId: string, enabled: boolean): void;
2653
+ (e: 'add-plugin', added: boolean): void;
2654
+ (e: 'delete-plugin'): void;
2655
+ }
2656
+
2657
+ export declare type PluginCardMode = 'installed' | 'market';
2658
+
2659
+ export declare interface PluginCardProps {
2660
+ plugin: PluginInfo;
2661
+ mode?: PluginCardMode;
2662
+ expandable?: boolean;
2663
+ expanded?: boolean;
2664
+ showToolCount?: boolean;
2665
+ enableParentChildSync?: boolean;
2666
+ }
2667
+
2668
+ export declare interface PluginDialogState {
2669
+ codeEditor: boolean;
2670
+ formEditor: boolean;
2671
+ }
2672
+
2673
+ export declare interface PluginInfo {
2674
+ id: string;
2675
+ name: string;
2676
+ icon: string;
2677
+ description: string;
2678
+ toolCount?: number;
2679
+ enabled?: boolean;
2680
+ expanded?: boolean;
2681
+ tools?: PluginTool[];
2682
+ added?: boolean;
2683
+ category?: string;
2684
+ }
2685
+
2686
+ export declare interface PluginTool {
2687
+ id: string;
2688
+ name: string;
2689
+ description: string;
2690
+ enabled: boolean;
2691
+ }
2692
+
2693
+ export declare interface PopupConfig {
2694
+ type: 'fixed' | 'drawer';
2695
+ position?: {
2696
+ top?: string | number;
2697
+ left?: string | number;
2698
+ right?: string | number;
2699
+ bottom?: string | number;
2700
+ };
2701
+ drawer?: {
2702
+ direction: 'left' | 'right';
2703
+ };
2704
+ }
2705
+
2706
+ declare const Prompt: typeof _default_25 & {
2136
2707
  install: typeof installPrompt;
2137
2708
  };
2138
2709
  export { Prompt }
@@ -2165,7 +2736,7 @@ export declare interface PromptProps {
2165
2736
  badge?: string | VNode;
2166
2737
  }
2167
2738
 
2168
- declare const Prompts: typeof _default_20 & {
2739
+ declare const Prompts: typeof _default_26 & {
2169
2740
  install: typeof installPrompts;
2170
2741
  };
2171
2742
  export { Prompts }
@@ -2217,6 +2788,7 @@ export declare type SenderEmits = {
2217
2788
  (e: 'escape-press'): void;
2218
2789
  (e: 'cancel'): void;
2219
2790
  (e: 'reset-template'): void;
2791
+ (e: 'files-selected', files: File[]): void;
2220
2792
  };
2221
2793
 
2222
2794
  export declare interface SenderProps {
@@ -2231,6 +2803,7 @@ export declare interface SenderProps {
2231
2803
  modelValue?: string;
2232
2804
  mode?: InputMode;
2233
2805
  maxLength?: number;
2806
+ buttonGroup?: ButtonGroupConfig;
2234
2807
  submitType?: SubmitTrigger;
2235
2808
  speech?: boolean | SpeechConfig;
2236
2809
  placeholder?: string;
@@ -2292,7 +2865,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2292
2865
 
2293
2866
  export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2294
2867
 
2295
- declare const SuggestionPillButton: typeof _default_22 & {
2868
+ declare const SuggestionPillButton: typeof _default_28 & {
2296
2869
  install: typeof installPillButton;
2297
2870
  };
2298
2871
  export { SuggestionPillButton }
@@ -2440,12 +3013,21 @@ declare interface TextItem extends BaseTextItem {
2440
3013
  */
2441
3014
  export declare type ThemeType = 'light' | 'dark';
2442
3015
 
3016
+ export declare type TooltipRender = () => VNode | string;
3017
+
2443
3018
  export declare type UserItem = UserTextItem | UserTemplateItem;
2444
3019
 
2445
3020
  export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'>;
2446
3021
 
2447
3022
  export declare type UserTextItem = Omit<TextItem, 'id'>;
2448
3023
 
3024
+ /**
3025
+ * 拖拽区域指令
3026
+ * @param el 元素
3027
+ * @param binding 绑定
3028
+ */
3029
+ export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
3030
+
2449
3031
  export declare interface WelcomeProps {
2450
3032
  title: string;
2451
3033
  description: string;