@opentiny/tiny-robot 0.5.2-alpha.17 → 0.5.2-alpha.18
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/bubble/index.js +10 -9
- package/dist/index.d.ts +33 -18
- package/dist/index.js +23 -22
- package/dist/index6.js +640 -593
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/bubble/index.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { B as
|
|
1
|
+
import { B as b, a, b as r, c as u, d as l, e as n, f as t, g as B, h as o, i as d, j as i, k as R, l as g } from "../index6.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
b as Bubble,
|
|
4
|
+
a as BubbleList,
|
|
5
|
+
r as BubbleProvider,
|
|
6
|
+
u as BubbleRendererMatchPriority,
|
|
7
7
|
l as BubbleRenderers,
|
|
8
8
|
n as useBubbleBoxRenderer,
|
|
9
9
|
t as useBubbleContentRenderer,
|
|
10
|
-
B as
|
|
11
|
-
o as
|
|
12
|
-
d as
|
|
13
|
-
i as
|
|
10
|
+
B as useBubbleErrorRenderer,
|
|
11
|
+
o as useBubbleEventFn,
|
|
12
|
+
d as useBubbleStateChangeFn,
|
|
13
|
+
i as useMessageContent,
|
|
14
|
+
R as useOmitMessageFields,
|
|
14
15
|
g as useToolCall
|
|
15
16
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2287,6 +2287,17 @@ export declare type BubbleContentRendererProps<T extends ChatMessageContent = Ch
|
|
|
2287
2287
|
contentIndex: number;
|
|
2288
2288
|
};
|
|
2289
2289
|
|
|
2290
|
+
export declare interface BubbleErrorInfo {
|
|
2291
|
+
message: string;
|
|
2292
|
+
name?: string;
|
|
2293
|
+
code?: string | number;
|
|
2294
|
+
details?: unknown;
|
|
2295
|
+
}
|
|
2296
|
+
|
|
2297
|
+
export declare interface BubbleErrorRendererProps {
|
|
2298
|
+
message: BubbleMessage;
|
|
2299
|
+
}
|
|
2300
|
+
|
|
2290
2301
|
export declare type BubbleEvent = {
|
|
2291
2302
|
name: 'state:update';
|
|
2292
2303
|
payload: {
|
|
@@ -2413,6 +2424,7 @@ export declare interface BubbleProviderProps {
|
|
|
2413
2424
|
contentAttributes?: BubbleContentAttributesConfig;
|
|
2414
2425
|
fallbackBoxRenderer?: Component<BubbleBoxRendererProps>;
|
|
2415
2426
|
fallbackContentRenderer?: Component<BubbleContentRendererProps>;
|
|
2427
|
+
errorRenderer?: Component<BubbleErrorRendererProps>;
|
|
2416
2428
|
store?: Record<string, unknown>;
|
|
2417
2429
|
}
|
|
2418
2430
|
|
|
@@ -2451,6 +2463,7 @@ export declare const BubbleRenderers: {
|
|
|
2451
2463
|
default?(_: {}): any;
|
|
2452
2464
|
};
|
|
2453
2465
|
});
|
|
2466
|
+
Error: DefineComponent<BubbleErrorRendererProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<BubbleErrorRendererProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
2454
2467
|
Image: DefineComponent< {
|
|
2455
2468
|
message: BubbleMessage<ChatMessageContentItem[], Record<string, unknown>>;
|
|
2456
2469
|
contentIndex: number;
|
|
@@ -5777,6 +5790,8 @@ export declare function useBubbleContentRenderer(message: MaybeRefOrGetter<Bubbl
|
|
|
5777
5790
|
attributes?: BubbleAttributes;
|
|
5778
5791
|
}>;
|
|
5779
5792
|
|
|
5793
|
+
export declare function useBubbleErrorRenderer(): ComputedRef<Component<BubbleErrorRendererProps>>;
|
|
5794
|
+
|
|
5780
5795
|
export declare function useBubbleEventFn(): (event: BubbleEvent) => void;
|
|
5781
5796
|
|
|
5782
5797
|
export declare function useBubbleStateChangeFn(): (key: string, value: unknown) => void;
|
|
@@ -6083,23 +6098,15 @@ export { }
|
|
|
6083
6098
|
*/
|
|
6084
6099
|
declare module '@tiptap/core' {
|
|
6085
6100
|
interface Commands<ReturnType> {
|
|
6086
|
-
|
|
6087
|
-
/**
|
|
6088
|
-
* 设置模板数据(批量)
|
|
6089
|
-
*/
|
|
6090
|
-
setTemplateData: (items: TemplateItem[]) => ReturnType;
|
|
6091
|
-
/**
|
|
6092
|
-
* 插入模板块
|
|
6093
|
-
*/
|
|
6094
|
-
insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
|
|
6101
|
+
mention: {
|
|
6095
6102
|
/**
|
|
6096
|
-
*
|
|
6103
|
+
* 插入 mention 节点
|
|
6097
6104
|
*/
|
|
6098
|
-
|
|
6105
|
+
insertMention: (attrs: Partial<MentionAttrs>) => ReturnType;
|
|
6099
6106
|
/**
|
|
6100
|
-
*
|
|
6107
|
+
* 删除 mention 节点
|
|
6101
6108
|
*/
|
|
6102
|
-
|
|
6109
|
+
deleteMention: (id: string) => ReturnType;
|
|
6103
6110
|
};
|
|
6104
6111
|
}
|
|
6105
6112
|
}
|
|
@@ -6112,15 +6119,23 @@ declare module '@tiptap/core' {
|
|
|
6112
6119
|
*/
|
|
6113
6120
|
declare module '@tiptap/core' {
|
|
6114
6121
|
interface Commands<ReturnType> {
|
|
6115
|
-
|
|
6122
|
+
template: {
|
|
6116
6123
|
/**
|
|
6117
|
-
*
|
|
6124
|
+
* 设置模板数据(批量)
|
|
6118
6125
|
*/
|
|
6119
|
-
|
|
6126
|
+
setTemplateData: (items: TemplateItem[]) => ReturnType;
|
|
6120
6127
|
/**
|
|
6121
|
-
*
|
|
6128
|
+
* 插入模板块
|
|
6122
6129
|
*/
|
|
6123
|
-
|
|
6130
|
+
insertTemplate: (attrs: Partial<TemplateAttrs>) => ReturnType;
|
|
6131
|
+
/**
|
|
6132
|
+
* 聚焦到第一个模板块
|
|
6133
|
+
*/
|
|
6134
|
+
focusFirstTemplate: () => ReturnType;
|
|
6135
|
+
/**
|
|
6136
|
+
* 插入选择器
|
|
6137
|
+
*/
|
|
6138
|
+
insertTemplateSelect: (attrs: Partial<TemplateSelectAttrs>) => ReturnType;
|
|
6124
6139
|
};
|
|
6125
6140
|
}
|
|
6126
6141
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import S from "./attachments/index.js";
|
|
2
|
-
import { B, a as E, b
|
|
3
|
-
import { c as He, d as $e, u as We, e as we, f as ke, g as Ne, h as Ve, i as Ge, j as Ie, k as Ue } from "./index6.js";
|
|
4
|
-
import
|
|
2
|
+
import { B, a as E, b } from "./index6.js";
|
|
3
|
+
import { c as He, d as $e, u as We, e as we, f as ke, g as Ne, h as Ve, i as Ge, j as Ie, k as Ue, l as Ke } from "./index6.js";
|
|
4
|
+
import F from "./container/index.js";
|
|
5
5
|
import C from "./anchor/index.js";
|
|
6
6
|
import z from "./conversations/index.js";
|
|
7
7
|
import y from "./drag-overlay/index.js";
|
|
8
8
|
import L from "./dropdown-menu/index.js";
|
|
9
9
|
import P from "./feedback/index.js";
|
|
10
10
|
import { H as A } from "./index7.js";
|
|
11
|
-
import { u as
|
|
11
|
+
import { u as Ye } from "./index7.js";
|
|
12
12
|
import M from "./icon-button/index.js";
|
|
13
13
|
import { Layout as O, LayoutProxyScrollbar as R, LayoutAsideToggle as j } from "./layout/index.js";
|
|
14
14
|
import H from "./model-selector/index.js";
|
|
@@ -18,14 +18,14 @@ import k from "./sender-compat/index.js";
|
|
|
18
18
|
import N, { SuggestionPillButton as V } from "./suggestion-pills/index.js";
|
|
19
19
|
import G from "./suggestion-popover/index.js";
|
|
20
20
|
import I from "./theme-provider/index.js";
|
|
21
|
-
import { useTheme as
|
|
21
|
+
import { useTheme as Je } from "./theme-provider/index.js";
|
|
22
22
|
import U from "./welcome/index.js";
|
|
23
23
|
import K from "./mcp-server-picker/index.js";
|
|
24
24
|
import X from "./mcp-add-form/index.js";
|
|
25
25
|
import { ExtensionManager as Y, ExtensionCard as q, ExtensionCardGrid as J } from "./extension-manager/index.js";
|
|
26
|
-
import { u as
|
|
26
|
+
import { u as Ze } from "./useSenderContentRegistration.js";
|
|
27
27
|
import { A as Q, S as Z, _ as ee, W as re, D as oe } from "./index2.js";
|
|
28
|
-
import { a as
|
|
28
|
+
import { a as rr, u as or } from "./index2.js";
|
|
29
29
|
import { _ as te, V as ae } from "./index3.js";
|
|
30
30
|
var u = /* @__PURE__ */ ((e) => (e.FileTypeNotAllowed = "file-type-not-allowed", e.FileSizeExceeded = "file-size-exceeded", e.FileCountExceeded = "file-count-exceeded", e))(u || {});
|
|
31
31
|
function ne(e, r) {
|
|
@@ -156,8 +156,8 @@ const Me = {
|
|
|
156
156
|
S,
|
|
157
157
|
B,
|
|
158
158
|
E,
|
|
159
|
-
F,
|
|
160
159
|
b,
|
|
160
|
+
F,
|
|
161
161
|
C,
|
|
162
162
|
z,
|
|
163
163
|
y,
|
|
@@ -204,11 +204,11 @@ export {
|
|
|
204
204
|
S as Attachments,
|
|
205
205
|
B as Bubble,
|
|
206
206
|
E as BubbleList,
|
|
207
|
-
|
|
207
|
+
b as BubbleProvider,
|
|
208
208
|
He as BubbleRendererMatchPriority,
|
|
209
209
|
$e as BubbleRenderers,
|
|
210
210
|
ee as ClearButton,
|
|
211
|
-
|
|
211
|
+
F as Container,
|
|
212
212
|
z as Conversations,
|
|
213
213
|
oe as DefaultActionButtons,
|
|
214
214
|
y as DragOverlay,
|
|
@@ -227,7 +227,7 @@ export {
|
|
|
227
227
|
H as ModelSelector,
|
|
228
228
|
$ as Prompt,
|
|
229
229
|
W as Prompts,
|
|
230
|
-
|
|
230
|
+
rr as SENDER_CONTEXT_KEY,
|
|
231
231
|
w as Sender,
|
|
232
232
|
k as SenderCompat,
|
|
233
233
|
Z as SubmitButton,
|
|
@@ -240,9 +240,9 @@ export {
|
|
|
240
240
|
S as TrAttachments,
|
|
241
241
|
B as TrBubble,
|
|
242
242
|
E as TrBubbleList,
|
|
243
|
-
|
|
243
|
+
b as TrBubbleProvider,
|
|
244
244
|
ee as TrClearButton,
|
|
245
|
-
|
|
245
|
+
F as TrContainer,
|
|
246
246
|
z as TrConversations,
|
|
247
247
|
oe as TrDefaultActionButtons,
|
|
248
248
|
y as TrDragOverlay,
|
|
@@ -280,14 +280,15 @@ export {
|
|
|
280
280
|
We as useAutoScroll,
|
|
281
281
|
we as useBubbleBoxRenderer,
|
|
282
282
|
ke as useBubbleContentRenderer,
|
|
283
|
-
Ne as
|
|
284
|
-
Ve as
|
|
285
|
-
Ge as
|
|
286
|
-
Ie as
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
283
|
+
Ne as useBubbleErrorRenderer,
|
|
284
|
+
Ve as useBubbleEventFn,
|
|
285
|
+
Ge as useBubbleStateChangeFn,
|
|
286
|
+
Ie as useMessageContent,
|
|
287
|
+
Ue as useOmitMessageFields,
|
|
288
|
+
Ze as useSenderContentRegistration,
|
|
289
|
+
or as useSenderContext,
|
|
290
|
+
Je as useTheme,
|
|
291
|
+
Ke as useToolCall,
|
|
292
|
+
Ye as useTouchDevice,
|
|
292
293
|
Me as vDropzone
|
|
293
294
|
};
|