@burdenoff/fe-libs 2026.1113.10 → 2026.1114.1
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 +55 -8
- package/dist/node_modules/pdfjs-dist/build/pdf.js +21 -0
- package/dist/node_modules/pdfjs-dist/build/pdf.worker.min.js +21 -0
- package/dist/platform-pages/AcceptShareRoute.js +15 -16
- package/dist/platform-pages/AffiliatesPage.js +4 -5
- package/dist/shared/assistant/createSandboxAssistantTransport.js +0 -1
- package/dist/shared/assistant/index.d.ts +3 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +267 -241
- package/dist/shared/assistant/ui/AssistantChatArea.js +1243 -1241
- package/dist/shared/assistant/ui/AssistantConversationList.js +253 -252
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +4 -23
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +52 -55
- package/dist/shared/assistant/ui/AssistantMessageItem.js +37 -38
- package/dist/shared/assistant/ui/AssistantMessageList.js +48 -47
- package/dist/shared/assistant/ui/AssistantSpeechProvider.js +24 -25
- package/dist/shared/assistant/ui/assistantPageLayout.d.ts +13 -0
- package/dist/shared/assistant/ui/assistantPageLayout.js +8 -0
- package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.d.ts +6 -0
- package/dist/shared/assistant/ui/avatar/AssistantCompactAvatar.js +77 -71
- package/dist/shared/assistant/ui/compact/AssistantMenuView.js +130 -129
- package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +13 -0
- package/dist/shared/assistant/ui/compact/AssistantPageBar.js +46 -0
- package/dist/shared/assistant/ui/compact/AssistantViewSwitch.d.ts +5 -0
- package/dist/shared/assistant/ui/compact/AssistantViewSwitch.js +11 -11
- package/dist/shared/assistant/ui/composer/AssistantCompactFooter.js +15 -11
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +258 -257
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +3 -3
- package/dist/shared/assistant/ui/composer/connectSource.js +1 -2
- package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -30
- package/dist/shared/assistant/uiActions/assistantHref.js +7 -43
- package/dist/shared/assistant/uiActions/assistantLinkNavigation.d.ts +12 -0
- package/dist/shared/assistant/uiActions/assistantLinkNavigation.js +42 -0
- package/dist/shared/assistant/uiActions/inAppLinks.js +9 -8
- package/dist/shared/components/ContextConversationWidget.js +6 -7
- package/dist/shared/components/assistantWidget/MessageContent.js +3 -4
- package/dist/shared/components/contextConversationWidget/Composer.js +9 -10
- package/dist/shared/components/contextConversationWidget/MessageItem.js +0 -1
- package/dist/shared/components/contextConversationWidget/NoWorkspaceCard.js +0 -1
- package/dist/shared/components/contextConversationWidget/PendingAttachmentsBar.js +0 -1
- package/dist/shared/components/contextConversationWidget/ReplyBanner.js +0 -1
- package/dist/shared/components/contextConversationWidget/WidgetHeader.js +8 -9
- package/dist/shared/hooks/usePushDeviceRegistration.js +9 -10
- package/dist/shared/hooks/useRecordProductVisit.js +8 -9
- package/dist/shared/tours/ToursContext.js +6 -7
- package/dist/shared-assistant.js +224 -221
- package/dist/shared-hooks.js +10 -12
- package/dist/shared-plugins.js +0 -1
- package/dist/shared-providers-shell.js +7 -8
- package/dist/shared.js +83 -87
- package/dist/third-party/pdfjs-dist/ATTRIBUTION.txt +54 -0
- package/dist/third-party/pdfjs-dist/LICENSE +177 -0
- package/dist/third-party/pdfjs-dist/manifest.json +19 -0
- package/dist/utils/index.js +1 -1
- package/package.json +29 -2
- package/dist/shared/actors/index.js +0 -3
- package/dist/shared/assistant/speech/index.js +0 -6
- package/dist/shared/plugins/iframe-mount/index.js +0 -5
|
@@ -19,94 +19,95 @@ import { AssistantModeSelector as de } from "./AssistantModeSelector.js";
|
|
|
19
19
|
import { AssistantModeMenu as fe } from "./AssistantModeMenu.js";
|
|
20
20
|
import { AssistantViewSwitchRow as pe } from "../compact/AssistantViewSwitchRow.js";
|
|
21
21
|
import { compactEnterSends as me, isImeComposingEnter as he } from "./imeEnter.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
22
|
+
import { PAGE_COLUMN as ge, useAssistantPageLayout as _e } from "../assistantPageLayout.js";
|
|
23
|
+
import { useCallback as s, useEffect as c, useId as l, useLayoutEffect as ve, useMemo as ye, useRef as u, useState as d } from "react";
|
|
24
|
+
import { ArrowUp as be, Loader2 as f, Square as xe } from "lucide-react";
|
|
25
|
+
import { Fragment as Se, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
25
26
|
// src/shared/assistant/ui/composer/AssistantComposer.tsx
|
|
26
|
-
var
|
|
27
|
-
function
|
|
27
|
+
var Ce = 200;
|
|
28
|
+
function we(e) {
|
|
28
29
|
if (!e) return !1;
|
|
29
30
|
let t = e.ownerDocument.activeElement;
|
|
30
31
|
return !t || t === e.ownerDocument.body ? !1 : e.contains(t) ? !0 : e.closest("[data-assistant-panel]")?.contains(t) ?? !1;
|
|
31
32
|
}
|
|
32
|
-
var
|
|
33
|
-
let
|
|
34
|
-
|
|
35
|
-
}, [
|
|
36
|
-
|
|
37
|
-
let
|
|
33
|
+
var Te = ({ children: e }) => e(l()), h = ({ writeAccessDenied: l = !1, onSend: h, disabled: Ee = !1, readOnly: De = !1, placeholder: Oe, mode: ke, availableModes: g, attachmentCharsPerFile: Ae, onModeChange: je, auto: Me, onStartVoiceSession: _, onDraftStart: Ne, onDraftChange: Pe, suspendDictation: Fe = !1, onVoiceStateChange: Ie, presentation: Le = "classic", turnInFlight: v = !1, onStop: y, turnId: Re, modeDisabledReason: ze = null, inputRef: b, aboveCard: Be, viewSwitch: Ve, modeReadOnly: He = !1, voiceSessionActive: x = !1 }) => {
|
|
34
|
+
let S = r(), Ue = _e(), { locale: C } = n(), w = Ee || De, T = Le === "compact", E = u(null), We = s((e) => {
|
|
35
|
+
E.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
|
|
36
|
+
}, [b]), [D, O] = d(""), [k, A] = d(!1), [j, Ge] = d(!1), M = u(!1), [N, P] = d(null), [Ke, F] = d(null), [I, L] = d(null), [qe, Je] = d(v);
|
|
37
|
+
qe === v ? I !== null && v && Re != null && Re !== I && L(null) : (Je(v), v ? (F(null), L(null)) : I !== null && (F(I), L(null)));
|
|
38
|
+
let Ye = u(!1), R = u(null), Xe = u(!1), Ze = u(!1), Qe = u(null), z = u(!1), B = u(0), { attachments: V, isBusy: $e, preparingCount: et, sendBlocker: tt, rejection: nt, addFiles: H, remove: rt, retry: it, clear: at, clearRejection: ot, canAddMore: st, commit: ct, cancelCommit: lt } = ne({ perFileChars: Ae }), U = D.trim() !== "" || V.length > 0, ut = u(!1), dt = u(!1);
|
|
38
39
|
c(() => {
|
|
39
|
-
U && !
|
|
40
|
-
}, [U,
|
|
41
|
-
U || (
|
|
42
|
-
text:
|
|
40
|
+
U && !ut.current ? (ut.current = !0, Ne?.()) : U || (ut.current = !1);
|
|
41
|
+
}, [U, Ne]), c(() => {
|
|
42
|
+
U || (dt.current = !1), Pe?.({
|
|
43
|
+
text: D,
|
|
43
44
|
hasAttachments: V.length > 0,
|
|
44
|
-
dictated:
|
|
45
|
+
dictated: dt.current
|
|
45
46
|
});
|
|
46
47
|
}, [
|
|
47
|
-
|
|
48
|
+
D,
|
|
48
49
|
V.length,
|
|
49
50
|
U,
|
|
50
|
-
|
|
51
|
+
Pe
|
|
51
52
|
]);
|
|
52
|
-
let
|
|
53
|
-
|
|
54
|
-
}, []),
|
|
55
|
-
onFinalize:
|
|
56
|
-
language:
|
|
57
|
-
}), G = W.isActive,
|
|
53
|
+
let ft = s((e) => {
|
|
54
|
+
dt.current = !0, O((t) => t ? `${t.replace(/\s+$/, "")} ${e}` : e);
|
|
55
|
+
}, []), pt = a((e) => e.assistantLanguage), mt = ye(() => ee(pt, C), [pt, C]), W = te({
|
|
56
|
+
onFinalize: ft,
|
|
57
|
+
language: mt.tag
|
|
58
|
+
}), G = W.isActive, ht = W.interim, gt = W.stop;
|
|
58
59
|
c(() => {
|
|
59
|
-
|
|
60
|
+
Fe && G && (ht.trim() !== "" && ft(ht.trim()), gt());
|
|
60
61
|
}, [
|
|
61
|
-
|
|
62
|
+
Fe,
|
|
62
63
|
G,
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
ht,
|
|
65
|
+
gt,
|
|
66
|
+
ft
|
|
66
67
|
]), c(() => {
|
|
67
|
-
|
|
68
|
-
committing:
|
|
68
|
+
Ie?.({
|
|
69
|
+
committing: j,
|
|
69
70
|
dictating: G
|
|
70
71
|
});
|
|
71
72
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
Ie,
|
|
74
|
+
j,
|
|
74
75
|
G
|
|
75
76
|
]);
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
let t =
|
|
77
|
+
let _t = o((e) => e.pending), vt = _t ? S("askAbout.placeholder", "Ask about {{name}}…", { name: _t.label }) : Oe ?? S("composer.placeholder", "Ask me anything…"), yt = o((e) => e.focusRequested), bt = (e) => {
|
|
78
|
+
O(e), requestAnimationFrame(() => {
|
|
79
|
+
let t = E.current;
|
|
79
80
|
t && (t.focus({ preventScroll: !0 }), t.setSelectionRange(e.length, e.length));
|
|
80
81
|
});
|
|
81
82
|
};
|
|
82
83
|
c(() => {
|
|
83
|
-
if (!
|
|
84
|
-
let e =
|
|
84
|
+
if (!yt || w) return;
|
|
85
|
+
let e = E.current;
|
|
85
86
|
e && (e.focus({ preventScroll: !0 }), o.getState().actions.composerFocused());
|
|
86
|
-
}, [
|
|
87
|
-
let K =
|
|
88
|
-
|
|
89
|
-
let Y =
|
|
87
|
+
}, [yt, w]);
|
|
88
|
+
let K = D.trim(), q = re(V), xt = V.filter((e) => e.status === "error"), J = (K.length > 0 || q.length > 0) && !w && !j && tt === null, St = q.some((e) => !(e.fileId && e.downloadUrl) && !e.inlineOnly), Ct = u(w);
|
|
89
|
+
Ct.current = w;
|
|
90
|
+
let Y = u(!0);
|
|
90
91
|
c(() => (Y.current = !0, () => {
|
|
91
92
|
Y.current = !1;
|
|
92
|
-
}), []),
|
|
93
|
-
let e =
|
|
94
|
-
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight,
|
|
95
|
-
}, [
|
|
93
|
+
}), []), ve(() => {
|
|
94
|
+
let e = E.current;
|
|
95
|
+
e && (e.style.height = "auto", e.style.height = `${Math.min(e.scrollHeight, Ce)}px`);
|
|
96
|
+
}, [D]);
|
|
96
97
|
let X = s(async () => {
|
|
97
|
-
if (!J ||
|
|
98
|
+
if (!J || M.current) return;
|
|
98
99
|
W.isActive && W.stop();
|
|
99
|
-
let e =
|
|
100
|
+
let e = D.trim();
|
|
100
101
|
P(null);
|
|
101
|
-
let t =
|
|
102
|
-
if (!
|
|
103
|
-
z.current = t,
|
|
102
|
+
let t = T && we(Qe.current);
|
|
103
|
+
if (!St) {
|
|
104
|
+
z.current = t, h(e, q), O(""), at();
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
107
|
let n = a.getState().activeConversationId;
|
|
107
|
-
|
|
108
|
+
M.current = !0, Ge(!0);
|
|
108
109
|
try {
|
|
109
|
-
let r = await
|
|
110
|
+
let r = await ct();
|
|
110
111
|
if (!Y.current) {
|
|
111
112
|
r.ok && await r.rollback();
|
|
112
113
|
return;
|
|
@@ -118,7 +119,7 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
|
|
|
118
119
|
});
|
|
119
120
|
return;
|
|
120
121
|
}
|
|
121
|
-
if (
|
|
122
|
+
if (Ct.current) {
|
|
122
123
|
await r.rollback(), Y.current && P({
|
|
123
124
|
kind: "busy",
|
|
124
125
|
failures: []
|
|
@@ -133,290 +134,290 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
|
|
|
133
134
|
});
|
|
134
135
|
return;
|
|
135
136
|
}
|
|
136
|
-
z.current = t,
|
|
137
|
+
z.current = t, h(e, re(r.attachments)), r.handedOver(), O(""), at();
|
|
137
138
|
} finally {
|
|
138
|
-
|
|
139
|
+
M.current = !1, Y.current && Ge(!1);
|
|
139
140
|
}
|
|
140
141
|
}, [
|
|
141
142
|
J,
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
St,
|
|
144
|
+
ct,
|
|
145
|
+
h,
|
|
146
|
+
D,
|
|
146
147
|
q,
|
|
147
|
-
|
|
148
|
+
at,
|
|
148
149
|
W,
|
|
149
|
-
|
|
150
|
-
]),
|
|
151
|
-
|
|
152
|
-
}, [
|
|
153
|
-
|
|
154
|
-
}, []),
|
|
155
|
-
if (
|
|
156
|
-
let e =
|
|
157
|
-
e !== null && (
|
|
158
|
-
}, [
|
|
150
|
+
T
|
|
151
|
+
]), wt = s(() => {
|
|
152
|
+
lt(), E.current?.focus();
|
|
153
|
+
}, [lt]), Z = s(() => {
|
|
154
|
+
Ct.current ? Ye.current = !0 : E.current?.focus();
|
|
155
|
+
}, []), Tt = s(() => {
|
|
156
|
+
if (Ze.current) return;
|
|
157
|
+
let e = y?.() ?? null;
|
|
158
|
+
e !== null && (Ze.current = !0, L(e)), Z();
|
|
159
|
+
}, [y, Z]);
|
|
159
160
|
c(() => {
|
|
160
|
-
!
|
|
161
|
-
}, [
|
|
162
|
-
let
|
|
161
|
+
!w && Ye.current && (Ye.current = !1, E.current?.focus());
|
|
162
|
+
}, [w]);
|
|
163
|
+
let Et = s((e) => {
|
|
163
164
|
if (e !== null) {
|
|
164
165
|
R.current = e;
|
|
165
166
|
return;
|
|
166
167
|
}
|
|
167
168
|
let t = R.current;
|
|
168
|
-
R.current = null, t !== null && t.ownerDocument.activeElement === t && (
|
|
169
|
-
}, []), Q =
|
|
170
|
-
|
|
171
|
-
!Q &&
|
|
169
|
+
R.current = null, t !== null && t.ownerDocument.activeElement === t && (Xe.current = !0);
|
|
170
|
+
}, []), Q = T && v && y !== void 0;
|
|
171
|
+
ve(() => {
|
|
172
|
+
!Q && Xe.current && (Xe.current = !1, Z());
|
|
172
173
|
}, [Q, Z]), c(() => {
|
|
173
|
-
I === null && (
|
|
174
|
-
}, [I]),
|
|
174
|
+
I === null && (Ze.current = !1);
|
|
175
|
+
}, [I]), ve(() => {
|
|
175
176
|
if (!Q) return;
|
|
176
177
|
let e = z.current;
|
|
177
178
|
if (z.current = !1, !e) return;
|
|
178
179
|
let t = R.current;
|
|
179
180
|
if (t === null) return;
|
|
180
181
|
let n = t.ownerDocument, r = n.activeElement;
|
|
181
|
-
(r === null || r === n.body || r ===
|
|
182
|
+
(r === null || r === n.body || r === E.current) && t.focus({ preventScroll: !0 });
|
|
182
183
|
}, [Q]);
|
|
183
|
-
let
|
|
184
|
-
|
|
184
|
+
let Dt = s((e) => {
|
|
185
|
+
O(e), F(null);
|
|
185
186
|
}, []);
|
|
186
187
|
c(() => {
|
|
187
188
|
P(null);
|
|
188
189
|
}, [V.length]);
|
|
189
|
-
let
|
|
190
|
-
if (t.kind === "busy") return
|
|
191
|
-
if (t.kind === "moved") return
|
|
190
|
+
let Ot = (t) => {
|
|
191
|
+
if (t.kind === "busy") return S("attachments.saveBusy", "The assistant started another reply, so nothing was sent. Your message and files are still here.");
|
|
192
|
+
if (t.kind === "moved") return S("attachments.saveMoved", "You switched conversations while the files were being saved, so nothing was sent. Your message and files are still here.");
|
|
192
193
|
let { failures: n } = t;
|
|
193
|
-
if (n.some((e) => e.code === ie.editorAccessRequired)) return e(
|
|
194
|
-
if (n.some((e) => e.code === ie.quotaExceeded || e.code === ie.quotaNotProvisioned)) return `${
|
|
194
|
+
if (n.some((e) => e.code === ie.editorAccessRequired)) return e(S, C);
|
|
195
|
+
if (n.some((e) => e.code === ie.quotaExceeded || e.code === ie.quotaNotProvisioned)) return `${S("attachments.quotaFull", "File storage is full or not set up for this workspace, so the attachments couldn't be saved. Nothing was sent.")} ${S("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
|
|
195
196
|
let r = n[0], i = V.find((e) => e.id === r?.id)?.filename ?? "";
|
|
196
|
-
return `${n.length <= 1 ?
|
|
197
|
-
},
|
|
197
|
+
return `${n.length <= 1 ? S("attachments.saveFailedOne", "{{name}} couldn't be saved, so nothing was sent.", { name: i }) : S("attachments.saveFailedMany", "{{count}} attachments couldn't be saved, so nothing was sent.", { count: n.length })} ${S("attachments.retrySend", "Press Send to try again, or remove the file.")}`;
|
|
198
|
+
}, kt = s((e) => {
|
|
198
199
|
e.key === "Enter" && !e.shiftKey && (e.preventDefault(), X());
|
|
199
|
-
}, [X]),
|
|
200
|
+
}, [X]), At = s((e) => {
|
|
200
201
|
e.key === "Escape" ? he(e) && e.stopPropagation() : me(e) && (e.preventDefault(), F(null), X());
|
|
201
|
-
}, [X]),
|
|
202
|
+
}, [X]), jt = s((e) => {
|
|
202
203
|
let t = Array.from(e.clipboardData?.files ?? []);
|
|
203
204
|
t.length !== 0 && (e.preventDefault(), H(t));
|
|
204
|
-
}, [H]),
|
|
205
|
-
Array.from(e.dataTransfer?.types ?? []).includes("Files") && (B.current += 1,
|
|
206
|
-
}, []),
|
|
207
|
-
B.current = Math.max(0, B.current - 1), B.current === 0 &&
|
|
208
|
-
}, []),
|
|
205
|
+
}, [H]), Mt = s((e) => {
|
|
206
|
+
Array.from(e.dataTransfer?.types ?? []).includes("Files") && (B.current += 1, A(!0));
|
|
207
|
+
}, []), Nt = s(() => {
|
|
208
|
+
B.current = Math.max(0, B.current - 1), B.current === 0 && A(!1);
|
|
209
|
+
}, []), Pt = s((e) => {
|
|
209
210
|
Array.from(e.dataTransfer?.types ?? []).includes("Files") && e.preventDefault();
|
|
210
|
-
}, []),
|
|
211
|
-
e.preventDefault(), B.current = 0,
|
|
212
|
-
}, [H]),
|
|
211
|
+
}, []), Ft = s((e) => {
|
|
212
|
+
e.preventDefault(), B.current = 0, A(!1), H(e.dataTransfer?.files ?? null);
|
|
213
|
+
}, [H]), It = (e) => {
|
|
213
214
|
switch (e) {
|
|
214
|
-
case "too-many": return
|
|
215
|
-
case "too-large": return
|
|
216
|
-
case "empty": return
|
|
217
|
-
case "unreadable": return
|
|
218
|
-
case "unsupported-image": return
|
|
219
|
-
case "too-large-to-save": return
|
|
215
|
+
case "too-many": return S("attachments.tooMany", "You can attach up to {{max}} files per message.", { max: 5 });
|
|
216
|
+
case "too-large": return S("attachments.tooLarge", "That file is larger than 10 MB.");
|
|
217
|
+
case "empty": return S("attachments.empty", "That file is empty.");
|
|
218
|
+
case "unreadable": return S("attachments.unreadable", "That file could not be read.");
|
|
219
|
+
case "unsupported-image": return S("attachments.unsupportedImage", "This device can't read that image format, so it can't be resized to send. Save it as JPEG and try again.");
|
|
220
|
+
case "too-large-to-save": return S("attachments.tooLargeToSave", "That file is over 5 MB, so it can't be saved to Files, and no text could be read from it.");
|
|
220
221
|
}
|
|
221
222
|
}, $ = (() => {
|
|
222
223
|
switch (W.error) {
|
|
223
|
-
case "not-allowed": return
|
|
224
|
-
case "audio-capture": return
|
|
225
|
-
case "network": return
|
|
226
|
-
case "language-not-supported": return
|
|
227
|
-
case "unknown": return
|
|
224
|
+
case "not-allowed": return S("voice.denied", "Microphone access is blocked. Allow it in your browser settings to dictate.");
|
|
225
|
+
case "audio-capture": return S("voice.noMic", "No microphone was found.");
|
|
226
|
+
case "network": return S("voice.network", "Speech recognition is offline right now.");
|
|
227
|
+
case "language-not-supported": return S("voice.languageNotSupported", "This browser cannot recognise spoken {{language}}. Try a different browser, or type instead.", { language: i(W.language, C) });
|
|
228
|
+
case "unknown": return S("voice.failed", "Dictation stopped unexpectedly.");
|
|
228
229
|
default: return null;
|
|
229
230
|
}
|
|
230
|
-
})(),
|
|
231
|
-
onDismiss:
|
|
232
|
-
children: /* @__PURE__ */
|
|
231
|
+
})(), Lt = (e, n) => j ? /* @__PURE__ */ p(t, {
|
|
232
|
+
onDismiss: wt,
|
|
233
|
+
children: /* @__PURE__ */ m("p", {
|
|
233
234
|
className: "flex items-center justify-center gap-2 text-text-muted",
|
|
234
235
|
"data-testid": "assistant-commit-status",
|
|
235
236
|
children: [
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
+
/* @__PURE__ */ p(f, {
|
|
237
238
|
className: "size-3 motion-safe:animate-spin",
|
|
238
239
|
"aria-hidden": "true"
|
|
239
240
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
241
|
-
/* @__PURE__ */
|
|
241
|
+
/* @__PURE__ */ p("span", { children: S("attachments.saving", "Saving your attachments…") }),
|
|
242
|
+
/* @__PURE__ */ p("button", {
|
|
242
243
|
type: "button",
|
|
243
|
-
onClick:
|
|
244
|
+
onClick: wt,
|
|
244
245
|
className: "rounded text-text-primary underline underline-offset-2 hover:text-action-primary-bg focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",
|
|
245
246
|
"data-testid": "assistant-commit-cancel",
|
|
246
|
-
children:
|
|
247
|
+
children: S("attachments.cancelSaving", "Cancel")
|
|
247
248
|
})
|
|
248
249
|
]
|
|
249
250
|
})
|
|
250
|
-
}) :
|
|
251
|
+
}) : N ? /* @__PURE__ */ p("p", {
|
|
251
252
|
className: "text-status-error-text",
|
|
252
253
|
role: "alert",
|
|
253
254
|
"data-testid": "assistant-commit-failed",
|
|
254
|
-
children:
|
|
255
|
-
}) : W.isStarting && !W.isListening ? /* @__PURE__ */
|
|
255
|
+
children: Ot(N)
|
|
256
|
+
}) : W.isStarting && !W.isListening ? /* @__PURE__ */ p("p", {
|
|
256
257
|
className: "text-text-muted",
|
|
257
258
|
"data-testid": "assistant-voice-starting",
|
|
258
|
-
children:
|
|
259
|
-
}) : W.isListening ? /* @__PURE__ */
|
|
259
|
+
children: S("voice.starting", "Starting the microphone…")
|
|
260
|
+
}) : W.isListening ? /* @__PURE__ */ m("p", {
|
|
260
261
|
className: "text-status-error-text",
|
|
261
262
|
"data-testid": "assistant-voice-status",
|
|
262
|
-
children: [/* @__PURE__ */
|
|
263
|
-
}) : $ ? /* @__PURE__ */
|
|
263
|
+
children: [/* @__PURE__ */ p(le, {}), W.interim || S("voice.listening", "Listening… speak now, tap the square to stop")]
|
|
264
|
+
}) : $ ? /* @__PURE__ */ p("p", {
|
|
264
265
|
className: "text-status-error-text",
|
|
265
266
|
"data-testid": "assistant-voice-error",
|
|
266
267
|
children: $
|
|
267
|
-
}) :
|
|
268
|
+
}) : nt ? /* @__PURE__ */ p("button", {
|
|
268
269
|
type: "button",
|
|
269
|
-
onClick:
|
|
270
|
+
onClick: ot,
|
|
270
271
|
className: "text-status-error-text underline-offset-2 hover:underline",
|
|
271
272
|
"data-testid": "assistant-attachment-rejection",
|
|
272
|
-
children:
|
|
273
|
-
}) :
|
|
273
|
+
children: It(nt)
|
|
274
|
+
}) : tt === "failed" ? /* @__PURE__ */ p("p", {
|
|
274
275
|
className: "text-status-error-text",
|
|
275
276
|
"data-testid": "assistant-attachment-blocked",
|
|
276
|
-
children:
|
|
277
|
-
}) : n ? /* @__PURE__ */
|
|
277
|
+
children: xt.length === 1 ? S("attachments.blockedOne", "{{name}} didn't upload. Retry or remove it before sending.", { name: xt[0].filename }) : S("attachments.blockedMany", "{{count}} attachments didn't upload. Retry or remove them before sending.", { count: xt.length })
|
|
278
|
+
}) : n ? /* @__PURE__ */ p("p", {
|
|
278
279
|
className: "text-text-muted",
|
|
279
280
|
"data-testid": "assistant-stopping-status",
|
|
280
|
-
children:
|
|
281
|
-
}) : e ? /* @__PURE__ */
|
|
281
|
+
children: S("composer.stopping", "Stopping the reply…")
|
|
282
|
+
}) : e ? /* @__PURE__ */ p("p", {
|
|
282
283
|
className: "text-text-muted",
|
|
283
284
|
"data-testid": "assistant-stop-status",
|
|
284
|
-
children:
|
|
285
|
-
}) : /* @__PURE__ */
|
|
285
|
+
children: S("composer.stopped", "Reply stopped.")
|
|
286
|
+
}) : /* @__PURE__ */ p("p", {
|
|
286
287
|
className: "text-text-muted",
|
|
287
|
-
children:
|
|
288
|
+
children: S("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach")
|
|
288
289
|
});
|
|
289
|
-
if (
|
|
290
|
-
let e =
|
|
291
|
-
return /* @__PURE__ */
|
|
292
|
-
ref:
|
|
293
|
-
className: "flex-shrink-0 px-3 pt-1.5",
|
|
290
|
+
if (T) {
|
|
291
|
+
let e = _ !== void 0 && K.length === 0 && V.length === 0 && !W.isActive, t = S("composer.hint", "Enter to send · Shift+Enter for newline · drag or paste files to attach"), n = !!(j || N || W.isStarting || W.isListening || $ || nt || tt === "failed" || Ke !== null || I !== null), r = "focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--color-bg-elevated)]";
|
|
292
|
+
return /* @__PURE__ */ p(Te, { children: (i) => /* @__PURE__ */ m("div", {
|
|
293
|
+
ref: Qe,
|
|
294
|
+
className: Ue ? `flex-shrink-0 px-3 pt-1.5 ${ge}` : "flex-shrink-0 px-3 pt-1.5",
|
|
294
295
|
children: [
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
voiceLive:
|
|
298
|
-
children:
|
|
296
|
+
Be,
|
|
297
|
+
Ve ? /* @__PURE__ */ p(pe, {
|
|
298
|
+
voiceLive: x,
|
|
299
|
+
children: Ve
|
|
299
300
|
}) : null,
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ m("div", {
|
|
301
302
|
className: n || l ? "mb-1.5 px-1 text-center text-xs" : "",
|
|
302
303
|
"aria-live": "polite",
|
|
303
304
|
"data-testid": "assistant-composer-status",
|
|
304
|
-
children: [l ? /* @__PURE__ */
|
|
305
|
+
children: [l ? /* @__PURE__ */ p("p", {
|
|
305
306
|
className: "text-status-warning",
|
|
306
307
|
"data-testid": "assistant-write-access-warning",
|
|
307
|
-
children:
|
|
308
|
-
}) : null, n ?
|
|
308
|
+
children: S("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
|
|
309
|
+
}) : null, n ? Lt(Ke !== null, I !== null) : null]
|
|
309
310
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
311
|
+
/* @__PURE__ */ p("p", {
|
|
311
312
|
id: i,
|
|
312
313
|
hidden: !0,
|
|
313
314
|
"data-testid": "assistant-composer-hint",
|
|
314
315
|
children: t
|
|
315
316
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
onDragEnter:
|
|
318
|
-
onDragLeave:
|
|
319
|
-
onDragOver:
|
|
320
|
-
onDrop:
|
|
321
|
-
className: `flex flex-col rounded-3xl border transition-colors focus-within:border-[var(--color-focus-ring)] focus-within:ring-1 focus-within:ring-[var(--color-focus-ring)] ${
|
|
317
|
+
/* @__PURE__ */ m("div", {
|
|
318
|
+
onDragEnter: Mt,
|
|
319
|
+
onDragLeave: Nt,
|
|
320
|
+
onDragOver: Pt,
|
|
321
|
+
onDrop: Ft,
|
|
322
|
+
className: `flex flex-col rounded-3xl border transition-colors focus-within:border-[var(--color-focus-ring)] focus-within:ring-1 focus-within:ring-[var(--color-focus-ring)] ${He ? "bg-bg-surface" : "bg-bg-elevated"} ${k ? "border-dashed border-[var(--color-focus-ring)]" : "border-[var(--color-text-muted)]"}`,
|
|
322
323
|
"data-testid": "assistant-composer",
|
|
323
324
|
"data-presentation": "compact",
|
|
324
325
|
children: [
|
|
325
|
-
/* @__PURE__ */
|
|
326
|
+
/* @__PURE__ */ p("div", {
|
|
326
327
|
className: "px-3 pt-3 empty:hidden",
|
|
327
|
-
children: /* @__PURE__ */
|
|
328
|
-
disabled:
|
|
328
|
+
children: /* @__PURE__ */ m(Se, { children: [/* @__PURE__ */ p(se, {
|
|
329
|
+
disabled: j,
|
|
329
330
|
showSuggestions: K.length === 0,
|
|
330
|
-
onSuggest:
|
|
331
|
-
}), /* @__PURE__ */
|
|
331
|
+
onSuggest: bt
|
|
332
|
+
}), /* @__PURE__ */ p(oe, {
|
|
332
333
|
attachments: V,
|
|
333
|
-
onRemove:
|
|
334
|
-
onRetry:
|
|
335
|
-
disabled:
|
|
336
|
-
preparingCount:
|
|
334
|
+
onRemove: rt,
|
|
335
|
+
onRetry: it,
|
|
336
|
+
disabled: w || j,
|
|
337
|
+
preparingCount: et
|
|
337
338
|
})] })
|
|
338
339
|
}),
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
ref:
|
|
341
|
-
value:
|
|
342
|
-
onChange: (e) =>
|
|
343
|
-
onKeyDown:
|
|
344
|
-
onPaste:
|
|
345
|
-
disabled:
|
|
346
|
-
readOnly:
|
|
347
|
-
"aria-busy":
|
|
348
|
-
placeholder:
|
|
340
|
+
/* @__PURE__ */ p("textarea", {
|
|
341
|
+
ref: We,
|
|
342
|
+
value: D,
|
|
343
|
+
onChange: (e) => Dt(e.target.value),
|
|
344
|
+
onKeyDown: At,
|
|
345
|
+
onPaste: jt,
|
|
346
|
+
disabled: w,
|
|
347
|
+
readOnly: j,
|
|
348
|
+
"aria-busy": j || void 0,
|
|
349
|
+
placeholder: k ? S("composer.dropHere", "Drop files to attach") : vt,
|
|
349
350
|
rows: 1,
|
|
350
351
|
className: "min-h-10 w-full resize-none bg-transparent px-4 pb-1 pt-3 text-base leading-6 text-text-primary placeholder:text-text-muted focus:outline-none disabled:opacity-50",
|
|
351
352
|
"aria-describedby": i,
|
|
352
353
|
title: t,
|
|
353
|
-
"aria-label":
|
|
354
|
+
"aria-label": S("chatInput.ariaLabel", "Message input"),
|
|
354
355
|
"data-testid": "assistant-input"
|
|
355
356
|
}),
|
|
356
|
-
/* @__PURE__ */
|
|
357
|
+
/* @__PURE__ */ m("div", {
|
|
357
358
|
className: "flex flex-nowrap items-center gap-1 px-1.5 pb-1.5 pt-1",
|
|
358
359
|
"data-testid": "assistant-composer-controls",
|
|
359
360
|
children: [
|
|
360
|
-
/* @__PURE__ */
|
|
361
|
+
/* @__PURE__ */ p(ae, {
|
|
361
362
|
onFiles: H,
|
|
362
|
-
canAddMore:
|
|
363
|
-
disabled:
|
|
363
|
+
canAddMore: st,
|
|
364
|
+
disabled: w || j,
|
|
364
365
|
compact: !0,
|
|
365
366
|
capMenuHeight: !0
|
|
366
367
|
}),
|
|
367
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ p(fe, {
|
|
368
369
|
chip: !0,
|
|
369
|
-
readOnly:
|
|
370
|
-
mode:
|
|
371
|
-
availableModes:
|
|
372
|
-
onModeChange:
|
|
373
|
-
auto:
|
|
374
|
-
disabled:
|
|
375
|
-
disabledReason: I === null ?
|
|
370
|
+
readOnly: He,
|
|
371
|
+
mode: ke,
|
|
372
|
+
availableModes: g,
|
|
373
|
+
onModeChange: je,
|
|
374
|
+
auto: Me,
|
|
375
|
+
disabled: w || j,
|
|
376
|
+
disabledReason: I === null ? v ? "replying" : ze ?? "busy" : "busy"
|
|
376
377
|
}),
|
|
377
|
-
/* @__PURE__ */
|
|
378
|
-
W.isSupported && !
|
|
378
|
+
/* @__PURE__ */ p("div", { className: "min-w-0 flex-1" }),
|
|
379
|
+
W.isSupported && !x && /* @__PURE__ */ p(ce, {
|
|
379
380
|
compact: !0,
|
|
380
381
|
isListening: W.isListening,
|
|
381
382
|
isStarting: W.isStarting,
|
|
382
383
|
onToggle: W.toggle,
|
|
383
|
-
disabled:
|
|
384
|
+
disabled: w || j
|
|
384
385
|
}),
|
|
385
|
-
Q ? /* @__PURE__ */
|
|
386
|
-
ref:
|
|
386
|
+
Q ? /* @__PURE__ */ p("button", {
|
|
387
|
+
ref: Et,
|
|
387
388
|
type: "button",
|
|
388
|
-
onClick:
|
|
389
|
+
onClick: Tt,
|
|
389
390
|
className: `flex size-11 sm:size-10 flex-shrink-0 items-center justify-center rounded-full bg-action-primary-bg text-action-primary-text transition-colors hover:bg-action-primary-bg-hover ${r} ${I === null ? "" : "cursor-default opacity-60"}`,
|
|
390
|
-
"aria-label": I === null ?
|
|
391
|
-
title: I === null ?
|
|
391
|
+
"aria-label": I === null ? S("composer.stop", "Stop the reply") : S("composer.stopping", "Stopping the reply…"),
|
|
392
|
+
title: I === null ? S("composer.stop", "Stop the reply") : S("composer.stopping", "Stopping the reply…"),
|
|
392
393
|
"aria-disabled": I === null ? void 0 : "true",
|
|
393
394
|
"aria-busy": I === null ? void 0 : "true",
|
|
394
395
|
"data-testid": "assistant-stop",
|
|
395
|
-
children: I === null ? /* @__PURE__ */
|
|
396
|
+
children: I === null ? /* @__PURE__ */ p(xe, {
|
|
396
397
|
className: "size-4 fill-current",
|
|
397
398
|
"aria-hidden": "true"
|
|
398
|
-
}) : /* @__PURE__ */
|
|
399
|
+
}) : /* @__PURE__ */ p(f, {
|
|
399
400
|
className: "size-4 motion-safe:animate-spin",
|
|
400
401
|
"aria-hidden": "true"
|
|
401
402
|
})
|
|
402
|
-
}) : e ? /* @__PURE__ */
|
|
403
|
+
}) : e ? /* @__PURE__ */ p(ue, {
|
|
403
404
|
compact: !0,
|
|
404
|
-
invisible:
|
|
405
|
-
onStart:
|
|
406
|
-
disabled:
|
|
407
|
-
}) : /* @__PURE__ */
|
|
405
|
+
invisible: x,
|
|
406
|
+
onStart: _,
|
|
407
|
+
disabled: w || j
|
|
408
|
+
}) : /* @__PURE__ */ p("button", {
|
|
408
409
|
type: "button",
|
|
409
410
|
onClick: () => {
|
|
410
411
|
F(null), X();
|
|
411
412
|
},
|
|
412
413
|
disabled: !J,
|
|
413
414
|
className: `flex size-11 sm:size-10 flex-shrink-0 items-center justify-center rounded-full transition-colors ${r} ${J ? "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg-hover" : "bg-[var(--color-bg-disabled)] text-[var(--color-text-disabled)]"}`,
|
|
414
|
-
"aria-label":
|
|
415
|
+
"aria-label": S("chatInput.send", "Send message"),
|
|
415
416
|
"data-testid": "assistant-send",
|
|
416
|
-
children:
|
|
417
|
+
children: Ee || $e || j ? /* @__PURE__ */ p(f, {
|
|
417
418
|
className: "size-5 motion-safe:animate-spin",
|
|
418
419
|
"aria-hidden": "true"
|
|
419
|
-
}) : /* @__PURE__ */
|
|
420
|
+
}) : /* @__PURE__ */ p(be, {
|
|
420
421
|
className: "size-5",
|
|
421
422
|
"aria-hidden": "true"
|
|
422
423
|
})
|
|
@@ -428,95 +429,95 @@ var Se = ({ children: e }) => e(l()), g = ({ writeAccessDenied: l = !1, onSend:
|
|
|
428
429
|
]
|
|
429
430
|
}) });
|
|
430
431
|
}
|
|
431
|
-
return /* @__PURE__ */
|
|
432
|
+
return /* @__PURE__ */ m("div", {
|
|
432
433
|
className: "flex-shrink-0 px-3 pb-3 pt-1.5",
|
|
433
434
|
children: [
|
|
434
|
-
/* @__PURE__ */
|
|
435
|
-
onDragEnter:
|
|
436
|
-
onDragLeave:
|
|
437
|
-
onDragOver:
|
|
438
|
-
onDrop:
|
|
439
|
-
className: `rounded-2xl border p-2 shadow-sm transition-colors focus-within:border-action-primary-bg focus-within:ring-2 focus-within:ring-action-primary-bg/15 ${
|
|
435
|
+
/* @__PURE__ */ m("div", {
|
|
436
|
+
onDragEnter: Mt,
|
|
437
|
+
onDragLeave: Nt,
|
|
438
|
+
onDragOver: Pt,
|
|
439
|
+
onDrop: Ft,
|
|
440
|
+
className: `rounded-2xl border p-2 shadow-sm transition-colors focus-within:border-action-primary-bg focus-within:ring-2 focus-within:ring-action-primary-bg/15 ${k ? "border-action-primary-bg border-dashed bg-action-primary-bg/5" : "border-border-default bg-bg-sunken"}`,
|
|
440
441
|
"data-testid": "assistant-composer",
|
|
441
442
|
children: [
|
|
442
|
-
/* @__PURE__ */
|
|
443
|
-
disabled:
|
|
443
|
+
/* @__PURE__ */ m(Se, { children: [/* @__PURE__ */ p(se, {
|
|
444
|
+
disabled: j,
|
|
444
445
|
showSuggestions: K.length === 0,
|
|
445
|
-
onSuggest:
|
|
446
|
-
}), /* @__PURE__ */
|
|
446
|
+
onSuggest: bt
|
|
447
|
+
}), /* @__PURE__ */ p(oe, {
|
|
447
448
|
attachments: V,
|
|
448
|
-
onRemove:
|
|
449
|
-
onRetry:
|
|
450
|
-
disabled:
|
|
451
|
-
preparingCount:
|
|
449
|
+
onRemove: rt,
|
|
450
|
+
onRetry: it,
|
|
451
|
+
disabled: w || j,
|
|
452
|
+
preparingCount: et
|
|
452
453
|
})] }),
|
|
453
|
-
/* @__PURE__ */
|
|
454
|
+
/* @__PURE__ */ m("div", {
|
|
454
455
|
className: "flex items-end gap-2",
|
|
455
456
|
children: [
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ p(ae, {
|
|
457
458
|
onFiles: H,
|
|
458
|
-
canAddMore:
|
|
459
|
-
disabled:
|
|
459
|
+
canAddMore: st,
|
|
460
|
+
disabled: w || j,
|
|
460
461
|
showLabel: !0
|
|
461
462
|
}),
|
|
462
|
-
/* @__PURE__ */
|
|
463
|
-
ref:
|
|
464
|
-
value:
|
|
465
|
-
onChange: (e) =>
|
|
466
|
-
onKeyDown:
|
|
467
|
-
onPaste:
|
|
468
|
-
disabled:
|
|
469
|
-
readOnly:
|
|
470
|
-
"aria-busy":
|
|
471
|
-
placeholder:
|
|
463
|
+
/* @__PURE__ */ p("textarea", {
|
|
464
|
+
ref: E,
|
|
465
|
+
value: D,
|
|
466
|
+
onChange: (e) => O(e.target.value),
|
|
467
|
+
onKeyDown: kt,
|
|
468
|
+
onPaste: jt,
|
|
469
|
+
disabled: w,
|
|
470
|
+
readOnly: j,
|
|
471
|
+
"aria-busy": j || void 0,
|
|
472
|
+
placeholder: k ? S("composer.dropHere", "Drop files to attach") : vt,
|
|
472
473
|
rows: 1,
|
|
473
474
|
className: "min-h-[36px] flex-1 resize-none self-center bg-transparent px-1 py-2 text-[15px] leading-relaxed text-text-primary placeholder:text-text-muted focus:outline-none disabled:opacity-50",
|
|
474
|
-
"aria-label":
|
|
475
|
+
"aria-label": S("chatInput.ariaLabel", "Message input"),
|
|
475
476
|
"data-testid": "assistant-input"
|
|
476
477
|
}),
|
|
477
|
-
W.isSupported && /* @__PURE__ */
|
|
478
|
+
W.isSupported && /* @__PURE__ */ p(ce, {
|
|
478
479
|
isListening: W.isListening,
|
|
479
480
|
isStarting: W.isStarting,
|
|
480
481
|
onToggle: W.toggle,
|
|
481
|
-
disabled:
|
|
482
|
+
disabled: w || j
|
|
482
483
|
}),
|
|
483
|
-
|
|
484
|
-
onStart:
|
|
485
|
-
disabled:
|
|
486
|
-
}) : /* @__PURE__ */
|
|
484
|
+
_ && K.length === 0 && V.length === 0 && !W.isActive ? /* @__PURE__ */ p(ue, {
|
|
485
|
+
onStart: _,
|
|
486
|
+
disabled: w || j
|
|
487
|
+
}) : /* @__PURE__ */ p("button", {
|
|
487
488
|
type: "button",
|
|
488
489
|
onClick: () => void X(),
|
|
489
490
|
disabled: !J,
|
|
490
491
|
className: `flex size-9 flex-shrink-0 items-center justify-center rounded-full shadow-sm transition-all focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong ${J ? "bg-action-primary-bg text-action-primary-text hover:scale-105 hover:bg-action-primary-bg-hover" : "bg-bg-elevated text-text-muted"}`,
|
|
491
|
-
"aria-label":
|
|
492
|
+
"aria-label": S("chatInput.send", "Send message"),
|
|
492
493
|
"data-testid": "assistant-send",
|
|
493
|
-
children:
|
|
494
|
+
children: Ee || $e || j ? /* @__PURE__ */ p(f, { className: "size-4 motion-safe:animate-spin" }) : /* @__PURE__ */ p(be, { className: "size-4" })
|
|
494
495
|
})
|
|
495
496
|
]
|
|
496
497
|
}),
|
|
497
|
-
(
|
|
498
|
+
(g.length > 1 || g.some((e) => e.writeCapable)) && /* @__PURE__ */ p("div", {
|
|
498
499
|
className: "mt-2 px-0.5",
|
|
499
|
-
children: /* @__PURE__ */
|
|
500
|
-
mode:
|
|
501
|
-
availableModes:
|
|
502
|
-
onModeChange:
|
|
503
|
-
disabled:
|
|
504
|
-
auto:
|
|
500
|
+
children: /* @__PURE__ */ p(de, {
|
|
501
|
+
mode: ke,
|
|
502
|
+
availableModes: g,
|
|
503
|
+
onModeChange: je,
|
|
504
|
+
disabled: w || j,
|
|
505
|
+
auto: Me
|
|
505
506
|
})
|
|
506
507
|
})
|
|
507
508
|
]
|
|
508
509
|
}),
|
|
509
|
-
l ? /* @__PURE__ */
|
|
510
|
+
l ? /* @__PURE__ */ p("p", {
|
|
510
511
|
className: "mt-1.5 px-1 text-center text-[11px] text-status-warning",
|
|
511
512
|
"data-testid": "assistant-write-access-warning",
|
|
512
|
-
children:
|
|
513
|
+
children: S("composer.writeAccessDenied", "Changes may not save — your role in this workspace does not currently allow edits. You can still plan and review an action.")
|
|
513
514
|
}) : null,
|
|
514
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ p("div", {
|
|
515
516
|
className: "mt-1.5 px-1 text-center text-[11px]",
|
|
516
517
|
"aria-live": "polite",
|
|
517
|
-
children:
|
|
518
|
+
children: Lt(!1, !1)
|
|
518
519
|
})
|
|
519
520
|
]
|
|
520
521
|
});
|
|
521
522
|
};
|
|
522
|
-
export {
|
|
523
|
+
export { h as AssistantComposer };
|