@opentiny/tiny-robot 0.3.0-alpha.9 → 0.3.0-rc.0
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/action-group/index.js +14 -14
- package/dist/attachments/index.js +526 -0
- package/dist/bubble/index.js +2067 -1322
- package/dist/container/index.js +33 -33
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +117 -50
- package/dist/feedback/index.js +75 -75
- package/dist/flow-layout-buttons/index.js +29 -29
- package/dist/history/index.js +71 -72
- package/dist/index.d.ts +1029 -451
- package/dist/index.js +207 -63
- package/dist/index2.js +477 -388
- package/dist/index3.js +98 -88
- package/dist/loading.js +4 -0
- package/dist/mcp-server-picker/index.js +736 -0
- package/dist/no-data.js +4 -0
- package/dist/sender/index.js +900 -782
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +15 -15
- package/dist/suggestion-popover/index.js +185 -183
- package/dist/useSlotRefs.js +6 -6
- package/dist/utils.js +8 -2
- package/package.json +5 -9
- package/dist/close.js +0 -29
- package/dist/index4.js +0 -315
- package/dist/index5.js +0 -637
- package/dist/index6.js +0 -2156
- package/dist/index7.js +0 -4749
- package/dist/question/index.js +0 -429
- package/dist/suggestion/index.js +0 -497
- package/dist/tiny-robot-svgs.js +0 -590
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 {
|
|
4
|
+
import { BubbleContentItem as BubbleContentItem_2 } from './renderers';
|
|
5
5
|
import { Component } from 'vue';
|
|
6
6
|
import { ComponentCustomProperties } from 'vue';
|
|
7
7
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -11,18 +11,23 @@ import { ComponentOptionsMixin } from 'vue';
|
|
|
11
11
|
import { ComponentProvideOptions } from 'vue';
|
|
12
12
|
import { ComponentPublicInstance } from 'vue';
|
|
13
13
|
import { ComputedRef } from 'vue';
|
|
14
|
+
import { Config } from 'dompurify';
|
|
14
15
|
import { CreateComponentPublicInstanceWithMixins } from 'vue';
|
|
15
16
|
import { CSSProperties } from 'vue';
|
|
16
17
|
import { DebuggerEvent } from 'vue';
|
|
17
18
|
import { DefineComponent } from 'vue';
|
|
19
|
+
import { Directive } from 'vue';
|
|
20
|
+
import { DisplayVariant as DisplayVariant_2 } from './index.type';
|
|
18
21
|
import { ExtractPropTypes } from 'vue';
|
|
22
|
+
import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
|
|
19
23
|
import { GlobalComponents } from 'vue';
|
|
20
24
|
import { GlobalDirectives } from 'vue';
|
|
21
25
|
import { InputMode as InputMode_2 } from './index.type';
|
|
26
|
+
import { ISuggestionItem as ISuggestionItem_2 } from './index.type';
|
|
27
|
+
import { MarketCategoryOption as MarketCategoryOption_2 } from './index.type';
|
|
22
28
|
import { nextTick } from 'vue';
|
|
23
29
|
import { OnCleanup } from '@vue/reactivity';
|
|
24
30
|
import { Options } from 'markdown-it';
|
|
25
|
-
import { Props } from './components/SuggestionList.vue';
|
|
26
31
|
import { PropType } from 'vue';
|
|
27
32
|
import { PublicProps } from 'vue';
|
|
28
33
|
import { Ref } from 'vue';
|
|
@@ -40,13 +45,157 @@ import { WatchOptions } from 'vue';
|
|
|
40
45
|
import { WatchStopHandle } from 'vue';
|
|
41
46
|
|
|
42
47
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
content: string | BubbleContentItem_2[];
|
|
49
|
+
placement: "start" | "end";
|
|
50
|
+
shape: "rounded" | "corner";
|
|
45
51
|
maxWidth: string | number;
|
|
46
|
-
content: string;
|
|
47
52
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
48
53
|
|
|
49
|
-
declare const
|
|
54
|
+
declare const __VLS_component_10: DefineComponent<__VLS_PublicProps_4, {
|
|
55
|
+
update: () => void;
|
|
56
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
57
|
+
"update:selectedGroup": (value: string) => any;
|
|
58
|
+
} & {
|
|
59
|
+
close: () => any;
|
|
60
|
+
open: () => any;
|
|
61
|
+
"item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
|
|
62
|
+
"click-outside": (event: MouseEvent) => any;
|
|
63
|
+
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
64
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
|
|
65
|
+
onClose?: (() => any) | undefined;
|
|
66
|
+
onOpen?: (() => any) | undefined;
|
|
67
|
+
"onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
|
|
68
|
+
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
69
|
+
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
70
|
+
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
71
|
+
}>, {
|
|
72
|
+
title: string;
|
|
73
|
+
trigger: "click" | "manual";
|
|
74
|
+
groupShowMoreTrigger: "click" | "hover";
|
|
75
|
+
topOffset: number;
|
|
76
|
+
}, {}, {}, {}, 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;
|
|
169
|
+
listRef: HTMLUListElement;
|
|
170
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
171
|
+
show?: TooltipContentProps["show"];
|
|
172
|
+
} & TooltipContentProps> & Readonly<{
|
|
173
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
174
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
175
|
+
"update:show": (value: boolean | undefined) => any;
|
|
176
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
177
|
+
P: {};
|
|
178
|
+
B: {};
|
|
179
|
+
D: {};
|
|
180
|
+
C: {};
|
|
181
|
+
M: {};
|
|
182
|
+
Defaults: {};
|
|
183
|
+
}, Readonly<{
|
|
184
|
+
show?: TooltipContentProps["show"];
|
|
185
|
+
} & TooltipContentProps> & Readonly<{
|
|
186
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
187
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
188
|
+
}, any>;
|
|
189
|
+
|
|
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
|
+
declare const __VLS_component_2: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
195
|
+
contentRenderers: Record<string, BubbleContentRenderer>;
|
|
196
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
197
|
+
|
|
198
|
+
declare const __VLS_component_3: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
50
199
|
"update:show": (value: boolean) => any;
|
|
51
200
|
"update:fullscreen": (value: boolean | undefined) => any;
|
|
52
201
|
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -54,8 +203,10 @@ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {},
|
|
|
54
203
|
"onUpdate:fullscreen"?: ((value: boolean | undefined) => any) | undefined;
|
|
55
204
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
56
205
|
|
|
57
|
-
declare const
|
|
58
|
-
|
|
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;
|
|
59
210
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
211
|
"update:show": (value: boolean) => any;
|
|
61
212
|
} & {
|
|
@@ -162,13 +313,13 @@ content?: () => VNode[];
|
|
|
162
313
|
}) | null;
|
|
163
314
|
}, any>;
|
|
164
315
|
|
|
165
|
-
declare const
|
|
316
|
+
declare const __VLS_component_6: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
166
317
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
167
318
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
168
319
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
169
320
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
170
321
|
|
|
171
|
-
declare const
|
|
322
|
+
declare const __VLS_component_7: DefineComponent<SenderProps, {
|
|
172
323
|
focus: () => void;
|
|
173
324
|
blur: () => void;
|
|
174
325
|
clear: () => void;
|
|
@@ -176,17 +327,44 @@ submit: () => void;
|
|
|
176
327
|
startSpeech: () => void;
|
|
177
328
|
stopSpeech: () => void;
|
|
178
329
|
activateTemplateFirstField: () => void;
|
|
179
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
330
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
331
|
+
clear: () => any;
|
|
332
|
+
blur: (event: FocusEvent) => any;
|
|
333
|
+
cancel: () => any;
|
|
334
|
+
focus: (event: FocusEvent) => any;
|
|
335
|
+
submit: (value: string) => any;
|
|
336
|
+
"update:modelValue": (value: string) => any;
|
|
337
|
+
"update:templateData": (value: UserItem[]) => any;
|
|
338
|
+
"speech-start": () => any;
|
|
339
|
+
"speech-end": (transcript?: string | undefined) => any;
|
|
340
|
+
"speech-interim": (transcript: string) => any;
|
|
341
|
+
"speech-error": (error: Error) => any;
|
|
342
|
+
"suggestion-select": (value: string) => any;
|
|
343
|
+
"escape-press": () => any;
|
|
344
|
+
"reset-template": () => any;
|
|
345
|
+
"files-selected": (files: File[]) => any;
|
|
183
346
|
}, string, PublicProps, Readonly<SenderProps> & Readonly<{
|
|
184
|
-
|
|
347
|
+
onClear?: (() => any) | undefined;
|
|
348
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
349
|
+
onCancel?: (() => any) | undefined;
|
|
350
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
351
|
+
onSubmit?: ((value: string) => any) | undefined;
|
|
352
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
353
|
+
"onUpdate:templateData"?: ((value: UserItem[]) => any) | undefined;
|
|
354
|
+
"onSpeech-start"?: (() => any) | undefined;
|
|
355
|
+
"onSpeech-end"?: ((transcript?: string | undefined) => any) | undefined;
|
|
356
|
+
"onSpeech-interim"?: ((transcript: string) => any) | undefined;
|
|
357
|
+
"onSpeech-error"?: ((error: Error) => any) | undefined;
|
|
358
|
+
"onSuggestion-select"?: ((value: string) => any) | undefined;
|
|
359
|
+
"onEscape-press"?: (() => any) | undefined;
|
|
360
|
+
"onReset-template"?: (() => any) | undefined;
|
|
361
|
+
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
185
362
|
}>, {
|
|
186
|
-
loading: boolean;
|
|
187
|
-
mode: InputMode_2;
|
|
188
363
|
disabled: boolean;
|
|
189
364
|
modelValue: string;
|
|
365
|
+
placeholder: string;
|
|
366
|
+
mode: InputMode_2;
|
|
367
|
+
loading: boolean;
|
|
190
368
|
autofocus: boolean;
|
|
191
369
|
clearable: boolean;
|
|
192
370
|
showWordLimit: boolean;
|
|
@@ -194,10 +372,9 @@ allowSpeech: boolean;
|
|
|
194
372
|
allowFiles: boolean;
|
|
195
373
|
submitType: SubmitTrigger_2;
|
|
196
374
|
stopText: string;
|
|
197
|
-
suggestions:
|
|
375
|
+
suggestions: ISuggestionItem_2[];
|
|
198
376
|
autoSize: AutoSize_2;
|
|
199
377
|
maxLength: number;
|
|
200
|
-
placeholder: string;
|
|
201
378
|
suggestionPopupWidth: string | number;
|
|
202
379
|
theme: ThemeType_2;
|
|
203
380
|
templateData: UserItem[];
|
|
@@ -685,33 +862,11 @@ showTooltip: boolean;
|
|
|
685
862
|
inputBoxType: string;
|
|
686
863
|
}> | null;
|
|
687
864
|
buttonsContainerRef: HTMLDivElement;
|
|
688
|
-
suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
|
|
689
|
-
onSelect?: ((item: string) => any) | undefined;
|
|
690
|
-
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
691
|
-
"onItem-leave"?: (() => any) | undefined;
|
|
692
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
693
|
-
select: (item: string) => any;
|
|
694
|
-
"item-hover": (index: number) => any;
|
|
695
|
-
"item-leave": () => any;
|
|
696
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
697
|
-
suggestionsListRef: HTMLDivElement;
|
|
698
|
-
}, any, ComponentProvideOptions, {
|
|
699
|
-
P: {};
|
|
700
|
-
B: {};
|
|
701
|
-
D: {};
|
|
702
|
-
C: {};
|
|
703
|
-
M: {};
|
|
704
|
-
Defaults: {};
|
|
705
|
-
}, Readonly<Props> & Readonly<{
|
|
706
|
-
onSelect?: ((item: string) => any) | undefined;
|
|
707
|
-
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
708
|
-
"onItem-leave"?: (() => any) | undefined;
|
|
709
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
710
865
|
}, HTMLDivElement>;
|
|
711
866
|
|
|
712
|
-
declare const
|
|
867
|
+
declare const __VLS_component_8: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
713
868
|
|
|
714
|
-
declare const
|
|
869
|
+
declare const __VLS_component_9: DefineComponent<__VLS_PublicProps_3, {
|
|
715
870
|
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
716
871
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
717
872
|
"update:showAll": (value: boolean | undefined) => any;
|
|
@@ -731,184 +886,200 @@ floatingItemsRef: HTMLDivElement;
|
|
|
731
886
|
floatingMaybeItemRefs: unknown[];
|
|
732
887
|
}, HTMLDivElement>;
|
|
733
888
|
|
|
734
|
-
declare
|
|
735
|
-
|
|
736
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
737
|
-
"update:selectedGroup": (value: string) => any;
|
|
738
|
-
} & {
|
|
739
|
-
close: () => any;
|
|
740
|
-
open: () => any;
|
|
741
|
-
"item-click": (item: SuggestionItem<Record<string, unknown>>) => any;
|
|
742
|
-
"click-outside": (event: MouseEvent) => any;
|
|
743
|
-
"group-click": (group: SuggestionGroup<Record<string, unknown>>) => any;
|
|
744
|
-
}, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
|
|
745
|
-
onClose?: (() => any) | undefined;
|
|
746
|
-
onOpen?: (() => any) | undefined;
|
|
747
|
-
"onItem-click"?: ((item: SuggestionItem<Record<string, unknown>>) => any) | undefined;
|
|
748
|
-
"onClick-outside"?: ((event: MouseEvent) => any) | undefined;
|
|
749
|
-
"onGroup-click"?: ((group: SuggestionGroup<Record<string, unknown>>) => any) | undefined;
|
|
750
|
-
"onUpdate:selectedGroup"?: ((value: string) => any) | undefined;
|
|
751
|
-
}>, {
|
|
752
|
-
title: string;
|
|
753
|
-
trigger: "click" | "manual";
|
|
754
|
-
groupShowMoreTrigger: "click" | "hover";
|
|
755
|
-
topOffset: number;
|
|
756
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
757
|
-
basePopperRef: ({
|
|
758
|
-
$: ComponentInternalInstance;
|
|
759
|
-
$data: {};
|
|
760
|
-
$props: {
|
|
761
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
762
|
-
readonly offset?: number | {
|
|
763
|
-
mainAxis?: number;
|
|
764
|
-
crossAxis?: number;
|
|
765
|
-
} | undefined;
|
|
766
|
-
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
767
|
-
readonly preventOverflow?: boolean | undefined;
|
|
768
|
-
readonly show?: boolean | undefined;
|
|
769
|
-
readonly transitionProps?: TransitionProps | undefined;
|
|
770
|
-
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
771
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
772
|
-
$attrs: {
|
|
773
|
-
[x: string]: unknown;
|
|
889
|
+
declare type __VLS_Props = {
|
|
890
|
+
contentRenderers?: Record<string, BubbleContentRenderer>;
|
|
774
891
|
};
|
|
775
|
-
|
|
776
|
-
|
|
892
|
+
|
|
893
|
+
declare type __VLS_Props_2 = DropdownMenuProps;
|
|
894
|
+
|
|
895
|
+
declare type __VLS_Props_3 = SuggestionPillsProps;
|
|
896
|
+
|
|
897
|
+
declare type __VLS_Props_4 = SuggestionPopoverProps;
|
|
898
|
+
|
|
899
|
+
declare type __VLS_Props_5 = McpServerPickerProps;
|
|
900
|
+
|
|
901
|
+
declare type __VLS_PublicProps = {
|
|
902
|
+
'show': ContainerProps['show'];
|
|
903
|
+
'fullscreen'?: ContainerProps['fullscreen'];
|
|
777
904
|
};
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
905
|
+
|
|
906
|
+
declare type __VLS_PublicProps_2 = {
|
|
907
|
+
'show'?: boolean;
|
|
908
|
+
} & __VLS_Props_2;
|
|
909
|
+
|
|
910
|
+
declare type __VLS_PublicProps_3 = {
|
|
911
|
+
'showAll'?: SuggestionPillsProps['showAll'];
|
|
912
|
+
} & __VLS_Props_3;
|
|
913
|
+
|
|
914
|
+
declare type __VLS_PublicProps_4 = {
|
|
915
|
+
'selectedGroup'?: string;
|
|
916
|
+
} & __VLS_Props_4;
|
|
917
|
+
|
|
918
|
+
declare type __VLS_PublicProps_5 = {
|
|
919
|
+
'visible': boolean;
|
|
920
|
+
} & __VLS_Props_5;
|
|
921
|
+
|
|
922
|
+
declare function __VLS_template(): {
|
|
923
|
+
attrs: Partial<{}>;
|
|
924
|
+
slots: Readonly<BubbleSlots> & BubbleSlots;
|
|
925
|
+
refs: {};
|
|
926
|
+
rootEl: HTMLDivElement;
|
|
791
927
|
};
|
|
792
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
793
|
-
preventOverflow?: boolean;
|
|
794
|
-
show?: boolean;
|
|
795
|
-
transitionProps?: TransitionProps;
|
|
796
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
797
|
-
}> & Readonly<{}>, {
|
|
798
|
-
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
799
|
-
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
800
|
-
update: () => void;
|
|
801
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
802
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
803
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
804
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
805
|
-
created?: (() => void) | (() => void)[];
|
|
806
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
807
|
-
mounted?: (() => void) | (() => void)[];
|
|
808
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
809
|
-
updated?: (() => void) | (() => void)[];
|
|
810
|
-
activated?: (() => void) | (() => void)[];
|
|
811
|
-
deactivated?: (() => void) | (() => void)[];
|
|
812
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
813
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
814
|
-
destroyed?: (() => void) | (() => void)[];
|
|
815
|
-
unmounted?: (() => void) | (() => void)[];
|
|
816
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
817
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
818
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
819
|
-
};
|
|
820
|
-
$forceUpdate: () => void;
|
|
821
|
-
$nextTick: nextTick;
|
|
822
|
-
$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;
|
|
823
|
-
} & Readonly<{
|
|
824
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
825
|
-
}> & Omit<Readonly<{
|
|
826
|
-
appendTo?: string | HTMLElement;
|
|
827
|
-
offset?: number | {
|
|
828
|
-
mainAxis?: number;
|
|
829
|
-
crossAxis?: number;
|
|
830
|
-
};
|
|
831
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
832
|
-
preventOverflow?: boolean;
|
|
833
|
-
show?: boolean;
|
|
834
|
-
transitionProps?: TransitionProps;
|
|
835
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
836
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
837
|
-
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
838
|
-
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
839
|
-
update: () => void;
|
|
840
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
841
|
-
$slots: Readonly<{
|
|
842
|
-
trigger?: () => VNode[];
|
|
843
|
-
content?: () => VNode[];
|
|
844
|
-
}> & {
|
|
845
|
-
trigger?: () => VNode[];
|
|
846
|
-
content?: () => VNode[];
|
|
847
|
-
};
|
|
848
|
-
}) | null;
|
|
849
|
-
listRef: HTMLUListElement;
|
|
850
|
-
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
851
|
-
show?: TooltipContentProps["show"];
|
|
852
|
-
} & TooltipContentProps> & Readonly<{
|
|
853
|
-
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
854
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
855
|
-
"update:show": (value: boolean | undefined) => any;
|
|
856
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
857
|
-
P: {};
|
|
858
|
-
B: {};
|
|
859
|
-
D: {};
|
|
860
|
-
C: {};
|
|
861
|
-
M: {};
|
|
862
|
-
Defaults: {};
|
|
863
|
-
}, Readonly<{
|
|
864
|
-
show?: TooltipContentProps["show"];
|
|
865
|
-
} & TooltipContentProps> & Readonly<{
|
|
866
|
-
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
867
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
868
|
-
}, any>;
|
|
869
928
|
|
|
870
|
-
declare
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
929
|
+
declare function __VLS_template_10(): {
|
|
930
|
+
attrs: Partial<{}>;
|
|
931
|
+
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
932
|
+
refs: {
|
|
933
|
+
basePopperRef: ({
|
|
934
|
+
$: ComponentInternalInstance;
|
|
935
|
+
$data: {};
|
|
936
|
+
$props: {
|
|
937
|
+
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
938
|
+
readonly offset?: number | {
|
|
939
|
+
mainAxis?: number;
|
|
940
|
+
crossAxis?: number;
|
|
941
|
+
} | undefined;
|
|
942
|
+
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
943
|
+
readonly preventOverflow?: boolean | undefined;
|
|
944
|
+
readonly show?: boolean | undefined;
|
|
945
|
+
readonly transitionProps?: TransitionProps | undefined;
|
|
946
|
+
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
947
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
948
|
+
$attrs: {
|
|
949
|
+
[x: string]: unknown;
|
|
950
|
+
};
|
|
951
|
+
$refs: {
|
|
952
|
+
[x: string]: unknown;
|
|
953
|
+
};
|
|
954
|
+
$slots: Readonly<{
|
|
955
|
+
[name: string]: Slot<any> | undefined;
|
|
956
|
+
}>;
|
|
957
|
+
$root: ComponentPublicInstance | null;
|
|
958
|
+
$parent: ComponentPublicInstance | null;
|
|
959
|
+
$host: Element | null;
|
|
960
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
961
|
+
$el: any;
|
|
962
|
+
$options: ComponentOptionsBase<Readonly<{
|
|
963
|
+
appendTo?: string | HTMLElement;
|
|
964
|
+
offset?: number | {
|
|
965
|
+
mainAxis?: number;
|
|
966
|
+
crossAxis?: number;
|
|
967
|
+
};
|
|
968
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
969
|
+
preventOverflow?: boolean;
|
|
970
|
+
show?: boolean;
|
|
971
|
+
transitionProps?: TransitionProps;
|
|
972
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
973
|
+
}> & Readonly<{}>, {
|
|
974
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
975
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
976
|
+
update: () => void;
|
|
977
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
978
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
979
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
980
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
981
|
+
created?: (() => void) | (() => void)[];
|
|
982
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
983
|
+
mounted?: (() => void) | (() => void)[];
|
|
984
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
985
|
+
updated?: (() => void) | (() => void)[];
|
|
986
|
+
activated?: (() => void) | (() => void)[];
|
|
987
|
+
deactivated?: (() => void) | (() => void)[];
|
|
988
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
989
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
990
|
+
destroyed?: (() => void) | (() => void)[];
|
|
991
|
+
unmounted?: (() => void) | (() => void)[];
|
|
992
|
+
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
993
|
+
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
994
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
995
|
+
};
|
|
996
|
+
$forceUpdate: () => void;
|
|
997
|
+
$nextTick: nextTick;
|
|
998
|
+
$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;
|
|
999
|
+
} & Readonly<{
|
|
1000
|
+
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1001
|
+
}> & Omit<Readonly<{
|
|
1002
|
+
appendTo?: string | HTMLElement;
|
|
1003
|
+
offset?: number | {
|
|
1004
|
+
mainAxis?: number;
|
|
1005
|
+
crossAxis?: number;
|
|
1006
|
+
};
|
|
1007
|
+
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1008
|
+
preventOverflow?: boolean;
|
|
1009
|
+
show?: boolean;
|
|
1010
|
+
transitionProps?: TransitionProps;
|
|
1011
|
+
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1012
|
+
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1013
|
+
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1014
|
+
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1015
|
+
update: () => void;
|
|
1016
|
+
}> & {} & ComponentCustomProperties & {} & {
|
|
1017
|
+
$slots: Readonly<{
|
|
1018
|
+
trigger?: () => VNode[];
|
|
1019
|
+
content?: () => VNode[];
|
|
1020
|
+
}> & {
|
|
1021
|
+
trigger?: () => VNode[];
|
|
1022
|
+
content?: () => VNode[];
|
|
1023
|
+
};
|
|
1024
|
+
}) | null;
|
|
1025
|
+
listRef: HTMLUListElement;
|
|
1026
|
+
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1027
|
+
show?: TooltipContentProps["show"];
|
|
1028
|
+
} & TooltipContentProps> & Readonly<{
|
|
1029
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1030
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1031
|
+
"update:show": (value: boolean | undefined) => any;
|
|
1032
|
+
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1033
|
+
P: {};
|
|
1034
|
+
B: {};
|
|
1035
|
+
D: {};
|
|
1036
|
+
C: {};
|
|
1037
|
+
M: {};
|
|
1038
|
+
Defaults: {};
|
|
1039
|
+
}, Readonly<{
|
|
1040
|
+
show?: TooltipContentProps["show"];
|
|
1041
|
+
} & TooltipContentProps> & Readonly<{
|
|
1042
|
+
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1043
|
+
}>, {}, {}, {}, {}, {}> | null;
|
|
1044
|
+
};
|
|
1045
|
+
rootEl: any;
|
|
883
1046
|
};
|
|
884
1047
|
|
|
885
|
-
declare
|
|
886
|
-
'show'?: boolean;
|
|
887
|
-
} & __VLS_Props;
|
|
888
|
-
|
|
889
|
-
declare type __VLS_PublicProps_3 = {
|
|
890
|
-
'showAll'?: SuggestionPillsProps['showAll'];
|
|
891
|
-
} & __VLS_Props_2;
|
|
892
|
-
|
|
893
|
-
declare type __VLS_PublicProps_4 = {
|
|
894
|
-
'selectedGroup'?: string;
|
|
895
|
-
} & __VLS_Props_3;
|
|
896
|
-
|
|
897
|
-
declare function __VLS_template(): {
|
|
1048
|
+
declare function __VLS_template_11(): {
|
|
898
1049
|
attrs: Partial<{}>;
|
|
899
|
-
slots: Readonly<
|
|
1050
|
+
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
900
1051
|
refs: {};
|
|
901
1052
|
rootEl: HTMLDivElement;
|
|
902
1053
|
};
|
|
903
1054
|
|
|
904
1055
|
declare function __VLS_template_2(): {
|
|
1056
|
+
attrs: Partial<{}>;
|
|
1057
|
+
slots: {
|
|
1058
|
+
default?(_: {}): any;
|
|
1059
|
+
};
|
|
1060
|
+
refs: {};
|
|
1061
|
+
rootEl: any;
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
declare function __VLS_template_3(): {
|
|
905
1065
|
attrs: Partial<{}>;
|
|
906
1066
|
slots: Readonly<ContainerSlots> & ContainerSlots;
|
|
907
1067
|
refs: {};
|
|
908
1068
|
rootEl: HTMLDivElement;
|
|
909
1069
|
};
|
|
910
1070
|
|
|
911
|
-
declare function
|
|
1071
|
+
declare function __VLS_template_4(): {
|
|
1072
|
+
attrs: Partial<{}>;
|
|
1073
|
+
slots: {
|
|
1074
|
+
overlay?(_: {
|
|
1075
|
+
isDragging: true;
|
|
1076
|
+
}): any;
|
|
1077
|
+
};
|
|
1078
|
+
refs: {};
|
|
1079
|
+
rootEl: any;
|
|
1080
|
+
};
|
|
1081
|
+
|
|
1082
|
+
declare function __VLS_template_5(): {
|
|
912
1083
|
attrs: Partial<{}>;
|
|
913
1084
|
slots: {
|
|
914
1085
|
trigger?(_: {}): any;
|
|
@@ -1010,14 +1181,14 @@ declare function __VLS_template_3(): {
|
|
|
1010
1181
|
rootEl: any;
|
|
1011
1182
|
};
|
|
1012
1183
|
|
|
1013
|
-
declare function
|
|
1184
|
+
declare function __VLS_template_6(): {
|
|
1014
1185
|
attrs: Partial<{}>;
|
|
1015
1186
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
1016
1187
|
refs: {};
|
|
1017
1188
|
rootEl: HTMLDivElement;
|
|
1018
1189
|
};
|
|
1019
1190
|
|
|
1020
|
-
declare function
|
|
1191
|
+
declare function __VLS_template_7(): {
|
|
1021
1192
|
attrs: Partial<{}>;
|
|
1022
1193
|
slots: {
|
|
1023
1194
|
header?(_: {}): any;
|
|
@@ -1511,181 +1682,37 @@ declare function __VLS_template_5(): {
|
|
|
1511
1682
|
showTooltip: boolean;
|
|
1512
1683
|
inputBoxType: string;
|
|
1513
1684
|
}> | null;
|
|
1514
|
-
buttonsContainerRef: HTMLDivElement;
|
|
1515
|
-
suggestionsListRef: CreateComponentPublicInstanceWithMixins<Readonly<Props> & Readonly<{
|
|
1516
|
-
onSelect?: ((item: string) => any) | undefined;
|
|
1517
|
-
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
1518
|
-
"onItem-leave"?: (() => any) | undefined;
|
|
1519
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1520
|
-
select: (item: string) => any;
|
|
1521
|
-
"item-hover": (index: number) => any;
|
|
1522
|
-
"item-leave": () => any;
|
|
1523
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
1524
|
-
suggestionsListRef: HTMLDivElement;
|
|
1525
|
-
}, any, ComponentProvideOptions, {
|
|
1526
|
-
P: {};
|
|
1527
|
-
B: {};
|
|
1528
|
-
D: {};
|
|
1529
|
-
C: {};
|
|
1530
|
-
M: {};
|
|
1531
|
-
Defaults: {};
|
|
1532
|
-
}, Readonly<Props> & Readonly<{
|
|
1533
|
-
onSelect?: ((item: string) => any) | undefined;
|
|
1534
|
-
"onItem-hover"?: ((index: number) => any) | undefined;
|
|
1535
|
-
"onItem-leave"?: (() => any) | undefined;
|
|
1536
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
1537
|
-
};
|
|
1538
|
-
rootEl: HTMLDivElement;
|
|
1539
|
-
};
|
|
1540
|
-
|
|
1541
|
-
declare function __VLS_template_6(): {
|
|
1542
|
-
attrs: Partial<{}>;
|
|
1543
|
-
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1544
|
-
refs: {};
|
|
1545
|
-
rootEl: HTMLButtonElement;
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
declare function __VLS_template_7(): {
|
|
1549
|
-
attrs: Partial<{}>;
|
|
1550
|
-
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1551
|
-
refs: {
|
|
1552
|
-
containerWrapperRef: HTMLDivElement;
|
|
1553
|
-
containerRef: HTMLDivElement;
|
|
1554
|
-
staticMaybeItemRefs: unknown[];
|
|
1555
|
-
floatingItemsRef: HTMLDivElement;
|
|
1556
|
-
floatingMaybeItemRefs: unknown[];
|
|
1557
|
-
};
|
|
1558
|
-
rootEl: HTMLDivElement;
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
declare function __VLS_template_8(): {
|
|
1562
|
-
attrs: Partial<{}>;
|
|
1563
|
-
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
1564
|
-
refs: {
|
|
1565
|
-
basePopperRef: ({
|
|
1566
|
-
$: ComponentInternalInstance;
|
|
1567
|
-
$data: {};
|
|
1568
|
-
$props: {
|
|
1569
|
-
readonly appendTo?: (string | HTMLElement) | undefined;
|
|
1570
|
-
readonly offset?: number | {
|
|
1571
|
-
mainAxis?: number;
|
|
1572
|
-
crossAxis?: number;
|
|
1573
|
-
} | undefined;
|
|
1574
|
-
readonly placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | undefined;
|
|
1575
|
-
readonly preventOverflow?: boolean | undefined;
|
|
1576
|
-
readonly show?: boolean | undefined;
|
|
1577
|
-
readonly transitionProps?: TransitionProps | undefined;
|
|
1578
|
-
readonly triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>> | undefined;
|
|
1579
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1580
|
-
$attrs: {
|
|
1581
|
-
[x: string]: unknown;
|
|
1582
|
-
};
|
|
1583
|
-
$refs: {
|
|
1584
|
-
[x: string]: unknown;
|
|
1585
|
-
};
|
|
1586
|
-
$slots: Readonly<{
|
|
1587
|
-
[name: string]: Slot<any> | undefined;
|
|
1588
|
-
}>;
|
|
1589
|
-
$root: ComponentPublicInstance | null;
|
|
1590
|
-
$parent: ComponentPublicInstance | null;
|
|
1591
|
-
$host: Element | null;
|
|
1592
|
-
$emit: (event: string, ...args: any[]) => void;
|
|
1593
|
-
$el: any;
|
|
1594
|
-
$options: ComponentOptionsBase<Readonly<{
|
|
1595
|
-
appendTo?: string | HTMLElement;
|
|
1596
|
-
offset?: number | {
|
|
1597
|
-
mainAxis?: number;
|
|
1598
|
-
crossAxis?: number;
|
|
1599
|
-
};
|
|
1600
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1601
|
-
preventOverflow?: boolean;
|
|
1602
|
-
show?: boolean;
|
|
1603
|
-
transitionProps?: TransitionProps;
|
|
1604
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1605
|
-
}> & Readonly<{}>, {
|
|
1606
|
-
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1607
|
-
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1608
|
-
update: () => void;
|
|
1609
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
1610
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1611
|
-
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
|
|
1612
|
-
beforeCreate?: (() => void) | (() => void)[];
|
|
1613
|
-
created?: (() => void) | (() => void)[];
|
|
1614
|
-
beforeMount?: (() => void) | (() => void)[];
|
|
1615
|
-
mounted?: (() => void) | (() => void)[];
|
|
1616
|
-
beforeUpdate?: (() => void) | (() => void)[];
|
|
1617
|
-
updated?: (() => void) | (() => void)[];
|
|
1618
|
-
activated?: (() => void) | (() => void)[];
|
|
1619
|
-
deactivated?: (() => void) | (() => void)[];
|
|
1620
|
-
beforeDestroy?: (() => void) | (() => void)[];
|
|
1621
|
-
beforeUnmount?: (() => void) | (() => void)[];
|
|
1622
|
-
destroyed?: (() => void) | (() => void)[];
|
|
1623
|
-
unmounted?: (() => void) | (() => void)[];
|
|
1624
|
-
renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1625
|
-
renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
|
|
1626
|
-
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1627
|
-
};
|
|
1628
|
-
$forceUpdate: () => void;
|
|
1629
|
-
$nextTick: nextTick;
|
|
1630
|
-
$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;
|
|
1631
|
-
} & Readonly<{
|
|
1632
|
-
placement: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1633
|
-
}> & Omit<Readonly<{
|
|
1634
|
-
appendTo?: string | HTMLElement;
|
|
1635
|
-
offset?: number | {
|
|
1636
|
-
mainAxis?: number;
|
|
1637
|
-
crossAxis?: number;
|
|
1638
|
-
};
|
|
1639
|
-
placement?: "top-center" | "bottom-center" | "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
1640
|
-
preventOverflow?: boolean;
|
|
1641
|
-
show?: boolean;
|
|
1642
|
-
transitionProps?: TransitionProps;
|
|
1643
|
-
triggerEvents?: Partial<Record<`on${Capitalize<string>}`, (...args: any[]) => void>>;
|
|
1644
|
-
}> & Readonly<{}>, "placement" | "popperRef" | "update" | "triggerRef"> & ShallowUnwrapRef< {
|
|
1645
|
-
triggerRef: ComputedRef<HTMLElement | SVGElement | null | undefined>;
|
|
1646
|
-
popperRef: ComputedRef<HTMLDivElement | null>;
|
|
1647
|
-
update: () => void;
|
|
1648
|
-
}> & {} & ComponentCustomProperties & {} & {
|
|
1649
|
-
$slots: Readonly<{
|
|
1650
|
-
trigger?: () => VNode[];
|
|
1651
|
-
content?: () => VNode[];
|
|
1652
|
-
}> & {
|
|
1653
|
-
trigger?: () => VNode[];
|
|
1654
|
-
content?: () => VNode[];
|
|
1655
|
-
};
|
|
1656
|
-
}) | null;
|
|
1657
|
-
listRef: HTMLUListElement;
|
|
1658
|
-
tooltipRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1659
|
-
show?: TooltipContentProps["show"];
|
|
1660
|
-
} & TooltipContentProps> & Readonly<{
|
|
1661
|
-
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1662
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
1663
|
-
"update:show": (value: boolean | undefined) => any;
|
|
1664
|
-
}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
1665
|
-
P: {};
|
|
1666
|
-
B: {};
|
|
1667
|
-
D: {};
|
|
1668
|
-
C: {};
|
|
1669
|
-
M: {};
|
|
1670
|
-
Defaults: {};
|
|
1671
|
-
}, Readonly<{
|
|
1672
|
-
show?: TooltipContentProps["show"];
|
|
1673
|
-
} & TooltipContentProps> & Readonly<{
|
|
1674
|
-
"onUpdate:show"?: ((value: boolean | undefined) => any) | undefined;
|
|
1675
|
-
}>, {}, {}, {}, {}, {}> | null;
|
|
1685
|
+
buttonsContainerRef: HTMLDivElement;
|
|
1676
1686
|
};
|
|
1677
|
-
rootEl:
|
|
1687
|
+
rootEl: HTMLDivElement;
|
|
1678
1688
|
};
|
|
1679
1689
|
|
|
1680
|
-
declare function
|
|
1690
|
+
declare function __VLS_template_8(): {
|
|
1681
1691
|
attrs: Partial<{}>;
|
|
1682
|
-
slots: Readonly<
|
|
1692
|
+
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1683
1693
|
refs: {};
|
|
1694
|
+
rootEl: HTMLButtonElement;
|
|
1695
|
+
};
|
|
1696
|
+
|
|
1697
|
+
declare function __VLS_template_9(): {
|
|
1698
|
+
attrs: Partial<{}>;
|
|
1699
|
+
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1700
|
+
refs: {
|
|
1701
|
+
containerWrapperRef: HTMLDivElement;
|
|
1702
|
+
containerRef: HTMLDivElement;
|
|
1703
|
+
staticMaybeItemRefs: unknown[];
|
|
1704
|
+
floatingItemsRef: HTMLDivElement;
|
|
1705
|
+
floatingMaybeItemRefs: unknown[];
|
|
1706
|
+
};
|
|
1684
1707
|
rootEl: HTMLDivElement;
|
|
1685
1708
|
};
|
|
1686
1709
|
|
|
1687
1710
|
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
1688
1711
|
|
|
1712
|
+
declare type __VLS_TemplateResult_10 = ReturnType<typeof __VLS_template_10>;
|
|
1713
|
+
|
|
1714
|
+
declare type __VLS_TemplateResult_11 = ReturnType<typeof __VLS_template_11>;
|
|
1715
|
+
|
|
1689
1716
|
declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
1690
1717
|
|
|
1691
1718
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
@@ -1708,6 +1735,18 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
1708
1735
|
};
|
|
1709
1736
|
};
|
|
1710
1737
|
|
|
1738
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
1739
|
+
new (): {
|
|
1740
|
+
$slots: S;
|
|
1741
|
+
};
|
|
1742
|
+
};
|
|
1743
|
+
|
|
1744
|
+
declare type __VLS_WithTemplateSlots_11<T, S> = T & {
|
|
1745
|
+
new (): {
|
|
1746
|
+
$slots: S;
|
|
1747
|
+
};
|
|
1748
|
+
};
|
|
1749
|
+
|
|
1711
1750
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
1712
1751
|
new (): {
|
|
1713
1752
|
$slots: S;
|
|
@@ -1756,11 +1795,18 @@ declare type __VLS_WithTemplateSlots_9<T, S> = T & {
|
|
|
1756
1795
|
};
|
|
1757
1796
|
};
|
|
1758
1797
|
|
|
1798
|
+
export declare interface ActionButton {
|
|
1799
|
+
type: string;
|
|
1800
|
+
label: string;
|
|
1801
|
+
handler?: (file: Attachment) => void;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1759
1804
|
export declare interface ActionButtonsProps {
|
|
1760
1805
|
loading?: boolean;
|
|
1761
1806
|
disabled?: boolean;
|
|
1762
1807
|
showClear?: boolean;
|
|
1763
1808
|
hasContent?: boolean;
|
|
1809
|
+
buttonGroup?: ButtonGroupConfig;
|
|
1764
1810
|
allowSpeech?: boolean;
|
|
1765
1811
|
speechStatus?: {
|
|
1766
1812
|
isRecording: boolean;
|
|
@@ -1773,11 +1819,47 @@ export declare interface ActionButtonsProps {
|
|
|
1773
1819
|
stopText?: string;
|
|
1774
1820
|
}
|
|
1775
1821
|
|
|
1822
|
+
export declare type Attachment = UrlAttachment | RawFileAttachment;
|
|
1823
|
+
|
|
1824
|
+
export declare interface AttachmentListEmits {
|
|
1825
|
+
(e: 'update:items', items: Attachment[]): void;
|
|
1826
|
+
(e: 'remove', file: Attachment): void;
|
|
1827
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
1828
|
+
(e: 'retry', file: Attachment): void;
|
|
1829
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
1830
|
+
(e: 'action', payload: {
|
|
1831
|
+
action: ActionButton;
|
|
1832
|
+
file: Attachment;
|
|
1833
|
+
}): void;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
export declare interface AttachmentListProps {
|
|
1837
|
+
items?: Attachment[];
|
|
1838
|
+
disabled?: boolean;
|
|
1839
|
+
wrap?: boolean;
|
|
1840
|
+
fileIcons?: Record<string, Component>;
|
|
1841
|
+
actions?: ActionButton[];
|
|
1842
|
+
variant?: DisplayVariant;
|
|
1843
|
+
fileMatchers?: FileTypeMatcher[];
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1776
1846
|
export declare type AutoSize = boolean | {
|
|
1777
1847
|
minRows: number;
|
|
1778
1848
|
maxRows: number;
|
|
1779
1849
|
};
|
|
1780
1850
|
|
|
1851
|
+
export declare interface BaseAttachment {
|
|
1852
|
+
id?: string;
|
|
1853
|
+
name?: string;
|
|
1854
|
+
status?: FileStatus;
|
|
1855
|
+
fileType?: FileType;
|
|
1856
|
+
message?: string;
|
|
1857
|
+
}
|
|
1858
|
+
|
|
1859
|
+
declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled' | 'actions' | 'fileMatchers'>;
|
|
1860
|
+
|
|
1861
|
+
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
1862
|
+
|
|
1781
1863
|
declare interface BaseHistoryProps {
|
|
1782
1864
|
activeTab?: string;
|
|
1783
1865
|
searchBar?: boolean;
|
|
@@ -1793,15 +1875,60 @@ declare interface BaseTextItem {
|
|
|
1793
1875
|
content: string;
|
|
1794
1876
|
}
|
|
1795
1877
|
|
|
1796
|
-
declare const Bubble: typeof
|
|
1878
|
+
declare const Bubble: typeof _default_16 & {
|
|
1797
1879
|
install: typeof bubbleInstall;
|
|
1798
1880
|
};
|
|
1799
1881
|
export { Bubble }
|
|
1800
1882
|
export { Bubble as TrBubble }
|
|
1801
1883
|
|
|
1884
|
+
export declare interface BubbleCommonProps {
|
|
1885
|
+
/**
|
|
1886
|
+
* 气泡对齐位置
|
|
1887
|
+
*/
|
|
1888
|
+
placement?: 'start' | 'end';
|
|
1889
|
+
/**
|
|
1890
|
+
* 气泡头像
|
|
1891
|
+
*/
|
|
1892
|
+
avatar?: VNode;
|
|
1893
|
+
/**
|
|
1894
|
+
* 气泡形状,默认 'corner'
|
|
1895
|
+
*/
|
|
1896
|
+
shape?: 'rounded' | 'corner';
|
|
1897
|
+
/**
|
|
1898
|
+
* 气泡内容渲染器。
|
|
1899
|
+
* 如果 Bubble 中的 content 是长度大于 0 的数组,则 contentRenderer 无效。将会使用 BubbleProvider 中注册的渲染器
|
|
1900
|
+
*/
|
|
1901
|
+
contentRenderer?: BubbleContentRenderer;
|
|
1902
|
+
/**
|
|
1903
|
+
* 自定义气泡内容字段。比如 customContentField 设置为 'my-content',则 Bubble 优先渲染 my-content 属性到气泡内容
|
|
1904
|
+
*/
|
|
1905
|
+
customContentField?: string;
|
|
1906
|
+
/**
|
|
1907
|
+
* 气泡最大宽度
|
|
1908
|
+
*/
|
|
1909
|
+
maxWidth?: string | number;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export declare abstract class BubbleContentClassRenderer {
|
|
1913
|
+
abstract render(options: {
|
|
1914
|
+
[key: string]: any;
|
|
1915
|
+
}): VNode;
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
export declare type BubbleContentFunctionRenderer = (options: {
|
|
1919
|
+
[key: string]: any;
|
|
1920
|
+
}) => VNode;
|
|
1921
|
+
|
|
1922
|
+
export declare interface BubbleContentItem {
|
|
1923
|
+
type: string;
|
|
1924
|
+
[key: string]: any;
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component;
|
|
1928
|
+
|
|
1802
1929
|
declare const bubbleInstall: (app: App) => void;
|
|
1803
1930
|
|
|
1804
|
-
declare const BubbleList: typeof
|
|
1931
|
+
declare const BubbleList: typeof _default_17 & {
|
|
1805
1932
|
install: typeof bubbleListInstall;
|
|
1806
1933
|
};
|
|
1807
1934
|
export { BubbleList }
|
|
@@ -1817,37 +1944,60 @@ export declare interface BubbleListProps {
|
|
|
1817
1944
|
* 每个角色的默认配置项
|
|
1818
1945
|
*/
|
|
1819
1946
|
roles?: Record<string, BubbleRoleConfig>;
|
|
1947
|
+
/**
|
|
1948
|
+
* 列表是否加载中
|
|
1949
|
+
*/
|
|
1950
|
+
loading?: boolean;
|
|
1951
|
+
/**
|
|
1952
|
+
* 指定哪个角色可以有加载中状态
|
|
1953
|
+
*/
|
|
1954
|
+
loadingRole?: string;
|
|
1820
1955
|
autoScroll?: boolean;
|
|
1821
1956
|
}
|
|
1822
1957
|
|
|
1823
|
-
export declare
|
|
1958
|
+
export declare class BubbleMarkdownContentRenderer extends BubbleContentClassRenderer {
|
|
1959
|
+
readonly mdConfig: Options;
|
|
1960
|
+
readonly dompurifyConfig: Config;
|
|
1961
|
+
readonly sanitizeDisabled: boolean;
|
|
1962
|
+
readonly defaultAttrs: Record<string, unknown>;
|
|
1963
|
+
private md;
|
|
1964
|
+
constructor(options?: BubbleMarkdownRendererOptions);
|
|
1965
|
+
render(options: {
|
|
1966
|
+
content?: string;
|
|
1967
|
+
[key: string]: unknown;
|
|
1968
|
+
}): VNode<RendererNode, RendererElement, {
|
|
1969
|
+
[key: string]: any;
|
|
1970
|
+
}>;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
declare interface BubbleMarkdownRendererOptions {
|
|
1974
|
+
mdConfig?: Options;
|
|
1975
|
+
dompurifyConfig?: Config;
|
|
1976
|
+
sanitizeDisabled?: boolean;
|
|
1977
|
+
defaultAttrs?: Record<string, unknown>;
|
|
1978
|
+
}
|
|
1824
1979
|
|
|
1825
|
-
export declare interface BubbleProps {
|
|
1980
|
+
export declare interface BubbleProps extends BubbleCommonProps {
|
|
1826
1981
|
/**
|
|
1827
1982
|
* 气泡内容
|
|
1828
1983
|
*/
|
|
1829
|
-
content?: string;
|
|
1984
|
+
content?: string | BubbleContentItem[];
|
|
1830
1985
|
id?: string | number | symbol;
|
|
1831
|
-
/**
|
|
1832
|
-
* 气泡位置
|
|
1833
|
-
*/
|
|
1834
|
-
placement?: BubblePalcement;
|
|
1835
|
-
avatar?: VNode;
|
|
1836
1986
|
role?: string;
|
|
1837
|
-
/**
|
|
1838
|
-
* 内容类型
|
|
1839
|
-
*/
|
|
1840
|
-
type?: 'text' | 'markdown';
|
|
1841
1987
|
loading?: boolean;
|
|
1842
1988
|
aborted?: boolean;
|
|
1843
|
-
/**
|
|
1844
|
-
* type 为 'markdown' 时,markdown 的配置项
|
|
1845
|
-
*/
|
|
1846
|
-
mdConfig?: Options;
|
|
1847
|
-
maxWidth?: string | number;
|
|
1848
1989
|
}
|
|
1849
1990
|
|
|
1850
|
-
|
|
1991
|
+
declare const BubbleProvider: typeof _default_18 & {
|
|
1992
|
+
install: typeof bubbleProviderInstall;
|
|
1993
|
+
};
|
|
1994
|
+
export { BubbleProvider }
|
|
1995
|
+
export { BubbleProvider as TrBubbleProvider }
|
|
1996
|
+
|
|
1997
|
+
declare const bubbleProviderInstall: (app: App) => void;
|
|
1998
|
+
|
|
1999
|
+
export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
2000
|
+
hidden?: boolean;
|
|
1851
2001
|
slots?: BubbleSlots;
|
|
1852
2002
|
};
|
|
1853
2003
|
|
|
@@ -1863,6 +2013,11 @@ export declare interface BubbleSlots {
|
|
|
1863
2013
|
}) => unknown;
|
|
1864
2014
|
}
|
|
1865
2015
|
|
|
2016
|
+
export declare interface ButtonGroupConfig {
|
|
2017
|
+
file?: ControlState & fileUploadConfig;
|
|
2018
|
+
submit?: ControlState;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
1866
2021
|
export declare interface ContainerProps {
|
|
1867
2022
|
/**
|
|
1868
2023
|
* model:show
|
|
@@ -1881,114 +2036,285 @@ export declare interface ContainerSlots {
|
|
|
1881
2036
|
footer: () => unknown;
|
|
1882
2037
|
}
|
|
1883
2038
|
|
|
2039
|
+
export declare interface ControlState {
|
|
2040
|
+
tooltips?: string | TooltipRender;
|
|
2041
|
+
disabled?: boolean;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
1884
2044
|
declare const _default: {
|
|
1885
2045
|
install<T>(app: App<T>): void;
|
|
1886
2046
|
};
|
|
1887
2047
|
export default _default;
|
|
1888
2048
|
|
|
1889
|
-
declare const _default_10: typeof
|
|
2049
|
+
declare const _default_10: typeof _default_27 & {
|
|
1890
2050
|
install: typeof install_8;
|
|
1891
2051
|
};
|
|
1892
|
-
export { _default_10 as
|
|
1893
|
-
export { _default_10 as
|
|
2052
|
+
export { _default_10 as Sender }
|
|
2053
|
+
export { _default_10 as TrSender }
|
|
1894
2054
|
|
|
1895
|
-
declare const _default_11: typeof
|
|
2055
|
+
declare const _default_11: typeof _default_29 & {
|
|
1896
2056
|
install: typeof install_9;
|
|
1897
2057
|
};
|
|
1898
|
-
export { _default_11 as
|
|
1899
|
-
export { _default_11 as
|
|
2058
|
+
export { _default_11 as SuggestionPills }
|
|
2059
|
+
export { _default_11 as TrSuggestionPills }
|
|
2060
|
+
|
|
2061
|
+
declare const _default_12: typeof _default_30 & {
|
|
2062
|
+
install: typeof install_10;
|
|
2063
|
+
};
|
|
2064
|
+
export { _default_12 as SuggestionPopover }
|
|
2065
|
+
export { _default_12 as TrSuggestionPopover }
|
|
2066
|
+
|
|
2067
|
+
declare const _default_13: typeof _default_31 & {
|
|
2068
|
+
install: typeof install_11;
|
|
2069
|
+
};
|
|
2070
|
+
export { _default_13 as TrWelcome }
|
|
2071
|
+
export { _default_13 as Welcome }
|
|
2072
|
+
|
|
2073
|
+
declare const _default_14: typeof _default_32 & {
|
|
2074
|
+
install: typeof install_12;
|
|
2075
|
+
};
|
|
2076
|
+
export { _default_14 as McpServerPicker }
|
|
2077
|
+
export { _default_14 as TrMcpServerPicker }
|
|
2078
|
+
|
|
2079
|
+
declare const _default_15: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2080
|
+
"update:items": (items: Attachment[]) => any;
|
|
2081
|
+
remove: (file: Attachment) => any;
|
|
2082
|
+
download: (event: MouseEvent, file: Attachment) => any;
|
|
2083
|
+
retry: (file: Attachment) => any;
|
|
2084
|
+
preview: (event: MouseEvent, file: Attachment) => any;
|
|
2085
|
+
action: (payload: {
|
|
2086
|
+
action: ActionButton;
|
|
2087
|
+
file: Attachment;
|
|
2088
|
+
}) => any;
|
|
2089
|
+
}, string, PublicProps, Readonly<AttachmentListProps> & Readonly<{
|
|
2090
|
+
"onUpdate:items"?: ((items: Attachment[]) => any) | undefined;
|
|
2091
|
+
onRemove?: ((file: Attachment) => any) | undefined;
|
|
2092
|
+
onDownload?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2093
|
+
onRetry?: ((file: Attachment) => any) | undefined;
|
|
2094
|
+
onPreview?: ((event: MouseEvent, file: Attachment) => any) | undefined;
|
|
2095
|
+
onAction?: ((payload: {
|
|
2096
|
+
action: ActionButton;
|
|
2097
|
+
file: Attachment;
|
|
2098
|
+
}) => any) | undefined;
|
|
2099
|
+
}>, {
|
|
2100
|
+
actions: ActionButton[];
|
|
2101
|
+
fileMatchers: FileTypeMatcher_2[];
|
|
2102
|
+
variant: DisplayVariant_2;
|
|
2103
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1900
2104
|
|
|
1901
|
-
declare const
|
|
2105
|
+
declare const _default_16: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1902
2106
|
|
|
1903
|
-
declare const
|
|
2107
|
+
declare const _default_17: DefineComponent<BubbleListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
1904
2108
|
scrollContainerRef: HTMLDivElement;
|
|
1905
2109
|
}, HTMLDivElement>;
|
|
1906
2110
|
|
|
1907
|
-
declare const
|
|
2111
|
+
declare const _default_18: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2112
|
+
|
|
2113
|
+
declare const _default_19: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
1908
2114
|
|
|
1909
|
-
declare const
|
|
2115
|
+
declare const _default_2: typeof _default_15 & {
|
|
2116
|
+
install: typeof install;
|
|
2117
|
+
};
|
|
2118
|
+
export { _default_2 as Attachments }
|
|
2119
|
+
export { _default_2 as TrAttachments }
|
|
1910
2120
|
|
|
1911
|
-
declare const
|
|
2121
|
+
declare const _default_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1912
2122
|
|
|
1913
|
-
declare const
|
|
1914
|
-
|
|
2123
|
+
declare const _default_21: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2124
|
+
|
|
2125
|
+
declare const _default_22: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2126
|
+
|
|
2127
|
+
declare const _default_23: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1915
2128
|
action: (name: string) => any;
|
|
2129
|
+
operation: (name: string) => any;
|
|
1916
2130
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
1917
|
-
onOperation?: ((name: string) => any) | undefined;
|
|
1918
2131
|
onAction?: ((name: string) => any) | undefined;
|
|
2132
|
+
onOperation?: ((name: string) => any) | undefined;
|
|
1919
2133
|
}>, {
|
|
1920
2134
|
operationsLimit: number;
|
|
1921
2135
|
actionsLimit: number;
|
|
1922
2136
|
sourcesLinesLimit: number;
|
|
1923
2137
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1924
2138
|
|
|
1925
|
-
declare const
|
|
2139
|
+
declare const _default_24: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
1926
2140
|
size: string | number;
|
|
1927
2141
|
svgSize: string | number;
|
|
1928
2142
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
1929
2143
|
|
|
1930
|
-
declare const
|
|
1931
|
-
|
|
1932
|
-
declare const _default_2: typeof _default_14 & {
|
|
1933
|
-
install: typeof install;
|
|
1934
|
-
};
|
|
1935
|
-
export { _default_2 as Container }
|
|
1936
|
-
export { _default_2 as TrContainer }
|
|
1937
|
-
|
|
1938
|
-
declare const _default_20: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2144
|
+
declare const _default_25: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
1939
2145
|
|
|
1940
|
-
declare const
|
|
2146
|
+
declare const _default_26: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
1941
2147
|
|
|
1942
|
-
declare const
|
|
2148
|
+
declare const _default_27: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
1943
2149
|
|
|
1944
|
-
declare const
|
|
2150
|
+
declare const _default_28: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
1945
2151
|
|
|
1946
|
-
declare const
|
|
2152
|
+
declare const _default_29: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
1947
2153
|
|
|
1948
|
-
declare const
|
|
1949
|
-
|
|
1950
|
-
declare const _default_3: typeof _default_15 & {
|
|
2154
|
+
declare const _default_3: typeof _default_19 & {
|
|
1951
2155
|
install: typeof install_2;
|
|
1952
2156
|
};
|
|
1953
|
-
export { _default_3 as
|
|
1954
|
-
export { _default_3 as
|
|
2157
|
+
export { _default_3 as Container }
|
|
2158
|
+
export { _default_3 as TrContainer }
|
|
2159
|
+
|
|
2160
|
+
declare const _default_30: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
1955
2161
|
|
|
1956
|
-
declare const
|
|
2162
|
+
declare const _default_31: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2163
|
+
|
|
2164
|
+
declare const _default_32: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2165
|
+
"update:visible": (value: boolean) => any;
|
|
2166
|
+
} & {
|
|
2167
|
+
refresh: (tab: "installed" | "market") => any;
|
|
2168
|
+
"update:visible": (visible: boolean) => any;
|
|
2169
|
+
"market-category-change": (category: string) => any;
|
|
2170
|
+
"tab-change": (activeTab: "installed" | "market") => any;
|
|
2171
|
+
"plugin-toggle": (plugin: PluginInfo, enabled: boolean) => any;
|
|
2172
|
+
"plugin-delete": (plugin: PluginInfo) => any;
|
|
2173
|
+
"plugin-add": (plugin: PluginInfo, added: boolean) => any;
|
|
2174
|
+
"plugin-create": (type: "code" | "form", data: PluginCreationData) => any;
|
|
2175
|
+
"tool-toggle": (plugin: PluginInfo, toolId: string, enabled: boolean) => any;
|
|
2176
|
+
"update:activeCount": (count: number) => any;
|
|
2177
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
2178
|
+
onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
2179
|
+
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
2180
|
+
"onMarket-category-change"?: ((category: string) => any) | undefined;
|
|
2181
|
+
"onTab-change"?: ((activeTab: "installed" | "market") => any) | undefined;
|
|
2182
|
+
"onPlugin-toggle"?: ((plugin: PluginInfo, enabled: boolean) => any) | undefined;
|
|
2183
|
+
"onPlugin-delete"?: ((plugin: PluginInfo) => any) | undefined;
|
|
2184
|
+
"onPlugin-add"?: ((plugin: PluginInfo, added: boolean) => any) | undefined;
|
|
2185
|
+
"onPlugin-create"?: ((type: "code" | "form", data: PluginCreationData) => any) | undefined;
|
|
2186
|
+
"onTool-toggle"?: ((plugin: PluginInfo, toolId: string, enabled: boolean) => any) | undefined;
|
|
2187
|
+
"onUpdate:activeCount"?: ((count: number) => any) | undefined;
|
|
2188
|
+
}>, {
|
|
2189
|
+
title: string;
|
|
2190
|
+
loading: boolean;
|
|
2191
|
+
searchPlaceholder: string;
|
|
2192
|
+
installedPlugins: PluginInfo[];
|
|
2193
|
+
marketPlugins: PluginInfo[];
|
|
2194
|
+
enableSearch: boolean;
|
|
2195
|
+
installedSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2196
|
+
marketSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2197
|
+
marketCategoryOptions: MarketCategoryOption_2[];
|
|
2198
|
+
marketCategoryPlaceholder: string;
|
|
2199
|
+
enableMarketCategoryFilter: boolean;
|
|
2200
|
+
defaultActiveTab: "installed" | "market";
|
|
2201
|
+
showInstalledTab: boolean;
|
|
2202
|
+
showMarketTab: boolean;
|
|
2203
|
+
popupConfig: PopupConfig;
|
|
2204
|
+
installedTabTitle: string;
|
|
2205
|
+
marketTabTitle: string;
|
|
2206
|
+
showCustomAddButton: boolean;
|
|
2207
|
+
customAddButtonText: string;
|
|
2208
|
+
allowPluginToggle: boolean;
|
|
2209
|
+
allowToolToggle: boolean;
|
|
2210
|
+
allowPluginDelete: boolean;
|
|
2211
|
+
allowPluginAdd: boolean;
|
|
2212
|
+
marketLoading: boolean;
|
|
2213
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2214
|
+
|
|
2215
|
+
declare const _default_4: typeof _default_20 & {
|
|
1957
2216
|
install: typeof install_3;
|
|
1958
2217
|
};
|
|
1959
|
-
export { _default_4 as
|
|
1960
|
-
export { _default_4 as
|
|
2218
|
+
export { _default_4 as Conversations }
|
|
2219
|
+
export { _default_4 as TrConversations }
|
|
1961
2220
|
|
|
1962
|
-
declare const _default_5: typeof
|
|
2221
|
+
declare const _default_5: typeof _default_21 & {
|
|
1963
2222
|
install: typeof install_4;
|
|
1964
2223
|
};
|
|
1965
|
-
export { _default_5 as
|
|
1966
|
-
export { _default_5 as
|
|
1967
|
-
|
|
1968
|
-
declare const _default_6: {
|
|
1969
|
-
install: <T>(app: App<T>) => void;
|
|
1970
|
-
name: string;
|
|
1971
|
-
};
|
|
1972
|
-
export { _default_6 as History }
|
|
1973
|
-
export { _default_6 as TrHistory }
|
|
2224
|
+
export { _default_5 as DragOverlay }
|
|
2225
|
+
export { _default_5 as TrDragOverlay }
|
|
1974
2226
|
|
|
1975
|
-
declare const
|
|
2227
|
+
declare const _default_6: typeof _default_22 & {
|
|
1976
2228
|
install: typeof install_5;
|
|
1977
2229
|
};
|
|
1978
|
-
export {
|
|
1979
|
-
export {
|
|
2230
|
+
export { _default_6 as DropdownMenu }
|
|
2231
|
+
export { _default_6 as TrDropdownMenu }
|
|
1980
2232
|
|
|
1981
|
-
declare const
|
|
2233
|
+
declare const _default_7: typeof _default_23 & {
|
|
1982
2234
|
install: typeof install_6;
|
|
1983
2235
|
};
|
|
1984
|
-
export {
|
|
1985
|
-
export {
|
|
2236
|
+
export { _default_7 as Feedback }
|
|
2237
|
+
export { _default_7 as TrFeedback }
|
|
2238
|
+
|
|
2239
|
+
declare const _default_8: {
|
|
2240
|
+
install: <T>(app: App<T>) => void;
|
|
2241
|
+
name: string;
|
|
2242
|
+
};
|
|
2243
|
+
export { _default_8 as History }
|
|
2244
|
+
export { _default_8 as TrHistory }
|
|
1986
2245
|
|
|
1987
|
-
declare const _default_9: typeof
|
|
2246
|
+
declare const _default_9: typeof _default_24 & {
|
|
1988
2247
|
install: typeof install_7;
|
|
1989
2248
|
};
|
|
1990
|
-
export { _default_9 as
|
|
1991
|
-
export { _default_9 as
|
|
2249
|
+
export { _default_9 as IconButton }
|
|
2250
|
+
export { _default_9 as TrIconButton }
|
|
2251
|
+
|
|
2252
|
+
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2253
|
+
|
|
2254
|
+
declare interface DragAwareElement extends HTMLElement {
|
|
2255
|
+
__vDropzoneHandlers__?: Handlers;
|
|
2256
|
+
__vDropzoneOptions__?: DragAwareOptions;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
declare type DragAwareOptions = Omit<DropzoneBinding, 'onDraggingChange'>;
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* 拖拽上传组件的属性
|
|
2263
|
+
*/
|
|
2264
|
+
export declare interface DragOverlayProps {
|
|
2265
|
+
/**
|
|
2266
|
+
* 覆盖层标题
|
|
2267
|
+
* @default ''
|
|
2268
|
+
*/
|
|
2269
|
+
overlayTitle?: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* 覆盖层描述文本数组
|
|
2272
|
+
* @default []
|
|
2273
|
+
*/
|
|
2274
|
+
overlayDescription?: string[];
|
|
2275
|
+
/**
|
|
2276
|
+
* 控制拖拽覆盖层是否可见。这旨在与 v-dropzone 指令结合使用,由父组件控制。
|
|
2277
|
+
* @default false
|
|
2278
|
+
*/
|
|
2279
|
+
isDragging?: boolean;
|
|
2280
|
+
/**
|
|
2281
|
+
* @description 拖拽目标元素,用于定位覆盖层
|
|
2282
|
+
* @default null
|
|
2283
|
+
*/
|
|
2284
|
+
dragTarget?: HTMLElement | null;
|
|
2285
|
+
/**
|
|
2286
|
+
* @description 是否全屏模式,控制覆盖层的边框显示
|
|
2287
|
+
* @default false
|
|
2288
|
+
*/
|
|
2289
|
+
fullscreen?: boolean;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
export declare interface DragOverlaySlots {
|
|
2293
|
+
/**
|
|
2294
|
+
* 覆盖层插槽,用于自定义拖拽时的覆盖层内容
|
|
2295
|
+
*/
|
|
2296
|
+
overlay?: (props: {
|
|
2297
|
+
isDragging: boolean;
|
|
2298
|
+
}) => unknown;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* 拖拽区域错误码
|
|
2303
|
+
*/
|
|
2304
|
+
declare enum DragZoneErrorCode {
|
|
2305
|
+
/**
|
|
2306
|
+
* 文件类型不允许
|
|
2307
|
+
*/
|
|
2308
|
+
FileTypeNotAllowed = "file-type-not-allowed",
|
|
2309
|
+
/**
|
|
2310
|
+
* 文件大小超出限制
|
|
2311
|
+
*/
|
|
2312
|
+
FileSizeExceeded = "file-size-exceeded",
|
|
2313
|
+
/**
|
|
2314
|
+
* 文件数量超出限制
|
|
2315
|
+
*/
|
|
2316
|
+
FileCountExceeded = "file-count-exceeded"
|
|
2317
|
+
}
|
|
1992
2318
|
|
|
1993
2319
|
export declare interface DropdownMenuEmits {
|
|
1994
2320
|
(e: 'item-click', item: DropdownMenuItem): void;
|
|
@@ -2037,6 +2363,54 @@ export declare interface DropdownMenuSlots {
|
|
|
2037
2363
|
trigger?: () => VNode | VNode[];
|
|
2038
2364
|
}
|
|
2039
2365
|
|
|
2366
|
+
/**
|
|
2367
|
+
* 拖拽上传组件的属性
|
|
2368
|
+
*/
|
|
2369
|
+
export declare interface DropzoneBinding {
|
|
2370
|
+
/**
|
|
2371
|
+
* 允许上传的文件类型, 与原生 input 的 accept 属性一致
|
|
2372
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
2373
|
+
* @example '.jpg,.png,image/*'
|
|
2374
|
+
*/
|
|
2375
|
+
accept?: string;
|
|
2376
|
+
/**
|
|
2377
|
+
* 是否允许多选
|
|
2378
|
+
* @default true
|
|
2379
|
+
*/
|
|
2380
|
+
multiple?: boolean;
|
|
2381
|
+
/**
|
|
2382
|
+
* 是否禁用拖拽
|
|
2383
|
+
* @default false
|
|
2384
|
+
*/
|
|
2385
|
+
disabled?: boolean;
|
|
2386
|
+
/**
|
|
2387
|
+
* 单个文件的最大大小(单位:字节)
|
|
2388
|
+
* @default 10 * 1024 * 1024 (10MB)
|
|
2389
|
+
*/
|
|
2390
|
+
maxSize?: number;
|
|
2391
|
+
/**
|
|
2392
|
+
* 允许上传的最大文件数量
|
|
2393
|
+
* @default 3
|
|
2394
|
+
*/
|
|
2395
|
+
maxFiles?: number;
|
|
2396
|
+
/**
|
|
2397
|
+
* 拖拽完成后的回调
|
|
2398
|
+
* @param files 上传的文件
|
|
2399
|
+
*/
|
|
2400
|
+
onDrop: (files: File[]) => void;
|
|
2401
|
+
/**
|
|
2402
|
+
* 拖拽失败后的回调
|
|
2403
|
+
* @param rejection 拒绝信息
|
|
2404
|
+
*/
|
|
2405
|
+
onError: (rejection: FileRejection) => void;
|
|
2406
|
+
/**
|
|
2407
|
+
* 拖拽开始时的回调
|
|
2408
|
+
* @param dragging 是否正在拖拽
|
|
2409
|
+
* @param element 拖拽目标元素
|
|
2410
|
+
*/
|
|
2411
|
+
onDraggingChange: (dragging: boolean, element: HTMLElement | null) => void;
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2040
2414
|
export declare interface FeedbackEvents {
|
|
2041
2415
|
(e: 'operation', name: string): void;
|
|
2042
2416
|
(e: 'action', name: string): void;
|
|
@@ -2063,6 +2437,54 @@ export declare interface FeedbackProps {
|
|
|
2063
2437
|
sourcesLinesLimit?: number;
|
|
2064
2438
|
}
|
|
2065
2439
|
|
|
2440
|
+
export declare interface FileCardEmits {
|
|
2441
|
+
(e: 'remove', file: Attachment): void;
|
|
2442
|
+
(e: 'preview', event: MouseEvent, file: Attachment): void;
|
|
2443
|
+
(e: 'download', event: MouseEvent, file: Attachment): void;
|
|
2444
|
+
(e: 'retry', file: Attachment): void;
|
|
2445
|
+
(e: 'action', payload: {
|
|
2446
|
+
action: ActionButton;
|
|
2447
|
+
file: Attachment;
|
|
2448
|
+
}): void;
|
|
2449
|
+
}
|
|
2450
|
+
|
|
2451
|
+
export declare interface FileCardProps extends BaseCardProps {
|
|
2452
|
+
file: Attachment;
|
|
2453
|
+
variant: 'picture' | 'card';
|
|
2454
|
+
showStatus?: boolean;
|
|
2455
|
+
}
|
|
2456
|
+
|
|
2457
|
+
/**
|
|
2458
|
+
* 文件拒绝信息
|
|
2459
|
+
*/
|
|
2460
|
+
export declare interface FileRejection extends RejectionReason {
|
|
2461
|
+
files: File[];
|
|
2462
|
+
}
|
|
2463
|
+
|
|
2464
|
+
export declare type FileStatus = 'uploading' | 'success' | 'error';
|
|
2465
|
+
|
|
2466
|
+
export declare type FileType = BaseFileType | string;
|
|
2467
|
+
|
|
2468
|
+
export declare interface FileTypeMatcher {
|
|
2469
|
+
type: string;
|
|
2470
|
+
matcher: (file: File | string) => boolean;
|
|
2471
|
+
icon?: Component;
|
|
2472
|
+
}
|
|
2473
|
+
|
|
2474
|
+
declare interface fileUploadConfig {
|
|
2475
|
+
accept?: string;
|
|
2476
|
+
multiple?: boolean;
|
|
2477
|
+
}
|
|
2478
|
+
|
|
2479
|
+
export declare interface Handlers {
|
|
2480
|
+
handleDragEnter: (e: DragEvent) => void;
|
|
2481
|
+
handleDragOver: (e: DragEvent) => void;
|
|
2482
|
+
handleDragLeave: (e: DragEvent) => void;
|
|
2483
|
+
handleDrop: (e: DragEvent) => void;
|
|
2484
|
+
}
|
|
2485
|
+
|
|
2486
|
+
declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
|
|
2487
|
+
|
|
2066
2488
|
export declare type HistoryData = HistoryItem[] | HistoryGroup[];
|
|
2067
2489
|
|
|
2068
2490
|
export declare interface HistoryEvents {
|
|
@@ -2109,6 +2531,12 @@ export declare type InputMode = 'single' | 'multiple';
|
|
|
2109
2531
|
|
|
2110
2532
|
declare const install: <T>(app: App<T>) => void;
|
|
2111
2533
|
|
|
2534
|
+
declare const install_10: <T>(app: App<T>) => void;
|
|
2535
|
+
|
|
2536
|
+
declare const install_11: <T>(app: App<T>) => void;
|
|
2537
|
+
|
|
2538
|
+
declare const install_12: <T>(app: App<T>) => void;
|
|
2539
|
+
|
|
2112
2540
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2113
2541
|
|
|
2114
2542
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2131,11 +2559,63 @@ declare const installPrompt: <T>(app: App<T>) => void;
|
|
|
2131
2559
|
|
|
2132
2560
|
declare const installPrompts: <T>(app: App<T>) => void;
|
|
2133
2561
|
|
|
2562
|
+
export declare interface ISuggestionItem {
|
|
2563
|
+
content: string;
|
|
2564
|
+
highlights?: string[] | HighlightFunction;
|
|
2565
|
+
}
|
|
2566
|
+
|
|
2134
2567
|
export declare interface KeyboardHandler {
|
|
2135
2568
|
handleKeyPress: (e: KeyboardEvent) => void;
|
|
2136
2569
|
triggerSubmit: () => void;
|
|
2137
2570
|
}
|
|
2138
2571
|
|
|
2572
|
+
export declare interface MarketCategoryOption {
|
|
2573
|
+
value: string;
|
|
2574
|
+
label: string;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
export declare interface McpServerPickerEmits {
|
|
2578
|
+
(e: 'market-category-change', category: string): void;
|
|
2579
|
+
(e: 'tab-change', activeTab: 'installed' | 'market'): void;
|
|
2580
|
+
(e: 'plugin-toggle', plugin: PluginInfo, enabled: boolean): void;
|
|
2581
|
+
(e: 'plugin-delete', plugin: PluginInfo): void;
|
|
2582
|
+
(e: 'plugin-add', plugin: PluginInfo, added: boolean): void;
|
|
2583
|
+
(e: 'plugin-create', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2584
|
+
(e: 'tool-toggle', plugin: PluginInfo, toolId: string, enabled: boolean): void;
|
|
2585
|
+
(e: 'refresh', tab: 'installed' | 'market'): void;
|
|
2586
|
+
(e: 'update:activeCount', count: number): void;
|
|
2587
|
+
(e: 'update:visible', visible: boolean): void;
|
|
2588
|
+
}
|
|
2589
|
+
|
|
2590
|
+
export declare interface McpServerPickerProps {
|
|
2591
|
+
installedPlugins?: PluginInfo[];
|
|
2592
|
+
marketPlugins?: PluginInfo[];
|
|
2593
|
+
searchPlaceholder?: string;
|
|
2594
|
+
enableSearch?: boolean;
|
|
2595
|
+
installedSearchFn?: (query: string, item: PluginInfo) => boolean;
|
|
2596
|
+
marketSearchFn?: (query: string, item: PluginInfo) => boolean;
|
|
2597
|
+
marketCategoryOptions?: MarketCategoryOption[];
|
|
2598
|
+
marketCategoryPlaceholder?: string;
|
|
2599
|
+
enableMarketCategoryFilter?: boolean;
|
|
2600
|
+
defaultActiveTab?: 'installed' | 'market';
|
|
2601
|
+
showInstalledTab?: boolean;
|
|
2602
|
+
showMarketTab?: boolean;
|
|
2603
|
+
visible?: boolean;
|
|
2604
|
+
popupConfig?: PopupConfig;
|
|
2605
|
+
activeCount?: number;
|
|
2606
|
+
installedTabTitle?: string;
|
|
2607
|
+
marketTabTitle?: string;
|
|
2608
|
+
title?: string;
|
|
2609
|
+
showCustomAddButton?: boolean;
|
|
2610
|
+
customAddButtonText?: string;
|
|
2611
|
+
allowPluginToggle?: boolean;
|
|
2612
|
+
allowToolToggle?: boolean;
|
|
2613
|
+
allowPluginDelete?: boolean;
|
|
2614
|
+
allowPluginAdd?: boolean;
|
|
2615
|
+
loading?: boolean;
|
|
2616
|
+
marketLoading?: boolean;
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2139
2619
|
export declare type MultiTabHistoryProps = {
|
|
2140
2620
|
tabs: {
|
|
2141
2621
|
title: string;
|
|
@@ -2144,7 +2624,70 @@ export declare type MultiTabHistoryProps = {
|
|
|
2144
2624
|
data: Record<string, HistoryData>;
|
|
2145
2625
|
} & BaseHistoryProps;
|
|
2146
2626
|
|
|
2147
|
-
declare
|
|
2627
|
+
export declare interface PluginCardEmits {
|
|
2628
|
+
(e: 'toggle-plugin', enabled: boolean): void;
|
|
2629
|
+
(e: 'toggle-tool', toolId: string, enabled: boolean): void;
|
|
2630
|
+
(e: 'add-plugin', added: boolean): void;
|
|
2631
|
+
(e: 'delete-plugin'): void;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
export declare type PluginCardMode = 'installed' | 'market';
|
|
2635
|
+
|
|
2636
|
+
export declare interface PluginCardProps {
|
|
2637
|
+
plugin: PluginInfo;
|
|
2638
|
+
mode?: PluginCardMode;
|
|
2639
|
+
showToolCount?: boolean;
|
|
2640
|
+
}
|
|
2641
|
+
|
|
2642
|
+
export declare type PluginCreationData = PluginFormData | string;
|
|
2643
|
+
|
|
2644
|
+
export declare interface PluginFormData {
|
|
2645
|
+
name: string;
|
|
2646
|
+
description: string;
|
|
2647
|
+
type: 'sse' | 'streamableHttp';
|
|
2648
|
+
url: string;
|
|
2649
|
+
headers: string;
|
|
2650
|
+
thumbnail?: File | null;
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
export declare interface PluginInfo {
|
|
2654
|
+
id: string;
|
|
2655
|
+
name: string;
|
|
2656
|
+
icon: string;
|
|
2657
|
+
description: string;
|
|
2658
|
+
enabled: boolean;
|
|
2659
|
+
expanded?: boolean;
|
|
2660
|
+
tools: PluginTool[];
|
|
2661
|
+
added?: boolean;
|
|
2662
|
+
category?: string;
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
export declare interface PluginModalEmits {
|
|
2666
|
+
(e: 'update:visible', value: boolean): void;
|
|
2667
|
+
(e: 'confirm', type: 'form' | 'code', data: PluginCreationData): void;
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
export declare interface PluginTool {
|
|
2671
|
+
id: string;
|
|
2672
|
+
name: string;
|
|
2673
|
+
description: string;
|
|
2674
|
+
enabled: boolean;
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
export declare interface PopupConfig {
|
|
2678
|
+
type: 'fixed' | 'drawer';
|
|
2679
|
+
position?: {
|
|
2680
|
+
top?: string | number;
|
|
2681
|
+
left?: string | number;
|
|
2682
|
+
right?: string | number;
|
|
2683
|
+
bottom?: string | number;
|
|
2684
|
+
};
|
|
2685
|
+
drawer?: {
|
|
2686
|
+
direction: 'left' | 'right';
|
|
2687
|
+
};
|
|
2688
|
+
}
|
|
2689
|
+
|
|
2690
|
+
declare const Prompt: typeof _default_25 & {
|
|
2148
2691
|
install: typeof installPrompt;
|
|
2149
2692
|
};
|
|
2150
2693
|
export { Prompt }
|
|
@@ -2177,7 +2720,7 @@ export declare interface PromptProps {
|
|
|
2177
2720
|
badge?: string | VNode;
|
|
2178
2721
|
}
|
|
2179
2722
|
|
|
2180
|
-
declare const Prompts: typeof
|
|
2723
|
+
declare const Prompts: typeof _default_26 & {
|
|
2181
2724
|
install: typeof installPrompts;
|
|
2182
2725
|
};
|
|
2183
2726
|
export { Prompts }
|
|
@@ -2214,6 +2757,20 @@ export declare interface PromptsSlots {
|
|
|
2214
2757
|
footer?: () => unknown;
|
|
2215
2758
|
}
|
|
2216
2759
|
|
|
2760
|
+
export declare interface RawFileAttachment extends BaseAttachment {
|
|
2761
|
+
rawFile: File;
|
|
2762
|
+
url?: string;
|
|
2763
|
+
size?: number;
|
|
2764
|
+
}
|
|
2765
|
+
|
|
2766
|
+
/**
|
|
2767
|
+
* 文件拒绝原因
|
|
2768
|
+
*/
|
|
2769
|
+
export declare interface RejectionReason {
|
|
2770
|
+
code: DragZoneErrorCode;
|
|
2771
|
+
message: string;
|
|
2772
|
+
}
|
|
2773
|
+
|
|
2217
2774
|
export declare type SenderEmits = {
|
|
2218
2775
|
(e: 'update:modelValue', value: string): void;
|
|
2219
2776
|
(e: 'update:templateData', value: UserItem[]): void;
|
|
@@ -2229,6 +2786,7 @@ export declare type SenderEmits = {
|
|
|
2229
2786
|
(e: 'escape-press'): void;
|
|
2230
2787
|
(e: 'cancel'): void;
|
|
2231
2788
|
(e: 'reset-template'): void;
|
|
2789
|
+
(e: 'files-selected', files: File[]): void;
|
|
2232
2790
|
};
|
|
2233
2791
|
|
|
2234
2792
|
export declare interface SenderProps {
|
|
@@ -2243,11 +2801,12 @@ export declare interface SenderProps {
|
|
|
2243
2801
|
modelValue?: string;
|
|
2244
2802
|
mode?: InputMode;
|
|
2245
2803
|
maxLength?: number;
|
|
2804
|
+
buttonGroup?: ButtonGroupConfig;
|
|
2246
2805
|
submitType?: SubmitTrigger;
|
|
2247
2806
|
speech?: boolean | SpeechConfig;
|
|
2248
2807
|
placeholder?: string;
|
|
2249
2808
|
showWordLimit?: boolean;
|
|
2250
|
-
suggestions?:
|
|
2809
|
+
suggestions?: ISuggestionItem[];
|
|
2251
2810
|
suggestionPopupWidth?: string | number;
|
|
2252
2811
|
theme?: ThemeType;
|
|
2253
2812
|
templateData?: UserItem[];
|
|
@@ -2304,7 +2863,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
2304
2863
|
|
|
2305
2864
|
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2306
2865
|
|
|
2307
|
-
declare const SuggestionPillButton: typeof
|
|
2866
|
+
declare const SuggestionPillButton: typeof _default_28 & {
|
|
2308
2867
|
install: typeof installPillButton;
|
|
2309
2868
|
};
|
|
2310
2869
|
export { SuggestionPillButton }
|
|
@@ -2452,11 +3011,30 @@ declare interface TextItem extends BaseTextItem {
|
|
|
2452
3011
|
*/
|
|
2453
3012
|
export declare type ThemeType = 'light' | 'dark';
|
|
2454
3013
|
|
|
3014
|
+
export declare type TooltipRender = () => VNode | string;
|
|
3015
|
+
|
|
3016
|
+
export declare interface UrlAttachment extends BaseAttachment {
|
|
3017
|
+
url: string;
|
|
3018
|
+
size: number;
|
|
3019
|
+
rawFile?: File;
|
|
3020
|
+
}
|
|
3021
|
+
|
|
2455
3022
|
export declare type UserItem = UserTextItem | UserTemplateItem;
|
|
2456
3023
|
|
|
2457
|
-
export declare type UserTemplateItem = Pick<TemplateItem, 'type' | 'content'
|
|
3024
|
+
export declare type UserTemplateItem = Omit<Pick<TemplateItem, 'type' | 'content'>, 'id'> & {
|
|
3025
|
+
id?: TemplateItem['id'];
|
|
3026
|
+
};
|
|
3027
|
+
|
|
3028
|
+
export declare type UserTextItem = Omit<TextItem, 'id'> & {
|
|
3029
|
+
id?: TextItem['id'];
|
|
3030
|
+
};
|
|
2458
3031
|
|
|
2459
|
-
|
|
3032
|
+
/**
|
|
3033
|
+
* 拖拽区域指令
|
|
3034
|
+
* @param el 元素
|
|
3035
|
+
* @param binding 绑定
|
|
3036
|
+
*/
|
|
3037
|
+
export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
|
|
2460
3038
|
|
|
2461
3039
|
export declare interface WelcomeProps {
|
|
2462
3040
|
title: string;
|