@opentiny/tiny-robot 0.3.0-alpha.3 → 0.3.0-alpha.30
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 +42 -39
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +4 -0
- package/dist/bubble/index.js +1613 -1624
- package/dist/container/index.js +44 -40
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +151 -64
- package/dist/feedback/index.js +73 -74
- package/dist/flow-layout-buttons/index.js +31 -28
- package/dist/history/index.js +2 -225
- package/dist/icon-button/index.js +18 -19
- package/dist/index.d.ts +1370 -934
- package/dist/index.js +218 -77
- package/dist/index2.js +277 -534
- package/dist/index3.js +693 -290
- package/dist/index4.js +146 -622
- package/dist/mcp-add-form/index.js +212 -0
- package/dist/mcp-server-picker/index.js +556 -0
- package/dist/no-data.js +4 -0
- package/dist/prompts/index.js +36 -39
- package/dist/sender/index.js +1132 -1212
- package/dist/style.css +1 -1
- package/dist/suggestion-pills/index.js +131 -155
- package/dist/suggestion-popover/index.js +253 -221
- package/dist/theme-provider/index.js +83 -0
- package/dist/useSlotRefs.js +36 -0
- package/dist/utils.js +8 -13
- package/package.json +4 -9
- package/dist/close.js +0 -29
- package/dist/index5.js +0 -2157
- package/dist/index6.js +0 -4752
- package/dist/question/index.js +0 -429
- package/dist/suggestion/index.js +0 -497
- package/dist/tiny-robot-svgs.js +0 -643
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { b as v } from "./index3.js";
|
|
2
|
+
import { computed as f, Fragment as d, ref as h, watch as p } from "vue";
|
|
3
|
+
function b(l, i) {
|
|
4
|
+
const u = f(() => {
|
|
5
|
+
const t = (l == null ? void 0 : l()) || [];
|
|
6
|
+
let o = 0;
|
|
7
|
+
const s = (e) => typeof e == "symbol" || e == null ? e : `fg${o}-${e}`;
|
|
8
|
+
return t.map((e) => {
|
|
9
|
+
if (e.type === d && Array.isArray(e.children)) {
|
|
10
|
+
for (const r of e.children)
|
|
11
|
+
r && typeof r == "object" && "key" in r && (r.key = s(r.key));
|
|
12
|
+
return o++, e.children;
|
|
13
|
+
}
|
|
14
|
+
return e;
|
|
15
|
+
}).flat();
|
|
16
|
+
}), c = f(() => i ? u.value.length : 1), m = f(() => u.value.slice(0, c.value)), n = h([]), a = (t, o) => {
|
|
17
|
+
const s = v(t);
|
|
18
|
+
s instanceof Element && (n.value[o] = s);
|
|
19
|
+
};
|
|
20
|
+
return p(
|
|
21
|
+
c,
|
|
22
|
+
(t) => {
|
|
23
|
+
n.value.length = t;
|
|
24
|
+
},
|
|
25
|
+
{ flush: "post" }
|
|
26
|
+
), {
|
|
27
|
+
vnodes: m,
|
|
28
|
+
ref: f(() => n.value.at(0)),
|
|
29
|
+
refs: n,
|
|
30
|
+
setRef: (t) => a(t, 0),
|
|
31
|
+
setRefs: a
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
b as u
|
|
36
|
+
};
|
package/dist/utils.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
+
import { i } from "./index3.js";
|
|
1
2
|
function e(t) {
|
|
2
3
|
if (typeof t == "number") return `${t}px`;
|
|
3
|
-
const
|
|
4
|
-
return
|
|
4
|
+
const r = t == null ? void 0 : t.trim();
|
|
5
|
+
return r ? /^-?\d+(\.\d+)?$/.test(r) ? `${r}px` : r : "0px";
|
|
5
6
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const o = t.getRootNode();
|
|
10
|
-
return o instanceof ShadowRoot && ((n = o.getSelection) == null ? void 0 : n.call(o)) || window.getSelection();
|
|
11
|
-
}
|
|
12
|
-
function r(t) {
|
|
13
|
-
return t.getRootNode() instanceof ShadowRoot;
|
|
7
|
+
let n = null;
|
|
8
|
+
function s() {
|
|
9
|
+
return n || (n = i()), { x: n.x, y: n.y };
|
|
14
10
|
}
|
|
15
11
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
e as t
|
|
12
|
+
e as t,
|
|
13
|
+
s as u
|
|
19
14
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/tiny-robot",
|
|
3
|
-
"version": "0.3.0-alpha.
|
|
3
|
+
"version": "0.3.0-alpha.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,18 +20,13 @@
|
|
|
20
20
|
"vue": "^3.3.11"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.
|
|
24
|
-
"@opentiny/vue": "^3.
|
|
25
|
-
"@opentiny/vue-button": "^3.21.0",
|
|
26
|
-
"@opentiny/vue-icon": "^3.22.0",
|
|
27
|
-
"@opentiny/vue-input": "^3.21.0",
|
|
28
|
-
"@opentiny/vue-tooltip": "^3.22.0",
|
|
23
|
+
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.30",
|
|
24
|
+
"@opentiny/vue": "^3.20.0",
|
|
29
25
|
"@vueuse/core": "^13.1.0",
|
|
30
26
|
"dompurify": "^3.2.6",
|
|
31
27
|
"markdown-it": "^14.1.0"
|
|
32
28
|
},
|
|
33
29
|
"devDependencies": {
|
|
34
|
-
"@opentiny/vue-vite-import": "^1.3.0",
|
|
35
30
|
"@types/dom-speech-recognition": "^0.0.6",
|
|
36
31
|
"@types/lodash-es": "^4.17.12",
|
|
37
32
|
"@types/markdown-it": "^14.1.2",
|
|
@@ -45,5 +40,5 @@
|
|
|
45
40
|
"vue": "^3.3.11",
|
|
46
41
|
"vue-tsc": "^2.2.8"
|
|
47
42
|
},
|
|
48
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "4eb76a9a50402e78053bce47f255043f9d995618"
|
|
49
44
|
}
|
package/dist/close.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { s as o } from "./index6.js";
|
|
2
|
-
import { createElementBlock as n, openBlock as r, createElementVNode as t } from "vue";
|
|
3
|
-
var c = {
|
|
4
|
-
viewBox: "0 0 16 16",
|
|
5
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
6
|
-
}, a = /* @__PURE__ */ t(
|
|
7
|
-
"path",
|
|
8
|
-
{
|
|
9
|
-
d: "M12.49 3.3a.5.5 0 0 1 .05.62L8.58 7.89l3.91 3.88c.21.19.23.48.05.71-.17.19-.49.24-.71.06L7.88 8.58 4 12.49c-.18.17-.5.18-.68.01a.496.496 0 0 1-.08-.67l3.93-3.94L3.29 4a.524.524 0 0 1 .04-.71c.17-.14.42-.16.58-.05l3.97 3.93 3.9-3.87c.18-.22.51-.22.71 0Z",
|
|
10
|
-
"fill-rule": "evenodd"
|
|
11
|
-
},
|
|
12
|
-
null,
|
|
13
|
-
-1
|
|
14
|
-
/* HOISTED */
|
|
15
|
-
), l = [a];
|
|
16
|
-
function i(e, d) {
|
|
17
|
-
return r(), n("svg", c, [].concat(l));
|
|
18
|
-
}
|
|
19
|
-
var s = {
|
|
20
|
-
render: i
|
|
21
|
-
}, _ = function() {
|
|
22
|
-
return o({
|
|
23
|
-
name: "IconClose",
|
|
24
|
-
component: s
|
|
25
|
-
})();
|
|
26
|
-
};
|
|
27
|
-
export {
|
|
28
|
-
_ as i
|
|
29
|
-
};
|