@opentiny/tiny-robot 0.3.1 → 0.3.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 +8 -8
- package/dist/attachments/index.js +1 -1
- package/dist/bubble/index.js +1 -1
- 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 +69 -50
- package/dist/index.js +1 -1
- package/dist/index2.js +7 -7
- package/dist/index3.js +8 -8
- package/dist/index4.js +2 -2
- package/dist/index5.js +10 -10
- package/dist/mcp-add-form/index.js +6 -6
- package/dist/mcp-server-picker/index.js +58 -57
- package/dist/prompts/index.js +3 -3
- package/dist/sender/index.js +998 -979
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as z,
|
|
1
|
+
import { defineComponent as z, openBlock as n, createElementBlock as g, createCommentVNode as U, createBlock as k, resolveDynamicComponent as ue, createVNode as M, unref as h, createElementVNode as v, toDisplayString as x, renderSlot as m, useModel as A, ref as i, computed as p, watch as V, Transition as ce, withCtx as S, normalizeStyle as J, normalizeClass as W, mergeModels as D, Fragment as pe, renderList as de, createTextVNode as fe } from "vue";
|
|
2
2
|
import { IconSparkles as ve, IconClose as me } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import { c as ge, h as _e, u as he, w as ye, e as we, o as ke } from "../index4.js";
|
|
4
4
|
import { u as Te, c as $e, B as Ce } from "../index5.js";
|
|
@@ -63,7 +63,7 @@ function Ue(l, t) {
|
|
|
63
63
|
}
|
|
64
64
|
const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd"]]), He = { class: "tr-tooltip-content" }, Qe = /* @__PURE__ */ z({
|
|
65
65
|
__name: "Tooltip",
|
|
66
|
-
props: /* @__PURE__ */
|
|
66
|
+
props: /* @__PURE__ */ D({
|
|
67
67
|
show: { type: Boolean },
|
|
68
68
|
content: {},
|
|
69
69
|
trigger: {},
|
|
@@ -83,13 +83,13 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
83
83
|
width: G(_.value)
|
|
84
84
|
} : {});
|
|
85
85
|
let f;
|
|
86
|
-
|
|
86
|
+
V(
|
|
87
87
|
() => y.value,
|
|
88
88
|
(r) => {
|
|
89
89
|
const c = r ? t.delayOpen : t.delayClose;
|
|
90
90
|
f && (clearTimeout(f), f = void 0, r || (o.value = !1)), c ? f = setTimeout(() => o.value = r || !1, c) : o.value = r || !1;
|
|
91
91
|
}
|
|
92
|
-
),
|
|
92
|
+
), V(
|
|
93
93
|
() => t.disabled,
|
|
94
94
|
(r) => {
|
|
95
95
|
r && (f && clearTimeout(f), o.value = !1);
|
|
@@ -103,7 +103,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
103
103
|
default: S(() => [
|
|
104
104
|
o.value ? (n(), g("div", {
|
|
105
105
|
key: 0,
|
|
106
|
-
class:
|
|
106
|
+
class: W(["tr-tooltip", `placement-${t.placement}`]),
|
|
107
107
|
role: "tooltip",
|
|
108
108
|
style: J(E.value),
|
|
109
109
|
onMouseleave: w
|
|
@@ -117,7 +117,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
117
117
|
}
|
|
118
118
|
}), je = /* @__PURE__ */ T(Qe, [["__scopeId", "data-v-72e44084"]]), Ae = ["onClick", "onMouseenter", "onMouseleave"], Je = /* @__PURE__ */ z({
|
|
119
119
|
__name: "index",
|
|
120
|
-
props: /* @__PURE__ */
|
|
120
|
+
props: /* @__PURE__ */ D({
|
|
121
121
|
appendTo: {},
|
|
122
122
|
data: {},
|
|
123
123
|
title: {
|
|
@@ -144,7 +144,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
144
144
|
selectedGroup: {},
|
|
145
145
|
selectedGroupModifiers: {}
|
|
146
146
|
}),
|
|
147
|
-
emits: /* @__PURE__ */
|
|
147
|
+
emits: /* @__PURE__ */ D(["item-click", "group-click", "open", "close", "click-outside"], ["update:selectedGroup"]),
|
|
148
148
|
setup(l, {
|
|
149
149
|
expose: t,
|
|
150
150
|
emit: y
|
|
@@ -188,7 +188,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
188
188
|
}, H = i(null), Q = i(null), b = i(!1), j = i(""), {
|
|
189
189
|
width: ee
|
|
190
190
|
} = we(X);
|
|
191
|
-
|
|
191
|
+
V(ee, () => {
|
|
192
192
|
Z();
|
|
193
193
|
});
|
|
194
194
|
const te = p(() => B.value ? {
|
|
@@ -233,7 +233,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
233
233
|
}
|
|
234
234
|
}), (e, s) => (n(), k(h(Ce), {
|
|
235
235
|
show: u.value,
|
|
236
|
-
class:
|
|
236
|
+
class: W(["tr-question-popover", {
|
|
237
237
|
mobile: h(B)
|
|
238
238
|
}]),
|
|
239
239
|
style: J(te.value),
|
|
@@ -276,7 +276,7 @@ const Fe = /* @__PURE__ */ T(We, [["render", Ue], ["__scopeId", "data-v-a33638dd
|
|
|
276
276
|
"show-more-trigger": o.groupShowMoreTrigger,
|
|
277
277
|
onItemClick: re
|
|
278
278
|
}, null, 8, ["items", "selected", "show-more-trigger"])) : U("", !0), v("ul", {
|
|
279
|
-
class:
|
|
279
|
+
class: W(["tr-question__list", {
|
|
280
280
|
scrolling: L.value
|
|
281
281
|
}]),
|
|
282
282
|
ref_key: "listRef",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as C,
|
|
1
|
+
import { defineComponent as C, useModel as f, ref as O, onUnmounted as S, computed as D, provide as m, watchEffect as _, watch as g, renderSlot as w, mergeModels as b, inject as u, readonly as v } from "vue";
|
|
2
2
|
const k = "data-tr-theme", A = "data-tr-color-mode", y = Symbol("theme"), E = Symbol("colorMode"), T = Symbol("resolvedColorMode"), p = Symbol("systemColorMode"), i = /* @__PURE__ */ C({
|
|
3
3
|
__name: "index",
|
|
4
|
-
props: /* @__PURE__ */
|
|
4
|
+
props: /* @__PURE__ */ b({
|
|
5
5
|
colorMode: {},
|
|
6
6
|
targetElement: { default: "html" },
|
|
7
7
|
theme: {},
|
|
@@ -35,19 +35,19 @@ const k = "data-tr-theme", A = "data-tr-color-mode", y = Symbol("theme"), E = Sy
|
|
|
35
35
|
const e = r();
|
|
36
36
|
typeof e.theme == "string" && (n.value = e.theme), (e.colorMode === "auto" || e.colorMode === "light" || e.colorMode === "dark") && (a.value = e.colorMode);
|
|
37
37
|
}
|
|
38
|
-
const s =
|
|
38
|
+
const s = O("light");
|
|
39
39
|
if (typeof window < "u") {
|
|
40
40
|
const e = window.matchMedia("(prefers-color-scheme: dark)");
|
|
41
41
|
s.value = e.matches ? "dark" : "light";
|
|
42
42
|
const c = (h) => {
|
|
43
43
|
s.value = h.matches ? "dark" : "light";
|
|
44
44
|
};
|
|
45
|
-
e.addEventListener("change", c),
|
|
45
|
+
e.addEventListener("change", c), S(() => {
|
|
46
46
|
e.removeEventListener("change", c);
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
|
-
const l =
|
|
50
|
-
return m(y, n), m(E, a), m(T, l), m(p, s),
|
|
49
|
+
const l = D(() => a.value === "auto" ? s.value : a.value);
|
|
50
|
+
return m(y, n), m(E, a), m(T, l), m(p, s), _(
|
|
51
51
|
() => {
|
|
52
52
|
if (typeof document > "u") return;
|
|
53
53
|
const e = document.querySelector(t.targetElement);
|
|
@@ -58,7 +58,7 @@ const k = "data-tr-theme", A = "data-tr-color-mode", y = Symbol("theme"), E = Sy
|
|
|
58
58
|
d({ theme: e });
|
|
59
59
|
}), g(a, (e) => {
|
|
60
60
|
d({ colorMode: e });
|
|
61
|
-
}), (e, c) =>
|
|
61
|
+
}), (e, c) => w(e.$slots, "default");
|
|
62
62
|
}
|
|
63
63
|
}), M = "Theme context not available, cannot set theme data. Consider using ThemeProvider to wrap your app.", N = () => {
|
|
64
64
|
const o = u(y), t = u(E), r = u(T), d = u(p), n = (l) => o ? (o.value = l, !0) : (console.warn(M), !1), a = () => !t || !r ? (console.warn(M), !1) : (t.value = r.value === "light" ? "dark" : "light", !0), s = (l) => t ? (t.value = l, !0) : (console.warn(M), !1);
|
package/dist/useSlotRefs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as v } from "./index4.js";
|
|
2
2
|
import { computed as f, Fragment as d, ref as h, watch as p } from "vue";
|
|
3
|
-
function
|
|
3
|
+
function b(l, i) {
|
|
4
4
|
const u = f(() => {
|
|
5
5
|
const t = (l == null ? void 0 : l()) || [];
|
|
6
6
|
let o = 0;
|
|
@@ -32,5 +32,5 @@ function E(l, i) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
b as u
|
|
36
36
|
};
|
package/dist/welcome/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as l, useCssVars as a,
|
|
1
|
+
import { defineComponent as l, useCssVars as a, openBlock as s, createElementBlock as r, createElementVNode as n, createBlock as _, resolveDynamicComponent as m, createCommentVNode as p, toDisplayString as i, renderSlot as d } from "vue";
|
|
2
2
|
import { _ as f } from "../_plugin-vue_export-helper.js";
|
|
3
3
|
const u = { class: "tr-welcome" }, h = { class: "tr-welcome__title-wrapper" }, w = {
|
|
4
4
|
key: 0,
|
|
@@ -19,12 +19,12 @@ const u = { class: "tr-welcome" }, h = { class: "tr-welcome__title-wrapper" }, w
|
|
|
19
19
|
return (c, g) => (s(), r("div", u, [
|
|
20
20
|
n("div", h, [
|
|
21
21
|
e.icon ? (s(), r("span", w, [
|
|
22
|
-
(s(),
|
|
23
|
-
])) :
|
|
22
|
+
(s(), _(m(e.icon)))
|
|
23
|
+
])) : p("", !0),
|
|
24
24
|
n("h3", v, i(e.title), 1)
|
|
25
25
|
]),
|
|
26
26
|
n("span", k, i(e.description), 1),
|
|
27
|
-
|
|
27
|
+
d(c.$slots, "footer", {}, void 0, !0)
|
|
28
28
|
]));
|
|
29
29
|
}
|
|
30
30
|
}), t = /* @__PURE__ */ f(x, [["__scopeId", "data-v-b9a85199"]]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-robot",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"vue": "^3.3.11"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opentiny/tiny-robot-svgs": "0.3.
|
|
23
|
+
"@opentiny/tiny-robot-svgs": "0.3.2",
|
|
24
24
|
"@opentiny/vue": "^3.20.0",
|
|
25
25
|
"@vueuse/core": "^13.1.0",
|
|
26
26
|
"dompurify": "^3.2.6",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"vue": "^3.3.11",
|
|
41
41
|
"vue-tsc": "^2.2.8"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "95af579d3fa8fd75d8810086f968c85fff03bbe6"
|
|
44
44
|
}
|