@opentiny/tiny-robot 0.3.0-alpha.12 → 0.3.0-alpha.13
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 +15 -15
- package/dist/attachments/index.js +62 -62
- package/dist/container/index.js +10 -10
- package/dist/dropdown-menu/index.js +116 -49
- package/dist/feedback/index.js +50 -50
- package/dist/flow-layout-buttons/index.js +10 -10
- package/dist/history/index.js +26 -26
- package/dist/index.d.ts +188 -34
- package/dist/index.js +47 -43
- package/dist/index2.js +7 -6
- package/dist/index3.js +426 -418
- package/dist/index4.js +67 -67
- package/dist/index5.js +22 -21
- package/dist/index6.js +795 -599
- package/dist/index7.js +3622 -1717
- package/dist/mcp-server-picker/index.js +29972 -0
- package/dist/question/index.js +12 -12
- package/dist/sender/index.js +212 -212
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +67 -67
- package/dist/suggestion-pills/index.js +11 -11
- package/dist/suggestion-popover/index.js +14 -14
- package/dist/tiny-robot-svgs.js +162 -108
- package/dist/useSlotRefs.js +13 -13
- package/dist/utils.js +8 -2
- package/package.json +10 -3
package/dist/useSlotRefs.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed as
|
|
3
|
-
function
|
|
4
|
-
const u =
|
|
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
5
|
const t = (l == null ? void 0 : l()) || [];
|
|
6
|
-
let
|
|
7
|
-
const
|
|
6
|
+
let o = 0;
|
|
7
|
+
const s = (e) => typeof e == "symbol" || e == null ? e : `fg${o}-${e}`;
|
|
8
8
|
return t.map((e) => {
|
|
9
9
|
if (e.type === d && Array.isArray(e.children)) {
|
|
10
10
|
for (const r of e.children)
|
|
11
|
-
r && typeof r == "object" && "key" in r && (r.key =
|
|
12
|
-
return
|
|
11
|
+
r && typeof r == "object" && "key" in r && (r.key = s(r.key));
|
|
12
|
+
return o++, e.children;
|
|
13
13
|
}
|
|
14
14
|
return e;
|
|
15
15
|
}).flat();
|
|
16
|
-
}), c =
|
|
17
|
-
const
|
|
18
|
-
|
|
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
19
|
};
|
|
20
20
|
return p(
|
|
21
21
|
c,
|
|
@@ -25,12 +25,12 @@ function E(l, i) {
|
|
|
25
25
|
{ flush: "post" }
|
|
26
26
|
), {
|
|
27
27
|
vnodes: m,
|
|
28
|
-
ref:
|
|
28
|
+
ref: f(() => n.value.at(0)),
|
|
29
29
|
refs: n,
|
|
30
30
|
setRef: (t) => a(t, 0),
|
|
31
31
|
setRefs: a
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
export {
|
|
35
|
-
|
|
35
|
+
b as u
|
|
36
36
|
};
|
package/dist/utils.js
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
import { i } from "./index3.js";
|
|
2
|
+
function e(t) {
|
|
2
3
|
if (typeof t == "number") return `${t}px`;
|
|
3
4
|
const r = t == null ? void 0 : t.trim();
|
|
4
5
|
return r ? /^-?\d+(\.\d+)?$/.test(r) ? `${r}px` : r : "0px";
|
|
5
6
|
}
|
|
7
|
+
let n = null;
|
|
8
|
+
function s() {
|
|
9
|
+
return n || (n = i()), { x: n.x, y: n.y };
|
|
10
|
+
}
|
|
6
11
|
export {
|
|
7
|
-
|
|
12
|
+
e as t,
|
|
13
|
+
s as u
|
|
8
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.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,11 +20,18 @@
|
|
|
20
20
|
"vue": "^3.3.11"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.
|
|
23
|
+
"@opentiny/tiny-robot-svgs": "0.3.0-alpha.13",
|
|
24
24
|
"@opentiny/vue": "^3.21.0",
|
|
25
25
|
"@opentiny/vue-button": "^3.21.0",
|
|
26
26
|
"@opentiny/vue-icon": "^3.22.0",
|
|
27
27
|
"@opentiny/vue-input": "^3.21.0",
|
|
28
|
+
"@opentiny/vue-option": "^3.21.0",
|
|
29
|
+
"@opentiny/vue-popconfirm": "^3.21.0",
|
|
30
|
+
"@opentiny/vue-radio-group": "^3.21.0",
|
|
31
|
+
"@opentiny/vue-select": "^3.21.0",
|
|
32
|
+
"@opentiny/vue-switch": "^3.21.0",
|
|
33
|
+
"@opentiny/vue-tab-item": "^3.21.0",
|
|
34
|
+
"@opentiny/vue-tabs": "^3.21.0",
|
|
28
35
|
"@opentiny/vue-tooltip": "^3.22.0",
|
|
29
36
|
"@vueuse/core": "^13.1.0",
|
|
30
37
|
"markdown-it": "^14.1.0"
|
|
@@ -44,5 +51,5 @@
|
|
|
44
51
|
"vue": "^3.3.11",
|
|
45
52
|
"vue-tsc": "^2.2.8"
|
|
46
53
|
},
|
|
47
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "0ab0619a9f27a1de28885cd0f1997cd88816406a"
|
|
48
55
|
}
|