@opentiny/tiny-robot 0.3.0-alpha.14 → 0.3.0-alpha.16

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