@opentiny/tiny-robot 0.3.0-rc.4 → 0.3.0-rc.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,7 +1,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 | BubbleContentItem_2[];
38
+ content: string | BubbleContentItem[];
49
39
  placement: "start" | "end";
50
40
  shape: "rounded" | "corner";
51
41
  abortedText: string;
@@ -379,20 +369,20 @@ onSubmit?: ((value: string) => any) | undefined;
379
369
  disabled: boolean;
380
370
  modelValue: string;
381
371
  placeholder: string;
382
- mode: InputMode_2;
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: SubmitTrigger_2;
377
+ submitType: SubmitTrigger;
390
378
  stopText: string;
391
- suggestions: ISuggestionItem_2[];
392
- autoSize: AutoSize_2;
379
+ suggestions: ISuggestionItem[];
380
+ autoSize: AutoSize;
381
+ clearable: boolean;
393
382
  maxLength: number;
383
+ showWordLimit: boolean;
394
384
  suggestionPopupWidth: string | number;
395
- theme: ThemeType_2;
385
+ theme: ThemeType;
396
386
  templateData: UserItem[];
397
387
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
398
388
  senderRef: HTMLDivElement;
@@ -902,6 +892,10 @@ floatingItemsRef: HTMLDivElement;
902
892
  floatingMaybeItemRefs: unknown[];
903
893
  }, HTMLDivElement>;
904
894
 
895
+ declare type __VLS_PrettifyLocal<T> = {
896
+ [K in keyof T]: T[K];
897
+ } & {};
898
+
905
899
  declare type __VLS_Props = {
906
900
  contentRenderers?: Record<string, BubbleContentRenderer>;
907
901
  };
@@ -1904,15 +1898,6 @@ declare type BaseCardProps = Pick<AttachmentListProps, 'fileIcons' | 'disabled'
1904
1898
 
1905
1899
  export declare type BaseFileType = 'image' | 'pdf' | 'word' | 'excel' | 'ppt' | 'folder' | 'other';
