@opentiny/tiny-robot 0.3.0-rc.4 → 0.3.0-rc.6
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 +1 -1
- package/dist/attachments/index.js +216 -216
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1137 -1079
- package/dist/drag-overlay/index.js +16 -16
- package/dist/dropdown-menu/index.js +2 -2
- package/dist/flow-layout-buttons/index.js +2 -2
- package/dist/history/index.js +2 -224
- package/dist/index.d.ts +161 -96
- package/dist/index.js +19 -17
- package/dist/index2.js +282 -691
- package/dist/index3.js +697 -148
- package/dist/index4.js +161 -0
- package/dist/mcp-add-form/index.js +1 -1
- package/dist/mcp-server-picker/index.js +149 -149
- package/dist/prompts/index.js +5 -5
- package/dist/sender/index.js +1076 -953
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +39 -39
- package/dist/suggestion-popover/index.js +15 -15
- package/dist/useSlotRefs.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { AllowedComponentProps } from 'vue';
|
|
2
2
|
import { App } from 'vue';
|
|
3
|
-
import { AutoSize as AutoSize_2 } from './index.type';
|
|
4
|
-
import { BubbleContentItem as BubbleContentItem_2 } from './renderers';
|
|
5
3
|
import { Component } from 'vue';
|
|
6
4
|
import { ComponentCustomProperties } from 'vue';
|
|
7
5
|
import { ComponentCustomProps } from 'vue';
|
|
@@ -17,14 +15,9 @@ import { CSSProperties } from 'vue';
|
|
|
17
15
|
import { DebuggerEvent } from 'vue';
|
|
18
16
|
import { DefineComponent } from 'vue';
|
|
19
17
|
import { Directive } from 'vue';
|
|
20
|
-
import { DisplayVariant as DisplayVariant_2 } from './index.type';
|
|
21
18
|
import { ExtractPropTypes } from 'vue';
|
|
22
|
-
import { FileTypeMatcher as FileTypeMatcher_2 } from './index.type';
|
|
23
19
|
import { GlobalComponents } from 'vue';
|
|
24
20
|
import { GlobalDirectives } from 'vue';
|
|
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';
|
|
28
21
|
import { nextTick } from 'vue';
|
|
29
22
|
import { OnCleanup } from '@vue/reactivity';
|
|
30
23
|
import { Options } from 'markdown-it';
|
|
@@ -35,9 +28,6 @@ import { RendererElement } from 'vue';
|
|
|
35
28
|
import { RendererNode } from 'vue';
|
|
36
29
|
import { ShallowUnwrapRef } from 'vue';
|
|
37
30
|
import { Slot } from 'vue';
|
|
38
|
-
import { SubmitTrigger as SubmitTrigger_2 } from './index.type';
|
|
39
|
-
import { ThemeType as ThemeType_2 } from './index.type';
|
|
40
|
-
import { TooltipContentProps } from './components/Tooltip.vue';
|
|
41
31
|
import { TransitionProps } from 'vue';
|
|
42
32
|
import { VNode } from 'vue';
|
|
43
33
|
import { VNodeProps } from 'vue';
|
|
@@ -45,7 +35,7 @@ import { WatchOptions } from 'vue';
|
|
|
45
35
|
import { WatchStopHandle } from 'vue';
|
|
46
36
|
|
|
47
37
|
declare const __VLS_component: DefineComponent<BubbleProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleProps> & Readonly<{}>, {
|
|
48
|
-
content: string |
|
|
38
|
+
content: string | BubbleContentItem[];
|
|
49
39
|
placement: "start" | "end";
|
|
50
40
|
shape: "rounded" | "corner";
|
|
51
41
|
abortedText: string;
|
|
@@ -379,26 +369,31 @@ onSubmit?: ((value: string) => any) | undefined;
|
|
|
379
369
|
disabled: boolean;
|
|
380
370
|
modelValue: string;
|
|
381
371
|
placeholder: string;
|
|
382
|
-
mode:
|
|
372
|
+
mode: InputMode;
|
|
383
373
|
loading: boolean;
|
|
384
374
|
autofocus: boolean;
|
|
385
|
-
clearable: boolean;
|
|
386
|
-
showWordLimit: boolean;
|
|
387
375
|
allowSpeech: boolean;
|
|
388
376
|
allowFiles: boolean;
|
|
389
|
-
submitType:
|
|
377
|
+
submitType: SubmitTrigger;
|
|
390
378
|
stopText: string;
|
|
391
|
-
|
|
392
|
-
|
|
379
|
+
autoSize: AutoSize;
|
|
380
|
+
suggestions: ISuggestionItem[];
|
|
381
|
+
clearable: boolean;
|
|
393
382
|
maxLength: number;
|
|
383
|
+
showWordLimit: boolean;
|
|
394
384
|
suggestionPopupWidth: string | number;
|
|
395
|
-
theme:
|
|
385
|
+
theme: ThemeType;
|
|
396
386
|
templateData: UserItem[];
|
|
397
387
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
398
388
|
senderRef: HTMLDivElement;
|
|
399
389
|
inputWrapperRef: HTMLDivElement;
|
|
400
390
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
401
391
|
modelValue?: UserItem[];
|
|
392
|
+
} & {
|
|
393
|
+
autoSize: boolean | {
|
|
394
|
+
minRows: number;
|
|
395
|
+
maxRows: number;
|
|
396
|
+
};
|
|
402
397
|
}> & Readonly<{
|
|
403
398
|
onSubmit?: (() => any) | undefined;
|
|
404
399
|
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
@@ -420,6 +415,11 @@ M: {};
|
|
|
420
415
|
Defaults: {};
|
|
421
416
|
}, Readonly<{
|
|
422
417
|
modelValue?: UserItem[];
|
|
418
|
+
} & {
|
|
419
|
+
autoSize: boolean | {
|
|
420
|
+
minRows: number;
|
|
421
|
+
maxRows: number;
|
|
422
|
+
};
|
|
423
423
|
}> & Readonly<{
|
|
424
424
|
onSubmit?: (() => any) | undefined;
|
|
425
425
|
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
@@ -902,6 +902,10 @@ floatingItemsRef: HTMLDivElement;
|
|
|
902
902
|
floatingMaybeItemRefs: unknown[];
|
|
903
903
|
}, HTMLDivElement>;
|
|
904
904
|
|
|
905
|
+
declare type __VLS_PrettifyLocal<T> = {
|
|
906
|
+
[K in keyof T]: T[K];
|
|
907
|
+
} & {};
|
|
908
|
+
|
|
905
909
|
declare type __VLS_Props = {
|
|
906
910
|
contentRenderers?: Record<string, BubbleContentRenderer>;
|
|
907
911
|
};
|
|
@@ -1227,6 +1231,7 @@ declare function __VLS_template_7(): {
|
|
|
1227
1231
|
slots: {
|
|
1228
1232
|
header?(_: {}): any;
|
|
1229
1233
|
prefix?(_: {}): any;
|
|
1234
|
+
content?(_: {}): any;
|
|
1230
1235
|
decorativeContent?(_: {}): any;
|
|
1231
1236
|
actions?(_: {}): any;
|
|
1232
1237
|
'footer-left'?(_: {}): any;
|
|
@@ -1238,6 +1243,11 @@ declare function __VLS_template_7(): {
|
|
|
1238
1243
|
inputWrapperRef: HTMLDivElement;
|
|
1239
1244
|
templateEditorRef: CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
1240
1245
|
modelValue?: UserItem[];
|
|
1246
|
+
} & {
|
|
1247
|
+
autoSize: boolean | {
|
|
1248
|
+
minRows: number;
|
|
1249
|
+
maxRows: number;
|
|
1250
|
+
};
|
|
1241
1251
|
}> & Readonly<{
|
|
1242
1252
|
onSubmit?: (() => any) | undefined;
|
|
1243
1253
|
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
@@ -1259,6 +1269,11 @@ declare function __VLS_template_7(): {
|
|
|
1259
1269
|
Defaults: {};
|
|
1260
1270
|
}, Readonly<{
|
|
1261
1271
|
modelValue?: UserItem[];
|
|
1272
|
+
} & {
|
|
1273
|
+
autoSize: boolean | {
|
|
1274
|
+
minRows: number;
|
|
1275
|
+
maxRows: number;
|
|
1276
|
+
};
|
|
1262
1277
|
}> & Readonly<{
|
|
1263
1278
|
onSubmit?: (() => any) | undefined;
|
|
1264
1279
|
"onUpdate:modelValue"?: ((value: UserItem[]) => any) | undefined;
|
|
@@ -1904,15 +1919,6 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
|
|
|
1904
1919
|
|
|
1905
1920
|
export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
|
|
1906
1921
|
|
|
1907
|
-
declare interface BaseHistoryProps {
|
|
1908
|
-
activeTab?: string;
|
|
1909
|
-
searchBar?: boolean;
|
|
1910
|
-
searchQuery?: string;
|
|
1911
|
-
searchPlaceholder?: string;
|
|
1912
|
-
searchFn?: (query: string, item: HistoryItem) => boolean;
|
|
1913
|
-
selected?: string;
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
1922
|
declare interface BaseTextItem {
|
|
1917
1923
|
id: string;
|
|
1918
1924
|
type: string;
|
|
@@ -1972,7 +1978,10 @@ export declare interface BubbleContentItem {
|
|
|
1972
1978
|
[key: string]: any;
|
|
1973
1979
|
}
|
|
1974
1980
|
|
|
1975
|
-
export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component
|
|
1981
|
+
export declare type BubbleContentRenderer = BubbleContentFunctionRenderer | BubbleContentClassRenderer | Component | {
|
|
1982
|
+
component: Component;
|
|
1983
|
+
defaultProps: Record<string, unknown>;
|
|
1984
|
+
};
|
|
1976
1985
|
|
|
1977
1986
|
declare const bubbleInstall: (app: App) => void;
|
|
1978
1987
|
|
|
@@ -2052,18 +2061,26 @@ export declare type BubbleRoleConfig = BubbleCommonProps & {
|
|
|
2052
2061
|
export declare interface BubbleSlots {
|
|
2053
2062
|
default?: (slotProps: {
|
|
2054
2063
|
bubbleProps: BubbleProps;
|
|
2064
|
+
index?: number;
|
|
2055
2065
|
}) => unknown;
|
|
2056
2066
|
footer?: (slotProps: {
|
|
2057
2067
|
bubbleProps: BubbleProps;
|
|
2068
|
+
index?: number;
|
|
2058
2069
|
}) => unknown;
|
|
2059
2070
|
loading?: (slotProps: {
|
|
2060
2071
|
bubbleProps: BubbleProps;
|
|
2072
|
+
index?: number;
|
|
2073
|
+
}) => unknown;
|
|
2074
|
+
trailer?: (slotProps: {
|
|
2075
|
+
bubbleProps: BubbleProps;
|
|
2076
|
+
index?: number;
|
|
2061
2077
|
}) => unknown;
|
|
2062
2078
|
}
|
|
2063
2079
|
|
|
2064
2080
|
export declare interface ButtonGroupConfig {
|
|
2065
2081
|
file?: ControlState & fileUploadConfig;
|
|
2066
2082
|
submit?: ControlState;
|
|
2083
|
+
voice?: VoiceButtonConfig;
|
|
2067
2084
|
}
|
|
2068
2085
|
|
|
2069
2086
|
export declare type ColorMode = 'light' | 'dark' | 'auto';
|
|
@@ -2094,6 +2111,7 @@ export declare interface ContainerSlots {
|
|
|
2094
2111
|
export declare interface ControlState {
|
|
2095
2112
|
tooltips?: string | TooltipRender;
|
|
2096
2113
|
disabled?: boolean;
|
|
2114
|
+
tooltipPlacement?: 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
2097
2115
|
}
|
|
2098
2116
|
|
|
2099
2117
|
declare const _default: {
|
|
@@ -2101,44 +2119,44 @@ declare const _default: {
|
|
|
2101
2119
|
};
|
|
2102
2120
|
export default _default;
|
|
2103
2121
|
|
|
2104
|
-
declare const _default_10: typeof
|
|
2105
|
-
install: typeof
|
|
2122
|
+
declare const _default_10: typeof _default_30 & {
|
|
2123
|
+
install: typeof install_9;
|
|
2106
2124
|
};
|
|
2107
2125
|
export { _default_10 as Sender }
|
|
2108
2126
|
export { _default_10 as TrSender }
|
|
2109
2127
|
|
|
2110
|
-
declare const _default_11: typeof
|
|
2111
|
-
install: typeof
|
|
2128
|
+
declare const _default_11: typeof _default_32 & {
|
|
2129
|
+
install: typeof install_10;
|
|
2112
2130
|
};
|
|
2113
2131
|
export { _default_11 as SuggestionPills }
|
|
2114
2132
|
export { _default_11 as TrSuggestionPills }
|
|
2115
2133
|
|
|
2116
|
-
declare const _default_12: typeof
|
|
2117
|
-
install: typeof
|
|
2134
|
+
declare const _default_12: typeof _default_33 & {
|
|
2135
|
+
install: typeof install_11;
|
|
2118
2136
|
};
|
|
2119
2137
|
export { _default_12 as SuggestionPopover }
|
|
2120
2138
|
export { _default_12 as TrSuggestionPopover }
|
|
2121
2139
|
|
|
2122
|
-
declare const _default_13: typeof
|
|
2123
|
-
install: typeof
|
|
2140
|
+
declare const _default_13: typeof _default_34 & {
|
|
2141
|
+
install: typeof install_12;
|
|
2124
2142
|
};
|
|
2125
2143
|
export { _default_13 as ThemeProvider }
|
|
2126
2144
|
export { _default_13 as TrThemeProvider }
|
|
2127
2145
|
|
|
2128
|
-
declare const _default_14: typeof
|
|
2129
|
-
install: typeof
|
|
2146
|
+
declare const _default_14: typeof _default_35 & {
|
|
2147
|
+
install: typeof install_13;
|
|
2130
2148
|
};
|
|
2131
2149
|
export { _default_14 as TrWelcome }
|
|
2132
2150
|
export { _default_14 as Welcome }
|
|
2133
2151
|
|
|
2134
|
-
declare const _default_15: typeof
|
|
2135
|
-
install: typeof
|
|
2152
|
+
declare const _default_15: typeof _default_36 & {
|
|
2153
|
+
install: typeof install_14;
|
|
2136
2154
|
};
|
|
2137
2155
|
export { _default_15 as McpServerPicker }
|
|
2138
2156
|
export { _default_15 as TrMcpServerPicker }
|
|
2139
2157
|
|
|
2140
|
-
declare const _default_16: typeof
|
|
2141
|
-
install: typeof
|
|
2158
|
+
declare const _default_16: typeof _default_37 & {
|
|
2159
|
+
install: typeof install_15;
|
|
2142
2160
|
};
|
|
2143
2161
|
export { _default_16 as McpAddForm }
|
|
2144
2162
|
export { _default_16 as TrMcpAddForm }
|
|
@@ -2165,8 +2183,8 @@ file: Attachment;
|
|
|
2165
2183
|
}) => any) | undefined;
|
|
2166
2184
|
}>, {
|
|
2167
2185
|
actions: ActionButton[];
|
|
2168
|
-
fileMatchers:
|
|
2169
|
-
variant:
|
|
2186
|
+
fileMatchers: FileTypeMatcher[];
|
|
2187
|
+
variant: DisplayVariant;
|
|
2170
2188
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2171
2189
|
|
|
2172
2190
|
declare const _default_18: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -2203,18 +2221,30 @@ actionsLimit: number;
|
|
|
2203
2221
|
sourcesLinesLimit: number;
|
|
2204
2222
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2205
2223
|
|
|
2206
|
-
declare const _default_26:
|
|
2224
|
+
declare const _default_26: <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<{
|
|
2225
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
2226
|
+
readonly "onItem-click"?: ((item: T) => any) | undefined;
|
|
2227
|
+
readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
|
|
2228
|
+
readonly "onItem-action"?: ((action: HistoryMenuItem, item: T) => any) | undefined;
|
|
2229
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onItem-click" | "onItem-title-change" | "onItem-action"> & HistoryProps<T> & Partial<{}>> & PublicProps;
|
|
2230
|
+
expose(exposed: ShallowUnwrapRef< {}>): void;
|
|
2231
|
+
attrs: any;
|
|
2232
|
+
slots: Readonly<HistorySlots<T>> & HistorySlots<T>;
|
|
2233
|
+
emit: ((evt: "item-click", item: T) => void) & ((evt: "item-title-change", newTitle: string, item: T) => void) & ((evt: "item-action", action: HistoryMenuItem, item: T) => void);
|
|
2234
|
+
}>) => VNode & {
|
|
2235
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
declare const _default_27: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
|
|
2207
2239
|
size: string | number;
|
|
2208
2240
|
svgSize: string | number;
|
|
2209
2241
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
|
|
2210
2242
|
|
|
2211
|
-
declare const
|
|
2243
|
+
declare const _default_28: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
|
|
2212
2244
|
size: "small" | "medium" | "large";
|
|
2213
2245
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2214
2246
|
|
|
2215
|
-
declare const
|
|
2216
|
-
|
|
2217
|
-
declare const _default_29: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2247
|
+
declare const _default_29: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
|
|
2218
2248
|
|
|
2219
2249
|
declare const _default_3: typeof _default_21 & {
|
|
2220
2250
|
install: typeof install_2;
|
|
@@ -2222,17 +2252,19 @@ declare const _default_3: typeof _default_21 & {
|
|
|
2222
2252
|
export { _default_3 as Container }
|
|
2223
2253
|
export { _default_3 as TrContainer }
|
|
2224
2254
|
|
|
2225
|
-
declare const _default_30:
|
|
2255
|
+
declare const _default_30: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
|
|
2256
|
+
|
|
2257
|
+
declare const _default_31: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
|
|
2226
2258
|
|
|
2227
|
-
declare const
|
|
2259
|
+
declare const _default_32: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
|
|
2228
2260
|
|
|
2229
|
-
declare const
|
|
2261
|
+
declare const _default_33: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2230
2262
|
|
|
2231
|
-
declare const
|
|
2263
|
+
declare const _default_34: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
|
|
2232
2264
|
|
|
2233
|
-
declare const
|
|
2265
|
+
declare const _default_35: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
|
|
2234
2266
|
|
|
2235
|
-
declare const
|
|
2267
|
+
declare const _default_36: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
2236
2268
|
"update:visible": (value: boolean) => any;
|
|
2237
2269
|
} & {
|
|
2238
2270
|
refresh: (tab: "installed" | "market") => any;
|
|
@@ -2259,13 +2291,13 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
|
|
|
2259
2291
|
}>, {
|
|
2260
2292
|
title: string;
|
|
2261
2293
|
loading: boolean;
|
|
2262
|
-
searchPlaceholder: string;
|
|
2263
2294
|
installedPlugins: PluginInfo[];
|
|
2264
2295
|
marketPlugins: PluginInfo[];
|
|
2296
|
+
searchPlaceholder: string;
|
|
2265
2297
|
enableSearch: boolean;
|
|
2266
2298
|
installedSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2267
2299
|
marketSearchFn: (query: string, item: PluginInfo) => boolean;
|
|
2268
|
-
marketCategoryOptions:
|
|
2300
|
+
marketCategoryOptions: MarketCategoryOption[];
|
|
2269
2301
|
marketCategoryPlaceholder: string;
|
|
2270
2302
|
enableMarketCategoryFilter: boolean;
|
|
2271
2303
|
defaultActiveTab: "installed" | "market";
|
|
@@ -2283,7 +2315,7 @@ allowPluginAdd: boolean;
|
|
|
2283
2315
|
marketLoading: boolean;
|
|
2284
2316
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
2285
2317
|
|
|
2286
|
-
declare const
|
|
2318
|
+
declare const _default_37: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
2287
2319
|
cancel: () => any;
|
|
2288
2320
|
confirm: (type: AddType, data: string | McpAddFormData) => any;
|
|
2289
2321
|
"update:addType": (value: AddType) => any;
|
|
@@ -2319,15 +2351,14 @@ declare const _default_7: typeof _default_25 & {
|
|
|
2319
2351
|
export { _default_7 as Feedback }
|
|
2320
2352
|
export { _default_7 as TrFeedback }
|
|
2321
2353
|
|
|
2322
|
-
declare const _default_8: {
|
|
2323
|
-
install:
|
|
2324
|
-
name: string;
|
|
2354
|
+
declare const _default_8: typeof _default_26 & {
|
|
2355
|
+
install: typeof install_7;
|
|
2325
2356
|
};
|
|
2326
2357
|
export { _default_8 as History }
|
|
2327
2358
|
export { _default_8 as TrHistory }
|
|
2328
2359
|
|
|
2329
|
-
declare const _default_9: typeof
|
|
2330
|
-
install: typeof
|
|
2360
|
+
declare const _default_9: typeof _default_27 & {
|
|
2361
|
+
install: typeof install_8;
|
|
2331
2362
|
};
|
|
2332
2363
|
export { _default_9 as IconButton }
|
|
2333
2364
|
export { _default_9 as TrIconButton }
|
|
@@ -2557,6 +2588,7 @@ export declare interface FileTypeMatcher {
|
|
|
2557
2588
|
declare interface fileUploadConfig {
|
|
2558
2589
|
accept?: string;
|
|
2559
2590
|
multiple?: boolean;
|
|
2591
|
+
reset?: boolean;
|
|
2560
2592
|
}
|
|
2561
2593
|
|
|
2562
2594
|
export declare interface Handlers {
|
|
@@ -2568,34 +2600,43 @@ export declare interface Handlers {
|
|
|
2568
2600
|
|
|
2569
2601
|
declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
|
|
2570
2602
|
|
|
2571
|
-
export declare type HistoryData =
|
|
2572
|
-
|
|
2573
|
-
export declare interface HistoryEvents {
|
|
2574
|
-
(e: 'close'): void;
|
|
2575
|
-
(e: 'item-click', item: HistoryItem): void;
|
|
2576
|
-
(e: 'item-title-change', newTitle: string, rawData: HistoryItem): void;
|
|
2577
|
-
(e: 'item-delete', item: HistoryItem): void;
|
|
2578
|
-
}
|
|
2603
|
+
export declare type HistoryData<T extends HistoryItem> = T[] | HistoryGroup<T>[];
|
|
2579
2604
|
|
|
2580
|
-
export declare interface HistoryGroup<T
|
|
2605
|
+
export declare interface HistoryGroup<T extends HistoryItem> {
|
|
2581
2606
|
group: string | symbol;
|
|
2582
|
-
items:
|
|
2607
|
+
items: T[];
|
|
2583
2608
|
}
|
|
2584
2609
|
|
|
2585
|
-
export declare interface HistoryItem
|
|
2586
|
-
id
|
|
2610
|
+
export declare interface HistoryItem {
|
|
2611
|
+
id?: string;
|
|
2587
2612
|
title: string;
|
|
2588
|
-
|
|
2589
|
-
|
|
2613
|
+
icon?: Component | VNode;
|
|
2614
|
+
[x: string]: any;
|
|
2590
2615
|
}
|
|
2591
2616
|
|
|
2592
|
-
export declare interface
|
|
2617
|
+
export declare interface HistoryMenuItem {
|
|
2618
|
+
id: string;
|
|
2593
2619
|
text: string;
|
|
2594
|
-
|
|
2595
|
-
style?: CSSProperties;
|
|
2620
|
+
icon?: Component | VNode;
|
|
2596
2621
|
}
|
|
2597
2622
|
|
|
2598
|
-
export declare type HistoryProps =
|
|
2623
|
+
export declare type HistoryProps<T extends HistoryItem = HistoryItem> = {
|
|
2624
|
+
data: HistoryData<T>;
|
|
2625
|
+
selected?: string;
|
|
2626
|
+
showRenameControls?: boolean;
|
|
2627
|
+
renameControlOnClickOutside?: 'confirm' | 'cancel' | 'none';
|
|
2628
|
+
menuItems?: HistoryMenuItem[];
|
|
2629
|
+
menuListGap?: number;
|
|
2630
|
+
};
|
|
2631
|
+
|
|
2632
|
+
export declare interface HistorySlots<T extends HistoryItem = HistoryItem> {
|
|
2633
|
+
'item-prefix'?: (slotProps: {
|
|
2634
|
+
item: T;
|
|
2635
|
+
}) => VNode | VNode[];
|
|
2636
|
+
'item-title'?: (slotProps: {
|
|
2637
|
+
item: T;
|
|
2638
|
+
}) => VNode | VNode[];
|
|
2639
|
+
}
|
|
2599
2640
|
|
|
2600
2641
|
export declare interface IconButtonProps {
|
|
2601
2642
|
icon: VNode | Component;
|
|
@@ -2624,6 +2665,8 @@ declare const install_13: <T>(app: App<T>) => void;
|
|
|
2624
2665
|
|
|
2625
2666
|
declare const install_14: <T>(app: App<T>) => void;
|
|
2626
2667
|
|
|
2668
|
+
declare const install_15: <T>(app: App<T>) => void;
|
|
2669
|
+
|
|
2627
2670
|
declare const install_2: <T>(app: App<T>) => void;
|
|
2628
2671
|
|
|
2629
2672
|
declare const install_3: <T>(app: App<T>) => void;
|
|
@@ -2724,14 +2767,6 @@ export declare interface McpServerPickerProps {
|
|
|
2724
2767
|
marketLoading?: boolean;
|
|
2725
2768
|
}
|
|
2726
2769
|
|
|
2727
|
-
export declare type MultiTabHistoryProps = {
|
|
2728
|
-
tabs: {
|
|
2729
|
-
title: string;
|
|
2730
|
-
id: string;
|
|
2731
|
-
}[];
|
|
2732
|
-
data: Record<string, HistoryData>;
|
|
2733
|
-
} & BaseHistoryProps;
|
|
2734
|
-
|
|
2735
2770
|
export declare type PluginAddState = 'idle' | 'loading' | 'added';
|
|
2736
2771
|
|
|
2737
2772
|
export declare interface PluginCardEmits {
|
|
@@ -2797,7 +2832,7 @@ export declare interface PopupConfig {
|
|
|
2797
2832
|
};
|
|
2798
2833
|
}
|
|
2799
2834
|
|
|
2800
|
-
declare const Prompt: typeof
|
|
2835
|
+
declare const Prompt: typeof _default_28 & {
|
|
2801
2836
|
install: typeof installPrompt;
|
|
2802
2837
|
};
|
|
2803
2838
|
export { Prompt }
|
|
@@ -2834,7 +2869,7 @@ export declare interface PromptProps {
|
|
|
2834
2869
|
size?: 'small' | 'medium' | 'large';
|
|
2835
2870
|
}
|
|
2836
2871
|
|
|
2837
|
-
declare const Prompts: typeof
|
|
2872
|
+
declare const Prompts: typeof _default_29 & {
|
|
2838
2873
|
install: typeof installPrompts;
|
|
2839
2874
|
};
|
|
2840
2875
|
export { Prompts }
|
|
@@ -2922,24 +2957,36 @@ export declare interface SenderProps {
|
|
|
2922
2957
|
showWordLimit?: boolean;
|
|
2923
2958
|
suggestions?: ISuggestionItem[];
|
|
2924
2959
|
suggestionPopupWidth?: string | number;
|
|
2960
|
+
activeSuggestionKeys?: string[];
|
|
2925
2961
|
theme?: ThemeType;
|
|
2926
2962
|
templateData?: UserItem[];
|
|
2927
2963
|
stopText?: string;
|
|
2928
2964
|
}
|
|
2929
2965
|
|
|
2930
|
-
export declare
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2966
|
+
export declare interface SpeechCallbacks {
|
|
2967
|
+
onStart: () => void;
|
|
2968
|
+
onInterim: (transcript: string) => void;
|
|
2969
|
+
onFinal: (transcript: string) => void;
|
|
2970
|
+
onEnd: (transcript?: string) => void;
|
|
2971
|
+
onError: (error: Error) => void;
|
|
2972
|
+
}
|
|
2934
2973
|
|
|
2935
2974
|
export declare interface SpeechConfig {
|
|
2975
|
+
customHandler?: SpeechHandler;
|
|
2936
2976
|
lang?: string;
|
|
2937
2977
|
continuous?: boolean;
|
|
2938
2978
|
interimResults?: boolean;
|
|
2939
2979
|
autoReplace?: boolean;
|
|
2980
|
+
onVoiceButtonClick?: (isRecording: boolean, preventDefault: () => void) => void | Promise<void>;
|
|
2940
2981
|
}
|
|
2941
2982
|
|
|
2942
2983
|
export declare interface SpeechHandler {
|
|
2984
|
+
start: (callbacks: SpeechCallbacks) => Promise<void> | void;
|
|
2985
|
+
stop: () => Promise<void> | void;
|
|
2986
|
+
isSupported: () => boolean;
|
|
2987
|
+
}
|
|
2988
|
+
|
|
2989
|
+
export declare interface SpeechHandlerResult {
|
|
2943
2990
|
speechState: SpeechState;
|
|
2944
2991
|
start: () => void;
|
|
2945
2992
|
stop: () => void;
|
|
@@ -2977,7 +3024,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
|
|
|
2977
3024
|
|
|
2978
3025
|
export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
|
|
2979
3026
|
|
|
2980
|
-
declare const SuggestionPillButton: typeof
|
|
3027
|
+
declare const SuggestionPillButton: typeof _default_31 & {
|
|
2981
3028
|
install: typeof installPillButton;
|
|
2982
3029
|
};
|
|
2983
3030
|
export { SuggestionPillButton }
|
|
@@ -3144,6 +3191,16 @@ export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
|
|
|
3144
3191
|
*/
|
|
3145
3192
|
export declare type ThemeType = 'light' | 'dark';
|
|
3146
3193
|
|
|
3194
|
+
declare interface TooltipContentProps {
|
|
3195
|
+
show?: boolean;
|
|
3196
|
+
content: string;
|
|
3197
|
+
trigger?: HTMLElement | null;
|
|
3198
|
+
disabled?: boolean;
|
|
3199
|
+
placement?: 'top' | 'bottom';
|
|
3200
|
+
delayOpen?: number;
|
|
3201
|
+
delayClose?: number;
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3147
3204
|
export declare type TooltipRender = () => VNode | string;
|
|
3148
3205
|
|
|
3149
3206
|
export declare interface UrlAttachment extends BaseAttachment {
|
|
@@ -3172,6 +3229,10 @@ export declare const useTheme: () => {
|
|
|
3172
3229
|
setColorMode: (mode: ColorMode) => boolean;
|
|
3173
3230
|
};
|
|
3174
3231
|
|
|
3232
|
+
export declare function useTouchDevice(): {
|
|
3233
|
+
isTouchDevice: Ref<boolean, boolean>;
|
|
3234
|
+
};
|
|
3235
|
+
|
|
3175
3236
|
/**
|
|
3176
3237
|
* 拖拽区域指令
|
|
3177
3238
|
* @param el 元素
|
|
@@ -3179,6 +3240,10 @@ export declare const useTheme: () => {
|
|
|
3179
3240
|
*/
|
|
3180
3241
|
export declare const vDropzone: Directive<DragAwareElement, DropzoneBinding>;
|
|
3181
3242
|
|
|
3243
|
+
declare interface VoiceButtonConfig {
|
|
3244
|
+
icon?: VNode | Component;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3182
3247
|
export declare interface WelcomeProps {
|
|
3183
3248
|
title: string;
|
|
3184
3249
|
description: string;
|
package/dist/index.js
CHANGED
|
@@ -6,14 +6,15 @@ import b from "./conversations/index.js";
|
|
|
6
6
|
import L from "./drag-overlay/index.js";
|
|
7
7
|
import C from "./dropdown-menu/index.js";
|
|
8
8
|
import B from "./feedback/index.js";
|
|
9
|
-
import y from "./
|
|
9
|
+
import { H as y } from "./index2.js";
|
|
10
|
+
import { u as De } from "./index2.js";
|
|
10
11
|
import O from "./icon-button/index.js";
|
|
11
|
-
import { Prompt as
|
|
12
|
-
import
|
|
12
|
+
import { Prompt as H, Prompts as j } from "./prompts/index.js";
|
|
13
|
+
import A from "./sender/index.js";
|
|
13
14
|
import M, { SuggestionPillButton as w } from "./suggestion-pills/index.js";
|
|
14
15
|
import R from "./suggestion-popover/index.js";
|
|
15
16
|
import k from "./theme-provider/index.js";
|
|
16
|
-
import { useTheme as
|
|
17
|
+
import { useTheme as he } from "./theme-provider/index.js";
|
|
17
18
|
import W from "./welcome/index.js";
|
|
18
19
|
import $ from "./mcp-server-picker/index.js";
|
|
19
20
|
import I from "./mcp-add-form/index.js";
|
|
@@ -69,7 +70,7 @@ function G(e, r) {
|
|
|
69
70
|
}
|
|
70
71
|
return { acceptedFiles: n, rejectedFiles: s, rejectionReason: null };
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
+
function D(e) {
|
|
73
74
|
return {
|
|
74
75
|
accept: e.accept || "*",
|
|
75
76
|
multiple: e.multiple ?? !0,
|
|
@@ -89,7 +90,7 @@ const pe = {
|
|
|
89
90
|
mounted(e, r) {
|
|
90
91
|
let t = 0;
|
|
91
92
|
const { disabled: o, onDraggingChange: a } = r.value;
|
|
92
|
-
e.__vDropzoneOptions__ =
|
|
93
|
+
e.__vDropzoneOptions__ = D(r.value);
|
|
93
94
|
const l = {
|
|
94
95
|
/**
|
|
95
96
|
* 拖拽进入
|
|
@@ -118,12 +119,12 @@ const pe = {
|
|
|
118
119
|
var u;
|
|
119
120
|
if (o) return;
|
|
120
121
|
n.preventDefault(), t = 0, a(!1, null);
|
|
121
|
-
const s = (u = n.dataTransfer) == null ? void 0 : u.files, { onDrop: i, onError: p, accept: m, multiple: c, maxSize:
|
|
122
|
+
const s = (u = n.dataTransfer) == null ? void 0 : u.files, { onDrop: i, onError: p, accept: m, multiple: c, maxSize: g, maxFiles: h } = e.__vDropzoneOptions__;
|
|
122
123
|
if (s && s.length > 0) {
|
|
123
124
|
const T = Array.from(s), { acceptedFiles: v, rejectedFiles: F, rejectionReason: f } = G(T, {
|
|
124
125
|
accept: m,
|
|
125
126
|
multiple: c,
|
|
126
|
-
maxSize:
|
|
127
|
+
maxSize: g,
|
|
127
128
|
maxFiles: h
|
|
128
129
|
});
|
|
129
130
|
f && p({ files: F, ...f }), v.length > 0 && i(v);
|
|
@@ -133,7 +134,7 @@ const pe = {
|
|
|
133
134
|
e.__vDropzoneHandlers__ = l, e.addEventListener("dragenter", l.handleDragEnter), e.addEventListener("dragover", l.handleDragOver), e.addEventListener("dragleave", l.handleDragLeave), e.addEventListener("drop", l.handleDrop);
|
|
134
135
|
},
|
|
135
136
|
updated(e, r) {
|
|
136
|
-
e.__vDropzoneOptions__ && (e.__vDropzoneOptions__ =
|
|
137
|
+
e.__vDropzoneOptions__ && (e.__vDropzoneOptions__ = D(r.value));
|
|
137
138
|
},
|
|
138
139
|
/**
|
|
139
140
|
* 卸载指令
|
|
@@ -154,9 +155,9 @@ const pe = {
|
|
|
154
155
|
B,
|
|
155
156
|
y,
|
|
156
157
|
O,
|
|
158
|
+
H,
|
|
157
159
|
j,
|
|
158
160
|
A,
|
|
159
|
-
H,
|
|
160
161
|
M,
|
|
161
162
|
w,
|
|
162
163
|
R,
|
|
@@ -188,9 +189,9 @@ export {
|
|
|
188
189
|
O as IconButton,
|
|
189
190
|
I as McpAddForm,
|
|
190
191
|
$ as McpServerPicker,
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
192
|
+
H as Prompt,
|
|
193
|
+
j as Prompts,
|
|
194
|
+
A as Sender,
|
|
194
195
|
w as SuggestionPillButton,
|
|
195
196
|
M as SuggestionPills,
|
|
196
197
|
R as SuggestionPopover,
|
|
@@ -208,9 +209,9 @@ export {
|
|
|
208
209
|
O as TrIconButton,
|
|
209
210
|
I as TrMcpAddForm,
|
|
210
211
|
$ as TrMcpServerPicker,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
H as TrPrompt,
|
|
213
|
+
j as TrPrompts,
|
|
214
|
+
A as TrSender,
|
|
214
215
|
w as TrSuggestionPillButton,
|
|
215
216
|
M as TrSuggestionPills,
|
|
216
217
|
R as TrSuggestionPopover,
|
|
@@ -218,6 +219,7 @@ export {
|
|
|
218
219
|
W as TrWelcome,
|
|
219
220
|
W as Welcome,
|
|
220
221
|
me as default,
|
|
221
|
-
|
|
222
|
+
he as useTheme,
|
|
223
|
+
De as useTouchDevice,
|
|
222
224
|
pe as vDropzone
|
|
223
225
|
};
|