@opentiny/tiny-robot 0.3.0-alpha.2 → 0.3.0-alpha.20

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,7 @@
1
1
  import { AllowedComponentProps } from 'vue';
2
2
  import { App } from 'vue';
3
3
  import { AutoSize as AutoSize_2 } from './index.type';
4
- import { ChainItem } from './chain.vue';
4
+ import { BubbleContentItem as BubbleContentItem_2 } from './renderers';
5
5
  import { Component } from 'vue';
6
6
  import { ComponentCustomProperties } from 'vue';
7
7
  import { ComponentCustomProps } from 'vue';
@@ -10,16 +10,21 @@ import { ComponentOptionsBase } from 'vue';
10
10
  import { ComponentOptionsMixin } from 'vue';
11
11
  import { ComponentProvideOptions } from 'vue';
12
12
  import { ComponentPublicInstance } from 'vue';
13
+ import { ComputedRef } from 'vue';
13
14
  import { Config } from 'dompurify';
14
15
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
15
16
  import { CSSProperties } from 'vue';
16
17
  import { DebuggerEvent } from 'vue';
17
- import { default as default_2 } from 'markdown-it';
18
18
  import { DefineComponent } from 'vue';
19
+ import { Directive } from 'vue';
20
+ import { DisplayVariant as DisplayVariant_2 } from './index.type';
19
21
  import { ExtractPropTypes } from 'vue';
22
+ import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
20
23
  import { GlobalComponents } from 'vue';
21
24
  import { GlobalDirectives } from 'vue';
22
25
  import { InputMode as InputMode_2 } from './index.type';
26
+ import { ISuggestionItem as ISuggestionItem_2 } from './index.type';
27
+ import { MarketCategoryOption as MarketCategoryOption_2 } from './index.type';
23
28
  import { nextTick } from 'vue';
24
29
  import { OnCleanup } from '@vue/reactivity';
25
30
  import { Options } from 'markdown-it';
@@ -28,72 +33,139 @@ import { PublicProps } from 'vue';
28
33
  import { Ref } from 'vue';
29
34
  import { RendererElement } from 'vue';
30
35
  import { RendererNode } from 'vue';
31
- import { SetTemplateParams as SetTemplateParams_2 } from './index.type';
32
36
  import { ShallowUnwrapRef } from 'vue';
33
37
  import { Slot } from 'vue';
34
38
  import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
35
- import { TemplateEditorProps as TemplateEditorProps_2 } from './index.type';
36
39
  import { ThemeType as ThemeType_2 } from './index.type';
37
40
  import { TooltipContentProps } from './components/Tooltip.vue';
41
+ import { TransitionProps } from 'vue';
38
42
  import { VNode } from 'vue';
39
43
  import { VNodeProps } from 'vue';
40
44
  import { WatchOptions } from 'vue';
41
45
  import { WatchStopHandle } from 'vue';
42
46
 
43
47
  declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
44
- content: string;
48
+ content: string | BubbleContentItem_2[];
45
49
  placement: "start" | "end";
46
50
  shape: "rounded" | "corner";
47
- maxWidth: string | number;
51
+ abortedText: string;
48
52
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
49
53
 
