@opentiny/tiny-robot 0.4.0-alpha.5 → 0.4.0-alpha.7
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 +27 -28
- 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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as T,
|
|
1
|
+
import { defineComponent as T, openBlock as B, createElementBlock as c, createCommentVNode as z, createBlock as E, resolveDynamicComponent as wA, createVNode as U, unref as C, createElementVNode as v, toDisplayString as R, renderSlot as i, useModel as x, ref as P, computed as l, watch as y, Transition as nA, withCtx as p, normalizeStyle as Z, normalizeClass as b, mergeModels as V, Fragment as lA, renderList as sA, createTextVNode as QA } from "vue";
|
|
2
2
|
import { IconSparkles as vA, IconClose as iA } from "@opentiny/tiny-robot-svgs";
|
|
3
3
|
import { c as cA, h as rA, u as CA, w as FA, e as HA, o as EA } from "../index5.js";
|
|
4
4
|
import { u as aA, c as IA, B as kA } from "../index6.js";
|
|
@@ -62,7 +62,7 @@ function zA(o, g) {
|
|
|
62
62
|
}
|
|
63
63
|
const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd"]]), SA = { class: "tr-tooltip-content" }, MA = /* @__PURE__ */ T({
|
|
64
64
|
__name: "Tooltip",
|
|
65
|
-
props: /* @__PURE__ */
|
|
65
|
+
props: /* @__PURE__ */ V({
|
|
66
66
|
show: { type: Boolean },
|
|
67
67
|
content: {},
|
|
68
68
|
trigger: {},
|
|
@@ -82,13 +82,13 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
82
82
|
width: G(r.value)
|
|
83
83
|
} : {});
|
|
84
84
|
let Q;
|
|
85
|
-
|
|
85
|
+
y(
|
|
86
86
|
() => F.value,
|
|
87
87
|
(D) => {
|
|
88
88
|
const n = D ? g.delayOpen : g.delayClose;
|
|
89
89
|
Q && (clearTimeout(Q), Q = void 0, D || (f.value = !1)), n ? Q = setTimeout(() => f.value = D || !1, n) : f.value = D || !1;
|
|
90
90
|
}
|
|
91
|
-
),
|
|
91
|
+
), y(
|
|
92
92
|
() => g.disabled,
|
|
93
93
|
(D) => {
|
|
94
94
|
D && (Q && clearTimeout(Q), f.value = !1);
|
|
@@ -102,7 +102,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
102
102
|
default: p(() => [
|
|
103
103
|
f.value ? (B(), c("div", {
|
|
104
104
|
key: 0,
|
|
105
|
-
class:
|
|
105
|
+
class: b(["tr-tooltip", `placement-${g.placement}`]),
|
|
106
106
|
role: "tooltip",
|
|
107
107
|
style: Z(q.value),
|
|
108
108
|
onMouseleave: H
|
|
@@ -116,7 +116,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
116
116
|
}
|
|
117
117
|
}), KA = /* @__PURE__ */ a(MA, [["__scopeId", "data-v-72e44084"]]), xA = ["onClick", "onMouseenter", "onMouseleave"], ZA = /* @__PURE__ */ T({
|
|
118
118
|
__name: "index",
|
|
119
|
-
props: /* @__PURE__ */
|
|
119
|
+
props: /* @__PURE__ */ V({
|
|
120
120
|
appendTo: {},
|
|
121
121
|
data: {},
|
|
122
122
|
title: {
|
|
@@ -143,7 +143,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
143
143
|
selectedGroup: {},
|
|
144
144
|
selectedGroupModifiers: {}
|
|
145
145
|
}),
|
|
146
|
-
emits: /* @__PURE__ */
|
|
146
|
+
emits: /* @__PURE__ */ V(["item-click", "group-click", "open", "close", "click-outside"], ["update:selectedGroup"]),
|
|
147
147
|
setup(o, {
|
|
148
148
|
expose: g,
|
|
149
149
|
emit: F
|
|
@@ -187,7 +187,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
187
187
|
}, S = P(null), M = P(null), O = P(!1), K = P(""), {
|
|
188
188
|
width: AA
|
|
189
189
|
} = HA(L);
|
|
190
|
-
|
|
190
|
+
y(AA, () => {
|
|
191
191
|
$();
|
|
192
192
|
});
|
|
193
193
|
const gA = l(() => h.value ? {
|
|
@@ -232,7 +232,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
232
232
|
}
|
|
233
233
|
}), (A, e) => (B(), E(C(kA), {
|
|
234
234
|
show: w.value,
|
|
235
|
-
class:
|
|
235
|
+
class: b(["tr-question-popover", {
|
|
236
236
|
mobile: C(h)
|
|
237
237
|
}]),
|
|
238
238
|
style: Z(gA.value),
|
|
@@ -275,7 +275,7 @@ const WA = /* @__PURE__ */ a(bA, [["render", zA], ["__scopeId", "data-v-a33638dd
|
|
|
275
275
|
"show-more-trigger": f.groupShowMoreTrigger,
|
|
276
276
|
onItemClick: DA
|
|
277
277
|
}, null, 8, ["items", "selected", "show-more-trigger"])) : z("", !0), v("ul", {
|
|
278
|
-
class:
|
|
278
|
+
class: b(["tr-question__list", {
|
|
279
279
|
scrolling: m.value
|
|
280
280
|
}]),
|
|
281
281
|
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 "./index5.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.4.0-alpha.
|
|
3
|
+
"version": "0.4.0-alpha.7",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"vue": "^3.3.11"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@opentiny/tiny-robot-svgs": "0.4.0-alpha.
|
|
25
|
+
"@opentiny/tiny-robot-svgs": "0.4.0-alpha.7",
|
|
26
26
|
"@opentiny/vue": "^3.20.0",
|
|
27
27
|
"@vueuse/core": "^13.1.0",
|
|
28
28
|
"jsonrepair": "^3.13.1"
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"vue": "^3.3.11",
|
|
44
44
|
"vue-tsc": "^2.2.8"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4e9681b79eceedc0b1c8420ac840acf14b200a9e"
|
|
47
47
|
}
|