@opentiny/tiny-robot 0.4.1 → 0.4.2-alpha.1
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/content-nav/index.js +856 -0
- package/dist/index.d.ts +433 -184
- package/dist/index.js +103 -99
- package/dist/index4.js +85 -79
- package/dist/index5.js +81 -81
- package/dist/index6.js +453 -413
- package/dist/sender/index.js +782 -783
- package/dist/style.css +1 -1
- package/dist/suggestion-popover/index.js +1 -1
- package/package.json +6 -4
package/dist/index.js
CHANGED
|
@@ -1,29 +1,30 @@
|
|
|
1
1
|
import F from "./attachments/index.js";
|
|
2
|
-
import { B as S, a as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
2
|
+
import { B as S, a as C, b } from "./index6.js";
|
|
3
|
+
import { c as Ee, d as ze, 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 x from "./container/index.js";
|
|
5
|
+
import E from "./content-nav/index.js";
|
|
5
6
|
import z from "./conversations/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { H as
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import { Prompt as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
7
|
+
import P from "./drag-overlay/index.js";
|
|
8
|
+
import A from "./dropdown-menu/index.js";
|
|
9
|
+
import L from "./feedback/index.js";
|
|
10
|
+
import { H as y } from "./index7.js";
|
|
11
|
+
import { u as Re } from "./index7.js";
|
|
12
|
+
import O from "./icon-button/index.js";
|
|
13
|
+
import { Prompt as M, Prompts as j } from "./prompts/index.js";
|
|
14
|
+
import H from "./sender/index.js";
|
|
15
|
+
import R from "./sender-compat/index.js";
|
|
16
|
+
import W, { SuggestionPillButton as $ } from "./suggestion-pills/index.js";
|
|
16
17
|
import w from "./suggestion-popover/index.js";
|
|
17
|
-
import
|
|
18
|
-
import { useTheme as
|
|
18
|
+
import N from "./theme-provider/index.js";
|
|
19
|
+
import { useTheme as $e } from "./theme-provider/index.js";
|
|
19
20
|
import k from "./welcome/index.js";
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { A as
|
|
23
|
-
import { a as
|
|
24
|
-
import { _ as
|
|
21
|
+
import V from "./mcp-server-picker/index.js";
|
|
22
|
+
import I from "./mcp-add-form/index.js";
|
|
23
|
+
import { A as U, S as K, _ as X, W as Y, D as q } from "./index2.js";
|
|
24
|
+
import { a as Ne, u as ke } from "./index2.js";
|
|
25
|
+
import { _ as G, V as J } from "./index3.js";
|
|
25
26
|
var u = /* @__PURE__ */ ((e) => (e.FileTypeNotAllowed = "file-type-not-allowed", e.FileSizeExceeded = "file-size-exceeded", e.FileCountExceeded = "file-count-exceeded", e))(u || {});
|
|
26
|
-
function
|
|
27
|
+
function Q(e, r) {
|
|
27
28
|
if (!r) return !0;
|
|
28
29
|
const o = r.split(",").map((t) => t.trim());
|
|
29
30
|
return o.includes("*") ? !0 : o.some((t) => {
|
|
@@ -39,12 +40,12 @@ function J(e, r) {
|
|
|
39
40
|
function v(e, r) {
|
|
40
41
|
return e.size <= r;
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
+
function Z(e, r) {
|
|
43
44
|
return e.length <= r;
|
|
44
45
|
}
|
|
45
|
-
function
|
|
46
|
+
function ee(e, r) {
|
|
46
47
|
const { accept: o, multiple: t, maxSize: a, maxFiles: l } = r, n = [], s = [];
|
|
47
|
-
if (!
|
|
48
|
+
if (!Z(e, l))
|
|
48
49
|
return {
|
|
49
50
|
acceptedFiles: n,
|
|
50
51
|
rejectedFiles: Array.from(e),
|
|
@@ -54,7 +55,7 @@ function Z(e, r) {
|
|
|
54
55
|
}
|
|
55
56
|
};
|
|
56
57
|
if (e.forEach((i) => {
|
|
57
|
-
|
|
58
|
+
Q(i, o) && v(i, a) ? n.push(i) : s.push(i);
|
|
58
59
|
}), !t && n.length > 1)
|
|
59
60
|
return {
|
|
60
61
|
acceptedFiles: [],
|
|
@@ -85,7 +86,7 @@ function T(e) {
|
|
|
85
86
|
disabled: e.disabled || !1
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
|
-
const
|
|
89
|
+
const Se = {
|
|
89
90
|
/**
|
|
90
91
|
* 挂载指令
|
|
91
92
|
* @param el 元素
|
|
@@ -125,7 +126,7 @@ const Be = {
|
|
|
125
126
|
n.preventDefault(), o = 0, a(!1, null);
|
|
126
127
|
const s = (c = n.dataTransfer) == null ? void 0 : c.files, { onDrop: i, onError: d, accept: m, multiple: p, maxSize: D, maxFiles: g } = e.__vDropzoneOptions__;
|
|
127
128
|
if (s && s.length > 0) {
|
|
128
|
-
const h = Array.from(s), { acceptedFiles: f, rejectedFiles: B, rejectionReason: _ } =
|
|
129
|
+
const h = Array.from(s), { acceptedFiles: f, rejectedFiles: B, rejectionReason: _ } = ee(h, {
|
|
129
130
|
accept: m,
|
|
130
131
|
multiple: p,
|
|
131
132
|
maxSize: D,
|
|
@@ -147,14 +148,14 @@ const Be = {
|
|
|
147
148
|
unmounted(e) {
|
|
148
149
|
e.__vDropzoneHandlers__ && (e.removeEventListener("dragenter", e.__vDropzoneHandlers__.handleDragEnter), e.removeEventListener("dragover", e.__vDropzoneHandlers__.handleDragOver), e.removeEventListener("dragleave", e.__vDropzoneHandlers__.handleDragLeave), e.removeEventListener("drop", e.__vDropzoneHandlers__.handleDrop), delete e.__vDropzoneHandlers__), delete e.__vDropzoneOptions__;
|
|
149
150
|
}
|
|
150
|
-
},
|
|
151
|
+
}, re = [
|
|
151
152
|
F,
|
|
152
153
|
S,
|
|
154
|
+
C,
|
|
153
155
|
b,
|
|
154
156
|
x,
|
|
155
157
|
E,
|
|
156
158
|
z,
|
|
157
|
-
C,
|
|
158
159
|
P,
|
|
159
160
|
A,
|
|
160
161
|
L,
|
|
@@ -165,98 +166,101 @@ const Be = {
|
|
|
165
166
|
H,
|
|
166
167
|
R,
|
|
167
168
|
W,
|
|
168
|
-
w,
|
|
169
169
|
$,
|
|
170
|
-
|
|
170
|
+
w,
|
|
171
171
|
N,
|
|
172
|
+
k,
|
|
172
173
|
V,
|
|
173
174
|
I,
|
|
174
175
|
U,
|
|
175
176
|
K,
|
|
176
|
-
q,
|
|
177
|
-
G,
|
|
178
177
|
X,
|
|
179
|
-
|
|
180
|
-
|
|
178
|
+
G,
|
|
179
|
+
J,
|
|
180
|
+
Y,
|
|
181
|
+
q
|
|
182
|
+
], Ce = {
|
|
181
183
|
install(e) {
|
|
182
|
-
|
|
184
|
+
re.forEach((r) => {
|
|
183
185
|
const o = r.name.replace(/^Tiny/, "").replace(/^Tr/, "");
|
|
184
186
|
e.component(`Tr${o}`, r);
|
|
185
187
|
});
|
|
186
188
|
}
|
|
187
189
|
};
|
|
188
190
|
export {
|
|
189
|
-
|
|
191
|
+
U as ActionButton,
|
|
190
192
|
F as Attachments,
|
|
191
193
|
S as Bubble,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
194
|
+
C as BubbleList,
|
|
195
|
+
b as BubbleProvider,
|
|
196
|
+
Ee as BubbleRendererMatchPriority,
|
|
197
|
+
ze as BubbleRenderers,
|
|
198
|
+
X as ClearButton,
|
|
199
|
+
x as Container,
|
|
200
|
+
E as ContentNav,
|
|
198
201
|
z as Conversations,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
202
|
+
q as DefaultActionButtons,
|
|
203
|
+
P as DragOverlay,
|
|
204
|
+
A as DropdownMenu,
|
|
205
|
+
L as Feedback,
|
|
206
|
+
y as History,
|
|
207
|
+
O as IconButton,
|
|
208
|
+
I as McpAddForm,
|
|
209
|
+
V as McpServerPicker,
|
|
210
|
+
M as Prompt,
|
|
211
|
+
j as Prompts,
|
|
212
|
+
Ne as SENDER_CONTEXT_KEY,
|
|
213
|
+
H as Sender,
|
|
214
|
+
R as SenderCompat,
|
|
215
|
+
K as SubmitButton,
|
|
216
|
+
$ as SuggestionPillButton,
|
|
217
|
+
W as SuggestionPills,
|
|
215
218
|
w as SuggestionPopover,
|
|
216
|
-
|
|
217
|
-
|
|
219
|
+
N as ThemeProvider,
|
|
220
|
+
U as TrActionButton,
|
|
218
221
|
F as TrAttachments,
|
|
219
222
|
S as TrBubble,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
223
|
+
C as TrBubbleList,
|
|
224
|
+
b as TrBubbleProvider,
|
|
225
|
+
X as TrClearButton,
|
|
226
|
+
x as TrContainer,
|
|
227
|
+
E as TrContentNav,
|
|
224
228
|
z as TrConversations,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
229
|
+
q as TrDefaultActionButtons,
|
|
230
|
+
P as TrDragOverlay,
|
|
231
|
+
A as TrDropdownMenu,
|
|
232
|
+
L as TrFeedback,
|
|
233
|
+
y as TrHistory,
|
|
234
|
+
O as TrIconButton,
|
|
235
|
+
I as TrMcpAddForm,
|
|
236
|
+
V as TrMcpServerPicker,
|
|
237
|
+
M as TrPrompt,
|
|
238
|
+
j as TrPrompts,
|
|
239
|
+
H as TrSender,
|
|
240
|
+
R as TrSenderCompat,
|
|
241
|
+
K as TrSubmitButton,
|
|
242
|
+
$ as TrSuggestionPillButton,
|
|
243
|
+
W as TrSuggestionPills,
|
|
240
244
|
w as TrSuggestionPopover,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
245
|
+
N as TrThemeProvider,
|
|
246
|
+
G as TrUploadButton,
|
|
247
|
+
J as TrVoiceButton,
|
|
244
248
|
k as TrWelcome,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
249
|
+
Y as TrWordCounter,
|
|
250
|
+
G as UploadButton,
|
|
251
|
+
J as VoiceButton,
|
|
248
252
|
k as Welcome,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
253
|
+
Y as WordCounter,
|
|
254
|
+
Ce as default,
|
|
255
|
+
Pe as useAutoScroll,
|
|
256
|
+
Ae as useBubbleBoxRenderer,
|
|
257
|
+
Le as useBubbleContentRenderer,
|
|
258
|
+
ye as useBubbleStateChangeFn,
|
|
259
|
+
Oe as useMessageContent,
|
|
260
|
+
Me as useOmitMessageFields,
|
|
261
|
+
ke as useSenderContext,
|
|
262
|
+
$e as useTheme,
|
|
263
|
+
je as useToolCall,
|
|
264
|
+
Re as useTouchDevice,
|
|
265
|
+
Se as vDropzone
|
|
262
266
|
};
|