50
- declare const __VLS_component_10: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
51
-
52
- declare const __VLS_component_11: DefineComponent<QuestionProps, {
53
- openModal: () => void;
54
- closeModal: () => void;
55
- toggleFloating: () => void;
56
- setActiveCategory: (categoryId: string) => void;
57
- refreshData: () => Promise<void>;
54
+ declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {
55
+ update: () => void;
58
56
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
59
- "question-click": (question: Question_2) => any;
60
- "select-category": (category: Category_2) => any;
61
- }, string, PublicProps, Readonly<QuestionProps> & Readonly<{
62
- "onQuestion-click"?: ((question: Question_2) => any) | undefined;
63
- "onSelect-category"?: ((category: Category_2) => any) | undefined;
64
- }>, {
65
- loading: boolean;
66
- categories: Category_2[];
67
- modalWidth: string;
68
- closeOnClickOutside: boolean;
69
- commonQuestions: Question_2[];
70
- initialExpanded: boolean;
71
- theme: ThemeType_2;
72
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
73
-
74
- declare const __VLS_component_12: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
75
57
  "update:selectedGroup": (value: string) => any;
76
58
  } & {
77
59
  close: () => any;
78
60
  open: () => any;
79
- "item-click": (item: SuggestionItem_2<Record<string, unknown>>) => any;
61
+ "item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
62
+ "click-outside": (event: MouseEvent) => any;
80
63
  "group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
81
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
64
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
82
65
  onClose?: (() => any) | undefined;
83
66
  onOpen?: (() => any) | undefined;
84
- "onItem-click"?: ((item: SuggestionItem_2<Record<string, unknown>>) => any) | undefined;
67
+ "onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
68
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
85
69
  "onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
86
70
  "onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
87
71
  }>, {
88
72
  title: string;
89
- topOffset: string | number;
90
73
  trigger: "click" | "manual";
91
74
  groupShowMoreTrigger: "click" | "hover";
92
- popoverWidth: string | number;
93
- popoverHeight: string | number;
75
+ topOffset: number;
94
76
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
95
- popoverTriggerRef: HTMLDivElement;
96
- popoverRef: HTMLDivElement;
77
+ basePopperRef: ({
78
+ $: ComponentInternalInstance;
79
+ $data: {};
80
+ $props: {
81
+ readonly appendTo?: (string | HTMLElement) | undefined;
82
+ readonly offset?: number | {
83
+ mainAxis?: number;
84
+ crossAxis?: number;
85
+ } | undefined;
86
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
87
+ readonly preventOverflow?: boolean | undefined;
88
+ readonly show?: boolean | undefined;
89
+ readonly transitionProps?: TransitionProps | undefined;
90
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
91
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
92
+ $attrs: {
93
+ [x: string]: unknown;
94
+ };
95
+ $refs: {
96
+ [x: string]: unknown;
97
+ };
98
+ $slots: Readonly<{
99
+ [name: string]: Slot<any> | undefined;
100
+ }>;
101
+ $root: ComponentPublicInstance | null;
102
+ $parent: ComponentPublicInstance | null;
103
+ $host: Element | null;
104
+ $emit: (event: string, ...args: any[]) => void;
105
+ $el: any;
106
+ $options: ComponentOptionsBase<Readonly<{
107
+ appendTo?: string | HTMLElement;
108
+ offset?: number | {
109
+ mainAxis?: number;
110
+ crossAxis?: number;
111
+ };
112
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
113
+ preventOverflow?: boolean;
114
+ show?: boolean;
115
+ transitionProps?: TransitionProps;
116
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
117
+ }> & Readonly<{}>, {
118
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
119
+ popperRef: ComputedRef<HTMLDivElement | null>;
120
+ update: () => void;
121
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
122
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
123
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
124
+ beforeCreate?: (() => void) | (() => void)[];
125
+ created?: (() => void) | (() => void)[];
126
+ beforeMount?: (() => void) | (() => void)[];
127
+ mounted?: (() => void) | (() => void)[];
128
+ beforeUpdate?: (() => void) | (() => void)[];
129
+ updated?: (() => void) | (() => void)[];
130
+ activated?: (() => void) | (() => void)[];
131
+ deactivated?: (() => void) | (() => void)[];
132
+ beforeDestroy?: (() => void) | (() => void)[];
133
+ beforeUnmount?: (() => void) | (() => void)[];
134
+ destroyed?: (() => void) | (() => void)[];
135
+ unmounted?: (() => void) | (() => void)[];
136
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
137
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
138
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
139
+ };
140
+ $forceUpdate: () => void;
141
+ $nextTick: nextTick;
142
+ $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;
143
+ } & Readonly<{
144
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
145
+ }> & Omit<Readonly<{
146
+ appendTo?: string | HTMLElement;
147
+ offset?: number | {
148
+ mainAxis?: number;
149
+ crossAxis?: number;
150
+ };
151
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
152
+ preventOverflow?: boolean;
153
+ show?: boolean;
154
+ transitionProps?: TransitionProps;
155
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
156
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
157
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
158
+ popperRef: ComputedRef<HTMLDivElement | null>;
159
+ update: () => void;
160
+ }> & {} & ComponentCustomProperties & {} & {
161
+ $slots: Readonly<{
162
+ trigger?: () => VNode[];
163
+ content?: () => VNode[];
164
+ }> & {
165
+ trigger?: () => VNode[];
166
+ content?: () => VNode[];
167
+ };
168
+ }) | null;
97
169
  listRef: HTMLUListElement;
98
170
  tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
99
171
  show?: TooltipContentProps["show"];
@@ -115,37 +187,155 @@ show?: TooltipContentProps["show"];
115
187
  }>, {}, {}, {}, {}, {}> | null;
116
188
  }, any>;
117
189
 
190
+ declare const __VLS_component_11: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
191
+ "update:theme": (value: string) => any;
192
+ "update:colorMode": (value: ColorMode) => any;
193
+ }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
194
+ "onUpdate:theme"?: ((value: string) => any) | undefined;
195
+ "onUpdate:colorMode"?: ((value: ColorMode) => any) | undefined;
196
+ }>, {
197
+ targetElement: string;
198
+ storageKey: string;
199
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
200
+
201
+ declare const __VLS_component_12: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
202
+ align: "left" | "center" | "right" | string;
203
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
204
+
118
205
  declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
119
- messageRenderers: Record<string, BubbleMessageRenderer>;
206
+ contentRenderers: Record<string, BubbleContentRenderer>;
120
207
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
121
208
 
122
209
  declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
123
210
  "update:show": (value: boolean) => any;
124
211
  "update:fullscreen": (value: boolean | undefined) => any;
212
+ } & {
213
+ close: () => any;
125
214
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
215
+ onClose?: (() => any) | undefined;
126
216
  "onUpdate:show"?: ((value: boolean) => any) | undefined;
127
217
  "onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
128
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
218
+ }>, {
219
+ title: string;
220
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
129
221
 
130
- declare const __VLS_component_4: DefineComponent<DropdownMenuProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
222
+ declare const __VLS_component_4: DefineComponent<DragOverlayProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DragOverlayProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
223
+
224
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_2, {
225
+ update: () => void;
226
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
227
+ "update:show": (value: boolean) => any;
228
+ } & {
131
229
  "item-click": (item: DropdownMenuItem) => any;
132
- }, string, PublicProps, Readonly<DropdownMenuProps> & Readonly<{
230
+ "click-outside": (event: MouseEvent) => any;
231
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
232
+ "onUpdate:show"?: ((value: boolean) => any) | undefined;
133
233
  "onItem-click"?: ((item: DropdownMenuItem) => any) | undefined;
234
+ "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
134
235
  }>, {
135
- minWidth: string | number;
136
- topOffset: string | number;
236
+ trigger: "click" | "hover" | "manual";
137
237
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
138
- dropDownTriggerRef: HTMLDivElement;
139
- dropdownMenuRef: HTMLDivElement;
238
+ basePopperRef: ({
239
+ $: ComponentInternalInstance;
240
+ $data: {};
241
+ $props: {
242
+ readonly appendTo?: (string | HTMLElement) | undefined;
243
+ readonly offset?: number | {
244
+ mainAxis?: number;
245
+ crossAxis?: number;
246
+ } | undefined;
247
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
248
+ readonly preventOverflow?: boolean | undefined;
249
+ readonly show?: boolean | undefined;
250
+ readonly transitionProps?: TransitionProps | undefined;
251
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
252
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
253
+ $attrs: {
254
+ [x: string]: unknown;
255
+ };
256
+ $refs: {
257
+ [x: string]: unknown;
258
+ };
259
+ $slots: Readonly<{
260
+ [name: string]: Slot<any> | undefined;
261
+ }>;
262
+ $root: ComponentPublicInstance | null;
263
+ $parent: ComponentPublicInstance | null;
264
+ $host: Element | null;
265
+ $emit: (event: string, ...args: any[]) => void;
266
+ $el: any;
267
+ $options: ComponentOptionsBase<Readonly<{
268
+ appendTo?: string | HTMLElement;
269
+ offset?: number | {
270
+ mainAxis?: number;
271
+ crossAxis?: number;
272
+ };
273
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
274
+ preventOverflow?: boolean;
275
+ show?: boolean;
276
+ transitionProps?: TransitionProps;
277
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
278
+ }> & Readonly<{}>, {
279
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
280
+ popperRef: ComputedRef<HTMLDivElement | null>;
281
+ update: () => void;
282
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
283
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
284
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
285
+ beforeCreate?: (() => void) | (() => void)[];
286
+ created?: (() => void) | (() => void)[];
287
+ beforeMount?: (() => void) | (() => void)[];
288
+ mounted?: (() => void) | (() => void)[];
289
+ beforeUpdate?: (() => void) | (() => void)[];
290
+ updated?: (() => void) | (() => void)[];
291
+ activated?: (() => void) | (() => void)[];
292
+ deactivated?: (() => void) | (() => void)[];
293
+ beforeDestroy?: (() => void) | (() => void)[];
294
+ beforeUnmount?: (() => void) | (() => void)[];
295
+ destroyed?: (() => void) | (() => void)[];
296
+ unmounted?: (() => void) | (() => void)[];
297
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
298
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
299
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
300
+ };
301
+ $forceUpdate: () => void;
302
+ $nextTick: nextTick;
303
+ $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;
304
+ } & Readonly<{
305
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
306
+ }> & Omit<Readonly<{
307
+ appendTo?: string | HTMLElement;
308
+ offset?: number | {
309
+ mainAxis?: number;
310
+ crossAxis?: number;
311
+ };
312
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
313
+ preventOverflow?: boolean;
314
+ show?: boolean;
315
+ transitionProps?: TransitionProps;
316
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
317
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
318
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
319
+ popperRef: ComputedRef<HTMLDivElement | null>;
320
+ update: () => void;
321
+ }> & {} & ComponentCustomProperties & {} & {
322
+ $slots: Readonly<{
323
+ trigger?: () => VNode[];
324
+ content?: () => VNode[];
325
+ }> & {
326
+ trigger?: () => VNode[];
327
+ content?: () => VNode[];
328
+ };
329
+ }) | null;
140
330
  }, any>;
141
331
 
142
- declare const __VLS_component_5: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
332
+ declare const __VLS_component_6: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
143
333
  "item-click": (ev: MouseEvent, item: PromptProps) => any;
144
334
  }, string, PublicProps, Readonly<PromptsProps> & Readonly<{
145
335
  "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
146
336
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
147
337
 
148
- declare const __VLS_component_6: DefineComponent<SenderProps, {
338
+ declare const __VLS_component_7: DefineComponent<SenderProps, {
149
339
  focus: () => void;
150
340
  blur: () => void;
151
341
  clear: () => void;
@@ -153,63 +343,74 @@ submit: () => void;
153
343
  startSpeech: () => void;
154
344
  stopSpeech: () => void;
155
345
  activateTemplateFirstField: () => void;
156
- setTemplate: (template: string, initialValues?: Record<string, string>) => void;
157
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
158
- [x: string]: any;
159
- } & {
160
- [x: string]: any;
346
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
347
+ clear: () => any;
348
+ blur: (event: FocusEvent) => any;
349
+ cancel: () => any;
350
+ focus: (event: FocusEvent) => any;
351
+ submit: (value: string) => any;
352
+ "update:modelValue": (value: string) => any;
353
+ "update:templateData": (value: UserItem[]) => any;
354
+ "speech-start": () => any;
355
+ "speech-end": (transcript?: string | undefined) => any;
356
+ "speech-interim": (transcript: string) => any;
357
+ "speech-error": (error: Error) => any;
358
+ "suggestion-select": (value: string) => any;
359
+ "escape-press": () => any;
360
+ "reset-template": () => any;
361
+ "files-selected": (files: File[]) => any;
161
362
  }, string, PublicProps, Readonly<SenderProps> & Readonly<{
162
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
363
+ onClear?: (() => any) | undefined;
364
+ onBlur?: ((event: FocusEvent) => any) | undefined;
365
+ onCancel?: (() => any) | undefined;
366
+ onFocus?: ((event: FocusEvent) => any) | undefined;
367
+ onSubmit?: ((value: string) => any) | undefined;
368
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
369
+ "onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
370
+ "onSpeech-start"?: (() => any) | undefined;
371
+ "onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
372
+ "onSpeech-interim"?: ((transcript: string) => any) | undefined;
373
+ "onSpeech-error"?: ((error: Error) => any) | undefined;
374
+ "onSuggestion-select"?: ((value: string) => any) | undefined;
375
+ "onEscape-press"?: (() => any) | undefined;
376
+ "onReset-template"?: (() => any) | undefined;
377
+ "onFiles-selected"?: ((files: File[]) => any) | undefined;
163
378
  }>, {
164
- template: string;
165
- mode: InputMode_2;
166
- loading: boolean;
167
379
  disabled: boolean;
168
380
  modelValue: string;
381
+ placeholder: string;
382
+ mode: InputMode_2;
383
+ loading: boolean;
169
384
  autofocus: boolean;
170
385
  clearable: boolean;
171
386
  showWordLimit: boolean;
172
- theme: ThemeType_2;
173
- placeholder: string;
174
- hasContent: boolean;
175
387
  allowSpeech: boolean;
176
388
  allowFiles: boolean;
177
389
  submitType: SubmitTrigger_2;
390
+ stopText: string;
391
+ suggestions: ISuggestionItem_2[];
178
392
  autoSize: AutoSize_2;
179
393
  maxLength: number;
180
- suggestions: string[];
181
394
  suggestionPopupWidth: string | number;
182
- templateInitialValues: Record<string, string>;
395
+ theme: ThemeType_2;
396
+ templateData: UserItem[];
183
397
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
184
398
  senderRef: HTMLDivElement;
185
399
  inputWrapperRef: HTMLDivElement;
186
400
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
187
- value?: string;
188
- } & TemplateEditorProps_2> & Readonly<{
189
- onBlur?: ((event: FocusEvent) => any) | undefined;
190
- onFocus?: ((event: FocusEvent) => any) | undefined;
191
- onInput?: ((value: string) => any) | undefined;
192
- onSubmit?: ((value: string) => any) | undefined;
193
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
194
- "onEmpty-content"?: (() => any) | undefined;
195
- "onUpdate:value"?: ((value: string) => any) | undefined;
401
+ modelValue?: UserItem[];
402
+ }> & Readonly<{
403
+ onSubmit?: (() => any) | undefined;
404
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
196
405
  }>, {
197
- focus: () => void;
198
- resetFields: () => void;
406
+ clearHistory: () => void;
199
407
  activateFirstField: () => void;
200
- getValueFromDOM: () => string;
201
- setTemplate: (params: SetTemplateParams_2) => void;
202
408
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
203
- "update:value": (value: string) => any;
409
+ "update:modelValue": (value: UserItem[]) => any;
204
410
  } & {
205
- blur: (event: FocusEvent) => any;
206
- focus: (event: FocusEvent) => any;
207
- input: (value: string) => any;
208
- submit: (value: string) => any;
209
- "content-status": (hasContent: boolean) => any;
210
- "empty-content": () => any;
411
+ submit: () => any;
211
412
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
212
- contentEditableRef: HTMLDivElement;
413
+ editorRef: HTMLDivElement;
213
414
  }, HTMLDivElement, ComponentProvideOptions, {
214
415
  P: {};
215
416
  B: {};
@@ -218,21 +419,13 @@ C: {};
218
419
  M: {};
219
420
  Defaults: {};
220
421
  }, Readonly<{
221
- value?: string;
222
- } & TemplateEditorProps_2> & Readonly<{
223
- onBlur?: ((event: FocusEvent) => any) | undefined;
224
- onFocus?: ((event: FocusEvent) => any) | undefined;
225
- onInput?: ((value: string) => any) | undefined;
226
- onSubmit?: ((value: string) => any) | undefined;
227
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
228
- "onEmpty-content"?: (() => any) | undefined;
229
- "onUpdate:value"?: ((value: string) => any) | undefined;
422
+ modelValue?: UserItem[];
423
+ }> & Readonly<{
424
+ onSubmit?: (() => any) | undefined;
425
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
230
426
  }>, {
231
- focus: () => void;
232
- resetFields: () => void;
427
+ clearHistory: () => void;
233
428
  activateFirstField: () => void;
234
- getValueFromDOM: () => string;
235
- setTemplate: (params: SetTemplateParams_2) => void;
236
429
  }, {}, {}, {}, {}> | null;
237
430
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
238
431
  _constants: {
@@ -685,222 +878,71 @@ showTooltip: boolean;
685
878
  inputBoxType: string;
686
879
  }> | null;
687
880
  buttonsContainerRef: HTMLDivElement;
688
- suggestionsListRef: HTMLDivElement;
689
881
  }, HTMLDivElement>;
690
882
 
691
- declare const __VLS_component_7: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
692
- align: "left" | "center" | "right" | string;
693
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
883
+ declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
694
884
 
695
- declare const __VLS_component_8: DefineComponent<SuggestionProps, {
696
- trigger: TriggerHandler;
697
- keyDown: (e: KeyboardEvent) => void;
698
- input: (event: Event, text: string) => boolean;
699
- toggleExpand: () => void;
700
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
701
- close: () => any;
702
- select: (value: string, context?: TriggerContext | undefined) => any;
703
- "suggestion-select": (item: SuggestionItem) => any;
704
- "update:open": (value: boolean) => any;
705
- trigger: (handler: TriggerHandler) => any;
706
- "category-select": (category: Category) => any;
707
- "update:expanded": (expanded: boolean) => any;
708
- "fill-template": (template: string) => any;
709
- }, string, PublicProps, Readonly<SuggestionProps> & Readonly<{
710
- onClose?: (() => any) | undefined;
711
- onSelect?: ((value: string, context?: TriggerContext | undefined) => any) | undefined;
712
- "onSuggestion-select"?: ((item: SuggestionItem) => any) | undefined;
713
- "onUpdate:open"?: ((value: boolean) => any) | undefined;
714
- onTrigger?: ((handler: TriggerHandler) => any) | undefined;
715
- "onCategory-select"?: ((category: Category) => any) | undefined;
716
- "onUpdate:expanded"?: ((expanded: boolean) => any) | undefined;
717
- "onFill-template"?: ((template: string) => any) | undefined;
718
- }>, {
719
- open: boolean;
720
- items: SuggestionItem[];
721
- title: string;
722
- loading: boolean;
723
- categories: Category[];
724
- theme: "light" | "dark";
725
- maxVisibleItems: number;
726
- triggerKeys: string[];
727
- closeOnOutsideClick: boolean;
728
- defaultExpanded: boolean;
729
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
730
- rootRef: HTMLDivElement;
731
- panelRef: ({
732
- $: ComponentInternalInstance;
733
- $data: {};
734
- $props: Partial<{
735
- title: string;
736
- loading: boolean;
737
- categories: Category[];
738
- maxVisibleItems: number;
739
- }> & Omit<{
740
- readonly items: SuggestionItem[];
741
- readonly title: string;
742
- readonly loading: boolean;
743
- readonly categories: Category[];
744
- readonly maxVisibleItems: number;
745
- readonly onClose?: ((...args: any[]) => any) | undefined;
746
- readonly onSelect?: ((...args: any[]) => any) | undefined;
747
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
748
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
749
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
750
- $attrs: {
751
- [x: string]: unknown;
752
- };
753
- $refs: {
754
- [x: string]: unknown;
755
- };
756
- $slots: Readonly<{
757
- [name: string]: Slot<any> | undefined;
758
- }>;
759
- $root: ComponentPublicInstance | null;
760
- $parent: ComponentPublicInstance | null;
761
- $host: Element | null;
762
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
763
- $el: HTMLDivElement;
764
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
765
- items: {
766
- type: PropType<SuggestionItem[]>;
767
- required: true;
768
- };
769
- categories: {
770
- type: PropType<Category[]>;
771
- default: () => never[];
772
- };
773
- loading: {
774
- type: BooleanConstructor;
775
- default: boolean;
776
- };
777
- title: {
778
- type: StringConstructor;
779
- default: string;
780
- };
781
- maxVisibleItems: {
782
- type: NumberConstructor;
783
- default: number;
784
- };
785
- }>> & Readonly<{
786
- onClose?: ((...args: any[]) => any) | undefined;
787
- onSelect?: ((...args: any[]) => any) | undefined;
788
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
789
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
790
- }>, {
791
- handleKeyDown: (e: KeyboardEvent) => void;
885
+ declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
886
+ children: ComputedRef<(HTMLElement | SVGElement)[]>;
792
887
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
793
- close: (...args: any[]) => void;
794
- select: (...args: any[]) => void;
795
- "category-select": (...args: any[]) => void;
796
- "item-hover": (...args: any[]) => void;
797
- }, string, {
798
- title: string;
799
- loading: boolean;
800
- categories: Category[];
801
- maxVisibleItems: number;
802
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
803
- beforeCreate?: (() => void) | (() => void)[];
804
- created?: (() => void) | (() => void)[];
805
- beforeMount?: (() => void) | (() => void)[];
806
- mounted?: (() => void) | (() => void)[];
807
- beforeUpdate?: (() => void) | (() => void)[];
808
- updated?: (() => void) | (() => void)[];
809
- activated?: (() => void) | (() => void)[];
810
- deactivated?: (() => void) | (() => void)[];
811
- beforeDestroy?: (() => void) | (() => void)[];
812
- beforeUnmount?: (() => void) | (() => void)[];
813
- destroyed?: (() => void) | (() => void)[];
814
- unmounted?: (() => void) | (() => void)[];
815
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
816
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
817
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
818
- };
819
- $forceUpdate: () => void;
820
- $nextTick: nextTick;
821
- $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;
822
- } & Readonly<{
823
- title: string;
824
- loading: boolean;
825
- categories: Category[];
826
- maxVisibleItems: number;
827
- }> & Omit<Readonly<ExtractPropTypes< {
828
- items: {
829
- type: PropType<SuggestionItem[]>;
830
- required: true;
831
- };
832
- categories: {
833
- type: PropType<Category[]>;
834
- default: () => never[];
835
- };
836
- loading: {
837
- type: BooleanConstructor;
838
- default: boolean;
839
- };
840
- title: {
841
- type: StringConstructor;
842
- default: string;
843
- };
844
- maxVisibleItems: {
845
- type: NumberConstructor;
846
- default: number;
847
- };
848
- }>> & Readonly<{
849
- onClose?: ((...args: any[]) => any) | undefined;
850
- onSelect?: ((...args: any[]) => any) | undefined;
851
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
852
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
853
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
854
- handleKeyDown: (e: KeyboardEvent) => void;
855
- }> & {} & ComponentCustomProperties & {} & {
856
- $slots: {
857
- 'title-icon'?(_: {}): any;
858
- 'loading-indicator'?(_: {}): any;
859
- item?(_: {
860
- item: SuggestionItem;
861
- active: boolean;
862
- }): any;
863
- empty?(_: {}): any;
864
- };
865
- }) | null;
866
- }, HTMLDivElement>;
867
-
868
- declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
869
888
  "update:showAll": (value: boolean | undefined) => any;
870
889
  } & {
871
- "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
872
890
  "click-outside": (event: MouseEvent) => any;
873
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
874
- "onItem-click"?: ((item: SuggestionPillItem<Record<string, unknown>>) => any) | undefined;
891
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
875
892
  "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
876
893
  "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
877
894
  }>, {
878
895
  showAllButtonOn: "hover" | "always";
896
+ overflowMode: "expand" | "scroll";
879
897
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
880
898
  containerWrapperRef: HTMLDivElement;
881
899
  containerRef: HTMLDivElement;
900
+ staticMaybeItemRefs: unknown[];
901
+ floatingItemsRef: HTMLDivElement;
902
+ floatingMaybeItemRefs: unknown[];
882
903
  }, HTMLDivElement>;
883
904
 
884
905
  declare type __VLS_Props = {
885
- messageRenderers?: Record<string, BubbleMessageRenderer>;
906
+ contentRenderers?: Record<string, BubbleContentRenderer>;
886
907
  };
887
908
 
888
- declare type __VLS_Props_2 = SuggestionPillsProps;
909
+ declare type __VLS_Props_2 = ContainerProps;
910
+
911
+ declare type __VLS_Props_3 = DropdownMenuProps;
912
+
913
+ declare type __VLS_Props_4 = SuggestionPillsProps;
889
914
 
890
- declare type __VLS_Props_3 = SuggestionPopoverProps;
915
+ declare type __VLS_Props_5 = SuggestionPopoverProps;
916
+
917
+ declare type __VLS_Props_6 = ThemeProviderProps;
918
+
919
+ declare type __VLS_Props_7 = McpServerPickerProps;
891
920
 
892
921
  declare type __VLS_PublicProps = {
893
922
  'show': ContainerProps['show'];
894
923
  'fullscreen'?: ContainerProps['fullscreen'];
895
- };
924
+ } & __VLS_Props_2;
896
925
 