1906
1900
 
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
1901
  declare interface BaseTextItem {
1917
1902
  id: string;
1918
1903
  type: string;
@@ -2101,44 +2086,44 @@ declare const _default: {
2101
2086
  };
2102
2087
  export default _default;
2103
2088
 
2104
- declare const _default_10: typeof _default_29 & {
2105
- install: typeof install_8;
2089
+ declare const _default_10: typeof _default_30 & {
2090
+ install: typeof install_9;
2106
2091
  };
2107
2092
  export { _default_10 as Sender }
2108
2093
  export { _default_10 as TrSender }
2109
2094
 
2110
- declare const _default_11: typeof _default_31 & {
2111
- install: typeof install_9;
2095
+ declare const _default_11: typeof _default_32 & {
2096
+ install: typeof install_10;
2112
2097
  };
2113
2098
  export { _default_11 as SuggestionPills }
2114
2099
  export { _default_11 as TrSuggestionPills }
2115
2100
 
2116
- declare const _default_12: typeof _default_32 & {
2117
- install: typeof install_10;
2101
+ declare const _default_12: typeof _default_33 & {
2102
+ install: typeof install_11;
2118
2103
  };
2119
2104
  export { _default_12 as SuggestionPopover }
2120
2105
  export { _default_12 as TrSuggestionPopover }
2121
2106
 
2122
- declare const _default_13: typeof _default_33 & {
2123
- install: typeof install_11;
2107
+ declare const _default_13: typeof _default_34 & {
2108
+ install: typeof install_12;
2124
2109
  };
2125
2110
  export { _default_13 as ThemeProvider }
2126
2111
  export { _default_13 as TrThemeProvider }
2127
2112
 
2128
- declare const _default_14: typeof _default_34 & {
2129
- install: typeof install_12;
2113
+ declare const _default_14: typeof _default_35 & {
2114
+ install: typeof install_13;
2130
2115
  };
2131
2116
  export { _default_14 as TrWelcome }
2132
2117
  export { _default_14 as Welcome }
2133
2118
 
2134
- declare const _default_15: typeof _default_35 & {
2135
- install: typeof install_13;
2119
+ declare const _default_15: typeof _default_36 & {
2120
+ install: typeof install_14;
2136
2121
  };
2137
2122
  export { _default_15 as McpServerPicker }
2138
2123
  export { _default_15 as TrMcpServerPicker }
2139
2124
 
2140
- declare const _default_16: typeof _default_36 & {
2141
- install: typeof install_14;
2125
+ declare const _default_16: typeof _default_37 & {
2126
+ install: typeof install_15;
2142
2127
  };
2143
2128
  export { _default_16 as McpAddForm }
2144
2129
  export { _default_16 as TrMcpAddForm }
@@ -2165,8 +2150,8 @@ file: Attachment;
2165
2150
  }) => any) | undefined;
2166
2151
  }>, {
2167
2152
  actions: ActionButton[];
2168
- fileMatchers: FileTypeMatcher_2[];
2169
- variant: DisplayVariant_2;
2153
+ fileMatchers: FileTypeMatcher[];
2154
+ variant: DisplayVariant;
2170
2155
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2171
2156
 
2172
2157
  declare const _default_18: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -2203,18 +2188,30 @@ actionsLimit: number;
2203
2188
  sourcesLinesLimit: number;
2204
2189
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2205
2190
 
2206
- declare const _default_26: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2191
+ 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<{
2192
+ props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
2193
+ readonly "onItem-click"?: ((item: T) => any) | undefined;
2194
+ readonly "onItem-title-change"?: ((newTitle: string, item: T) => any) | undefined;
2195
+ readonly "onItem-action"?: ((action: HistoryMenuItem, item: T) => any) | undefined;
2196
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onItem-click" | "onItem-title-change" | "onItem-action"> & HistoryProps<T> & Partial<{}>> & PublicProps;
2197
+ expose(exposed: ShallowUnwrapRef< {}>): void;
2198
+ attrs: any;
2199
+ slots: {};
2200
+ emit: ((evt: "item-click", item: T) => void) & ((evt: "item-title-change", newTitle: string, item: T) => void) & ((evt: "item-action", action: HistoryMenuItem, item: T) => void);
2201
+ }>) => VNode & {
2202
+ __ctx?: Awaited<typeof __VLS_setup>;
2203
+ };
2204
+
2205
+ declare const _default_27: DefineComponent<IconButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IconButtonProps> & Readonly<{}>, {
2207
2206
  size: string | number;
2208
2207
  svgSize: string | number;
2209
2208
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
2210
2209
 
2211
- declare const _default_27: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2210
+ declare const _default_28: DefineComponent<PromptProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PromptProps> & Readonly<{}>, {
2212
2211
  size: "small" | "medium" | "large";
2213
2212
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
2214
2213
 
2215
- declare const _default_28: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2216
-
2217
- declare const _default_29: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2214
+ declare const _default_29: __VLS_WithTemplateSlots_6<typeof __VLS_component_6, __VLS_TemplateResult_6["slots"]>;
2218
2215
 
2219
2216
  declare const _default_3: typeof _default_21 & {
2220
2217
  install: typeof install_2;
@@ -2222,17 +2219,19 @@ declare const _default_3: typeof _default_21 & {
2222
2219
  export { _default_3 as Container }
2223
2220
  export { _default_3 as TrContainer }
2224
2221
 
2225
- declare const _default_30: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2222
+ declare const _default_30: __VLS_WithTemplateSlots_7<typeof __VLS_component_7, __VLS_TemplateResult_7["slots"]>;
2223
+
2224
+ declare const _default_31: __VLS_WithTemplateSlots_8<typeof __VLS_component_8, __VLS_TemplateResult_8["slots"]>;
2226
2225
 
2227
- declare const _default_31: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2226
+ declare const _default_32: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, __VLS_TemplateResult_9["slots"]>;
2228
2227
 
2229
- declare const _default_32: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2228
+ declare const _default_33: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
2230
2229
 
2231
- declare const _default_33: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2230
+ declare const _default_34: __VLS_WithTemplateSlots_11<typeof __VLS_component_11, __VLS_TemplateResult_11["slots"]>;
2232
2231
 
2233
- declare const _default_34: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2232
+ declare const _default_35: __VLS_WithTemplateSlots_12<typeof __VLS_component_12, __VLS_TemplateResult_12["slots"]>;
2234
2233
 
2235
- declare const _default_35: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2234
+ declare const _default_36: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2236
2235
  "update:visible": (value: boolean) => any;
2237
2236
  } & {
2238
2237
  refresh: (tab: "installed" | "market") => any;
@@ -2259,13 +2258,13 @@ onRefresh?: ((tab: "installed" | "market") => any) | undefined;
2259
2258
  }>, {
2260
2259
  title: string;
2261
2260
  loading: boolean;
2262
- searchPlaceholder: string;
2263
2261
  installedPlugins: PluginInfo[];
2264
2262
  marketPlugins: PluginInfo[];
2263
+ searchPlaceholder: string;
2265
2264
  enableSearch: boolean;
2266
2265
  installedSearchFn: (query: string, item: PluginInfo) => boolean;
2267
2266
  marketSearchFn: (query: string, item: PluginInfo) => boolean;
2268
- marketCategoryOptions: MarketCategoryOption_2[];
2267
+ marketCategoryOptions: MarketCategoryOption[];
2269
2268
  marketCategoryPlaceholder: string;
2270
2269
  enableMarketCategoryFilter: boolean;
2271
2270
  defaultActiveTab: "installed" | "market";
@@ -2283,7 +2282,7 @@ allowPluginAdd: boolean;
2283
2282
  marketLoading: boolean;
2284
2283
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
2285
2284
 
2286
- declare const _default_36: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2285
+ declare const _default_37: DefineComponent<McpAddFormProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
2287
2286
  cancel: () => any;
2288
2287
  confirm: (type: AddType, data: string | McpAddFormData) => any;
2289
2288
  "update:addType": (value: AddType) => any;
@@ -2319,15 +2318,14 @@ declare const _default_7: typeof _default_25 & {
2319
2318
  export { _default_7 as Feedback }
2320
2319
  export { _default_7 as TrFeedback }
2321
2320
 
2322
- declare const _default_8: {
2323
- install: <T>(app: App<T>) => void;
2324
- name: string;
2321
+ declare const _default_8: typeof _default_26 & {
2322
+ install: typeof install_7;
2325
2323
  };
2326
2324
  export { _default_8 as History }
2327
2325
  export { _default_8 as TrHistory }
2328
2326
 
2329
- declare const _default_9: typeof _default_26 & {
2330
- install: typeof install_7;
2327
+ declare const _default_9: typeof _default_27 & {
2328
+ install: typeof install_8;
2331
2329
  };
2332
2330
  export { _default_9 as IconButton }
2333
2331
  export { _default_9 as TrIconButton }
@@ -2557,6 +2555,7 @@ export declare interface FileTypeMatcher {
2557
2555
  declare interface fileUploadConfig {
2558
2556
  accept?: string;
2559
2557
  multiple?: boolean;
2558
+ reset?: boolean;
2560
2559
  }
2561
2560
 
2562
2561
  export declare interface Handlers {
@@ -2568,34 +2567,33 @@ export declare interface Handlers {
2568
2567
 
2569
2568
  declare type HighlightFunction = (suggestionText: string, inputText: string) => SuggestionTextPart[];
2570
2569
 
2571
- export declare type HistoryData = HistoryItem[] | HistoryGroup[];
2570
+ export declare type HistoryData<T extends HistoryItem> = T[] | HistoryGroup<T>[];
2572
2571
 
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
- }
2579
-
2580
- export declare interface HistoryGroup<T = Record<string, unknown>> {
2572
+ export declare interface HistoryGroup<T extends HistoryItem> {
2581
2573
  group: string | symbol;
2582
- items: HistoryItem<T>[];
2574
+ items: T[];
2583
2575
  }
2584
2576
 
2585
- export declare interface HistoryItem<T = Record<string, unknown>> {
2586
- id: string;
2577
+ export declare interface HistoryItem {
2578
+ id?: string;
2587
2579
  title: string;
2588
- tag?: HistoryItemTagProps;
2589
- data?: T;
2580
+ [x: string]: any;
2590
2581
  }
2591
2582
 
2592
- export declare interface HistoryItemTagProps {
2583
+ export declare interface HistoryMenuItem {
2584
+ id: string;
2593
2585
  text: string;
2594
- type?: 'success' | 'warning' | 'error' | 'info' | 'default';
2595
- style?: CSSProperties;
2586
+ icon?: Component | VNode;
2596
2587
  }
2597
2588
 
2598
- export declare type HistoryProps = SingleTabHistoryProps | MultiTabHistoryProps;
2589
+ export declare type HistoryProps<T extends HistoryItem = HistoryItem> = {
2590
+ data: HistoryData<T>;
2591
+ selected?: string;
2592
+ showRenameControls?: boolean;
2593
+ renameControlOnClickOutside?: 'confirm' | 'cancel' | 'none';
2594
+ menuItems?: HistoryMenuItem[];
2595
+ menuListGap?: number;
2596
+ };
2599
2597
 
2600
2598
  export declare interface IconButtonProps {
2601
2599
  icon: VNode | Component;
@@ -2624,6 +2622,8 @@ declare const install_13: <T>(app: App<T>) => void;
2624
2622
 
2625
2623
  declare const install_14: <T>(app: App<T>) => void;
2626
2624
 
2625
+ declare const install_15: <T>(app: App<T>) => void;
2626
+
2627
2627
  declare const install_2: <T>(app: App<T>) => void;
2628
2628
 
2629
2629
  declare const install_3: <T>(app: App<T>) => void;
@@ -2724,14 +2724,6 @@ export declare interface McpServerPickerProps {
2724
2724
  marketLoading?: boolean;
2725
2725
  }
2726
2726
 
2727
- export declare type MultiTabHistoryProps = {
2728
- tabs: {
2729
- title: string;
2730
- id: string;
2731
- }[];
2732
- data: Record<string, HistoryData>;
2733
- } & BaseHistoryProps;
2734
-
2735
2727
  export declare type PluginAddState = 'idle' | 'loading' | 'added';
2736
2728
 
2737
2729
  export declare interface PluginCardEmits {
@@ -2797,7 +2789,7 @@ export declare interface PopupConfig {
2797
2789
  };
2798
2790
  }
2799
2791
 
2800
- declare const Prompt: typeof _default_27 & {
2792
+ declare const Prompt: typeof _default_28 & {
2801
2793
  install: typeof installPrompt;
2802
2794
  };
2803
2795
  export { Prompt }
@@ -2834,7 +2826,7 @@ export declare interface PromptProps {
2834
2826
  size?: 'small' | 'medium' | 'large';
2835
2827
  }
2836
2828
 
2837
- declare const Prompts: typeof _default_28 & {
2829
+ declare const Prompts: typeof _default_29 & {
2838
2830
  install: typeof installPrompts;
2839
2831
  };
2840
2832
  export { Prompts }
@@ -2922,16 +2914,12 @@ export declare interface SenderProps {
2922
2914
  showWordLimit?: boolean;
2923
2915
  suggestions?: ISuggestionItem[];
2924
2916
  suggestionPopupWidth?: string | number;
2917
+ activeSuggestionKeys?: string[];
2925
2918
  theme?: ThemeType;
2926
2919
  templateData?: UserItem[];
2927
2920
  stopText?: string;
2928
2921
  }
2929
2922
 
2930
- export declare type SingleTabHistoryProps = {
2931
- tabTitle: string;
2932
- data: HistoryData;
2933
- } & BaseHistoryProps;
2934
-
2935
2923
  export declare interface SpeechConfig {
2936
2924
  lang?: string;
2937
2925
  continuous?: boolean;
@@ -2977,7 +2965,7 @@ export declare interface SuggestionGroup<T = Record<string, unknown>> {
2977
2965
 
2978
2966
  export declare type SuggestionItem<T = Record<string, unknown>> = SuggestionBaseItem & T;
2979
2967
 
2980
- declare const SuggestionPillButton: typeof _default_30 & {
2968
+ declare const SuggestionPillButton: typeof _default_31 & {
2981
2969
  install: typeof installPillButton;
2982
2970
  };
2983
2971
  export { SuggestionPillButton }
@@ -3144,6 +3132,16 @@ export declare type ThemeStorage = Pick<Storage, 'getItem' | 'setItem'>;
3144
3132
  */
3145
3133
  export declare type ThemeType = 'light' | 'dark';
3146
3134
 
3135
+ declare interface TooltipContentProps {
3136
+ show?: boolean;
3137
+ content: string;
3138
+ trigger?: HTMLElement | null;
3139
+ disabled?: boolean;
3140
+ placement?: 'top' | 'bottom';
3141
+ delayOpen?: number;
3142
+ delayClose?: number;
3143
+ }
3144
+
3147
3145
  export declare type TooltipRender = () => VNode | string;
3148
3146
 
3149
3147
  export declare interface UrlAttachment extends BaseAttachment {
@@ -3172,6 +3170,10 @@ export declare const useTheme: () => {
3172
3170
  setColorMode: (mode: ColorMode) => boolean;
3173
3171
  };
3174
3172
 
3173
+ export declare function useTouchDevice(): {
3174
+ isTouchDevice: Ref<boolean, boolean>;
3175
+ };
3176
+
3175
3177
  /**
3176
3178
  * 拖拽区域指令
3177
3179
  * @param el 元素
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 "./history/index.js";
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 j, Prompts as A } from "./prompts/index.js";
12
- import H from "./sender/index.js";
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 ge } from "./theme-provider/index.js";
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 g(e) {
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__ = g(r.value);
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: D, maxFiles: h } = e.__vDropzoneOptions__;
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: D,
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__ = g(r.value));
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
- j as Prompt,
192
- A as Prompts,
193
- H as Sender,
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
- j as TrPrompt,
212
- A as TrPrompts,
213
- H as TrSender,
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
- ge as useTheme,
222
+ he as useTheme,
223
+ De as useTouchDevice,
222
224
  pe as vDropzone
223
225
  };