@opentiny/tiny-robot 0.5.0 → 0.5.1-alpha.14
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/attachments/index.js +261 -258
- package/dist/dropdown-menu/index.js +1 -1
- package/dist/extension-manager/index.js +473 -0
- package/dist/floating-ui.dom.js +970 -0
- package/dist/index.d.ts +595 -163
- package/dist/index.js +116 -103
- package/dist/index4.js +2 -2
- package/dist/index6.js +441 -431
- package/dist/index8.js +87 -102
- package/dist/layout/index.js +1 -1
- package/dist/model-selector/index.js +1002 -0
- package/dist/sender/index.js +1232 -2114
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +1 -1
- package/dist/suggestion-popover/index.js +37 -36
- package/dist/useSenderContentRegistration.js +8 -0
- package/dist/useSlotRefs.js +1 -1
- package/dist/useTeleportTarget.js +25 -0
- package/dist/utils.js +1 -1
- package/package.json +4 -4
- package/README.md +0 -192
- package/README.zh-CN.md +0 -192
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { MaybeRefOrGetter } from 'vue';
|
|
|
25
25
|
import { nextTick } from 'vue';
|
|
26
26
|
import { Node as Node_2 } from '@tiptap/core';
|
|
27
27
|
import { OnCleanup } from '@vue/reactivity';
|
|
28
|
+
import { Placement } from '@floating-ui/dom';
|
|
28
29
|
import { PublicProps } from 'vue';
|
|
29
30
|
import { Ref } from 'vue';
|
|
30
31
|
import { ShallowUnwrapRef } from 'vue';
|
|
@@ -67,13 +68,47 @@ contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
|
|
|
67
68
|
bubbleRef: HTMLDivElement;
|
|
68
69
|
}, HTMLDivElement>;
|
|
69
70
|
|
|
70
|
-
declare const __VLS_component_10: DefineComponent<
|
|
71
|
+
declare const __VLS_component_10: DefineComponent<ModelSelectorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
72
|
+
change: (option: ModelSelectorOption) => any;
|
|
73
|
+
"update:modelValue": (value: string | null) => any;
|
|
74
|
+
"update:reasoningEffort": (value: string | null) => any;
|
|
75
|
+
"reasoning-effort-change": (option: ModelSelectorReasoningEffortOption | null) => any;
|
|
76
|
+
"update:open": (open: boolean) => any;
|
|
77
|
+
}, string, PublicProps, Readonly<ModelSelectorProps> & Readonly<{
|
|
78
|
+
onChange?: ((option: ModelSelectorOption) => any) | undefined;
|
|
79
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
80
|
+
"onUpdate:reasoningEffort"?: ((value: string | null) => any) | undefined;
|
|
81
|
+
"onReasoning-effort-change"?: ((option: ModelSelectorReasoningEffortOption | null) => any) | undefined;
|
|
82
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
83
|
+
}>, {
|
|
84
|
+
size: ModelSelectorSize;
|
|
85
|
+
disabled: boolean;
|
|
86
|
+
variant: ModelSelectorVariant;
|
|
87
|
+
open: boolean;
|
|
88
|
+
placeholder: string;
|
|
89
|
+
placement: Placement;
|
|
90
|
+
emptyText: string;
|
|
91
|
+
offset: number;
|
|
92
|
+
searchable: boolean;
|
|
93
|
+
searchPlaceholder: string;
|
|
94
|
+
models: readonly ModelSelectorOption[];
|
|
95
|
+
defaultValue: string | null;
|
|
96
|
+
reasoningEffort: string | null;
|
|
97
|
+
defaultReasoningEffort: string | null;
|
|
98
|
+
defaultOpen: boolean;
|
|
99
|
+
reasoningEffortLabel: string;
|
|
100
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
101
|
+
referenceEl: HTMLSpanElement;
|
|
102
|
+
floatingEl: HTMLDivElement;
|
|
103
|
+
}, HTMLDivElement>;
|
|
104
|
+
|
|
105
|
+
declare const __VLS_component_11: DefineComponent<PromptsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
71
106
|
"item-click": (ev: MouseEvent, item: PromptProps) => any;
|
|
72
107
|
}, string, PublicProps, Readonly<PromptsProps> & Readonly<{
|
|
73
108
|
"onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
|
|
74
109
|
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
75
110
|
|
|
76
|
-
declare const
|
|
111
|
+
declare const __VLS_component_12: DefineComponent<SenderProps_2, {
|
|
77
112
|
focus: () => void;
|
|
78
113
|
blur: () => void;
|
|
79
114
|
clear: () => void;
|
|
@@ -114,8 +149,8 @@ onSubmit?: ((value: string) => any) | undefined;
|
|
|
114
149
|
"onReset-template"?: (() => any) | undefined;
|
|
115
150
|
"onFiles-selected"?: ((files: File[]) => any) | undefined;
|
|
116
151
|
}>, {
|
|
117
|
-
placeholder: string;
|
|
118
152
|
mode: InputMode;
|
|
153
|
+
placeholder: string;
|
|
119
154
|
submitType: SubmitTrigger;
|
|
120
155
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
121
156
|
senderRef: ({
|
|
@@ -145,7 +180,7 @@ readonly onInput?: ((value: string) => any) | undefined;
|
|
|
145
180
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
146
181
|
readonly onCancel?: (() => any) | undefined;
|
|
147
182
|
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
148
|
-
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
183
|
+
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
149
184
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
150
185
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
151
186
|
$attrs: Attrs;
|
|
@@ -158,7 +193,7 @@ $slots: Readonly<{
|
|
|
158
193
|
$root: ComponentPublicInstance | null;
|
|
159
194
|
$parent: ComponentPublicInstance | null;
|
|
160
195
|
$host: Element | null;
|
|
161
|
-
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
196
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
162
197
|
$el: HTMLDivElement;
|
|
163
198
|
$options: ComponentOptionsBase<Readonly<SenderProps> & Readonly<{
|
|
164
199
|
onClear?: (() => any) | undefined;
|
|
@@ -166,7 +201,7 @@ onInput?: ((value: string) => any) | undefined;
|
|
|
166
201
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
167
202
|
onCancel?: (() => any) | undefined;
|
|
168
203
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
169
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
204
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
170
205
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
171
206
|
}>, {
|
|
172
207
|
submit: () => void;
|
|
@@ -183,12 +218,12 @@ input: (value: string) => any;
|
|
|
183
218
|
blur: (event: FocusEvent) => any;
|
|
184
219
|
cancel: () => any;
|
|
185
220
|
focus: (event: FocusEvent) => any;
|
|
186
|
-
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
221
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any;
|
|
187
222
|
"update:modelValue": (value: string) => any;
|
|
188
223
|
}, string, {
|
|
189
224
|
size: "normal" | "small";
|
|
190
|
-
placeholder: string;
|
|
191
225
|
mode: InputMode;
|
|
226
|
+
placeholder: string;
|
|
192
227
|
enterkeyhint: EnterKeyHint;
|
|
193
228
|
autoSize: AutoSize;
|
|
194
229
|
hasExternalContent: boolean;
|
|
@@ -216,8 +251,8 @@ $nextTick: nextTick;
|
|
|
216
251
|
$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;
|
|
217
252
|
} & Readonly<{
|
|
218
253
|
size: "normal" | "small";
|
|
219
|
-
placeholder: string;
|
|
220
254
|
mode: InputMode;
|
|
255
|
+
placeholder: string;
|
|
221
256
|
enterkeyhint: EnterKeyHint;
|
|
222
257
|
autoSize: AutoSize;
|
|
223
258
|
hasExternalContent: boolean;
|
|
@@ -229,9 +264,9 @@ onInput?: ((value: string) => any) | undefined;
|
|
|
229
264
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
230
265
|
onCancel?: (() => any) | undefined;
|
|
231
266
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
232
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
267
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
233
268
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
234
|
-
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "
|
|
269
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "mode" | "placeholder" | "enterkeyhint" | "autoSize" | "hasExternalContent" | "extensions" | "submitType") | "getContent"> & {
|
|
235
270
|
submit: () => void;
|
|
236
271
|
clear: () => void;
|
|
237
272
|
cancel: () => void;
|
|
@@ -353,9 +388,9 @@ stop: () => void;
|
|
|
353
388
|
}) | null;
|
|
354
389
|
}, HTMLDivElement>;
|
|
355
390
|
|
|
356
|
-
declare const
|
|
391
|
+
declare const __VLS_component_13: DefineComponent<SuggestionPillButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<SuggestionPillButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
357
392
|
|
|
358
|
-
declare const
|
|
393
|
+
declare const __VLS_component_14: DefineComponent<__VLS_PublicProps_3, {
|
|
359
394
|
children: ComputedRef<(HTMLElement | SVGElement)[]>;
|
|
360
395
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
361
396
|
"update:showAll": (value: boolean | undefined) => any;
|
|
@@ -375,7 +410,7 @@ floatingItemsRef: HTMLDivElement;
|
|
|
375
410
|
floatingMaybeItemRefs: unknown[];
|
|
376
411
|
}, HTMLDivElement>;
|
|
377
412
|
|
|
378
|
-
declare const
|
|
413
|
+
declare const __VLS_component_15: DefineComponent<__VLS_PublicProps_4, {
|
|
379
414
|
update: () => void;
|
|
380
415
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
381
416
|
"update:selectedGroup": (value: string) => any;
|
|
@@ -509,7 +544,7 @@ show?: TooltipContentProps["show"];
|
|
|
509
544
|
}>, {}, {}, {}, {}, {}> | null;
|
|
510
545
|
}, any>;
|
|
511
546
|
|
|
512
|
-
declare const
|
|
547
|
+
declare const __VLS_component_16: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
513
548
|
"update:theme": (value: string) => any;
|
|
514
549
|
"update:colorMode": (value: ColorMode) => any;
|
|
515
550
|
}, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
|
|
@@ -520,11 +555,11 @@ targetElement: string;
|
|
|
520
555
|
storageKey: string;
|
|
521
556
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
522
557
|
|
|
523
|
-
declare const
|
|
558
|
+
declare const __VLS_component_17: DefineComponent<WelcomeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<WelcomeProps> & Readonly<{}>, {
|
|
524
559
|
align: "left" | "center" | "right" | string;
|
|
525
560
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
526
561
|
|
|
527
|
-
declare const
|
|
562
|
+
declare const __VLS_component_18: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
528
563
|
"update:visible": (value: boolean) => any;
|
|
529
564
|
} & {
|
|
530
565
|
refresh: (tab: "installed" | "market") => any;
|
|
@@ -551,9 +586,9 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
|
551
586
|
}>, {
|
|
552
587
|
title: string;
|
|
553
588
|
loading: boolean;
|
|
589
|
+
searchPlaceholder: string;
|
|
554
590
|
installedPlugins: PluginInfo[];
|
|
555
591
|
marketPlugins: PluginInfo[];
|
|
556
|
-
searchPlaceholder: string;
|
|
557
592
|
enableSearch: boolean;
|
|
558
593
|
installedSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
559
594
|
marketSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
@@ -575,13 +610,57 @@ allowPluginAdd: boolean;
|
|
|
575
610
|
marketLoading: boolean;
|
|
576
611
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
577
612
|
|
|
578
|
-
declare const
|
|
613
|
+
declare const __VLS_component_19: DefineComponent<ExtensionCardProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
614
|
+
action: (payload: ExtensionCardActionEvent) => any;
|
|
615
|
+
"name-click": (event: MouseEvent | KeyboardEvent) => any;
|
|
616
|
+
}, string, PublicProps, Readonly<ExtensionCardProps> & Readonly<{
|
|
617
|
+
onAction?: ((payload: ExtensionCardActionEvent) => any) | undefined;
|
|
618
|
+
"onName-click"?: ((event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
619
|
+
}>, {
|
|
620
|
+
actions: ExtensionCardAction[];
|
|
621
|
+
primaryActionsLimit: number;
|
|
622
|
+
nameClickable: boolean;
|
|
623
|
+
overflowMenuLabel: string;
|
|
624
|
+
overflowMenuPlacement: ExtensionCardOverflowMenuPlacement;
|
|
625
|
+
overflowMenuShowIcons: boolean;
|
|
626
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
627
|
+
|
|
628
|
+
declare const __VLS_component_2: DefineComponent<BubbleListProps, {
|
|
629
|
+
scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
|
|
630
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
631
|
+
"state-change": (payload: BubbleStateChangePayload) => any;
|
|
632
|
+
"bubble-event": (payload: BubbleEventPayload) => any;
|
|
633
|
+
}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{
|
|
634
|
+
"onState-change"?: ((payload: BubbleStateChangePayload) => any) | undefined;
|
|
635
|
+
"onBubble-event"?: ((payload: BubbleEventPayload) => any) | undefined;
|
|
636
|
+
}>, {
|
|
637
|
+
contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
|
|
638
|
+
groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerRole?: string) => BubbleMessageGroup[]);
|
|
639
|
+
dividerRole: string;
|
|
640
|
+
fallbackRole: string;
|
|
641
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
642
|
+
listRef: HTMLDivElement;
|
|
643
|
+
}, HTMLDivElement>;
|
|
644
|
+
|
|
645
|
+
declare const __VLS_component_20: DefineComponent<ExtensionCardGridProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
646
|
+
action: (payload: ExtensionCardGridActionEvent) => any;
|
|
647
|
+
"name-click": (payload: ExtensionCardGridNameClickEvent) => any;
|
|
648
|
+
}, string, PublicProps, Readonly<ExtensionCardGridProps> & Readonly<{
|
|
649
|
+
onAction?: ((payload: ExtensionCardGridActionEvent) => any) | undefined;
|
|
650
|
+
"onName-click"?: ((payload: ExtensionCardGridNameClickEvent) => any) | undefined;
|
|
651
|
+
}>, {
|
|
652
|
+
emptyText: string;
|
|
653
|
+
nameClickable: boolean;
|
|
654
|
+
overflowMenuShowIcons: boolean;
|
|
655
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLUListElement>;
|
|
656
|
+
|
|
657
|
+
declare const __VLS_component_21: DefineComponent<ActionButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ActionButtonProps> & Readonly<{}>, {
|
|
579
658
|
disabled: boolean;
|
|
580
659
|
active: boolean;
|
|
581
660
|
tooltipPlacement: TooltipPlacement;
|
|
582
661
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
583
662
|
|
|
584
|
-
declare const
|
|
663
|
+
declare const __VLS_component_22: DefineComponent<VoiceButtonProps, {
|
|
585
664
|
start: () => void;
|
|
586
665
|
stop: () => void;
|
|
587
666
|
speechState: SpeechState;
|
|
@@ -602,24 +681,7 @@ tooltipPlacement: TooltipPlacement;
|
|
|
602
681
|
autoInsert: boolean;
|
|
603
682
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
604
683
|
|
|
605
|
-
declare const
|
|
606
|
-
scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
|
|
607
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
608
|
-
"state-change": (payload: BubbleStateChangePayload) => any;
|
|
609
|
-
"bubble-event": (payload: BubbleEventPayload) => any;
|
|
610
|
-
}, string, PublicProps, Readonly<BubbleListProps> & Readonly<{
|
|
611
|
-
"onState-change"?: ((payload: BubbleStateChangePayload) => any) | undefined;
|
|
612
|
-
"onBubble-event"?: ((payload: BubbleEventPayload) => any) | undefined;
|
|
613
|
-
}>, {
|
|
614
|
-
contentResolver: (message: BubbleMessage) => ChatMessageContent | undefined;
|
|
615
|
-
groupStrategy: "consecutive" | "divider" | ((messages: BubbleMessage[], dividerRole?: string) => BubbleMessageGroup[]);
|
|
616
|
-
dividerRole: string;
|
|
617
|
-
fallbackRole: string;
|
|
618
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
619
|
-
listRef: HTMLDivElement;
|
|
620
|
-
}, HTMLDivElement>;
|
|
621
|
-
|
|
622
|
-
declare const __VLS_component_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
684
|
+
declare const __VLS_component_23: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
623
685
|
|
|
624
686
|
declare const __VLS_component_3: DefineComponent<BubbleProviderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
625
687
|
|
|
@@ -1029,13 +1091,23 @@ declare function __VLS_template(): {
|
|
|
1029
1091
|
};
|
|
1030
1092
|
|
|
1031
1093
|
declare function __VLS_template_10(): {
|
|
1094
|
+
attrs: Partial<{}>;
|
|
1095
|
+
slots: Readonly<ModelSelectorSlots> & ModelSelectorSlots;
|
|
1096
|
+
refs: {
|
|
1097
|
+
referenceEl: HTMLSpanElement;
|
|
1098
|
+
floatingEl: HTMLDivElement;
|
|
1099
|
+
};
|
|
1100
|
+
rootEl: HTMLDivElement;
|
|
1101
|
+
};
|
|
1102
|
+
|
|
1103
|
+
declare function __VLS_template_11(): {
|
|
1032
1104
|
attrs: Partial<{}>;
|
|
1033
1105
|
slots: Readonly<PromptsSlots> & PromptsSlots;
|
|
1034
1106
|
refs: {};
|
|
1035
1107
|
rootEl: HTMLDivElement;
|
|
1036
1108
|
};
|
|
1037
1109
|
|
|
1038
|
-
declare function
|
|
1110
|
+
declare function __VLS_template_12(): {
|
|
1039
1111
|
attrs: Partial<{}>;
|
|
1040
1112
|
slots: {
|
|
1041
1113
|
header?(_: {}): any;
|
|
@@ -1076,7 +1148,7 @@ declare function __VLS_template_11(): {
|
|
|
1076
1148
|
readonly onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1077
1149
|
readonly onCancel?: (() => any) | undefined;
|
|
1078
1150
|
readonly onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1079
|
-
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1151
|
+
readonly onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
1080
1152
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1081
1153
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1082
1154
|
$attrs: Attrs;
|
|
@@ -1089,7 +1161,7 @@ declare function __VLS_template_11(): {
|
|
|
1089
1161
|
$root: ComponentPublicInstance | null;
|
|
1090
1162
|
$parent: ComponentPublicInstance | null;
|
|
1091
1163
|
$host: Element | null;
|
|
1092
|
-
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
1164
|
+
$emit: ((event: "clear") => void) & ((event: "input", value: string) => void) & ((event: "blur", event: FocusEvent) => void) & ((event: "cancel") => void) & ((event: "focus", event: FocusEvent) => void) & ((event: "submit", textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => void) & ((event: "update:modelValue", value: string) => void);
|
|
1093
1165
|
$el: HTMLDivElement;
|
|
1094
1166
|
$options: ComponentOptionsBase<Readonly<SenderProps> & Readonly<{
|
|
1095
1167
|
onClear?: (() => any) | undefined;
|
|
@@ -1097,7 +1169,7 @@ declare function __VLS_template_11(): {
|
|
|
1097
1169
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1098
1170
|
onCancel?: (() => any) | undefined;
|
|
1099
1171
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1100
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1172
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
1101
1173
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1102
1174
|
}>, {
|
|
1103
1175
|
submit: () => void;
|
|
@@ -1114,12 +1186,12 @@ declare function __VLS_template_11(): {
|
|
|
1114
1186
|
blur: (event: FocusEvent) => any;
|
|
1115
1187
|
cancel: () => any;
|
|
1116
1188
|
focus: (event: FocusEvent) => any;
|
|
1117
|
-
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
1189
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any;
|
|
1118
1190
|
"update:modelValue": (value: string) => any;
|
|
1119
1191
|
}, string, {
|
|
1120
1192
|
size: "normal" | "small";
|
|
1121
|
-
placeholder: string;
|
|
1122
1193
|
mode: InputMode;
|
|
1194
|
+
placeholder: string;
|
|
1123
1195
|
enterkeyhint: EnterKeyHint;
|
|
1124
1196
|
autoSize: AutoSize;
|
|
1125
1197
|
hasExternalContent: boolean;
|
|
@@ -1147,8 +1219,8 @@ declare function __VLS_template_11(): {
|
|
|
1147
1219
|
$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;
|
|
1148
1220
|
} & Readonly<{
|
|
1149
1221
|
size: "normal" | "small";
|
|
1150
|
-
placeholder: string;
|
|
1151
1222
|
mode: InputMode;
|
|
1223
|
+
placeholder: string;
|
|
1152
1224
|
enterkeyhint: EnterKeyHint;
|
|
1153
1225
|
autoSize: AutoSize;
|
|
1154
1226
|
hasExternalContent: boolean;
|
|
@@ -1160,9 +1232,9 @@ declare function __VLS_template_11(): {
|
|
|
1160
1232
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
1161
1233
|
onCancel?: (() => any) | undefined;
|
|
1162
1234
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
1163
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
1235
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
1164
1236
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
1165
|
-
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "
|
|
1237
|
+
}>, "clear" | "blur" | "cancel" | "focus" | "submit" | "editor" | "setContent" | ("size" | "mode" | "placeholder" | "enterkeyhint" | "autoSize" | "hasExternalContent" | "extensions" | "submitType") | "getContent"> & {
|
|
1166
1238
|
submit: () => void;
|
|
1167
1239
|
clear: () => void;
|
|
1168
1240
|
cancel: () => void;
|
|
@@ -1286,14 +1358,14 @@ declare function __VLS_template_11(): {
|
|
|
1286
1358
|
rootEl: HTMLDivElement;
|
|
1287
1359
|
};
|
|
1288
1360
|
|
|
1289
|
-
declare function
|
|
1361
|
+
declare function __VLS_template_13(): {
|
|
1290
1362
|
attrs: Partial<{}>;
|
|
1291
1363
|
slots: Readonly<SuggestionPillButtonSlots> & SuggestionPillButtonSlots;
|
|
1292
1364
|
refs: {};
|
|
1293
1365
|
rootEl: HTMLButtonElement;
|
|
1294
1366
|
};
|
|
1295
1367
|
|
|
1296
|
-
declare function
|
|
1368
|
+
declare function __VLS_template_14(): {
|
|
1297
1369
|
attrs: Partial<{}>;
|
|
1298
1370
|
slots: Readonly<SuggestionPillsSlots> & SuggestionPillsSlots;
|
|
1299
1371
|
refs: {
|
|
@@ -1306,7 +1378,7 @@ declare function __VLS_template_13(): {
|
|
|
1306
1378
|
rootEl: HTMLDivElement;
|
|
1307
1379
|
};
|
|
1308
1380
|
|
|
1309
|
-
declare function
|
|
1381
|
+
declare function __VLS_template_15(): {
|
|
1310
1382
|
attrs: Partial<{}>;
|
|
1311
1383
|
slots: Readonly<SuggestionPopoverSlots> & SuggestionPopoverSlots;
|
|
1312
1384
|
refs: {
|
|
@@ -1423,7 +1495,7 @@ declare function __VLS_template_14(): {
|
|
|
1423
1495
|
rootEl: any;
|
|
1424
1496
|
};
|
|
1425
1497
|
|
|
1426
|
-
declare function
|
|
1498
|
+
declare function __VLS_template_16(): {
|
|
1427
1499
|
attrs: Partial<{}>;
|
|
1428
1500
|
slots: {
|
|
1429
1501
|
default?(_: {}): any;
|
|
@@ -1432,14 +1504,14 @@ declare function __VLS_template_15(): {
|
|
|
1432
1504
|
rootEl: any;
|
|
1433
1505
|
};
|
|
1434
1506
|
|
|
1435
|
-
declare function
|
|
1507
|
+
declare function __VLS_template_17(): {
|
|
1436
1508
|
attrs: Partial<{}>;
|
|
1437
1509
|
slots: Readonly<WelcomeSlots> & WelcomeSlots;
|
|
1438
1510
|
refs: {};
|
|
1439
1511
|
rootEl: HTMLDivElement;
|
|
1440
1512
|
};
|
|
1441
1513
|
|
|
1442
|
-
declare function
|
|
1514
|
+
declare function __VLS_template_18(): {
|
|
1443
1515
|
attrs: Partial<{}>;
|
|
1444
1516
|
slots: {
|
|
1445
1517
|
'header-actions'?(_: {}): any;
|
|
@@ -1448,7 +1520,30 @@ declare function __VLS_template_17(): {
|
|
|
1448
1520
|
rootEl: any;
|
|
1449
1521
|
};
|
|
1450
1522
|
|
|
1451
|
-
declare function
|
|
1523
|
+
declare function __VLS_template_19(): {
|
|
1524
|
+
attrs: Partial<{}>;
|
|
1525
|
+
slots: Readonly<ExtensionCardSlots> & ExtensionCardSlots;
|
|
1526
|
+
refs: {};
|
|
1527
|
+
rootEl: HTMLDivElement;
|
|
1528
|
+
};
|
|
1529
|
+
|
|
1530
|
+
declare function __VLS_template_2(): {
|
|
1531
|
+
attrs: Partial<{}>;
|
|
1532
|
+
slots: Readonly<BubbleListSlots> & BubbleListSlots;
|
|
1533
|
+
refs: {
|
|
1534
|
+
listRef: HTMLDivElement;
|
|
1535
|
+
};
|
|
1536
|
+
rootEl: HTMLDivElement;
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
declare function __VLS_template_20(): {
|
|
1540
|
+
attrs: Partial<{}>;
|
|
1541
|
+
slots: Readonly<ExtensionCardGridSlots> & ExtensionCardGridSlots;
|
|
1542
|
+
refs: {};
|
|
1543
|
+
rootEl: HTMLUListElement;
|
|
1544
|
+
};
|
|
1545
|
+
|
|
1546
|
+
declare function __VLS_template_21(): {
|
|
1452
1547
|
attrs: Partial<{}>;
|
|
1453
1548
|
slots: {
|
|
1454
1549
|
icon?(_: {}): any;
|
|
@@ -1458,7 +1553,7 @@ declare function __VLS_template_18(): {
|
|
|
1458
1553
|
rootEl: any;
|
|
1459
1554
|
};
|
|
1460
1555
|
|
|
1461
|
-
declare function
|
|
1556
|
+
declare function __VLS_template_22(): {
|
|
1462
1557
|
attrs: Partial<{}>;
|
|
1463
1558
|
slots: {
|
|
1464
1559
|
icon?(_: {
|
|
@@ -1473,16 +1568,7 @@ declare function __VLS_template_19(): {
|
|
|
1473
1568
|
rootEl: any;
|
|
1474
1569
|
};
|
|
1475
1570
|
|
|
1476
|
-
declare function
|
|
1477
|
-
attrs: Partial<{}>;
|
|
1478
|
-
slots: Readonly<BubbleListSlots> & BubbleListSlots;
|
|
1479
|
-
refs: {
|
|
1480
|
-
listRef: HTMLDivElement;
|
|
1481
|
-
};
|
|
1482
|
-
rootEl: HTMLDivElement;
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
declare function __VLS_template_20(): {
|
|
1571
|
+
declare function __VLS_template_23(): {
|
|
1486
1572
|
attrs: Partial<{}>;
|
|
1487
1573
|
slots: {
|
|
1488
1574
|
prepend?(_: {}): any;
|
|
@@ -1815,6 +1901,12 @@ declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
|
|
|
1815
1901
|
|
|
1816
1902
|
declare type __VLS_TemplateResult_20 = ReturnType<typeof __VLS_template_20>;
|
|
1817
1903
|
|
|
1904
|
+
declare type __VLS_TemplateResult_21 = ReturnType<typeof __VLS_template_21>;
|
|
1905
|
+
|
|
1906
|
+
declare type __VLS_TemplateResult_22 = ReturnType<typeof __VLS_template_22>;
|
|
1907
|
+
|
|
1908
|
+
declare type __VLS_TemplateResult_23 = ReturnType<typeof __VLS_template_23>;
|
|
1909
|
+
|
|
1818
1910
|
declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
|
|
1819
1911
|
|
|
1820
1912
|
declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
|
|
@@ -1907,6 +1999,24 @@ declare type __VLS_WithTemplateSlots_20<T, S> = T & {
|
|
|
1907
1999
|
};
|
|
1908
2000
|
};
|
|
1909
2001
|
|
|
2002
|
+
declare type __VLS_WithTemplateSlots_21<T, S> = T & {
|
|
2003
|
+
new (): {
|
|
2004
|
+
$slots: S;
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2007
|
+
|
|
2008
|
+
declare type __VLS_WithTemplateSlots_22<T, S> = T & {
|
|
2009
|
+
new (): {
|
|
2010
|
+
$slots: S;
|
|
2011
|
+
};
|
|
2012
|
+
};
|
|
2013
|
+
|
|
2014
|
+
declare type __VLS_WithTemplateSlots_23<T, S> = T & {
|
|
2015
|
+
new (): {
|
|
2016
|
+
$slots: S;
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
|
|
1910
2020
|
declare type __VLS_WithTemplateSlots_3<T, S> = T & {
|
|
1911
2021
|
new (): {
|
|
1912
2022
|
$slots: S;
|
|
@@ -2107,7 +2217,7 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
|
|
|
2107
2217
|
|
|
2108
2218
|
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
2109
2219
|
|
|
2110
|
-
declare const Bubble: typeof
|
|
2220
|
+
declare const Bubble: typeof _default_27 & {
|
|
2111
2221
|
install: typeof bubbleInstall;
|
|
2112
2222
|
};
|
|
2113
2223
|
export { Bubble }
|
|
@@ -2185,7 +2295,7 @@ declare type BubbleGroupFunction = (messages: BubbleMessage[], dividerRole?: str
|
|
|
2185
2295
|
|
|
2186
2296
|
declare const bubbleInstall: (app: App) => void;
|
|
2187
2297
|
|
|
2188
|
-
declare const BubbleList: typeof
|
|
2298
|
+
declare const BubbleList: typeof _default_28 & {
|
|
2189
2299
|
install: typeof bubbleListInstall;
|
|
2190
2300
|
};
|
|
2191
2301
|
export { BubbleList }
|
|
@@ -2273,7 +2383,7 @@ export declare type BubbleProps = BubbleMessage & {
|
|
|
2273
2383
|
fallbackContentRenderer?: Component<BubbleContentRendererProps>;
|
|
2274
2384
|
};
|
|
2275
2385
|
|
|
2276
|
-
declare const BubbleProvider: typeof
|
|
2386
|
+
declare const BubbleProvider: typeof _default_29 & {
|
|
2277
2387
|
install: typeof bubbleProviderInstall;
|
|
2278
2388
|
};
|
|
2279
2389
|
export { BubbleProvider }
|
|
@@ -2506,73 +2616,79 @@ declare const _default: {
|
|
|
2506
2616
|
};
|
|
2507
2617
|
export default _default;
|
|
2508
2618
|
|
|
2509
|
-
declare const _default_10: typeof
|
|
2619
|
+
declare const _default_10: typeof _default_37 & {
|
|
2510
2620
|
install: typeof install_9;
|
|
2511
2621
|
};
|
|
2512
2622
|
export { _default_10 as IconButton }
|
|
2513
2623
|
export { _default_10 as TrIconButton }
|
|
2514
2624
|
|
|
2515
|
-
declare const _default_11: typeof
|
|
2625
|
+
declare const _default_11: typeof _default_41 & {
|
|
2516
2626
|
install: typeof install_10;
|
|
2517
2627
|
};
|
|
2518
|
-
export { _default_11 as
|
|
2519
|
-
export { _default_11 as
|
|
2628
|
+
export { _default_11 as ModelSelector }
|
|
2629
|
+
export { _default_11 as TrModelSelector }
|
|
2520
2630
|
|
|
2521
2631
|
declare const _default_12: typeof _default_44 & {
|
|
2522
2632
|
install: typeof install_11;
|
|
2523
2633
|
};
|
|
2524
|
-
export { _default_12 as
|
|
2525
|
-
export { _default_12 as
|
|
2634
|
+
export { _default_12 as SenderCompat }
|
|
2635
|
+
export { _default_12 as TrSenderCompat }
|
|
2526
2636
|
|
|
2527
|
-
declare const _default_13: typeof
|
|
2637
|
+
declare const _default_13: typeof _default_46 & {
|
|
2528
2638
|
install: typeof install_12;
|
|
2529
2639
|
};
|
|
2530
|
-
export { _default_13 as
|
|
2531
|
-
export { _default_13 as
|
|
2640
|
+
export { _default_13 as SuggestionPills }
|
|
2641
|
+
export { _default_13 as TrSuggestionPills }
|
|
2532
2642
|
|
|
2533
|
-
declare const _default_14: typeof
|
|
2643
|
+
declare const _default_14: typeof _default_47 & {
|
|
2534
2644
|
install: typeof install_13;
|
|
2535
2645
|
};
|
|
2536
|
-
export { _default_14 as
|
|
2537
|
-
export { _default_14 as
|
|
2646
|
+
export { _default_14 as SuggestionPopover }
|
|
2647
|
+
export { _default_14 as TrSuggestionPopover }
|
|
2538
2648
|
|
|
2539
|
-
declare const _default_15: typeof
|
|
2649
|
+
declare const _default_15: typeof _default_48 & {
|
|
2540
2650
|
install: typeof install_14;
|
|
2541
2651
|
};
|
|
2542
|
-
export { _default_15 as
|
|
2543
|
-
export { _default_15 as
|
|
2652
|
+
export { _default_15 as ThemeProvider }
|
|
2653
|
+
export { _default_15 as TrThemeProvider }
|
|
2544
2654
|
|
|
2545
|
-
declare const _default_16: typeof
|
|
2655
|
+
declare const _default_16: typeof _default_49 & {
|
|
2546
2656
|
install: typeof install_15;
|
|
2547
2657
|
};
|
|
2548
|
-
export { _default_16 as
|
|
2549
|
-
export { _default_16 as
|
|
2658
|
+
export { _default_16 as TrWelcome }
|
|
2659
|
+
export { _default_16 as Welcome }
|
|
2550
2660
|
|
|
2551
|
-
declare const _default_17: typeof
|
|
2661
|
+
declare const _default_17: typeof _default_50 & {
|
|
2552
2662
|
install: typeof install_16;
|
|
2553
2663
|
};
|
|
2554
|
-
export { _default_17 as
|
|
2555
|
-
export { _default_17 as
|
|
2664
|
+
export { _default_17 as McpServerPicker }
|
|
2665
|
+
export { _default_17 as TrMcpServerPicker }
|
|
2556
2666
|
|
|
2557
|
-
declare const _default_18:
|
|
2558
|
-
|
|
2559
|
-
|
|
2667
|
+
declare const _default_18: typeof _default_51 & {
|
|
2668
|
+
install: typeof install_17;
|
|
2669
|
+
};
|
|
2670
|
+
export { _default_18 as McpAddForm }
|
|
2671
|
+
export { _default_18 as TrMcpAddForm }
|
|
2560
2672
|
|
|
2561
|
-
declare const _default_19:
|
|
2562
|
-
export { _default_19 as
|
|
2563
|
-
export { _default_19 as
|
|
2673
|
+
declare const _default_19: __VLS_WithTemplateSlots_21<typeof __VLS_component_21, __VLS_TemplateResult_21["slots"]>;
|
|
2674
|
+
export { _default_19 as ActionButton }
|
|
2675
|
+
export { _default_19 as TrActionButton }
|
|
2564
2676
|
|
|
2565
|
-
declare const _default_2: typeof
|
|
2677
|
+
declare const _default_2: typeof _default_26 & {
|
|
2566
2678
|
install: typeof install;
|
|
2567
2679
|
};
|
|
2568
2680
|
export { _default_2 as Attachments }
|
|
2569
2681
|
export { _default_2 as TrAttachments }
|
|
2570
2682
|
|
|
2571
2683
|
declare const _default_20: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2572
|
-
export { _default_20 as
|
|
2573
|
-
export { _default_20 as
|
|
2684
|
+
export { _default_20 as SubmitButton }
|
|
2685
|
+
export { _default_20 as TrSubmitButton }
|
|
2686
|
+
|
|
2687
|
+
declare const _default_21: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2688
|
+
export { _default_21 as ClearButton }
|
|
2689
|
+
export { _default_21 as TrClearButton }
|
|
2574
2690
|
|
|
2575
|
-
declare const
|
|
2691
|
+
declare const _default_22: DefineComponent<UploadButtonProps, {
|
|
2576
2692
|
open: (localOptions?: Partial<UseFileDialogOptions>) => void;
|
|
2577
2693
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2578
2694
|
error: (error: Error, files?: File[] | undefined) => any;
|
|
@@ -2586,22 +2702,22 @@ multiple: boolean;
|
|
|
2586
2702
|
tooltipPlacement: TooltipPlacement;
|
|
2587
2703
|
accept: string;
|
|
2588
2704
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2589
|
-
export {
|
|
2590
|
-
export {
|
|
2705
|
+
export { _default_22 as TrUploadButton }
|
|
2706
|
+
export { _default_22 as UploadButton }
|
|
2591
2707
|
|
|
2592
|
-
declare const
|
|
2593
|
-
export {
|
|
2594
|
-
export {
|
|
2708
|
+
declare const _default_23: __VLS_WithTemplateSlots_22<typeof __VLS_component_22, __VLS_TemplateResult_22["slots"]>;
|
|
2709
|
+
export { _default_23 as TrVoiceButton }
|
|
2710
|
+
export { _default_23 as VoiceButton }
|
|
2595
2711
|
|
|
2596
|
-
declare const
|
|
2597
|
-
export {
|
|
2598
|
-
export {
|
|
2712
|
+
declare const _default_24: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2713
|
+
export { _default_24 as TrWordCounter }
|
|
2714
|
+
export { _default_24 as WordCounter }
|
|
2599
2715
|
|
|
2600
|
-
declare const
|
|
2601
|
-
export {
|
|
2602
|
-
export {
|
|
2716
|
+
declare const _default_25: __VLS_WithTemplateSlots_23<typeof __VLS_component_23, __VLS_TemplateResult_23["slots"]>;
|
|
2717
|
+
export { _default_25 as DefaultActionButtons }
|
|
2718
|
+
export { _default_25 as TrDefaultActionButtons }
|
|
2603
2719
|
|
|
2604
|
-
declare const
|
|
2720
|
+
declare const _default_26: DefineComponent<AttachmentListProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2605
2721
|
"update:items": (items: Attachment[]) => any;
|
|
2606
2722
|
remove: (file: Attachment) => any;
|
|
2607
2723
|
download: (event: MouseEvent, file: Attachment) => any;
|
|
@@ -2627,29 +2743,29 @@ fileMatchers: FileTypeMatcher[];
|
|
|
2627
2743
|
variant: DisplayVariant;
|
|
2628
2744
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2629
2745
|
|
|
2630
|
-
declare const
|
|
2746
|
+
declare const _default_27: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
2631
2747
|
|
|
2632
|
-
declare const
|
|
2748
|
+
declare const _default_28: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
|
|
2633
2749
|
|
|
2634
|
-
declare const
|
|
2750
|
+
declare const _default_29: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
|
|
2635
2751
|
|
|
2636
|
-
declare const
|
|
2637
|
-
|
|
2638
|
-
declare const _default_3: typeof _default_29 & {
|
|
2752
|
+
declare const _default_3: typeof _default_30 & {
|
|
2639
2753
|
install: typeof install_2;
|
|
2640
2754
|
};
|
|
2641
2755
|
export { _default_3 as Container }
|
|
2642
2756
|
export { _default_3 as TrContainer }
|
|
2643
2757
|
|
|
2644
|
-
declare const _default_30:
|
|
2758
|
+
declare const _default_30: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
|
|
2759
|
+
|
|
2760
|
+
declare const _default_31: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
|
|
2645
2761
|
|
|
2646
|
-
declare const
|
|
2762
|
+
declare const _default_32: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
2647
2763
|
|
|
2648
|
-
declare const
|
|
2764
|
+
declare const _default_33: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2649
2765
|
|
|
2650
|
-
declare const
|
|
2766
|
+
declare const _default_34: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2651
2767
|
|
|
2652
|
-
declare const
|
|
2768
|
+
declare const _default_35: DefineComponent<FeedbackProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2653
2769
|
action: (name: string) => any;
|
|
2654
2770
|
operation: (name: string) => any;
|
|
2655
2771
|
}, string, PublicProps, Readonly<FeedbackProps> & Readonly<{
|
|
@@ -2661,7 +2777,7 @@ actionsLimit: number;
|
|
|
2661
2777
|
sourcesLinesLimit: number;
|
|
2662
2778
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2663
2779
|
|
|
2664
|
-
declare const
|
|
2780
|
+
declare const _default_36: <T extends HistoryItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
2665
2781
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
2666
2782
|
readonly "onItem-click"?: ((item: T) => any) | undefined;
|
|
2667
2783
|
readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
|
|
@@ -2675,47 +2791,55 @@ declare const _default_35: <T extends HistoryItem>(__VLS_props: NonNullable<Awai
|
|
|
2675
2791
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2676
2792
|
};
|
|
2677
2793
|
|
|
2678
|
-
declare const
|
|
2794
|
+
declare const _default_37: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2679
2795
|
size: string | number;
|
|
2680
2796
|
svgSize: string | number;
|
|
2681
2797
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2682
2798
|
|
|
2683
|
-
declare const
|
|
2799
|
+
declare const _default_38: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2684
2800
|
|
|
2685
|
-
declare const
|
|
2801
|
+
declare const _default_39: DefineComponent<LayoutProxyScrollbarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<LayoutProxyScrollbarProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
2686
2802
|
scrollbarRef: HTMLDivElement;
|
|
2687
2803
|
thumbRef: HTMLDivElement;
|
|
2688
2804
|
}, any>;
|
|
2689
2805
|
|
|
2690
|
-
declare const
|
|
2691
|
-
|
|
2692
|
-
declare const _default_4: typeof _default_30 & {
|
|
2806
|
+
declare const _default_4: typeof _default_31 & {
|
|
2693
2807
|
install: typeof install_3;
|
|
2694
2808
|
};
|
|
2695
2809
|
export { _default_4 as Anchor }
|
|
2696
2810
|
export { _default_4 as TrAnchor }
|
|
2697
2811
|
|
|
2698
|
-
declare const _default_40:
|
|
2812
|
+
declare const _default_40: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2813
|
+
|
|
2814
|
+
declare const _default_41: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2815
|
+
|
|
2816
|
+
declare const _default_42: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2699
2817
|
size: "small" | "medium" | "large";
|
|
2700
2818
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2701
2819
|
|
|
2702
|
-
declare const
|
|
2820
|
+
declare const _default_43: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2703
2821
|
|
|
2704
|
-
declare const
|
|
2822
|
+
declare const _default_44: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2705
2823
|
|
|
2706
|
-
declare const
|
|
2824
|
+
declare const _default_45: __VLS_WithTemplateSlots_13<typeof __VLS_component_13, __VLS_TemplateResult_13["slots"]>;
|
|
2707
2825
|
|
|
2708
|
-
declare const
|
|
2826
|
+
declare const _default_46: __VLS_WithTemplateSlots_14<typeof __VLS_component_14, __VLS_TemplateResult_14["slots"]>;
|
|
2709
2827
|
|
|
2710
|
-
declare const
|
|
2828
|
+
declare const _default_47: __VLS_WithTemplateSlots_15<typeof __VLS_component_15, __VLS_TemplateResult_15["slots"]>;
|
|
2711
2829
|
|
|
2712
|
-
declare const
|
|
2830
|
+
declare const _default_48: __VLS_WithTemplateSlots_16<typeof __VLS_component_16, __VLS_TemplateResult_16["slots"]>;
|
|
2713
2831
|
|
|
2714
|
-
declare const
|
|
2832
|
+
declare const _default_49: __VLS_WithTemplateSlots_17<typeof __VLS_component_17, __VLS_TemplateResult_17["slots"]>;
|
|
2715
2833
|
|
|
2716
|
-
declare const
|
|
2834
|
+
declare const _default_5: typeof _default_32 & {
|
|
2835
|
+
install: typeof install_4;
|
|
2836
|
+
};
|
|
2837
|
+
export { _default_5 as Conversations }
|
|
2838
|
+
export { _default_5 as TrConversations }
|
|
2839
|
+
|
|
2840
|
+
declare const _default_50: __VLS_WithTemplateSlots_18<typeof __VLS_component_18, __VLS_TemplateResult_18["slots"]>;
|
|
2717
2841
|
|
|
2718
|
-
declare const
|
|
2842
|
+
declare const _default_51: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2719
2843
|
cancel: () => any;
|
|
2720
2844
|
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
2721
2845
|
"update:addType": (value: AddType) => any;
|
|
@@ -2727,31 +2851,29 @@ onConfirm?: ((type: AddType, data: string | McpAddFormData) => any) | undefined;
|
|
|
2727
2851
|
addType: AddType;
|
|
2728
2852
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2729
2853
|
|
|
2730
|
-
declare const
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
export { _default_5 as Conversations }
|
|
2734
|
-
export { _default_5 as TrConversations }
|
|
2854
|
+
declare const _default_52: __VLS_WithTemplateSlots_19<typeof __VLS_component_19, __VLS_TemplateResult_19["slots"]>;
|
|
2855
|
+
|
|
2856
|
+
declare const _default_53: __VLS_WithTemplateSlots_20<typeof __VLS_component_20, __VLS_TemplateResult_20["slots"]>;
|
|
2735
2857
|
|
|
2736
|
-
declare const _default_6: typeof
|
|
2858
|
+
declare const _default_6: typeof _default_33 & {
|
|
2737
2859
|
install: typeof install_5;
|
|
2738
2860
|
};
|
|
2739
2861
|
export { _default_6 as DragOverlay }
|
|
2740
2862
|
export { _default_6 as TrDragOverlay }
|
|
2741
2863
|
|
|
2742
|
-
declare const _default_7: typeof
|
|
2864
|
+
declare const _default_7: typeof _default_34 & {
|
|
2743
2865
|
install: typeof install_6;
|
|
2744
2866
|
};
|
|
2745
2867
|
export { _default_7 as DropdownMenu }
|
|
2746
2868
|
export { _default_7 as TrDropdownMenu }
|
|
2747
2869
|
|
|
2748
|
-
declare const _default_8: typeof
|
|
2870
|
+
declare const _default_8: typeof _default_35 & {
|
|
2749
2871
|
install: typeof install_7;
|
|
2750
2872
|
};
|
|
2751
2873
|
export { _default_8 as Feedback }
|
|
2752
2874
|
export { _default_8 as TrFeedback }
|
|
2753
2875
|
|
|
2754
|
-
declare const _default_9: typeof
|
|
2876
|
+
declare const _default_9: typeof _default_36 & {
|
|
2755
2877
|
install: typeof install_8;
|
|
2756
2878
|
};
|
|
2757
2879
|
export { _default_9 as History }
|
|
@@ -2813,6 +2935,9 @@ export declare interface DefaultActions {
|
|
|
2813
2935
|
|
|
2814
2936
|
export declare type DisplayVariant = 'picture' | 'card' | 'auto';
|
|
2815
2937
|
|
|
2938
|
+
/** Actions passed from Card to its internal renderers after visibility is resolved. */
|
|
2939
|
+
declare type DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;
|
|
2940
|
+
|
|
2816
2941
|
declare interface DragAwareElement extends HTMLElement {
|
|
2817
2942
|
__vDropzoneHandlers__?: Handlers;
|
|
2818
2943
|
__vDropzoneOptions__?: DragAwareOptions;
|
|
@@ -2990,6 +3115,195 @@ export declare interface DropzoneBinding {
|
|
|
2990
3115
|
*/
|
|
2991
3116
|
export declare type EnterKeyHint = 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send';
|
|
2992
3117
|
|
|
3118
|
+
declare const ExtensionCard: typeof _default_52 & {
|
|
3119
|
+
install: typeof extensionCardInstall;
|
|
3120
|
+
};
|
|
3121
|
+
export { ExtensionCard }
|
|
3122
|
+
export { ExtensionCard as TrExtensionCard }
|
|
3123
|
+
|
|
3124
|
+
export declare type ExtensionCardAction = ExtensionCardSwitchAction | ExtensionCardButtonAction | ExtensionCardCustomAction;
|
|
3125
|
+
|
|
3126
|
+
export declare interface ExtensionCardActionBase {
|
|
3127
|
+
id: string;
|
|
3128
|
+
label: string;
|
|
3129
|
+
icon?: Component;
|
|
3130
|
+
hidden?: boolean;
|
|
3131
|
+
disabled?: boolean;
|
|
3132
|
+
danger?: boolean;
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
export declare interface ExtensionCardActionEvent {
|
|
3136
|
+
id: string;
|
|
3137
|
+
type: ExtensionCardAction['type'];
|
|
3138
|
+
checked?: boolean;
|
|
3139
|
+
payload?: unknown;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
export declare interface ExtensionCardButtonAction extends ExtensionCardActionBase {
|
|
3143
|
+
type: 'button';
|
|
3144
|
+
}
|
|
3145
|
+
|
|
3146
|
+
export declare interface ExtensionCardCustomAction extends ExtensionCardActionBase {
|
|
3147
|
+
type: 'custom';
|
|
3148
|
+
data?: unknown;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
export declare interface ExtensionCardEmits {
|
|
3152
|
+
(e: 'name-click', event: MouseEvent | KeyboardEvent): void;
|
|
3153
|
+
(e: 'action', payload: ExtensionCardActionEvent): void;
|
|
3154
|
+
}
|
|
3155
|
+
|
|
3156
|
+
declare const ExtensionCardGrid: typeof _default_53 & {
|
|
3157
|
+
install: typeof extensionCardGridInstall;
|
|
3158
|
+
};
|
|
3159
|
+
export { ExtensionCardGrid }
|
|
3160
|
+
export { ExtensionCardGrid as TrExtensionCardGrid }
|
|
3161
|
+
|
|
3162
|
+
export declare interface ExtensionCardGridActionEvent {
|
|
3163
|
+
itemId: string;
|
|
3164
|
+
action: ExtensionCardActionEvent;
|
|
3165
|
+
}
|
|
3166
|
+
|
|
3167
|
+
export declare interface ExtensionCardGridEmits {
|
|
3168
|
+
(e: 'action', payload: ExtensionCardGridActionEvent): void;
|
|
3169
|
+
(e: 'name-click', payload: ExtensionCardGridNameClickEvent): void;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
declare const extensionCardGridInstall: <T>(app: App<T>) => void;
|
|
3173
|
+
|
|
3174
|
+
export declare type ExtensionCardGridItem = ExtensionCardProps & {
|
|
3175
|
+
id: string;
|
|
3176
|
+
};
|
|
3177
|
+
|
|
3178
|
+
export declare interface ExtensionCardGridNameClickEvent {
|
|
3179
|
+
itemId: string;
|
|
3180
|
+
event: MouseEvent | KeyboardEvent;
|
|
3181
|
+
}
|
|
3182
|
+
|
|
3183
|
+
export declare interface ExtensionCardGridProps extends Pick<ExtensionCardProps, 'primaryActionsLimit' | 'nameClickable' | 'overflowMenuLabel' | 'overflowMenuPlacement' | 'overflowMenuShowIcons'> {
|
|
3184
|
+
items: ExtensionCardGridItem[];
|
|
3185
|
+
emptyText?: string;
|
|
3186
|
+
}
|
|
3187
|
+
|
|
3188
|
+
export declare interface ExtensionCardGridSlots {
|
|
3189
|
+
item?: (props: {
|
|
3190
|
+
item: ExtensionCardGridItem;
|
|
3191
|
+
index: number;
|
|
3192
|
+
}) => VNode[];
|
|
3193
|
+
empty?: () => VNode[];
|
|
3194
|
+
}
|
|
3195
|
+
|
|
3196
|
+
declare const extensionCardInstall: <T>(app: App<T>) => void;
|
|
3197
|
+
|
|
3198
|
+
export declare type ExtensionCardOverflowMenuPlacement = 'bottom-end' | 'top-end';
|
|
3199
|
+
|
|
3200
|
+
export declare interface ExtensionCardProps {
|
|
3201
|
+
name: string;
|
|
3202
|
+
description?: string;
|
|
3203
|
+
icon?: string | Component;
|
|
3204
|
+
actions?: ExtensionCardAction[];
|
|
3205
|
+
primaryActionsLimit?: number;
|
|
3206
|
+
progress?: number | 'indeterminate';
|
|
3207
|
+
nameClickable?: boolean;
|
|
3208
|
+
overflowMenuLabel?: string;
|
|
3209
|
+
overflowMenuPlacement?: ExtensionCardOverflowMenuPlacement;
|
|
3210
|
+
overflowMenuShowIcons?: boolean;
|
|
3211
|
+
}
|
|
3212
|
+
|
|
3213
|
+
export declare type ExtensionCardRenderableAction = DistributiveOmit<ExtensionCardAction, 'hidden'>;
|
|
3214
|
+
|
|
3215
|
+
export declare interface ExtensionCardSlots {
|
|
3216
|
+
'primary-action'?: (props: {
|
|
3217
|
+
action: Extract<ExtensionCardRenderableAction, {
|
|
3218
|
+
type: 'custom';
|
|
3219
|
+
}>;
|
|
3220
|
+
trigger: (payload?: unknown) => void;
|
|
3221
|
+
}) => VNode[];
|
|
3222
|
+
}
|
|
3223
|
+
|
|
3224
|
+
export declare interface ExtensionCardSwitchAction extends ExtensionCardActionBase {
|
|
3225
|
+
type: 'switch';
|
|
3226
|
+
checked: boolean;
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
export declare interface ExtensionManagerActionEvent {
|
|
3230
|
+
tabId: string;
|
|
3231
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3232
|
+
itemId: string;
|
|
3233
|
+
action: ExtensionCardActionEvent;
|
|
3234
|
+
}
|
|
3235
|
+
|
|
3236
|
+
export declare interface ExtensionManagerEmits {
|
|
3237
|
+
(e: 'update:active-tab', tabId: string | undefined): void;
|
|
3238
|
+
(e: 'tab-change', event: ExtensionManagerTabChangeEvent): void;
|
|
3239
|
+
(e: 'section-toggle', event: ExtensionManagerSectionToggleEvent): void;
|
|
3240
|
+
(e: 'action', event: ExtensionManagerActionEvent): void;
|
|
3241
|
+
(e: 'name-click', event: ExtensionManagerNameClickEvent): void;
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
export declare type ExtensionManagerItem = ExtensionCardGridItem & {
|
|
3245
|
+
installed?: boolean;
|
|
3246
|
+
tags?: string[];
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
export declare interface ExtensionManagerNameClickEvent {
|
|
3250
|
+
tabId: string;
|
|
3251
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3252
|
+
itemId: string;
|
|
3253
|
+
event: MouseEvent | KeyboardEvent;
|
|
3254
|
+
}
|
|
3255
|
+
|
|
3256
|
+
export declare interface ExtensionManagerProps {
|
|
3257
|
+
tabs: ExtensionManagerTab[];
|
|
3258
|
+
activeTab?: string;
|
|
3259
|
+
defaultActiveTab?: string;
|
|
3260
|
+
title?: string;
|
|
3261
|
+
emptyText?: string;
|
|
3262
|
+
}
|
|
3263
|
+
|
|
3264
|
+
export declare type ExtensionManagerSectionKey = 'installed' | 'available';
|
|
3265
|
+
|
|
3266
|
+
export declare interface ExtensionManagerSectionToggleEvent {
|
|
3267
|
+
tabId: string;
|
|
3268
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3269
|
+
expanded: boolean;
|
|
3270
|
+
}
|
|
3271
|
+
|
|
3272
|
+
export declare interface ExtensionManagerSlots {
|
|
3273
|
+
'header-actions'?: () => VNode[];
|
|
3274
|
+
tab?: (props: {
|
|
3275
|
+
tab: ExtensionManagerTab;
|
|
3276
|
+
active: boolean;
|
|
3277
|
+
select: () => void;
|
|
3278
|
+
}) => VNode[];
|
|
3279
|
+
item?: (props: {
|
|
3280
|
+
tab: ExtensionManagerTab;
|
|
3281
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3282
|
+
item: ExtensionCardGridItem;
|
|
3283
|
+
index: number;
|
|
3284
|
+
}) => VNode[];
|
|
3285
|
+
empty?: (props: {
|
|
3286
|
+
tab: ExtensionManagerTab;
|
|
3287
|
+
sectionKey: ExtensionManagerSectionKey;
|
|
3288
|
+
title: string;
|
|
3289
|
+
}) => VNode[];
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
export declare interface ExtensionManagerTab {
|
|
3293
|
+
id: string;
|
|
3294
|
+
label: string;
|
|
3295
|
+
items: ExtensionManagerItem[];
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
export declare interface ExtensionManagerTabChangeEvent {
|
|
3299
|
+
tabId: string;
|
|
3300
|
+
}
|
|
3301
|
+
|
|
3302
|
+
export declare interface ExtensionManagerTagOption {
|
|
3303
|
+
value: string;
|
|
3304
|
+
label: string;
|
|
3305
|
+
}
|
|
3306
|
+
|
|
2993
3307
|
export declare interface FeedbackEvents {
|
|
2994
3308
|
(e: 'operation', name: string): void;
|
|
2995
3309
|
(e: 'action', name: string): void;
|
|
@@ -3142,6 +3456,8 @@ declare const install_15: <T>(app: App<T>) => void;
|
|
|
3142
3456
|
|
|
3143
3457
|
declare const install_16: <T>(app: App<T>) => void;
|
|
3144
3458
|
|
|
3459
|
+
declare const install_17: <T>(app: App<T>) => void;
|
|
3460
|
+
|
|
3145
3461
|
declare const install_2: <T>(app: App<T>) => void;
|
|
3146
3462
|
|
|
3147
3463
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -3222,7 +3538,7 @@ export declare interface LayoutAsideResizeValue {
|
|
|
3222
3538
|
expandedWidth: number;
|
|
3223
3539
|
}
|
|
3224
3540
|
|
|
3225
|
-
declare const LayoutAsideToggle: typeof
|
|
3541
|
+
declare const LayoutAsideToggle: typeof _default_40 & {
|
|
3226
3542
|
install: typeof layoutAsideToggleInstall;
|
|
3227
3543
|
};
|
|
3228
3544
|
export { LayoutAsideToggle }
|
|
@@ -3234,7 +3550,7 @@ export declare interface LayoutAsideToggleProps {
|
|
|
3234
3550
|
side: LayoutSide;
|
|
3235
3551
|
}
|
|
3236
3552
|
|
|
3237
|
-
declare type LayoutCompound = typeof
|
|
3553
|
+
declare type LayoutCompound = typeof _default_38 & {
|
|
3238
3554
|
install: typeof layoutInstall;
|
|
3239
3555
|
ProxyScrollbar: typeof LayoutProxyScrollbar;
|
|
3240
3556
|
AsideToggle: typeof LayoutAsideToggle;
|
|
@@ -3315,7 +3631,7 @@ export declare interface LayoutNormalProps extends LayoutAsidePanelsProps {
|
|
|
3315
3631
|
|
|
3316
3632
|
export declare type LayoutProps = LayoutNormalProps | LayoutFloatingProps;
|
|
3317
3633
|
|
|
3318
|
-
declare const LayoutProxyScrollbar: typeof
|
|
3634
|
+
declare const LayoutProxyScrollbar: typeof _default_39 & {
|
|
3319
3635
|
install: typeof layoutProxyScrollbarInstall;
|
|
3320
3636
|
};
|
|
3321
3637
|
export { LayoutProxyScrollbar }
|
|
@@ -3495,6 +3811,102 @@ declare type MentionStructuredItem = {
|
|
|
3495
3811
|
value: string;
|
|
3496
3812
|
};
|
|
3497
3813
|
|
|
3814
|
+
export declare interface ModelSelectorEmits {
|
|
3815
|
+
(event: 'update:modelValue', value: string | null): void;
|
|
3816
|
+
(event: 'change', option: ModelSelectorOption): void;
|
|
3817
|
+
(event: 'update:reasoningEffort', value: string | null): void;
|
|
3818
|
+
(event: 'reasoning-effort-change', option: ModelSelectorReasoningEffortOption | null): void;
|
|
3819
|
+
(event: 'update:open', open: boolean): void;
|
|
3820
|
+
}
|
|
3821
|
+
|
|
3822
|
+
export declare interface ModelSelectorEmptySlotProps {
|
|
3823
|
+
query: string;
|
|
3824
|
+
}
|
|
3825
|
+
|
|
3826
|
+
export declare type ModelSelectorFilterMethod = (query: string, option: ModelSelectorOption) => boolean;
|
|
3827
|
+
|
|
3828
|
+
export declare interface ModelSelectorFooterSlotProps extends ModelSelectorSlotProps {
|
|
3829
|
+
reasoningEfforts: readonly ModelSelectorReasoningEffortOption[];
|
|
3830
|
+
/** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
|
|
3831
|
+
reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
|
|
3832
|
+
setReasoningEffort: (value: string | null) => void;
|
|
3833
|
+
}
|
|
3834
|
+
|
|
3835
|
+
export declare interface ModelSelectorItemSlotProps {
|
|
3836
|
+
option: ModelSelectorOption;
|
|
3837
|
+
selected: boolean;
|
|
3838
|
+
highlighted: boolean;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
export declare interface ModelSelectorOption {
|
|
3842
|
+
value: string;
|
|
3843
|
+
label: string;
|
|
3844
|
+
description?: string;
|
|
3845
|
+
icon?: Component | string;
|
|
3846
|
+
disabled?: boolean;
|
|
3847
|
+
group?: string;
|
|
3848
|
+
reasoningEfforts?: ModelSelectorReasoningEfforts;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
export declare type ModelSelectorPanelClass = string | readonly string[] | Record<string, boolean>;
|
|
3852
|
+
|
|
3853
|
+
export declare interface ModelSelectorProps {
|
|
3854
|
+
models?: readonly ModelSelectorOption[];
|
|
3855
|
+
modelValue?: string | null;
|
|
3856
|
+
defaultValue?: string | null;
|
|
3857
|
+
reasoningEffort?: string | null;
|
|
3858
|
+
defaultReasoningEffort?: string | null;
|
|
3859
|
+
open?: boolean;
|
|
3860
|
+
defaultOpen?: boolean;
|
|
3861
|
+
disabled?: boolean;
|
|
3862
|
+
searchable?: boolean;
|
|
3863
|
+
placeholder?: string;
|
|
3864
|
+
searchPlaceholder?: string;
|
|
3865
|
+
emptyText?: string;
|
|
3866
|
+
filterMethod?: ModelSelectorFilterMethod;
|
|
3867
|
+
variant?: ModelSelectorVariant;
|
|
3868
|
+
size?: ModelSelectorSize;
|
|
3869
|
+
placement?: Placement;
|
|
3870
|
+
offset?: number;
|
|
3871
|
+
appendTo?: string | HTMLElement;
|
|
3872
|
+
panelClass?: ModelSelectorPanelClass;
|
|
3873
|
+
reasoningEffortLabel?: string;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
export declare interface ModelSelectorReasoningEffortOption {
|
|
3877
|
+
readonly value: string;
|
|
3878
|
+
readonly label: string;
|
|
3879
|
+
readonly disabled?: boolean;
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
export declare type ModelSelectorReasoningEfforts = boolean | readonly ModelSelectorReasoningEffortOption[];
|
|
3883
|
+
|
|
3884
|
+
export declare type ModelSelectorSize = 'small' | 'normal' | 'large';
|
|
3885
|
+
|
|
3886
|
+
export declare interface ModelSelectorSlotProps {
|
|
3887
|
+
option: ModelSelectorOption | null;
|
|
3888
|
+
query: string;
|
|
3889
|
+
close: () => void;
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
export declare interface ModelSelectorSlots {
|
|
3893
|
+
trigger?: (props: ModelSelectorTriggerSlotProps) => VNode | VNode[];
|
|
3894
|
+
item?: (props: ModelSelectorItemSlotProps) => VNode | VNode[];
|
|
3895
|
+
empty?: (props: ModelSelectorEmptySlotProps) => VNode | VNode[];
|
|
3896
|
+
header?: (props: ModelSelectorSlotProps) => VNode | VNode[];
|
|
3897
|
+
footer?: (props: ModelSelectorFooterSlotProps) => VNode | VNode[];
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
export declare interface ModelSelectorTriggerSlotProps {
|
|
3901
|
+
option: ModelSelectorOption | null;
|
|
3902
|
+
label: string;
|
|
3903
|
+
open: boolean;
|
|
3904
|
+
/** The effort currently supported by the selected model. Sticky unsupported values resolve to null. */
|
|
3905
|
+
reasoningEffortOption: ModelSelectorReasoningEffortOption | null;
|
|
3906
|
+
}
|
|
3907
|
+
|
|
3908
|
+
export declare type ModelSelectorVariant = 'outline' | 'ghost' | 'muted';
|
|
3909
|
+
|
|
3498
3910
|
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
3499
3911
|
|
|
3500
3912
|
export declare interface PluginCardEmits {
|
|
@@ -3560,7 +3972,7 @@ export declare interface PopupConfig {
|
|
|
3560
3972
|
};
|
|
3561
3973
|
}
|
|
3562
3974
|
|
|
3563
|
-
declare const Prompt: typeof
|
|
3975
|
+
declare const Prompt: typeof _default_42 & {
|
|
3564
3976
|
install: typeof installPrompt;
|
|
3565
3977
|
};
|
|
3566
3978
|
export { Prompt }
|
|
@@ -3597,7 +4009,7 @@ export declare interface PromptProps {
|
|
|
3597
4009
|
size?: 'small' | 'medium' | 'large';
|
|
3598
4010
|
}
|
|
3599
4011
|
|
|
3600
|
-
declare const Prompts: typeof
|
|
4012
|
+
declare const Prompts: typeof _default_43 & {
|
|
3601
4013
|
install: typeof installPrompts;
|
|
3602
4014
|
};
|
|
3603
4015
|
export { Prompts }
|
|
@@ -3673,7 +4085,7 @@ declare const Sender: {
|
|
|
3673
4085
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3674
4086
|
onCancel?: (() => any) | undefined;
|
|
3675
4087
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3676
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
4088
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
3677
4089
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3678
4090
|
}>, {
|
|
3679
4091
|
submit: () => void;
|
|
@@ -3690,12 +4102,12 @@ declare const Sender: {
|
|
|
3690
4102
|
blur: (event: FocusEvent) => any;
|
|
3691
4103
|
cancel: () => any;
|
|
3692
4104
|
focus: (event: FocusEvent) => any;
|
|
3693
|
-
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
4105
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any;
|
|
3694
4106
|
"update:modelValue": (value: string) => any;
|
|
3695
4107
|
}, PublicProps, {
|
|
3696
4108
|
size: "normal" | "small";
|
|
3697
|
-
placeholder: string;
|
|
3698
4109
|
mode: InputMode;
|
|
4110
|
+
placeholder: string;
|
|
3699
4111
|
enterkeyhint: EnterKeyHint;
|
|
3700
4112
|
autoSize: AutoSize;
|
|
3701
4113
|
hasExternalContent: boolean;
|
|
@@ -3714,7 +4126,7 @@ declare const Sender: {
|
|
|
3714
4126
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3715
4127
|
onCancel?: (() => any) | undefined;
|
|
3716
4128
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3717
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
4129
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
3718
4130
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3719
4131
|
}>, {
|
|
3720
4132
|
submit: () => void;
|
|
@@ -3727,8 +4139,8 @@ declare const Sender: {
|
|
|
3727
4139
|
editor: SenderContext["editor"];
|
|
3728
4140
|
}, {}, {}, {}, {
|
|
3729
4141
|
size: "normal" | "small";
|
|
3730
|
-
placeholder: string;
|
|
3731
4142
|
mode: InputMode;
|
|
4143
|
+
placeholder: string;
|
|
3732
4144
|
enterkeyhint: EnterKeyHint;
|
|
3733
4145
|
autoSize: AutoSize;
|
|
3734
4146
|
hasExternalContent: boolean;
|
|
@@ -3744,7 +4156,7 @@ onInput?: ((value: string) => any) | undefined;
|
|
|
3744
4156
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
3745
4157
|
onCancel?: (() => any) | undefined;
|
|
3746
4158
|
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
3747
|
-
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined) => any) | undefined;
|
|
4159
|
+
onSubmit?: ((textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any) | undefined;
|
|
3748
4160
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
3749
4161
|
}>, {
|
|
3750
4162
|
submit: () => void;
|
|
@@ -3761,12 +4173,12 @@ input: (value: string) => any;
|
|
|
3761
4173
|
blur: (event: FocusEvent) => any;
|
|
3762
4174
|
cancel: () => any;
|
|
3763
4175
|
focus: (event: FocusEvent) => any;
|
|
3764
|
-
submit: (textContent: string, structuredData?: StructuredData | undefined) => any;
|
|
4176
|
+
submit: (textContent: string, structuredData?: StructuredData | undefined, extra?: SenderSubmitExtra | undefined) => any;
|
|
3765
4177
|
"update:modelValue": (value: string) => any;
|
|
3766
4178
|
}, string, {
|
|
3767
4179
|
size: "normal" | "small";
|
|
3768
|
-
placeholder: string;
|
|
3769
4180
|
mode: InputMode;
|
|
4181
|
+
placeholder: string;
|
|
3770
4182
|
enterkeyhint: EnterKeyHint;
|
|
3771
4183
|
autoSize: AutoSize;
|
|
3772
4184
|
hasExternalContent: boolean;
|
|
@@ -3807,6 +4219,8 @@ export { Sender as TrSender }
|
|
|
3807
4219
|
*/
|
|
3808
4220
|
export declare const SENDER_CONTEXT_KEY: unique symbol;
|
|
3809
4221
|
|
|
4222
|
+
export declare type SenderContentRegister = (source: string, payload: MaybeRefOrGetter<unknown>) => () => void;
|
|
4223
|
+
|
|
3810
4224
|
/**
|
|
3811
4225
|
* Sender Context
|
|
3812
4226
|
*
|
|
@@ -3968,7 +4382,7 @@ export declare interface SenderEmits {
|
|
|
3968
4382
|
* }
|
|
3969
4383
|
* ```
|
|
3970
4384
|
*/
|
|
3971
|
-
(e: 'submit', textContent: string, structuredData?: StructuredData): void;
|
|
4385
|
+
(e: 'submit', textContent: string, structuredData?: StructuredData, extra?: SenderSubmitExtra): void;
|
|
3972
4386
|
/**
|
|
3973
4387
|
* 聚焦事件
|
|
3974
4388
|
*
|
|
@@ -4007,6 +4421,11 @@ export declare interface SenderEmits {
|
|
|
4007
4421
|
(e: 'input', value: string): void;
|
|
4008
4422
|
}
|
|
4009
4423
|
|
|
4424
|
+
export declare interface SenderExternalPayload {
|
|
4425
|
+
readonly source: string;
|
|
4426
|
+
readonly payload: unknown;
|
|
4427
|
+
}
|
|
4428
|
+
|
|
4010
4429
|
/**
|
|
4011
4430
|
* Sender 组件 Props
|
|
4012
4431
|
*/
|
|
@@ -4104,6 +4523,9 @@ export declare interface SenderProps {
|
|
|
4104
4523
|
* 用于附件、图片、文件列表等不写入编辑器文本的内容场景。
|
|
4105
4524
|
* 当编辑器文本为空但该值为 true 时,Sender 仍会认为存在可提交内容。
|
|
4106
4525
|
*
|
|
4526
|
+
* @deprecated 若使用 TrAttachments,将其放在 TrSender 内即可自动注册附件内容。
|
|
4527
|
+
* 开发者也可以通过 useSenderContentRegistration 向 Sender 注册内容,前提是组件被 TrSender 包裹。
|
|
4528
|
+
*
|
|
4107
4529
|
* @default false
|
|
4108
4530
|
*/
|
|
4109
4531
|
hasExternalContent?: boolean;
|
|
@@ -4329,6 +4751,10 @@ export declare interface SenderSlotScope {
|
|
|
4329
4751
|
hasContent: boolean;
|
|
4330
4752
|
}
|
|
4331
4753
|
|
|
4754
|
+
export declare interface SenderSubmitExtra {
|
|
4755
|
+
externalPayloads: SenderExternalPayload[];
|
|
4756
|
+
}
|
|
4757
|
+
|
|
4332
4758
|
/**
|
|
4333
4759
|
* 建议项类型
|
|
4334
4760
|
*
|
|
@@ -4696,7 +5122,7 @@ export declare interface SuggestionOptions {
|
|
|
4696
5122
|
onSelect?: (item: SenderSuggestionItem) => void | false;
|
|
4697
5123
|
}
|
|
4698
5124
|
|
|
4699
|
-
declare const SuggestionPillButton: typeof
|
|
5125
|
+
declare const SuggestionPillButton: typeof _default_45 & {
|
|
4700
5126
|
install: typeof installPillButton;
|
|
4701
5127
|
};
|
|
4702
5128
|
export { SuggestionPillButton }
|
|
@@ -5002,6 +5428,10 @@ declare interface TemplateOptions {
|
|
|
5002
5428
|
* HTML 属性
|
|
5003
5429
|
*/
|
|
5004
5430
|
HTMLAttributes?: Record<string, unknown>;
|
|
5431
|
+
/**
|
|
5432
|
+
* 下拉菜单挂载目标
|
|
5433
|
+
*/
|
|
5434
|
+
appendTo?: string | HTMLElement;
|
|
5005
5435
|
}
|
|
5006
5436
|
|
|
5007
5437
|
export declare interface ThemeProviderProps {
|
|
@@ -5254,6 +5684,8 @@ declare type UserTextItem = Omit<CompatTextItem, 'id'> & {
|
|
|
5254
5684
|
id?: CompatTextItem['id'];
|
|
5255
5685
|
};
|
|
5256
5686
|
|
|
5687
|
+
export declare const useSenderContentRegistration: () => SenderContentRegister | undefined;
|
|
5688
|
+
|
|
5257
5689
|
/**
|
|
5258
5690
|
* 获取 Sender Context
|
|
5259
5691
|
*/
|