@opentiny/tiny-robot 0.3.0-alpha.6 → 0.3.0-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 +15 -15
- package/dist/attachments/index.js +526 -0
- package/dist/base-popper/index.js +1 -1
- package/dist/bubble/index.js +1949 -1229
- package/dist/container/index.js +12 -12
- package/dist/drag-overlay/index.js +57 -0
- package/dist/dropdown-menu/index.js +4 -4
- package/dist/feedback/index.js +55 -55
- package/dist/flow-layout-buttons/index.js +24 -24
- package/dist/history/index.js +46 -46
- package/dist/index.d.ts +1867 -200
- package/dist/index.js +207 -63
- package/dist/index2.js +610 -593
- package/dist/index3.js +676 -134
- package/dist/index4.js +137 -306
- package/dist/index5.js +270 -591
- package/dist/index6.js +795 -599
- package/dist/index7.js +3622 -1717
- package/dist/loading.js +4 -0
- package/dist/mcp-server-picker/index.js +29682 -0
- package/dist/question/index.js +28 -28
- package/dist/sender/index.js +709 -659
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +22 -22
- package/dist/suggestion-pills/index.js +25 -25
- package/dist/suggestion-popover/index.js +182 -184
- package/dist/tiny-robot-svgs.js +727 -178
- package/dist/useSlotRefs.js +12 -12
- package/package.json +9 -3
package/dist/useSlotRefs.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { computed as
|
|
1
|
+
import { f as v } from "./index3.js";
|
|
2
|
+
import { computed as s, Fragment as d, ref as h, watch as p } from "vue";
|
|
3
3
|
function E(l, i) {
|
|
4
|
-
const u =
|
|
4
|
+
const u = s(() => {
|
|
5
5
|
const t = (l == null ? void 0 : l()) || [];
|
|
6
|
-
let
|
|
7
|
-
const
|
|
6
|
+
let f = 0;
|
|
7
|
+
const o = (e) => typeof e == "symbol" || e == null ? e : `fg${f}-${e}`;
|
|
8
8
|
return t.map((e) => {
|
|
9
|
-
if (e.type ===
|
|
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 = o(r.key));
|
|
12
|
+
return f++, e.children;
|
|
13
13
|
}
|
|
14
14
|
return e;
|
|
15
15
|
}).flat();
|
|
16
|
-
}), c =
|
|
17
|
-
const
|
|
18
|
-
|
|
16
|
+
}), c = s(() => i ? u.value.length : 1), m = s(() => u.value.slice(0, c.value)), n = h([]), a = (t, f) => {
|
|
17
|
+
const o = v(t);
|
|
18
|
+
o instanceof Element && (n.value[f] = o);
|
|
19
19
|
};
|
|
20
20
|
return p(
|
|
21
21
|
c,
|
|
@@ -25,7 +25,7 @@ function E(l, i) {
|
|
|
25
25
|
{ flush: "post" }
|
|
26
26
|
), {
|
|
27
27
|
vnodes: m,
|
|
28
|
-
ref:
|
|
28
|
+
ref: s(() => n.value.at(0)),
|
|
29
29
|
refs: n,
|
|
30
30
|
setRef: (t) => a(t, 0),
|
|
31
31
|
setRefs: a
|
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.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,13 +20,19 @@
|
|
|
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.8",
|
|
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-select": "^3.21.0",
|
|
30
|
+
"@opentiny/vue-switch": "^3.21.0",
|
|
31
|
+
"@opentiny/vue-tab-item": "^3.21.0",
|
|
32
|
+
"@opentiny/vue-tabs": "^3.21.0",
|
|
28
33
|
"@opentiny/vue-tooltip": "^3.22.0",
|
|
29
34
|
"@vueuse/core": "^13.1.0",
|
|
35
|
+
"dompurify": "^3.2.6",
|
|
30
36
|
"markdown-it": "^14.1.0"
|
|
31
37
|
},
|
|
32
38
|
"devDependencies": {
|
|
@@ -44,5 +50,5 @@
|
|
|
44
50
|
"vue": "^3.3.11",
|
|
45
51
|
"vue-tsc": "^2.2.8"
|
|
46
52
|
},
|
|
47
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "eea448ecc04bfc502c60eb7fd5437603e3559e27"
|
|
48
54
|
}
|