@opentiny/tiny-robot 0.3.0-alpha.15 → 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,21 +10,16 @@ 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 { ISuggestionItem as ISuggestionItem_2 } from './index.type';
27
- import { MarketCategoryOption as MarketCategoryOption_2 } from './index.type';
28
23
  import { nextTick } from 'vue';
29
24
  import { OnCleanup } from '@vue/reactivity';
30
25
  import { Options } from 'markdown-it';
@@ -33,139 +28,72 @@ 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: ISuggestionItem_2[];
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,41 +707,209 @@ showTooltip: boolean;
836
707
  inputBoxType: string;
837
708
  }> | null;
838
709
  buttonsContainerRef: HTMLDivElement;
710
+ suggestionsListRef: HTMLDivElement;
839
711
  }, HTMLDivElement>;
840
712
 
841
- 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>;
842
716
 
843
- declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
844
- 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;
845
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, {
846
891
  "update:showAll": (value: boolean | undefined) => any;
847
892
  } & {
893
+ "item-click": (item: SuggestionPillItem<Record<string, unknown>>) => any;
848
894
  "click-outside": (event: MouseEvent) => any;
849
- }, 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;
850
897
  "onClick-outside"?: ((event: MouseEvent) => any) | undefined;
851
898
  "onUpdate:showAll"?: ((value: boolean | undefined) => any) | undefined;
852
899
  }>, {
853
900
  showAllButtonOn: "hover" | "always";
854
- overflowMode: "expand" | "scroll";
855
901
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
856
902
  containerWrapperRef: HTMLDivElement;
857
903
  containerRef: HTMLDivElement;
858
- staticMaybeItemRefs: unknown[];
859
- floatingItemsRef: HTMLDivElement;
860
- floatingMaybeItemRefs: unknown[];
861
904
  }, HTMLDivElement>;
862
905
 
863
906
  declare type __VLS_Props = {
864
- contentRenderers?: Record<string, BubbleContentRenderer>;
907
+ messageRenderers?: Record<string, BubbleMessageRenderer>;
865
908
  };
866
909
 
867
- declare type __VLS_Props_2 = DropdownMenuProps;
868
-
869
- declare type __VLS_Props_3 = SuggestionPillsProps;
910
+ declare type __VLS_Props_2 = SuggestionPillsProps;
870
911
 
871
- declare type __VLS_Props_4 = SuggestionPopoverProps;
872
-
873
- declare type __VLS_Props_5 = McpServerPickerProps;
912
+ declare type __VLS_Props_3 = SuggestionPopoverProps;
874
913
 
875
914
  declare type __VLS_PublicProps = {
876
915
  'show': ContainerProps['show'];
@@ -878,20 +917,12 @@ declare type __VLS_PublicProps = {
878
917
  };
879
918
 
880
919
  declare type __VLS_PublicProps_2 = {
881
- 'show'?: boolean;
920
+ 'showAll'?: SuggestionPillsProps['showAll'];
882
921
  } & __VLS_Props_2;
883
922
 
884
923
  declare type __VLS_PublicProps_3 = {
885
- 'showAll'?: SuggestionPillsProps['showAll'];
886
- } & __VLS_Props_3;
887
-
888
- declare type __VLS_PublicProps_4 = {
889
924
  'selectedGroup'?: string;
890
- } & __VLS_Props_4;
891
-
892
- declare type __VLS_PublicProps_5 = {
893
- 'visible': boolean;
894
- } & __VLS_Props_5;
925
+ } & __VLS_Props_3;
895
926
 
