@opentiny/tiny-robot 0.3.1-alpha.6 → 0.3.1-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/base-popper/index.js +1 -1
- package/dist/bubble/index.js +11 -4014
- package/dist/container/index.js +7 -7
- package/dist/drag-overlay/index.js +6 -6
- package/dist/dropdown-menu/index.js +7 -7
- package/dist/feedback/index.js +1 -1
- package/dist/flow-layout-buttons/index.js +16 -16
- package/dist/history/index.js +1 -1
- package/dist/icon-button/index.js +1 -1
- package/dist/index.d.ts +942 -673
- package/dist/index.js +108 -104
- package/dist/index2.js +90 -90
- package/dist/index3.js +155 -150
- package/dist/index4.js +319 -295
- package/dist/index5.js +507 -279
- package/dist/index6.js +286 -146
- package/dist/index7.js +161 -0
- 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 +3261 -6
- package/dist/sender-compat/index.js +105 -109
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +13 -13
- package/dist/suggestion-popover/index.js +181 -182
- package/dist/theme-provider/index.js +7 -7
- package/dist/welcome/index.js +4 -4
- package/package.json +8 -5
- package/dist/chat-input/index.js +0 -3151
- package/dist/loading.js +0 -4
- /package/dist/{chat-input-actions → sender-actions}/index.js +0 -0
|
@@ -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/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.1-alpha.
|
|
3
|
+
"version": "0.3.1-alpha.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,15 +26,16 @@
|
|
|
26
26
|
"@tiptap/extension-text": "^3.11.0",
|
|
27
27
|
"@tiptap/pm": "^3.11.0",
|
|
28
28
|
"@tiptap/vue-3": "^3.11.0",
|
|
29
|
+
"dompurify": "^3.3.1",
|
|
30
|
+
"markdown-it": "^14.1.0",
|
|
29
31
|
"vue": "^3.3.11"
|
|
30
32
|
},
|
|
31
33
|
"dependencies": {
|
|
32
34
|
"@floating-ui/dom": "^1.6.0",
|
|
33
|
-
"@opentiny/tiny-robot-svgs": "0.3.1-alpha.
|
|
35
|
+
"@opentiny/tiny-robot-svgs": "0.3.1-alpha.8",
|
|
34
36
|
"@opentiny/vue": "^3.20.0",
|
|
35
37
|
"@vueuse/core": "^13.1.0",
|
|
36
|
-
"
|
|
37
|
-
"markdown-it": "^14.1.0"
|
|
38
|
+
"jsonrepair": "^3.13.1"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|
|
40
41
|
"@types/dom-speech-recognition": "^0.0.6",
|
|
@@ -43,12 +44,14 @@
|
|
|
43
44
|
"@types/node": "^22.13.17",
|
|
44
45
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
45
46
|
"@vitejs/plugin-vue-jsx": "^4.1.2",
|
|
47
|
+
"dompurify": "^3.3.1",
|
|
46
48
|
"less": "^4.2.2",
|
|
49
|
+
"markdown-it": "^14.1.0",
|
|
47
50
|
"typescript": "^5.2.2",
|
|
48
51
|
"vite": "^5.0.8",
|
|
49
52
|
"vite-plugin-dts": "^4.5.3",
|
|
50
53
|
"vue": "^3.3.11",
|
|
51
54
|
"vue-tsc": "^2.2.8"
|
|
52
55
|
},
|
|
53
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "556326790b2bb237959d259f4a38d9e4fb797713"
|
|
54
57
|
}
|