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

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,33 @@ 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 AddType = 'form' | 'code';
1865
+
1866
+ export declare type Attachment = UrlAttachment | RawFileAttachment;
1867
+
1868
+ export declare interface AttachmentListEmits {
1869
+ (e: 'update:items', items: Attachment[]): void;
1870
+ (e: 'remove', file: Attachment): void;
1871
+ (e: 'download', event: MouseEvent, file: Attachment): void;
1872
+ (e: 'retry', file: Attachment): void;
1873
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
1874
+ (e: 'action', payload: {
1875
+ action: ActionButton;
1876
+ file: Attachment;
1877
+ }): void;
1878
+ }
1879
+
1880
+ export declare interface AttachmentListProps {
1881
+ items?: Attachment[];
1882
+ disabled?: boolean;
1883
+ wrap?: boolean;
1884
+ fileIcons?: Record<string, Component>;
1885
+ actions?: ActionButton[];
1886
+ variant?: DisplayVariant;
1887
+ fileMatchers?: FileTypeMatcher[];
1809
1888
  }
1810
1889
 
1811
1890
  export declare type AutoSize = boolean | {
@@ -1813,6 +1892,18 @@ export declare type AutoSize = boolean | {
1813
1892
  maxRows: number;
1814
1893
  };
1815
1894
 
1895
+ export declare interface BaseAttachment {
1896
+ id?: string;
1897
+ name?: string;
1898
+ status?: FileStatus;
1899
+ fileType?: FileType;
1900
+ message?: string;
1901
+ }
1902
+
1903
+ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1904
+
1905
+ export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1906
+
1816
1907
  declare interface BaseHistoryProps {
1817
1908
  activeTab?: string;
1818
1909
  searchBar?: boolean;
@@ -1822,26 +1913,18 @@ declare interface BaseHistoryProps {
1822
1913
  selected?: string;
1823
1914
  }
1824
1915
 
1825
- declare const Bubble: typeof _default_14 & {
1916
+ declare interface BaseTextItem {
1917
+ id: string;
1918
+ type: string;
1919
+ content: string;
1920
+ }
1921
+
1922
+ declare const Bubble: typeof _default_18 & {
1826
1923
  install: typeof bubbleInstall;
1827
1924
  };
1828
1925
  export { Bubble }
1829
1926
  export { Bubble as TrBubble }
1830
1927
 
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
1928
  export declare interface BubbleCommonProps {
1846
1929
  /**
1847
1930
  * 气泡对齐位置
@@ -1857,16 +1940,43 @@ export declare interface BubbleCommonProps {
1857
1940
  shape?: 'rounded' | 'corner';
1858
1941
  /**
1859
1942
  * 气泡内容渲染器。
1860
- * 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1943
+ * 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1944
+ */
1945
+ contentRenderer?: BubbleContentRenderer;
1946
+ /**
1947
+ * 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
1948
+ */
1949
+ customContentField?: string;
1950
+ /**
1951
+ * 气泡中止文本
1952
+ */
1953
+ abortedText?: string;
1954
+ /**
1955
+ * 气泡最大宽度
1861
1956
  */
1862
- contentRenderer?: BubbleMessageRenderer;
1863
- hidden?: boolean;
1864
1957
  maxWidth?: string | number;
1865
1958
  }
1866
1959
 
1960
+ export declare abstract class BubbleContentClassRenderer {
1961
+ abstract render(options: {
1962
+ [key: string]: any;
1963
+ }): VNode;
1964
+ }
1965
+
1966
+ export declare type BubbleContentFunctionRenderer = (options: {
1967
+ [key: string]: any;
1968
+ }) => VNode;
1969
+
1970
+ export declare interface BubbleContentItem {
1971
+ type: string;
1972
+ [key: string]: any;
1973
+ }
1974
+
1975
+ export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
1976
+
1867
1977
  declare const bubbleInstall: (app: App) => void;
1868
1978
 
1869
- declare const BubbleList: typeof _default_15 & {
1979
+ declare const BubbleList: typeof _default_19 & {
1870
1980
  install: typeof bubbleListInstall;
1871
1981
  };
1872
1982
  export { BubbleList }
@@ -1893,18 +2003,16 @@ export declare interface BubbleListProps {
1893
2003
  autoScroll?: boolean;
1894
2004
  }
1895
2005
 
1896
- export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1897
- readonly md: default_2;
2006
+ export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
1898
2007
  readonly mdConfig: Options;
1899
2008
  readonly dompurifyConfig: Config;
1900
2009
  readonly sanitizeDisabled: boolean;
1901
- readonly styleOptions: {
1902
- class?: string;
1903
- style?: string;
1904
- };
1905
- constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
2010
+ readonly defaultAttrs: Record<string, unknown>;
2011
+ private md;
2012
+ constructor(options?: BubbleMarkdownRendererOptions);
1906
2013
  render(options: {
1907
2014
  content?: string;
2015
+ [key: string]: unknown;
1908
2016
  }): VNode<RendererNode, RendererElement, {
1909
2017
  [key: string]: any;
1910
2018
  }>;
@@ -1914,45 +2022,21 @@ declare interface BubbleMarkdownRendererOptions {
1914
2022
  mdConfig?: Options;
1915
2023
  dompurifyConfig?: Config;
1916
2024
  sanitizeDisabled?: boolean;
1917
- styleOptions?: {
1918
- class?: string;
1919
- style?: string;
1920
- };
2025
+ defaultAttrs?: Record<string, unknown>;
1921
2026
  }
1922
2027
 
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;
1936
- }
1937
-
1938
- export declare type BubbleMessageRenderer = BubbleMessageFunctionRenderer | BubbleMessageClassRenderer | Component | {
1939
- component: Component;
1940
- defaultProps: Record<string, unknown>;
1941
- };
1942
-
1943
2028
  export declare interface BubbleProps extends BubbleCommonProps {
1944
2029
  /**
1945
2030
  * 气泡内容
1946
2031
  */
1947
- content?: string;
1948
- messages?: BubbleMessageProps[];
2032
+ content?: string | BubbleContentItem[];
1949
2033
  id?: string | number | symbol;
1950
2034
  role?: string;
1951
2035
  loading?: boolean;
1952
2036
  aborted?: boolean;
1953
2037
  }
1954
2038
 
1955
- declare const BubbleProvider: typeof _default_16 & {
2039
+ declare const BubbleProvider: typeof _default_20 & {
1956
2040
  install: typeof bubbleProviderInstall;
1957
2041
  };
1958
2042
  export { BubbleProvider }
@@ -1961,6 +2045,7 @@ export { BubbleProvider as TrBubbleProvider }
1961
2045
  declare const bubbleProviderInstall: (app: App) => void;
1962
2046
 
1963
2047
  export declare type BubbleRoleConfig = BubbleCommonProps & {
2048
+ hidden?: boolean;
1964
2049
  slots?: BubbleSlots;
1965
2050
  };
1966
2051
 
@@ -1976,25 +2061,15 @@ export declare interface BubbleSlots {
1976
2061
  }) => unknown;
1977
2062
  }
1978
2063
 
1979
- /**
1980
- * 分类定义
1981
- */
1982
- export declare interface Category {
1983
- /** 唯一标识 */
1984
- id: string;
1985
- /** 显示名称 */
1986
- label: string;
1987
- /** 可选图标 */
1988
- icon?: VNode;
1989
- /** 该分类下的指令项 */
1990
- items: SuggestionItem[];
2064
+ export declare interface ButtonGroupConfig {
2065
+ file?: ControlState & fileUploadConfig;
2066
+ submit?: ControlState;
1991
2067
  }
1992
2068
 
1993
- declare interface Category_2 {
1994
- id: string;
1995
- label: string;
1996
- icon?: string;
1997
- questions: Question_2[];
2069
+ export declare type ColorMode = 'light' | 'dark' | 'auto';
2070
+
2071
+ export declare interface ContainerEmits {
2072
+ (e: 'close'): void;
1998
2073
  }
1999
2074
 
2000
2075
  export declare interface ContainerProps {
@@ -2006,6 +2081,7 @@ export declare interface ContainerProps {
2006
2081
  * model:fullscreen
2007
2082
  */
2008
2083
  fullscreen?: boolean;
2084
+ title?: string;
2009
2085
  }
2010
2086
 
2011
2087
  export declare interface ContainerSlots {
@@ -2015,139 +2091,336 @@ export declare interface ContainerSlots {
2015
2091
  footer: () => unknown;
2016
2092
  }
2017
2093
 
2094
+ export declare interface ControlState {
2095
+ tooltips?: string | TooltipRender;
2096
+ disabled?: boolean;
2097
+ }
2098
+
2018
2099
  declare const _default: {
2019
2100
  install<T>(app: App<T>): void;
2020
2101
  };
2021
2102
  export default _default;
2022
2103
 
2023
- declare const _default_10: typeof _default_26 & {
2104
+ declare const _default_10: typeof _default_29 & {
2024
2105
  install: typeof install_8;
2025
2106
  };
2026
- export { _default_10 as Suggestion }
2027
- export { _default_10 as TrSuggestion }
2107
+ export { _default_10 as Sender }
2108
+ export { _default_10 as TrSender }
2028
2109
 
2029
- declare const _default_11: typeof _default_27 & {
2110
+ declare const _default_11: typeof _default_31 & {
2030
2111
  install: typeof install_9;
2031
2112
  };
2032
2113
  export { _default_11 as SuggestionPills }
2033
2114
  export { _default_11 as TrSuggestionPills }
2034
2115
 
2035
- declare const _default_12: typeof _default_29 & {
2116
+ declare const _default_12: typeof _default_32 & {
2036
2117
  install: typeof install_10;
2037
2118
  };
2038
- export { _default_12 as Question }
2039
- export { _default_12 as TrQuestion }
2119
+ export { _default_12 as SuggestionPopover }
2120
+ export { _default_12 as TrSuggestionPopover }
2040
2121
 
2041
- declare const _default_13: typeof _default_30 & {
2122
+ declare const _default_13: typeof _default_33 & {
2042
2123
  install: typeof install_11;
2043
2124
  };
2044
- export { _default_13 as SuggestionPopover }
2045
- export { _default_13 as TrSuggestionPopover }
2125
+ export { _default_13 as ThemeProvider }
2126
+ export { _default_13 as TrThemeProvider }
2127
+
2128
+ declare const _default_14: typeof _default_34 & {
2129
+ install: typeof install_12;
2130
+ };
2131
+ export { _default_14 as TrWelcome }
2132
+ export { _default_14 as Welcome }
2133
+
2134
+ declare const _default_15: typeof _default_35 & {
2135
+ install: typeof install_13;
2136
+ };
2137
+ export { _default_15 as McpServerPicker }
2138
+ export { _default_15 as TrMcpServerPicker }
2139
+
2140
+ declare const _default_16: typeof _default_36 & {
2141
+ install: typeof install_14;
2142
+ };
2143
+ export { _default_16 as McpAddForm }
2144
+ export { _default_16 as TrMcpAddForm }
2145
+
2146
+ declare const _default_17: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2147
+ "update:items": (items: Attachment[]) => any;
2148
+ remove: (file: Attachment) => any;
2149
+ download: (event: MouseEvent, file: Attachment) => any;
2150
+ retry: (file: Attachment) => any;
2151
+ preview: (event: MouseEvent, file: Attachment) => any;
2152
+ action: (payload: {
2153
+ action: ActionButton;
2154
+ file: Attachment;
2155
+ }) => any;
2156
+ }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2157
+ "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2158
+ onRemove?: ((file: Attachment) => any) | undefined;
2159
+ onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2160
+ onRetry?: ((file: Attachment) => any) | undefined;
2161
+ onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2162
+ onAction?: ((payload: {
2163
+ action: ActionButton;
2164
+ file: Attachment;
2165
+ }) => any) | undefined;
2166
+ }>, {
2167
+ actions: ActionButton[];
2168
+ fileMatchers: FileTypeMatcher_2[];
2169
+ variant: DisplayVariant_2;
2170
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2046
2171
 
2047
- declare const _default_14: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2172
+ declare const _default_18: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
2048
2173
 
2049
- declare const _default_15: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2174
+ declare const _default_19: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
2050
2175
  scrollContainerRef: HTMLDivElement;
2051
2176
  }, HTMLDivElement>;
2052
2177
 
2053
- declare const _default_16: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2178
+ declare const _default_2: typeof _default_17 & {
2179
+ install: typeof install;
2180
+ };
2181
+ export { _default_2 as Attachments }
2182
+ export { _default_2 as TrAttachments }
2054
2183
 
2055
- declare const _default_17: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2184
+ declare const _default_20: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
2056
2185
 
2057
- declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2186
+ declare const _default_21: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
2058
2187
 
2059
- declare const _default_19: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2188
+ declare const _default_22: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2060
2189
 
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 }
2190
+ declare const _default_23: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2066
2191
 
2067
- declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2068
- operation: (name: string) => any;
2192
+ declare const _default_24: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2193
+
2194
+ declare const _default_25: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2069
2195
  action: (name: string) => any;
2196
+ operation: (name: string) => any;
2070
2197
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
2071
- onOperation?: ((name: string) => any) | undefined;
2072
2198
  onAction?: ((name: string) => any) | undefined;
2199
+ onOperation?: ((name: string) => any) | undefined;
2073
2200
  }>, {
2074
2201
  operationsLimit: number;
2075
2202
  actionsLimit: number;
2076
2203
  sourcesLinesLimit: number;
2077
2204
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2078
2205
 
2079
- declare const _default_21: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2206
+ declare const _default_26: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2080
2207
  size: string | number;
2081
2208
  svgSize: string | number;
2082
2209
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2083
2210
 
2084
- declare const _default_22: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2211
+ declare const _default_27: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2212
+ size: "small" | "medium" | "large";
2213
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2085
2214
 
2086
- declare const _default_23: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
2215
+ declare const _default_28: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2087
2216
 
2088
- declare const _default_24: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2217
+ declare const _default_29: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2089
2218
 
2090
- declare const _default_25: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2219
+ declare const _default_3: typeof _default_21 & {
2220
+ install: typeof install_2;
2221
+ };
2222
+ export { _default_3 as Container }
2223
+ export { _default_3 as TrContainer }
2091
2224
 
2092
- declare const _default_26: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2225
+ declare const _default_30: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2093
2226
 
2094
- declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2227
+ declare const _default_31: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2095
2228
 
2096
- declare const _default_28: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2229
+ declare const _default_32: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2097
2230
 
2098
- declare const _default_29: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2231
+ declare const _default_33: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2099
2232
 
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 }
2233
+ declare const _default_34: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2105
2234
 
2106
- declare const _default_30: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2235
+ declare const _default_35: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2236
+ "update:visible": (value: boolean) => any;
2237
+ } & {
2238
+ refresh: (tab: "installed" | "market") => any;
2239
+ "update:visible": (visible: boolean) => any;
2240
+ "market-category-change": (category: string) => any;
2241
+ "tab-change": (activeTab: "installed" | "market") => any;
2242
+ "plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
2243
+ "plugin-delete": (plugin: PluginInfo) => any;
2244
+ "plugin-add": (plugin: PluginInfo) => any;
2245
+ "plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
2246
+ "tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
2247
+ "update:activeCount": (count: number) => any;
2248
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
2249
+ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
2250
+ "onUpdate:visible"?: ((value: boolean) => any) | undefined;
2251
+ "onMarket-category-change"?: ((category: string) => any) | undefined;
2252
+ "onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
2253
+ "onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
2254
+ "onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
2255
+ "onPlugin-add"?: ((plugin: PluginInfo) => any) | undefined;
2256
+ "onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
2257
+ "onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
2258
+ "onUpdate:activeCount"?: ((count: number) => any) | undefined;
2259
+ }>, {
2260
+ title: string;
2261
+ loading: boolean;
2262
+ searchPlaceholder: string;
2263
+ installedPlugins: PluginInfo[];
2264
+ marketPlugins: PluginInfo[];
2265
+ enableSearch: boolean;
2266
+ installedSearchFn: (query: string, item: PluginInfo) => boolean;
2267
+ marketSearchFn: (query: string, item: PluginInfo) => boolean;
2268
+ marketCategoryOptions: MarketCategoryOption_2[];
2269
+ marketCategoryPlaceholder: string;
2270
+ enableMarketCategoryFilter: boolean;
2271
+ defaultActiveTab: "installed" | "market";
2272
+ showInstalledTab: boolean;
2273
+ showMarketTab: boolean;
2274
+ popupConfig: PopupConfig;
2275
+ installedTabTitle: string;
2276
+ marketTabTitle: string;
2277
+ showCustomAddButton: boolean;
2278
+ customAddButtonText: string;
2279
+ allowPluginToggle: boolean;
2280
+ allowToolToggle: boolean;
2281
+ allowPluginDelete: boolean;
2282
+ allowPluginAdd: boolean;
2283
+ marketLoading: boolean;
2284
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2285
+
2286
+ declare const _default_36: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2287
+ cancel: () => any;
2288
+ confirm: (type: AddType, data: string | McpAddFormData) => any;
2289
+ "update:addType": (value: AddType) => any;
2290
+ }, string, PublicProps, Readonly<McpAddFormProps> & Readonly<{
2291
+ onCancel?: (() => any) | undefined;
2292
+ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
2293
+ "onUpdate:addType"?: ((value: AddType) => any) | undefined;
2294
+ }>, {
2295
+ addType: AddType;
2296
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2107
2297
 
2108
- declare const _default_4: typeof _default_19 & {
2298
+ declare const _default_4: typeof _default_22 & {
2109
2299
  install: typeof install_3;
2110
2300
  };
2111
- export { _default_4 as DropdownMenu }
2112
- export { _default_4 as TrDropdownMenu }
2301
+ export { _default_4 as Conversations }
2302
+ export { _default_4 as TrConversations }
2113
2303
 
2114
- declare const _default_5: typeof _default_20 & {
2304
+ declare const _default_5: typeof _default_23 & {
2115
2305
  install: typeof install_4;
2116
2306
  };
2117
- export { _default_5 as Feedback }
2118
- export { _default_5 as TrFeedback }
2307
+ export { _default_5 as DragOverlay }
2308
+ export { _default_5 as TrDragOverlay }
2119
2309
 
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 & {
2310
+ declare const _default_6: typeof _default_24 & {
2128
2311
  install: typeof install_5;
2129
2312
  };
2130
- export { _default_7 as IconButton }
2131
- export { _default_7 as TrIconButton }
2313
+ export { _default_6 as DropdownMenu }
2314
+ export { _default_6 as TrDropdownMenu }
2132
2315
 
2133
- declare const _default_8: typeof _default_24 & {
2316
+ declare const _default_7: typeof _default_25 & {
2134
2317
  install: typeof install_6;
2135
2318
  };
2136
- export { _default_8 as Sender }
2137
- export { _default_8 as TrSender }
2319
+ export { _default_7 as Feedback }
2320
+ export { _default_7 as TrFeedback }
2321
+
2322
+ declare const _default_8: {
2323
+ install: <T>(app: App<T>) => void;
2324
+ name: string;
2325
+ };
2326
+ export { _default_8 as History }
2327
+ export { _default_8 as TrHistory }
2138
2328
 
2139
- declare const _default_9: typeof _default_25 & {
2329
+ declare const _default_9: typeof _default_26 & {
2140
2330
  install: typeof install_7;
2141
2331
  };
2142
- export { _default_9 as TrWelcome }
2143
- export { _default_9 as Welcome }
2332
+ export { _default_9 as IconButton }
2333
+ export { _default_9 as TrIconButton }
2334
+
2335
+ export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2336
+
2337
+ declare interface DragAwareElement extends HTMLElement {
2338
+ __vDropzoneHandlers__?: Handlers;
2339
+ __vDropzoneOptions__?: DragAwareOptions;
2340
+ }
2341
+
2342
+ declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2343
+
2344
+ /**
2345
+ * 拖拽上传组件的属性
2346
+ */
2347
+ export declare interface DragOverlayProps {
2348
+ /**
2349
+ * 覆盖层标题
2350
+ * @default ''
2351
+ */
2352
+ overlayTitle?: string;
2353
+ /**
2354
+ * 覆盖层描述文本数组
2355
+ * @default []
2356
+ */
2357
+ overlayDescription?: string[];
2358
+ /**
2359
+ * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2360
+ * @default false
2361
+ */
2362
+ isDragging?: boolean;
2363
+ /**
2364
+ * @description 拖拽目标元素,用于定位覆盖层
2365
+ * @default null
2366
+ */
2367
+ dragTarget?: HTMLElement | null;
2368
+ /**
2369
+ * @description 是否全屏模式,控制覆盖层的边框显示
2370
+ * @default false
2371
+ */
2372
+ fullscreen?: boolean;
2373
+ }
2374
+
2375
+ export declare interface DragOverlaySlots {
2376
+ /**
2377
+ * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2378
+ */
2379
+ overlay?: (props: {
2380
+ isDragging: boolean;
2381
+ }) => unknown;
2382
+ }
2383
+
2384
+ /**
2385
+ * 拖拽区域错误码
2386
+ */
2387
+ declare enum DragZoneErrorCode {
2388
+ /**
2389
+ * 文件类型不允许
2390
+ */
2391
+ FileTypeNotAllowed = "file-type-not-allowed",
2392
+ /**
2393
+ * 文件大小超出限制
2394
+ */
2395
+ FileSizeExceeded = "file-size-exceeded",
2396
+ /**
2397
+ * 文件数量超出限制
2398
+ */
2399
+ FileCountExceeded = "file-count-exceeded"
2400
+ }
2144
2401
 
2145
2402
  export declare interface DropdownMenuEmits {
2146
2403
  (e: 'item-click', item: DropdownMenuItem): void;
2404
+ /**
2405
+ * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
2406
+ */
2407
+ (e: 'click-outside', event: MouseEvent): void;
2408
+ }
2409
+
2410
+ export declare interface DropdownMenuEventProps {
2411
+ onItemClick?: (item: DropdownMenuItem) => void;
2412
+ onClickOutside?: (event: MouseEvent) => void;
2147
2413
  }
2148
2414
 
2149
2415
  export declare interface DropdownMenuEvents {
2416
+ /**
2417
+ * @deprecated
2418
+ */
2150
2419
  itemClick?: (item: DropdownMenuItem) => void;
2420
+ /**
2421
+ * @deprecated
2422
+ */
2423
+ clickOutside?: (event: MouseEvent) => void;
2151
2424
  }
2152
2425
 
2153
2426
  export declare interface DropdownMenuItem {
@@ -2156,13 +2429,69 @@ export declare interface DropdownMenuItem {
2156
2429
  }
2157
2430
 
2158
2431
  export declare interface DropdownMenuProps {
2432
+ appendTo?: string | HTMLElement;
2159
2433
  items: DropdownMenuItem[];
2160
- minWidth?: string | number;
2161
- topOffset?: string | number;
2434
+ /**
2435
+ * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
2436
+ * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
2437
+ */
2438
+ show?: boolean;
2439
+ /**
2440
+ * 触发方式。默认值为 'click'
2441
+ */
2442
+ trigger?: 'click' | 'hover' | 'manual';
2162
2443
  }
2163
2444
 
2164
2445
  export declare interface DropdownMenuSlots {
2165
- default?: () => unknown;
2446
+ trigger?: () => VNode | VNode[];
2447
+ }
2448
+
2449
+ /**
2450
+ * 拖拽上传组件的属性
2451
+ */
2452
+ export declare interface DropzoneBinding {
2453
+ /**
2454
+ * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2455
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2456
+ * @example '.jpg,.png,image/*'
2457
+ */
2458
+ accept?: string;
2459
+ /**
2460
+ * 是否允许多选
2461
+ * @default true
2462
+ */
2463
+ multiple?: boolean;
2464
+ /**
2465
+ * 是否禁用拖拽
2466
+ * @default false
2467
+ */
2468
+ disabled?: boolean;
2469
+ /**
2470
+ * 单个文件的最大大小(单位:字节)
2471
+ * @default 10 * 1024 * 1024 (10MB)
2472
+ */
2473
+ maxSize?: number;
2474
+ /**
2475
+ * 允许上传的最大文件数量
2476
+ * @default 3
2477
+ */
2478
+ maxFiles?: number;
2479
+ /**
2480
+ * 拖拽完成后的回调
2481
+ * @param files 上传的文件
2482
+ */
2483
+ onDrop: (files: File[]) => void;
2484
+ /**
2485
+ * 拖拽失败后的回调
2486
+ * @param rejection 拒绝信息
2487
+ */
2488
+ onError: (rejection: FileRejection) => void;
2489
+ /**
2490
+ * 拖拽开始时的回调
2491
+ * @param dragging 是否正在拖拽
2492
+ * @param element 拖拽目标元素
2493
+ */
2494
+ onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2166
2495
  }
2167
2496
 
2168
2497
  export declare interface FeedbackEvents {
@@ -2191,6 +2520,54 @@ export declare interface FeedbackProps {
2191
2520
  sourcesLinesLimit?: number;
2192
2521
  }
2193
2522
 
2523
+ export declare interface FileCardEmits {
2524
+ (e: 'remove', file: Attachment): void;
2525
+ (e: 'preview', event: MouseEvent, file: Attachment): void;
2526
+ (e: 'download', event: MouseEvent, file: Attachment): void;
2527
+ (e: 'retry', file: Attachment): void;
2528
+ (e: 'action', payload: {
2529
+ action: ActionButton;
2530
+ file: Attachment;
2531
+ }): void;
2532
+ }
2533
+
2534
+ export declare interface FileCardProps extends BaseCardProps {
2535
+ file: Attachment;
2536
+ variant: 'picture' | 'card';
2537
+ showStatus?: boolean;
2538
+ }
2539
+
2540
+ /**
2541
+ * 文件拒绝信息
2542
+ */
2543
+ export declare interface FileRejection extends RejectionReason {
2544
+ files: File[];
2545
+ }
2546
+
2547
+ export declare type FileStatus = 'uploading' | 'success' | 'error';
2548
+
2549
+ export declare type FileType = BaseFileType | string;
2550
+
2551
+ export declare interface FileTypeMatcher {
2552
+ type: string;
2553
+ matcher: (file: File | string) => boolean;
2554
+ icon?: Component;
2555
+ }
2556
+
2557
+ declare interface fileUploadConfig {
2558
+ accept?: string;
2559
+ multiple?: boolean;
2560
+ }
2561
+
2562
+ export declare interface Handlers {
2563
+ handleDragEnter: (e: DragEvent) => void;
2564
+ handleDragOver: (e: DragEvent) => void;
2565
+ handleDragLeave: (e: DragEvent) => void;
2566
+ handleDrop: (e: DragEvent) => void;
2567
+ }
2568
+
2569
+ declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2570
+
2194
2571
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2195
2572
 
2196
2573
  export declare interface HistoryEvents {
@@ -2241,6 +2618,12 @@ declare const install_10: <T>(app: App<T>) => void;
2241
2618
 
2242
2619
  declare const install_11: <T>(app: App<T>) => void;
2243
2620
 
2621
+ declare const install_12: <T>(app: App<T>) => void;
2622
+
2623
+ declare const install_13: <T>(app: App<T>) => void;
2624
+
2625
+ declare const install_14: <T>(app: App<T>) => void;
2626
+
2244
2627
  declare const install_2: <T>(app: App<T>) => void;
2245
2628
 
2246
2629
  declare const install_3: <T>(app: App<T>) => void;
@@ -2263,11 +2646,84 @@ declare const installPrompt: <T>(app: App<T>) => void;
2263
2646
 
2264
2647
  declare const installPrompts: <T>(app: App<T>) => void;
2265
2648
 
2649
+ export declare interface ISuggestionItem {
2650
+ content: string;
2651
+ highlights?: string[] | HighlightFunction;
2652
+ }
2653
+
2266
2654
  export declare interface KeyboardHandler {
2267
2655
  handleKeyPress: (e: KeyboardEvent) => void;
2268
2656
  triggerSubmit: () => void;
2269
2657
  }
2270
2658
 
2659
+ export declare interface MarketCategoryOption {
2660
+ value: string;
2661
+ label: string;
2662
+ }
2663
+
2664
+ export declare interface McpAddFormData {
2665
+ name: string;
2666
+ description: string;
2667
+ type: 'sse' | 'streamableHttp';
2668
+ url: string;
2669
+ headers: string;
2670
+ thumbnail?: File | null;
2671
+ }
2672
+
2673
+ export declare interface McpAddFormEmits {
2674
+ (e: 'update:addType', value: AddType): void;
2675
+ (e: 'confirm', type: AddType, data: McpAddFormData | string): void;
2676
+ (e: 'cancel'): void;
2677
+ }
2678
+
2679
+ export declare interface McpAddFormProps {
2680
+ addType?: AddType;
2681
+ formData?: McpAddFormData;
2682
+ codeData?: string;
2683
+ }
2684
+
2685
+ export declare interface McpServerPickerEmits {
2686
+ (e: 'market-category-change', category: string): void;
2687
+ (e: 'tab-change', activeTab: 'installed' | 'market'): void;
2688
+ (e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
2689
+ (e: 'plugin-delete', plugin: PluginInfo): void;
2690
+ (e: 'plugin-add', plugin: PluginInfo): void;
2691
+ (e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
2692
+ (e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
2693
+ (e: 'refresh', tab: 'installed' | 'market'): void;
2694
+ (e: 'update:activeCount', count: number): void;
2695
+ (e: 'update:visible', visible: boolean): void;
2696
+ }
2697
+
2698
+ export declare interface McpServerPickerProps {
2699
+ installedPlugins?: PluginInfo[];
2700
+ marketPlugins?: PluginInfo[];
2701
+ searchPlaceholder?: string;
2702
+ enableSearch?: boolean;
2703
+ installedSearchFn?: (query: string, item: PluginInfo) => boolean;
2704
+ marketSearchFn?: (query: string, item: PluginInfo) => boolean;
2705
+ marketCategoryOptions?: MarketCategoryOption[];
2706
+ marketCategoryPlaceholder?: string;
2707
+ enableMarketCategoryFilter?: boolean;
2708
+ defaultActiveTab?: 'installed' | 'market';
2709
+ showInstalledTab?: boolean;
2710
+ showMarketTab?: boolean;
2711
+ visible?: boolean;
2712
+ popupConfig?: PopupConfig;
2713
+ activeCount?: number;
2714
+ installedTabTitle?: string;
2715
+ marketTabTitle?: string;
2716
+ title?: string;
2717
+ showCustomAddButton?: boolean;
2718
+ customAddButtonText?: string;
2719
+ allowPluginToggle?: boolean;
2720
+ allowToolToggle?: boolean;
2721
+ allowPluginDelete?: boolean;
2722
+ allowPluginAdd?: boolean;
2723
+ loading?: boolean;
2724
+ marketLoading?: boolean;
2725
+ }
2726
+
2271
2727
  export declare type MultiTabHistoryProps = {
2272
2728
  tabs: {
2273
2729
  title: string;
@@ -2276,7 +2732,72 @@ export declare type MultiTabHistoryProps = {
2276
2732
  data: Record<string, HistoryData>;
2277
2733
  } & BaseHistoryProps;
2278
2734
 
2279
- declare const Prompt: typeof _default_22 & {
2735
+ export declare type PluginAddState = 'idle' | 'loading' | 'added';
2736
+
2737
+ export declare interface PluginCardEmits {
2738
+ (e: 'toggle-plugin', enabled: boolean): void;
2739
+ (e: 'toggle-tool', toolId: string, enabled: boolean): void;
2740
+ (e: 'add-plugin', plugin: PluginInfo): void;
2741
+ (e: 'delete-plugin'): void;
2742
+ }
2743
+
2744
+ export declare type PluginCardMode = 'installed' | 'market';
2745
+
2746
+ export declare interface PluginCardProps {
2747
+ plugin: PluginInfo;
2748
+ mode?: PluginCardMode;
2749
+ showToolCount?: boolean;
2750
+ }
2751
+
2752
+ export declare type PluginCreationData = PluginFormData | string;
2753
+
2754
+ export declare interface PluginFormData {
2755
+ name: string;
2756
+ description: string;
2757
+ type: 'sse' | 'streamableHttp';
2758
+ url: string;
2759
+ headers: string;
2760
+ thumbnail?: File | null;
2761
+ }
2762
+
2763
+ export declare interface PluginInfo {
2764
+ id: string;
2765
+ name: string;
2766
+ icon: string;
2767
+ description: string;
2768
+ enabled: boolean;
2769
+ expanded?: boolean;
2770
+ tools: PluginTool[];
2771
+ addState?: PluginAddState;
2772
+ category?: string;
2773
+ }
2774
+
2775
+ export declare interface PluginModalEmits {
2776
+ (e: 'update:visible', value: boolean): void;
2777
+ (e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
2778
+ }
2779
+
2780
+ export declare interface PluginTool {
2781
+ id: string;
2782
+ name: string;
2783
+ description: string;
2784
+ enabled: boolean;
2785
+ }
2786
+
2787
+ export declare interface PopupConfig {
2788
+ type: 'fixed' | 'drawer';
2789
+ position?: {
2790
+ top?: string | number;
2791
+ left?: string | number;
2792
+ right?: string | number;
2793
+ bottom?: string | number;
2794
+ };
2795
+ drawer?: {
2796
+ direction: 'left' | 'right';
2797
+ };
2798
+ }
2799
+
2800
+ declare const Prompt: typeof _default_27 & {
2280
2801
  install: typeof installPrompt;
2281
2802
  };
2282
2803
  export { Prompt }
@@ -2307,9 +2828,13 @@ export declare interface PromptProps {
2307
2828
  * 提示徽章,显示在提示项的右上角
2308
2829
  */
2309
2830
  badge?: string | VNode;
2831
+ /**
2832
+ * 提示项大小。默认 medium
2833
+ */
2834
+ size?: 'small' | 'medium' | 'large';
2310
2835
  }
2311
2836
 
2312
- declare const Prompts: typeof _default_23 & {
2837
+ declare const Prompts: typeof _default_28 & {
2313
2838
  install: typeof installPrompts;
2314
2839
  };
2315
2840
  export { Prompts }
@@ -2346,55 +2871,23 @@ export declare interface PromptsSlots {
2346
2871
  footer?: () => unknown;
2347
2872
  }
2348
2873
 
2349
- declare interface Question_2 {
2350
- id: string;
2351
- text: string;
2352
- keywords?: string[];
2874
+ export declare interface RawFileAttachment extends BaseAttachment {
2875
+ rawFile: File;
2876
+ url?: string;
2877
+ size?: number;
2353
2878
  }
2354
2879
 
2355
2880
  /**
2356
- * Question组件属性定义
2881
+ * 文件拒绝原因
2357
2882
  */
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;
2883
+ export declare interface RejectionReason {
2884
+ code: DragZoneErrorCode;
2885
+ message: string;
2394
2886
  }
2395
2887
 
2396
2888
  export declare type SenderEmits = {
2397
2889
  (e: 'update:modelValue', value: string): void;
2890
+ (e: 'update:templateData', value: UserItem[]): void;
2398
2891
  (e: 'submit', value: string): void;
2399
2892
  (e: 'clear'): void;
2400
2893
  (e: 'speech-start'): void;
@@ -2407,6 +2900,7 @@ export declare type SenderEmits = {
2407
2900
  (e: 'escape-press'): void;
2408
2901
  (e: 'cancel'): void;
2409
2902
  (e: 'reset-template'): void;
2903
+ (e: 'files-selected', files: File[]): void;
2410
2904
  };
2411
2905
 
2412
2906
  export declare interface SenderProps {
@@ -2421,26 +2915,16 @@ export declare interface SenderProps {
2421
2915
  modelValue?: string;
2422
2916
  mode?: InputMode;
2423
2917
  maxLength?: number;
2918
+ buttonGroup?: ButtonGroupConfig;
2424
2919
  submitType?: SubmitTrigger;
2425
2920
  speech?: boolean | SpeechConfig;
2426
2921
  placeholder?: string;
2427
2922
  showWordLimit?: boolean;
2428
- suggestions?: string[];
2923
+ suggestions?: ISuggestionItem[];
2429
2924
  suggestionPopupWidth?: string | number;
2430
2925
  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>;
2926
+ templateData?: UserItem[];
2927
+ stopText?: string;
2444
2928
  }
2445
2929
 
2446
2930
  export declare type SingleTabHistoryProps = {
@@ -2477,81 +2961,23 @@ export declare interface SpeechState {
2477
2961
 
2478
2962
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2479
2963
 
2480
- declare interface SuggestionBaseItem {
2964
+ export declare interface SuggestionBaseItem {
2481
2965
  id: string;
2482
2966
  text: string;
2483
2967
  }
2484
2968
 
2485
- declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem_2<T> | SuggestionGroup<T>)[];
2969
+ export declare type SuggestionData<T = Record<string, unknown>> = (SuggestionItem<T> | SuggestionGroup<T>)[];
2486
2970
 
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>> {
2971
+ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2510
2972
  group: string;
2511
2973
  label: string;
2512
2974
  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;
2975
+ items: SuggestionItem<T>[];
2534
2976
  }
2535
2977
 
2536
- declare type SuggestionItem_2<T = Record<string, unknown>> = SuggestionBaseItem & T;
2978
+ export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2537
2979
 
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;
2553
-
2554
- declare const SuggestionPillButton: typeof _default_28 & {
2980
+ declare const SuggestionPillButton: typeof _default_30 & {
2555
2981
  install: typeof installPillButton;
2556
2982
  };
2557
2983
  export { SuggestionPillButton }
@@ -2566,21 +2992,19 @@ export declare interface SuggestionPillButtonSlots {
2566
2992
  icon?: () => unknown;
2567
2993
  }
2568
2994
 
2569
- export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
2995
+ export declare type SuggestionPillItem = {
2570
2996
  text: string;
2571
2997
  icon?: VNode | Component;
2572
2998
  } | {
2573
2999
  text?: string;
2574
3000
  icon: VNode | Component;
2575
- });
3001
+ };
2576
3002
 
2577
3003
  export declare interface SuggestionPillsEmits {
2578
- (e: 'item-click', item: SuggestionPillItem): void;
2579
3004
  (e: 'click-outside', event: MouseEvent): void;
2580
3005
  }
2581
3006
 
2582
3007
  export declare interface SuggestionPillsProps {
2583
- items?: SuggestionPillItem[];
2584
3008
  /**
2585
3009
  * model:showAll
2586
3010
  */
@@ -2592,22 +3016,64 @@ export declare interface SuggestionPillsProps {
2592
3016
  * @default 'hover'
2593
3017
  */
2594
3018
  showAllButtonOn?: 'hover' | 'always';
3019
+ /**
3020
+ * 控制多余按钮如何展示
3021
+ * - expand: 点击更多按钮展开所有项
3022
+ * - scroll: 横向滚动显示多余项
3023
+ * @default 'expand'
3024
+ */
3025
+ overflowMode?: 'expand' | 'scroll';
3026
+ /**
3027
+ * 鼠标悬停时是否自动滚动到可见区域
3028
+ */
3029
+ autoScrollOn?: 'mouseenter' | 'click';
2595
3030
  }
2596
3031
 
2597
- /**
2598
- * @deprecated
2599
- */
2600
3032
  export declare interface SuggestionPillsSlots {
2601
- default?: () => VNode | VNode[];
3033
+ default?: () => VNode[];
3034
+ }
3035
+
3036
+ export declare interface SuggestionPopoverEmits {
3037
+ (e: 'item-click', item: SuggestionItem): void;
3038
+ (e: 'group-click', group: SuggestionGroup): void;
3039
+ (e: 'open'): void;
3040
+ (e: 'close'): void;
3041
+ (e: 'click-outside', event: MouseEvent): void;
2602
3042
  }
2603
3043
 
2604
- declare interface SuggestionPopoverEvents {
2605
- itemClick?: (item: SuggestionItem_2) => void;
3044
+ export declare interface SuggestionPopoverEventProps {
3045
+ onItemClick?: (item: SuggestionItem) => void;
3046
+ onGroupClick?: (group: SuggestionGroup) => void;
3047
+ onOpen?: () => void;
3048
+ onClose?: () => void;
3049
+ onClickOutside?: (event: MouseEvent) => void;
3050
+ }
3051
+
3052
+ export declare interface SuggestionPopoverEvents {
3053
+ /**
3054
+ * @deprecated use onItemClick in props instead
3055
+ */
3056
+ itemClick?: (item: SuggestionItem) => void;
3057
+ /**
3058
+ * @deprecated use onGroupClick in props instead
3059
+ */
2606
3060
  groupClick?: (group: SuggestionGroup) => void;
3061
+ /**
3062
+ * @deprecated use onOpen in props instead
3063
+ */
3064
+ open?: () => void;
3065
+ /**
3066
+ * @deprecated use onClose in props instead
3067
+ */
2607
3068
  close?: () => void;
3069
+ /**
3070
+ * @deprecated use onClickOutside in props instead
3071
+ */
3072
+ clickOutside?: (event: MouseEvent) => void;
2608
3073
  }
2609
3074
 
2610
- declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
3075
+ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
3076
+ appendTo?: string | HTMLElement;
2611
3077
  data: SuggestionData<T>;
2612
3078
  title?: string;
2613
3079
  icon?: VNode | Component;
@@ -2625,125 +3091,93 @@ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2625
3091
  selectedGroup?: string;
2626
3092
  groupShowMoreTrigger?: 'click' | 'hover';
2627
3093
  loading?: boolean;
2628
- popoverWidth?: string | number;
2629
- popoverHeight?: string | number;
2630
- topOffset?: string | number;
3094
+ topOffset?: number;
2631
3095
  }
2632
3096
 
2633
- declare interface SuggestionPopoverSlots {
2634
- default?: () => unknown;
2635
- loading?: () => unknown;
2636
- empty?: () => unknown;
3097
+ export declare interface SuggestionPopoverSlots {
3098
+ trigger?: () => VNode | VNode[];
3099
+ item?: ({ item }: {
3100
+ item: SuggestionItem;
3101
+ }) => VNode | VNode[];
3102
+ loading?: () => VNode | VNode[];
3103
+ empty?: () => VNode | VNode[];
3104
+ header?: () => VNode | VNode[];
3105
+ body?: () => VNode | VNode[];
2637
3106
  }
2638
3107
 
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;
3108
+ export declare interface SuggestionTextPart {
3109
+ text: string;
3110
+ isMatch: boolean;
2665
3111
  }
2666
3112
 
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;
3113
+ declare interface TemplateItem extends BaseTextItem {
3114
+ type: 'template';
3115
+ prefix: string;
3116
+ suffix: string;
2683
3117
  }
2684
3118
 
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;
3119
+ declare interface TextItem extends BaseTextItem {
3120
+ type: 'text';
2699
3121
  }
2700
3122
 
2701
- /**
2702
- * 模板编辑器属性
2703
- */
2704
- export declare interface TemplateEditorProps {
2705
- /** 当前值 */
2706
- value?: string;
2707
- /** 是否自动聚焦 */
2708
- autofocus?: boolean;
3123
+ export declare interface ThemeProviderProps {
3124
+ /**
3125
+ * 颜色模式(v-model:colorMode),可选值:light、dark、auto,默认值:auto
3126
+ */
3127
+ colorMode?: ColorMode;
3128
+ /**
3129
+ * 应用主题属性选择器的目标元素,默认值:html。主题只会影响 targetElement 下的元素
3130
+ */
3131
+ targetElement?: string;
3132
+ /**
3133
+ * 主题(v-model:theme)
3134
+ */
3135
+ theme?: string;
3136
+ storage?: ThemeStorage;
3137
+ storageKey?: string;
2709
3138
  }
2710
3139
 
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
- }
3140
+ export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
2724
3141
 
2725
3142
  /**
2726
3143
  * 组件核心类型定义
2727
3144
  */
2728
3145
  export declare type ThemeType = 'light' | 'dark';
2729
3146
 
2730
- declare type ThemeType_3 = 'light' | 'dark';
3147
+ export declare type TooltipRender = () => VNode | string;
2731
3148
 
2732
- /**
2733
- * 触发位置信息
2734
- */
2735
- export declare interface TriggerContext {
2736
- /** 触发的文本 */
2737
- text: string;
2738
- /** 触发的位置 */
2739
- position: number;
3149
+ export declare interface UrlAttachment extends BaseAttachment {
3150
+ url: string;
3151
+ size: number;
3152
+ rawFile?: File;
2740
3153
  }
2741
3154
 
2742
- /** 触发处理函数类型 */
2743
- export declare type TriggerHandler = (info: TriggerInfo) => void;
3155
+ export declare type UserItem = UserTextItem | UserTemplateItem;
3156
+
3157
+ export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
3158
+ id?: TemplateItem['id'];
3159
+ };
3160
+
3161
+ export declare type UserTextItem = Omit<TextItem, 'id'> & {
3162
+ id?: TextItem['id'];
3163
+ };
2744
3164
 
2745
- /** 触发信息类型 */
2746
- export declare type TriggerInfo = TriggerContext | false;
3165
+ export declare const useTheme: () => {
3166
+ theme: Ref<string, string> | undefined;
3167
+ colorMode: Ref<ColorMode, ColorMode> | undefined;
3168
+ resolvedColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
3169
+ systemColorMode: Readonly<Ref<"light" | "dark", "light" | "dark">> | undefined;
3170
+ setTheme: (newTheme: string) => boolean;
3171
+ toggleColorMode: () => boolean;
3172
+ setColorMode: (mode: ColorMode) => boolean;
3173
+ };
3174
+
3175
+ /**
3176
+ * 拖拽区域指令
3177
+ * @param el 元素
3178
+ * @param binding 绑定
3179
+ */
3180
+ export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
2747
3181
 
2748
3182
  export declare interface WelcomeProps {
2749
3183
  title: string;