@opentiny/tiny-robot 0.4.0 → 0.4.1-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/README.md +192 -1
- package/README.zh-CN.md +192 -0
- package/dist/action-group/index.js +3 -3
- package/dist/anchor/index.js +856 -0
- package/dist/attachments/index.js +326 -269
- package/dist/container/index.js +13 -13
- package/dist/drag-overlay/index.js +1 -1
- package/dist/dropdown-menu/index.js +18 -18
- package/dist/feedback/index.js +2 -2
- package/dist/flow-layout-buttons/index.js +1 -1
- package/dist/index.d.ts +452 -185
- package/dist/index.js +121 -117
- package/dist/index2.js +152 -126
- package/dist/index3.js +1 -1
- package/dist/index4.js +91 -85
- package/dist/index5.js +81 -81
- package/dist/index6.js +453 -414
- package/dist/index7.js +30 -30
- package/dist/index8.js +8 -8
- package/dist/mcp-server-picker/index.js +178 -177
- package/dist/sender/index.js +1579 -1448
- package/dist/sender-actions/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +13 -13
- package/dist/suggestion-popover/index.js +122 -125
- package/dist/useSlotRefs.js +1 -1
- package/dist/utils.js +1 -1
- package/dist/welcome/index.js +9 -9
- package/package.json +52 -15
- package/dist/no-data.js +0 -4
package/dist/index7.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { onMounted as ne, onBeforeUnmount as oe, ref as _, defineComponent as P, openBlock as r, createElementBlock as
|
|
2
|
-
import { IconEmptySearch as
|
|
1
|
+
import { onMounted as ne, onBeforeUnmount as oe, ref as _, defineComponent as P, openBlock as r, createElementBlock as u, createElementVNode as w, createVNode as T, unref as n, toDisplayString as B, useModel as W, computed as I, normalizeStyle as ie, Fragment as S, renderList as V, createBlock as H, resolveDynamicComponent as Y, mergeModels as j, nextTick as se, normalizeClass as U, createCommentVNode as G, renderSlot as q, withDirectives as A, withKeys as F, isRef as le, withModifiers as J, vModelText as re, vShow as ue } from "vue";
|
|
2
|
+
import { IconEmptySearch as ae, IconEditPen as ce, IconDelete as de, IconCheck as me, IconClose as fe, IconMore as pe } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import { _ as z } from "./_plugin-vue_export-helper.js";
|
|
4
|
-
import { o as Z,
|
|
4
|
+
import { o as Z, b as ve, c as ge, l as ye } from "./index4.js";
|
|
5
5
|
import { t as O } from "./utils.js";
|
|
6
6
|
const D = _(!1);
|
|
7
7
|
let b = 0, $;
|
|
@@ -38,9 +38,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
38
38
|
},
|
|
39
39
|
setup(s) {
|
|
40
40
|
const m = s;
|
|
41
|
-
return (t, c) => (r(),
|
|
41
|
+
return (t, c) => (r(), u("div", ke, [
|
|
42
42
|
w("span", Le, [
|
|
43
|
-
T(n(
|
|
43
|
+
T(n(ae))
|
|
44
44
|
]),
|
|
45
45
|
w("span", Ee, B(m.text), 1)
|
|
46
46
|
]));
|
|
@@ -76,19 +76,19 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
76
76
|
}), v = (L) => {
|
|
77
77
|
C("item-click", L), t.value = null, c.value = null;
|
|
78
78
|
};
|
|
79
|
-
return (L, g) => (r(),
|
|
79
|
+
return (L, g) => (r(), u("ul", {
|
|
80
80
|
class: "tr-history__menu-list",
|
|
81
81
|
ref_key: "menuRef",
|
|
82
82
|
ref: E,
|
|
83
83
|
style: ie(o.value)
|
|
84
84
|
}, [
|
|
85
|
-
(r(!0),
|
|
85
|
+
(r(!0), u(S, null, V(h.items, (a) => (r(), u("li", {
|
|
86
86
|
class: "tr-history__menu-list__item",
|
|
87
|
-
key:
|
|
88
|
-
onClick: (K) => v(
|
|
87
|
+
key: a.id,
|
|
88
|
+
onClick: (K) => v(a)
|
|
89
89
|
}, [
|
|
90
|
-
(r(), H(Y(
|
|
91
|
-
w("span", null, B(
|
|
90
|
+
(r(), H(Y(a.icon))),
|
|
91
|
+
w("span", null, B(a.text), 1)
|
|
92
92
|
], 8, Ie))), 128))
|
|
93
93
|
], 4));
|
|
94
94
|
}
|
|
@@ -170,41 +170,41 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
170
170
|
onItemTitleChange: (i, e) => {
|
|
171
171
|
c("item-title-change", i, e);
|
|
172
172
|
}
|
|
173
|
-
}), { isTouchDevice: L } = Ce(), g = _(null),
|
|
173
|
+
}), { isTouchDevice: L } = Ce(), g = _(null), a = _(null), K = (i, e) => {
|
|
174
174
|
if (i.currentTarget instanceof HTMLButtonElement) {
|
|
175
|
-
if (
|
|
176
|
-
g.value = null,
|
|
175
|
+
if (a.value === e) {
|
|
176
|
+
g.value = null, a.value = null;
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
|
-
g.value = i.currentTarget,
|
|
179
|
+
g.value = i.currentTarget, a.value = e;
|
|
180
180
|
} else
|
|
181
|
-
g.value = null,
|
|
181
|
+
g.value = null, a.value = null;
|
|
182
182
|
}, ee = (i) => {
|
|
183
|
-
const e =
|
|
183
|
+
const e = a.value;
|
|
184
184
|
e && (i.id === "rename" && R(e), c("item-action", i, e));
|
|
185
185
|
};
|
|
186
|
-
return (i, e) => (r(),
|
|
186
|
+
return (i, e) => (r(), u("div", {
|
|
187
187
|
class: U(["tr-history", { "touch-device": n(L) }])
|
|
188
188
|
}, [
|
|
189
|
-
E.value ? (r(), H(Re, { key: 1 })) : (r(),
|
|
190
|
-
(r(!0),
|
|
189
|
+
E.value ? (r(), H(Re, { key: 1 })) : (r(), u(S, { key: 0 }, [
|
|
190
|
+
(r(!0), u(S, null, V(C.value, (f) => (r(), u("div", {
|
|
191
191
|
class: "tr-history__group",
|
|
192
192
|
key: f.group
|
|
193
193
|
}, [
|
|
194
|
-
f.group !== n(X) ? (r(),
|
|
194
|
+
f.group !== n(X) ? (r(), u("div", Te, B(f.group), 1)) : G("", !0),
|
|
195
195
|
w("div", $e, [
|
|
196
|
-
(r(!0),
|
|
196
|
+
(r(!0), u(S, null, V(f.items, (l, te) => (r(), u("div", {
|
|
197
197
|
class: U(["tr-history__item", {
|
|
198
198
|
selected: l.id && l.id === t.selected,
|
|
199
199
|
editing: n(p) === l,
|
|
200
|
-
active:
|
|
200
|
+
active: a.value === l
|
|
201
201
|
}]),
|
|
202
202
|
key: l.id || te,
|
|
203
203
|
onClick: (d) => c("item-click", l)
|
|
204
204
|
}, [
|
|
205
205
|
q(i.$slots, "item-prefix", { item: l }, void 0, !0),
|
|
206
206
|
l.icon ? (r(), H(Y(l.icon), { key: 0 })) : G("", !0),
|
|
207
|
-
n(p) === l ? A((r(),
|
|
207
|
+
n(p) === l ? A((r(), u("input", {
|
|
208
208
|
key: 1,
|
|
209
209
|
class: "tr-history__item-editor",
|
|
210
210
|
type: "text",
|
|
@@ -242,7 +242,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
242
242
|
onClick: e[6] || (e[6] = J(() => {
|
|
243
243
|
}, ["stop"]))
|
|
244
244
|
}, [
|
|
245
|
-
t.showRenameControls && n(p) === l ? (r(),
|
|
245
|
+
t.showRenameControls && n(p) === l ? (r(), u("button", {
|
|
246
246
|
key: 0,
|
|
247
247
|
class: "editor-confirm",
|
|
248
248
|
ref_for: !0,
|
|
@@ -253,7 +253,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
253
253
|
}, [
|
|
254
254
|
T(n(me))
|
|
255
255
|
], 512)) : G("", !0),
|
|
256
|
-
t.showRenameControls && n(p) === l ? (r(),
|
|
256
|
+
t.showRenameControls && n(p) === l ? (r(), u("button", {
|
|
257
257
|
key: 1,
|
|
258
258
|
class: "editor-cancel",
|
|
259
259
|
ref_for: !0,
|
|
@@ -277,18 +277,18 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
277
277
|
A(T(Me, {
|
|
278
278
|
trigger: g.value,
|
|
279
279
|
"onUpdate:trigger": e[7] || (e[7] = (f) => g.value = f),
|
|
280
|
-
data:
|
|
281
|
-
"onUpdate:data": e[8] || (e[8] = (f) =>
|
|
280
|
+
data: a.value,
|
|
281
|
+
"onUpdate:data": e[8] || (e[8] = (f) => a.value = f),
|
|
282
282
|
items: t.menuItems,
|
|
283
283
|
"menu-list-gap": t.menuListGap,
|
|
284
284
|
onItemClick: ee
|
|
285
285
|
}, null, 8, ["trigger", "data", "items", "menu-list-gap"]), [
|
|
286
|
-
[
|
|
286
|
+
[ue, g.value]
|
|
287
287
|
])
|
|
288
288
|
], 64))
|
|
289
289
|
], 2));
|
|
290
290
|
}
|
|
291
|
-
}), N = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-
|
|
291
|
+
}), N = /* @__PURE__ */ z(Be, [["__scopeId", "data-v-125148d2"]]), De = function(s) {
|
|
292
292
|
s.component(N.name, N);
|
|
293
293
|
};
|
|
294
294
|
Object.assign(N, {
|
package/dist/index8.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { onMounted as U, nextTick as B, h as C, render as R, onBeforeUnmount as D, defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { onMounted as U, nextTick as B, h as C, render as R, onBeforeUnmount as D, defineComponent as b, Teleport as W, computed as h, ref as E, openBlock as g, createBlock as F, Transition as j, normalizeProps as q, guardReactiveProps as L, withCtx as Z, createElementBlock as G, renderSlot as J, createCommentVNode as K, useSlots as Q, watch as X, useAttrs as Y, resolveDynamicComponent as ee, unref as S, mergeProps as k, createVNode as te } from "vue";
|
|
2
|
+
import { u as oe, b as re, c as ne } from "./index4.js";
|
|
3
3
|
import { t as u } from "./utils.js";
|
|
4
4
|
import { _ as N } from "./_plugin-vue_export-helper.js";
|
|
5
5
|
import { u as se } from "./useSlotRefs.js";
|
|
6
|
-
const pe =
|
|
6
|
+
const pe = b({
|
|
7
7
|
setup: (r) => () => C(W, r.propsFactory(), r.vnodeFactory()),
|
|
8
8
|
props: ["propsFactory", "vnodeFactory"]
|
|
9
9
|
});
|
|
@@ -34,7 +34,7 @@ function ce(r, n) {
|
|
|
34
34
|
return d;
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
const ie = /* @__PURE__ */
|
|
37
|
+
const ie = /* @__PURE__ */ b({
|
|
38
38
|
__name: "Popper",
|
|
39
39
|
props: {
|
|
40
40
|
show: { type: Boolean },
|
|
@@ -58,7 +58,7 @@ const ie = /* @__PURE__ */ _({
|
|
|
58
58
|
_: 3
|
|
59
59
|
}, 16));
|
|
60
60
|
}
|
|
61
|
-
}), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */
|
|
61
|
+
}), le = /* @__PURE__ */ N(ie, [["__scopeId", "data-v-25c13ab7"]]), ue = /* @__PURE__ */ b({
|
|
62
62
|
inheritAttrs: !1,
|
|
63
63
|
__name: "index",
|
|
64
64
|
props: {
|
|
@@ -88,7 +88,7 @@ const ie = /* @__PURE__ */ _({
|
|
|
88
88
|
for (const [c, a] of Object.entries(o))
|
|
89
89
|
/^on[A-Z]/.test(c) && typeof a == "function" && (p[c] = a);
|
|
90
90
|
return p;
|
|
91
|
-
}, f = E(null),
|
|
91
|
+
}, f = E(null), _ = h(() => {
|
|
92
92
|
var o;
|
|
93
93
|
return ((o = f.value) == null ? void 0 : o.popperRef) || null;
|
|
94
94
|
}), m = h(() => {
|
|
@@ -110,7 +110,7 @@ const ie = /* @__PURE__ */ _({
|
|
|
110
110
|
} = re(i), {
|
|
111
111
|
width: x,
|
|
112
112
|
height: P
|
|
113
|
-
} = ne(
|
|
113
|
+
} = ne(_, void 0, {
|
|
114
114
|
box: "border-box"
|
|
115
115
|
}), H = h(() => {
|
|
116
116
|
const {
|
|
@@ -146,7 +146,7 @@ const ie = /* @__PURE__ */ _({
|
|
|
146
146
|
}
|
|
147
147
|
})), n({
|
|
148
148
|
triggerRef: i,
|
|
149
|
-
popperRef:
|
|
149
|
+
popperRef: _,
|
|
150
150
|
update: A
|
|
151
151
|
}), (o, p) => (g(), F(ee(S(s)[0]), k({
|
|
152
152
|
ref: S(d)
|