@opentiny/tiny-robot 0.4.2-alpha.1 → 0.4.2-alpha.2
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/{content-nav → anchor}/index.js +263 -263
- package/dist/feedback/index.js +2 -2
- package/dist/index.d.ts +89 -90
- package/dist/index.js +53 -53
- package/dist/index6.js +1 -2
- package/dist/sender/index.js +1446 -1328
- package/dist/style.css +1 -1
- package/dist/welcome/index.js +9 -9
- package/package.json +19 -13
package/dist/feedback/index.js
CHANGED
|
@@ -50,7 +50,7 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
|
|
|
50
50
|
])) : k("", !0)
|
|
51
51
|
]));
|
|
52
52
|
}
|
|
53
|
-
}), ee = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-
|
|
53
|
+
}), ee = /* @__PURE__ */ X(Z, [["__scopeId", "data-v-0a3b7acb"]]), te = { class: "tr-feedback" }, oe = { class: "tr-feedback__operations" }, se = { class: "tr-feedback__operations-left" }, ne = { key: 1 }, le = { class: "tr-feedback__operations-right" }, re = {
|
|
54
54
|
key: 0,
|
|
55
55
|
class: "tr-feedback__footer"
|
|
56
56
|
}, ae = { key: 0 }, ie = /* @__PURE__ */ V({
|
|
@@ -181,7 +181,7 @@ const W = { class: "tr-feedback__source-list" }, Y = ["href"], Z = /* @__PURE__
|
|
|
181
181
|
]);
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
}), C = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-
|
|
184
|
+
}), C = /* @__PURE__ */ X(ie, [["__scopeId", "data-v-80a60d78"]]);
|
|
185
185
|
C.name = "TrFeedback";
|
|
186
186
|
const ce = function(h) {
|
|
187
187
|
h.component(C.name, C);
|
package/dist/index.d.ts
CHANGED
|
@@ -309,7 +309,6 @@ autoInsert: boolean;
|
|
|
309
309
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
310
310
|
|
|
311
311
|
declare const __VLS_component_2: DefineComponent<BubbleListProps, {
|
|
312
|
-
rootEl: Ref<HTMLDivElement | null, HTMLDivElement | null>;
|
|
313
312
|
scrollToBottom: (behavior?: ScrollBehavior) => Promise<void>;
|
|
314
313
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
315
314
|
"state-change": (payload: {
|
|
@@ -349,22 +348,22 @@ onClose?: (() => any) | undefined;
|
|
|
349
348
|
title: string;
|
|
350
349
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
351
350
|
|
|
352
|
-
declare const __VLS_component_5: DefineComponent<
|
|
353
|
-
select: (item:
|
|
351
|
+
declare const __VLS_component_5: DefineComponent<AnchorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
352
|
+
select: (item: AnchorItem) => any;
|
|
354
353
|
"update:searchQuery": (value: string) => any;
|
|
355
354
|
"update:activeId": (value: string | undefined) => any;
|
|
356
355
|
"update:expanded": (value: boolean) => any;
|
|
357
|
-
}, string, PublicProps, Readonly<
|
|
358
|
-
onSelect?: ((item:
|
|
356
|
+
}, string, PublicProps, Readonly<AnchorProps> & Readonly<{
|
|
357
|
+
onSelect?: ((item: AnchorItem) => any) | undefined;
|
|
359
358
|
"onUpdate:searchQuery"?: ((value: string) => any) | undefined;
|
|
360
359
|
"onUpdate:activeId"?: ((value: string | undefined) => any) | undefined;
|
|
361
360
|
"onUpdate:expanded"?: ((value: boolean) => any) | undefined;
|
|
362
361
|
}>, {
|
|
363
|
-
placement:
|
|
362
|
+
placement: AnchorPlacement;
|
|
364
363
|
tooltipDelay: number;
|
|
365
364
|
emptyText: string;
|
|
366
365
|
activeOffset: number;
|
|
367
|
-
expandTrigger:
|
|
366
|
+
expandTrigger: AnchorExpandTrigger;
|
|
368
367
|
targetFeedbackDuration: number;
|
|
369
368
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
370
369
|
overlayShellRef: ({
|
|
@@ -372,7 +371,7 @@ $: ComponentInternalInstance;
|
|
|
372
371
|
$data: {};
|
|
373
372
|
$props: {
|
|
374
373
|
readonly expanded: boolean;
|
|
375
|
-
readonly placement:
|
|
374
|
+
readonly placement: AnchorPlacement;
|
|
376
375
|
readonly floatingOffset?: number | undefined;
|
|
377
376
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
378
377
|
$attrs: Attrs;
|
|
@@ -391,7 +390,7 @@ $parent: ComponentPublicInstance | null;
|
|
|
391
390
|
$host: Element | null;
|
|
392
391
|
$emit: (event: string, ...args: any[]) => void;
|
|
393
392
|
$el: HTMLDivElement;
|
|
394
|
-
$options: ComponentOptionsBase<Readonly<
|
|
393
|
+
$options: ComponentOptionsBase<Readonly<AnchorOverlayProps> & Readonly<{}>, {
|
|
395
394
|
hostEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
396
395
|
overlayEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
397
396
|
navEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -419,7 +418,7 @@ $nextTick: nextTick;
|
|
|
419
418
|
$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;
|
|
420
419
|
} & Readonly<{
|
|
421
420
|
floatingOffset: number;
|
|
422
|
-
}> & Omit<Readonly<
|
|
421
|
+
}> & Omit<Readonly<AnchorOverlayProps> & Readonly<{}>, "floatingOffset" | "hostEl" | "overlayEl" | "navEl"> & {
|
|
423
422
|
hostEl: HTMLElement | null;
|
|
424
423
|
overlayEl: HTMLElement | null;
|
|
425
424
|
navEl: HTMLElement | null;
|
|
@@ -1087,14 +1086,14 @@ declare function __VLS_template_4(): {
|
|
|
1087
1086
|
|
|
1088
1087
|
declare function __VLS_template_5(): {
|
|
1089
1088
|
attrs: Partial<{}>;
|
|
1090
|
-
slots: Readonly<
|
|
1089
|
+
slots: Readonly<AnchorSlots> & AnchorSlots;
|
|
1091
1090
|
refs: {
|
|
1092
1091
|
overlayShellRef: ({
|
|
1093
1092
|
$: ComponentInternalInstance;
|
|
1094
1093
|
$data: {};
|
|
1095
1094
|
$props: {
|
|
1096
1095
|
readonly expanded: boolean;
|
|
1097
|
-
readonly placement:
|
|
1096
|
+
readonly placement: AnchorPlacement;
|
|
1098
1097
|
readonly floatingOffset?: number | undefined;
|
|
1099
1098
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1100
1099
|
$attrs: Attrs;
|
|
@@ -1113,7 +1112,7 @@ declare function __VLS_template_5(): {
|
|
|
1113
1112
|
$host: Element | null;
|
|
1114
1113
|
$emit: (event: string, ...args: any[]) => void;
|
|
1115
1114
|
$el: HTMLDivElement;
|
|
1116
|
-
$options: ComponentOptionsBase<Readonly<
|
|
1115
|
+
$options: ComponentOptionsBase<Readonly<AnchorOverlayProps> & Readonly<{}>, {
|
|
1117
1116
|
hostEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1118
1117
|
overlayEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
1119
1118
|
navEl: Ref<HTMLElement | null, HTMLElement | null>;
|
|
@@ -1141,7 +1140,7 @@ declare function __VLS_template_5(): {
|
|
|
1141
1140
|
$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;
|
|
1142
1141
|
} & Readonly<{
|
|
1143
1142
|
floatingOffset: number;
|
|
1144
|
-
}> & Omit<Readonly<
|
|
1143
|
+
}> & Omit<Readonly<AnchorOverlayProps> & Readonly<{}>, "floatingOffset" | "hostEl" | "overlayEl" | "navEl"> & {
|
|
1145
1144
|
hostEl: HTMLElement | null;
|
|
1146
1145
|
overlayEl: HTMLElement | null;
|
|
1147
1146
|
navEl: HTMLElement | null;
|
|
@@ -1697,6 +1696,80 @@ export declare interface ActionButtonProps {
|
|
|
1697
1696
|
|
|
1698
1697
|
export declare type AddType = 'form' | 'code';
|
|
1699
1698
|
|
|
1699
|
+
export declare interface AnchorEmits {
|
|
1700
|
+
'update:activeId': [value: string | undefined];
|
|
1701
|
+
'update:expanded': [value: boolean];
|
|
1702
|
+
'update:searchQuery': [value: string];
|
|
1703
|
+
select: [item: AnchorItem];
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export declare type AnchorExpandTrigger = 'hover' | 'manual';
|
|
1707
|
+
|
|
1708
|
+
export declare interface AnchorHighlightSegment {
|
|
1709
|
+
text: string;
|
|
1710
|
+
highlighted: boolean;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
export declare interface AnchorItem {
|
|
1714
|
+
id: string;
|
|
1715
|
+
label: string;
|
|
1716
|
+
searchText?: string;
|
|
1717
|
+
tooltipText?: string;
|
|
1718
|
+
meta?: Record<string, unknown>;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
declare interface AnchorOverlayProps {
|
|
1722
|
+
expanded: boolean;
|
|
1723
|
+
placement: AnchorPlacement;
|
|
1724
|
+
floatingOffset?: number;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
export declare type AnchorPlacement = 'left' | 'right';
|
|
1728
|
+
|
|
1729
|
+
export declare interface AnchorProps {
|
|
1730
|
+
items: AnchorItem[];
|
|
1731
|
+
scrollContainer?: HTMLElement | null;
|
|
1732
|
+
activeId?: string;
|
|
1733
|
+
activeOffset?: number;
|
|
1734
|
+
expanded?: boolean;
|
|
1735
|
+
searchQuery?: string;
|
|
1736
|
+
placement?: AnchorPlacement;
|
|
1737
|
+
expandTrigger?: AnchorExpandTrigger;
|
|
1738
|
+
searchOptions?: AnchorSearchOptions;
|
|
1739
|
+
tooltipDelay?: number;
|
|
1740
|
+
targetFeedbackClass?: string;
|
|
1741
|
+
targetFeedbackDuration?: number;
|
|
1742
|
+
emptyText?: string;
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
export declare type AnchorSearchMatcher = (item: AnchorItem, searchQuery: string) => false | AnchorHighlightSegment[];
|
|
1746
|
+
|
|
1747
|
+
export declare interface AnchorSearchOptions {
|
|
1748
|
+
placeholder?: string;
|
|
1749
|
+
matcher?: AnchorSearchMatcher;
|
|
1750
|
+
clearOnCollapse?: boolean;
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
export declare interface AnchorSlots {
|
|
1754
|
+
item?: (slotProps: {
|
|
1755
|
+
item: AnchorItem;
|
|
1756
|
+
segments: AnchorHighlightSegment[];
|
|
1757
|
+
active: boolean;
|
|
1758
|
+
expanded: boolean;
|
|
1759
|
+
highlighted: boolean;
|
|
1760
|
+
}) => VNode | VNode[];
|
|
1761
|
+
marker?: (slotProps: {
|
|
1762
|
+
item: AnchorItem;
|
|
1763
|
+
active: boolean;
|
|
1764
|
+
}) => VNode | VNode[];
|
|
1765
|
+
search?: (slotProps: {
|
|
1766
|
+
searchQuery: string;
|
|
1767
|
+
setSearchQuery: (value: string) => void;
|
|
1768
|
+
searchOptions: AnchorSearchOptions;
|
|
1769
|
+
}) => VNode | VNode[];
|
|
1770
|
+
empty?: () => VNode | VNode[];
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1700
1773
|
export declare type Attachment = UrlAttachment | RawFileAttachment;
|
|
1701
1774
|
|
|
1702
1775
|
export declare interface AttachmentListEmits {
|
|
@@ -2102,80 +2175,6 @@ export declare interface ContainerSlots {
|
|
|
2102
2175
|
footer: () => unknown;
|
|
2103
2176
|
}
|
|
2104
2177
|
|
|
2105
|
-
export declare interface ContentNavEmits {
|
|
2106
|
-
'update:activeId': [value: string | undefined];
|
|
2107
|
-
'update:expanded': [value: boolean];
|
|
2108
|
-
'update:searchQuery': [value: string];
|
|
2109
|
-
select: [item: ContentNavItem];
|
|
2110
|
-
}
|
|
2111
|
-
|
|
2112
|
-
export declare type ContentNavExpandTrigger = 'hover' | 'manual';
|
|
2113
|
-
|
|
2114
|
-
export declare interface ContentNavHighlightSegment {
|
|
2115
|
-
text: string;
|
|
2116
|
-
highlighted: boolean;
|
|
2117
|
-
}
|
|
2118
|
-
|
|
2119
|
-
export declare interface ContentNavItem {
|
|
2120
|
-
id: string;
|
|
2121
|
-
label: string;
|
|
2122
|
-
searchText?: string;
|
|
2123
|
-
tooltipText?: string;
|
|
2124
|
-
meta?: Record<string, unknown>;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
declare interface ContentNavOverlayProps {
|
|
2128
|
-
expanded: boolean;
|
|
2129
|
-
placement: ContentNavPlacement;
|
|
2130
|
-
floatingOffset?: number;
|
|
2131
|
-
}
|
|
2132
|
-
|
|
2133
|
-
export declare type ContentNavPlacement = 'left' | 'right';
|
|
2134
|
-
|
|
2135
|
-
export declare interface ContentNavProps {
|
|
2136
|
-
items: ContentNavItem[];
|
|
2137
|
-
scrollContainer?: HTMLElement | null;
|
|
2138
|
-
activeId?: string;
|
|
2139
|
-
activeOffset?: number;
|
|
2140
|
-
expanded?: boolean;
|
|
2141
|
-
searchQuery?: string;
|
|
2142
|
-
placement?: ContentNavPlacement;
|
|
2143
|
-
expandTrigger?: ContentNavExpandTrigger;
|
|
2144
|
-
searchOptions?: ContentNavSearchOptions;
|
|
2145
|
-
tooltipDelay?: number;
|
|
2146
|
-
targetFeedbackClass?: string;
|
|
2147
|
-
targetFeedbackDuration?: number;
|
|
2148
|
-
emptyText?: string;
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
export declare type ContentNavSearchMatcher = (item: ContentNavItem, searchQuery: string) => false | ContentNavHighlightSegment[];
|
|
2152
|
-
|
|
2153
|
-
export declare interface ContentNavSearchOptions {
|
|
2154
|
-
placeholder?: string;
|
|
2155
|
-
matcher?: ContentNavSearchMatcher;
|
|
2156
|
-
clearOnCollapse?: boolean;
|
|
2157
|
-
}
|
|
2158
|
-
|
|
2159
|
-
export declare interface ContentNavSlots {
|
|
2160
|
-
item?: (slotProps: {
|
|
2161
|
-
item: ContentNavItem;
|
|
2162
|
-
segments: ContentNavHighlightSegment[];
|
|
2163
|
-
active: boolean;
|
|
2164
|
-
expanded: boolean;
|
|
2165
|
-
highlighted: boolean;
|
|
2166
|
-
}) => VNode | VNode[];
|
|
2167
|
-
marker?: (slotProps: {
|
|
2168
|
-
item: ContentNavItem;
|
|
2169
|
-
active: boolean;
|
|
2170
|
-
}) => VNode | VNode[];
|
|
2171
|
-
search?: (slotProps: {
|
|
2172
|
-
searchQuery: string;
|
|
2173
|
-
setSearchQuery: (value: string) => void;
|
|
2174
|
-
searchOptions: ContentNavSearchOptions;
|
|
2175
|
-
}) => VNode | VNode[];
|
|
2176
|
-
empty?: () => VNode | VNode[];
|
|
2177
|
-
}
|
|
2178
|
-
|
|
2179
2178
|
declare interface ControlState {
|
|
2180
2179
|
tooltips?: string | TooltipRender;
|
|
2181
2180
|
disabled?: boolean;
|
|
@@ -2372,8 +2371,8 @@ declare const _default_39: __VLS_WithTemplateSlots_9<typeof __VLS_component_9, _
|
|
|
2372
2371
|
declare const _default_4: typeof _default_30 & {
|
|
2373
2372
|
install: typeof install_3;
|
|
2374
2373
|
};
|
|
2375
|
-
export { _default_4 as
|
|
2376
|
-
export { _default_4 as
|
|
2374
|
+
export { _default_4 as Anchor }
|
|
2375
|
+
export { _default_4 as TrAnchor }
|
|
2377
2376
|
|
|
2378
2377
|
declare const _default_40: __VLS_WithTemplateSlots_10<typeof __VLS_component_10, __VLS_TemplateResult_10["slots"]>;
|
|
2379
2378
|
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import F from "./attachments/index.js";
|
|
2
|
-
import { B as S, a as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
2
|
+
import { B as S, a as b, b as x } from "./index6.js";
|
|
3
|
+
import { c as ze, d as Ce, u as Pe, e as Ae, f as Le, g as ye, h as Oe, i as Me, j as je } from "./index6.js";
|
|
4
|
+
import E from "./container/index.js";
|
|
5
|
+
import z from "./anchor/index.js";
|
|
6
|
+
import C from "./conversations/index.js";
|
|
7
7
|
import P from "./drag-overlay/index.js";
|
|
8
8
|
import A from "./dropdown-menu/index.js";
|
|
9
9
|
import L from "./feedback/index.js";
|
|
@@ -15,26 +15,26 @@ import H from "./sender/index.js";
|
|
|
15
15
|
import R from "./sender-compat/index.js";
|
|
16
16
|
import W, { SuggestionPillButton as $ } from "./suggestion-pills/index.js";
|
|
17
17
|
import w from "./suggestion-popover/index.js";
|
|
18
|
-
import
|
|
18
|
+
import k from "./theme-provider/index.js";
|
|
19
19
|
import { useTheme as $e } from "./theme-provider/index.js";
|
|
20
|
-
import
|
|
20
|
+
import N from "./welcome/index.js";
|
|
21
21
|
import V from "./mcp-server-picker/index.js";
|
|
22
22
|
import I from "./mcp-add-form/index.js";
|
|
23
23
|
import { A as U, S as K, _ as X, W as Y, D as q } from "./index2.js";
|
|
24
|
-
import { a as
|
|
24
|
+
import { a as ke, u as Ne } from "./index2.js";
|
|
25
25
|
import { _ as G, V as J } from "./index3.js";
|
|
26
26
|
var u = /* @__PURE__ */ ((e) => (e.FileTypeNotAllowed = "file-type-not-allowed", e.FileSizeExceeded = "file-size-exceeded", e.FileCountExceeded = "file-count-exceeded", e))(u || {});
|
|
27
27
|
function Q(e, r) {
|
|
28
28
|
if (!r) return !0;
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
if (
|
|
32
|
-
return e.name.toLowerCase().endsWith(
|
|
33
|
-
if (
|
|
34
|
-
const a =
|
|
29
|
+
const t = r.split(",").map((o) => o.trim());
|
|
30
|
+
return t.includes("*") ? !0 : t.some((o) => {
|
|
31
|
+
if (o.startsWith("."))
|
|
32
|
+
return e.name.toLowerCase().endsWith(o.toLowerCase());
|
|
33
|
+
if (o.includes("/*")) {
|
|
34
|
+
const a = o.split("/")[0];
|
|
35
35
|
return e.type.startsWith(a + "/");
|
|
36
36
|
} else
|
|
37
|
-
return e.type ===
|
|
37
|
+
return e.type === o;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
function v(e, r) {
|
|
@@ -44,7 +44,7 @@ function Z(e, r) {
|
|
|
44
44
|
return e.length <= r;
|
|
45
45
|
}
|
|
46
46
|
function ee(e, r) {
|
|
47
|
-
const { accept:
|
|
47
|
+
const { accept: t, multiple: o, maxSize: a, maxFiles: l } = r, n = [], s = [];
|
|
48
48
|
if (!Z(e, l))
|
|
49
49
|
return {
|
|
50
50
|
acceptedFiles: n,
|
|
@@ -55,8 +55,8 @@ function ee(e, r) {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
if (e.forEach((i) => {
|
|
58
|
-
Q(i,
|
|
59
|
-
}), !
|
|
58
|
+
Q(i, t) && v(i, a) ? n.push(i) : s.push(i);
|
|
59
|
+
}), !o && n.length > 1)
|
|
60
60
|
return {
|
|
61
61
|
acceptedFiles: [],
|
|
62
62
|
rejectedFiles: n,
|
|
@@ -66,7 +66,7 @@ function ee(e, r) {
|
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
if (s.length > 0) {
|
|
69
|
-
const i = s.some((
|
|
69
|
+
const i = s.some((c) => !v(c, a)), d = i ? u.FileSizeExceeded : u.FileTypeNotAllowed, m = i ? `文件大小不能超过 ${a / 1024 / 1024}MB` : `文件类型不匹配 (accept: ${t})`;
|
|
70
70
|
return {
|
|
71
71
|
acceptedFiles: n,
|
|
72
72
|
rejectedFiles: s,
|
|
@@ -93,42 +93,42 @@ const Se = {
|
|
|
93
93
|
* @param binding 绑定
|
|
94
94
|
*/
|
|
95
95
|
mounted(e, r) {
|
|
96
|
-
let
|
|
97
|
-
const { disabled:
|
|
96
|
+
let t = 0;
|
|
97
|
+
const { disabled: o, onDraggingChange: a } = r.value;
|
|
98
98
|
e.__vDropzoneOptions__ = T(r.value);
|
|
99
99
|
const l = {
|
|
100
100
|
/**
|
|
101
101
|
* 拖拽进入
|
|
102
102
|
*/
|
|
103
103
|
handleDragEnter: () => {
|
|
104
|
-
|
|
104
|
+
o || (t++, t === 1 && a(!0, e));
|
|
105
105
|
},
|
|
106
106
|
/**
|
|
107
107
|
* 拖拽覆盖
|
|
108
108
|
* @param e 事件
|
|
109
109
|
*/
|
|
110
110
|
handleDragOver: (n) => {
|
|
111
|
-
|
|
111
|
+
o || n.preventDefault();
|
|
112
112
|
},
|
|
113
113
|
/**
|
|
114
114
|
* 拖拽离开
|
|
115
115
|
*/
|
|
116
116
|
handleDragLeave: () => {
|
|
117
|
-
|
|
117
|
+
o || (t--, t === 0 && a(!1, null));
|
|
118
118
|
},
|
|
119
119
|
/**
|
|
120
120
|
* 拖拽放下
|
|
121
121
|
* @param e 事件
|
|
122
122
|
*/
|
|
123
123
|
handleDrop: (n) => {
|
|
124
|
-
var
|
|
125
|
-
if (
|
|
126
|
-
n.preventDefault(),
|
|
127
|
-
const s = (
|
|
124
|
+
var p;
|
|
125
|
+
if (o) return;
|
|
126
|
+
n.preventDefault(), t = 0, a(!1, null);
|
|
127
|
+
const s = (p = n.dataTransfer) == null ? void 0 : p.files, { onDrop: i, onError: d, accept: m, multiple: c, maxSize: D, maxFiles: g } = e.__vDropzoneOptions__;
|
|
128
128
|
if (s && s.length > 0) {
|
|
129
129
|
const h = Array.from(s), { acceptedFiles: f, rejectedFiles: B, rejectionReason: _ } = ee(h, {
|
|
130
130
|
accept: m,
|
|
131
|
-
multiple:
|
|
131
|
+
multiple: c,
|
|
132
132
|
maxSize: D,
|
|
133
133
|
maxFiles: g
|
|
134
134
|
});
|
|
@@ -151,11 +151,11 @@ const Se = {
|
|
|
151
151
|
}, re = [
|
|
152
152
|
F,
|
|
153
153
|
S,
|
|
154
|
-
C,
|
|
155
154
|
b,
|
|
156
155
|
x,
|
|
157
156
|
E,
|
|
158
157
|
z,
|
|
158
|
+
C,
|
|
159
159
|
P,
|
|
160
160
|
A,
|
|
161
161
|
L,
|
|
@@ -168,8 +168,8 @@ const Se = {
|
|
|
168
168
|
W,
|
|
169
169
|
$,
|
|
170
170
|
w,
|
|
171
|
-
N,
|
|
172
171
|
k,
|
|
172
|
+
N,
|
|
173
173
|
V,
|
|
174
174
|
I,
|
|
175
175
|
U,
|
|
@@ -179,26 +179,26 @@ const Se = {
|
|
|
179
179
|
J,
|
|
180
180
|
Y,
|
|
181
181
|
q
|
|
182
|
-
],
|
|
182
|
+
], be = {
|
|
183
183
|
install(e) {
|
|
184
184
|
re.forEach((r) => {
|
|
185
|
-
const
|
|
186
|
-
e.component(`Tr${
|
|
185
|
+
const t = r.name.replace(/^Tiny/, "").replace(/^Tr/, "");
|
|
186
|
+
e.component(`Tr${t}`, r);
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
};
|
|
190
190
|
export {
|
|
191
191
|
U as ActionButton,
|
|
192
|
+
z as Anchor,
|
|
192
193
|
F as Attachments,
|
|
193
194
|
S as Bubble,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
195
|
+
b as BubbleList,
|
|
196
|
+
x as BubbleProvider,
|
|
197
|
+
ze as BubbleRendererMatchPriority,
|
|
198
|
+
Ce as BubbleRenderers,
|
|
198
199
|
X as ClearButton,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
z as Conversations,
|
|
200
|
+
E as Container,
|
|
201
|
+
C as Conversations,
|
|
202
202
|
q as DefaultActionButtons,
|
|
203
203
|
P as DragOverlay,
|
|
204
204
|
A as DropdownMenu,
|
|
@@ -209,23 +209,23 @@ export {
|
|
|
209
209
|
V as McpServerPicker,
|
|
210
210
|
M as Prompt,
|
|
211
211
|
j as Prompts,
|
|
212
|
-
|
|
212
|
+
ke as SENDER_CONTEXT_KEY,
|
|
213
213
|
H as Sender,
|
|
214
214
|
R as SenderCompat,
|
|
215
215
|
K as SubmitButton,
|
|
216
216
|
$ as SuggestionPillButton,
|
|
217
217
|
W as SuggestionPills,
|
|
218
218
|
w as SuggestionPopover,
|
|
219
|
-
|
|
219
|
+
k as ThemeProvider,
|
|
220
220
|
U as TrActionButton,
|
|
221
|
+
z as TrAnchor,
|
|
221
222
|
F as TrAttachments,
|
|
222
223
|
S as TrBubble,
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
b as TrBubbleList,
|
|
225
|
+
x as TrBubbleProvider,
|
|
225
226
|
X as TrClearButton,
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
z as TrConversations,
|
|
227
|
+
E as TrContainer,
|
|
228
|
+
C as TrConversations,
|
|
229
229
|
q as TrDefaultActionButtons,
|
|
230
230
|
P as TrDragOverlay,
|
|
231
231
|
A as TrDropdownMenu,
|
|
@@ -242,23 +242,23 @@ export {
|
|
|
242
242
|
$ as TrSuggestionPillButton,
|
|
243
243
|
W as TrSuggestionPills,
|
|
244
244
|
w as TrSuggestionPopover,
|
|
245
|
-
|
|
245
|
+
k as TrThemeProvider,
|
|
246
246
|
G as TrUploadButton,
|
|
247
247
|
J as TrVoiceButton,
|
|
248
|
-
|
|
248
|
+
N as TrWelcome,
|
|
249
249
|
Y as TrWordCounter,
|
|
250
250
|
G as UploadButton,
|
|
251
251
|
J as VoiceButton,
|
|
252
|
-
|
|
252
|
+
N as Welcome,
|
|
253
253
|
Y as WordCounter,
|
|
254
|
-
|
|
254
|
+
be as default,
|
|
255
255
|
Pe as useAutoScroll,
|
|
256
256
|
Ae as useBubbleBoxRenderer,
|
|
257
257
|
Le as useBubbleContentRenderer,
|
|
258
258
|
ye as useBubbleStateChangeFn,
|
|
259
259
|
Oe as useMessageContent,
|
|
260
260
|
Me as useOmitMessageFields,
|
|
261
|
-
|
|
261
|
+
Ne as useSenderContext,
|
|
262
262
|
$e as useTheme,
|
|
263
263
|
je as useToolCall,
|
|
264
264
|
Re as useTouchDevice,
|
package/dist/index6.js
CHANGED
|
@@ -842,7 +842,6 @@ const jt = /* @__PURE__ */ S({
|
|
|
842
842
|
return l;
|
|
843
843
|
}, m = y(() => o.messages.length === 0 ? [] : typeof o.groupStrategy == "function" ? o.groupStrategy(o.messages, o.dividerRole) : o.groupStrategy === "consecutive" ? u(o.messages) : b(o.messages, o.dividerRole));
|
|
844
844
|
return e({
|
|
845
|
-
rootEl: s,
|
|
846
845
|
scrollToBottom: a
|
|
847
846
|
}), (p, f) => (g(), C("div", {
|
|
848
847
|
class: "tr-bubble-list",
|
|
@@ -885,7 +884,7 @@ const jt = /* @__PURE__ */ S({
|
|
|
885
884
|
}), 128))
|
|
886
885
|
], 512));
|
|
887
886
|
}
|
|
888
|
-
}), V = /* @__PURE__ */ N(zt, [["__scopeId", "data-v-
|
|
887
|
+
}), V = /* @__PURE__ */ N(zt, [["__scopeId", "data-v-e217fbb7"]]), X = /* @__PURE__ */ S({
|
|
889
888
|
__name: "BubbleProvider",
|
|
890
889
|
props: {
|
|
891
890
|
boxRendererMatches: {},
|