@automattic/agenttic-ui 0.1.68 → 0.1.69
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/README.md +19 -0
- package/dist/QuestionCard-KolZKB58.js +81 -0
- package/dist/QuestionCard.css +1 -0
- package/dist/components/AgentUIContainer.d.ts.map +1 -1
- package/dist/components/AgentUIContainer.test.d.ts +2 -0
- package/dist/components/AgentUIContainer.test.d.ts.map +1 -0
- package/dist/components/chat/Chat.d.ts.map +1 -1
- package/dist/components/chat/Chat.test.d.ts +2 -0
- package/dist/components/chat/Chat.test.d.ts.map +1 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/question/QuestionCard.d.ts +13 -0
- package/dist/components/question/QuestionCard.d.ts.map +1 -0
- package/dist/components/question/QuestionCard.test.d.ts +2 -0
- package/dist/components/question/QuestionCard.test.d.ts.map +1 -0
- package/dist/components/question/index.d.ts +3 -0
- package/dist/components/question/index.d.ts.map +1 -0
- package/dist/embedded-agent-ui.css +1 -1
- package/dist/embedded-agent-ui.d.ts +3 -1
- package/dist/embedded-agent-ui.d.ts.map +1 -1
- package/dist/embedded-agent-ui.js +114 -112
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1695 -1634
- package/dist/markdown-extensions/charts/index.d.ts +15 -15
- package/dist/types/index.d.ts +1 -20
- package/dist/types/index.d.ts.map +1 -1
- package/dist/utils/chatStorage.d.ts +21 -0
- package/dist/utils/chatStorage.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,90 +1,91 @@
|
|
|
1
1
|
import { jsx as t, Fragment as I, jsxs as f } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as P, useState as
|
|
2
|
+
import { createContext as P, useState as E, useRef as R, useCallback as F, useContext as T } from "react";
|
|
3
3
|
import { __ as g } from "@wordpress/i18n";
|
|
4
|
+
import { Q as D } from "./QuestionCard-KolZKB58.js";
|
|
4
5
|
function L(n) {
|
|
5
6
|
const e = n.trim();
|
|
6
7
|
if (/^(https?:|mailto:)/i.test(e))
|
|
7
8
|
return e;
|
|
8
9
|
}
|
|
9
10
|
function y(n) {
|
|
10
|
-
const e = [],
|
|
11
|
-
let i = 0,
|
|
12
|
-
for (;
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
11
|
+
const e = [], r = /(\[[^\]]+\]\([^\)]+\)|`[^`]+`|\*\*[^*]+\*\*|__[^_]+__|\*[^*]+\*|_[^_]+_)/g;
|
|
12
|
+
let i = 0, s;
|
|
13
|
+
for (; s = r.exec(n); ) {
|
|
14
|
+
s.index > i && e.push(n.slice(i, s.index));
|
|
15
|
+
const a = s[0], c = `${s.index}-${a}`, l = a.match(/^\[([^\]]+)\]\(([^\)]+)\)$/);
|
|
16
|
+
if (l) {
|
|
17
|
+
const d = L(l[2]);
|
|
17
18
|
e.push(
|
|
18
|
-
|
|
19
|
+
d ? /* @__PURE__ */ t(
|
|
19
20
|
"a",
|
|
20
21
|
{
|
|
21
|
-
href:
|
|
22
|
+
href: d,
|
|
22
23
|
rel: "noreferrer",
|
|
23
24
|
target: "_blank",
|
|
24
|
-
children:
|
|
25
|
+
children: l[1]
|
|
25
26
|
},
|
|
26
|
-
|
|
27
|
-
) :
|
|
27
|
+
c
|
|
28
|
+
) : a
|
|
28
29
|
);
|
|
29
|
-
} else
|
|
30
|
-
i =
|
|
30
|
+
} else a.startsWith("`") ? e.push(/* @__PURE__ */ t("code", { children: a.slice(1, -1) }, c)) : a.startsWith("**") || a.startsWith("__") ? e.push(/* @__PURE__ */ t("strong", { children: a.slice(2, -2) }, c)) : e.push(/* @__PURE__ */ t("em", { children: a.slice(1, -1) }, c));
|
|
31
|
+
i = r.lastIndex;
|
|
31
32
|
}
|
|
32
33
|
return i < n.length && e.push(n.slice(i)), e;
|
|
33
34
|
}
|
|
34
|
-
function v(n, e,
|
|
35
|
+
function v(n, e, r, i) {
|
|
35
36
|
if (e.length === 0)
|
|
36
37
|
return;
|
|
37
|
-
const
|
|
38
|
+
const s = e.map((a, c) => /* @__PURE__ */ t("li", { children: y(a) }, c));
|
|
38
39
|
n.push(
|
|
39
|
-
|
|
40
|
+
r ? /* @__PURE__ */ t("ol", { children: s }, i) : /* @__PURE__ */ t("ul", { children: s }, i)
|
|
40
41
|
), e.length = 0;
|
|
41
42
|
}
|
|
42
43
|
function W({
|
|
43
44
|
children: n
|
|
44
45
|
}) {
|
|
45
|
-
const e = [],
|
|
46
|
-
let i = !1,
|
|
47
|
-
return n.split(/\r?\n/).forEach((
|
|
48
|
-
if (
|
|
49
|
-
|
|
50
|
-
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { children:
|
|
51
|
-
`) }) }, `code-${
|
|
52
|
-
),
|
|
46
|
+
const e = [], r = [];
|
|
47
|
+
let i = !1, s = !1, a = [];
|
|
48
|
+
return n.split(/\r?\n/).forEach((c, l) => {
|
|
49
|
+
if (c.startsWith("```")) {
|
|
50
|
+
s ? (e.push(
|
|
51
|
+
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { children: a.join(`
|
|
52
|
+
`) }) }, `code-${l}`)
|
|
53
|
+
), a = [], s = !1) : (v(e, r, i, `list-${l}`), s = !0);
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
|
-
if (
|
|
56
|
-
|
|
56
|
+
if (s) {
|
|
57
|
+
a.push(c);
|
|
57
58
|
return;
|
|
58
59
|
}
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
60
|
+
const d = c.match(/^\s*[-*]\s+(.+)$/), o = c.match(/^\s*\d+\.\s+(.+)$/);
|
|
61
|
+
if (d || o) {
|
|
61
62
|
const h = !!o;
|
|
62
|
-
|
|
63
|
-
((o == null ? void 0 : o[1]) ?? (
|
|
63
|
+
r.length && i !== h && v(e, r, i, `list-${l}`), i = h, r.push(
|
|
64
|
+
((o == null ? void 0 : o[1]) ?? (d == null ? void 0 : d[1]) ?? "").trim()
|
|
64
65
|
);
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
if (v(e,
|
|
68
|
+
if (v(e, r, i, `list-${l}`), !c.trim())
|
|
68
69
|
return;
|
|
69
|
-
const u =
|
|
70
|
+
const u = c.match(/^(#{1,3})\s+(.+)$/);
|
|
70
71
|
if (u) {
|
|
71
72
|
const p = `h${u[1].length}`;
|
|
72
73
|
e.push(
|
|
73
|
-
/* @__PURE__ */ t(p, { children: y(u[2]) }, `heading-${
|
|
74
|
+
/* @__PURE__ */ t(p, { children: y(u[2]) }, `heading-${l}`)
|
|
74
75
|
);
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
77
78
|
e.push(
|
|
78
|
-
/* @__PURE__ */ t("p", { children: y(
|
|
79
|
+
/* @__PURE__ */ t("p", { children: y(c) }, `paragraph-${l}`)
|
|
79
80
|
);
|
|
80
|
-
}), v(e,
|
|
81
|
-
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { children:
|
|
81
|
+
}), v(e, r, i, "list-final"), s && a.length && e.push(
|
|
82
|
+
/* @__PURE__ */ t("pre", { children: /* @__PURE__ */ t("code", { children: a.join(`
|
|
82
83
|
`) }) }, "code-final")
|
|
83
84
|
), /* @__PURE__ */ t(I, { children: e });
|
|
84
85
|
}
|
|
85
|
-
const
|
|
86
|
+
const N = P(null);
|
|
86
87
|
function b() {
|
|
87
|
-
const n = T(
|
|
88
|
+
const n = T(N);
|
|
88
89
|
if (!n)
|
|
89
90
|
throw new Error(
|
|
90
91
|
"Embedded AgentUI compound components must be rendered inside AgentUI.Container."
|
|
@@ -97,20 +98,20 @@ function O({ content: n }) {
|
|
|
97
98
|
function X({
|
|
98
99
|
heading: n,
|
|
99
100
|
help: e,
|
|
100
|
-
suggestions:
|
|
101
|
+
suggestions: r,
|
|
101
102
|
onSuggestionClick: i
|
|
102
103
|
}) {
|
|
103
104
|
return /* @__PURE__ */ f("div", { className: "agenttic-embedded__empty", children: [
|
|
104
105
|
n && /* @__PURE__ */ t("h2", { children: n }),
|
|
105
106
|
e && /* @__PURE__ */ t("p", { children: e }),
|
|
106
|
-
|
|
107
|
+
r != null && r.length ? /* @__PURE__ */ t("div", { className: "agenttic-embedded__suggestions", children: r.map((s) => /* @__PURE__ */ t(
|
|
107
108
|
"button",
|
|
108
109
|
{
|
|
109
110
|
type: "button",
|
|
110
|
-
onClick: () => i == null ? void 0 : i(
|
|
111
|
-
children:
|
|
111
|
+
onClick: () => i == null ? void 0 : i(s),
|
|
112
|
+
children: s.label
|
|
112
113
|
},
|
|
113
|
-
|
|
114
|
+
s.id
|
|
114
115
|
)) }) : null
|
|
115
116
|
] });
|
|
116
117
|
}
|
|
@@ -119,32 +120,32 @@ function U(n) {
|
|
|
119
120
|
(e) => e.type === "text" || e.type === "component"
|
|
120
121
|
);
|
|
121
122
|
}
|
|
122
|
-
function
|
|
123
|
-
const { messageRenderer: e } = b(),
|
|
123
|
+
function Q({ message: n }) {
|
|
124
|
+
const { messageRenderer: e } = b(), r = e ?? W;
|
|
124
125
|
return /* @__PURE__ */ t(
|
|
125
126
|
"div",
|
|
126
127
|
{
|
|
127
128
|
"data-slot": "message",
|
|
128
129
|
"data-role": n.role,
|
|
129
130
|
className: `agenttic-embedded__message agenttic-embedded__message--${n.role}`,
|
|
130
|
-
children: U(n).map((i,
|
|
131
|
+
children: U(n).map((i, s) => {
|
|
131
132
|
if (i.type === "text" && i.text)
|
|
132
133
|
return /* @__PURE__ */ t(
|
|
133
134
|
"div",
|
|
134
135
|
{
|
|
135
136
|
className: "agenttic-embedded__bubble",
|
|
136
|
-
children: /* @__PURE__ */ t(
|
|
137
|
+
children: /* @__PURE__ */ t(r, { children: i.text })
|
|
137
138
|
},
|
|
138
|
-
|
|
139
|
+
s
|
|
139
140
|
);
|
|
140
141
|
if (i.type === "component" && i.component) {
|
|
141
|
-
const
|
|
142
|
+
const a = i.component;
|
|
142
143
|
return /* @__PURE__ */ t(
|
|
143
|
-
|
|
144
|
+
a,
|
|
144
145
|
{
|
|
145
146
|
...i.componentProps || {}
|
|
146
147
|
},
|
|
147
|
-
|
|
148
|
+
s
|
|
148
149
|
);
|
|
149
150
|
}
|
|
150
151
|
return null;
|
|
@@ -157,15 +158,15 @@ function $({
|
|
|
157
158
|
} = {}) {
|
|
158
159
|
const {
|
|
159
160
|
messages: e,
|
|
160
|
-
isProcessing:
|
|
161
|
+
isProcessing: r,
|
|
161
162
|
error: i,
|
|
162
|
-
emptyView:
|
|
163
|
-
thinkingMessage:
|
|
164
|
-
messagesPosition:
|
|
165
|
-
} = b(),
|
|
166
|
-
(
|
|
163
|
+
emptyView: s,
|
|
164
|
+
thinkingMessage: a,
|
|
165
|
+
messagesPosition: c
|
|
166
|
+
} = b(), l = e.filter(
|
|
167
|
+
(d) => U(d).length > 0
|
|
167
168
|
);
|
|
168
|
-
return
|
|
169
|
+
return l.length === 0 && !r ? s ? /* @__PURE__ */ t(
|
|
169
170
|
"div",
|
|
170
171
|
{
|
|
171
172
|
"data-slot": "messages",
|
|
@@ -174,7 +175,7 @@ function $({
|
|
|
174
175
|
"agenttic-embedded__messages--empty",
|
|
175
176
|
n
|
|
176
177
|
].filter(Boolean).join(" "),
|
|
177
|
-
children:
|
|
178
|
+
children: s
|
|
178
179
|
}
|
|
179
180
|
) : null : /* @__PURE__ */ f(
|
|
180
181
|
"div",
|
|
@@ -182,18 +183,18 @@ function $({
|
|
|
182
183
|
"data-slot": "messages",
|
|
183
184
|
className: [
|
|
184
185
|
"agenttic-embedded__messages",
|
|
185
|
-
|
|
186
|
+
c === "bottom" ? "agenttic-embedded__messages--bottom" : "",
|
|
186
187
|
n
|
|
187
188
|
].filter(Boolean).join(" "),
|
|
188
189
|
children: [
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
l.map((d) => /* @__PURE__ */ t(
|
|
191
|
+
Q,
|
|
191
192
|
{
|
|
192
|
-
message:
|
|
193
|
+
message: d
|
|
193
194
|
},
|
|
194
|
-
|
|
195
|
+
d.reactKey || d.id
|
|
195
196
|
)),
|
|
196
|
-
|
|
197
|
+
r && /* @__PURE__ */ t(O, { content: a }),
|
|
197
198
|
i && /* @__PURE__ */ t("div", { className: "agenttic-embedded__error", children: i })
|
|
198
199
|
]
|
|
199
200
|
}
|
|
@@ -202,32 +203,32 @@ function $({
|
|
|
202
203
|
function j({
|
|
203
204
|
className: n,
|
|
204
205
|
showSuggestions: e,
|
|
205
|
-
onSelect:
|
|
206
|
+
onSelect: r
|
|
206
207
|
} = {}) {
|
|
207
208
|
const {
|
|
208
209
|
inputValue: i,
|
|
209
|
-
setInputValue:
|
|
210
|
-
suggestions:
|
|
211
|
-
clearSuggestions:
|
|
212
|
-
onSuggestionClick:
|
|
213
|
-
submit:
|
|
210
|
+
setInputValue: s,
|
|
211
|
+
suggestions: a,
|
|
212
|
+
clearSuggestions: c,
|
|
213
|
+
onSuggestionClick: l,
|
|
214
|
+
submit: d
|
|
214
215
|
} = b();
|
|
215
|
-
return i && !e || !(
|
|
216
|
+
return i && !e || !(a != null && a.length) ? null : /* @__PURE__ */ t(
|
|
216
217
|
"div",
|
|
217
218
|
{
|
|
218
219
|
className: ["agenttic-embedded__suggestions", n].filter(Boolean).join(" "),
|
|
219
|
-
children:
|
|
220
|
+
children: a.map((o) => {
|
|
220
221
|
const u = o.prompt ?? o.label;
|
|
221
222
|
return /* @__PURE__ */ t(
|
|
222
223
|
"button",
|
|
223
224
|
{
|
|
224
225
|
type: "button",
|
|
225
226
|
onClick: async () => {
|
|
226
|
-
if (
|
|
227
|
-
await
|
|
227
|
+
if (r == null || r(u), l == null || l(o, a), c == null || c(), o.autoSubmit) {
|
|
228
|
+
await d(u);
|
|
228
229
|
return;
|
|
229
230
|
}
|
|
230
|
-
|
|
231
|
+
s(u);
|
|
231
232
|
},
|
|
232
233
|
children: o.label
|
|
233
234
|
},
|
|
@@ -259,33 +260,33 @@ function x({
|
|
|
259
260
|
function V({
|
|
260
261
|
className: n,
|
|
261
262
|
disabled: e,
|
|
262
|
-
onKeyDown:
|
|
263
|
+
onKeyDown: r
|
|
263
264
|
} = {}) {
|
|
264
265
|
const {
|
|
265
266
|
acceptedFileTypes: i,
|
|
266
|
-
allowAttachments:
|
|
267
|
-
fileInputRef:
|
|
268
|
-
files:
|
|
269
|
-
inputValue:
|
|
270
|
-
isProcessing:
|
|
267
|
+
allowAttachments: s,
|
|
268
|
+
fileInputRef: a,
|
|
269
|
+
files: c,
|
|
270
|
+
inputValue: l,
|
|
271
|
+
isProcessing: d,
|
|
271
272
|
maxInputLength: o = 600,
|
|
272
273
|
onStop: u,
|
|
273
274
|
placeholder: h,
|
|
274
275
|
setFiles: p,
|
|
275
276
|
setInputValue: _,
|
|
276
277
|
submit: A
|
|
277
|
-
} = b(),
|
|
278
|
+
} = b(), C = !e && (d || !!l.trim() && l.length <= o), k = Array.isArray(h) ? h[0] : h;
|
|
278
279
|
return /* @__PURE__ */ f(
|
|
279
280
|
"div",
|
|
280
281
|
{
|
|
281
282
|
"data-slot": "chat-input",
|
|
282
283
|
className: ["agenttic-embedded__input", n].filter(Boolean).join(" "),
|
|
283
284
|
children: [
|
|
284
|
-
|
|
285
|
+
s && /* @__PURE__ */ f(I, { children: [
|
|
285
286
|
/* @__PURE__ */ t(
|
|
286
287
|
"input",
|
|
287
288
|
{
|
|
288
|
-
ref:
|
|
289
|
+
ref: a,
|
|
289
290
|
type: "file",
|
|
290
291
|
multiple: !0,
|
|
291
292
|
accept: i == null ? void 0 : i.join(","),
|
|
@@ -302,7 +303,7 @@ function V({
|
|
|
302
303
|
"aria-label": g("Upload file", "a8c-agenttic"),
|
|
303
304
|
onClick: () => {
|
|
304
305
|
var m;
|
|
305
|
-
return (m =
|
|
306
|
+
return (m = a.current) == null ? void 0 : m.click();
|
|
306
307
|
},
|
|
307
308
|
children: "+"
|
|
308
309
|
}
|
|
@@ -313,10 +314,10 @@ function V({
|
|
|
313
314
|
{
|
|
314
315
|
"aria-label": g("Chat input", "a8c-agenttic"),
|
|
315
316
|
placeholder: k,
|
|
316
|
-
value:
|
|
317
|
+
value: l,
|
|
317
318
|
onChange: (m) => _(m.currentTarget.value),
|
|
318
319
|
onKeyDown: (m) => {
|
|
319
|
-
|
|
320
|
+
r == null || r(m), !m.defaultPrevented && m.key === "Enter" && !m.shiftKey && C && !d && (m.preventDefault(), A());
|
|
320
321
|
}
|
|
321
322
|
}
|
|
322
323
|
),
|
|
@@ -324,19 +325,19 @@ function V({
|
|
|
324
325
|
"button",
|
|
325
326
|
{
|
|
326
327
|
type: "button",
|
|
327
|
-
"aria-label":
|
|
328
|
-
disabled: !
|
|
328
|
+
"aria-label": d ? g("Stop processing", "a8c-agenttic") : g("Send message", "a8c-agenttic"),
|
|
329
|
+
disabled: !C,
|
|
329
330
|
onClick: () => {
|
|
330
|
-
if (
|
|
331
|
+
if (d) {
|
|
331
332
|
u == null || u();
|
|
332
333
|
return;
|
|
333
334
|
}
|
|
334
335
|
A();
|
|
335
336
|
},
|
|
336
|
-
children:
|
|
337
|
+
children: d ? "■" : "↑"
|
|
337
338
|
}
|
|
338
339
|
),
|
|
339
|
-
|
|
340
|
+
c.length > 0 && /* @__PURE__ */ t("span", { className: "agenttic-embedded__attachment-count", children: c.length })
|
|
340
341
|
]
|
|
341
342
|
}
|
|
342
343
|
);
|
|
@@ -377,27 +378,27 @@ function B({
|
|
|
377
378
|
function M({
|
|
378
379
|
children: n,
|
|
379
380
|
className: e,
|
|
380
|
-
...
|
|
381
|
+
...r
|
|
381
382
|
}) {
|
|
382
|
-
const [i,
|
|
383
|
+
const [i, s] = E(""), [a, c] = E([]), l = R(null), d = r.inputValue ?? i, o = r.onInputChange ?? s, u = F(
|
|
383
384
|
async (p) => {
|
|
384
|
-
const _ = (p ??
|
|
385
|
-
!_ ||
|
|
385
|
+
const _ = (p ?? d).trim();
|
|
386
|
+
!_ || r.isProcessing || (o(""), c([]), await r.onSubmit(
|
|
386
387
|
_,
|
|
387
|
-
|
|
388
|
+
r.allowAttachments ? a : void 0
|
|
388
389
|
));
|
|
389
390
|
},
|
|
390
|
-
[
|
|
391
|
+
[a, d, r, o]
|
|
391
392
|
), h = {
|
|
392
|
-
...
|
|
393
|
-
inputValue:
|
|
393
|
+
...r,
|
|
394
|
+
inputValue: d,
|
|
394
395
|
setInputValue: o,
|
|
395
|
-
files:
|
|
396
|
-
setFiles:
|
|
397
|
-
fileInputRef:
|
|
396
|
+
files: a,
|
|
397
|
+
setFiles: c,
|
|
398
|
+
fileInputRef: l,
|
|
398
399
|
submit: u
|
|
399
400
|
};
|
|
400
|
-
return /* @__PURE__ */ t(
|
|
401
|
+
return /* @__PURE__ */ t(N.Provider, { value: h, children: /* @__PURE__ */ t(
|
|
401
402
|
"div",
|
|
402
403
|
{
|
|
403
404
|
"data-slot": "chat-embedded",
|
|
@@ -406,7 +407,7 @@ function M({
|
|
|
406
407
|
}
|
|
407
408
|
) });
|
|
408
409
|
}
|
|
409
|
-
const
|
|
410
|
+
const H = {
|
|
410
411
|
Container: M,
|
|
411
412
|
ConversationView: B,
|
|
412
413
|
Messages: $,
|
|
@@ -414,13 +415,13 @@ const q = {
|
|
|
414
415
|
Input: V,
|
|
415
416
|
Suggestions: j,
|
|
416
417
|
Notice: x
|
|
417
|
-
},
|
|
418
|
+
}, q = Object.assign(
|
|
418
419
|
(n) => /* @__PURE__ */ t(M, { ...n }),
|
|
419
|
-
|
|
420
|
-
), Y =
|
|
420
|
+
H
|
|
421
|
+
), Y = q;
|
|
421
422
|
export {
|
|
422
423
|
Y as AgentUI,
|
|
423
|
-
|
|
424
|
+
q as EmbeddedAgentUI,
|
|
424
425
|
M as EmbeddedAgentUIContainer,
|
|
425
426
|
B as EmbeddedAgentUIConversationView,
|
|
426
427
|
w as EmbeddedAgentUIFooter,
|
|
@@ -430,5 +431,6 @@ export {
|
|
|
430
431
|
j as EmbeddedAgentUISuggestions,
|
|
431
432
|
X as EmptyView,
|
|
432
433
|
W as LightweightMarkdownRenderer,
|
|
434
|
+
D as QuestionCard,
|
|
433
435
|
O as ThinkingMessage
|
|
434
436
|
};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.button-module_button{align-items:center;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--color-foreground);cursor:pointer;display:inline-flex;flex-shrink:0;font-weight:var(--font-weight-medium);font-size:var(--text-sm);gap:calc(var(--spacing) * .5);justify-content:center;outline:none;transition:var(--transition-colors);letter-spacing:var(--text-base--tracking);white-space:nowrap;height:var(--spacing-8);padding:var(--spacing-2) var(--spacing-3)}.button-module_button:disabled{pointer-events:none;background-color:var(--color-muted);color:var(--color-muted-foreground)}.button-module_button:focus-visible{outline:2px solid var(--color-ring);outline-offset:1.5px}.button-module_pressed{color:var(--color-foreground)}.button-module_pressed svg{color:var(--color-foreground)}.button-module_primary{background-color:var(--color-primary);color:var(--color-primary-foreground)}.button-module_primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_ghost{background-color:transparent;color:var(--color-muted-foreground)}.button-module_ghost svg{color:var(--color-muted-foreground)}.button-module_ghost:hover:not(:disabled){background:transparent;color:var(--color-foreground)}.button-module_ghost:hover:not(:disabled) svg{color:var(--color-foreground)}.button-module_ghost:disabled{background:transparent;opacity:.66}.button-module_ghost:focus-visible{outline-offset:0}.button-module_ghost.button-module_pressed{color:var(--color-foreground)}.button-module_ghost.button-module_pressed svg{color:var(--color-foreground)}.button-module_outline{box-shadow:var(--shadow-outline);background-color:var(--color-background)}.button-module_outline:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.button-module_outline:focus-visible{outline-offset:0}.button-module_outline:disabled{background-color:var(--color-background)}.button-module_outline.button-module_pressed{color:var(--color-foreground)}.button-module_outline.button-module_pressed svg{color:var(--color-foreground)}.button-module_transparent{background-color:color-mix(in srgb,var(--color-background) 95%,transparent);color:var(--color-foreground);box-shadow:var(--shadow-lg)}.button-module_transparent:hover:not(:disabled){background-color:var(--color-background);box-shadow:var(--shadow-lg)}.button-module_link{background-color:transparent;color:var(--color-primary);font-weight:var(--font-weight-semibold);padding-left:var(--spacing-2);padding-right:var(--spacing-2);width:auto}.button-module_link:hover:not(:disabled){color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_link.button-module_pressed{color:var(--color-primary)}.button-module_link.button-module_pressed svg{color:var(--color-primary)}.button-module_icon{border-radius:var(--radius-xs);height:var(--spacing-8);padding:0;width:var(--spacing-8)}.button-module_sm{border-radius:var(--radius-xs);gap:0;height:var(--spacing-6);padding:0;width:var(--spacing-6)}.button-module_sm svg{height:var(--spacing-6);width:var(--spacing-6)}.button-module_lg{height:var(--spacing-10);border-radius:var(--radius-md);font-size:var(--text-base);padding-left:var(--spacing-3\.5);padding-right:var(--spacing-3\.5)}.button-module_withTextAndIcon{padding-left:var(--spacing-1);width:inherit}.button-module_sm.button-module_withTextAndIcon{padding-left:0;padding-right:var(--spacing-1)}.button-module_button svg{flex-shrink:0;pointer-events:none}.CollapsedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:var(--spacing-10)}.Textarea-module_textarea{display:flex;width:100%;border-radius:var(--radius-md);border:0;font-size:var(--text-sm);line-height:var(--text-sm--line-height);background-color:transparent;padding:var(--spacing-2);scrollbar-width:none;resize:none}.Textarea-module_textarea::-moz-placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea::placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea:focus,.Textarea-module_textarea:focus-visible{outline:none;border:0;box-shadow:none}.Textarea-module_textarea:disabled{cursor:not-allowed;opacity:.5}.ChatInput-module_container{display:flex;align-items:end;gap:var(--spacing)}.ChatInput-module_container textarea{color:var(--color-foreground)}.ChatInput-module_textareaContainer{position:relative;flex:1;width:100%}.ChatInput-module_actions{display:flex;flex-direction:row;padding-left:var(--spacing);padding-right:var(--spacing);height:var(--spacing-10);gap:var(--spacing);align-items:center}.ChatInput-module_containerStacked{flex-direction:column;padding:var(--spacing-2);gap:var(--spacing)}.ChatInput-module_containerStacked .ChatInput-module_actions{width:100%;justify-content:space-between;padding-left:0;padding-right:0}.ChatInput-module_containerStacked .ChatInput-module_actions .ChatInput-module_button{min-width:var(--spacing-8);min-height:var(--spacing-8)}.ChatInput-module_button{border-radius:var(--radius-full)}.AnimatedPlaceholder-module_container{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium);padding-left:var(--spacing-2);padding-right:var(--spacing-2);padding-top:var(--spacing-2);pointer-events:none;position:absolute;z-index:1}.SuggestionDropdown-module_container{position:relative}.SuggestionDropdown-module_chevron{margin-left:var(--spacing-0\.5);transition:transform .15s ease;flex-shrink:0}.SuggestionDropdown-module_chevronOpen{transform:rotate(180deg)}.SuggestionDropdown-module_dropdown{display:flex;flex-direction:column;background-color:var(--color-background);border-radius:var(--radius-sm);padding:var(--spacing-2);z-index:1000;box-shadow:var(--shadow-lg)}.agenttic.dark .SuggestionDropdown-module_dropdown{border:1px solid var(--color-muted)}.SuggestionDropdown-module_option{display:flex;align-items:center;width:100%;padding:var(--spacing-2);background:none;border:none;border-radius:var(--radius-sm);color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);font-family:inherit;cursor:pointer;text-align:start;white-space:nowrap}.SuggestionDropdown-module_option:hover{background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.SuggestionDropdown-module_option:focus{outline:none}.SuggestionDropdown-module_option:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.Suggestions-module_container{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:nowrap;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-1\.5);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.Suggestions-module_container::-webkit-scrollbar{display:none}.Suggestions-module_vertical{position:static;flex-direction:column;overflow:visible;gap:0;padding:0}.Suggestions-module_vertical .Suggestions-module_button{width:100%;height:unset;justify-content:start;font-size:var(--text-xs);line-height:20px;padding:14px 16px;border:1px solid var(--color-muted);border-radius:0;box-shadow:none}.Suggestions-module_vertical .Suggestions-module_button:hover{box-shadow:none;background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.Suggestions-module_vertical .Suggestions-module_button:focus-visible{outline-offset:-3px}.Suggestions-module_vertical>div+div .Suggestions-module_button{margin-top:-1px}.Suggestions-module_vertical>div:only-of-type .Suggestions-module_button{border-radius:8px}.Suggestions-module_vertical>div:first-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:8px 8px 0 0}.Suggestions-module_vertical>div:last-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:0 0 8px 8px}.Suggestions-module_floating{flex-direction:column;gap:var(--spacing-1);overflow:visible;padding:1px;padding-bottom:var(--spacing-1);z-index:-1}.MinimizedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:100%;justify-content:flex-start;gap:var(--spacing-2);padding:0 var(--spacing-2)}.MinimizedView-module_button svg:not(.MinimizedView-module_chevron),.MinimizedView-module_button:hover:not(:disabled) svg:not(.MinimizedView-module_chevron){color:var(--color-primary)}.MinimizedView-module_button .MinimizedView-module_chevron,.MinimizedView-module_button:hover:not(:disabled) .MinimizedView-module_chevron{color:var(--color-muted-foreground)}.MinimizedView-module_title{flex:1;min-width:0;font-size:var(--text-base);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Chat-module_container{font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:400;font-family:var(--font-sans);letter-spacing:var(--text-base--tracking);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.Chat-module_container.Chat-module_embedded{height:100%}.Chat-module_container.Chat-module_floating{position:fixed;z-index:50}.Chat-module_container.Chat-module_floating .Chat-module_content{background-color:var(--color-background);color:var(--color-foreground);overflow:hidden;min-height:56px;padding:var(--spacing-2);box-shadow:var(--shadow-lg)}.Chat-module_container.Chat-module_expanded .Chat-module_content{padding:var(--spacing-3)}.Chat-module_container.Chat-module_floating [data-slot=chat-input],.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer,.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer *,.Chat-module_container.Chat-module_floating textarea,.Chat-module_container.Chat-module_floating input{cursor:auto}.Chat-module_container.Chat-module_floating:active{cursor:grabbing}.ChatHeader-module_container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing);cursor:grab}.ChatHeader-module_container:active{cursor:grabbing}.MessageActions-module_container{display:flex;align-items:center;flex-wrap:wrap;margin-top:var(--spacing-2);gap:var(--spacing-1)}.MessageActions-module_container button[aria-hidden=true]{display:none}.Message-module_message{display:flex;align-items:flex-start;padding:var(--spacing) var(--spacing-4);color:var(--color-foreground)}.Message-module_message.Message-module_user{padding:0 var(--spacing-4)}.Message-module_message.Message-module_user .Message-module_bubble{background-color:var(--color-muted);max-width:85%;padding:var(--spacing-3) var(--spacing-4);border-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-sm)}.Message-module_message.Message-module_error{color:var(--color-error)}.Message-module_icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:calc(var(--text-sm) * var(--text-sm--line-height));margin-inline-end:var(--spacing-2)}.Message-module_content{flex:1;text-align:start;word-break:break-word;white-space:normal}.Message-module_message.Message-module_user .Message-module_content{display:flex;justify-content:flex-end}.Message-module_message *{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground)}.Message-module_message p{text-wrap-style:pretty;margin-top:0;margin-bottom:var(--spacing-3)}.Message-module_message a{color:var(--color-link)}.Message-module_message p:last-child{margin-bottom:0}.Message-module_message strong{font-weight:var(--font-weight-semibold)}.Message-module_message ol,.Message-module_message ul{margin-bottom:var(--spacing-3);padding-left:var(--spacing-6);margin-left:var(--spacing-2)}.Message-module_message ul{list-style-type:disc}.Message-module_message p+:where(ol,ul){margin-top:0}.Message-module_message li{margin-bottom:var(--spacing-2)}.Message-module_message li::marker{font-size:var(--text-sm)}.Message-module_message table{width:100%;margin:12px 0;border-collapse:collapse}.Message-module_message th,.Message-module_message td{padding:8px 12px;border:1px solid #ddd;text-align:left}.Message-module_message th{background-color:var(--color-muted);font-weight:600}.Message-module_message.Message-module_disabled{pointer-events:auto;filter:grayscale(50%)}.Message-module_message.Message-module_disabled .Message-module_content{opacity:.6}.Message-module_message.Message-module_disabled *{pointer-events:none}.Message-module_message.Message-module_disabled:hover,.Message-module_message.Message-module_disabled:hover .Message-module_content{pointer-events:auto}.Messages-module_container{display:flex;flex-direction:column;flex:1;padding-top:var(--spacing-1);padding-bottom:var(--spacing-6);gap:var(--spacing-8);overflow-y:auto;height:100%;position:relative;z-index:10}.Messages-module_bottomMessages>*:first-child{margin-top:auto}.animating .Messages-module_container::-webkit-scrollbar{display:none}.Messages-module_container [data-role=user]:has(+[data-role=user]),.Messages-module_container [data-role=agent]:has(+[data-role=agent]),.Messages-module_container [data-role=assistant]:has(+[data-role=assistant]){margin-bottom:calc(-1 * var(--spacing-6))}.Thinking-module_container{display:flex;align-items:flex-start;gap:var(--spacing);padding:0 var(--spacing-2);color:var(--color-muted-foreground);font-size:var(--text-sm)}.Thinking-module_icon{display:flex;align-items:center;justify-content:center}.Thinking-module_icon svg{width:var(--spacing-6);height:var(--spacing-6)}.Thinking-module_content{background:linear-gradient(90deg,color-mix(in srgb,currentColor 30%,transparent),currentColor,color-mix(in srgb,currentColor 30%,transparent));background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:Thinking-module_shimmer 2s infinite linear 0ms}@keyframes Thinking-module_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.Notice-module_container{position:relative;display:flex;align-items:center;margin:calc((var(--spacing-2)) * -1) calc((var(--spacing-2)) * -1) 0;padding:var(--spacing-2) var(--spacing-4);gap:var(--spacing-3);background-color:var(--color-muted);border-radius:calc(var(--radius-lg)) calc(var(--radius-lg)) 0 0;color:var(--color-muted-foreground)}.Notice-module_container *{font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.Notice-module_isSuccess{background-color:var(--color-success-background);color:var(--color-success)}.Notice-module_isSuccess .Notice-module_icon svg path{fill:var(--color-success)}.Notice-module_isWarning{background-color:var(--color-warning-background);color:var(--color-warning)}.Notice-module_isWarning .Notice-module_icon svg path{fill:var(--color-warning)}.Notice-module_isError{background-color:var(--color-error-background);color:var(--color-error)}.Notice-module_isError .Notice-module_icon svg path{fill:var(--color-error)}.Notice-module_content{align-items:center;display:flex;flex:1;gap:var(--spacing);min-width:0}.Notice-module_content *{margin:0}.Notice-module_actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing)}.Notice-module_action{height:auto;font-size:var(--text-xs);font-weight:var(--font-weight-bold);color:var(--color-foreground);border:none;padding:0}.Notice-module_action:hover:not(:disabled){color:var(--color-foreground);opacity:.8}.Notice-module_action:is(:focus,:focus-visible){outline-offset:0}.Notice-module_icon{align-items:center;display:flex;flex-shrink:0;justify-content:center}.Notice-module_icon svg{display:block;height:var(--spacing-5);width:var(--spacing-5)}.Notice-module_dismissible svg{display:block;width:var(--spacing-5);height:var(--spacing-5);color:var(--color-muted-foreground)}.ChatFooter-module_container{background-color:var(--color-popover-muted);border-radius:calc(var(--radius-lg) + 1px);border:1px solid var(--color-muted);color:var(--color-foreground);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-2);position:relative;z-index:10}.ConversationView-module_container{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.ConversationView-module_container.ConversationView-module_withHeader{justify-content:space-between}.ConversationView-module_container:has([data-slot=suggestions]) [data-slot=messages]{padding-bottom:var(--spacing-12)}.AgentUIInputToolbar-module_container{position:relative}.AgentUIInputToolbar-module_button{display:flex;align-items:center;gap:var(--spacing-1);padding:calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);background:var(--color-muted);color:var(--color-foreground);border-radius:calc(var(--radius) - 6px);font-size:var(--text-sm);font-family:inherit;cursor:pointer;border:none}.AgentUIInputToolbar-module_button:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.AgentUIInputToolbar-module_icon{transition:transform .15s ease}.AgentUIInputToolbar-module_iconOpen{transform:rotate(180deg)}.AgentUIInputToolbar-module_dropdown{font-size:var(--text-sm);font-family:inherit;color:var(--color-foreground);background:var(--color-popover-muted);border:1px solid var(--color-muted);border-radius:calc(var(--radius) - 4px);padding:var(--spacing-2);z-index:1000}.AgentUIInputToolbar-module_dropdown:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.ImageUploader-module_container{width:100%;padding:4px 0;align-self:flex-start;position:absolute;pointer-events:none}.ImageUploader-module_container.ImageUploader-module_active{position:relative;pointer-events:auto}.ImageUploader-module_uploader{position:relative;width:100%;transition:opacity .2s ease}.ImageUploader-module_uploader.ImageUploader-module_uploading{opacity:.9}.ImageUploader-module_content{width:100%}.ImageUploader-module_hiddenInput{display:none}.ImageUploader-module_clickArea{cursor:pointer;outline:none;width:100%}.ImageUploader-module_clickArea:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}.ImageUploader-module_draggingMessage{padding:60px 24px;text-align:center;border:1px dashed var(--color-muted);border-radius:12px;background-color:var(--color-muted);margin-bottom:8px;position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.ImageUploader-module_draggingMessage p{margin:0;color:var(--color-muted-foreground);font-size:15px;line-height:1.6}.ImageUploader-module_uploader.ImageUploader-module_draggingOver .ImageUploader-module_draggingMessage{border-color:var(--color-primary);background-color:transparent}.ImageUploader-module_preview{display:flex;flex-wrap:wrap;gap:16px;padding:0}.ImageUploader-module_previewItem{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px;border-radius:8px;border:none;background-color:var(--color-muted);cursor:move;transition:transform .2s ease,box-shadow .2s ease;width:150px}.ImageUploader-module_previewItem:active{cursor:grabbing}.ImageUploader-module_removeButton{position:absolute;top:-5px;right:-8px;width:20px;height:20px;border-radius:50%;border:none;background-color:var(--color-popover-muted, #2F2F2F);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;opacity:0;transition:opacity .2s ease,background-color .2s ease}.ImageUploader-module_removeButton svg{color:var(--color-muted-foreground, #8F8F8F)}.ImageUploader-module_previewItem:hover .ImageUploader-module_removeButton{opacity:1}.ImageUploader-module_removeButton:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.ImageUploader-module_previewImage{width:48px;height:48px;-o-object-fit:cover;object-fit:cover;border-radius:6px;flex-shrink:0}.ImageUploader-module_previewMeta{display:flex;flex-direction:column;gap:0px;flex:1;min-width:0}.ImageUploader-module_previewMeta span.ImageUploader-module_previewFilename{font-size:14px!important;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.ImageUploader-module_previewMeta span.ImageUploader-module_previewType{font-size:12px!important;color:var(--color-muted-foreground);text-transform:uppercase;font-weight:400}.ImageUploader-module_uploadingIndicator{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--color-muted)}.ImageUploader-module_spinner{width:32px;height:32px;border:3px solid var(--color-muted);border-top-color:var(--color-primary);border-radius:50%;animation:ImageUploader-module_spin .8s linear infinite}@keyframes ImageUploader-module_spin{to{transform:rotate(360deg)}}.ImageUploader-module_invalidMessage{padding:16px;background-color:var(--color-error-background);border:1px solid var(--color-error);border-radius:8px;text-align:center}.ImageUploader-module_invalidMessage p{margin:0;color:var(--color-error);font-size:14px}.MessageDivider-module_container{display:flex;align-items:center;margin:var(--spacing-4) 0}.MessageDivider-module_line{flex:1;height:1px;background-color:var(--color-muted)}.MessageDivider-module_message{padding:0 var(--spacing-3);color:var(--color-muted-foreground);font-size:var(--text-sm)}.EmptyView-module_container{display:flex;flex-direction:column;align-items:start;justify-content:end;height:100%;gap:var(--spacing-6)}.EmptyView-module_icon{font-size:calc(3 * var(--base-font-size));line-height:1;padding:0 var(--spacing-4);color:var(--color-link)}.EmptyView-module_heading,.EmptyView-module_help{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground);margin:0;padding:var(--spacing) var(--spacing-4);max-width:400px}.EmptyView-module_suggestionsWrapper{width:100%;max-width:500px;position:relative}.ImageRenderer-module_container{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:100%}.ImageRenderer-module_imageButton{position:relative;border:none;background:none;cursor:pointer;border-radius:calc(var(--radius-sm) + 1px);overflow:hidden;transition:var(--transition-colors);border:1px solid transparent;padding:1px}.ImageRenderer-module_imageButton:hover{border-color:var(--color-muted-foreground)}.ImageRenderer-module_imageButton.ImageRenderer-module_selected{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);border-radius:calc(var(--radius-sm) + 1px)}.ImageRenderer-module_imageButton.ImageRenderer-module_disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.ImageRenderer-module_image{width:100%;height:auto;display:block;border-radius:var(--radius-sm);-o-object-fit:cover;object-fit:cover}.ImageRenderer-module_header{display:flex;margin-bottom:var(--spacing-1);color:var(--color-muted-foreground)}.agenttic .chart-block{--jp-gray-80: var(--color-foreground);margin:var(--spacing-1) 0;position:relative;width:100%;max-width:100%;box-sizing:border-box;overflow:visible;z-index:1000;font-family:var(--font-sans)}.agenttic .chart-block-title{margin:0 0 var(--spacing-2) 0;font-size:var(--text-sm);font-family:inherit;font-weight:var(--font-weight-bold, 700);word-wrap:break-word;white-space:normal;line-height:var(--text-sm--line-height);-webkit-hyphens:auto;hyphens:auto}.agenttic .chart-container{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;z-index:1001;overflow:visible;position:relative;box-sizing:border-box}.agenttic .chart-container svg{overflow:visible!important}.agenttic .chart-error{padding:var(--spacing-4);border:1px solid var(--color-error);border-radius:var(--radius-sm);background-color:var(--color-muted);color:var(--color-error);font-size:var(--text-sm)}.agenttic .chart-error strong{display:inline-block;margin-bottom:var(--spacing-1)}.agenttic .chart-error details{margin-top:var(--spacing-2)}.agenttic .chart-error details summary{cursor:pointer;color:var(--color-muted-foreground)}.agenttic .chart-error details pre{margin-top:var(--spacing-2);padding:var(--spacing-2);background-color:var(--color-muted);border-radius:var(--radius-sm);overflow:auto;font-size:var(--text-sm)}.agenttic .chart-tooltip{line-height:1.2;font-size:11px;max-width:120px;min-width:auto;background:#000c;color:#fff;padding:var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.agenttic .chart-tooltip-date{font-size:10px;opacity:.8;margin-bottom:var(--spacing-1);color:#fffc;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row:last-child{margin-bottom:0}.agenttic .chart-tooltip-label{font-weight:var(--font-weight-normal);font-size:11px;color:#fffc;margin-right:var(--spacing-2)}.agenttic .chart-tooltip-value{font-weight:var(--font-weight-semibold);font-size:11px;color:#fff;text-align:right}.agenttic .chart-block .visx-axis-bottom text{font-size:11px}.agenttic .chart-block .visx-axis-bottom text.visx-axis-tick{text-anchor:middle}.agenttic .chart-block .visx-axis-bottom.rotate-labels .visx-axis-tick text{text-anchor:end;transform:rotate(-45deg);transform-origin:right center}.agenttic .chart-block .visx-legend .visx-legend-label{font-size:11px!important;max-width:none!important}.agenttic .chart-block .visx-legend{margin-top:8px;position:relative;z-index:1002}.agenttic .chart-block .visx-legend-item{display:flex;align-items:center;margin:0 8px}.agenttic .chart-block .visx-legend-shape{width:12px;height:12px;margin-right:6px;display:inline-block;flex-shrink:0}.agenttic .chart-block .visx-legend-shape svg{width:100%;height:100%;display:block}.agenttic .chart-block .visx-legend-shape rect{width:100%;height:100%}.agenttic .chart-block .visx-legend-shape circle{r:6;cx:6;cy:6}.agenttic .chart-block .visx-legend>div{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.agenttic .chart-block .visx-legend-item>div:first-child{margin-right:6px}.agenttic .chart-block .visx-legend [class*=legend] svg{opacity:1;visibility:visible}.agenttic .chart-block .visx-legend svg *{opacity:1;visibility:visible;fill:currentColor}.agenttic div[style*="pointer-events: none"][style*="position: absolute"]{z-index:10000!important}.visx-tooltip{z-index:10000!important;max-width:150px!important;word-wrap:break-word!important;white-space:normal!important}
|
|
1
|
+
.button-module_button{align-items:center;border-radius:var(--radius-sm);border:1px solid transparent;color:var(--color-foreground);cursor:pointer;display:inline-flex;flex-shrink:0;font-weight:var(--font-weight-medium);font-size:var(--text-sm);gap:calc(var(--spacing) * .5);justify-content:center;outline:none;transition:var(--transition-colors);letter-spacing:var(--text-base--tracking);white-space:nowrap;height:var(--spacing-8);padding:var(--spacing-2) var(--spacing-3)}.button-module_button:disabled{pointer-events:none;background-color:var(--color-muted);color:var(--color-muted-foreground)}.button-module_button:focus-visible{outline:2px solid var(--color-ring);outline-offset:1.5px}.button-module_pressed{color:var(--color-foreground)}.button-module_pressed svg{color:var(--color-foreground)}.button-module_primary{background-color:var(--color-primary);color:var(--color-primary-foreground)}.button-module_primary:hover:not(:disabled){background-color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_ghost{background-color:transparent;color:var(--color-muted-foreground)}.button-module_ghost svg{color:var(--color-muted-foreground)}.button-module_ghost:hover:not(:disabled){background:transparent;color:var(--color-foreground)}.button-module_ghost:hover:not(:disabled) svg{color:var(--color-foreground)}.button-module_ghost:disabled{background:transparent;opacity:.66}.button-module_ghost:focus-visible{outline-offset:0}.button-module_ghost.button-module_pressed{color:var(--color-foreground)}.button-module_ghost.button-module_pressed svg{color:var(--color-foreground)}.button-module_outline{box-shadow:var(--shadow-outline);background-color:var(--color-background)}.button-module_outline:hover:not(:disabled){box-shadow:var(--shadow-outline-strong)}.button-module_outline:focus-visible{outline-offset:0}.button-module_outline:disabled{background-color:var(--color-background)}.button-module_outline.button-module_pressed{color:var(--color-foreground)}.button-module_outline.button-module_pressed svg{color:var(--color-foreground)}.button-module_transparent{background-color:color-mix(in srgb,var(--color-background) 95%,transparent);color:var(--color-foreground);box-shadow:var(--shadow-lg)}.button-module_transparent:hover:not(:disabled){background-color:var(--color-background);box-shadow:var(--shadow-lg)}.button-module_link{background-color:transparent;color:var(--color-primary);font-weight:var(--font-weight-semibold);padding-left:var(--spacing-2);padding-right:var(--spacing-2);width:auto}.button-module_link:hover:not(:disabled){color:color-mix(in srgb,var(--color-primary) 85%,#000)}.button-module_link.button-module_pressed{color:var(--color-primary)}.button-module_link.button-module_pressed svg{color:var(--color-primary)}.button-module_icon{border-radius:var(--radius-xs);height:var(--spacing-8);padding:0;width:var(--spacing-8)}.button-module_sm{border-radius:var(--radius-xs);gap:0;height:var(--spacing-6);padding:0;width:var(--spacing-6)}.button-module_sm svg{height:var(--spacing-6);width:var(--spacing-6)}.button-module_lg{height:var(--spacing-10);border-radius:var(--radius-md);font-size:var(--text-base);padding-left:var(--spacing-3\.5);padding-right:var(--spacing-3\.5)}.button-module_withTextAndIcon{padding-left:var(--spacing-1);width:inherit}.button-module_sm.button-module_withTextAndIcon{padding-left:0;padding-right:var(--spacing-1)}.button-module_button svg{flex-shrink:0;pointer-events:none}.CollapsedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:var(--spacing-10)}.Textarea-module_textarea{display:flex;width:100%;border-radius:var(--radius-md);border:0;font-size:var(--text-sm);line-height:var(--text-sm--line-height);background-color:transparent;padding:var(--spacing-2);scrollbar-width:none;resize:none}.Textarea-module_textarea::-moz-placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea::placeholder{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium)}.Textarea-module_textarea:focus,.Textarea-module_textarea:focus-visible{outline:none;border:0;box-shadow:none}.Textarea-module_textarea:disabled{cursor:not-allowed;opacity:.5}.ChatInput-module_container{display:flex;align-items:end;gap:var(--spacing)}.ChatInput-module_container textarea{color:var(--color-foreground)}.ChatInput-module_textareaContainer{position:relative;flex:1;width:100%}.ChatInput-module_actions{display:flex;flex-direction:row;padding-left:var(--spacing);padding-right:var(--spacing);height:var(--spacing-10);gap:var(--spacing);align-items:center}.ChatInput-module_containerStacked{flex-direction:column;padding:var(--spacing-2);gap:var(--spacing)}.ChatInput-module_containerStacked .ChatInput-module_actions{width:100%;justify-content:space-between;padding-left:0;padding-right:0}.ChatInput-module_containerStacked .ChatInput-module_actions .ChatInput-module_button{min-width:var(--spacing-8);min-height:var(--spacing-8)}.ChatInput-module_button{border-radius:var(--radius-full)}.AnimatedPlaceholder-module_container{color:var(--color-muted-foreground);font-weight:var(--font-weight-medium);padding-left:var(--spacing-2);padding-right:var(--spacing-2);padding-top:var(--spacing-2);pointer-events:none;position:absolute;z-index:1}.SuggestionDropdown-module_container{position:relative}.SuggestionDropdown-module_chevron{margin-left:var(--spacing-0\.5);transition:transform .15s ease;flex-shrink:0}.SuggestionDropdown-module_chevronOpen{transform:rotate(180deg)}.SuggestionDropdown-module_dropdown{display:flex;flex-direction:column;background-color:var(--color-background);border-radius:var(--radius-sm);padding:var(--spacing-2);z-index:1000;box-shadow:var(--shadow-lg)}.agenttic.dark .SuggestionDropdown-module_dropdown{border:1px solid var(--color-muted)}.SuggestionDropdown-module_option{display:flex;align-items:center;width:100%;padding:var(--spacing-2);background:none;border:none;border-radius:var(--radius-sm);color:var(--color-foreground);font-size:var(--text-sm);font-weight:var(--font-weight-medium);font-family:inherit;cursor:pointer;text-align:start;white-space:nowrap}.SuggestionDropdown-module_option:hover{background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.SuggestionDropdown-module_option:focus{outline:none}.SuggestionDropdown-module_option:focus-visible{outline:2px solid var(--color-primary);outline-offset:-2px}.Suggestions-module_container{position:absolute;top:0;left:0;right:0;display:flex;flex-wrap:nowrap;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-1\.5);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-ms-overflow-style:none}.Suggestions-module_container::-webkit-scrollbar{display:none}.Suggestions-module_vertical{position:static;flex-direction:column;overflow:visible;gap:0;padding:0}.Suggestions-module_vertical .Suggestions-module_button{width:100%;height:unset;justify-content:start;font-size:var(--text-xs);line-height:20px;padding:14px 16px;border:1px solid var(--color-muted);border-radius:0;box-shadow:none}.Suggestions-module_vertical .Suggestions-module_button:hover{box-shadow:none;background-color:color-mix(in srgb,var(--color-background) 50%,var(--color-muted))}.Suggestions-module_vertical .Suggestions-module_button:focus-visible{outline-offset:-3px}.Suggestions-module_vertical>div+div .Suggestions-module_button{margin-top:-1px}.Suggestions-module_vertical>div:only-of-type .Suggestions-module_button{border-radius:8px}.Suggestions-module_vertical>div:first-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:8px 8px 0 0}.Suggestions-module_vertical>div:last-of-type:not(:only-of-type) .Suggestions-module_button{border-radius:0 0 8px 8px}.Suggestions-module_floating{flex-direction:column;gap:var(--spacing-1);overflow:visible;padding:1px;padding-bottom:var(--spacing-1);z-index:-1}.MinimizedView-module_button{border-radius:var(--radius-lg);height:var(--spacing-10);width:100%;justify-content:flex-start;gap:var(--spacing-2);padding:0 var(--spacing-2)}.MinimizedView-module_button svg:not(.MinimizedView-module_chevron),.MinimizedView-module_button:hover:not(:disabled) svg:not(.MinimizedView-module_chevron){color:var(--color-primary)}.MinimizedView-module_button .MinimizedView-module_chevron,.MinimizedView-module_button:hover:not(:disabled) .MinimizedView-module_chevron{color:var(--color-muted-foreground)}.MinimizedView-module_title{flex:1;min-width:0;font-size:var(--text-base);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Chat-module_container{font-size:var(--text-sm);line-height:var(--text-sm--line-height);font-weight:400;font-family:var(--font-sans);letter-spacing:var(--text-base--tracking);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}.Chat-module_container.Chat-module_embedded{height:100%}.Chat-module_container.Chat-module_floating{position:fixed;z-index:50}.Chat-module_container.Chat-module_floating .Chat-module_content{background-color:var(--color-background);color:var(--color-foreground);overflow:hidden;min-height:56px;padding:var(--spacing-2);box-shadow:var(--shadow-lg)}.Chat-module_container.Chat-module_expanded .Chat-module_content{padding:var(--spacing-3)}.Chat-module_container.Chat-module_floating [data-slot=chat-input],.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer,.Chat-module_container.Chat-module_floating [data-slot=chat-input] .Chat-module_textareaContainer *,.Chat-module_container.Chat-module_floating textarea,.Chat-module_container.Chat-module_floating input{cursor:auto}.Chat-module_container.Chat-module_floating:active{cursor:grabbing}.ChatHeader-module_container{display:flex;align-items:center;justify-content:flex-end;gap:var(--spacing);cursor:grab}.ChatHeader-module_container:active{cursor:grabbing}.MessageActions-module_container{display:flex;align-items:center;flex-wrap:wrap;margin-top:var(--spacing-2);gap:var(--spacing-1)}.MessageActions-module_container button[aria-hidden=true]{display:none}.Message-module_message{display:flex;align-items:flex-start;padding:var(--spacing) var(--spacing-4);color:var(--color-foreground)}.Message-module_message.Message-module_user{padding:0 var(--spacing-4)}.Message-module_message.Message-module_user .Message-module_bubble{background-color:var(--color-muted);max-width:85%;padding:var(--spacing-3) var(--spacing-4);border-radius:var(--radius-xl);border-bottom-right-radius:var(--radius-sm)}.Message-module_message.Message-module_error{color:var(--color-error)}.Message-module_icon{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:28px;height:calc(var(--text-sm) * var(--text-sm--line-height));margin-inline-end:var(--spacing-2)}.Message-module_content{flex:1;min-width:0;text-align:start;word-break:break-word;white-space:normal}.Message-module_message.Message-module_user .Message-module_content{display:flex;justify-content:flex-end}.Message-module_bubble{max-width:100%;min-width:0;overflow-wrap:anywhere}.Message-module_bubble pre{max-width:100%;overflow-x:auto;white-space:pre-wrap}.Message-module_message *{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground)}.Message-module_message p{text-wrap-style:pretty;margin-top:0;margin-bottom:var(--spacing-3)}.Message-module_message a{color:var(--color-link)}.Message-module_message p:last-child{margin-bottom:0}.Message-module_message strong{font-weight:var(--font-weight-semibold)}.Message-module_message ol,.Message-module_message ul{margin-bottom:var(--spacing-3);padding-left:var(--spacing-6);margin-left:var(--spacing-2)}.Message-module_message ul{list-style-type:disc}.Message-module_message p+:where(ol,ul){margin-top:0}.Message-module_message li{margin-bottom:var(--spacing-2)}.Message-module_message li::marker{font-size:var(--text-sm)}.Message-module_message table{width:100%;margin:12px 0;border-collapse:collapse}.Message-module_message th,.Message-module_message td{padding:8px 12px;border:1px solid #ddd;text-align:left}.Message-module_message th{background-color:var(--color-muted);font-weight:600}.Message-module_message.Message-module_disabled{pointer-events:auto;filter:grayscale(50%)}.Message-module_message.Message-module_disabled .Message-module_content{opacity:.6}.Message-module_message.Message-module_disabled *{pointer-events:none}.Message-module_message.Message-module_disabled:hover,.Message-module_message.Message-module_disabled:hover .Message-module_content{pointer-events:auto}.Messages-module_container{display:flex;flex-direction:column;flex:1;padding-top:var(--spacing-1);padding-bottom:var(--spacing-6);gap:var(--spacing-8);overflow-y:auto;height:100%;position:relative;z-index:10}.Messages-module_bottomMessages>*:first-child{margin-top:auto}.animating .Messages-module_container::-webkit-scrollbar{display:none}.Messages-module_container [data-role=user]:has(+[data-role=user]),.Messages-module_container [data-role=agent]:has(+[data-role=agent]),.Messages-module_container [data-role=assistant]:has(+[data-role=assistant]){margin-bottom:calc(-1 * var(--spacing-6))}.Thinking-module_container{display:flex;align-items:flex-start;gap:var(--spacing);padding:0 var(--spacing-2);color:var(--color-muted-foreground);font-size:var(--text-sm)}.Thinking-module_icon{display:flex;align-items:center;justify-content:center}.Thinking-module_icon svg{width:var(--spacing-6);height:var(--spacing-6)}.Thinking-module_content{background:linear-gradient(90deg,color-mix(in srgb,currentColor 30%,transparent),currentColor,color-mix(in srgb,currentColor 30%,transparent));background-size:200% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;animation:Thinking-module_shimmer 2s infinite linear 0ms}@keyframes Thinking-module_shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.Notice-module_container{position:relative;display:flex;align-items:center;margin:calc((var(--spacing-2)) * -1) calc((var(--spacing-2)) * -1) 0;padding:var(--spacing-2) var(--spacing-4);gap:var(--spacing-3);background-color:var(--color-muted);border-radius:calc(var(--radius-lg)) calc(var(--radius-lg)) 0 0;color:var(--color-muted-foreground)}.Notice-module_container *{font-size:var(--text-xs);font-weight:var(--font-weight-medium);line-height:var(--text-xs--line-height)}.Notice-module_isSuccess{background-color:var(--color-success-background);color:var(--color-success)}.Notice-module_isSuccess .Notice-module_icon svg path{fill:var(--color-success)}.Notice-module_isWarning{background-color:var(--color-warning-background);color:var(--color-warning)}.Notice-module_isWarning .Notice-module_icon svg path{fill:var(--color-warning)}.Notice-module_isError{background-color:var(--color-error-background);color:var(--color-error)}.Notice-module_isError .Notice-module_icon svg path{fill:var(--color-error)}.Notice-module_content{align-items:center;display:flex;flex:1;gap:var(--spacing);min-width:0}.Notice-module_content *{margin:0}.Notice-module_actions{align-items:center;display:flex;flex-shrink:0;gap:var(--spacing)}.Notice-module_action{height:auto;font-size:var(--text-xs);font-weight:var(--font-weight-bold);color:var(--color-foreground);border:none;padding:0}.Notice-module_action:hover:not(:disabled){color:var(--color-foreground);opacity:.8}.Notice-module_action:is(:focus,:focus-visible){outline-offset:0}.Notice-module_icon{align-items:center;display:flex;flex-shrink:0;justify-content:center}.Notice-module_icon svg{display:block;height:var(--spacing-5);width:var(--spacing-5)}.Notice-module_dismissible svg{display:block;width:var(--spacing-5);height:var(--spacing-5);color:var(--color-muted-foreground)}.ChatFooter-module_container{background-color:var(--color-popover-muted);border-radius:calc(var(--radius-lg) + 1px);border:1px solid var(--color-muted);color:var(--color-foreground);display:flex;flex-direction:column;gap:var(--spacing-2);padding:var(--spacing-2);position:relative;z-index:10}.ConversationView-module_container{display:flex;flex-direction:column;height:100%;justify-content:flex-end}.ConversationView-module_container.ConversationView-module_withHeader{justify-content:space-between}.ConversationView-module_container:has([data-slot=suggestions]) [data-slot=messages]{padding-bottom:var(--spacing-12)}.AgentUIInputToolbar-module_container{position:relative}.AgentUIInputToolbar-module_button{display:flex;align-items:center;gap:var(--spacing-1);padding:calc(var(--spacing) * 1.5) calc(var(--spacing) * 2.5);background:var(--color-muted);color:var(--color-foreground);border-radius:calc(var(--radius) - 6px);font-size:var(--text-sm);font-family:inherit;cursor:pointer;border:none}.AgentUIInputToolbar-module_button:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.AgentUIInputToolbar-module_icon{transition:transform .15s ease}.AgentUIInputToolbar-module_iconOpen{transform:rotate(180deg)}.AgentUIInputToolbar-module_dropdown{font-size:var(--text-sm);font-family:inherit;color:var(--color-foreground);background:var(--color-popover-muted);border:1px solid var(--color-muted);border-radius:calc(var(--radius) - 4px);padding:var(--spacing-2);z-index:1000}.AgentUIInputToolbar-module_dropdown:focus-visible{outline:2px solid var(--color-primary);outline-offset:1.5px}.ImageUploader-module_container{width:100%;padding:4px 0;align-self:flex-start;position:absolute;pointer-events:none}.ImageUploader-module_container.ImageUploader-module_active{position:relative;pointer-events:auto}.ImageUploader-module_uploader{position:relative;width:100%;transition:opacity .2s ease}.ImageUploader-module_uploader.ImageUploader-module_uploading{opacity:.9}.ImageUploader-module_content{width:100%}.ImageUploader-module_hiddenInput{display:none}.ImageUploader-module_clickArea{cursor:pointer;outline:none;width:100%}.ImageUploader-module_clickArea:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px;border-radius:4px}.ImageUploader-module_draggingMessage{padding:60px 24px;text-align:center;border:1px dashed var(--color-muted);border-radius:12px;background-color:var(--color-muted);margin-bottom:8px;position:relative;min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}.ImageUploader-module_draggingMessage p{margin:0;color:var(--color-muted-foreground);font-size:15px;line-height:1.6}.ImageUploader-module_uploader.ImageUploader-module_draggingOver .ImageUploader-module_draggingMessage{border-color:var(--color-primary);background-color:transparent}.ImageUploader-module_preview{display:flex;flex-wrap:wrap;gap:16px;padding:0}.ImageUploader-module_previewItem{position:relative;display:flex;flex-direction:row;align-items:center;gap:12px;padding:8px;border-radius:8px;border:none;background-color:var(--color-muted);cursor:move;transition:transform .2s ease,box-shadow .2s ease;width:150px}.ImageUploader-module_previewItem:active{cursor:grabbing}.ImageUploader-module_removeButton{position:absolute;top:-5px;right:-8px;width:20px;height:20px;border-radius:50%;border:none;background-color:var(--color-popover-muted, #2F2F2F);color:#fff;font-size:16px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:2;padding:0;opacity:0;transition:opacity .2s ease,background-color .2s ease}.ImageUploader-module_removeButton svg{color:var(--color-muted-foreground, #8F8F8F)}.ImageUploader-module_previewItem:hover .ImageUploader-module_removeButton{opacity:1}.ImageUploader-module_removeButton:focus-visible{outline:2px solid var(--color-primary);outline-offset:2px}.ImageUploader-module_previewImage{width:48px;height:48px;-o-object-fit:cover;object-fit:cover;border-radius:6px;flex-shrink:0}.ImageUploader-module_previewMeta{display:flex;flex-direction:column;gap:0px;flex:1;min-width:0}.ImageUploader-module_previewMeta span.ImageUploader-module_previewFilename{font-size:14px!important;color:var(--color-foreground);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}.ImageUploader-module_previewMeta span.ImageUploader-module_previewType{font-size:12px!important;color:var(--color-muted-foreground);text-transform:uppercase;font-weight:400}.ImageUploader-module_uploadingIndicator{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:var(--color-muted)}.ImageUploader-module_spinner{width:32px;height:32px;border:3px solid var(--color-muted);border-top-color:var(--color-primary);border-radius:50%;animation:ImageUploader-module_spin .8s linear infinite}@keyframes ImageUploader-module_spin{to{transform:rotate(360deg)}}.ImageUploader-module_invalidMessage{padding:16px;background-color:var(--color-error-background);border:1px solid var(--color-error);border-radius:8px;text-align:center}.ImageUploader-module_invalidMessage p{margin:0;color:var(--color-error);font-size:14px}.MessageDivider-module_container{display:flex;align-items:center;margin:var(--spacing-4) 0}.MessageDivider-module_line{flex:1;height:1px;background-color:var(--color-muted)}.MessageDivider-module_message{padding:0 var(--spacing-3);color:var(--color-muted-foreground);font-size:var(--text-sm)}.EmptyView-module_container{display:flex;flex-direction:column;align-items:start;justify-content:end;height:100%;gap:var(--spacing-6)}.EmptyView-module_icon{font-size:calc(3 * var(--base-font-size));line-height:1;padding:0 var(--spacing-4);color:var(--color-link)}.EmptyView-module_heading,.EmptyView-module_help{font-size:var(--text-sm);font-weight:400;line-height:var(--text-sm--line-height);color:var(--color-foreground);margin:0;padding:var(--spacing) var(--spacing-4);max-width:400px}.EmptyView-module_suggestionsWrapper{width:100%;max-width:500px;position:relative}.ImageRenderer-module_container{display:grid;grid-template-columns:1fr 1fr;gap:2px;width:100%}.ImageRenderer-module_imageButton{position:relative;border:none;background:none;cursor:pointer;border-radius:calc(var(--radius-sm) + 1px);overflow:hidden;transition:var(--transition-colors);border:1px solid transparent;padding:1px}.ImageRenderer-module_imageButton:hover{border-color:var(--color-muted-foreground)}.ImageRenderer-module_imageButton.ImageRenderer-module_selected{border-color:var(--color-primary);box-shadow:0 0 0 1px var(--color-primary);border-radius:calc(var(--radius-sm) + 1px)}.ImageRenderer-module_imageButton.ImageRenderer-module_disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.ImageRenderer-module_image{width:100%;height:auto;display:block;border-radius:var(--radius-sm);-o-object-fit:cover;object-fit:cover}.ImageRenderer-module_header{display:flex;margin-bottom:var(--spacing-1);color:var(--color-muted-foreground)}.agenttic .chart-block{--jp-gray-80: var(--color-foreground);margin:var(--spacing-1) 0;position:relative;width:100%;max-width:100%;box-sizing:border-box;overflow:visible;z-index:1000;font-family:var(--font-sans)}.agenttic .chart-block-title{margin:0 0 var(--spacing-2) 0;font-size:var(--text-sm);font-family:inherit;font-weight:var(--font-weight-bold, 700);word-wrap:break-word;white-space:normal;line-height:var(--text-sm--line-height);-webkit-hyphens:auto;hyphens:auto}.agenttic .chart-container{width:100%;height:auto;display:flex;flex-direction:column;align-items:stretch;z-index:1001;overflow:visible;position:relative;box-sizing:border-box}.agenttic .chart-container svg{overflow:visible!important}.agenttic .chart-error{padding:var(--spacing-4);border:1px solid var(--color-error);border-radius:var(--radius-sm);background-color:var(--color-muted);color:var(--color-error);font-size:var(--text-sm)}.agenttic .chart-error strong{display:inline-block;margin-bottom:var(--spacing-1)}.agenttic .chart-error details{margin-top:var(--spacing-2)}.agenttic .chart-error details summary{cursor:pointer;color:var(--color-muted-foreground)}.agenttic .chart-error details pre{margin-top:var(--spacing-2);padding:var(--spacing-2);background-color:var(--color-muted);border-radius:var(--radius-sm);overflow:auto;font-size:var(--text-sm)}.agenttic .chart-tooltip{line-height:1.2;font-size:11px;max-width:120px;min-width:auto;background:#000c;color:#fff;padding:var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-2);border-radius:var(--radius-sm);box-shadow:var(--shadow-sm)}.agenttic .chart-tooltip-date{font-size:10px;opacity:.8;margin-bottom:var(--spacing-1);color:#fffc;border-bottom:1px solid rgba(255,255,255,.3);padding-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:var(--spacing-1)}.agenttic .chart-tooltip-row:last-child{margin-bottom:0}.agenttic .chart-tooltip-label{font-weight:var(--font-weight-normal);font-size:11px;color:#fffc;margin-right:var(--spacing-2)}.agenttic .chart-tooltip-value{font-weight:var(--font-weight-semibold);font-size:11px;color:#fff;text-align:right}.agenttic .chart-block .visx-axis-bottom text{font-size:11px}.agenttic .chart-block .visx-axis-bottom text.visx-axis-tick{text-anchor:middle}.agenttic .chart-block .visx-axis-bottom.rotate-labels .visx-axis-tick text{text-anchor:end;transform:rotate(-45deg);transform-origin:right center}.agenttic .chart-block .visx-legend .visx-legend-label{font-size:11px!important;max-width:none!important}.agenttic .chart-block .visx-legend{margin-top:8px;position:relative;z-index:1002}.agenttic .chart-block .visx-legend-item{display:flex;align-items:center;margin:0 8px}.agenttic .chart-block .visx-legend-shape{width:12px;height:12px;margin-right:6px;display:inline-block;flex-shrink:0}.agenttic .chart-block .visx-legend-shape svg{width:100%;height:100%;display:block}.agenttic .chart-block .visx-legend-shape rect{width:100%;height:100%}.agenttic .chart-block .visx-legend-shape circle{r:6;cx:6;cy:6}.agenttic .chart-block .visx-legend>div{display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.agenttic .chart-block .visx-legend-item>div:first-child{margin-right:6px}.agenttic .chart-block .visx-legend [class*=legend] svg{opacity:1;visibility:visible}.agenttic .chart-block .visx-legend svg *{opacity:1;visibility:visible;fill:currentColor}.agenttic div[style*="pointer-events: none"][style*="position: absolute"]{z-index:10000!important}.visx-tooltip{z-index:10000!important;max-width:150px!important;word-wrap:break-word!important;white-space:normal!important}
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,8 @@ export { CompactView } from './components/views/CompactView';
|
|
|
33
33
|
export { ConversationView } from './components/views/ConversationView';
|
|
34
34
|
export { MinimizedView } from './components/views/MinimizedView';
|
|
35
35
|
export { ImageRenderer } from './components/chat/ImageRenderer';
|
|
36
|
+
export { QuestionCard } from './components/question';
|
|
37
|
+
export type { QuestionCardProps } from './components/question';
|
|
36
38
|
export { useChat } from './hooks/useChat';
|
|
37
39
|
export { useInput } from './hooks/useInput';
|
|
38
40
|
export { cn } from './utils/classNames';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCA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