897
926
  declare type __VLS_PublicProps_2 = {
898
- 'showAll'?: SuggestionPillsProps['showAll'];
899
- } & __VLS_Props_2;
927
+ 'show'?: boolean;
928
+ } & __VLS_Props_3;
900
929
 
901
930
  declare type __VLS_PublicProps_3 = {
931
+ 'showAll'?: SuggestionPillsProps['showAll'];
932
+ } & __VLS_Props_4;
933
+
934
+ declare type __VLS_PublicProps_4 = {
902
935
  'selectedGroup'?: string;
903
- } & __VLS_Props_3;
936
+ } & __VLS_Props_5;
937
+
938
+ declare type __VLS_PublicProps_5 = {
939
+ 'theme'?: string;
940
+ 'colorMode'?: ColorMode;
941
+ } & __VLS_Props_6;
942
+
943
+ declare type __VLS_PublicProps_6 = {
944
+ 'visible': boolean;
945
+ } & __VLS_Props_7;
904
946
 
905
947
  declare function __VLS_template(): {
906
948
  attrs: Partial<{}>;
@@ -910,42 +952,108 @@ declare function __VLS_template(): {
910
952
  };
911
953
 
912
954
  declare function __VLS_template_10(): {
913
- attrs: Partial<{}>;
914
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
915
- refs: {};
916
- rootEl: HTMLButtonElement;
917
- };
918
-
919
- declare function __VLS_template_11(): {
920
- attrs: Partial<{}>;
921
- slots: {
922
- 'category-label'?(_: {
923
- category: Category_2;
924
- }): any;
925
- 'question-item'?(_: {
926
- question: Question_2;
927
- index: number;
928
- }): any;
929
- 'loading-indicator'?(_: {}): any;
930
- 'empty-state'?(_: {}): any;
931
- };
932
- refs: {};
933
- rootEl: HTMLDivElement;
934
- };
935
-
936
- declare function __VLS_template_12(): {
937
955
  attrs: Partial<{}>;
938
956
  slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
939
957
  refs: {
940
- popoverTriggerRef: HTMLDivElement;
941
- popoverRef: HTMLDivElement;
942
- listRef: HTMLUListElement;
943
- tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
944
- show?: TooltipContentProps["show"];
945
- } & TooltipContentProps> & Readonly<{
946
- "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
947
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
948
- "update:show": (value: boolean | undefined) => any;
958
+ basePopperRef: ({
959
+ $: ComponentInternalInstance;
960
+ $data: {};
961
+ $props: {
962
+ readonly appendTo?: (string | HTMLElement) | undefined;
963
+ readonly offset?: number | {
964
+ mainAxis?: number;
965
+ crossAxis?: number;
966
+ } | undefined;
967
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
968
+ readonly preventOverflow?: boolean | undefined;
969
+ readonly show?: boolean | undefined;
970
+ readonly transitionProps?: TransitionProps | undefined;
971
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
972
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
973
+ $attrs: {
974
+ [x: string]: unknown;
975
+ };
976
+ $refs: {
977
+ [x: string]: unknown;
978
+ };
979
+ $slots: Readonly<{
980
+ [name: string]: Slot<any> | undefined;
981
+ }>;
982
+ $root: ComponentPublicInstance | null;
983
+ $parent: ComponentPublicInstance | null;
984
+ $host: Element | null;
985
+ $emit: (event: string, ...args: any[]) => void;
986
+ $el: any;
987
+ $options: ComponentOptionsBase<Readonly<{
988
+ appendTo?: string | HTMLElement;
989
+ offset?: number | {
990
+ mainAxis?: number;
991
+ crossAxis?: number;
992
+ };
993
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
994
+ preventOverflow?: boolean;
995
+ show?: boolean;
996
+ transitionProps?: TransitionProps;
997
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
998
+ }> & Readonly<{}>, {
999
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1000
+ popperRef: ComputedRef<HTMLDivElement | null>;
1001
+ update: () => void;
1002
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1003
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1004
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1005
+ beforeCreate?: (() => void) | (() => void)[];
1006
+ created?: (() => void) | (() => void)[];
1007
+ beforeMount?: (() => void) | (() => void)[];
1008
+ mounted?: (() => void) | (() => void)[];
1009
+ beforeUpdate?: (() => void) | (() => void)[];
1010
+ updated?: (() => void) | (() => void)[];
1011
+ activated?: (() => void) | (() => void)[];
1012
+ deactivated?: (() => void) | (() => void)[];
1013
+ beforeDestroy?: (() => void) | (() => void)[];
1014
+ beforeUnmount?: (() => void) | (() => void)[];
1015
+ destroyed?: (() => void) | (() => void)[];
1016
+ unmounted?: (() => void) | (() => void)[];
1017
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1018
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1019
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1020
+ };
1021
+ $forceUpdate: () => void;
1022
+ $nextTick: nextTick;
1023
+ $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;
1024
+ } & Readonly<{
1025
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1026
+ }> & Omit<Readonly<{
1027
+ appendTo?: string | HTMLElement;
1028
+ offset?: number | {
1029
+ mainAxis?: number;
1030
+ crossAxis?: number;
1031
+ };
1032
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1033
+ preventOverflow?: boolean;
1034
+ show?: boolean;
1035
+ transitionProps?: TransitionProps;
1036
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1037
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1038
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1039
+ popperRef: ComputedRef<HTMLDivElement | null>;
1040
+ update: () => void;
1041
+ }> & {} & ComponentCustomProperties & {} & {
1042
+ $slots: Readonly<{
1043
+ trigger?: () => VNode[];
1044
+ content?: () => VNode[];
1045
+ }> & {
1046
+ trigger?: () => VNode[];
1047
+ content?: () => VNode[];
1048
+ };
1049
+ }) | null;
1050
+ listRef: HTMLUListElement;
1051
+ tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1052
+ show?: TooltipContentProps["show"];
1053
+ } & TooltipContentProps> & Readonly<{
1054
+ "onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
1055
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1056
+ "update:show": (value: boolean | undefined) => any;
949
1057
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
950
1058
  P: {};
951
1059
  B: {};
@@ -962,6 +1070,22 @@ declare function __VLS_template_12(): {
962
1070
  rootEl: any;
963
1071
  };
964
1072
 
1073
+ declare function __VLS_template_11(): {
1074
+ attrs: Partial<{}>;
1075
+ slots: {
1076
+ default?(_: {}): any;
1077
+ };
1078
+ refs: {};
1079
+ rootEl: any;
1080
+ };
1081
+
1082
+ declare function __VLS_template_12(): {
1083
+ attrs: Partial<{}>;
1084
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
1085
+ refs: {};
1086
+ rootEl: HTMLDivElement;
1087
+ };
1088
+
965
1089
  declare function __VLS_template_2(): {
966
1090
  attrs: Partial<{}>;
967
1091
  slots: {
@@ -980,22 +1104,125 @@ declare function __VLS_template_3(): {
980
1104
 
981
1105
  declare function __VLS_template_4(): {
982
1106
  attrs: Partial<{}>;
983
- slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
984
- refs: {
985
- dropDownTriggerRef: HTMLDivElement;
986
- dropdownMenuRef: HTMLDivElement;
1107
+ slots: {
1108
+ overlay?(_: {
1109
+ isDragging: true;
1110
+ }): any;
987
1111
  };
1112
+ refs: {};
988
1113
  rootEl: any;
989
1114
  };
990
1115
 
991
1116
  declare function __VLS_template_5(): {
1117
+ attrs: Partial<{}>;
1118
+ slots: {
1119
+ trigger?(_: {}): any;
1120
+ };
1121
+ refs: {
1122
+ basePopperRef: ({
1123
+ $: ComponentInternalInstance;
1124
+ $data: {};
1125
+ $props: {
1126
+ readonly appendTo?: (string | HTMLElement) | undefined;
1127
+ readonly offset?: number | {
1128
+ mainAxis?: number;
1129
+ crossAxis?: number;
1130
+ } | undefined;
1131
+ readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
1132
+ readonly preventOverflow?: boolean | undefined;
1133
+ readonly show?: boolean | undefined;
1134
+ readonly transitionProps?: TransitionProps | undefined;
1135
+ readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1136
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1137
+ $attrs: {
1138
+ [x: string]: unknown;
1139
+ };
1140
+ $refs: {
1141
+ [x: string]: unknown;
1142
+ };
1143
+ $slots: Readonly<{
1144
+ [name: string]: Slot<any> | undefined;
1145
+ }>;
1146
+ $root: ComponentPublicInstance | null;
1147
+ $parent: ComponentPublicInstance | null;
1148
+ $host: Element | null;
1149
+ $emit: (event: string, ...args: any[]) => void;
1150
+ $el: any;
1151
+ $options: ComponentOptionsBase<Readonly<{
1152
+ appendTo?: string | HTMLElement;
1153
+ offset?: number | {
1154
+ mainAxis?: number;
1155
+ crossAxis?: number;
1156
+ };
1157
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1158
+ preventOverflow?: boolean;
1159
+ show?: boolean;
1160
+ transitionProps?: TransitionProps;
1161
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1162
+ }> & Readonly<{}>, {
1163
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1164
+ popperRef: ComputedRef<HTMLDivElement | null>;
1165
+ update: () => void;
1166
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1167
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1168
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1169
+ beforeCreate?: (() => void) | (() => void)[];
1170
+ created?: (() => void) | (() => void)[];
1171
+ beforeMount?: (() => void) | (() => void)[];
1172
+ mounted?: (() => void) | (() => void)[];
1173
+ beforeUpdate?: (() => void) | (() => void)[];
1174
+ updated?: (() => void) | (() => void)[];
1175
+ activated?: (() => void) | (() => void)[];
1176
+ deactivated?: (() => void) | (() => void)[];
1177
+ beforeDestroy?: (() => void) | (() => void)[];
1178
+ beforeUnmount?: (() => void) | (() => void)[];
1179
+ destroyed?: (() => void) | (() => void)[];
1180
+ unmounted?: (() => void) | (() => void)[];
1181
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1182
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1183
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1184
+ };
1185
+ $forceUpdate: () => void;
1186
+ $nextTick: nextTick;
1187
+ $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;
1188
+ } & Readonly<{
1189
+ placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1190
+ }> & Omit<Readonly<{
1191
+ appendTo?: string | HTMLElement;
1192
+ offset?: number | {
1193
+ mainAxis?: number;
1194
+ crossAxis?: number;
1195
+ };
1196
+ placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1197
+ preventOverflow?: boolean;
1198
+ show?: boolean;
1199
+ transitionProps?: TransitionProps;
1200
+ triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1201
+ }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1202
+ triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1203
+ popperRef: ComputedRef<HTMLDivElement | null>;
1204
+ update: () => void;
1205
+ }> & {} & ComponentCustomProperties & {} & {
1206
+ $slots: Readonly<{
1207
+ trigger?: () => VNode[];
1208
+ content?: () => VNode[];
1209
+ }> & {
1210
+ trigger?: () => VNode[];
1211
+ content?: () => VNode[];
1212
+ };
1213
+ }) | null;
1214
+ };
1215
+ rootEl: any;
1216
+ };
1217
+
1218
+ declare function __VLS_template_6(): {
992
1219
  attrs: Partial<{}>;
993
1220
  slots: Readonly<PromptsSlots> & PromptsSlots;
994
1221
  refs: {};
995
1222
  rootEl: HTMLDivElement;
996
1223
  };
997
1224
 
998
- declare function __VLS_template_6(): {
1225
+ declare function __VLS_template_7(): {
999
1226
  attrs: Partial<{}>;
1000
1227
  slots: {
1001
1228
  header?(_: {}): any;
@@ -1010,32 +1237,19 @@ declare function __VLS_template_6(): {
1010
1237
  senderRef: HTMLDivElement;
1011
1238
  inputWrapperRef: HTMLDivElement;
1012
1239
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1013
- value?: string;
1014
- } & TemplateEditorProps_2> & Readonly<{
1015
- onBlur?: ((event: FocusEvent) => any) | undefined;
1016
- onFocus?: ((event: FocusEvent) => any) | undefined;
1017
- onInput?: ((value: string) => any) | undefined;
1018
- onSubmit?: ((value: string) => any) | undefined;
1019
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
1020
- "onEmpty-content"?: (() => any) | undefined;
1021
- "onUpdate:value"?: ((value: string) => any) | undefined;
1240
+ modelValue?: UserItem[];
1241
+ }> & Readonly<{
1242
+ onSubmit?: (() => any) | undefined;
1243
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
1022
1244
  }>, {
1023
- focus: () => void;
1024
- resetFields: () => void;
1245
+ clearHistory: () => void;
1025
1246
  activateFirstField: () => void;
1026
- getValueFromDOM: () => string;
1027
- setTemplate: (params: SetTemplateParams_2) => void;
1028
1247
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1029
- "update:value": (value: string) => any;
1248
+ "update:modelValue": (value: UserItem[]) => any;
1030
1249
  } & {
1031
- blur: (event: FocusEvent) => any;
1032
- focus: (event: FocusEvent) => any;
1033
- input: (value: string) => any;
1034
- submit: (value: string) => any;
1035
- "content-status": (hasContent: boolean) => any;
1036
- "empty-content": () => any;
1250
+ submit: () => any;
1037
1251
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1038
- contentEditableRef: HTMLDivElement;
1252
+ editorRef: HTMLDivElement;
1039
1253
  }, HTMLDivElement, ComponentProvideOptions, {
1040
1254
  P: {};
1041
1255
  B: {};
@@ -1044,21 +1258,13 @@ declare function __VLS_template_6(): {
1044
1258
  M: {};
1045
1259
  Defaults: {};
1046
1260
  }, Readonly<{
1047
- value?: string;
1048
- } & TemplateEditorProps_2> & Readonly<{
1049
- onBlur?: ((event: FocusEvent) => any) | undefined;
1050
- onFocus?: ((event: FocusEvent) => any) | undefined;
1051
- onInput?: ((value: string) => any) | undefined;
1052
- onSubmit?: ((value: string) => any) | undefined;
1053
- "onContent-status"?: ((hasContent: boolean) => any) | undefined;
1054
- "onEmpty-content"?: (() => any) | undefined;
1055
- "onUpdate:value"?: ((value: string) => any) | undefined;
1261
+ modelValue?: UserItem[];
1262
+ }> & Readonly<{
1263
+ onSubmit?: (() => any) | undefined;
1264
+ "onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
1056
1265
  }>, {
1057
- focus: () => void;
1058
- resetFields: () => void;
1266
+ clearHistory: () => void;
1059
1267
  activateFirstField: () => void;
1060
- getValueFromDOM: () => string;
1061
- setTemplate: (params: SetTemplateParams_2) => void;
1062
1268
  }, {}, {}, {}, {}> | null;
1063
1269
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1064
1270
  _constants: {
@@ -1511,179 +1717,15 @@ declare function __VLS_template_6(): {
1511
1717
  inputBoxType: string;
1512
1718
  }> | null;
1513
1719
  buttonsContainerRef: HTMLDivElement;
1514
- suggestionsListRef: HTMLDivElement;
1515
1720
  };
1516
1721
  rootEl: HTMLDivElement;
1517
1722
  };
1518
1723
 
1519
- declare function __VLS_template_7(): {
1520
- attrs: Partial<{}>;
1521
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1522
- refs: {};
1523
- rootEl: HTMLDivElement;
1524
- };
1525
-
1526
1724
  declare function __VLS_template_8(): {
1527
1725
  attrs: Partial<{}>;
1528
- slots: {
1529
- 'capsule-icon'?(_: {
1530
- suggestion: any;
1531
- }): any;
1532
- trigger?(_: {
1533
- onTrigger: TriggerHandler;
1534
- onKeyDown: (e: KeyboardEvent) => void;
1535
- onInput: (event: Event, text: string) => boolean;
1536
- }): any;
1537
- 'title-icon'?(_: {}): any;
1538
- 'category-label'?(_: {
1539
- category: any;
1540
- }): any;
1541
- item?(_: {
1542
- item: SuggestionItem;
1543
- active: boolean;
1544
- }): any;
1545
- 'loading-indicator'?(_: {}): any;
1546
- empty?(_: {}): any;
1547
- };
1548
- refs: {
1549
- rootRef: HTMLDivElement;
1550
- panelRef: ({
1551
- $: ComponentInternalInstance;
1552
- $data: {};
1553
- $props: Partial<{
1554
- title: string;
1555
- loading: boolean;
1556
- categories: Category[];
1557
- maxVisibleItems: number;
1558
- }> & Omit<{
1559
- readonly items: SuggestionItem[];
1560
- readonly title: string;
1561
- readonly loading: boolean;
1562
- readonly categories: Category[];
1563
- readonly maxVisibleItems: number;
1564
- readonly onClose?: ((...args: any[]) => any) | undefined;
1565
- readonly onSelect?: ((...args: any[]) => any) | undefined;
1566
- readonly "onCategory-select"?: ((...args: any[]) => any) | undefined;
1567
- readonly "onItem-hover"?: ((...args: any[]) => any) | undefined;
1568
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "title" | "loading" | "categories" | "maxVisibleItems">;
1569
- $attrs: {
1570
- [x: string]: unknown;
1571
- };
1572
- $refs: {
1573
- [x: string]: unknown;
1574
- };
1575
- $slots: Readonly<{
1576
- [name: string]: Slot<any> | undefined;
1577
- }>;
1578
- $root: ComponentPublicInstance | null;
1579
- $parent: ComponentPublicInstance | null;
1580
- $host: Element | null;
1581
- $emit: ((event: "close", ...args: any[]) => void) & ((event: "select", ...args: any[]) => void) & ((event: "category-select", ...args: any[]) => void) & ((event: "item-hover", ...args: any[]) => void);
1582
- $el: HTMLDivElement;
1583
- $options: ComponentOptionsBase<Readonly<ExtractPropTypes< {
1584
- items: {
1585
- type: PropType<SuggestionItem[]>;
1586
- required: true;
1587
- };
1588
- categories: {
1589
- type: PropType<Category[]>;
1590
- default: () => never[];
1591
- };
1592
- loading: {
1593
- type: BooleanConstructor;
1594
- default: boolean;
1595
- };
1596
- title: {
1597
- type: StringConstructor;
1598
- default: string;
1599
- };
1600
- maxVisibleItems: {
1601
- type: NumberConstructor;
1602
- default: number;
1603
- };
1604
- }>> & Readonly<{
1605
- onClose?: ((...args: any[]) => any) | undefined;
1606
- onSelect?: ((...args: any[]) => any) | undefined;
1607
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1608
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1609
- }>, {
1610
- handleKeyDown: (e: KeyboardEvent) => void;
1611
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1612
- close: (...args: any[]) => void;
1613
- select: (...args: any[]) => void;
1614
- "category-select": (...args: any[]) => void;
1615
- "item-hover": (...args: any[]) => void;
1616
- }, string, {
1617
- title: string;
1618
- loading: boolean;
1619
- categories: Category[];
1620
- maxVisibleItems: number;
1621
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1622
- beforeCreate?: (() => void) | (() => void)[];
1623
- created?: (() => void) | (() => void)[];
1624
- beforeMount?: (() => void) | (() => void)[];
1625
- mounted?: (() => void) | (() => void)[];
1626
- beforeUpdate?: (() => void) | (() => void)[];
1627
- updated?: (() => void) | (() => void)[];
1628
- activated?: (() => void) | (() => void)[];
1629
- deactivated?: (() => void) | (() => void)[];
1630
- beforeDestroy?: (() => void) | (() => void)[];
1631
- beforeUnmount?: (() => void) | (() => void)[];
1632
- destroyed?: (() => void) | (() => void)[];
1633
- unmounted?: (() => void) | (() => void)[];
1634
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1635
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1636
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1637
- };
1638
- $forceUpdate: () => void;
1639
- $nextTick: nextTick;
1640
- $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;
1641
- } & Readonly<{
1642
- title: string;
1643
- loading: boolean;
1644
- categories: Category[];
1645
- maxVisibleItems: number;
1646
- }> & Omit<Readonly<ExtractPropTypes< {
1647
- items: {
1648
- type: PropType<SuggestionItem[]>;
1649
- required: true;
1650
- };
1651
- categories: {
1652
- type: PropType<Category[]>;
1653
- default: () => never[];
1654
- };
1655
- loading: {
1656
- type: BooleanConstructor;
1657
- default: boolean;
1658
- };
1659
- title: {
1660
- type: StringConstructor;
1661
- default: string;
1662
- };
1663
- maxVisibleItems: {
1664
- type: NumberConstructor;
1665
- default: number;
1666
- };
1667
- }>> & Readonly<{
1668
- onClose?: ((...args: any[]) => any) | undefined;
1669
- onSelect?: ((...args: any[]) => any) | undefined;
1670
- "onCategory-select"?: ((...args: any[]) => any) | undefined;
1671
- "onItem-hover"?: ((...args: any[]) => any) | undefined;
1672
- }>, "handleKeyDown" | ("title" | "loading" | "categories" | "maxVisibleItems")> & ShallowUnwrapRef< {
1673
- handleKeyDown: (e: KeyboardEvent) => void;
1674
- }> & {} & ComponentCustomProperties & {} & {
1675
- $slots: {
1676
- 'title-icon'?(_: {}): any;
1677
- 'loading-indicator'?(_: {}): any;
1678
- item?(_: {
1679
- item: SuggestionItem;
1680
- active: boolean;
1681
- }): any;
1682
- empty?(_: {}): any;
1683
- };
1684
- }) | null;
1685
- };
1686
- rootEl: HTMLDivElement;
1726
+ slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1727
+ refs: {};
1728
+ rootEl: HTMLButtonElement;
1687
1729
  };
1688
1730
 
1689
1731
  declare function __VLS_template_9(): {
@@ -1692,6 +1734,9 @@ declare function __VLS_template_9(): {
1692
1734
  refs: {
1693
1735
  containerWrapperRef: HTMLDivElement;
1694
1736
  containerRef: HTMLDivElement;
1737
+ staticMaybeItemRefs: unknown[];
1738
+ floatingItemsRef: HTMLDivElement;
1739
+ floatingMaybeItemRefs: unknown[];
1695
1740
  };
1696
1741
  rootEl: HTMLDivElement;
1697
1742
  };
@@ -1792,11 +1837,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1792
1837
  };
1793
1838
  };
1794
1839
 
1840
+ export declare interface ActionButton {
1841
+ type: string;
1842
+ label: string;
1843
+ handler?: (file: Attachment) => void;
1844
+ }
1845
+
1795
1846
  export declare interface ActionButtonsProps {
1796
1847
  loading?: boolean;
1797
1848
  disabled?: boolean;
1798
1849
  showClear?: boolean;
1799
1850
  hasContent?: boolean;
1851
+ buttonGroup?: ButtonGroupConfig;
1800
1852
  allowSpeech?: boolean;
1801
1853
  speechStatus?: {
1802
1854
  isRecording: boolean;
@@ -1806,6 +1858,31 @@ export declare interface ActionButtonsProps {
1806
1858
  submitType?: SubmitTrigger;
1807
1859
  showShortcuts?: boolean;
1808
1860
  isOverLimit?: boolean;
1861
+ stopText?: string;
1862
+ }
1863
+
1864
+ export declare type Attachment = UrlAttachment | RawFileAttachment;
1865
+
1866
+ export declare interface AttachmentListEmits {
1867
+ (e: 'update:items', items: Attachment[]): void;
1868
+ (e: 'remove', file: Attachment): void;
1869
+ (e: 'download', event: MouseEvent, file: Attachment): void;
1870
+ (e: 'retry', file: Attachment): void;
1871
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
1872
+ (e: 'action', payload: {
1873
+ action: ActionButton;
1874
+ file: Attachment;
1875
+ }): void;
1876
+ }
1877
+
1878
+ export declare interface AttachmentListProps {
1879
+ items?: Attachment[];
1880
+ disabled?: boolean;
1881
+ wrap?: boolean;
1882
+ fileIcons?: Record<string, Component>;
1883
+ actions?: ActionButton[];
1884
+ variant?: DisplayVariant;
1885
+ fileMatchers?: FileTypeMatcher[];
1809
1886
  }
1810
1887
 
1811
1888
  export declare type AutoSize = boolean | {
@@ -1813,6 +1890,18 @@ export declare type AutoSize = boolean | {
1813
1890
  maxRows: number;
1814
1891
  };
1815
1892
 
1893
+ export declare interface BaseAttachment {
1894
+ id?: string;
1895
+ name?: string;
1896
+ status?: FileStatus;
1897
+ fileType?: FileType;
1898
+ message?: string;
1899
+ }
1900
+
1901
+ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1902
+
1903
+ export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1904
+
1816
1905
  declare interface BaseHistoryProps {
1817
1906
  activeTab?: string;
1818
1907
  searchBar?: boolean;
@@ -1822,26 +1911,18 @@ declare interface BaseHistoryProps {
1822
1911
  selected?: string;
1823
1912
  }
1824
1913
 
1825
- declare const Bubble: typeof _default_14 & {
1914
+ declare interface BaseTextItem {
1915
+ id: string;
1916
+ type: string;
1917
+ content: string;
1918
+ }
1919
+
1920
+ declare const Bubble: typeof _default_17 & {
1826
1921
  install: typeof bubbleInstall;
1827
1922
  };
1828
1923
  export { Bubble }
1829
1924
  export { Bubble as TrBubble }
1830
1925
 
1831
- export declare const BubbleChainMessageRenderer: DefineComponent< {
1832
- items: ChainItem[];
1833
- html?: boolean;
1834
- contentClass?: string;
1835
- contentRenderer?: (content: string) => string;
1836
- }, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
1837
- items: ChainItem[];
1838
- html?: boolean;
1839
- contentClass?: string;
1840
- contentRenderer?: (content: string) => string;
1841
- }> & Readonly<{}>, {
1842
- html: boolean;
1843
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
1844
-
1845
1926
  export declare interface BubbleCommonProps {
1846
1927
  /**
1847
1928
  * 气泡对齐位置
@@ -1857,16 +1938,43 @@ export declare interface BubbleCommonProps {
1857
1938
  shape?: 'rounded' | 'corner';
1858
1939
  /**
1859
1940
  * 气泡内容渲染器。
1860
- * 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1941
+ * 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1942
+ */
1943
+ contentRenderer?: BubbleContentRenderer;
1944
+ /**
1945
+ * 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
1946
+ */
1947
+ customContentField?: string;
1948
+ /**
1949
+ * 气泡中止文本
1950
+ */
1951
+ abortedText?: string;
1952
+ /**
1953
+ * 气泡最大宽度
1861
1954
  */
1862
- contentRenderer?: BubbleMessageRenderer;
1863
- hidden?: boolean;
1864
1955
  maxWidth?: string | number;
1865
1956
  }
1866
1957
 
1958
+ export declare abstract class BubbleContentClassRenderer {
1959
+ abstract render(options: {
1960
+ [key: string]: any;
1961
+ }): VNode;
1962
+ }
1963
+
1964
+ export declare type BubbleContentFunctionRenderer = (options: {
1965
+ [key: string]: any;
1966
+ }) => VNode;
1967
+
1968
+ export declare interface BubbleContentItem {
1969
+ type: string;
1970
+ [key: string]: any;
1971
+ }
1972
+
1973
+ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
1974
+
1867
1975
  declare const bubbleInstall: (app: App) => void;
1868
1976
 
1869
- declare const BubbleList: typeof _default_15 & {
1977
+ declare const BubbleList: typeof _default_18 & {
1870
1978
  install: typeof bubbleListInstall;
1871
1979
  };
1872
1980
  export { BubbleList }
@@ -1893,18 +2001,16 @@ export declare interface BubbleListProps {
1893
2001
  autoScroll?: boolean;
1894
2002
  }
1895
2003
 
1896
- export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1897
- readonly md: default_2;
2004
+ export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
1898
2005
  readonly mdConfig: Options;
1899
2006
  readonly dompurifyConfig: Config;
1900
2007
  readonly sanitizeDisabled: boolean;
1901
- readonly styleOptions: {
1902
- class?: string;
1903
- style?: string;
1904
- };
1905
- constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
2008
+ readonly defaultAttrs: Record<string, unknown>;
2009
+ private md;
2010
+ constructor(options?: BubbleMarkdownRendererOptions);
1906
2011
  render(options: {
1907
2012
  content?: string;
2013
+ [key: string]: unknown;
1908
2014
  }): VNode<RendererNode, RendererElement, {
1909
2015
  [key: string]: any;
1910
2016
  }>;
@@ -1914,45 +2020,21 @@ declare interface BubbleMarkdownRendererOptions {
1914
2020
  mdConfig?: Options;
1915
2021
  dompurifyConfig?: Config;
1916
2022
  sanitizeDisabled?: boolean;
1917
- styleOptions?: {
1918
- class?: string;
1919
- style?: string;
1920
- };
1921
- }
1922
-
1923
- export declare abstract class BubbleMessageClassRenderer {
1924
- abstract render(options: {
1925
- [key: string]: any;
1926
- }): VNode;
1927
- }
1928
-
1929
- export declare type BubbleMessageFunctionRenderer = (options: {
1930
- [key: string]: any;
1931
- }) => VNode;
1932
-
1933
- export declare interface BubbleMessageProps {
1934
- type: string;
1935
- [key: string]: any;
2023
+ defaultAttrs?: Record<string, unknown>;
1936
2024
  }
1937
2025
 
1938
- export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
1939
- component: Component;
1940
- defaultProps: Record<string, unknown>;
1941
- };
1942
-
1943
2026
  export declare interface BubbleProps extends BubbleCommonProps {
1944
2027
  /**
1945
2028
  * 气泡内容
1946
2029
  */
1947
- content?: string;
1948
- messages?: BubbleMessageProps[];
2030
+ content?: string | BubbleContentItem[];
1949
2031
  id?: string | number | symbol;
1950
2032
  role?: string;
1951
2033
  loading?: boolean;
1952
2034
  aborted?: boolean;
1953
2035
  }
1954
2036
 
1955
- declare const BubbleProvider: typeof _default_16 & {
2037
+ declare const BubbleProvider: typeof _default_19 & {
1956
2038
  install: typeof bubbleProviderInstall;
1957
2039
  };
1958
2040
  export { BubbleProvider }
@@ -1961,6 +2043,7 @@ export { BubbleProvider as TrBubbleProvider }
1961
2043
  declare const bubbleProviderInstall: (app: App) => void;
1962
2044
 
1963
2045
  export declare type BubbleRoleConfig = BubbleCommonProps & {
2046
+ hidden?: boolean;
1964
2047
  slots?: BubbleSlots;
1965
2048
  };
1966
2049
 
@@ -1976,25 +2059,15 @@ export declare interface BubbleSlots {
1976
2059
  }) => unknown;
1977
2060
  }
1978
2061
 
1979
- /**
1980
- * 分类定义
1981
- */
1982
- export declare interface Category {
1983
- /** 唯一标识 */
1984
- id: string;
1985
- /** 显示名称 */
1986
- label: string;
1987
- /** 可选图标 */
1988
- icon?: VNode;
1989
- /** 该分类下的指令项 */
1990
- items: SuggestionItem[];
2062
+ export declare interface ButtonGroupConfig {
2063
+ file?: ControlState & fileUploadConfig;
2064
+ submit?: ControlState;
1991
2065
  }
1992
2066
 
1993
- declare interface Category_2 {
1994
- id: string;
1995
- label: string;
1996
- icon?: string;
1997
- questions: Question_2[];
2067
+ export declare type ColorMode = 'light' | 'dark' | 'auto';
2068
+
2069
+ export declare interface ContainerEmits {
2070
+ (e: 'close'): void;
1998
2071
  }
1999
2072
 
2000
2073
  export declare interface ContainerProps {
@@ -2006,6 +2079,7 @@ export declare interface ContainerProps {
2006
2079
  * model:fullscreen
2007
2080
  */
2008
2081
  fullscreen?: boolean;
2082
+ title?: string;
2009
2083
  }
2010
2084
 
2011
2085
  export declare interface ContainerSlots {
@@ -2015,139 +2089,318 @@ export declare interface ContainerSlots {
2015
2089
  footer: () => unknown;
2016
2090
  }
2017
2091
 
2092
+ export declare interface ControlState {
2093
+ tooltips?: string | TooltipRender;
2094
+ disabled?: boolean;
2095
+ }
2096
+
2018
2097
  declare const _default: {
2019
2098
  install<T>(app: App<T>): void;
2020
2099
  };
2021
2100
  export default _default;
2022
2101
 
2023
- declare const _default_10: typeof _default_26 & {
2102
+ declare const _default_10: typeof _default_28 & {
2024
2103
  install: typeof install_8;
2025
2104
  };
2026
- export { _default_10 as Suggestion }
2027
- export { _default_10 as TrSuggestion }
2105
+ export { _default_10 as Sender }
2106
+ export { _default_10 as TrSender }
2028
2107
 
2029
- declare const _default_11: typeof _default_27 & {
2108
+ declare const _default_11: typeof _default_30 & {
2030
2109
  install: typeof install_9;
2031
2110
  };
2032
2111
  export { _default_11 as SuggestionPills }
2033
2112
  export { _default_11 as TrSuggestionPills }
2034
2113
 
2035
- declare const _default_12: typeof _default_29 & {
2114
+ declare const _default_12: typeof _default_31 & {
2036
2115
  install: typeof install_10;
2037
2116
  };
2038
- export { _default_12 as Question }
2039
- export { _default_12 as TrQuestion }
2117
+ export { _default_12 as SuggestionPopover }
2118
+ export { _default_12 as TrSuggestionPopover }
2040
2119
 
2041
- declare const _default_13: typeof _default_30 & {
2120
+ declare const _default_13: typeof _default_32 & {
2042
2121
  install: typeof install_11;
2043
2122
  };
2044
- export { _default_13 as SuggestionPopover }
2045
- export { _default_13 as TrSuggestionPopover }
2123
+ export { _default_13 as ThemeProvider }
2124
+ export { _default_13 as TrThemeProvider }
2125
+
2126
+ declare const _default_14: typeof _default_33 & {
2127
+ install: typeof install_12;
2128
+ };
2129
+ export { _default_14 as TrWelcome }
2130
+ export { _default_14 as Welcome }
2131
+
2132
+ declare const _default_15: typeof _default_34 & {
2133
+ install: typeof install_13;
2134
+ };
2135
+ export { _default_15 as McpServerPicker }
2136
+ export { _default_15 as TrMcpServerPicker }
2137
+
2138
+ declare const _default_16: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2139
+ "update:items": (items: Attachment[]) => any;
2140
+ remove: (file: Attachment) => any;
2141
+ download: (event: MouseEvent, file: Attachment) => any;
2142
+ retry: (file: Attachment) => any;
2143
+ preview: (event: MouseEvent, file: Attachment) => any;
2144
+ action: (payload: {
2145
+ action: ActionButton;
2146
+ file: Attachment;
2147
+ }) => any;
2148
+ }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2149
+ "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2150
+ onRemove?: ((file: Attachment) => any) | undefined;
2151
+ onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2152
+ onRetry?: ((file: Attachment) => any) | undefined;
2153
+ onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2154
+ onAction?: ((payload: {
2155
+ action: ActionButton;
2156
+ file: Attachment;
2157
+ }) => any) | undefined;
2158
+ }>, {
2159
+ actions: ActionButton[];
2160
+ fileMatchers: FileTypeMatcher_2[];
2161
+ variant: DisplayVariant_2;
2162
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2046
2163
 
2047
- declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2164
+ declare const _default_17: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2048
2165
 
2049
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2166
+ declare const _default_18: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2050
2167
  scrollContainerRef: HTMLDivElement;
2051
2168
  }, HTMLDivElement>;
2052
2169
 
2053
- declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2170
+ declare const _default_19: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2054
2171
 
2055
- declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2172
+ declare const _default_2: typeof _default_16 & {
2173
+ install: typeof install;
2174
+ };
2175
+ export { _default_2 as Attachments }
2176
+ export { _default_2 as TrAttachments }
2056
2177
 
2057
- declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2178
+ declare const _default_20: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2058
2179
 
2059
- declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2180
+ declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2060
2181
 
2061
- declare const _default_2: typeof _default_17 & {
2062
- install: typeof install;
2063
- };
2064
- export { _default_2 as Container }
2065
- export { _default_2 as TrContainer }
2182
+ declare const _default_22: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2066
2183
 
2067
- declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2068
- operation: (name: string) => any;
2184
+ declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2185
+
2186
+ declare const _default_24: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2069
2187
  action: (name: string) => any;
2188
+ operation: (name: string) => any;
2070
2189
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
2071
- onOperation?: ((name: string) => any) | undefined;
2072
2190
  onAction?: ((name: string) => any) | undefined;
2191
+ onOperation?: ((name: string) => any) | undefined;
2073
2192
  }>, {
2074
2193
  operationsLimit: number;
2075
2194
  actionsLimit: number;
2076
2195
  sourcesLinesLimit: number;
2077
2196
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2078
2197
 
2079
- declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2198
+ declare const _default_25: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2080
2199
  size: string | number;
2081
2200
  svgSize: string | number;
2082
2201
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2083
2202
 
2084
- declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2203
+ declare const _default_26: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2204
+ size: "small" | "medium" | "large";
2205
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2085
2206
 
2086
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2207
+ declare const _default_27: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2087
2208
 
2088
- declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2209
+ declare const _default_28: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2089
2210
 
2090
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2211
+ declare const _default_29: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2091
2212
 
2092
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2213
+ declare const _default_3: typeof _default_20 & {
2214
+ install: typeof install_2;
2215
+ };
2216
+ export { _default_3 as Container }
2217
+ export { _default_3 as TrContainer }
2093
2218
 
2094
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2219
+ declare const _default_30: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2095
2220
 
2096
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2221
+ declare const _default_31: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2097
2222
 
2098
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2223
+ declare const _default_32: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2099
2224
 
2100
- declare const _default_3: typeof _default_18 & {
2101
- install: typeof install_2;
2102
- };
2103
- export { _default_3 as Conversations }
2104
- export { _default_3 as TrConversations }
2225
+ declare const _default_33: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2105
2226
 
2106
- declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2227
+ declare const _default_34: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2228
+ "update:visible": (value: boolean) => any;
2229
+ } & {
2230
+ refresh: (tab: "installed" | "market") => any;
2231
+ "update:visible": (visible: boolean) => any;
2232
+ "market-category-change": (category: string) => any;
2233
+ "tab-change": (activeTab: "installed" | "market") => any;
2234
+ "plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
2235
+ "plugin-delete": (plugin: PluginInfo) => any;
2236
+ "plugin-add": (plugin: PluginInfo, added: boolean) => any;
2237
+ "plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
2238
+ "tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
2239
+ "update:activeCount": (count: number) => any;
2240
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
2241
+ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
2242
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2243
+ "onMarket-category-change"?: ((category: string) => any) | undefined;
2244
+ "onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
2245
+ "onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
2246
+ "onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
2247
+ "onPlugin-add"?: ((plugin: PluginInfo, added: boolean) => any) | undefined;
2248
+ "onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
2249
+ "onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
2250
+ "onUpdate:activeCount"?: ((count: number) => any) | undefined;
2251
+ }>, {
2252
+ title: string;
2253
+ loading: boolean;
2254
+ searchPlaceholder: string;
2255
+ installedPlugins: PluginInfo[];
2256
+ marketPlugins: PluginInfo[];
2257
+ enableSearch: boolean;
2258
+ installedSearchFn: (query: string, item: PluginInfo) => boolean;
2259
+ marketSearchFn: (query: string, item: PluginInfo) => boolean;
2260
+ marketCategoryOptions: MarketCategoryOption_2[];
2261
+ marketCategoryPlaceholder: string;
2262
+ enableMarketCategoryFilter: boolean;
2263
+ defaultActiveTab: "installed" | "market";
2264
+ showInstalledTab: boolean;
2265
+ showMarketTab: boolean;
2266
+ popupConfig: PopupConfig;
2267
+ installedTabTitle: string;
2268
+ marketTabTitle: string;
2269
+ showCustomAddButton: boolean;
2270
+ customAddButtonText: string;
2271
+ allowPluginToggle: boolean;
2272
+ allowToolToggle: boolean;
2273
+ allowPluginDelete: boolean;
2274
+ allowPluginAdd: boolean;
2275
+ marketLoading: boolean;
2276
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2107
2277
 
2108
- declare const _default_4: typeof _default_19 & {
2278
+ declare const _default_4: typeof _default_21 & {
2109
2279
  install: typeof install_3;
2110
2280
  };
2111
- export { _default_4 as DropdownMenu }
2112
- export { _default_4 as TrDropdownMenu }
2281
+ export { _default_4 as Conversations }
2282
+ export { _default_4 as TrConversations }
2113
2283
 
2114
- declare const _default_5: typeof _default_20 & {
2284
+ declare const _default_5: typeof _default_22 & {
2115
2285
  install: typeof install_4;
2116
2286
  };
2117
- export { _default_5 as Feedback }
2118
- export { _default_5 as TrFeedback }
2287
+ export { _default_5 as DragOverlay }
2288
+ export { _default_5 as TrDragOverlay }
2119
2289
 
2120
- declare const _default_6: {
2121
- install: <T>(app: App<T>) => void;
2122
- name: string;
2123
- };
2124
- export { _default_6 as History }
2125
- export { _default_6 as TrHistory }
2126
-
2127
- declare const _default_7: typeof _default_21 & {
2290
+ declare const _default_6: typeof _default_23 & {
2128
2291
  install: typeof install_5;
2129
2292
  };
2130
- export { _default_7 as IconButton }
2131
- export { _default_7 as TrIconButton }
2293
+ export { _default_6 as DropdownMenu }
2294
+ export { _default_6 as TrDropdownMenu }
2132
2295
 
2133
- declare const _default_8: typeof _default_24 & {
2296
+ declare const _default_7: typeof _default_24 & {
2134
2297
  install: typeof install_6;
2135
2298
  };
2136
- export { _default_8 as Sender }
2137
- export { _default_8 as TrSender }
2299
+ export { _default_7 as Feedback }
2300
+ export { _default_7 as TrFeedback }
2301
+
2302
+ declare const _default_8: {
2303
+ install: <T>(app: App<T>) => void;
2304
+ name: string;
2305
+ };
2306
+ export { _default_8 as History }
2307
+ export { _default_8 as TrHistory }
2138
2308
 
2139
2309
  declare const _default_9: typeof _default_25 & {
2140
2310
  install: typeof install_7;
2141
2311
  };
2142
- export { _default_9 as TrWelcome }
2143
- export { _default_9 as Welcome }
2312
+ export { _default_9 as IconButton }
2313
+ export { _default_9 as TrIconButton }
2314
+
2315
+ export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2316
+
2317
+ declare interface DragAwareElement extends HTMLElement {
2318
+ __vDropzoneHandlers__?: Handlers;
2319
+ __vDropzoneOptions__?: DragAwareOptions;
2320
+ }
2321
+
2322
+ declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2323
+
2324
+ /**
2325
+ * 拖拽上传组件的属性
2326
+ */
2327
+ export declare interface DragOverlayProps {
2328
+ /**
2329
+ * 覆盖层标题
2330
+ * @default ''
2331
+ */
2332
+ overlayTitle?: string;
2333
+ /**
2334
+ * 覆盖层描述文本数组
2335
+ * @default []
2336
+ */
2337
+ overlayDescription?: string[];
2338
+ /**
2339
+ * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2340
+ * @default false
2341
+ */
2342
+ isDragging?: boolean;
2343
+ /**
2344
+ * @description 拖拽目标元素,用于定位覆盖层
2345
+ * @default null
2346
+ */
2347
+ dragTarget?: HTMLElement | null;
2348
+ /**
2349
+ * @description 是否全屏模式,控制覆盖层的边框显示
2350
+ * @default false
2351
+ */
2352
+ fullscreen?: boolean;
2353
+ }
2354
+
2355
+ export declare interface DragOverlaySlots {
2356
+ /**
2357
+ * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2358
+ */
2359
+ overlay?: (props: {
2360
+ isDragging: boolean;
2361
+ }) => unknown;
2362
+ }
2363
+
2364
+ /**
2365
+ * 拖拽区域错误码
2366
+ */
2367
+ declare enum DragZoneErrorCode {
2368
+ /**
2369
+ * 文件类型不允许
2370
+ */
2371
+ FileTypeNotAllowed = "file-type-not-allowed",
2372
+ /**
2373
+ * 文件大小超出限制
2374
+ */
2375
+ FileSizeExceeded = "file-size-exceeded",
2376
+ /**
2377
+ * 文件数量超出限制
2378
+ */
2379
+ FileCountExceeded = "file-count-exceeded"
2380
+ }
2144
2381
 
2145
2382
  export declare interface DropdownMenuEmits {
2146
2383
  (e: 'item-click', item: DropdownMenuItem): void;
2384
+ /**
2385
+ * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
2386
+ */
2387
+ (e: 'click-outside', event: MouseEvent): void;
2388
+ }
2389
+
2390
+ export declare interface DropdownMenuEventProps {
2391
+ onItemClick?: (item: DropdownMenuItem) => void;
2392
+ onClickOutside?: (event: MouseEvent) => void;
2147
2393
  }
2148
2394
 
2149
2395
  export declare interface DropdownMenuEvents {
2396
+ /**
2397
+ * @deprecated
2398
+ */
2150
2399
  itemClick?: (item: DropdownMenuItem) => void;
2400
+ /**
2401
+ * @deprecated
2402
+ */
2403
+ clickOutside?: (event: MouseEvent) => void;
2151
2404
  }
2152
2405
 
2153
2406
  export declare interface DropdownMenuItem {
@@ -2156,13 +2409,69 @@ export declare interface DropdownMenuItem {
2156
2409
  }
2157
2410
 
2158
2411
  export declare interface DropdownMenuProps {
2412
+ appendTo?: string | HTMLElement;
2159
2413
  items: DropdownMenuItem[];
2160
- minWidth?: string | number;
2161
- topOffset?: string | number;
2414
+ /**
2415
+ * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
2416
+ * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
2417
+ */
2418
+ show?: boolean;
2419
+ /**
2420
+ * 触发方式。默认值为 'click'
2421
+ */
2422
+ trigger?: 'click' | 'hover' | 'manual';
2162
2423
  }
2163
2424
 
2164
2425
  export declare interface DropdownMenuSlots {
2165
- default?: () => unknown;
2426
+ trigger?: () => VNode | VNode[];
2427
+ }
2428
+
2429
+ /**
2430
+ * 拖拽上传组件的属性
2431
+ */
2432
+ export declare interface DropzoneBinding {
2433
+ /**
2434
+ * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2435
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2436
+ * @example '.jpg,.png,image/*'
2437
+ */
2438
+ accept?: string;
2439
+ /**
2440
+ * 是否允许多选
2441
+ * @default true
2442
+ */
2443
+ multiple?: boolean;
2444
+ /**
2445
+ * 是否禁用拖拽
2446
+ * @default false
2447
+ */
2448
+ disabled?: boolean;
2449
+ /**
2450
+ * 单个文件的最大大小(单位:字节)
2451
+ * @default 10 * 1024 * 1024 (10MB)
2452
+ */
2453
+ maxSize?: number;
2454
+ /**
2455
+ * 允许上传的最大文件数量
2456
+ * @default 3
2457
+ */
2458
+ maxFiles?: number;
2459
+ /**
2460
+ * 拖拽完成后的回调
2461
+ * @param files 上传的文件
2462
+ */
2463
+ onDrop: (files: File[]) => void;
2464
+ /**
2465
+ * 拖拽失败后的回调
2466
+ * @param rejection 拒绝信息
2467
+ */
2468
+ onError: (rejection: FileRejection) => void;
2469
+ /**
2470
+ * 拖拽开始时的回调
2471
+ * @param dragging 是否正在拖拽
2472
+ * @param element 拖拽目标元素
2473
+ */
2474
+ onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2166
2475
  }
2167
2476
 
2168
2477
  export declare interface FeedbackEvents {
@@ -2191,6 +2500,54 @@ export declare interface FeedbackProps {
2191
2500
  sourcesLinesLimit?: number;
2192
2501
  }
2193
2502
 
2503
+ export declare interface FileCardEmits {
2504
+ (e: 'remove', file: Attachment): void;
2505
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
2506
+ (e: 'download', event: MouseEvent, file: Attachment): void;
2507
+ (e: 'retry', file: Attachment): void;
2508
+ (e: 'action', payload: {
2509
+ action: ActionButton;
2510
+ file: Attachment;
2511
+ }): void;
2512
+ }
2513
+
2514
+ export declare interface FileCardProps extends BaseCardProps {
2515
+ file: Attachment;
2516
+ variant: 'picture' | 'card';
2517
+ showStatus?: boolean;
2518
+ }
2519
+
2520
+ /**
2521
+ * 文件拒绝信息
2522
+ */
2523
+ export declare interface FileRejection extends RejectionReason {
2524
+ files: File[];
2525
+ }
2526
+
2527
+ export declare type FileStatus = 'uploading' | 'success' | 'error';
2528
+
2529
+ export declare type FileType = BaseFileType | string;
2530
+
2531
+ export declare interface FileTypeMatcher {
2532
+ type: string;
2533
+ matcher: (file: File | string) => boolean;
2534
+ icon?: Component;
2535
+ }
2536
+
2537
+ declare interface fileUploadConfig {
2538
+ accept?: string;
2539
+ multiple?: boolean;
2540
+ }
2541
+
2542
+ export declare interface Handlers {
2543
+ handleDragEnter: (e: DragEvent) => void;
2544
+ handleDragOver: (e: DragEvent) => void;
2545
+ handleDragLeave: (e: DragEvent) => void;
2546
+ handleDrop: (e: DragEvent) => void;
2547
+ }
2548
+
2549
+ declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2550
+
2194
2551
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2195
2552
 
2196
2553
  export declare interface HistoryEvents {
@@ -2241,6 +2598,10 @@ declare const install_10: <T>(app: App<T>) => void;
2241
2598
 
2242
2599
  declare const install_11: <T>(app: App<T>) => void;
2243
2600
 
2601
+ declare const install_12: <T>(app: App<T>) => void;
2602
+
2603
+ declare const install_13: <T>(app: App<T>) => void;
2604
+
2244
2605
  declare const install_2: <T>(app: App<T>) => void;
2245
2606
 
2246
2607
  declare const install_3: <T>(app: App<T>) => void;
@@ -2263,11 +2624,63 @@ declare const installPrompt: <T>(app: App<T>) => void;
2263
2624
 
2264
2625
  declare const installPrompts: <T>(app: App<T>) => void;
2265
2626
 
2627
+ export declare interface ISuggestionItem {
2628
+ content: string;
2629
+ highlights?: string[] | HighlightFunction;
2630
+ }
2631
+
2266
2632
  export declare interface KeyboardHandler {
2267
2633
  handleKeyPress: (e: KeyboardEvent) => void;
2268
2634
  triggerSubmit: () => void;
2269
2635
  }
2270
2636
 
2637
+ export declare interface MarketCategoryOption {
2638
+ value: string;
2639
+ label: string;
2640
+ }
2641
+
2642
+ export declare interface McpServerPickerEmits {
2643
+ (e: 'market-category-change', category: string): void;
2644
+ (e: 'tab-change', activeTab: 'installed' | 'market'): void;
2645
+ (e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
2646
+ (e: 'plugin-delete', plugin: PluginInfo): void;
2647
+ (e: 'plugin-add', plugin: PluginInfo, added: boolean): void;
2648
+ (e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
2649
+ (e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
2650
+ (e: 'refresh', tab: 'installed' | 'market'): void;
2651
+ (e: 'update:activeCount', count: number): void;
2652
+ (e: 'update:visible', visible: boolean): void;
2653
+ }
2654
+
2655
+ export declare interface McpServerPickerProps {
2656
+ installedPlugins?: PluginInfo[];
2657
+ marketPlugins?: PluginInfo[];
2658
+ searchPlaceholder?: string;
2659
+ enableSearch?: boolean;
2660
+ installedSearchFn?: (query: string, item: PluginInfo) => boolean;
2661
+ marketSearchFn?: (query: string, item: PluginInfo) => boolean;
2662
+ marketCategoryOptions?: MarketCategoryOption[];
2663
+ marketCategoryPlaceholder?: string;
2664
+ enableMarketCategoryFilter?: boolean;
2665
+ defaultActiveTab?: 'installed' | 'market';
2666
+ showInstalledTab?: boolean;
2667
+ showMarketTab?: boolean;
2668
+ visible?: boolean;
2669
+ popupConfig?: PopupConfig;
2670
+ activeCount?: number;
2671
+ installedTabTitle?: string;
2672
+ marketTabTitle?: string;
2673
+ title?: string;
2674
+ showCustomAddButton?: boolean;
2675
+ customAddButtonText?: string;
2676
+ allowPluginToggle?: boolean;
2677
+ allowToolToggle?: boolean;
2678
+ allowPluginDelete?: boolean;
2679
+ allowPluginAdd?: boolean;
2680
+ loading?: boolean;
2681
+ marketLoading?: boolean;
2682
+ }
2683
+
2271
2684
  export declare type MultiTabHistoryProps = {
2272
2685
  tabs: {
2273
2686
  title: string;
@@ -2276,7 +2689,70 @@ export declare type MultiTabHistoryProps = {
2276
2689
  data: Record<string, HistoryData>;
2277
2690
  } & BaseHistoryProps;
2278
2691
 
2279
- declare const Prompt: typeof _default_22 & {
2692
+ export declare interface PluginCardEmits {
2693
+ (e: 'toggle-plugin', enabled: boolean): void;
2694
+ (e: 'toggle-tool', toolId: string, enabled: boolean): void;
2695
+ (e: 'add-plugin', added: boolean): void;
2696
+ (e: 'delete-plugin'): void;
2697
+ }
2698
+
2699
+ export declare type PluginCardMode = 'installed' | 'market';
2700
+
2701
+ export declare interface PluginCardProps {
2702
+ plugin: PluginInfo;
2703
+ mode?: PluginCardMode;
2704
+ showToolCount?: boolean;
2705
+ }
2706
+
2707
+ export declare type PluginCreationData = PluginFormData | string;
2708
+
2709
+ export declare interface PluginFormData {
2710
+ name: string;
2711
+ description: string;
2712
+ type: 'sse' | 'streamableHttp';
2713
+ url: string;
2714
+ headers: string;
2715
+ thumbnail?: File | null;
2716
+ }
2717
+
2718
+ export declare interface PluginInfo {
2719
+ id: string;
2720
+ name: string;
2721
+ icon: string;
2722
+ description: string;
2723
+ enabled: boolean;
2724
+ expanded?: boolean;
2725
+ tools: PluginTool[];
2726
+ added?: boolean;
2727
+ category?: string;
2728
+ }
2729
+
2730
+ export declare interface PluginModalEmits {
2731
+ (e: 'update:visible', value: boolean): void;
2732
+ (e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
2733
+ }
2734
+
2735
+ export declare interface PluginTool {
2736
+ id: string;
2737
+ name: string;
2738
+ description: string;
2739
+ enabled: boolean;
2740
+ }
2741
+
2742
+ export declare interface PopupConfig {
2743
+ type: 'fixed' | 'drawer';
2744
+ position?: {
2745
+ top?: string | number;
2746
+ left?: string | number;
2747
+ right?: string | number;
2748
+ bottom?: string | number;
2749
+ };
2750
+ drawer?: {
2751
+ direction: 'left' | 'right';
2752
+ };
2753
+ }
2754
+
2755
+ declare const Prompt: typeof _default_26 & {
2280
2756
  install: typeof installPrompt;
2281
2757
  };
2282
2758
  export { Prompt }
@@ -2307,9 +2783,13 @@ export declare interface PromptProps {
2307
2783
  * 提示徽章,显示在提示项的右上角
2308
2784
  */
2309
2785
  badge?: string | VNode;
2786
+ /**
2787
+ * 提示项大小。默认 medium
2788
+ */
2789
+ size?: 'small' | 'medium' | 'large';
2310
2790
  }
2311
2791
 
2312
- declare const Prompts: typeof _default_23 & {
2792
+ declare const Prompts: typeof _default_27 & {
2313
2793
  install: typeof installPrompts;
2314
2794
  };
2315
2795
  export { Prompts }
@@ -2346,55 +2826,23 @@ export declare interface PromptsSlots {
2346
2826
  footer?: () => unknown;
2347
2827
  }
2348
2828
 
2349
- declare interface Question_2 {
2350
- id: string;
2351
- text: string;
2352
- keywords?: string[];
2829
+ export declare interface RawFileAttachment extends BaseAttachment {
2830
+ rawFile: File;
2831
+ url?: string;
2832
+ size?: number;
2353
2833
  }
2354
2834
 
2355
2835
  /**
2356
- * Question组件属性定义
2836
+ * 文件拒绝原因
2357
2837
  */
2358
- declare interface QuestionProps {
2359
- /**
2360
- * 问题分类列表
2361
- * 包含多个分类,每个分类下有多个问题
2362
- */
2363
- categories: Category_2[];
2364
- /**
2365
- * 浮动显示的问题列表
2366
- * 显示在组件底部的常见问题胶囊
2367
- */
2368
- commonQuestions: Question_2[];
2369
- /**
2370
- * 是否初始展开常见问题
2371
- * @default false
2372
- */
2373
- initialExpanded?: boolean;
2374
- /**
2375
- * 弹窗宽度
2376
- * @default '640px'
2377
- */
2378
- modalWidth?: string;
2379
- /**
2380
- * 主题类型
2381
- * @default 'light'
2382
- */
2383
- theme?: ThemeType_3;
2384
- /**
2385
- * 是否点击外部关闭弹窗
2386
- * @default true
2387
- */
2388
- closeOnClickOutside?: boolean;
2389
- /**
2390
- * 是否显示加载中状态
2391
- * @default false
2392
- */
2393
- loading?: boolean;
2838
+ export declare interface RejectionReason {
2839
+ code: DragZoneErrorCode;
2840
+ message: string;
2394
2841
  }
2395
2842
 
2396
2843
  export declare type SenderEmits = {
2397
2844
  (e: 'update:modelValue', value: string): void;
2845
+ (e: 'update:templateData', value: UserItem[]): void;
2398
2846
  (e: 'submit', value: string): void;
2399
2847
  (e: 'clear'): void;
2400
2848
  (e: 'speech-start'): void;
@@ -2407,6 +2855,7 @@ export declare type SenderEmits = {
2407
2855
  (e: 'escape-press'): void;
2408
2856
  (e: 'cancel'): void;
2409
2857
  (e: 'reset-template'): void;
2858
+ (e: 'files-selected', files: File[]): void;
2410
2859
  };
2411
2860
 
2412
2861
  export declare interface SenderProps {
@@ -2421,26 +2870,16 @@ export declare interface SenderProps {
2421
2870
  modelValue?: string;
2422
2871
  mode?: InputMode;
2423
2872
  maxLength?: number;
2873
+ buttonGroup?: ButtonGroupConfig;
2424
2874
  submitType?: SubmitTrigger;
2425
2875
  speech?: boolean | SpeechConfig;
2426
2876
  placeholder?: string;
2427
2877
  showWordLimit?: boolean;
2428
- suggestions?: string[];
2878
+ suggestions?: ISuggestionItem[];
2429
2879
  suggestionPopupWidth?: string | number;
2430
2880
  theme?: ThemeType;
2431
- template?: string;
2432
- hasContent?: boolean;
2433
- templateInitialValues?: Record<string, string>;
2434
- }
2435
-
2436
- /**
2437
- * 设置模板的参数接口
2438
- */
2439
- export declare interface SetTemplateParams {
2440
- /** 模板字符串,格式为普通文本与 [占位符] 的组合 */
2441
- template: string;
2442
- /** 字段初始值,键为占位符文本,值为初始内容 */
2443
- initialValues?: Record<string, string>;
2881
+ templateData?: UserItem[];
2882
+ stopText?: string;
2444
2883
  }
2445
2884
 
2446
2885
  export declare type SingleTabHistoryProps = {
@@ -2477,81 +2916,23 @@ export declare interface SpeechState {
2477
2916
 
2478
2917
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2479
2918
 
2480
- declare interface SuggestionBaseItem {
2919
+ export declare interface SuggestionBaseItem {
2481
2920
  id: string;
2482
2921
  text: string;
2483
2922
  }
2484
2923
 
2485
- declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
2924
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2486
2925
 
2487
- /**
2488
- * 组件事件
2489
- */
2490
- export declare interface SuggestionEmits {
2491
- /** 双向绑定打开状态 (v-model) */
2492
- (e: 'update:open', value: boolean): void;
2493
- /** 选中指令项 */
2494
- (e: 'select', value: string, context?: TriggerContext): void;
2495
- /** 关闭面板 */
2496
- (e: 'close'): void;
2497
- /** 触发回调 */
2498
- (e: 'trigger', handler: TriggerHandler): void;
2499
- /** 选择分类 */
2500
- (e: 'category-select', category: Category): void;
2501
- /** 点击胶囊指令 */
2502
- (e: 'suggestion-select', item: SuggestionItem): void;
2503
- /** 展开/收起状态变化 */
2504
- (e: 'update:expanded', expanded: boolean): void;
2505
- /** 填充模板到输入框 */
2506
- (e: 'fill-template', template: string): void;
2507
- }
2508
-
2509
- declare interface SuggestionGroup<T = Record<string, unknown>> {
2926
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2510
2927
  group: string;
2511
2928
  label: string;
2512
2929
  icon?: VNode | Component;
2513
- items: SuggestionItem_2<T>[];
2514
- }
2515
-
2516
- /**
2517
- * 指令项定义
2518
- */
2519
- export declare interface SuggestionItem {
2520
- /** 唯一标识 */
2521
- id: string;
2522
- /** 显示文本 */
2523
- text: string;
2524
- /** 指令值 */
2525
- value: string;
2526
- /** 图标 */
2527
- icon?: VNode;
2528
- /** 关键词,用于搜索和过滤 */
2529
- keywords?: string[];
2530
- /** 描述文本 */
2531
- description?: string;
2532
- /** 指令模板,用于在输入框中显示可编辑的模板 */
2533
- template?: string;
2930
+ items: SuggestionItem<T>[];
2534
2931
  }
2535
2932
 
2536
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
2537
-
2538
- export declare type SuggestionPillAction = {
2539
- type: 'popover';
2540
- props: SuggestionPopoverProps;
2541
- slots?: Omit<SuggestionPopoverSlots, 'default'>;
2542
- events?: SuggestionPopoverEvents;
2543
- } | {
2544
- type: 'menu';
2545
- props: DropdownMenuProps;
2546
- events?: DropdownMenuEvents;
2547
- };
2548
-
2549
- export declare type SuggestionPillBaseItem<T> = {
2550
- id: string;
2551
- action?: SuggestionPillAction;
2552
- } & T;
2933
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2553
2934
 
2554
- declare const SuggestionPillButton: typeof _default_28 & {
2935
+ declare const SuggestionPillButton: typeof _default_29 & {
2555
2936
  install: typeof installPillButton;
2556
2937
  };
2557
2938
  export { SuggestionPillButton }
@@ -2566,21 +2947,19 @@ export declare interface SuggestionPillButtonSlots {
2566
2947
  icon?: () => unknown;
2567
2948
  }
2568
2949
 
2569
- export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
2950
+ export declare type SuggestionPillItem = {
2570
2951
  text: string;
2571
2952
  icon?: VNode | Component;
2572
2953
  } | {
2573
2954
  text?: string;
2574
2955
  icon: VNode | Component;
2575
- });
2956
+ };
2576
2957
 
2577
2958
  export declare interface SuggestionPillsEmits {
2578
- (e: 'item-click', item: SuggestionPillItem): void;
2579
2959
  (e: 'click-outside', event: MouseEvent): void;
2580
2960
  }
2581
2961
 
2582
2962
  export declare interface SuggestionPillsProps {
2583
- items?: SuggestionPillItem[];
2584
2963
  /**
2585
2964
  * model:showAll
2586
2965
  */
@@ -2592,22 +2971,64 @@ export declare interface SuggestionPillsProps {
2592
2971
  * @default 'hover'
2593
2972
  */
2594
2973
  showAllButtonOn?: 'hover' | 'always';
2974
+ /**
2975
+ * 控制多余按钮如何展示
2976
+ * - expand: 点击更多按钮展开所有项
2977
+ * - scroll: 横向滚动显示多余项
2978
+ * @default 'expand'
2979
+ */
2980
+ overflowMode?: 'expand' | 'scroll';
2981
+ /**
2982
+ * 鼠标悬停时是否自动滚动到可见区域
2983
+ */
2984
+ autoScrollOn?: 'mouseenter' | 'click';
2595
2985
  }
2596
2986
 
2597
- /**
2598
- * @deprecated
2599
- */
2600
2987
  export declare interface SuggestionPillsSlots {
2601
- default?: () => VNode | VNode[];
2988
+ default?: () => VNode[];
2602
2989
  }
2603
2990
 
2604
- declare interface SuggestionPopoverEvents {
2605
- itemClick?: (item: SuggestionItem_2) => void;
2991
+ export declare interface SuggestionPopoverEmits {
2992
+ (e: 'item-click', item: SuggestionItem): void;
2993
+ (e: 'group-click', group: SuggestionGroup): void;
2994
+ (e: 'open'): void;
2995
+ (e: 'close'): void;
2996
+ (e: 'click-outside', event: MouseEvent): void;
2997
+ }
2998
+
2999
+ export declare interface SuggestionPopoverEventProps {
3000
+ onItemClick?: (item: SuggestionItem) => void;
3001
+ onGroupClick?: (group: SuggestionGroup) => void;
3002
+ onOpen?: () => void;
3003
+ onClose?: () => void;
3004
+ onClickOutside?: (event: MouseEvent) => void;
3005
+ }
3006
+
3007
+ export declare interface SuggestionPopoverEvents {
3008
+ /**
3009
+ * @deprecated use onItemClick in props instead
3010
+ */
3011
+ itemClick?: (item: SuggestionItem) => void;
3012
+ /**
3013
+ * @deprecated use onGroupClick in props instead
3014
+ */
2606
3015
  groupClick?: (group: SuggestionGroup) => void;
3016
+ /**
3017
+ * @deprecated use onOpen in props instead
3018
+ */
3019
+ open?: () => void;
3020
+ /**
3021
+ * @deprecated use onClose in props instead
3022
+ */
2607
3023
  close?: () => void;
3024
+ /**
3025
+ * @deprecated use onClickOutside in props instead
3026
+ */
3027
+ clickOutside?: (event: MouseEvent) => void;
2608
3028
  }
2609
3029
 
2610
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
3030
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
3031
+ appendTo?: string | HTMLElement;
2611
3032
  data: SuggestionData<T>;
2612
3033
  title?: string;
2613
3034
  icon?: VNode | Component;
@@ -2625,125 +3046,92 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2625
3046
  selectedGroup?: string;
2626
3047
  groupShowMoreTrigger?: 'click' | 'hover';
2627
3048
  loading?: boolean;
2628
- popoverWidth?: string | number;
2629
- popoverHeight?: string | number;
2630
- topOffset?: string | number;
3049
+ topOffset?: number;
2631
3050
  }
2632
3051
 
2633
- declare interface SuggestionPopoverSlots {
2634
- default?: () => unknown;
2635
- loading?: () => unknown;
2636
- empty?: () => unknown;
3052
+ export declare interface SuggestionPopoverSlots {
3053
+ trigger?: () => VNode | VNode[];
3054
+ item?: ({ item }: {
3055
+ item: SuggestionItem;
3056
+ }) => VNode | VNode[];
3057
+ loading?: () => VNode | VNode[];
3058
+ empty?: () => VNode | VNode[];
3059
+ header?: () => VNode | VNode[];
3060
+ body?: () => VNode | VNode[];
2637
3061
  }
2638
3062
 
2639
- /**
2640
- * 组件属性
2641
- */
2642
- export declare interface SuggestionProps {
2643
- /** 触发快捷键列表 */
2644
- triggerKeys?: string[];
2645
- /** 指令项列表 */
2646
- items: SuggestionItem[];
2647
- /** 分类列表 */
2648
- categories?: Category[];
2649
- /** 是否显示面板 (支持v-model) */
2650
- open?: boolean;
2651
- /** 自定义类名 */
2652
- className?: string;
2653
- /** 主题,light或dark */
2654
- theme?: 'light' | 'dark';
2655
- /** 是否显示加载状态 */
2656
- loading?: boolean;
2657
- /** 是否点击外部关闭面板 */
2658
- closeOnOutsideClick?: boolean;
2659
- /** 面板标题 */
2660
- title?: string;
2661
- /** 最大显示条目数 */
2662
- maxVisibleItems?: number;
2663
- /** 默认是否展开完整指令列表 */
2664
- defaultExpanded?: boolean;
3063
+ export declare interface SuggestionTextPart {
3064
+ text: string;
3065
+ isMatch: boolean;
2665
3066
  }
2666
3067
 
2667
- /**
2668
- * 模板编辑器事件
2669
- */
2670
- export declare interface TemplateEditorEmits {
2671
- /** 输入事件 */
2672
- (e: 'input', value: string): void;
2673
- /** 内容变更状态 - 通知父组件是否有内容 */
2674
- (e: 'content-status', hasContent: boolean): void;
2675
- /** 提交事件 */
2676
- (e: 'submit', value: string): void;
2677
- /** 聚焦事件 */
2678
- (e: 'focus', event: FocusEvent): void;
2679
- /** 失焦事件 */
2680
- (e: 'blur', event: FocusEvent): void;
2681
- /** 模板内容为空时触发,通知父组件可以退出模板编辑模式 */
2682
- (e: 'empty-content'): void;
3068
+ declare interface TemplateItem extends BaseTextItem {
3069
+ type: 'template';
3070
+ prefix: string;
3071
+ suffix: string;
2683
3072
  }
2684
3073
 
2685
- /**
2686
- * 模板编辑器暴露的方法
2687
- */
2688
- export declare interface TemplateEditorExpose {
2689
- /** 聚焦到编辑器 */
2690
- focus: () => void;
2691
- /** 重置所有字段 */
2692
- resetFields: () => void;
2693
- /** 激活第一个字段 */
2694
- activateFirstField: () => void;
2695
- /** 获取当前DOM中的值 */
2696
- getValueFromDOM: () => string;
2697
- /** 设置模板和初始值 */
2698
- setTemplate: (params: SetTemplateParams) => void;
3074
+ declare interface TextItem extends BaseTextItem {
3075
+ type: 'text';
2699
3076
  }
2700
3077
 
2701
- /**
2702
- * 模板编辑器属性
2703
- */
2704
- export declare interface TemplateEditorProps {
2705
- /** 当前值 */
2706
- value?: string;
2707
- /** 是否自动聚焦 */
2708
- autofocus?: boolean;
3078
+ export declare interface ThemeProviderProps {
3079
+ /**
3080
+ * 颜色模式(v-model:colorMode),可选值:light、dark、auto,默认值:auto
3081
+ */
3082
+ colorMode?: ColorMode;
3083
+ /**
3084
+ * 应用主题属性选择器的目标元素,默认值:html。主题只会影响 targetElement 下的元素
3085
+ */
3086
+ targetElement?: string;
3087
+ /**
3088
+ * 主题(v-model:theme)
3089
+ */
3090
+ theme?: string;
3091
+ storage?: ThemeStorage;
3092
+ storageKey?: string;
2709
3093
  }
2710
3094
 
2711
- /**
2712
- * 模板部分定义
2713
- */
2714
- export declare interface TemplatePart {
2715
- /** 内容文本 */
2716
- content: string;
2717
- /** 是否为可编辑字段 */
2718
- isField: boolean;
2719
- /** 占位符文本 (当字段为空时显示) */
2720
- placeholder?: string;
2721
- /** 字段索引 (用于标识可编辑字段) */
2722
- fieldIndex?: number;
2723
- }
3095
+ export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
2724
3096
 
2725
3097
  /**
2726
3098
  * 组件核心类型定义
2727
3099
  */
2728
3100
  export declare type ThemeType = 'light' | 'dark';
2729
3101
 
2730
- declare type ThemeType_3 = 'light' | 'dark';
3102
+ export declare type TooltipRender = () => VNode | string;
2731
3103
 
2732
- /**
2733
- * 触发位置信息
2734
- */
2735
- export declare interface TriggerContext {
2736
- /** 触发的文本 */
2737
- text: string;
2738
- /** 触发的位置 */
2739
- position: number;
3104
+ export declare interface UrlAttachment extends BaseAttachment {
3105
+ url: string;
3106
+ size: number;
3107
+ rawFile?: File;
2740
3108
  }
2741
3109
 
2742
- /** 触发处理函数类型 */
2743
- export declare type TriggerHandler = (info: TriggerInfo) => void;
3110
+ export declare type UserItem = UserTextItem | UserTemplateItem;
2744
3111
 
2745
- /** 触发信息类型 */
2746
- export declare type TriggerInfo = TriggerContext | false;
3112
+ export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
3113
+ id?: TemplateItem['id'];
3114
+ };
3115
+
3116
+ export declare type UserTextItem = Omit<TextItem, 'id'> & {
3117
+ id?: TextItem['id'];
3118
+ };
3119
+
3120
+ export declare const useTheme: () => {
3121
+ theme: Ref<string, string> | undefined;
3122
+ colorMode: Ref<ColorMode, ColorMode> | undefined;
3123
+ resolvedColorMode: ComputedRef<Readonly<"light" | "dark">> | undefined;
3124
+ setTheme: (newTheme: string) => boolean;
3125
+ toggleColorMode: () => boolean;
3126
+ setColorMode: (mode: ColorMode) => boolean;
3127
+ };
3128
+
3129
+ /**
3130
+ * 拖拽区域指令
3131
+ * @param el 元素
3132
+ * @param binding 绑定
3133
+ */
3134
+ export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
2747
3135
 
2748
3136
  export declare interface WelcomeProps {
2749
3137
  title: string;