@opentiny/tiny-robot 0.3.0-alpha.11 → 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 +189 -35
- package/dist/index.js +47 -43
- package/dist/index2.js +7 -6
- package/dist/index3.js +426 -418
- package/dist/index4.js +98 -88
- 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 +64 -64
- 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/question/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as m, computed as A, watch as H, defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { ref as m, computed as A, watch as H, defineComponent as j, onMounted as Z, onBeforeUnmount as ne, createElementBlock as d, openBlock as i, normalizeClass as N, createElementVNode as t, withDirectives as le, Fragment as R, renderList as V, createVNode as T, unref as q, toDisplayString as S, vShow as ie, nextTick as ae, createCommentVNode as U, withModifiers as ce, normalizeStyle as ue, renderSlot as B, createTextVNode as ee, createBlock as K, withCtx as I } from "vue";
|
|
2
|
+
import { w as X, W as te, V as se, f as de, d as re } from "../tiny-robot-svgs.js";
|
|
3
3
|
import { i as me } from "../close.js";
|
|
4
4
|
import { B as ve } from "../index5.js";
|
|
5
5
|
function he(v = m([])) {
|
|
@@ -46,7 +46,7 @@ function he(v = m([])) {
|
|
|
46
46
|
toggleBodyScroll: b
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-questions_expanded-wrapper" }, ge = { class: "tr-common-questions_expanded-area" }, ye = ["onClick"], ke = { class: "tr-common-questions_item_icon" }, _e = { class: "tr-common-questions_item_text" }, Ce = { class: "tr-common-questions_container" }, qe = ["onClick"], $e = { class: "tr-common-questions_item_icon" }, we = { class: "tr-common-questions_item_text" }, xe = /* @__PURE__ */
|
|
49
|
+
const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-questions_expanded-wrapper" }, ge = { class: "tr-common-questions_expanded-area" }, ye = ["onClick"], ke = { class: "tr-common-questions_item_icon" }, _e = { class: "tr-common-questions_item_text" }, Ce = { class: "tr-common-questions_container" }, qe = ["onClick"], $e = { class: "tr-common-questions_item_icon" }, we = { class: "tr-common-questions_item_text" }, xe = /* @__PURE__ */ j({
|
|
50
50
|
__name: "CommonQuestions",
|
|
51
51
|
props: {
|
|
52
52
|
questions: {
|
|
@@ -74,8 +74,8 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
74
74
|
const L = Math.min(3, h.length);
|
|
75
75
|
for (let z = 0; z < L; z++) {
|
|
76
76
|
g.innerHTML = `<span class="icon-placeholder"></span>${h[z].text}`;
|
|
77
|
-
const
|
|
78
|
-
O +=
|
|
77
|
+
const G = g.offsetWidth + Q + 24;
|
|
78
|
+
O += G;
|
|
79
79
|
}
|
|
80
80
|
const M = O / L;
|
|
81
81
|
return e.removeChild(g), {
|
|
@@ -91,8 +91,8 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
91
91
|
for (let z = 0; z < h.length; z++) {
|
|
92
92
|
const D = h[z];
|
|
93
93
|
M.innerHTML = `<span class="icon-placeholder"></span>${D.text}`;
|
|
94
|
-
const
|
|
95
|
-
L +
|
|
94
|
+
const J = M.offsetWidth + 8 + 24, oe = $ - E;
|
|
95
|
+
L + J <= oe ? (L += J, g.push(D)) : O.push(D);
|
|
96
96
|
}
|
|
97
97
|
return e.removeChild(M), { visible: g, hidden: O };
|
|
98
98
|
};
|
|
@@ -157,7 +157,7 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
157
157
|
onClick: (O) => n(Q)
|
|
158
158
|
}, [
|
|
159
159
|
t("div", ke, [
|
|
160
|
-
T(q(
|
|
160
|
+
T(q(X))
|
|
161
161
|
]),
|
|
162
162
|
t("div", _e, S(Q.text), 1)
|
|
163
163
|
], 8, ye))), 128))
|
|
@@ -173,7 +173,7 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
173
173
|
onClick: (Q) => n($)
|
|
174
174
|
}, [
|
|
175
175
|
t("div", $e, [
|
|
176
|
-
T(q(
|
|
176
|
+
T(q(X))
|
|
177
177
|
]),
|
|
178
178
|
t("div", we, S($.text), 1)
|
|
179
179
|
], 10, qe))), 128))
|
|
@@ -190,7 +190,7 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
190
190
|
}, Se = { key: 1 }, Oe = ["onClick"], ze = {
|
|
191
191
|
key: 2,
|
|
192
192
|
class: "tr-question-empty"
|
|
193
|
-
}, Le = /* @__PURE__ */
|
|
193
|
+
}, Le = /* @__PURE__ */ j({
|
|
194
194
|
__name: "HotQuestions",
|
|
195
195
|
props: {
|
|
196
196
|
visible: {
|
|
@@ -313,7 +313,7 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
313
313
|
], 36)
|
|
314
314
|
], 32)) : U("", !0);
|
|
315
315
|
}
|
|
316
|
-
}), Re = ["data-theme"], Ve = { class: "tr-question__header" }, Ae = { class: "category-icon" }, F = /* @__PURE__ */
|
|
316
|
+
}), Re = ["data-theme"], Ve = { class: "tr-question__header" }, Ae = { class: "category-icon" }, F = /* @__PURE__ */ j({
|
|
317
317
|
__name: "index",
|
|
318
318
|
props: {
|
|
319
319
|
categories: { default: () => [] },
|
|
@@ -373,7 +373,7 @@ const pe = { class: "tr-common-questions_content" }, fe = { class: "tr-common-qu
|
|
|
373
373
|
class: "tr-question__expand-button",
|
|
374
374
|
onClick: r
|
|
375
375
|
}, [
|
|
376
|
-
p.value ? (i(),
|
|
376
|
+
p.value ? (i(), K(q(re), { key: 1 })) : (i(), K(q(de), { key: 0 }))
|
|
377
377
|
])) : U("", !0)
|
|
378
378
|
]),
|
|
379
379
|
T(Le, {
|