896
927
  declare function __VLS_template(): {
897
928
  attrs: Partial<{}>;
@@ -901,101 +932,35 @@ declare function __VLS_template(): {
901
932
  };
902
933
 
903
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(): {
904
959
  attrs: Partial<{}>;
905
960
  slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
906
961
  refs: {
907
- basePopperRef: ({
908
- $: ComponentInternalInstance;
909
- $data: {};
910
- $props: {
911
- readonly appendTo?: (string | HTMLElement) | undefined;
912
- readonly offset?: number | {
913
- mainAxis?: number;
914
- crossAxis?: number;
915
- } | undefined;
916
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
917
- readonly preventOverflow?: boolean | undefined;
918
- readonly show?: boolean | undefined;
919
- readonly transitionProps?: TransitionProps | undefined;
920
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
921
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
922
- $attrs: {
923
- [x: string]: unknown;
924
- };
925
- $refs: {
926
- [x: string]: unknown;
927
- };
928
- $slots: Readonly<{
929
- [name: string]: Slot<any> | undefined;
930
- }>;
931
- $root: ComponentPublicInstance | null;
932
- $parent: ComponentPublicInstance | null;
933
- $host: Element | null;
934
- $emit: (event: string, ...args: any[]) => void;
935
- $el: any;
936
- $options: ComponentOptionsBase<Readonly<{
937
- appendTo?: string | HTMLElement;
938
- offset?: number | {
939
- mainAxis?: number;
940
- crossAxis?: number;
941
- };
942
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
943
- preventOverflow?: boolean;
944
- show?: boolean;
945
- transitionProps?: TransitionProps;
946
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
947
- }> & Readonly<{}>, {
948
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
949
- popperRef: ComputedRef<HTMLDivElement | null>;
950
- update: () => void;
951
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
952
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
953
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
954
- beforeCreate?: (() => void) | (() => void)[];
955
- created?: (() => void) | (() => void)[];
956
- beforeMount?: (() => void) | (() => void)[];
957
- mounted?: (() => void) | (() => void)[];
958
- beforeUpdate?: (() => void) | (() => void)[];
959
- updated?: (() => void) | (() => void)[];
960
- activated?: (() => void) | (() => void)[];
961
- deactivated?: (() => void) | (() => void)[];
962
- beforeDestroy?: (() => void) | (() => void)[];
963
- beforeUnmount?: (() => void) | (() => void)[];
964
- destroyed?: (() => void) | (() => void)[];
965
- unmounted?: (() => void) | (() => void)[];
966
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
967
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
968
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
969
- };
970
- $forceUpdate: () => void;
971
- $nextTick: nextTick;
972
- $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;
973
- } & Readonly<{
974
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
975
- }> & Omit<Readonly<{
976
- appendTo?: string | HTMLElement;
977
- offset?: number | {
978
- mainAxis?: number;
979
- crossAxis?: number;
980
- };
981
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
982
- preventOverflow?: boolean;
983
- show?: boolean;
984
- transitionProps?: TransitionProps;
985
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
986
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
987
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
988
- popperRef: ComputedRef<HTMLDivElement | null>;
989
- update: () => void;
990
- }> & {} & ComponentCustomProperties & {} & {
991
- $slots: Readonly<{
992
- trigger?: () => VNode[];
993
- content?: () => VNode[];
994
- }> & {
995
- trigger?: () => VNode[];
996
- content?: () => VNode[];
997
- };
998
- }) | null;
962
+ popoverTriggerRef: HTMLDivElement;
963
+ popoverRef: HTMLDivElement;
999
964
  listRef: HTMLUListElement;
1000
965
  tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1001
966
  show?: TooltipContentProps["show"];
@@ -1019,14 +984,7 @@ declare function __VLS_template_10(): {
1019
984
  rootEl: any;
1020
985
  };
1021
986
 
1022
- declare function __VLS_template_11(): {
1023
- attrs: Partial<{}>;
1024
- slots: Readonly<WelcomeSlots> & WelcomeSlots;
1025
- refs: {};
1026
- rootEl: HTMLDivElement;
1027
- };
1028
-
1029
- declare function __VLS_template_2(): {
987
+ declare function __VLS_template_2(): {
1030
988
  attrs: Partial<{}>;
1031
989
  slots: {
1032
990
  default?(_: {}): any;
@@ -1044,125 +1002,22 @@ declare function __VLS_template_3(): {
1044
1002
 
1045
1003
  declare function __VLS_template_4(): {
1046
1004
  attrs: Partial<{}>;
1047
- slots: {
1048
- overlay?(_: {
1049
- isDragging: true;
1050
- }): any;
1051
- };
1052
- refs: {};
1053
- rootEl: any;
1054
- };
1055
-
1056
- declare function __VLS_template_5(): {
1057
- attrs: Partial<{}>;
1058
- slots: {
1059
- trigger?(_: {}): any;
1060
- };
1005
+ slots: Readonly<DropdownMenuSlots> & DropdownMenuSlots;
1061
1006
  refs: {
1062
- basePopperRef: ({
1063
- $: ComponentInternalInstance;
1064
- $data: {};
1065
- $props: {
1066
- readonly appendTo?: (string | HTMLElement) | undefined;
1067
- readonly offset?: number | {
1068
- mainAxis?: number;
1069
- crossAxis?: number;
1070
- } | undefined;
1071
- readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
1072
- readonly preventOverflow?: boolean | undefined;
1073
- readonly show?: boolean | undefined;
1074
- readonly transitionProps?: TransitionProps | undefined;
1075
- readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
1076
- } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
1077
- $attrs: {
1078
- [x: string]: unknown;
1079
- };
1080
- $refs: {
1081
- [x: string]: unknown;
1082
- };
1083
- $slots: Readonly<{
1084
- [name: string]: Slot<any> | undefined;
1085
- }>;
1086
- $root: ComponentPublicInstance | null;
1087
- $parent: ComponentPublicInstance | null;
1088
- $host: Element | null;
1089
- $emit: (event: string, ...args: any[]) => void;
1090
- $el: any;
1091
- $options: ComponentOptionsBase<Readonly<{
1092
- appendTo?: string | HTMLElement;
1093
- offset?: number | {
1094
- mainAxis?: number;
1095
- crossAxis?: number;
1096
- };
1097
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1098
- preventOverflow?: boolean;
1099
- show?: boolean;
1100
- transitionProps?: TransitionProps;
1101
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1102
- }> & Readonly<{}>, {
1103
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1104
- popperRef: ComputedRef<HTMLDivElement | null>;
1105
- update: () => void;
1106
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
1107
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1108
- }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
1109
- beforeCreate?: (() => void) | (() => void)[];
1110
- created?: (() => void) | (() => void)[];
1111
- beforeMount?: (() => void) | (() => void)[];
1112
- mounted?: (() => void) | (() => void)[];
1113
- beforeUpdate?: (() => void) | (() => void)[];
1114
- updated?: (() => void) | (() => void)[];
1115
- activated?: (() => void) | (() => void)[];
1116
- deactivated?: (() => void) | (() => void)[];
1117
- beforeDestroy?: (() => void) | (() => void)[];
1118
- beforeUnmount?: (() => void) | (() => void)[];
1119
- destroyed?: (() => void) | (() => void)[];
1120
- unmounted?: (() => void) | (() => void)[];
1121
- renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1122
- renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
1123
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
1124
- };
1125
- $forceUpdate: () => void;
1126
- $nextTick: nextTick;
1127
- $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;
1128
- } & Readonly<{
1129
- placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1130
- }> & Omit<Readonly<{
1131
- appendTo?: string | HTMLElement;
1132
- offset?: number | {
1133
- mainAxis?: number;
1134
- crossAxis?: number;
1135
- };
1136
- placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
1137
- preventOverflow?: boolean;
1138
- show?: boolean;
1139
- transitionProps?: TransitionProps;
1140
- triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
1141
- }> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
1142
- triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
1143
- popperRef: ComputedRef<HTMLDivElement | null>;
1144
- update: () => void;
1145
- }> & {} & ComponentCustomProperties & {} & {
1146
- $slots: Readonly<{
1147
- trigger?: () => VNode[];
1148
- content?: () => VNode[];
1149
- }> & {
1150
- trigger?: () => VNode[];
1151
- content?: () => VNode[];
1152
- };
1153
- }) | null;
1007
+ dropDownTriggerRef: HTMLDivElement;
1008
+ dropdownMenuRef: HTMLDivElement;
1154
1009
  };
1155
1010
  rootEl: any;
1156
1011
  };
1157
1012
 
1158
- declare function __VLS_template_6(): {
1013
+ declare function __VLS_template_5(): {
1159
1014
  attrs: Partial<{}>;
1160
1015
  slots: Readonly<PromptsSlots> & PromptsSlots;
1161
1016
  refs: {};
1162
1017
  rootEl: HTMLDivElement;
1163
1018
  };
1164
1019
 
1165
- declare function __VLS_template_7(): {
1020
+ declare function __VLS_template_6(): {
1166
1021
  attrs: Partial<{}>;
1167
1022
  slots: {
1168
1023
  header?(_: {}): any;
@@ -1177,19 +1032,32 @@ declare function __VLS_template_7(): {
1177
1032
  senderRef: HTMLDivElement;
1178
1033
  inputWrapperRef: HTMLDivElement;
1179
1034
  templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
1180
- modelValue?: UserItem[];
1181
- }> & Readonly<{
1182
- onSubmit?: (() => any) | undefined;
1183
- "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;
1184
1044
  }>, {
1185
- clearHistory: () => void;
1045
+ focus: () => void;
1046
+ resetFields: () => void;
1186
1047
  activateFirstField: () => void;
1048
+ getValueFromDOM: () => string;
1049
+ setTemplate: (params: SetTemplateParams_2) => void;
1187
1050
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1188
- "update:modelValue": (value: UserItem[]) => any;
1051
+ "update:value": (value: string) => any;
1189
1052
  } & {
1190
- 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;
1191
1059
  }, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
1192
- editorRef: HTMLDivElement;
1060
+ contentEditableRef: HTMLDivElement;
1193
1061
  }, HTMLDivElement, ComponentProvideOptions, {
1194
1062
  P: {};
1195
1063
  B: {};
@@ -1198,13 +1066,21 @@ declare function __VLS_template_7(): {
1198
1066
  M: {};
1199
1067
  Defaults: {};
1200
1068
  }, Readonly<{
1201
- modelValue?: UserItem[];
1202
- }> & Readonly<{
1203
- onSubmit?: (() => any) | undefined;
1204
- "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;
1205
1078
  }>, {
1206
- clearHistory: () => void;
1079
+ focus: () => void;
1080
+ resetFields: () => void;
1207
1081
  activateFirstField: () => void;
1082
+ getValueFromDOM: () => string;
1083
+ setTemplate: (params: SetTemplateParams_2) => void;
1208
1084
  }, {}, {}, {}, {}> | null;
1209
1085
  inputRef: CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes< {
1210
1086
  _constants: {
@@ -1657,15 +1533,179 @@ declare function __VLS_template_7(): {
1657
1533
  inputBoxType: string;
1658
1534
  }> | null;
1659
1535
  buttonsContainerRef: HTMLDivElement;
1536
+ suggestionsListRef: HTMLDivElement;
1660
1537
  };
1661
1538
  rootEl: HTMLDivElement;
1662
1539
  };
1663
1540
 
1664
- declare function __VLS_template_8(): {
1541
+ declare function __VLS_template_7(): {
1665
1542
  attrs: Partial<{}>;
1666
- slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
1543
+ slots: Readonly<WelcomeSlots> & WelcomeSlots;
1667
1544
  refs: {};
1668
- 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;
1669
1709
  };
1670
1710
 
1671
1711
  declare function __VLS_template_9(): {
@@ -1674,9 +1714,6 @@ declare function __VLS_template_9(): {
1674
1714
  refs: {
1675
1715
  containerWrapperRef: HTMLDivElement;
1676
1716
  containerRef: HTMLDivElement;
1677
- staticMaybeItemRefs: unknown[];
1678
- floatingItemsRef: HTMLDivElement;
1679
- floatingMaybeItemRefs: unknown[];
1680
1717
  };
1681
1718
  rootEl: HTMLDivElement;
1682
1719
  };
@@ -1687,6 +1724,8 @@ declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
1687
1724
 
1688
1725
  declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
1689
1726
 
1727
+ declare type __VLS_TemplateResult_12 = ReturnType<typeof __VLS_template_12>;
1728
+
1690
1729
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
1691
1730
 
1692
1731
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
@@ -1721,6 +1760,12 @@ declare type __VLS_WithTemplateSlots_11<T, S> = T & {
1721
1760
  };
1722
1761
  };
1723
1762
 
1763
+ declare type __VLS_WithTemplateSlots_12<T, S> = T & {
1764
+ new (): {
1765
+ $slots: S;
1766
+ };
1767
+ };
1768
+
1724
1769
  declare type __VLS_WithTemplateSlots_2<T, S> = T & {
1725
1770
  new (): {
1726
1771
  $slots: S;
@@ -1769,18 +1814,11 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
1769
1814
  };
1770
1815
  };
1771
1816
 
1772
- export declare interface ActionButton {
1773
- type: string;
1774
- label: string;
1775
- handler?: (file: Attachment) => void;
1776
- }
1777
-
1778
1817
  export declare interface ActionButtonsProps {
1779
1818
  loading?: boolean;
1780
1819
  disabled?: boolean;
1781
1820
  showClear?: boolean;
1782
1821
  hasContent?: boolean;
1783
- buttonGroup?: ButtonGroupConfig;
1784
1822
  allowSpeech?: boolean;
1785
1823
  speechStatus?: {
1786
1824
  isRecording: boolean;
@@ -1790,31 +1828,6 @@ export declare interface ActionButtonsProps {
1790
1828
  submitType?: SubmitTrigger;
1791
1829
  showShortcuts?: boolean;
1792
1830
  isOverLimit?: boolean;
1793
- stopText?: string;
1794
- }
1795
-
1796
- export declare type Attachment = UrlAttachment | RawFileAttachment;
1797
-
1798
- export declare interface AttachmentListEmits {
1799
- (e: 'update:items', items: Attachment[]): void;
1800
- (e: 'remove', file: Attachment): void;
1801
- (e: 'download', event: MouseEvent, file: Attachment): void;
1802
- (e: 'retry', file: Attachment): void;
1803
- (e: 'preview', event: MouseEvent, file: Attachment): void;
1804
- (e: 'action', payload: {
1805
- action: ActionButton;
1806
- file: Attachment;
1807
- }): void;
1808
- }
1809
-
1810
- export declare interface AttachmentListProps {
1811
- items?: Attachment[];
1812
- disabled?: boolean;
1813
- wrap?: boolean;
1814
- fileIcons?: Record<string, Component>;
1815
- actions?: ActionButton[];
1816
- variant?: DisplayVariant;
1817
- fileMatchers?: FileTypeMatcher[];
1818
1831
  }
1819
1832
 
1820
1833
  export declare type AutoSize = boolean | {
@@ -1822,18 +1835,6 @@ export declare type AutoSize = boolean | {
1822
1835
  maxRows: number;
1823
1836
  };
1824
1837
 
1825
- export declare interface BaseAttachment {
1826
- id?: string;
1827
- name?: string;
1828
- status?: FileStatus;
1829
- fileType?: FileType;
1830
- message?: string;
1831
- }
1832
-
1833
- declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
1834
-
1835
- export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1836
-
1837
1838
  declare interface BaseHistoryProps {
1838
1839
  activeTab?: string;
1839
1840
  searchBar?: boolean;
@@ -1843,18 +1844,26 @@ declare interface BaseHistoryProps {
1843
1844
  selected?: string;
1844
1845
  }
1845
1846
 
1846
- declare interface BaseTextItem {
1847
- id: string;
1848
- type: string;
1849
- content: string;
1850
- }
1851
-
1852
- declare const Bubble: typeof _default_16 & {
1847
+ declare const Bubble: typeof _default_14 & {
1853
1848
  install: typeof bubbleInstall;
1854
1849
  };
1855
1850
  export { Bubble }
1856
1851
  export { Bubble as TrBubble }
1857
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
+
1858
1867
  export declare interface BubbleCommonProps {
1859
1868
  /**
1860
1869
  * 气泡对齐位置
@@ -1870,33 +1879,16 @@ export declare interface BubbleCommonProps {
1870
1879
  shape?: 'rounded' | 'corner';
1871
1880
  /**
1872
1881
  * 气泡内容渲染器。
1873
- * 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1882
+ * 如果 Bubble 中的 messages 长度大于 0,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
1874
1883
  */
1875
- contentRenderer?: BubbleContentRenderer;
1884
+ contentRenderer?: BubbleMessageRenderer;
1876
1885
  hidden?: boolean;
1877
1886
  maxWidth?: string | number;
1878
1887
  }
1879
1888
 
1880
- export declare abstract class BubbleContentClassRenderer {
1881
- abstract render(options: {
1882
- [key: string]: any;
1883
- }): VNode;
1884
- }
1885
-
1886
- export declare type BubbleContentFunctionRenderer = (options: {
1887
- [key: string]: any;
1888
- }) => VNode;
1889
-
1890
- export declare interface BubbleContentItem {
1891
- type: string;
1892
- [key: string]: any;
1893
- }
1894
-
1895
- export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
1896
-
1897
1889
  declare const bubbleInstall: (app: App) => void;
1898
1890
 
1899
- declare const BubbleList: typeof _default_17 & {
1891
+ declare const BubbleList: typeof _default_15 & {
1900
1892
  install: typeof bubbleListInstall;
1901
1893
  };
1902
1894
  export { BubbleList }
@@ -1923,15 +1915,16 @@ export declare interface BubbleListProps {
1923
1915
  autoScroll?: boolean;
1924
1916
  }
1925
1917
 
1926
- export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
1918
+ export declare class BubbleMarkdownMessageRenderer extends BubbleMessageClassRenderer {
1919
+ readonly md: default_2;
1927
1920
  readonly mdConfig: Options;
1928
- readonly dompurifyConfig: Config & {
1929
- disable?: boolean;
1921
+ readonly dompurifyConfig: Config;
1922
+ readonly sanitizeDisabled: boolean;
1923
+ readonly styleOptions: {
1924
+ class?: string;
1925
+ style?: string;
1930
1926
  };
1931
- private md;
1932
- constructor(mdConfig?: Options, dompurifyConfig?: Config & {
1933
- disable?: boolean;
1934
- });
1927
+ constructor({ mdConfig, dompurifyConfig, sanitizeDisabled, styleOptions }?: BubbleMarkdownRendererOptions);
1935
1928
  render(options: {
1936
1929
  content?: string;
1937
1930
  }): VNode<RendererNode, RendererElement, {
@@ -1939,18 +1932,49 @@ export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRen
1939
1932
  }>;
1940
1933
  }
1941
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
+
1942
1965
  export declare interface BubbleProps extends BubbleCommonProps {
1943
1966
  /**
1944
1967
  * 气泡内容
1945
1968
  */
1946
- content?: string | BubbleContentItem[];
1969
+ content?: string;
1970
+ messages?: BubbleMessageProps[];
1947
1971
  id?: string | number | symbol;
1948
1972
  role?: string;
1949
1973
  loading?: boolean;
1950
1974
  aborted?: boolean;
1951
1975
  }
1952
1976
 
1953
- declare const BubbleProvider: typeof _default_18 & {
1977
+ declare const BubbleProvider: typeof _default_16 & {
1954
1978
  install: typeof bubbleProviderInstall;
1955
1979
  };
1956
1980
  export { BubbleProvider }
@@ -1974,9 +1998,25 @@ export declare interface BubbleSlots {
1974
1998
  }) => unknown;
1975
1999
  }
1976
2000
 
1977
- export declare interface ButtonGroupConfig {
1978
- file?: ControlState & fileUploadConfig;
1979
- 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[];
1980
2020
  }
1981
2021
 
1982
2022
  export declare interface ContainerProps {
@@ -1997,288 +2037,139 @@ export declare interface ContainerSlots {
1997
2037
  footer: () => unknown;
1998
2038
  }
1999
2039
 
2000
- export declare interface ControlState {
2001
- tooltips?: string | TooltipRender;
2002
- disabled?: boolean;
2003
- }
2004
-
2005
2040
  declare const _default: {
2006
2041
  install<T>(app: App<T>): void;
2007
2042
  };
2008
2043
  export default _default;
2009
2044
 
2010
- declare const _default_10: typeof _default_27 & {
2045
+ declare const _default_10: typeof _default_26 & {
2011
2046
  install: typeof install_8;
2012
2047
  };
2013
- export { _default_10 as Sender }
2014
- export { _default_10 as TrSender }
2048
+ export { _default_10 as Suggestion }
2049
+ export { _default_10 as TrSuggestion }
2015
2050
 
2016
- declare const _default_11: typeof _default_29 & {
2051
+ declare const _default_11: typeof _default_27 & {
2017
2052
  install: typeof install_9;
2018
2053
  };
2019
2054
  export { _default_11 as SuggestionPills }
2020
2055
  export { _default_11 as TrSuggestionPills }
2021
2056
 
2022
- declare const _default_12: typeof _default_30 & {
2057
+ declare const _default_12: typeof _default_29 & {
2023
2058
  install: typeof install_10;
2024
2059
  };
2025
- export { _default_12 as SuggestionPopover }
2026
- export { _default_12 as TrSuggestionPopover }
2060
+ export { _default_12 as Question }
2061
+ export { _default_12 as TrQuestion }
2027
2062
 
2028
- declare const _default_13: typeof _default_31 & {
2063
+ declare const _default_13: typeof _default_30 & {
2029
2064
  install: typeof install_11;
2030
2065
  };
2031
- export { _default_13 as TrWelcome }
2032
- export { _default_13 as Welcome }
2033
-
2034
- declare const _default_14: typeof _default_32 & {
2035
- install: typeof install_12;
2036
- };
2037
- export { _default_14 as McpServerPicker }
2038
- export { _default_14 as TrMcpServerPicker }
2039
-
2040
- declare const _default_15: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2041
- "update:items": (items: Attachment[]) => any;
2042
- remove: (file: Attachment) => any;
2043
- download: (event: MouseEvent, file: Attachment) => any;
2044
- retry: (file: Attachment) => any;
2045
- preview: (event: MouseEvent, file: Attachment) => any;
2046
- action: (payload: {
2047
- action: ActionButton;
2048
- file: Attachment;
2049
- }) => any;
2050
- }, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
2051
- "onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
2052
- onRemove?: ((file: Attachment) => any) | undefined;
2053
- onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2054
- onRetry?: ((file: Attachment) => any) | undefined;
2055
- onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
2056
- onAction?: ((payload: {
2057
- action: ActionButton;
2058
- file: Attachment;
2059
- }) => any) | undefined;
2060
- }>, {
2061
- actions: ActionButton[];
2062
- fileMatchers: FileTypeMatcher_2[];
2063
- variant: DisplayVariant_2;
2064
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2066
+ export { _default_13 as SuggestionPopover }
2067
+ export { _default_13 as TrSuggestionPopover }
2065
2068
 
2066
- 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"]>;
2067
2070
 
2068
- 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, {
2069
2072
  scrollContainerRef: HTMLDivElement;
2070
2073
  }, HTMLDivElement>;
2071
2074
 
2072
- 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"]>;
2073
2076
 
2074
- 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"]>;
2075
2078
 
2076
- declare const _default_2: typeof _default_15 & {
2077
- install: typeof install;
2078
- };
2079
- export { _default_2 as Attachments }
2080
- export { _default_2 as TrAttachments }
2079
+ declare const _default_18: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
2081
2080
 
2082
- 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"]>;
2083
2082
 
2084
- declare const _default_21: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
2085
-
2086
- 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 }
2087
2088
 
2088
- declare const _default_23: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2089
- action: (name: string) => any;
2089
+ declare const _default_20: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2090
2090
  operation: (name: string) => any;
2091
+ action: (name: string) => any;
2091
2092
  }, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
2092
- onAction?: ((name: string) => any) | undefined;
2093
2093
  onOperation?: ((name: string) => any) | undefined;
2094
+ onAction?: ((name: string) => any) | undefined;
2094
2095
  }>, {
2095
2096
  operationsLimit: number;
2096
2097
  actionsLimit: number;
2097
2098
  sourcesLinesLimit: number;
2098
2099
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2099
2100
 
2100
- 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<{}>, {
2101
2102
  size: string | number;
2102
2103
  svgSize: string | number;
2103
2104
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2104
2105
 
2105
- 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>;
2106
2107
 
2107
- 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"]>;
2108
2109
 
2109
- 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"]>;
2110
2111
 
2111
- 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"]>;
2112
2113
 
2113
- 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"]>;
2114
2115
 
2115
- declare const _default_3: typeof _default_19 & {
2116
- install: typeof install_2;
2117
- };
2118
- export { _default_3 as Container }
2119
- export { _default_3 as TrContainer }
2116
+ declare const _default_27: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2120
2117
 
2121
- 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"]>;
2122
2119
 
2123
- 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"]>;
2124
2121
 
2125
- declare const _default_32: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2126
- [x: string]: any;
2127
- } & {
2128
- [x: string]: any;
2129
- }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
2130
- [x: `on${Capitalize<any>}`]: ((...args: any) => any) | undefined;
2131
- }>, {
2132
- title: string;
2133
- loading: boolean;
2134
- searchPlaceholder: string;
2135
- installedPlugins: PluginInfo[];
2136
- marketPlugins: PluginInfo[];
2137
- enableSearch: boolean;
2138
- marketCategoryOptions: MarketCategoryOption_2[];
2139
- marketCategoryPlaceholder: string;
2140
- enableMarketCategoryFilter: boolean;
2141
- defaultActiveTab: "installed" | "market";
2142
- showInstalledTab: boolean;
2143
- showMarketTab: boolean;
2144
- popupConfig: PopupConfig;
2145
- installedTabTitle: string;
2146
- marketTabTitle: string;
2147
- showCustomAddButton: boolean;
2148
- customAddButtonText: string;
2149
- allowPluginToggle: boolean;
2150
- allowToolToggle: boolean;
2151
- allowPluginDelete: boolean;
2152
- allowPluginAdd: boolean;
2153
- marketLoading: boolean;
2154
- }, {}, {}, {}, 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 }
2155
2127
 
2156
- 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 & {
2157
2131
  install: typeof install_3;
2158
2132
  };
2159
- export { _default_4 as Conversations }
2160
- export { _default_4 as TrConversations }
2133
+ export { _default_4 as DropdownMenu }
2134
+ export { _default_4 as TrDropdownMenu }
2161
2135
 
2162
- declare const _default_5: typeof _default_21 & {
2136
+ declare const _default_5: typeof _default_20 & {
2163
2137
  install: typeof install_4;
2164
2138
  };
2165
- export { _default_5 as DragOverlay }
2166
- export { _default_5 as TrDragOverlay }
2139
+ export { _default_5 as Feedback }
2140
+ export { _default_5 as TrFeedback }
2167
2141
 
2168
- declare const _default_6: typeof _default_22 & {
2169
- install: typeof install_5;
2142
+ declare const _default_6: {
2143
+ install: <T>(app: App<T>) => void;
2144
+ name: string;
2170
2145
  };
2171
- export { _default_6 as DropdownMenu }
2172
- export { _default_6 as TrDropdownMenu }
2146
+ export { _default_6 as History }
2147
+ export { _default_6 as TrHistory }
2173
2148
 
2174
- declare const _default_7: typeof _default_23 & {
2175
- install: typeof install_6;
2149
+ declare const _default_7: typeof _default_21 & {
2150
+ install: typeof install_5;
2176
2151
  };
2177
- export { _default_7 as Feedback }
2178
- export { _default_7 as TrFeedback }
2152
+ export { _default_7 as IconButton }
2153
+ export { _default_7 as TrIconButton }
2179
2154
 
2180
- declare const _default_8: {
2181
- install: <T>(app: App<T>) => void;
2182
- name: string;
2155
+ declare const _default_8: typeof _default_24 & {
2156
+ install: typeof install_6;
2183
2157
  };
2184
- export { _default_8 as History }
2185
- export { _default_8 as TrHistory }
2158
+ export { _default_8 as Sender }
2159
+ export { _default_8 as TrSender }
2186
2160
 
2187
- declare const _default_9: typeof _default_24 & {
2161
+ declare const _default_9: typeof _default_25 & {
2188
2162
  install: typeof install_7;
2189
2163
  };
2190
- export { _default_9 as IconButton }
2191
- export { _default_9 as TrIconButton }
2192
-
2193
- export declare type DisplayVariant = 'picture' | 'card' | 'auto';
2194
-
2195
- declare interface DragAwareElement extends HTMLElement {
2196
- __vDropzoneHandlers__?: Handlers;
2197
- __vDropzoneOptions__?: DragAwareOptions;
2198
- }
2199
-
2200
- declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
2201
-
2202
- /**
2203
- * 拖拽上传组件的属性
2204
- */
2205
- export declare interface DragOverlayProps {
2206
- /**
2207
- * 覆盖层标题
2208
- * @default ''
2209
- */
2210
- overlayTitle?: string;
2211
- /**
2212
- * 覆盖层描述文本数组
2213
- * @default []
2214
- */
2215
- overlayDescription?: string[];
2216
- /**
2217
- * 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
2218
- * @default false
2219
- */
2220
- isDragging?: boolean;
2221
- /**
2222
- * @description 拖拽目标元素,用于定位覆盖层
2223
- * @default null
2224
- */
2225
- dragTarget?: HTMLElement | null;
2226
- /**
2227
- * @description 是否全屏模式,控制覆盖层的边框显示
2228
- * @default false
2229
- */
2230
- fullscreen?: boolean;
2231
- }
2232
-
2233
- export declare interface DragOverlaySlots {
2234
- /**
2235
- * 覆盖层插槽,用于自定义拖拽时的覆盖层内容
2236
- */
2237
- overlay?: (props: {
2238
- isDragging: boolean;
2239
- }) => unknown;
2240
- }
2241
-
2242
- /**
2243
- * 拖拽区域错误码
2244
- */
2245
- declare enum DragZoneErrorCode {
2246
- /**
2247
- * 文件类型不允许
2248
- */
2249
- FileTypeNotAllowed = "file-type-not-allowed",
2250
- /**
2251
- * 文件大小超出限制
2252
- */
2253
- FileSizeExceeded = "file-size-exceeded",
2254
- /**
2255
- * 文件数量超出限制
2256
- */
2257
- FileCountExceeded = "file-count-exceeded"
2258
- }
2164
+ export { _default_9 as TrWelcome }
2165
+ export { _default_9 as Welcome }
2259
2166
 
2260
2167
  export declare interface DropdownMenuEmits {
2261
2168
  (e: 'item-click', item: DropdownMenuItem): void;
2262
- /**
2263
- * 点击外部区域时触发, 仅在 trigger 为 'click' 或 'manual' 时有效
2264
- */
2265
- (e: 'click-outside', event: MouseEvent): void;
2266
- }
2267
-
2268
- export declare interface DropdownMenuEventProps {
2269
- onItemClick?: (item: DropdownMenuItem) => void;
2270
- onClickOutside?: (event: MouseEvent) => void;
2271
2169
  }
2272
2170
 
2273
2171
  export declare interface DropdownMenuEvents {
2274
- /**
2275
- * @deprecated
2276
- */
2277
2172
  itemClick?: (item: DropdownMenuItem) => void;
2278
- /**
2279
- * @deprecated
2280
- */
2281
- clickOutside?: (event: MouseEvent) => void;
2282
2173
  }
2283
2174
 
2284
2175
  export declare interface DropdownMenuItem {
@@ -2287,69 +2178,13 @@ export declare interface DropdownMenuItem {
2287
2178
  }
2288
2179
 
2289
2180
  export declare interface DropdownMenuProps {
2290
- appendTo?: string | HTMLElement;
2291
2181
  items: DropdownMenuItem[];
2292
- /**
2293
- * trigger 为 'click' 或 'hover' 时,是一个双向绑定的 model(v-model:show),可在组件外部控制显示状态。
2294
- * 否则当 trigger 为 'manual' 时,是一个单向绑定的 prop,组件内部无法修改 show 的值
2295
- */
2296
- show?: boolean;
2297
- /**
2298
- * 触发方式。默认值为 'click'
2299
- */
2300
- trigger?: 'click' | 'hover' | 'manual';
2182
+ minWidth?: string | number;
2183
+ topOffset?: string | number;
2301
2184
  }
2302
2185
 
2303
2186
  export declare interface DropdownMenuSlots {
2304
- trigger?: () => VNode | VNode[];
2305
- }
2306
-
2307
- /**
2308
- * 拖拽上传组件的属性
2309
- */
2310
- export declare interface DropzoneBinding {
2311
- /**
2312
- * 允许上传的文件类型, 与原生 input 的 accept 属性一致
2313
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
2314
- * @example '.jpg,.png,image/*'
2315
- */
2316
- accept?: string;
2317
- /**
2318
- * 是否允许多选
2319
- * @default true
2320
- */
2321
- multiple?: boolean;
2322
- /**
2323
- * 是否禁用拖拽
2324
- * @default false
2325
- */
2326
- disabled?: boolean;
2327
- /**
2328
- * 单个文件的最大大小(单位:字节)
2329
- * @default 10 * 1024 * 1024 (10MB)
2330
- */
2331
- maxSize?: number;
2332
- /**
2333
- * 允许上传的最大文件数量
2334
- * @default 3
2335
- */
2336
- maxFiles?: number;
2337
- /**
2338
- * 拖拽完成后的回调
2339
- * @param files 上传的文件
2340
- */
2341
- onDrop: (files: File[]) => void;
2342
- /**
2343
- * 拖拽失败后的回调
2344
- * @param rejection 拒绝信息
2345
- */
2346
- onError: (rejection: FileRejection) => void;
2347
- /**
2348
- * 拖拽开始时的回调
2349
- * @param dragging 是否正在拖拽
2350
- * @param element 拖拽目标元素
2351
- */
2352
- onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
2187
+ default?: () => unknown;
2353
2188
  }
2354
2189
 
2355
2190
  export declare interface FeedbackEvents {
@@ -2378,54 +2213,6 @@ export declare interface FeedbackProps {
2378
2213
  sourcesLinesLimit?: number;
2379
2214
  }
2380
2215
 
2381
- export declare interface FileCardEmits {
2382
- (e: 'remove', file: Attachment): void;
2383
- (e: 'preview', event: MouseEvent, file: Attachment): void;
2384
- (e: 'download', event: MouseEvent, file: Attachment): void;
2385
- (e: 'retry', file: Attachment): void;
2386
- (e: 'action', payload: {
2387
- action: ActionButton;
2388
- file: Attachment;
2389
- }): void;
2390
- }
2391
-
2392
- export declare interface FileCardProps extends BaseCardProps {
2393
- file: Attachment;
2394
- variant: 'picture' | 'card';
2395
- showStatus?: boolean;
2396
- }
2397
-
2398
- /**
2399
- * 文件拒绝信息
2400
- */
2401
- export declare interface FileRejection extends RejectionReason {
2402
- files: File[];
2403
- }
2404
-
2405
- export declare type FileStatus = 'uploading' | 'success' | 'error';
2406
-
2407
- export declare type FileType = BaseFileType | string;
2408
-
2409
- export declare interface FileTypeMatcher {
2410
- type: string;
2411
- matcher: (file: File | string) => boolean;
2412
- icon?: Component;
2413
- }
2414
-
2415
- declare interface fileUploadConfig {
2416
- accept?: string;
2417
- multiple?: boolean;
2418
- }
2419
-
2420
- export declare interface Handlers {
2421
- handleDragEnter: (e: DragEvent) => void;
2422
- handleDragOver: (e: DragEvent) => void;
2423
- handleDragLeave: (e: DragEvent) => void;
2424
- handleDrop: (e: DragEvent) => void;
2425
- }
2426
-
2427
- declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2428
-
2429
2216
  export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2430
2217
 
2431
2218
  export declare interface HistoryEvents {
@@ -2476,8 +2263,6 @@ declare const install_10: <T>(app: App<T>) => void;
2476
2263
 
2477
2264
  declare const install_11: <T>(app: App<T>) => void;
2478
2265
 
2479
- declare const install_12: <T>(app: App<T>) => void;
2480
-
2481
2266
  declare const install_2: <T>(app: App<T>) => void;
2482
2267
 
2483
2268
  declare const install_3: <T>(app: App<T>) => void;
@@ -2500,62 +2285,11 @@ declare const installPrompt: <T>(app: App<T>) => void;
2500
2285
 
2501
2286
  declare const installPrompts: <T>(app: App<T>) => void;
2502
2287
 
2503
- export declare interface ISuggestionItem {
2504
- content: string;
2505
- highlights?: string[] | HighlightFunction;
2506
- }
2507
-
2508
2288
  export declare interface KeyboardHandler {
2509
2289
  handleKeyPress: (e: KeyboardEvent) => void;
2510
2290
  triggerSubmit: () => void;
2511
2291
  }
2512
2292
 
2513
- export declare interface MarketCategoryOption {
2514
- value: string;
2515
- label: string;
2516
- }
2517
-
2518
- export declare interface McpServerPickerEmits {
2519
- (e: 'search', query: string, tab: 'installed' | 'market'): void;
2520
- (e: 'market-category-change', category: string): void;
2521
- (e: 'tab-change', activeTab: 'installed' | 'market'): void;
2522
- (e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
2523
- (e: 'plugin-delete', plugin: PluginInfo): void;
2524
- (e: 'plugin-add', plugin: PluginInfo, added: boolean): void;
2525
- (e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
2526
- (e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
2527
- (e: 'refresh', tab: 'installed' | 'market'): void;
2528
- (e: 'update:activeCount', count: number): void;
2529
- (e: 'update:visible', visible: boolean): void;
2530
- }
2531
-
2532
- export declare interface McpServerPickerProps {
2533
- installedPlugins?: PluginInfo[];
2534
- marketPlugins?: PluginInfo[];
2535
- searchPlaceholder?: string;
2536
- enableSearch?: boolean;
2537
- marketCategoryOptions?: MarketCategoryOption[];
2538
- marketCategoryPlaceholder?: string;
2539
- enableMarketCategoryFilter?: boolean;
2540
- defaultActiveTab?: 'installed' | 'market';
2541
- showInstalledTab?: boolean;
2542
- showMarketTab?: boolean;
2543
- visible?: boolean;
2544
- popupConfig?: PopupConfig;
2545
- activeCount?: number;
2546
- installedTabTitle?: string;
2547
- marketTabTitle?: string;
2548
- title?: string;
2549
- showCustomAddButton?: boolean;
2550
- customAddButtonText?: string;
2551
- allowPluginToggle?: boolean;
2552
- allowToolToggle?: boolean;
2553
- allowPluginDelete?: boolean;
2554
- allowPluginAdd?: boolean;
2555
- loading?: boolean;
2556
- marketLoading?: boolean;
2557
- }
2558
-
2559
2293
  export declare type MultiTabHistoryProps = {
2560
2294
  tabs: {
2561
2295
  title: string;
@@ -2564,69 +2298,7 @@ export declare type MultiTabHistoryProps = {
2564
2298
  data: Record<string, HistoryData>;
2565
2299
  } & BaseHistoryProps;
2566
2300
 
2567
- export declare interface PluginCardEmits {
2568
- (e: 'toggle-plugin', enabled: boolean): void;
2569
- (e: 'toggle-tool', toolId: string, enabled: boolean): void;
2570
- (e: 'add-plugin', added: boolean): void;
2571
- (e: 'delete-plugin'): void;
2572
- }
2573
-
2574
- export declare type PluginCardMode = 'installed' | 'market';
2575
-
2576
- export declare interface PluginCardProps {
2577
- plugin: PluginInfo;
2578
- mode?: PluginCardMode;
2579
- showToolCount?: boolean;
2580
- }
2581
-
2582
- export declare type PluginCreationData = PluginFormData | string;
2583
-
2584
- export declare interface PluginFormData {
2585
- name: string;
2586
- description: string;
2587
- type: 'sse' | 'streamableHttp';
2588
- url: string;
2589
- headers: string;
2590
- thumbnail?: File | null;
2591
- }
2592
-
2593
- export declare interface PluginInfo {
2594
- id: string;
2595
- name: string;
2596
- icon: string;
2597
- description: string;
2598
- enabled: boolean;
2599
- tools: PluginTool[];
2600
- added?: boolean;
2601
- category?: string;
2602
- }
2603
-
2604
- export declare interface PluginModalEmits {
2605
- (e: 'update:visible', value: boolean): void;
2606
- (e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
2607
- }
2608
-
2609
- export declare interface PluginTool {
2610
- id: string;
2611
- name: string;
2612
- description: string;
2613
- enabled: boolean;
2614
- }
2615
-
2616
- export declare interface PopupConfig {
2617
- type: 'fixed' | 'drawer';
2618
- position?: {
2619
- top?: string | number;
2620
- left?: string | number;
2621
- right?: string | number;
2622
- bottom?: string | number;
2623
- };
2624
- drawer?: {
2625
- direction: 'left' | 'right';
2626
- };
2627
- }
2628
-
2629
- declare const Prompt: typeof _default_25 & {
2301
+ declare const Prompt: typeof _default_22 & {
2630
2302
  install: typeof installPrompt;
2631
2303
  };
2632
2304
  export { Prompt }
@@ -2659,7 +2331,7 @@ export declare interface PromptProps {
2659
2331
  badge?: string | VNode;
2660
2332
  }
2661
2333
 
2662
- declare const Prompts: typeof _default_26 & {
2334
+ declare const Prompts: typeof _default_23 & {
2663
2335
  install: typeof installPrompts;
2664
2336
  };
2665
2337
  export { Prompts }
@@ -2696,23 +2368,55 @@ export declare interface PromptsSlots {
2696
2368
  footer?: () => unknown;
2697
2369
  }
2698
2370
 
2699
- export declare interface RawFileAttachment extends BaseAttachment {
2700
- rawFile: File;
2701
- url?: string;
2702
- size?: number;
2371
+ declare interface Question_2 {
2372
+ id: string;
2373
+ text: string;
2374
+ keywords?: string[];
2703
2375
  }
2704
2376
 
2705
2377
  /**
2706
- * 文件拒绝原因
2378
+ * Question组件属性定义
2707
2379
  */
2708
- export declare interface RejectionReason {
2709
- code: DragZoneErrorCode;
2710
- 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;
2711
2416
  }
2712
2417
 
2713
2418
  export declare type SenderEmits = {
2714
2419
  (e: 'update:modelValue', value: string): void;
2715
- (e: 'update:templateData', value: UserItem[]): void;
2716
2420
  (e: 'submit', value: string): void;
2717
2421
  (e: 'clear'): void;
2718
2422
  (e: 'speech-start'): void;
@@ -2725,7 +2429,6 @@ export declare type SenderEmits = {
2725
2429
  (e: 'escape-press'): void;
2726
2430
  (e: 'cancel'): void;
2727
2431
  (e: 'reset-template'): void;
2728
- (e: 'files-selected', files: File[]): void;
2729
2432
  };
2730
2433
 
2731
2434
  export declare interface SenderProps {
@@ -2740,16 +2443,26 @@ export declare interface SenderProps {
2740
2443
  modelValue?: string;
2741
2444
  mode?: InputMode;
2742
2445
  maxLength?: number;
2743
- buttonGroup?: ButtonGroupConfig;
2744
2446
  submitType?: SubmitTrigger;
2745
2447
  speech?: boolean | SpeechConfig;
2746
2448
  placeholder?: string;
2747
2449
  showWordLimit?: boolean;
2748
- suggestions?: ISuggestionItem[];
2450
+ suggestions?: string[];
2749
2451
  suggestionPopupWidth?: string | number;
2750
2452
  theme?: ThemeType;
2751
- templateData?: UserItem[];
2752
- 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>;
2753
2466
  }
2754
2467
 
2755
2468
  export declare type SingleTabHistoryProps = {
@@ -2786,21 +2499,79 @@ export declare interface SpeechState {
2786
2499
 
2787
2500
  export declare type SubmitTrigger = 'enter' | 'ctrlEnter' | 'shiftEnter';
2788
2501
 
2789
- export declare interface SuggestionBaseItem {
2502
+ declare interface SuggestionBaseItem {
2790
2503
  id: string;
2791
2504
  text: string;
2792
2505
  }
2793
2506
 
2794
- 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>)[];
2795
2508
 
2796
- 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>> {
2797
2532
  group: string;
2798
2533
  label: string;
2799
2534
  icon?: VNode | Component;
2800
- 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;
2801
2556
  }
2802
2557
 
2803
- 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;
2804
2575
 
2805
2576
  declare const SuggestionPillButton: typeof _default_28 & {
2806
2577
  install: typeof installPillButton;
@@ -2817,19 +2588,21 @@ export declare interface SuggestionPillButtonSlots {
2817
2588
  icon?: () => unknown;
2818
2589
  }
2819
2590
 
2820
- export declare type SuggestionPillItem = {
2591
+ export declare type SuggestionPillItem<T = Record<string, unknown>> = SuggestionPillBaseItem<T> & ({
2821
2592
  text: string;
2822
2593
  icon?: VNode | Component;
2823
2594
  } | {
2824
2595
  text?: string;
2825
2596
  icon: VNode | Component;
2826
- };
2597
+ });
2827
2598
 
2828
2599
  export declare interface SuggestionPillsEmits {
2600
+ (e: 'item-click', item: SuggestionPillItem): void;
2829
2601
  (e: 'click-outside', event: MouseEvent): void;
2830
2602
  }
2831
2603
 
2832
2604
  export declare interface SuggestionPillsProps {
2605
+ items?: SuggestionPillItem[];
2833
2606
  /**
2834
2607
  * model:showAll
2835
2608
  */
@@ -2841,64 +2614,22 @@ export declare interface SuggestionPillsProps {
2841
2614
  * @default 'hover'
2842
2615
  */
2843
2616
  showAllButtonOn?: 'hover' | 'always';
2844
- /**
2845
- * 控制多余按钮如何展示
2846
- * - expand: 点击更多按钮展开所有项
2847
- * - scroll: 横向滚动显示多余项
2848
- * @default 'expand'
2849
- */
2850
- overflowMode?: 'expand' | 'scroll';
2851
- /**
2852
- * 鼠标悬停时是否自动滚动到可见区域
2853
- */
2854
- autoScrollOn?: 'mouseenter' | 'click';
2855
2617
  }
2856
2618
 
2619
+ /**
2620
+ * @deprecated
2621
+ */
2857
2622
  export declare interface SuggestionPillsSlots {
2858
- default?: () => VNode[];
2859
- }
2860
-
2861
- export declare interface SuggestionPopoverEmits {
2862
- (e: 'item-click', item: SuggestionItem): void;
2863
- (e: 'group-click', group: SuggestionGroup): void;
2864
- (e: 'open'): void;
2865
- (e: 'close'): void;
2866
- (e: 'click-outside', event: MouseEvent): void;
2867
- }
2868
-
2869
- export declare interface SuggestionPopoverEventProps {
2870
- onItemClick?: (item: SuggestionItem) => void;
2871
- onGroupClick?: (group: SuggestionGroup) => void;
2872
- onOpen?: () => void;
2873
- onClose?: () => void;
2874
- onClickOutside?: (event: MouseEvent) => void;
2623
+ default?: () => VNode | VNode[];
2875
2624
  }
2876
2625
 
2877
- export declare interface SuggestionPopoverEvents {
2878
- /**
2879
- * @deprecated use onItemClick in props instead
2880
- */
2881
- itemClick?: (item: SuggestionItem) => void;
2882
- /**
2883
- * @deprecated use onGroupClick in props instead
2884
- */
2626
+ declare interface SuggestionPopoverEvents {
2627
+ itemClick?: (item: SuggestionItem_2) => void;
2885
2628
  groupClick?: (group: SuggestionGroup) => void;
2886
- /**
2887
- * @deprecated use onOpen in props instead
2888
- */
2889
- open?: () => void;
2890
- /**
2891
- * @deprecated use onClose in props instead
2892
- */
2893
2629
  close?: () => void;
2894
- /**
2895
- * @deprecated use onClickOutside in props instead
2896
- */
2897
- clickOutside?: (event: MouseEvent) => void;
2898
2630
  }
2899
2631
 
2900
- export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2901
- appendTo?: string | HTMLElement;
2632
+ declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2902
2633
  data: SuggestionData<T>;
2903
2634
  title?: string;
2904
2635
  icon?: VNode | Component;
@@ -2916,64 +2647,125 @@ export declare interface SuggestionPopoverProps<T = Record<string, unknown>> {
2916
2647
  selectedGroup?: string;
2917
2648
  groupShowMoreTrigger?: 'click' | 'hover';
2918
2649
  loading?: boolean;
2919
- topOffset?: number;
2650
+ popoverWidth?: string | number;
2651
+ popoverHeight?: string | number;
2652
+ topOffset?: string | number;
2920
2653
  }
2921
2654
 
2922
- export declare interface SuggestionPopoverSlots {
2923
- trigger?: () => VNode | VNode[];
2924
- item?: ({ item }: {
2925
- item: SuggestionItem;
2926
- }) => VNode | VNode[];
2927
- loading?: () => VNode | VNode[];
2928
- empty?: () => VNode | VNode[];
2929
- header?: () => VNode | VNode[];
2930
- body?: () => VNode | VNode[];
2655
+ declare interface SuggestionPopoverSlots {
2656
+ default?: () => unknown;
2657
+ loading?: () => unknown;
2658
+ empty?: () => unknown;
2931
2659
  }
2932
2660
 
2933
- export declare interface SuggestionTextPart {
2934
- text: string;
2935
- 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;
2936
2687
  }
2937
2688
 
2938
- declare interface TemplateItem extends BaseTextItem {
2939
- type: 'template';
2940
- prefix: string;
2941
- 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;
2942
2705
  }
2943
2706
 
2944
- declare interface TextItem extends BaseTextItem {
2945
- 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;
2946
2721
  }
2947
2722
 
2948
2723
  /**
2949
- * 组件核心类型定义
2724
+ * 模板编辑器属性
2950
2725
  */
2951
- export declare type ThemeType = 'light' | 'dark';
2952
-
2953
- export declare type TooltipRender = () => VNode | string;
2954
-
2955
- export declare interface UrlAttachment extends BaseAttachment {
2956
- url: string;
2957
- size: number;
2958
- rawFile?: File;
2726
+ export declare interface TemplateEditorProps {
2727
+ /** 当前值 */
2728
+ value?: string;
2729
+ /** 是否自动聚焦 */
2730
+ autofocus?: boolean;
2959
2731
  }
2960
2732
 
2961
- 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
+ }
2962
2746
 
2963
- export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
2964
- id?: TemplateItem['id'];
2965
- };
2747
+ /**
2748
+ * 组件核心类型定义
2749
+ */
2750
+ export declare type ThemeType = 'light' | 'dark';
2966
2751
 
2967
- export declare type UserTextItem = Omit<TextItem, 'id'> & {
2968
- id?: TextItem['id'];
2969
- };
2752
+ declare type ThemeType_3 = 'light' | 'dark';
2970
2753
 
2971
2754
  /**
2972
- * 拖拽区域指令
2973
- * @param el 元素
2974
- * @param binding 绑定
2755
+ * 触发位置信息
2975
2756
  */
2976
- 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;
2977
2769
 
2978
2770
  export declare interface WelcomeProps {
2979
2771
  title: string;