@burdenoff/fe-libs 2026.1029.11 → 2026.1030.2
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/connections/ConnectionDetailsTab.d.ts +4 -1
- package/dist/connections/ConnectionDetailsTab.js +18 -15
- package/dist/connections/ConnectionDialog.d.ts +8 -2
- package/dist/connections/ConnectionDialog.js +18 -17
- package/dist/connections/ConnectionDialogPanel.d.ts +3 -1
- package/dist/connections/ConnectionDialogPanel.js +141 -135
- package/dist/connections/ShareConnectionDialog.d.ts +23 -0
- package/dist/connections/ShareConnectionDialog.js +146 -0
- package/dist/connections/SharePanels.d.ts +32 -0
- package/dist/connections/SharePanels.js +158 -0
- package/dist/connections/VisibilityChoice.d.ts +12 -0
- package/dist/connections/VisibilityChoice.js +60 -0
- package/dist/connections/api.d.ts +12 -1
- package/dist/connections/api.js +1 -1
- package/dist/connections/connectionFlow.d.ts +6 -1
- package/dist/connections/connectionFlow.js +1 -1
- package/dist/connections/index.d.ts +4 -1
- package/dist/connections/sharingApi.d.ts +28 -0
- package/dist/connections/sharingApi.js +215 -0
- package/dist/connections/types.d.ts +31 -0
- package/dist/connections/useConnectionSharingDraft.d.ts +40 -0
- package/dist/connections/useConnectionSharingDraft.js +93 -0
- package/dist/connections.js +12 -9
- package/dist/shared/assistant/i18nManifest.d.ts +18 -0
- package/dist/shared/assistant/i18nManifest.js +18 -0
- package/dist/shared/assistant/index.d.ts +4 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +9 -1
- package/dist/shared/assistant/ui/AIAssistantPanel.js +194 -174
- package/dist/shared/assistant/ui/AssistantChatArea.d.ts +33 -0
- package/dist/shared/assistant/ui/AssistantChatArea.js +1463 -1397
- package/dist/shared/assistant/ui/AssistantLanguageMenu.d.ts +9 -1
- package/dist/shared/assistant/ui/AssistantLanguageMenu.js +22 -22
- package/dist/shared/assistant/ui/AssistantOverlay.d.ts +16 -2
- package/dist/shared/assistant/ui/AssistantOverlay.js +219 -200
- package/dist/shared/assistant/ui/assistantOverlayState.d.ts +16 -2
- package/dist/shared/assistant/ui/assistantOverlayState.js +57 -40
- package/dist/shared/assistant/ui/compact/AssistantConversationMenu.js +53 -52
- package/dist/shared/assistant/ui/compact/AssistantDiscardDraftDialog.js +3 -4
- package/dist/shared/assistant/ui/compact/AssistantLanguagePill.d.ts +29 -0
- package/dist/shared/assistant/ui/compact/AssistantLanguagePill.js +98 -0
- package/dist/shared/assistant/ui/compact/AssistantVoiceReady.d.ts +31 -0
- package/dist/shared/assistant/ui/compact/AssistantVoiceReady.js +41 -0
- package/dist/shared/assistant/ui/compact/AssistantWaitingChangeRow.d.ts +6 -0
- package/dist/shared/assistant/ui/compact/AssistantWaitingChangeRow.js +5 -5
- package/dist/shared/assistant/ui/compact/AssistantWindowHeader.d.ts +22 -5
- package/dist/shared/assistant/ui/compact/AssistantWindowHeader.js +45 -31
- package/dist/shared/assistant/ui/compact/windowView.d.ts +50 -0
- package/dist/shared/assistant/ui/compact/windowView.js +31 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +6 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +90 -89
- package/dist/shared/assistant/ui/composer/AssistantModeMenu.d.ts +6 -0
- package/dist/shared/assistant/ui/composer/AssistantModeMenu.js +83 -83
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +31 -0
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.js +270 -166
- package/dist/shared/assistant/ui/voice/VoiceStage.d.ts +8 -0
- package/dist/shared/assistant/ui/voice/VoiceStage.js +10 -10
- package/dist/shared/assistant/voice/voiceStartedCue.d.ts +11 -0
- package/dist/shared/assistant/voice/voiceStartedCue.js +7 -0
- package/dist/shared-assistant.js +266 -262
- package/dist/ui/modal-shell.d.ts +6 -1
- package/dist/ui/modal-shell.js +7 -6
- package/package.json +1 -1
|
@@ -30,255 +30,275 @@ import { AssistantConversationMenu as Fe } from "./compact/AssistantConversation
|
|
|
30
30
|
import { AssistantDiscardDraftDialog as Ie } from "./compact/AssistantDiscardDraftDialog.js";
|
|
31
31
|
import { AssistantMenuView as Le } from "./compact/AssistantMenuView.js";
|
|
32
32
|
import { AssistantWindowHeader as Re } from "./compact/AssistantWindowHeader.js";
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
33
|
+
import { WINDOW_VOICE_IDLE as ze, useAssistantWindowView as Be } from "./compact/windowView.js";
|
|
34
|
+
import { useCallback as n, useEffect as r, useId as Ve, useMemo as i, useRef as a, useState as o } from "react";
|
|
35
|
+
import { Fragment as He, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
35
36
|
//#region src/shared/assistant/ui/AIAssistantPanel.tsx
|
|
36
|
-
var
|
|
37
|
-
let
|
|
38
|
-
Te(
|
|
39
|
-
let [
|
|
40
|
-
|
|
41
|
-
let
|
|
42
|
-
me(_e(
|
|
43
|
-
let
|
|
44
|
-
e(
|
|
45
|
-
let { conversations:
|
|
46
|
-
|
|
47
|
-
let
|
|
37
|
+
var Ue = { backgroundColor: "var(--color-bg-elevated)" }, l = ({ onClose: l, visible: u, docked: We, onToggleDock: d, writeAccess: Ge, onNavigate: Ke, isShellLessTarget: qe, connectSourceHref: Je, onConnectSource: Ye, preview: f, liveAvatar: p, presentation: m, onExpandedChange: h, surface: g, onOpenFull: Xe, onMinimize: _, windowView: Ze, onWindowViewChange: Qe, serverHistory: $e = !1 }) => {
|
|
38
|
+
let v = te(), et = de(p);
|
|
39
|
+
Te($e);
|
|
40
|
+
let [tt, y] = o(!1), b = ge(f);
|
|
41
|
+
tt && !b && y(!1);
|
|
42
|
+
let x = tt && b;
|
|
43
|
+
me(_e(f, ve()));
|
|
44
|
+
let S = a(null);
|
|
45
|
+
e(S);
|
|
46
|
+
let { conversations: nt, activeConversationId: rt, conversationListOpen: C, setConversationListOpen: w, createConversation: T } = ne(), E = m === "compact", D = E && g === "window", [it, O] = o(!1), k = a(!1);
|
|
47
|
+
it && (!E || D || C || x) && O(!1);
|
|
48
|
+
let A = E && it, [at, ot] = o(!1), j = je(E && !D && h !== void 0), [M, st] = o(!1), N = j && M;
|
|
48
49
|
r(() => {
|
|
49
|
-
|
|
50
|
+
M && !j && (st(!1), h?.(!1));
|
|
50
51
|
}, [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
M,
|
|
53
|
+
j,
|
|
54
|
+
h
|
|
54
55
|
]);
|
|
55
|
-
let
|
|
56
|
-
let e = !
|
|
57
|
-
|
|
58
|
-
},
|
|
56
|
+
let ct = () => {
|
|
57
|
+
let e = !N;
|
|
58
|
+
st(e), h?.(e);
|
|
59
|
+
}, lt = a(!1), ut = a(h);
|
|
59
60
|
r(() => {
|
|
60
|
-
|
|
61
|
+
lt.current = N, ut.current = h;
|
|
61
62
|
}), r(() => () => {
|
|
62
|
-
|
|
63
|
+
lt.current && ut.current?.(!1);
|
|
63
64
|
}, []);
|
|
64
|
-
let
|
|
65
|
-
|
|
66
|
-
let
|
|
67
|
-
chatTab: `${
|
|
68
|
-
avatarTab: `${
|
|
69
|
-
chatPanel: `${
|
|
70
|
-
avatarPanel: `${
|
|
71
|
-
leaveHint: `${
|
|
72
|
-
} : null, [
|
|
73
|
-
|
|
74
|
-
}, []),
|
|
75
|
-
open:
|
|
76
|
-
close:
|
|
77
|
-
ids:
|
|
78
|
-
covered:
|
|
79
|
-
setReplyEscape:
|
|
65
|
+
let P = C || x || A, F = p?.tab, dt = fe(F), [I, L] = o(!1);
|
|
66
|
+
I && (!F || u === !1 || D) && L(!1);
|
|
67
|
+
let R = F !== void 0 && (dt || I), z = Ve(), ft = Ve(), B = i(() => R ? {
|
|
68
|
+
chatTab: `${z}-chat-tab`,
|
|
69
|
+
avatarTab: `${z}-avatar-tab`,
|
|
70
|
+
chatPanel: `${z}-chat-panel`,
|
|
71
|
+
avatarPanel: `${z}-avatar-panel`,
|
|
72
|
+
leaveHint: `${z}-avatar-leave`
|
|
73
|
+
} : null, [R, z]), pt = n(() => L(!1), []), V = a(null), mt = n((e) => {
|
|
74
|
+
V.current = e;
|
|
75
|
+
}, []), ht = i(() => ({
|
|
76
|
+
open: I,
|
|
77
|
+
close: pt,
|
|
78
|
+
ids: B,
|
|
79
|
+
covered: P,
|
|
80
|
+
setReplyEscape: mt
|
|
80
81
|
}), [
|
|
81
|
-
R,
|
|
82
|
-
st,
|
|
83
|
-
H,
|
|
84
82
|
I,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
83
|
+
pt,
|
|
84
|
+
B,
|
|
85
|
+
P,
|
|
86
|
+
mt
|
|
87
|
+
]), gt = (e) => L(e === "avatar"), _t = () => {
|
|
88
|
+
O(!1), gt("avatar"), k.current = !0;
|
|
89
|
+
}, vt = oe({
|
|
90
|
+
historyOpen: C,
|
|
91
|
+
previewOpen: x,
|
|
92
|
+
avatarOpen: I
|
|
93
|
+
}) ?? (A ? "menu" : null), H = (e) => {
|
|
93
94
|
let t = ce({
|
|
94
|
-
historyOpen:
|
|
95
|
-
previewOpen:
|
|
95
|
+
historyOpen: C,
|
|
96
|
+
previewOpen: x
|
|
96
97
|
}, e);
|
|
97
|
-
|
|
98
|
+
w(t.historyOpen), y(t.previewOpen);
|
|
98
99
|
};
|
|
99
|
-
t("assistant.history", i(() => ({ run: () =>
|
|
100
|
+
t("assistant.history", i(() => ({ run: () => C ? { status: "already" } : (w(!0), y(!1), { status: "done" }) }), [C, w])), t("assistant.preview", i(() => b ? {
|
|
100
101
|
surface: "panel",
|
|
101
|
-
run: () =>
|
|
102
|
-
close: () =>
|
|
102
|
+
run: () => x ? { status: "already" } : (w(!1), y(!0), { status: "done" }),
|
|
103
|
+
close: () => x ? (y(!1), { status: "done" }) : { status: "already" }
|
|
103
104
|
} : null, [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
b,
|
|
106
|
+
x,
|
|
107
|
+
w
|
|
107
108
|
]));
|
|
108
|
-
let
|
|
109
|
-
Oe(
|
|
110
|
-
let
|
|
111
|
-
|
|
112
|
-
}, []),
|
|
113
|
-
compact:
|
|
114
|
-
unsent:
|
|
115
|
-
confirmed:
|
|
116
|
-
}) === "close" ? !1 : (
|
|
109
|
+
let yt = nt.find((e) => e.id === rt);
|
|
110
|
+
Oe(yt?.backendSessionId ?? null, yt?.mode ?? null, u ?? !0), Ee(u ?? !0);
|
|
111
|
+
let bt = ee(u !== !1), U = Ne(), W = a(!1), xt = n((e) => {
|
|
112
|
+
W.current = e;
|
|
113
|
+
}, []), G = a(!1), [St, K] = o(!1), q = n(() => Ae({
|
|
114
|
+
compact: E,
|
|
115
|
+
unsent: W.current,
|
|
116
|
+
confirmed: G.current
|
|
117
|
+
}) === "close" ? !1 : (K(!0), !0), [E]);
|
|
117
118
|
r(() => {
|
|
118
|
-
if (!(!
|
|
119
|
+
if (!(!E || !U)) return U(q);
|
|
119
120
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
E,
|
|
122
|
+
U,
|
|
123
|
+
q
|
|
123
124
|
]);
|
|
124
|
-
let
|
|
125
|
-
if (
|
|
126
|
-
|
|
125
|
+
let J = n(() => {
|
|
126
|
+
if (D && _) {
|
|
127
|
+
_();
|
|
127
128
|
return;
|
|
128
129
|
}
|
|
129
|
-
|
|
130
|
+
q() || l();
|
|
130
131
|
}, [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
D,
|
|
133
|
+
_,
|
|
134
|
+
q,
|
|
134
135
|
l
|
|
135
|
-
]),
|
|
136
|
-
|
|
136
|
+
]), Ct = () => {
|
|
137
|
+
G.current = !0, W.current = !1, K(!1);
|
|
137
138
|
try {
|
|
138
139
|
l();
|
|
139
140
|
} finally {
|
|
140
|
-
|
|
141
|
+
G.current = !1;
|
|
141
142
|
}
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
}, [
|
|
145
|
-
|
|
146
|
-
}, [
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
}, Y = a(null), wt = a(null), Tt = a(null), Et = n(() => O(!1), []), [Dt, X] = o(0), Ot = n(() => {
|
|
144
|
+
T(), O(!1), w(!1), X((e) => e + 1);
|
|
145
|
+
}, [T, w]), [Z, kt] = o(ze), At = n((e) => {
|
|
146
|
+
kt((t) => t.available === e.available && t.live === e.live ? t : e);
|
|
147
|
+
}, []), Q = Be({
|
|
148
|
+
stored: Ze ?? null,
|
|
149
|
+
onRemember: Qe,
|
|
150
|
+
voice: Z
|
|
151
|
+
}), jt = n((e) => {
|
|
152
|
+
Xe?.(), !Z.live && e?.review !== !0 && X((e) => e + 1);
|
|
153
|
+
}, [Xe, Z.live]), $ = Q.remember, Mt = n(() => $("chat"), [$]), Nt = n(() => {
|
|
154
|
+
$("chat"), X((e) => e + 1);
|
|
155
|
+
}, [$]), Pt = n(() => {
|
|
156
|
+
O(!1), ot(!0);
|
|
157
|
+
}, []), Ft = a(!1);
|
|
149
158
|
return r(() => {
|
|
150
|
-
if (
|
|
159
|
+
if (Ft.current && !A) {
|
|
151
160
|
let e = document.activeElement;
|
|
152
|
-
(!e || e === document.body || e ===
|
|
161
|
+
(!e || e === document.body || e === S.current) && wt.current?.focus({ preventScroll: !0 });
|
|
153
162
|
}
|
|
154
|
-
|
|
155
|
-
}, [
|
|
156
|
-
|
|
157
|
-
}, [
|
|
158
|
-
!
|
|
159
|
-
}, [
|
|
160
|
-
panelRef:
|
|
161
|
-
inputRef:
|
|
162
|
-
onNewConversation:
|
|
163
|
-
onOpenConversationMenu:
|
|
163
|
+
Ft.current = A;
|
|
164
|
+
}, [A]), r(() => {
|
|
165
|
+
Dt > 0 && Y.current?.focus({ preventScroll: !0 });
|
|
166
|
+
}, [Dt]), r(() => {
|
|
167
|
+
!k.current || !I || !B || (k.current = !1, document.getElementById(B.avatarTab)?.focus({ preventScroll: !0 }));
|
|
168
|
+
}, [I, B]), ke({
|
|
169
|
+
panelRef: S,
|
|
170
|
+
inputRef: E ? Y : void 0,
|
|
171
|
+
onNewConversation: E ? Ot : void 0,
|
|
172
|
+
onOpenConversationMenu: E && !D ? Pt : void 0,
|
|
164
173
|
onClose: () => {
|
|
165
174
|
let e = se({
|
|
166
|
-
historyOpen:
|
|
167
|
-
previewOpen:
|
|
168
|
-
avatarOpen:
|
|
169
|
-
tabReplySpeaking:
|
|
175
|
+
historyOpen: C,
|
|
176
|
+
previewOpen: x,
|
|
177
|
+
avatarOpen: I,
|
|
178
|
+
tabReplySpeaking: V.current !== null
|
|
170
179
|
});
|
|
171
180
|
if (e === "overlay") {
|
|
172
|
-
|
|
181
|
+
w(!1), y(!1);
|
|
173
182
|
return;
|
|
174
183
|
}
|
|
175
184
|
if (e === "tab-reply") {
|
|
176
|
-
|
|
185
|
+
V.current?.();
|
|
177
186
|
return;
|
|
178
187
|
}
|
|
179
188
|
if (e === "tab") {
|
|
180
|
-
|
|
189
|
+
L(!1), B && document.getElementById(B.chatTab)?.focus();
|
|
181
190
|
return;
|
|
182
191
|
}
|
|
183
|
-
if (
|
|
184
|
-
|
|
192
|
+
if (A) {
|
|
193
|
+
O(!1);
|
|
185
194
|
return;
|
|
186
195
|
}
|
|
187
|
-
|
|
196
|
+
J();
|
|
188
197
|
}
|
|
189
198
|
}), /* @__PURE__ */ s(re, {
|
|
190
199
|
visible: u ?? !0,
|
|
191
|
-
engine:
|
|
200
|
+
engine: et,
|
|
192
201
|
children: /* @__PURE__ */ s(le, {
|
|
193
|
-
value:
|
|
202
|
+
value: p,
|
|
194
203
|
children: /* @__PURE__ */ s(ue.Provider, {
|
|
195
|
-
value:
|
|
204
|
+
value: ht,
|
|
196
205
|
children: /* @__PURE__ */ s(pe, {
|
|
197
|
-
value:
|
|
206
|
+
value: f,
|
|
198
207
|
children: /* @__PURE__ */ s(we, {
|
|
199
|
-
navigate:
|
|
200
|
-
isShellLessTarget:
|
|
208
|
+
navigate: Ke,
|
|
209
|
+
isShellLessTarget: qe,
|
|
201
210
|
children: /* @__PURE__ */ s(he, {
|
|
202
|
-
value:
|
|
203
|
-
onOpen:
|
|
211
|
+
value: Je,
|
|
212
|
+
onOpen: Ye,
|
|
204
213
|
children: /* @__PURE__ */ s(Se, { children: /* @__PURE__ */ s(Ce, { children: /* @__PURE__ */ c("div", {
|
|
205
|
-
ref:
|
|
214
|
+
ref: S,
|
|
206
215
|
className: "relative flex h-full w-full flex-col bg-bg-surface",
|
|
207
|
-
style:
|
|
216
|
+
style: D ? Ue : void 0,
|
|
208
217
|
role: "complementary",
|
|
209
|
-
"aria-label":
|
|
218
|
+
"aria-label": D ? v("window.title", "Quick assistant") : v("panel.ariaLabel", "AI Assistant"),
|
|
210
219
|
"data-testid": "ai-assistant-panel",
|
|
211
220
|
[ae]: "",
|
|
212
|
-
...
|
|
213
|
-
...
|
|
221
|
+
...vt ? { [ie]: vt } : {},
|
|
222
|
+
...E ? {
|
|
214
223
|
"data-presentation": "compact",
|
|
215
|
-
...
|
|
216
|
-
...
|
|
224
|
+
...g ? { "data-assistant-surface": g } : {},
|
|
225
|
+
...N ? { "data-assistant-expanded": "" } : {}
|
|
217
226
|
} : {},
|
|
218
227
|
tabIndex: -1,
|
|
219
228
|
children: [
|
|
220
229
|
/* @__PURE__ */ c("div", {
|
|
221
230
|
className: "contents",
|
|
222
|
-
inert:
|
|
223
|
-
children: [
|
|
224
|
-
|
|
225
|
-
|
|
231
|
+
inert: P || void 0,
|
|
232
|
+
children: [E ? /* @__PURE__ */ c(He, { children: [D ? /* @__PURE__ */ s(Re, {
|
|
233
|
+
view: Q.view,
|
|
234
|
+
onSelectView: Q.select,
|
|
235
|
+
voiceLive: Z.live,
|
|
236
|
+
onOpenFull: jt,
|
|
237
|
+
onMinimize: () => _?.()
|
|
226
238
|
}) : /* @__PURE__ */ s(Pe, {
|
|
227
|
-
contextLabel:
|
|
228
|
-
menuOpen:
|
|
229
|
-
menuViewId:
|
|
230
|
-
onOpenMenu: () =>
|
|
231
|
-
menuButtonRef:
|
|
239
|
+
contextLabel: bt,
|
|
240
|
+
menuOpen: A,
|
|
241
|
+
menuViewId: ft,
|
|
242
|
+
onOpenMenu: () => O(!0),
|
|
243
|
+
menuButtonRef: wt,
|
|
232
244
|
conversationMenu: /* @__PURE__ */ s(Fe, {
|
|
233
|
-
open:
|
|
234
|
-
onOpenChange:
|
|
235
|
-
triggerRef:
|
|
245
|
+
open: at,
|
|
246
|
+
onOpenChange: ot,
|
|
247
|
+
triggerRef: Tt
|
|
236
248
|
}),
|
|
237
|
-
expandOffered:
|
|
238
|
-
expanded:
|
|
239
|
-
onToggleExpanded:
|
|
240
|
-
onTogglePreview: () =>
|
|
241
|
-
previewOpen:
|
|
242
|
-
onClose:
|
|
249
|
+
expandOffered: j,
|
|
250
|
+
expanded: N,
|
|
251
|
+
onToggleExpanded: ct,
|
|
252
|
+
onTogglePreview: () => H("preview"),
|
|
253
|
+
previewOpen: x,
|
|
254
|
+
onClose: J
|
|
243
255
|
}), /* @__PURE__ */ s(Ie, {
|
|
244
|
-
open:
|
|
245
|
-
onKeep: () =>
|
|
246
|
-
onDiscard:
|
|
256
|
+
open: St,
|
|
257
|
+
onKeep: () => K(!1),
|
|
258
|
+
onDiscard: Ct
|
|
247
259
|
})] }) : /* @__PURE__ */ s(be, {
|
|
248
|
-
contextLabel:
|
|
249
|
-
onNewConversation: () =>
|
|
250
|
-
onOpenHistory: () =>
|
|
251
|
-
historyOpen:
|
|
252
|
-
onTogglePreview: () =>
|
|
253
|
-
previewOpen:
|
|
260
|
+
contextLabel: bt,
|
|
261
|
+
onNewConversation: () => T(),
|
|
262
|
+
onOpenHistory: () => H("history"),
|
|
263
|
+
historyOpen: C,
|
|
264
|
+
onTogglePreview: () => H("preview"),
|
|
265
|
+
previewOpen: x,
|
|
254
266
|
onClose: l,
|
|
255
|
-
docked:
|
|
256
|
-
onToggleDock:
|
|
257
|
-
}),
|
|
258
|
-
selected:
|
|
259
|
-
onSelect:
|
|
260
|
-
ids:
|
|
267
|
+
docked: We,
|
|
268
|
+
onToggleDock: d
|
|
269
|
+
}), B && !D ? /* @__PURE__ */ s(De, {
|
|
270
|
+
selected: I ? "avatar" : "chat",
|
|
271
|
+
onSelect: gt,
|
|
272
|
+
ids: B
|
|
261
273
|
}) : null]
|
|
262
274
|
}),
|
|
263
|
-
|
|
264
|
-
id:
|
|
265
|
-
onClose:
|
|
266
|
-
onRequestClosePanel:
|
|
267
|
-
onNewConversation:
|
|
268
|
-
onOpenAvatar:
|
|
269
|
-
docked:
|
|
270
|
-
onToggleDock:
|
|
275
|
+
C ? /* @__PURE__ */ s(xe, { presentation: m }) : A ? /* @__PURE__ */ s(Le, {
|
|
276
|
+
id: ft,
|
|
277
|
+
onClose: Et,
|
|
278
|
+
onRequestClosePanel: J,
|
|
279
|
+
onNewConversation: Ot,
|
|
280
|
+
onOpenAvatar: R ? _t : void 0,
|
|
281
|
+
docked: We,
|
|
282
|
+
onToggleDock: d
|
|
271
283
|
}) : null,
|
|
272
|
-
|
|
284
|
+
x && /* @__PURE__ */ s(ye, { onClose: () => y(!1) }),
|
|
273
285
|
/* @__PURE__ */ s("div", {
|
|
274
286
|
className: "contents",
|
|
275
|
-
inert:
|
|
287
|
+
inert: P || void 0,
|
|
276
288
|
children: /* @__PURE__ */ s(Me, {
|
|
277
289
|
visible: u ?? !0,
|
|
278
|
-
writeAccess:
|
|
279
|
-
presentation:
|
|
280
|
-
inputRef:
|
|
281
|
-
onDraftDirtyChange:
|
|
290
|
+
writeAccess: Ge,
|
|
291
|
+
presentation: m,
|
|
292
|
+
inputRef: E ? Y : void 0,
|
|
293
|
+
onDraftDirtyChange: E ? xt : void 0,
|
|
294
|
+
...D ? {
|
|
295
|
+
surface: g,
|
|
296
|
+
windowView: Q.view,
|
|
297
|
+
onWindowVoiceChange: At,
|
|
298
|
+
onOpenFull: jt,
|
|
299
|
+
onContinuedInChat: Nt,
|
|
300
|
+
onShowChat: Mt
|
|
301
|
+
} : {}
|
|
282
302
|
})
|
|
283
303
|
})
|
|
284
304
|
]
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { FC, Ref } from 'react';
|
|
2
2
|
import { AssistantPresentation } from './composer/AssistantComposer';
|
|
3
|
+
import { WindowVoiceState } from './compact/windowView';
|
|
4
|
+
import { AssistantSurface, AssistantWindowView } from './assistantOverlayState';
|
|
3
5
|
import { WorkspaceWriteAccess } from '../useWorkspaceWriteAccess';
|
|
4
6
|
/**
|
|
5
7
|
* `visible` is false when the host HIDES the panel without unmounting it, which
|
|
@@ -40,5 +42,36 @@ export interface AssistantChatAreaProps {
|
|
|
40
42
|
* lifting it. Absent: nothing is reported.
|
|
41
43
|
*/
|
|
42
44
|
onDraftDirtyChange?: (dirty: boolean) => void;
|
|
45
|
+
/**
|
|
46
|
+
* BOFF-10180 (compact only): which surface the overlay shows the panel in. With
|
|
47
|
+
* `window`, this chat area is the Quick assistant window's: its view follows
|
|
48
|
+
* `windowView`, voice is reported through `onWindowVoiceChange`, and the waiting
|
|
49
|
+
* change's button opens the full assistant. Absent, in the full panel and in
|
|
50
|
+
* classic, nothing below is reached.
|
|
51
|
+
*/
|
|
52
|
+
surface?: AssistantSurface;
|
|
53
|
+
/** Window only: Chat (the conversation and its composer) or Voice (the stage). */
|
|
54
|
+
windowView?: AssistantWindowView;
|
|
55
|
+
/**
|
|
56
|
+
* Window only: told whether voice can start here and whether a session is live.
|
|
57
|
+
* The header's toggle, the language pill and Minimize's "(ends voice)" read it.
|
|
58
|
+
*/
|
|
59
|
+
onWindowVoiceChange?: (state: WindowVoiceState) => void;
|
|
60
|
+
/**
|
|
61
|
+
* Window only: "Review in full assistant" — the same instance, shown as the full panel.
|
|
62
|
+
* `review: true` says the person is going to a waiting change, so the panel leaves the
|
|
63
|
+
* message box alone and this chat area focuses the card.
|
|
64
|
+
*/
|
|
65
|
+
onOpenFull?: (options?: {
|
|
66
|
+
review?: boolean;
|
|
67
|
+
}) => void;
|
|
68
|
+
/** Window only: told when Continue in chat has written its note and ended voice. */
|
|
69
|
+
onContinuedInChat?: () => void;
|
|
70
|
+
/**
|
|
71
|
+
* Window only: a turn started while the Voice view hides the thread (a typed message
|
|
72
|
+
* sent from the box under the stage), so the window must show Chat: its reply is in
|
|
73
|
+
* the thread.
|
|
74
|
+
*/
|
|
75
|
+
onShowChat?: () => void;
|
|
43
76
|
}
|
|
44
77
|
export declare const AssistantChatArea: FC<AssistantChatAreaProps>;
|