impact-nova 3.0.0-alpha.18 → 3.0.0-alpha.19
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/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/headers/custom-header.js +56 -56
- package/dist/components/data/ag-grid-react/index.d.ts +2 -1
- package/dist/components/data/ag-grid-react/index.js +307 -291
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.d.ts +9 -0
- package/dist/components/data/ag-grid-react/numeric-column-header-alignment.js +67 -0
- package/dist/components/data/ag-grid-react/process-backend-columndefs.d.ts +6 -2
- package/dist/components/data/ag-grid-react/process-backend-columndefs.js +57 -51
- package/dist/components/flows/iris-chat/iris-chat-composer.js +213 -184
- package/dist/components/flows/iris-chat/iris-chat-icons.d.ts +1 -0
- package/dist/components/flows/iris-chat/iris-chat-icons.js +23 -10
- package/dist/components/flows/iris-chat/iris-chat.variants.js +4 -4
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.d.ts +6 -0
- package/dist/components/flows/iris-chat/sync-iris-chat-composer-textarea.js +23 -0
- package/dist/components/primitives/tabs/tabs.js +64 -51
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +2 -0
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova.css +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,254 +1,283 @@
|
|
|
1
|
-
import { jsxs as s, jsx as t, Fragment as
|
|
2
|
-
import { useRef as C, useState as
|
|
3
|
-
import { ChevronRight as
|
|
4
|
-
import { ButtonIconTooltip as
|
|
5
|
-
import { Button as
|
|
6
|
-
import { DropdownMenu as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
8
|
-
import { useControllableState as
|
|
9
|
-
import { createComponent as
|
|
10
|
-
import { cn as
|
|
11
|
-
import { useIrisChatOptional as
|
|
12
|
-
import { readIrisChatComposerLayout as
|
|
13
|
-
import { IrisChatAddIcon as
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
|
|
1
|
+
import { jsxs as s, jsx as t, Fragment as ze } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as C, useState as g, useEffect as j } from "react";
|
|
3
|
+
import { ChevronRight as De } from "impact-nova-icons";
|
|
4
|
+
import { ButtonIconTooltip as d } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
5
|
+
import { Button as p } from "../../primitives/button/button.js";
|
|
6
|
+
import { DropdownMenu as Z, DropdownMenuTrigger as ee, DropdownMenuContent as te, DropdownMenuItem as re, DropdownMenuRadioGroup as Re, DropdownMenuRadioItem as Ne } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
7
|
+
import { useImpactNovaI18n as ke } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
+
import { useControllableState as ae } from "@radix-ui/react-use-controllable-state";
|
|
9
|
+
import { createComponent as Le } from "../../../lib/primitives/create-component.js";
|
|
10
|
+
import { cn as ne } from "../../../lib/utils.js";
|
|
11
|
+
import { useIrisChatOptional as Ee } from "./iris-chat-context.js";
|
|
12
|
+
import { readIrisChatComposerLayout as Se } from "./iris-chat-window-chrome.js";
|
|
13
|
+
import { IrisChatComposerExpandIcon as Fe, IrisChatAddIcon as ie, IrisChatAttachIcon as Pe, IrisChatMicIcon as Me, IrisChatStopIcon as Oe, IrisChatSendIcon as Ue } from "./iris-chat-icons.js";
|
|
14
|
+
import { syncIrisChatComposerTextareaHeight as je, readIrisChatComposerExpandOffered as Ke } from "./sync-iris-chat-composer-textarea.js";
|
|
15
|
+
import { IrisChatAttachment as Te } from "./iris-chat-thread.js";
|
|
16
|
+
import { IrisChatComposerVoiceCapture as Ae } from "./IrisChatComposerVoiceCapture.js";
|
|
17
|
+
import { startComposerSpeechRecognition as $e } from "./iris-chat-speech.js";
|
|
18
|
+
import { irisChatComposerVariants as Be } from "./iris-chat.variants.js";
|
|
19
|
+
const _e = [
|
|
19
20
|
{ label: "Auto", value: "auto" },
|
|
20
21
|
{ label: "Fast", value: "fast" }
|
|
21
|
-
],
|
|
22
|
+
], ct = Le(
|
|
22
23
|
"IrisChatComposer",
|
|
23
24
|
({
|
|
24
|
-
className:
|
|
25
|
-
value:
|
|
26
|
-
defaultValue:
|
|
27
|
-
onValueChange:
|
|
28
|
-
pending:
|
|
29
|
-
placeholder:
|
|
30
|
-
model:
|
|
31
|
-
defaultModel:
|
|
32
|
-
onModelChange:
|
|
33
|
-
models:
|
|
34
|
-
onSend:
|
|
25
|
+
className: n,
|
|
26
|
+
value: o,
|
|
27
|
+
defaultValue: se = "",
|
|
28
|
+
onValueChange: oe,
|
|
29
|
+
pending: x = !1,
|
|
30
|
+
placeholder: le,
|
|
31
|
+
model: ce,
|
|
32
|
+
defaultModel: de = "auto",
|
|
33
|
+
onModelChange: pe,
|
|
34
|
+
models: K = _e,
|
|
35
|
+
onSend: ue,
|
|
35
36
|
onStop: T,
|
|
36
|
-
onAddClick:
|
|
37
|
+
onAddClick: A,
|
|
37
38
|
onAttachClick: $,
|
|
38
|
-
onAttach:
|
|
39
|
-
onMicClick:
|
|
40
|
-
speechRecognitionLocale:
|
|
39
|
+
onAttach: he,
|
|
40
|
+
onMicClick: D,
|
|
41
|
+
speechRecognitionLocale: me,
|
|
41
42
|
onSpeechNotice: B
|
|
42
|
-
},
|
|
43
|
-
const { t: r } =
|
|
44
|
-
isWindowPlacement:
|
|
45
|
-
placement:
|
|
46
|
-
frame:
|
|
47
|
-
}) : "stacked", [
|
|
48
|
-
prop:
|
|
49
|
-
defaultProp:
|
|
50
|
-
onChange:
|
|
51
|
-
}), [N,
|
|
52
|
-
prop:
|
|
53
|
-
defaultProp:
|
|
54
|
-
onChange:
|
|
55
|
-
}),
|
|
43
|
+
}, fe) => {
|
|
44
|
+
const { t: r } = ke(), y = Ee(), R = y ? Se({
|
|
45
|
+
isWindowPlacement: y.isWindowPlacement,
|
|
46
|
+
placement: y.placement,
|
|
47
|
+
frame: y.frame
|
|
48
|
+
}) : "stacked", [Ce, _] = ae({
|
|
49
|
+
prop: o,
|
|
50
|
+
defaultProp: se,
|
|
51
|
+
onChange: oe
|
|
52
|
+
}), [N, ge] = ae({
|
|
53
|
+
prop: ce,
|
|
54
|
+
defaultProp: de,
|
|
55
|
+
onChange: pe
|
|
56
|
+
}), W = C(null), k = C(null), u = C(null), h = C(!1), V = C({}), [w, L] = g(!1), [G, H] = g(
|
|
56
57
|
null
|
|
57
|
-
), [
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
if ((e.kind === "permission" || e.messageKey === "speechNetwork" || e.messageKey === "speechError") && (
|
|
58
|
+
), [b, E] = g([]), [m, S] = g({}), [l, q] = g(!1), [J, be] = g(!1);
|
|
59
|
+
V.current = m;
|
|
60
|
+
const i = Ce ?? "", Q = C(i);
|
|
61
|
+
Q.current = i;
|
|
62
|
+
const F = i.trim().length > 0 || b.length > 0, ve = (e) => {
|
|
63
|
+
if ((e.kind === "permission" || e.messageKey === "speechNetwork" || e.messageKey === "speechError") && (h.current = !1, L(!1), u.current?.abort(), u.current = null), B) {
|
|
63
64
|
B(e);
|
|
64
65
|
return;
|
|
65
66
|
}
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
},
|
|
67
|
+
H(e);
|
|
68
|
+
}, xe = (e) => {
|
|
69
|
+
const a = W.current;
|
|
70
|
+
a && (a.accept = e, a.value = "", a.click());
|
|
71
|
+
}, P = (e) => {
|
|
71
72
|
if (!e?.length)
|
|
72
73
|
return;
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
const
|
|
76
|
-
for (const
|
|
77
|
-
|
|
78
|
-
return { ...
|
|
74
|
+
const a = Array.from(e);
|
|
75
|
+
he?.(a), E((c) => [...c, ...a]), S((c) => {
|
|
76
|
+
const v = {};
|
|
77
|
+
for (const f of a)
|
|
78
|
+
f.type.startsWith("image/") && (v[z(f)] = URL.createObjectURL(f));
|
|
79
|
+
return { ...c, ...v };
|
|
79
80
|
});
|
|
80
81
|
}, M = (e) => {
|
|
81
82
|
if ($) {
|
|
82
83
|
$();
|
|
83
84
|
return;
|
|
84
85
|
}
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
if (
|
|
90
|
-
|
|
86
|
+
xe(e);
|
|
87
|
+
}, O = () => {
|
|
88
|
+
h.current = !1, u.current?.stop(), u.current = null, L(!1);
|
|
89
|
+
}, ye = () => {
|
|
90
|
+
if (D) {
|
|
91
|
+
D();
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
|
-
if (
|
|
94
|
-
|
|
94
|
+
if (w) {
|
|
95
|
+
O();
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
const e =
|
|
99
|
-
locale:
|
|
100
|
-
readBaseText: () =>
|
|
101
|
-
shouldContinueListening: () =>
|
|
102
|
-
onDraftChange:
|
|
98
|
+
H(null), h.current = !0;
|
|
99
|
+
const e = $e({
|
|
100
|
+
locale: me ?? "",
|
|
101
|
+
readBaseText: () => Q.current,
|
|
102
|
+
shouldContinueListening: () => h.current,
|
|
103
|
+
onDraftChange: _,
|
|
103
104
|
onListeningChange: L,
|
|
104
|
-
onNotice:
|
|
105
|
+
onNotice: ve
|
|
105
106
|
});
|
|
106
|
-
e || (
|
|
107
|
+
e || (h.current = !1), u.current = e;
|
|
107
108
|
};
|
|
108
|
-
|
|
109
|
+
j(
|
|
109
110
|
() => () => {
|
|
110
|
-
|
|
111
|
+
h.current = !1, u.current?.stop(), Object.values(V.current).forEach((e) => URL.revokeObjectURL(e));
|
|
111
112
|
},
|
|
112
113
|
[]
|
|
113
|
-
)
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
), j(() => {
|
|
115
|
+
i.trim() || q(!1);
|
|
116
|
+
}, [i]), j(() => {
|
|
117
|
+
je(k.current, l), be(
|
|
118
|
+
Ke(
|
|
119
|
+
k.current,
|
|
120
|
+
l,
|
|
121
|
+
i.split(`
|
|
122
|
+
`).length
|
|
123
|
+
)
|
|
124
|
+
);
|
|
125
|
+
}, [i, l, R, b.length]);
|
|
126
|
+
const X = le ?? r("irisChat.askAnything"), we = () => {
|
|
127
|
+
Object.values(m).forEach((e) => URL.revokeObjectURL(e)), S({}), E([]);
|
|
128
|
+
}, Y = () => {
|
|
129
|
+
!F || x || (ue?.(i.trim(), b), we());
|
|
118
130
|
};
|
|
119
131
|
return /* @__PURE__ */ s(
|
|
120
132
|
"form",
|
|
121
133
|
{
|
|
122
|
-
ref:
|
|
134
|
+
ref: fe,
|
|
123
135
|
"data-component": "iris-chat-composer",
|
|
124
|
-
"data-layout":
|
|
125
|
-
"data-pending":
|
|
126
|
-
"data-listening":
|
|
127
|
-
className:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
"data-layout": R,
|
|
137
|
+
"data-pending": x ? "" : void 0,
|
|
138
|
+
"data-listening": w ? "" : void 0,
|
|
139
|
+
className: ne(
|
|
140
|
+
Be({ layout: R }),
|
|
141
|
+
"relative z-0",
|
|
142
|
+
F && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
|
|
143
|
+
n
|
|
131
144
|
),
|
|
132
145
|
onDragOver: (e) => {
|
|
133
146
|
e.dataTransfer.types.includes("Files") && e.preventDefault();
|
|
134
147
|
},
|
|
135
148
|
onDrop: (e) => {
|
|
136
|
-
e.dataTransfer.files.length && (e.preventDefault(),
|
|
149
|
+
e.dataTransfer.files.length && (e.preventDefault(), P(e.dataTransfer.files));
|
|
137
150
|
},
|
|
138
151
|
onPaste: (e) => {
|
|
139
|
-
const
|
|
140
|
-
|
|
152
|
+
const a = We(e.clipboardData);
|
|
153
|
+
a.length && (e.preventDefault(), P(a));
|
|
141
154
|
},
|
|
142
155
|
onKeyDown: (e) => {
|
|
143
156
|
if (e.key === "Escape") {
|
|
144
|
-
if (
|
|
145
|
-
e.preventDefault(),
|
|
157
|
+
if (w) {
|
|
158
|
+
e.preventDefault(), O();
|
|
146
159
|
return;
|
|
147
160
|
}
|
|
148
|
-
|
|
161
|
+
x && (e.preventDefault(), T?.());
|
|
149
162
|
}
|
|
150
163
|
},
|
|
151
164
|
onSubmit: (e) => {
|
|
152
|
-
e.preventDefault(),
|
|
165
|
+
e.preventDefault(), Y();
|
|
153
166
|
},
|
|
154
167
|
children: [
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const
|
|
168
|
+
w && !D ? /* @__PURE__ */ t(Ae, { transcript: i, onStop: O }) : /* @__PURE__ */ s(ze, { children: [
|
|
169
|
+
b.length > 0 ? /* @__PURE__ */ t("div", { className: "flex flex-wrap gap-2", "data-testid": "iris-chat-composer-attachments", children: b.map((e, a) => {
|
|
170
|
+
const c = z(e, a);
|
|
158
171
|
return /* @__PURE__ */ t(
|
|
159
|
-
|
|
172
|
+
Te,
|
|
160
173
|
{
|
|
161
174
|
name: e.name,
|
|
162
175
|
kind: e.type.startsWith("image/") ? "image" : "file",
|
|
163
176
|
sizeLabel: e.size < 1024 ? `${e.size} B` : `${Math.round(e.size / 1024)} KB`,
|
|
164
|
-
previewUrl:
|
|
177
|
+
previewUrl: m[z(e)] ?? m[c],
|
|
165
178
|
onRemove: () => {
|
|
166
|
-
const
|
|
167
|
-
|
|
168
|
-
const I = { ...
|
|
169
|
-
return delete I[
|
|
170
|
-
}),
|
|
179
|
+
const v = z(e), f = m[v] ?? m[c];
|
|
180
|
+
f && URL.revokeObjectURL(f), S((U) => {
|
|
181
|
+
const I = { ...U };
|
|
182
|
+
return delete I[v], delete I[c], I;
|
|
183
|
+
}), E((U) => U.filter((I, Ie) => Ie !== a));
|
|
171
184
|
}
|
|
172
185
|
},
|
|
173
|
-
|
|
186
|
+
c
|
|
174
187
|
);
|
|
175
188
|
}) }) : null,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
/* @__PURE__ */ s("div", { className: "relative min-w-0 w-full", children: [
|
|
190
|
+
(J || l) && /* @__PURE__ */ t(
|
|
191
|
+
d,
|
|
192
|
+
{
|
|
193
|
+
label: r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
|
|
194
|
+
children: /* @__PURE__ */ t(
|
|
195
|
+
p,
|
|
196
|
+
{
|
|
197
|
+
type: "button",
|
|
198
|
+
variant: "ghost",
|
|
199
|
+
size: "icon",
|
|
200
|
+
className: "absolute end-0 top-0 z-10 size-7 rounded-lg text-content-secondary",
|
|
201
|
+
"aria-label": r(l ? "irisChat.collapsePrompt" : "irisChat.expandPrompt"),
|
|
202
|
+
"data-testid": "iris-chat-composer-expand",
|
|
203
|
+
onClick: () => q((e) => !e),
|
|
204
|
+
children: /* @__PURE__ */ t(
|
|
205
|
+
Fe,
|
|
206
|
+
{
|
|
207
|
+
size: 14,
|
|
208
|
+
className: l ? "rotate-180" : void 0
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
}
|
|
212
|
+
)
|
|
189
213
|
}
|
|
190
|
-
|
|
191
|
-
|
|
214
|
+
),
|
|
215
|
+
/* @__PURE__ */ t(
|
|
216
|
+
"textarea",
|
|
217
|
+
{
|
|
218
|
+
ref: k,
|
|
219
|
+
id: "iris-chat-composer-input",
|
|
220
|
+
"data-testid": "iris-chat-composer-input",
|
|
221
|
+
rows: 1,
|
|
222
|
+
value: i,
|
|
223
|
+
placeholder: X,
|
|
224
|
+
"aria-label": X,
|
|
225
|
+
className: ne(
|
|
226
|
+
"min-h-8 w-full resize-none bg-transparent py-0 text-sm font-medium leading-5 text-content outline-none placeholder:text-content-empty",
|
|
227
|
+
J || l ? "pe-9" : void 0
|
|
228
|
+
),
|
|
229
|
+
onChange: (e) => _(e.target.value),
|
|
230
|
+
onKeyDown: (e) => {
|
|
231
|
+
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), Y());
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
)
|
|
235
|
+
] }),
|
|
192
236
|
/* @__PURE__ */ s("div", { className: "flex min-w-0 w-full items-center justify-between gap-1 [&_button[data-size=icon]]:size-8 [&_button[data-size=icon]_svg]:size-4", children: [
|
|
193
|
-
/* @__PURE__ */ s("div", { className: "flex min-w-0
|
|
237
|
+
/* @__PURE__ */ s("div", { className: "flex min-w-0 shrink-0 items-center", children: [
|
|
194
238
|
/* @__PURE__ */ t(
|
|
195
239
|
"input",
|
|
196
240
|
{
|
|
197
|
-
ref:
|
|
241
|
+
ref: W,
|
|
198
242
|
type: "file",
|
|
199
243
|
hidden: !0,
|
|
200
244
|
multiple: !0,
|
|
201
245
|
"data-testid": "iris-chat-attach-input",
|
|
202
|
-
onChange: (e) =>
|
|
246
|
+
onChange: (e) => P(e.target.files)
|
|
203
247
|
}
|
|
204
248
|
),
|
|
205
|
-
|
|
206
|
-
|
|
249
|
+
A ? /* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(
|
|
250
|
+
p,
|
|
207
251
|
{
|
|
208
252
|
type: "button",
|
|
209
253
|
variant: "ghost",
|
|
210
254
|
size: "icon",
|
|
211
255
|
"aria-label": r("irisChat.add"),
|
|
212
|
-
onClick:
|
|
213
|
-
children: /* @__PURE__ */ t(
|
|
256
|
+
onClick: A,
|
|
257
|
+
children: /* @__PURE__ */ t(ie, {})
|
|
214
258
|
}
|
|
215
|
-
) }) : /* @__PURE__ */ s(
|
|
216
|
-
/* @__PURE__ */ t(
|
|
217
|
-
/* @__PURE__ */ s(
|
|
218
|
-
/* @__PURE__ */ t(
|
|
219
|
-
/* @__PURE__ */ t(
|
|
259
|
+
) }) : /* @__PURE__ */ s(Z, { children: [
|
|
260
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.add"), children: /* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ t(p, { type: "button", variant: "ghost", size: "icon", "aria-label": r("irisChat.add"), children: /* @__PURE__ */ t(ie, {}) }) }) }),
|
|
261
|
+
/* @__PURE__ */ s(te, { align: "start", children: [
|
|
262
|
+
/* @__PURE__ */ t(re, { onSelect: () => M("*/*"), children: r("irisChat.attachFile") }),
|
|
263
|
+
/* @__PURE__ */ t(re, { onSelect: () => M("image/*"), children: r("irisChat.attachImage") })
|
|
220
264
|
] })
|
|
221
265
|
] }),
|
|
222
|
-
/* @__PURE__ */ t(
|
|
223
|
-
|
|
266
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.attach"), children: /* @__PURE__ */ t(
|
|
267
|
+
p,
|
|
224
268
|
{
|
|
225
269
|
type: "button",
|
|
226
270
|
variant: "ghost",
|
|
227
271
|
size: "icon",
|
|
228
272
|
"aria-label": r("irisChat.attach"),
|
|
229
273
|
onClick: () => M("*/*"),
|
|
230
|
-
children: /* @__PURE__ */ t(
|
|
231
|
-
}
|
|
232
|
-
) }),
|
|
233
|
-
c === "inline" ? /* @__PURE__ */ t(
|
|
234
|
-
"input",
|
|
235
|
-
{
|
|
236
|
-
id: "iris-chat-composer-input",
|
|
237
|
-
"data-testid": "iris-chat-composer-input",
|
|
238
|
-
value: l,
|
|
239
|
-
placeholder: y ?? r("irisChat.askAnything"),
|
|
240
|
-
"aria-label": y ?? r("irisChat.askAnything"),
|
|
241
|
-
className: "ms-1 h-8 min-w-0 flex-1 overflow-hidden bg-transparent py-0 text-sm font-medium leading-8 text-content outline-none placeholder:text-content-empty",
|
|
242
|
-
onChange: (e) => R(e.target.value),
|
|
243
|
-
onKeyDown: (e) => {
|
|
244
|
-
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), j());
|
|
245
|
-
}
|
|
274
|
+
children: /* @__PURE__ */ t(Pe, {})
|
|
246
275
|
}
|
|
247
|
-
)
|
|
276
|
+
) })
|
|
248
277
|
] }),
|
|
249
278
|
/* @__PURE__ */ s("div", { className: "flex shrink-0 items-center gap-0.5", children: [
|
|
250
|
-
/* @__PURE__ */ s(
|
|
251
|
-
/* @__PURE__ */ t(
|
|
279
|
+
/* @__PURE__ */ s(Z, { children: [
|
|
280
|
+
/* @__PURE__ */ t(ee, { asChild: !0, children: /* @__PURE__ */ s(
|
|
252
281
|
"button",
|
|
253
282
|
{
|
|
254
283
|
type: "button",
|
|
@@ -256,33 +285,33 @@ const Me = [
|
|
|
256
285
|
className: "flex h-8 max-w-24 shrink-0 items-center gap-0.5 truncate rounded-lg bg-secondary px-2 text-sm font-medium capitalize leading-none text-content",
|
|
257
286
|
"aria-label": r("irisChat.model"),
|
|
258
287
|
children: [
|
|
259
|
-
|
|
260
|
-
/* @__PURE__ */ t(
|
|
288
|
+
K.find((e) => e.value === N)?.label ?? N,
|
|
289
|
+
/* @__PURE__ */ t(De, { size: 16, className: "rotate-90" })
|
|
261
290
|
]
|
|
262
291
|
}
|
|
263
292
|
) }),
|
|
264
|
-
/* @__PURE__ */ t(
|
|
265
|
-
|
|
293
|
+
/* @__PURE__ */ t(te, { align: "end", children: /* @__PURE__ */ t(
|
|
294
|
+
Re,
|
|
266
295
|
{
|
|
267
296
|
value: N,
|
|
268
|
-
onValueChange:
|
|
269
|
-
children:
|
|
297
|
+
onValueChange: ge,
|
|
298
|
+
children: K.map((e) => /* @__PURE__ */ t(Ne, { value: e.value, children: e.label }, e.value))
|
|
270
299
|
}
|
|
271
300
|
) })
|
|
272
301
|
] }),
|
|
273
|
-
/* @__PURE__ */ t(
|
|
274
|
-
|
|
302
|
+
/* @__PURE__ */ t(d, { label: r("irisChat.mic"), children: /* @__PURE__ */ t(
|
|
303
|
+
p,
|
|
275
304
|
{
|
|
276
305
|
type: "button",
|
|
277
306
|
variant: "ghost",
|
|
278
307
|
size: "icon",
|
|
279
308
|
"aria-label": r("irisChat.mic"),
|
|
280
|
-
onClick:
|
|
281
|
-
children: /* @__PURE__ */ t(
|
|
309
|
+
onClick: ye,
|
|
310
|
+
children: /* @__PURE__ */ t(Me, {})
|
|
282
311
|
}
|
|
283
312
|
) }),
|
|
284
|
-
|
|
285
|
-
|
|
313
|
+
x ? /* @__PURE__ */ t(d, { label: r("irisChat.stop"), children: /* @__PURE__ */ t(
|
|
314
|
+
p,
|
|
286
315
|
{
|
|
287
316
|
type: "button",
|
|
288
317
|
variant: "default",
|
|
@@ -291,10 +320,10 @@ const Me = [
|
|
|
291
320
|
"data-testid": "iris-chat-stop",
|
|
292
321
|
className: "rounded-full",
|
|
293
322
|
onClick: T,
|
|
294
|
-
children: /* @__PURE__ */ t(
|
|
323
|
+
children: /* @__PURE__ */ t(Oe, { size: 16 })
|
|
295
324
|
}
|
|
296
|
-
) }) :
|
|
297
|
-
|
|
325
|
+
) }) : F ? /* @__PURE__ */ t(d, { label: r("irisChat.send"), children: /* @__PURE__ */ t(
|
|
326
|
+
p,
|
|
298
327
|
{
|
|
299
328
|
type: "submit",
|
|
300
329
|
variant: "default",
|
|
@@ -302,24 +331,24 @@ const Me = [
|
|
|
302
331
|
"aria-label": r("irisChat.send"),
|
|
303
332
|
"data-testid": "iris-chat-send",
|
|
304
333
|
className: "rounded-full",
|
|
305
|
-
children: /* @__PURE__ */ t(
|
|
334
|
+
children: /* @__PURE__ */ t(Ue, { size: 16 })
|
|
306
335
|
}
|
|
307
336
|
) }) : null
|
|
308
337
|
] })
|
|
309
338
|
] })
|
|
310
339
|
] }),
|
|
311
|
-
|
|
340
|
+
G ? /* @__PURE__ */ t("p", { className: "px-1 text-xs text-destructive", role: "alert", children: r(`irisChat.${G.messageKey}`) }) : null
|
|
312
341
|
]
|
|
313
342
|
}
|
|
314
343
|
);
|
|
315
344
|
}
|
|
316
345
|
);
|
|
317
|
-
function
|
|
318
|
-
return `${
|
|
346
|
+
function z(n, o = 0) {
|
|
347
|
+
return `${n.name}:${n.size}:${n.lastModified}:${o}`;
|
|
319
348
|
}
|
|
320
|
-
function
|
|
321
|
-
return
|
|
349
|
+
function We(n) {
|
|
350
|
+
return n ? n.files.length ? Array.from(n.files) : Array.from(n.items).filter((o) => o.kind === "file").map((o) => o.getAsFile()).filter((o) => !!o) : [];
|
|
322
351
|
}
|
|
323
352
|
export {
|
|
324
|
-
|
|
353
|
+
ct as IrisChatComposer
|
|
325
354
|
};
|
|
@@ -15,5 +15,6 @@ export declare function IrisChatDislikeIcon({ size, className }: IconProps): imp
|
|
|
15
15
|
export declare function IrisChatCopyIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
16
16
|
export declare function IrisChatCheckIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export declare function IrisChatRetryIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function IrisChatComposerExpandIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export declare function IrisChatSpeakIcon({ size, className }: IconProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -83,7 +83,7 @@ function M({ size: r = 14, className: t }) {
|
|
|
83
83
|
}
|
|
84
84
|
) });
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function v({ size: r = 16, className: t }) {
|
|
87
87
|
return /* @__PURE__ */ e(n, { size: r, className: t, children: [
|
|
88
88
|
/* @__PURE__ */ o(
|
|
89
89
|
"path",
|
|
@@ -97,7 +97,7 @@ function f({ size: r = 16, className: t }) {
|
|
|
97
97
|
/* @__PURE__ */ o("path", { d: "M7 10H3.8C3.4 10 3 10.4 3 10.8v8.4c0 .4.4.8.8.8H7", stroke: "currentColor", strokeWidth: "1.6" })
|
|
98
98
|
] });
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function f({ size: r = 16, className: t }) {
|
|
101
101
|
return /* @__PURE__ */ e(n, { size: r, className: t, children: [
|
|
102
102
|
/* @__PURE__ */ o(
|
|
103
103
|
"path",
|
|
@@ -125,7 +125,7 @@ function L({ size: r = 16, className: t }) {
|
|
|
125
125
|
)
|
|
126
126
|
] });
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function W({ size: r = 16, className: t }) {
|
|
129
129
|
return /* @__PURE__ */ o(n, { size: r, className: t, children: /* @__PURE__ */ o(
|
|
130
130
|
"path",
|
|
131
131
|
{
|
|
@@ -137,7 +137,7 @@ function A({ size: r = 16, className: t }) {
|
|
|
137
137
|
}
|
|
138
138
|
) });
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function x({ size: r = 16, className: t }) {
|
|
141
141
|
return /* @__PURE__ */ o(n, { size: r, className: t, children: /* @__PURE__ */ o(
|
|
142
142
|
"path",
|
|
143
143
|
{
|
|
@@ -149,7 +149,19 @@ function V({ size: r = 16, className: t }) {
|
|
|
149
149
|
}
|
|
150
150
|
) });
|
|
151
151
|
}
|
|
152
|
-
function
|
|
152
|
+
function A({ size: r = 16, className: t }) {
|
|
153
|
+
return /* @__PURE__ */ o(n, { size: r, viewBox: "0 0 16 16", className: t, children: /* @__PURE__ */ o(
|
|
154
|
+
"path",
|
|
155
|
+
{
|
|
156
|
+
d: "M9.333 2.667h4v4M6.667 13.333H2.667v-4M13.333 2.667 9.75 6.25M2.667 13.333 6.25 9.75",
|
|
157
|
+
stroke: "currentColor",
|
|
158
|
+
strokeWidth: "1.333",
|
|
159
|
+
strokeLinecap: "round",
|
|
160
|
+
strokeLinejoin: "round"
|
|
161
|
+
}
|
|
162
|
+
) });
|
|
163
|
+
}
|
|
164
|
+
function H({ size: r = 16, className: t }) {
|
|
153
165
|
return /* @__PURE__ */ e(n, { size: r, className: t, children: [
|
|
154
166
|
/* @__PURE__ */ o(
|
|
155
167
|
"path",
|
|
@@ -174,16 +186,17 @@ function W({ size: r = 16, className: t }) {
|
|
|
174
186
|
export {
|
|
175
187
|
u as IrisChatAddIcon,
|
|
176
188
|
a as IrisChatAttachIcon,
|
|
177
|
-
|
|
189
|
+
W as IrisChatCheckIcon,
|
|
190
|
+
A as IrisChatComposerExpandIcon,
|
|
178
191
|
L as IrisChatCopyIcon,
|
|
179
|
-
|
|
192
|
+
f as IrisChatDislikeIcon,
|
|
180
193
|
p as IrisChatHamburgerIcon,
|
|
181
|
-
|
|
194
|
+
v as IrisChatLikeIcon,
|
|
182
195
|
l as IrisChatMicIcon,
|
|
183
196
|
I as IrisChatMinimizeIcon,
|
|
184
|
-
|
|
197
|
+
x as IrisChatRetryIcon,
|
|
185
198
|
k as IrisChatSendIcon,
|
|
186
|
-
|
|
199
|
+
H as IrisChatSpeakIcon,
|
|
187
200
|
C as IrisChatStopIcon,
|
|
188
201
|
M as IrisChatSuggestIcon
|
|
189
202
|
};
|