@burdenoff/fe-libs 2026.1115.13 → 2026.1116.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/shared/assistant/history/useHistoryRowControls.d.ts +16 -0
- package/dist/shared/assistant/history/useHistoryRowControls.js +38 -14
- package/dist/shared/assistant/i18nManifest.d.ts +9 -0
- package/dist/shared/assistant/i18nManifest.js +9 -0
- package/dist/shared/assistant/index.d.ts +2 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.d.ts +16 -0
- package/dist/shared/assistant/ui/AIAssistantPanel.js +247 -223
- package/dist/shared/assistant/ui/AssistantChatArea.js +1355 -1347
- package/dist/shared/assistant/ui/AssistantOverlay.d.ts +6 -0
- package/dist/shared/assistant/ui/AssistantOverlay.js +4 -2
- package/dist/shared/assistant/ui/AssistantPageHost.d.ts +14 -1
- package/dist/shared/assistant/ui/AssistantPageHost.js +32 -19
- package/dist/shared/assistant/ui/AssistantRenameConversationDialog.d.ts +33 -0
- package/dist/shared/assistant/ui/AssistantRenameConversationDialog.js +70 -0
- package/dist/shared/assistant/ui/assistantPageBar.d.ts +33 -0
- package/dist/shared/assistant/ui/assistantPageBar.js +53 -0
- package/dist/shared/assistant/ui/assistantPageLayout.d.ts +20 -0
- package/dist/shared/assistant/ui/assistantPageLayout.js +10 -2
- package/dist/shared/assistant/ui/assistantPageStart.d.ts +17 -0
- package/dist/shared/assistant/ui/assistantPageStart.js +7 -4
- package/dist/shared/assistant/ui/compact/AssistantConversationMenu.d.ts +30 -0
- package/dist/shared/assistant/ui/compact/AssistantConversationMenu.js +174 -53
- package/dist/shared/assistant/ui/compact/AssistantPageBar.d.ts +19 -0
- package/dist/shared/assistant/ui/compact/AssistantPageBar.js +24 -19
- package/dist/shared/assistant/ui/composer/AssistantComposer.d.ts +2 -0
- package/dist/shared/assistant/ui/composer/AssistantComposer.js +347 -340
- package/dist/shared/assistant/ui/composer/AssistantDictation.d.ts +5 -0
- package/dist/shared/assistant/ui/composer/AssistantDictation.js +41 -40
- package/dist/shared/assistant/ui/composer/pageBoxClass.d.ts +28 -1
- package/dist/shared/assistant/ui/composer/pageBoxClass.js +17 -1
- package/dist/shared/assistant/ui/conversationDeleteDialog.d.ts +14 -4
- package/dist/shared/assistant/ui/conversationDeleteDialog.js +7 -6
- package/dist/shared/assistant/ui/voice/AssistantVoiceSessionButton.js +1 -1
- package/dist/shared/assistant/ui/voice/LiveWaveform.js +1 -1
- package/dist/shared/events/index.d.ts +7 -2
- package/dist/shared/events/sinks/OtelBrowserSink.d.ts +5 -0
- package/dist/shared/events/sinks/WebVitalsSink.d.ts +25 -0
- package/dist/shared/events/sinks/WebVitalsSink.js +51 -0
- package/dist/shared/events/sinks/index.d.ts +3 -0
- package/dist/shared/events/sinks/index.js +2 -1
- package/dist/shared/index.d.ts +1 -0
- package/dist/shared/providers/AppShellProvider.d.ts +16 -0
- package/dist/shared/providers/AppShellProvider.js +291 -292
- package/dist/shared/providers/shell/ObservabilityProvider.d.ts +6 -6
- package/dist/shared/rum/context.d.ts +24 -0
- package/dist/shared/rum/context.js +40 -0
- package/dist/shared/rum/index.d.ts +14 -0
- package/dist/shared/rum/mount.d.ts +12 -0
- package/dist/shared/rum/mount.js +5 -0
- package/dist/shared/rum/reporter.d.ts +22 -0
- package/dist/shared/rum/reporter.js +166 -0
- package/dist/shared/rum/types.d.ts +56 -0
- package/dist/shared-assistant.js +256 -254
- package/dist/shared-events.js +29 -28
- package/dist/shared.js +78 -74
- package/dist/ui/glass-card.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,87 +1,208 @@
|
|
|
1
|
-
import { DropdownMenu as e, DropdownMenuContent as t, DropdownMenuItem as n,
|
|
2
|
-
import { focusWasDropped as
|
|
3
|
-
import { getAssistantControl as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
1
|
+
import { DropdownMenu as e, DropdownMenuContent as t, DropdownMenuItem as n, DropdownMenuSeparator as r, DropdownMenuTrigger as i } from "../../../../ui/dropdown-menu.js";
|
|
2
|
+
import { focusWasDropped as a } from "../../../hooks/useReturnFocus.js";
|
|
3
|
+
import { getAssistantControl as o, hasAssistantControl as s, subscribeAssistantControls as c } from "../../appControls/registry.js";
|
|
4
|
+
import { resolveConversationDeleteTarget as l } from "../../conversationDeleteCommand.js";
|
|
5
|
+
import { downloadFile as u, exportConversation as d } from "../../exportConversation.js";
|
|
6
|
+
import { assistantHistory as f } from "../../history/historyEngine.js";
|
|
7
|
+
import { useHistoryPinFor as p } from "../../history/useHistoryRowControls.js";
|
|
8
|
+
import { useAssistantTr as m } from "../../i18n.js";
|
|
9
|
+
import { useAssistantStore as h } from "../../store.js";
|
|
10
|
+
import { voiceTurnsOnly as g } from "../../voice/turnVisibility.js";
|
|
11
|
+
import { AssistantRenameConversationDialog as _ } from "../AssistantRenameConversationDialog.js";
|
|
12
|
+
import { assistantHistoryIsOn as v } from "../conversationDelete.js";
|
|
13
|
+
import { useConversationDeleteDialog as y } from "../conversationDeleteDialog.js";
|
|
14
|
+
import { ASSISTANT_PAGE_BAR_ICON_BUTTON as b } from "./AssistantPageBar.js";
|
|
15
|
+
import { useCallback as x, useRef as S, useState as C, useSyncExternalStore as w } from "react";
|
|
16
|
+
import { FileJson as T, FileText as E, Mic as D, MoreHorizontal as O, Pencil as k, Pin as A, PinOff as j, Trash2 as M } from "lucide-react";
|
|
17
|
+
import { Fragment as N, jsx as P, jsxs as F } from "react/jsx-runtime";
|
|
11
18
|
// src/shared/assistant/ui/compact/AssistantConversationMenu.tsx
|
|
12
|
-
var
|
|
13
|
-
|
|
19
|
+
var I = "min-h-11 gap-2.5 px-3", L = {
|
|
20
|
+
icon: {
|
|
21
|
+
button: "flex size-10 shrink-0 items-center justify-center rounded-button text-text-secondary transition-colors hover:bg-bg-sunken hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
22
|
+
icon: "size-5"
|
|
23
|
+
},
|
|
24
|
+
bar: {
|
|
25
|
+
button: b,
|
|
26
|
+
icon: "size-4"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
function R(e) {
|
|
30
|
+
let { tr: t, pin: i, onRename: a, onTogglePin: o } = e, s = i?.pinned ? j : A;
|
|
31
|
+
return /* @__PURE__ */ F(N, { children: [
|
|
32
|
+
/* @__PURE__ */ F(n, {
|
|
33
|
+
className: I,
|
|
34
|
+
onSelect: a,
|
|
35
|
+
"data-testid": "assistant-more-rename",
|
|
36
|
+
children: [/* @__PURE__ */ P(k, {
|
|
37
|
+
className: "size-4 shrink-0 text-text-secondary",
|
|
38
|
+
"aria-hidden": "true"
|
|
39
|
+
}), t("conversationMenu.rename", "Rename")]
|
|
40
|
+
}),
|
|
41
|
+
i ? /* @__PURE__ */ F(n, {
|
|
42
|
+
className: I,
|
|
43
|
+
onSelect: o,
|
|
44
|
+
"data-testid": "assistant-more-pin",
|
|
45
|
+
"data-pinned": i.pinned ? "true" : "false",
|
|
46
|
+
children: [/* @__PURE__ */ P(s, {
|
|
47
|
+
className: "size-4 shrink-0 text-text-secondary",
|
|
48
|
+
"aria-hidden": "true"
|
|
49
|
+
}), i.pinned ? t("conversationMenu.unpin", "Unpin") : t("conversationMenu.pin", "Pin")]
|
|
50
|
+
}) : null,
|
|
51
|
+
/* @__PURE__ */ P(r, {})
|
|
52
|
+
] });
|
|
53
|
+
}
|
|
54
|
+
function z(e) {
|
|
55
|
+
let { managed: t, activeConversationId: n, conversations: r, onOpenChange: i, onDeleteConfirmed: o } = e, s = y(), c = t && s !== null && l({
|
|
56
|
+
spoken: !1,
|
|
57
|
+
bound: null,
|
|
58
|
+
activeConversationId: n,
|
|
59
|
+
conversations: r,
|
|
60
|
+
historyOn: v()
|
|
61
|
+
}) !== null, [u, d] = C(null), f = h((e) => u === null || e.conversations.some((e) => e.id === u.conversationId)), p = S(null), m = x((e, t) => {
|
|
62
|
+
p.current = {
|
|
63
|
+
kind: e,
|
|
64
|
+
conversationId: t
|
|
65
|
+
};
|
|
66
|
+
}, []), g = x((e) => {
|
|
67
|
+
let t = h.getState(), n = t.conversations.find((t) => t.id === e.conversationId);
|
|
68
|
+
if (!n) return;
|
|
69
|
+
if (e.kind === "rename") {
|
|
70
|
+
d((e) => ({
|
|
71
|
+
conversationId: n.id,
|
|
72
|
+
title: n.title,
|
|
73
|
+
open: !0,
|
|
74
|
+
opening: (e?.opening ?? 0) + 1
|
|
75
|
+
}));
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
let r = l({
|
|
79
|
+
spoken: !1,
|
|
80
|
+
bound: null,
|
|
81
|
+
activeConversationId: n.id,
|
|
82
|
+
conversations: t.conversations,
|
|
83
|
+
historyOn: v()
|
|
84
|
+
});
|
|
85
|
+
r && s?.request(r, { onConfirmed: o });
|
|
86
|
+
}, [s, o]), b = x((e) => {
|
|
87
|
+
let t = p.current;
|
|
88
|
+
p.current = null, t ? g(t) : a(document) || e.preventDefault();
|
|
89
|
+
}, [g]), w = x((e) => {
|
|
90
|
+
e && (p.current = null), i(e);
|
|
91
|
+
}, [i]), T = x(() => d((e) => e && {
|
|
92
|
+
...e,
|
|
93
|
+
open: !1
|
|
94
|
+
}), []);
|
|
95
|
+
return {
|
|
96
|
+
choose: m,
|
|
97
|
+
deleteOffered: c,
|
|
98
|
+
onCloseAutoFocus: b,
|
|
99
|
+
onOpenChange: w,
|
|
100
|
+
dialogs: u ? /* @__PURE__ */ P(_, {
|
|
101
|
+
open: u.open && f,
|
|
102
|
+
title: u.title,
|
|
103
|
+
onSave: (e) => {
|
|
104
|
+
h.getState().renameConversation(u.conversationId, e), T();
|
|
105
|
+
},
|
|
106
|
+
onDismiss: T
|
|
107
|
+
}, u.opening) : null
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
var B = ({ open: a, onOpenChange: l, triggerRef: _, manage: v = !1, onDeleteConfirmed: y, triggerLook: b = "icon" }) => {
|
|
111
|
+
let x = m(), { conversations: S, activeConversationId: C, processingByConversationId: k } = h(), A = S.find((e) => e.id === C), j = !!(A && A.messages.length > 0), B = !!(w(c, () => s("assistant.transcript"), () => !1) && A && g(A.messages).length > 0), V = v && A !== void 0, H = p(V ? A : void 0), U = z({
|
|
112
|
+
managed: V,
|
|
113
|
+
activeConversationId: C,
|
|
114
|
+
conversations: S,
|
|
115
|
+
onOpenChange: l,
|
|
116
|
+
onDeleteConfirmed: y
|
|
117
|
+
}), W = L[b], G = (e) => {
|
|
14
118
|
if (!A) return;
|
|
15
|
-
let { content: t, filename: n, mimeType: r } =
|
|
119
|
+
let { content: t, filename: n, mimeType: r } = d(A, e, {
|
|
16
120
|
processing: k[A.id],
|
|
17
|
-
tr:
|
|
121
|
+
tr: x
|
|
18
122
|
});
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
123
|
+
u(t, n, r);
|
|
124
|
+
}, K = () => {
|
|
125
|
+
o("assistant.transcript")?.run();
|
|
126
|
+
}, q = (e) => {
|
|
127
|
+
A && U.choose(e, A.id);
|
|
128
|
+
}, J = () => {
|
|
129
|
+
A && H && f.updateConversation(A.id, { pinned: !H.pinned });
|
|
130
|
+
}, Y = x("header.conversationOptions", "Conversation options"), X = /* @__PURE__ */ F(e, {
|
|
131
|
+
open: a,
|
|
132
|
+
onOpenChange: U.onOpenChange,
|
|
28
133
|
modal: !1,
|
|
29
|
-
children: [/* @__PURE__ */
|
|
134
|
+
children: [/* @__PURE__ */ P(i, {
|
|
30
135
|
asChild: !0,
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
ref:
|
|
136
|
+
children: /* @__PURE__ */ P("button", {
|
|
137
|
+
ref: _,
|
|
33
138
|
type: "button",
|
|
34
|
-
"aria-label":
|
|
35
|
-
title:
|
|
36
|
-
className:
|
|
139
|
+
"aria-label": Y,
|
|
140
|
+
title: Y,
|
|
141
|
+
className: W.button,
|
|
37
142
|
"data-testid": "assistant-more",
|
|
38
|
-
children: /* @__PURE__ */
|
|
39
|
-
className:
|
|
143
|
+
children: /* @__PURE__ */ P(O, {
|
|
144
|
+
className: W.icon,
|
|
40
145
|
"aria-hidden": "true"
|
|
41
146
|
})
|
|
42
147
|
})
|
|
43
|
-
}), /* @__PURE__ */
|
|
148
|
+
}), /* @__PURE__ */ F(t, {
|
|
44
149
|
align: "end",
|
|
45
150
|
sideOffset: 4,
|
|
46
151
|
collisionPadding: 8,
|
|
47
|
-
onCloseAutoFocus:
|
|
152
|
+
onCloseAutoFocus: U.onCloseAutoFocus,
|
|
48
153
|
className: "min-w-56 max-w-[calc(100vw-2rem)] max-h-[var(--radix-dropdown-menu-content-available-height)] overflow-y-auto",
|
|
49
154
|
"data-testid": "assistant-more-menu",
|
|
50
155
|
children: [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
156
|
+
V ? R({
|
|
157
|
+
tr: x,
|
|
158
|
+
pin: H,
|
|
159
|
+
onRename: () => q("rename"),
|
|
160
|
+
onTogglePin: J
|
|
161
|
+
}) : null,
|
|
162
|
+
j ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ F(n, {
|
|
163
|
+
className: I,
|
|
164
|
+
onSelect: () => G("markdown"),
|
|
54
165
|
"data-testid": "export-markdown",
|
|
55
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ P(E, {
|
|
56
167
|
className: "size-4 shrink-0 text-text-secondary",
|
|
57
168
|
"aria-hidden": "true"
|
|
58
|
-
}),
|
|
59
|
-
}), /* @__PURE__ */
|
|
60
|
-
className:
|
|
61
|
-
onSelect: () =>
|
|
169
|
+
}), x("export.markdown", "Export as Markdown")]
|
|
170
|
+
}), /* @__PURE__ */ F(n, {
|
|
171
|
+
className: I,
|
|
172
|
+
onSelect: () => G("json"),
|
|
62
173
|
"data-testid": "export-json",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
174
|
+
children: [/* @__PURE__ */ P(T, {
|
|
64
175
|
className: "size-4 shrink-0 text-text-secondary",
|
|
65
176
|
"aria-hidden": "true"
|
|
66
|
-
}),
|
|
177
|
+
}), x("export.json", "Export as JSON")]
|
|
67
178
|
})] }) : null,
|
|
68
|
-
|
|
69
|
-
className:
|
|
70
|
-
onSelect:
|
|
179
|
+
B ? /* @__PURE__ */ F(n, {
|
|
180
|
+
className: I,
|
|
181
|
+
onSelect: K,
|
|
71
182
|
"data-testid": "assistant-more-voice-transcript",
|
|
72
|
-
children: [/* @__PURE__ */
|
|
183
|
+
children: [/* @__PURE__ */ P(D, {
|
|
73
184
|
className: "size-4 shrink-0 text-text-secondary",
|
|
74
185
|
"aria-hidden": "true"
|
|
75
|
-
}),
|
|
186
|
+
}), x("conversationMenu.voiceTranscript", "Voice transcript")]
|
|
76
187
|
}) : null,
|
|
77
|
-
!j && !
|
|
188
|
+
!j && !B ? /* @__PURE__ */ P(n, {
|
|
78
189
|
disabled: !0,
|
|
79
|
-
className: `${
|
|
190
|
+
className: `${I} text-text-secondary`,
|
|
80
191
|
"data-testid": "assistant-more-empty",
|
|
81
|
-
children:
|
|
82
|
-
}) : null
|
|
192
|
+
children: x("conversationMenu.empty", "Nothing to export yet")
|
|
193
|
+
}) : null,
|
|
194
|
+
U.deleteOffered ? /* @__PURE__ */ F(N, { children: [/* @__PURE__ */ P(r, {}), /* @__PURE__ */ F(n, {
|
|
195
|
+
className: `${I} text-status-error-text focus:text-status-error-text`,
|
|
196
|
+
onSelect: () => q("delete"),
|
|
197
|
+
"data-testid": "assistant-more-delete",
|
|
198
|
+
children: [/* @__PURE__ */ P(M, {
|
|
199
|
+
className: "size-4 shrink-0",
|
|
200
|
+
"aria-hidden": "true"
|
|
201
|
+
}), x("conversationMenu.delete", "Delete chat")]
|
|
202
|
+
})] }) : null
|
|
83
203
|
]
|
|
84
204
|
})]
|
|
85
205
|
});
|
|
206
|
+
return v ? /* @__PURE__ */ F(N, { children: [X, U.dialogs] }) : X;
|
|
86
207
|
};
|
|
87
|
-
export {
|
|
208
|
+
export { B as AssistantConversationMenu };
|
|
@@ -1,7 +1,26 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
export interface AssistantPageBarProps {
|
|
3
|
+
/** ⋯, or nothing while the open chat has no messages (BOFF-15028: the bar can show without it). */
|
|
3
4
|
conversationMenu: ReactNode;
|
|
4
5
|
onTogglePreview?: () => void;
|
|
5
6
|
previewOpen?: boolean;
|
|
6
7
|
}
|
|
8
|
+
/**
|
|
9
|
+
* BOFF-15028: the bar's row, without its display (`flex`), so a page can draw its own controls in
|
|
10
|
+
* the same spot where the bar is not drawn (a new chat, its history list), and hide that row on
|
|
11
|
+
* some screens. Whole class names (a host's Tailwind reads them from this package's dist).
|
|
12
|
+
*/
|
|
13
|
+
export declare const ASSISTANT_PAGE_BAR_ROW = "min-h-12 shrink-0 items-center justify-end gap-1 px-2 py-1 sm:px-3";
|
|
14
|
+
/**
|
|
15
|
+
* BOFF-15028: the look of a control in the bar's top-right group: fe-libs' outline button
|
|
16
|
+
* (bordered, on the surface), tinted while its menu is open or while it is pressed. No size: the
|
|
17
|
+
* page's labelled controls take their own (`Button size="sm"`), the icon-only ones
|
|
18
|
+
* `ASSISTANT_PAGE_BAR_ICON_BUTTON`.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ASSISTANT_PAGE_BAR_BUTTON = "inline-flex shrink-0 items-center justify-center rounded-button border border-border-default bg-bg-surface text-text-primary transition-colors hover:border-border-strong hover:bg-action-secondary-bg data-[state=open]:bg-bg-sunken aria-pressed:bg-action-primary-bg/15 aria-pressed:text-action-primary-bg focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]";
|
|
21
|
+
/**
|
|
22
|
+
* BOFF-15028: an icon-only control in that group (the preview toggle, ⋯): 40 px on a phone, a full
|
|
23
|
+
* touch target; from `sm`, 32 px, the height of the page's `size="sm"` buttons beside it.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ASSISTANT_PAGE_BAR_ICON_BUTTON = "inline-flex shrink-0 items-center justify-center rounded-button border border-border-default bg-bg-surface text-text-primary transition-colors hover:border-border-strong hover:bg-action-secondary-bg data-[state=open]:bg-bg-sunken aria-pressed:bg-action-primary-bg/15 aria-pressed:text-action-primary-bg focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] size-10 sm:size-8";
|
|
7
26
|
export declare const AssistantPageBar: FC<AssistantPageBarProps>;
|
|
@@ -1,27 +1,32 @@
|
|
|
1
1
|
import { useAssistantTr as e } from "../../i18n.js";
|
|
2
2
|
import { useAssistantPreview as t } from "../../preview/context.js";
|
|
3
3
|
import { hasAssistantPreviewSurface as n } from "../../preview/types.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { AssistantPageBarActionsSlot as r, useAssistantPageBarActionsOffered as i } from "../assistantPageBar.js";
|
|
5
|
+
import { Eye as a } from "lucide-react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
7
|
// src/shared/assistant/ui/compact/AssistantPageBar.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
className:
|
|
8
|
+
var c = "min-h-12 shrink-0 items-center justify-end gap-1 px-2 py-1 sm:px-3", l = "inline-flex shrink-0 items-center justify-center rounded-button border border-border-default bg-bg-surface text-text-primary transition-colors hover:border-border-strong hover:bg-action-secondary-bg data-[state=open]:bg-bg-sunken aria-pressed:bg-action-primary-bg/15 aria-pressed:text-action-primary-bg focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", u = `${l} size-10 sm:size-8`, d = "flex size-10 shrink-0 items-center justify-center rounded-button transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", f = "text-text-secondary hover:bg-bg-sunken hover:text-text-primary", p = "bg-action-primary-bg/15 text-action-primary-bg", m = "flex min-w-0 flex-wrap items-center justify-end gap-1", h = ({ conversationMenu: l, onTogglePreview: h, previewOpen: g }) => {
|
|
9
|
+
let _ = e(), v = t(), y = i();
|
|
10
|
+
return /* @__PURE__ */ s("div", {
|
|
11
|
+
className: `flex ${c}`,
|
|
11
12
|
"data-testid": "assistant-page-bar",
|
|
12
13
|
"data-presentation": "page",
|
|
13
|
-
children: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
children: [
|
|
15
|
+
y ? /* @__PURE__ */ o(r, { className: m }) : null,
|
|
16
|
+
n(v) && h ? /* @__PURE__ */ o("button", {
|
|
17
|
+
type: "button",
|
|
18
|
+
onClick: h,
|
|
19
|
+
className: y ? u : `${d} ${g ? p : f}`,
|
|
20
|
+
"aria-label": v.label ?? _("header.preview", "Preview"),
|
|
21
|
+
"aria-pressed": !!g,
|
|
22
|
+
"data-testid": "assistant-toggle-preview",
|
|
23
|
+
children: /* @__PURE__ */ o(a, {
|
|
24
|
+
className: y ? "size-4" : "size-5",
|
|
25
|
+
"aria-hidden": "true"
|
|
26
|
+
})
|
|
27
|
+
}) : null,
|
|
28
|
+
l
|
|
29
|
+
]
|
|
25
30
|
});
|
|
26
31
|
};
|
|
27
|
-
export { l as AssistantPageBar };
|
|
32
|
+
export { l as ASSISTANT_PAGE_BAR_BUTTON, u as ASSISTANT_PAGE_BAR_ICON_BUTTON, c as ASSISTANT_PAGE_BAR_ROW, h as AssistantPageBar };
|
|
@@ -74,6 +74,8 @@ interface Props {
|
|
|
74
74
|
/**
|
|
75
75
|
* ★ BOFF-14753: the page's new chat — the box rises in with the start page (M1).
|
|
76
76
|
* Only meaningful with the page layout; the panel never animates in.
|
|
77
|
+
* ★ BOFF-15025: with the taller box (M1) it is also the box's new-chat size (about four lines);
|
|
78
|
+
* otherwise the taller box is a chat's (about three).
|
|
77
79
|
*/
|
|
78
80
|
entrance?: boolean;
|
|
79
81
|
/**
|