@opentiny/tiny-robot 0.4.0-alpha.6 → 0.4.0-alpha.8
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 +8 -8
- package/dist/attachments/index.js +1 -1
- package/dist/bubble/index.js +3 -3
- package/dist/container/index.js +7 -7
- package/dist/drag-overlay/index.js +6 -6
- package/dist/dropdown-menu/index.js +8 -8
- package/dist/feedback/index.js +1 -1
- package/dist/flow-layout-buttons/index.js +16 -16
- package/dist/icon-button/index.js +1 -1
- package/dist/index.d.ts +28 -29
- package/dist/index.js +1 -1
- package/dist/index2.js +458 -462
- package/dist/index3.js +8 -8
- package/dist/index5.js +2 -2
- package/dist/index6.js +10 -10
- package/dist/mcp-add-form/index.js +6 -6
- package/dist/mcp-server-picker/index.js +1 -1
- package/dist/prompts/index.js +3 -3
- package/dist/sender/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +14 -14
- package/dist/suggestion-popover/index.js +10 -10
- package/dist/theme-provider/index.js +7 -7
- package/dist/useSlotRefs.js +3 -3
- package/dist/welcome/index.js +4 -4
- package/package.json +3 -3
package/dist/index3.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { onMounted as ne, onBeforeUnmount as oe, ref as _, defineComponent as P, openBlock as r, createElementBlock as a, createElementVNode as w, createVNode as $, 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 ae } from "vue";
|
|
2
2
|
import { IconEmptySearch as ue, IconEditPen as ce, IconDelete as de, IconCheck as me, IconClose as fe, IconMenu2 as pe } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import { _ as z } from "./_plugin-vue_export-helper.js";
|
|
4
4
|
import { o as Z, c as ve, e as ge, d as ye } from "./index5.js";
|
|
@@ -47,7 +47,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
47
47
|
}
|
|
48
48
|
}), Re = /* @__PURE__ */ z(we, [["__scopeId", "data-v-d0340c39"]]), Ie = ["onClick"], Q = 4, xe = /* @__PURE__ */ P({
|
|
49
49
|
__name: "MenuList",
|
|
50
|
-
props: /* @__PURE__ */
|
|
50
|
+
props: /* @__PURE__ */ j({
|
|
51
51
|
items: {},
|
|
52
52
|
menuListGap: { default: 8 }
|
|
53
53
|
}, {
|
|
@@ -56,9 +56,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
56
56
|
data: { default: null },
|
|
57
57
|
dataModifiers: {}
|
|
58
58
|
}),
|
|
59
|
-
emits: /* @__PURE__ */
|
|
59
|
+
emits: /* @__PURE__ */ j(["item-click"], ["update:trigger", "update:data"]),
|
|
60
60
|
setup(s, { emit: m }) {
|
|
61
|
-
const t =
|
|
61
|
+
const t = W(s, "trigger"), c = W(s, "data"), h = s, C = m, E = _(null);
|
|
62
62
|
Z(
|
|
63
63
|
E,
|
|
64
64
|
() => {
|
|
@@ -202,9 +202,9 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
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 ?
|
|
207
|
+
n(p) === l ? A((r(), a("input", {
|
|
208
208
|
key: 1,
|
|
209
209
|
class: "tr-history__item-editor",
|
|
210
210
|
type: "text",
|
|
@@ -228,7 +228,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
228
228
|
]
|
|
229
229
|
}, null, 544)), [
|
|
230
230
|
[re, n(k)]
|
|
231
|
-
]) :
|
|
231
|
+
]) : q(i.$slots, "item-title", {
|
|
232
232
|
key: 2,
|
|
233
233
|
item: l
|
|
234
234
|
}, () => [
|
|
@@ -274,7 +274,7 @@ const ke = { class: "tr-history__empty" }, Le = { class: "tr-history__empty-icon
|
|
|
274
274
|
], 10, Ge))), 128))
|
|
275
275
|
])
|
|
276
276
|
]))), 128)),
|
|
277
|
-
|
|
277
|
+
A($(Me, {
|
|
278
278
|
trigger: g.value,
|
|
279
279
|
"onUpdate:trigger": e[7] || (e[7] = (f) => g.value = f),
|
|
280
280
|
data: u.value,
|
package/dist/index5.js
CHANGED
package/dist/index6.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { onMounted as U, nextTick as B, h as C,
|
|
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 { b as oe, c as re, e as ne } from "./index5.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 },
|
|
@@ -52,13 +52,13 @@ const ie = /* @__PURE__ */ _({
|
|
|
52
52
|
ref_key: "popperRef",
|
|
53
53
|
ref: e
|
|
54
54
|
}, [
|
|
55
|
-
|
|
56
|
-
], 512)) :
|
|
55
|
+
J(t.$slots, "default", {}, void 0, !0)
|
|
56
|
+
], 512)) : K("", !0)
|
|
57
57
|
]),
|
|
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as g, ref as b, useModel as k, watch as O, onUnmounted as R,
|
|
1
|
+
import { defineComponent as g, ref as b, useModel as k, watch as O, onUnmounted as R, openBlock as _, createElementBlock as v, createElementVNode as t, withDirectives as c, vModelText as f, createVNode as y, unref as D, createCommentVNode as $ } from "vue";
|
|
2
2
|
import { TinyRadioGroup as E } from "@opentiny/vue";
|
|
3
3
|
import { f as L } from "../index5.js";
|
|
4
4
|
import { _ as T } from "../_plugin-vue_export-helper.js";
|
|
@@ -37,7 +37,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
|
|
|
37
37
|
};
|
|
38
38
|
return R(() => {
|
|
39
39
|
r();
|
|
40
|
-
}), (m, e) => (
|
|
40
|
+
}), (m, e) => (_(), v("form", M, [
|
|
41
41
|
t("div", S, [
|
|
42
42
|
e[5] || (e[5] = t("label", { class: "form-editor__label" }, "名称", -1)),
|
|
43
43
|
c(t("input", {
|
|
@@ -116,7 +116,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
|
|
|
116
116
|
emits: ["update:codeData"],
|
|
117
117
|
setup(i) {
|
|
118
118
|
const d = k(i, "codeData");
|
|
119
|
-
return (o, s) => (
|
|
119
|
+
return (o, s) => (_(), v("div", j, [
|
|
120
120
|
t("div", q, [
|
|
121
121
|
t("div", z, [
|
|
122
122
|
c(t("textarea", {
|
|
@@ -158,7 +158,7 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
|
|
|
158
158
|
}, a = (V) => {
|
|
159
159
|
s("update:addType", V);
|
|
160
160
|
};
|
|
161
|
-
return (V, l) => (
|
|
161
|
+
return (V, l) => (_(), v("div", G, [
|
|
162
162
|
t("div", W, [
|
|
163
163
|
t("div", K, [
|
|
164
164
|
l[3] || (l[3] = t("span", { class: "mcp-add-form__add-type-label" }, "添加方式", -1)),
|
|
@@ -172,13 +172,13 @@ const M = { class: "form-editor__container" }, S = { class: "form-editor__item"
|
|
|
172
172
|
options: x
|
|
173
173
|
}, null, 8, ["modelValue"])
|
|
174
174
|
]),
|
|
175
|
-
r.value === "form" ? (
|
|
175
|
+
r.value === "form" ? (_(), v("div", Q, [
|
|
176
176
|
y(D(h), {
|
|
177
177
|
"form-data": n.value,
|
|
178
178
|
"onUpdate:formData": l[1] || (l[1] = (p) => n.value = p)
|
|
179
179
|
}, null, 8, ["form-data"])
|
|
180
180
|
])) : $("", !0),
|
|
181
|
-
r.value === "code" ? (
|
|
181
|
+
r.value === "code" ? (_(), v("div", X, [
|
|
182
182
|
y(D(J), {
|
|
183
183
|
"code-data": u.value,
|
|
184
184
|
"onUpdate:codeData": l[2] || (l[2] = (p) => u.value = p)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, ref as V, computed as g,
|
|
1
|
+
import { defineComponent as q, ref as V, computed as g, openBlock as a, createElementBlock as n, normalizeClass as G, createElementVNode as s, toDisplayString as x, createCommentVNode as v, renderSlot as D, Fragment as F, createBlock as k, unref as d, createVNode as _, withCtx as T, Transition as K, withDirectives as pe, renderList as N, vShow as ge, useModel as ae, mergeModels as J, watch as H, normalizeStyle as me, createTextVNode as _e } from "vue";
|
|
2
2
|
import { TinyPopconfirm as ve, TinySwitch as X, TinyTabs as fe, TinyTabItem as Y, TinyInput as Z, TinyBaseSelect as he, TinyOption as ye } from "@opentiny/vue";
|
|
3
3
|
import { IconArrowRight as ke, IconArrowDown as be, IconDelete as Te, IconClose as oe, IconEmptySearch as Ce, IconPlus as Pe, IconSearch as ee } from "@opentiny/tiny-robot-svgs";
|
|
4
4
|
import { _ as z } from "../_plugin-vue_export-helper.js";
|
package/dist/prompts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as y,
|
|
1
|
+
import { defineComponent as y, openBlock as e, createElementBlock as r, normalizeClass as f, createBlock as m, resolveDynamicComponent as u, createElementVNode as i, toDisplayString as l, createCommentVNode as h, Fragment as k, createTextVNode as P, renderList as B, mergeProps as w, renderSlot as x, toRaw as S } from "vue";
|
|
2
2
|
import { _ as v } from "../_plugin-vue_export-helper.js";
|
|
3
3
|
const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-title" }, T = {
|
|
4
4
|
key: 0,
|
|
@@ -49,7 +49,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
|
|
|
49
49
|
i("div", {
|
|
50
50
|
class: f(["tr-prompts__list-container", { wrap: s.wrap, vertical: s.vertical }])
|
|
51
51
|
}, [
|
|
52
|
-
(e(!0), r(k, null,
|
|
52
|
+
(e(!0), r(k, null, B(s.items, (p, b) => (e(), m(n, w({
|
|
53
53
|
key: p.id || b
|
|
54
54
|
}, { ref_for: !0 }, p, {
|
|
55
55
|
style: s.itemStyle,
|
|
@@ -57,7 +57,7 @@ const z = { class: "tr-prompt__content" }, N = { class: "tr-prompt__content-titl
|
|
|
57
57
|
onClick: (g) => C(g, p)
|
|
58
58
|
}), null, 16, ["style", "class", "onClick"]))), 128))
|
|
59
59
|
], 2),
|
|
60
|
-
|
|
60
|
+
x(a.$slots, "footer", {}, void 0, !0)
|
|
61
61
|
]));
|
|
62
62
|
}
|
|
63
63
|
}), c = /* @__PURE__ */ v(E, [["__scopeId", "data-v-641a878e"]]);
|
package/dist/sender/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var sf = Object.defineProperty;
|
|
2
2
|
var lf = (f, n, v) => n in f ? sf(f, n, { enumerable: !0, configurable: !0, writable: !0, value: v }) : f[n] = v;
|
|
3
3
|
var FA = (f, n, v) => lf(f, typeof n != "symbol" ? n + "" : n, v);
|
|
4
|
-
import { ref as h, watch as fA, reactive as Bf, onUnmounted as ff, computed as K, defineComponent as IA, isVNode as Pf,
|
|
4
|
+
import { ref as h, watch as fA, reactive as Bf, onUnmounted as ff, computed as K, defineComponent as IA, isVNode as Pf, openBlock as H, createElementBlock as T, normalizeStyle as jA, createBlock as eA, unref as R, withCtx as rA, createElementVNode as j, createVNode as S, normalizeClass as tA, createCommentVNode as U, resolveDynamicComponent as af, toDisplayString as iA, useAttrs as Cf, resolveComponent as rf, mergeProps as HA, Fragment as dA, renderList as wA, useModel as df, onMounted as uf, nextTick as Z, mergeModels as _A, Transition as GA, withModifiers as Qf, useSlots as Df, renderSlot as vA, isRef as pf, createTextVNode as $A } from "vue";
|
|
5
5
|
import { TinyTooltip as UA, TinyInput as Hf } from "@opentiny/vue";
|
|
6
6
|
import { f as wf } from "../index5.js";
|
|
7
7
|
import { IconVoice as If, IconUpload as cf, IconClear as Ef, IconSend as yf, IconStop as Rf, IconAssociate as Tf } from "@opentiny/tiny-robot-svgs";
|