@burdenoff/fe-libs 2026.1116.1 → 2026.1116.3
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/chrome/Tabs.js +4 -0
- 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-assistant.js +256 -254
- package/dist/ui/aurora-background.js +1 -0
- package/dist/ui/badge.d.ts +5 -0
- package/dist/ui/badge.js +2 -0
- package/dist/ui/card.d.ts +6 -0
- package/dist/ui/card.js +8 -0
- package/dist/ui/emphasis-panel.js +1 -0
- package/dist/ui/empty-state.js +4 -0
- package/dist/ui/glass-card.d.ts +9 -0
- package/dist/ui/glass-card.js +5 -0
- package/dist/ui/icon-tile.d.ts +19 -0
- package/dist/ui/icon-tile.js +21 -0
- package/dist/ui/illustration.d.ts +4 -0
- package/dist/ui/illustration.js +4 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/input.js +1 -0
- package/dist/ui/page-tabs.js +2 -0
- package/dist/ui/responsive-table.js +3 -0
- package/dist/ui/select.js +2 -0
- package/dist/ui/table.js +9 -0
- package/dist/ui/textarea.js +1 -0
- package/dist/ui.js +16 -15
- package/package.json +2 -1
- package/src/shared/tokens/depth.css +760 -0
- package/src/shared/tokens/tokens.css +6 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { LiveLevelSource } from '../../voice/liveLevel';
|
|
3
3
|
import { CompactDictationPhase } from './useCompactDictation';
|
|
4
|
+
import { PageFieldSize } from './pageBoxClass';
|
|
4
5
|
/**
|
|
5
6
|
* Dictation in the compact message box (BOFF-13461; the operator's design of 14 Nov,
|
|
6
7
|
* "Dictation states"): what the box shows while the mic types for the person.
|
|
@@ -11,6 +12,9 @@ import { CompactDictationPhase } from './useCompactDictation';
|
|
|
11
12
|
* of this take, and the words still being recognised (dimmed). Typing is paused, so
|
|
12
13
|
* this stands in for the text area. Dimmed as a whole while the take is turned into
|
|
13
14
|
* text.
|
|
15
|
+
*
|
|
16
|
+
* ★ BOFF-15025 (M1): `size` is the text area's (`pageFieldClasses`), so the taller box keeps its
|
|
17
|
+
* height while it dictates. Absent or null: today's metrics.
|
|
14
18
|
*/
|
|
15
19
|
export declare const DictationLiveText: FC<{
|
|
16
20
|
phase: CompactDictationPhase;
|
|
@@ -18,6 +22,7 @@ export declare const DictationLiveText: FC<{
|
|
|
18
22
|
take: string;
|
|
19
23
|
interim: string;
|
|
20
24
|
after: string;
|
|
25
|
+
size?: PageFieldSize | null;
|
|
21
26
|
}>;
|
|
22
27
|
/**
|
|
23
28
|
* The controls row while dictating. Listening: a live dot, the live waveform and the
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
import { useAssistantTr as e } from "../../i18n.js";
|
|
2
2
|
import { usePrefersReducedMotion as t } from "../usePrefersReducedMotion.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useAssistantPageBox as n } from "../assistantPageLayout.js";
|
|
4
4
|
import { focusWasDropped as r } from "../../../hooks/useReturnFocus.js";
|
|
5
5
|
import { formatClock as i } from "../voice/formatClock.js";
|
|
6
6
|
import { LiveWaveform as a } from "../voice/LiveWaveform.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { pageFieldClasses as o } from "./pageBoxClass.js";
|
|
8
|
+
import { useEffect as s, useRef as c } from "react";
|
|
9
|
+
import { Check as l, Loader2 as u, X as d } from "lucide-react";
|
|
10
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
10
11
|
// src/shared/assistant/ui/composer/AssistantDictation.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
className:
|
|
12
|
+
var m = ({ phase: t, before: n, take: r, interim: i, after: a, size: s = null }) => {
|
|
13
|
+
let c = e(), l = r || i, u = t === "transcribing", d = o(s);
|
|
14
|
+
return /* @__PURE__ */ p("div", {
|
|
15
|
+
className: `${d.minHeight} whitespace-pre-wrap break-words px-4 pb-1 ${d.paddingTop} text-base ${d.lineHeight} ${u ? "text-text-muted" : "text-text-primary"}`,
|
|
15
16
|
"data-testid": "assistant-dictation-text",
|
|
16
17
|
"data-phase": t,
|
|
17
18
|
children: [
|
|
18
|
-
n ? /* @__PURE__ */
|
|
19
|
-
r ? /* @__PURE__ */
|
|
19
|
+
n ? /* @__PURE__ */ p("span", { children: [n.replace(/\s+$/, ""), " "] }) : null,
|
|
20
|
+
r ? /* @__PURE__ */ f("span", {
|
|
20
21
|
"data-testid": "assistant-dictation-take",
|
|
21
22
|
children: r
|
|
22
23
|
}) : null,
|
|
23
|
-
i ? /* @__PURE__ */
|
|
24
|
+
i ? /* @__PURE__ */ p("span", {
|
|
24
25
|
className: "text-text-muted",
|
|
25
26
|
"data-testid": "assistant-dictation-interim",
|
|
26
27
|
children: [r ? " " : "", i]
|
|
27
28
|
}) : null,
|
|
28
|
-
!
|
|
29
|
+
!l && t !== "transcribing" ? /* @__PURE__ */ f("span", {
|
|
29
30
|
className: "text-text-muted",
|
|
30
31
|
"data-testid": "assistant-dictation-prompt",
|
|
31
|
-
children: t === "starting" ?
|
|
32
|
+
children: t === "starting" ? c("voice.starting", "Starting the microphone…") : c("dictation.startSpeaking", "Listening. Start speaking.")
|
|
32
33
|
}) : null,
|
|
33
|
-
a ? /* @__PURE__ */
|
|
34
|
+
a ? /* @__PURE__ */ p("span", { children: [" ", a.replace(/^\s+/, "")] }) : null
|
|
34
35
|
]
|
|
35
36
|
});
|
|
36
|
-
},
|
|
37
|
-
let
|
|
38
|
-
return r === "transcribing" ? /* @__PURE__ */
|
|
37
|
+
}, h = ({ phase: r, seconds: i, level: a, onCancel: o, onFinish: s, focusRing: c }) => {
|
|
38
|
+
let l = e(), d = t(), m = n();
|
|
39
|
+
return r === "transcribing" ? /* @__PURE__ */ p("div", {
|
|
39
40
|
role: "status",
|
|
40
41
|
className: "flex h-11 items-center gap-2.5 px-3 pb-1.5 text-sm text-text-secondary sm:h-10",
|
|
41
42
|
"data-testid": "assistant-composer-controls",
|
|
42
43
|
"data-dictating": "transcribing",
|
|
43
|
-
children: [/* @__PURE__ */
|
|
44
|
-
className: `size-4 text-status-warning-bg${m ? " boff-text-listening" : ""}${
|
|
44
|
+
children: [/* @__PURE__ */ f(u, {
|
|
45
|
+
className: `size-4 text-status-warning-bg${m ? " boff-text-listening" : ""}${d ? "" : " motion-safe:animate-spin"}`,
|
|
45
46
|
"aria-hidden": "true"
|
|
46
|
-
}), /* @__PURE__ */
|
|
47
|
-
}) : /* @__PURE__ */
|
|
47
|
+
}), /* @__PURE__ */ f("span", { children: l("dictation.transcribing", "Turning speech into text") })]
|
|
48
|
+
}) : /* @__PURE__ */ f(g, {
|
|
48
49
|
listening: r === "listening",
|
|
49
50
|
seconds: i,
|
|
50
51
|
level: a,
|
|
@@ -52,33 +53,33 @@ var p = ({ phase: t, before: n, take: r, interim: i, after: a }) => {
|
|
|
52
53
|
onFinish: s,
|
|
53
54
|
focusRing: c
|
|
54
55
|
});
|
|
55
|
-
},
|
|
56
|
-
let _ = e(), v = n(), y =
|
|
57
|
-
return
|
|
56
|
+
}, g = ({ listening: t, seconds: o, level: u, onCancel: m, onFinish: h, focusRing: g }) => {
|
|
57
|
+
let _ = e(), v = n(), y = c(null);
|
|
58
|
+
return s(() => {
|
|
58
59
|
typeof document < "u" && r(document) && y.current?.focus();
|
|
59
|
-
}, []), /* @__PURE__ */
|
|
60
|
+
}, []), /* @__PURE__ */ p("div", {
|
|
60
61
|
className: "flex flex-nowrap items-center gap-2 px-1.5 pb-1.5 pt-1",
|
|
61
62
|
"data-testid": "assistant-composer-controls",
|
|
62
63
|
"data-dictating": "true",
|
|
63
64
|
children: [
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ f("span", {
|
|
65
66
|
"aria-hidden": "true",
|
|
66
67
|
className: `ms-2.5 size-2.5 shrink-0 rounded-full ${t ? `bg-status-warning-bg${v ? " boff-bg-listening" : ""}` : "bg-text-muted"}`,
|
|
67
68
|
"data-testid": "assistant-dictation-dot"
|
|
68
69
|
}),
|
|
69
|
-
t ? /* @__PURE__ */
|
|
70
|
-
source:
|
|
70
|
+
t ? /* @__PURE__ */ f(a, {
|
|
71
|
+
source: u,
|
|
71
72
|
tone: "listening",
|
|
72
73
|
className: "h-8 min-w-0 flex-1",
|
|
73
74
|
testId: "assistant-dictation-waveform"
|
|
74
|
-
}) : /* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */
|
|
75
|
+
}) : /* @__PURE__ */ f("span", { className: "min-w-0 flex-1" }),
|
|
76
|
+
/* @__PURE__ */ f("span", {
|
|
76
77
|
className: "shrink-0 text-xs tabular-nums text-text-secondary",
|
|
77
78
|
"aria-hidden": "true",
|
|
78
79
|
"data-testid": "assistant-dictation-time",
|
|
79
|
-
children: i(
|
|
80
|
+
children: i(o)
|
|
80
81
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
+
/* @__PURE__ */ f("button", {
|
|
82
83
|
ref: y,
|
|
83
84
|
type: "button",
|
|
84
85
|
onClick: m,
|
|
@@ -86,12 +87,12 @@ var p = ({ phase: t, before: n, take: r, interim: i, after: a }) => {
|
|
|
86
87
|
"aria-label": _("composer.dictationCancel", "Cancel dictation"),
|
|
87
88
|
title: _("composer.dictationCancel", "Cancel dictation"),
|
|
88
89
|
"data-testid": "assistant-voice-cancel",
|
|
89
|
-
children: /* @__PURE__ */ d
|
|
90
|
+
children: /* @__PURE__ */ f(d, {
|
|
90
91
|
className: "size-5",
|
|
91
92
|
"aria-hidden": "true"
|
|
92
93
|
})
|
|
93
94
|
}),
|
|
94
|
-
/* @__PURE__ */
|
|
95
|
+
/* @__PURE__ */ f("button", {
|
|
95
96
|
type: "button",
|
|
96
97
|
onClick: h,
|
|
97
98
|
disabled: !t,
|
|
@@ -101,22 +102,22 @@ var p = ({ phase: t, before: n, take: r, interim: i, after: a }) => {
|
|
|
101
102
|
"aria-pressed": "true",
|
|
102
103
|
"data-testid": "assistant-voice",
|
|
103
104
|
"data-state": t ? "listening" : "starting",
|
|
104
|
-
children: /* @__PURE__ */
|
|
105
|
+
children: /* @__PURE__ */ f(l, {
|
|
105
106
|
className: "size-5",
|
|
106
107
|
"aria-hidden": "true"
|
|
107
108
|
})
|
|
108
109
|
})
|
|
109
110
|
]
|
|
110
111
|
});
|
|
111
|
-
},
|
|
112
|
+
}, _ = ({ message: t, onTryAgain: n }) => {
|
|
112
113
|
let r = e();
|
|
113
|
-
return /* @__PURE__ */
|
|
114
|
+
return /* @__PURE__ */ p("div", {
|
|
114
115
|
className: "flex items-center justify-between gap-3 px-1 text-start",
|
|
115
116
|
"data-testid": "assistant-mic-blocked",
|
|
116
|
-
children: [/* @__PURE__ */
|
|
117
|
+
children: [/* @__PURE__ */ f("p", {
|
|
117
118
|
className: "text-status-warning-text",
|
|
118
119
|
children: t
|
|
119
|
-
}), /* @__PURE__ */
|
|
120
|
+
}), /* @__PURE__ */ f("button", {
|
|
120
121
|
type: "button",
|
|
121
122
|
onClick: n,
|
|
122
123
|
className: "h-11 shrink-0 rounded-full border border-border-default px-3 text-sm font-medium sm:h-9 text-text-primary transition-colors hover:bg-bg-sunken focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
|
|
@@ -125,4 +126,4 @@ var p = ({ phase: t, before: n, take: r, interim: i, after: a }) => {
|
|
|
125
126
|
})]
|
|
126
127
|
});
|
|
127
128
|
};
|
|
128
|
-
export {
|
|
129
|
+
export { h as DictationControls, m as DictationLiveText, _ as MicBlockedNotice };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* ★ BOFF-14753: the page's box (the /assistant page
|
|
2
|
+
* ★ BOFF-14753: the page's box (the /assistant page, and since BOFF-15025 a side panel that opted
|
|
3
|
+
* into it; every other panel keeps its look).
|
|
3
4
|
* Depth and a soft accent glow that brightens while typing (M2); orange while the
|
|
4
5
|
* microphone hears (the voice colour rule); nothing while read-only (either way) or a file is
|
|
5
6
|
* dragged over (those keep their own border); and the start page's rise (M1).
|
|
@@ -11,3 +12,29 @@ export declare function pageBoxClass(pageLayout: boolean, state: {
|
|
|
11
12
|
quiet: boolean;
|
|
12
13
|
entrance: boolean;
|
|
13
14
|
}): string;
|
|
15
|
+
/**
|
|
16
|
+
* BOFF-15025 (M1): how tall the taller box's field opens. `start`: the page's new chat, about four
|
|
17
|
+
* lines. `chat`: in a chat (the page's, or a side panel that uses the page's box), about three.
|
|
18
|
+
*/
|
|
19
|
+
export type PageFieldSize = 'start' | 'chat';
|
|
20
|
+
/** The message field's height, top padding and line height, as Tailwind classes. */
|
|
21
|
+
export interface PageFieldClasses {
|
|
22
|
+
minHeight: string;
|
|
23
|
+
paddingTop: string;
|
|
24
|
+
lineHeight: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* ★ BOFF-15025 (M1): the message field's metrics. `null` (every box that has not opted in) is
|
|
28
|
+
* exactly today's. Taller, it opens at 112 px on a new chat and 92 px in a chat, with 14 px top
|
|
29
|
+
* padding and a 1.55 line height; the text stays 16 px (`text-base`) and the field still grows as
|
|
30
|
+
* the person types, up to the composer's cap.
|
|
31
|
+
*
|
|
32
|
+
* ★ Whole class names, never built from parts: a host's Tailwind generates CSS only for the names it
|
|
33
|
+
* finds written out in this package's dist (FluidGrids reads it through `@source`).
|
|
34
|
+
* ★ The heights are spacing steps (`min-h-28` is 7rem, 112 px; `min-h-23` is 5.75rem, 92 px, at the
|
|
35
|
+
* default 16 px root), not px values, so they scale with a person's root font size as the text and
|
|
36
|
+
* padding do. The line height stays the mock's exact 1.55.
|
|
37
|
+
* ★ The same three classes size the dictation text that stands in for the field
|
|
38
|
+
* (`DictationLiveText`), so starting dictation never changes the box's height.
|
|
39
|
+
*/
|
|
40
|
+
export declare function pageFieldClasses(size: PageFieldSize | null): Readonly<PageFieldClasses>;
|
|
@@ -2,4 +2,20 @@
|
|
|
2
2
|
function e(e, t) {
|
|
3
3
|
return e ? [t.hearing ? "boff-hearing-box" : t.quiet ? "" : "boff-glow-box", t.entrance ? "boff-rise boff-delay-3" : ""].filter(Boolean).join(" ") : "";
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
var t = {
|
|
6
|
+
minHeight: "min-h-10",
|
|
7
|
+
paddingTop: "pt-3",
|
|
8
|
+
lineHeight: "leading-6"
|
|
9
|
+
};
|
|
10
|
+
function n(e) {
|
|
11
|
+
return e === "start" ? {
|
|
12
|
+
minHeight: "min-h-28",
|
|
13
|
+
paddingTop: "pt-3.5",
|
|
14
|
+
lineHeight: "leading-[1.55]"
|
|
15
|
+
} : e === "chat" ? {
|
|
16
|
+
minHeight: "min-h-23",
|
|
17
|
+
paddingTop: "pt-3.5",
|
|
18
|
+
lineHeight: "leading-[1.55]"
|
|
19
|
+
} : t;
|
|
20
|
+
}
|
|
21
|
+
export { e as pageBoxClass, n as pageFieldClasses };
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { FC, ReactNode } from 'react';
|
|
2
2
|
import { ConversationDeleteTarget } from '../conversationDeleteCommand';
|
|
3
|
+
/** What a caller of the Delete confirmation may add (BOFF-15028). */
|
|
4
|
+
export interface ConversationDeleteRequestOptions {
|
|
5
|
+
/**
|
|
6
|
+
* Runs once Delete is confirmed, just BEFORE the conversation is deleted, and never for Cancel,
|
|
7
|
+
* Esc, an early or untrusted press, or a target that went meanwhile. The page's ⋯ opens a new
|
|
8
|
+
* chat here, so deleting the open chat leaves the page on a new chat rather than on whichever
|
|
9
|
+
* conversation the store would open next.
|
|
10
|
+
*/
|
|
11
|
+
onConfirmed?: () => void;
|
|
12
|
+
}
|
|
3
13
|
/** The panel's one Delete confirmation (BOFF-8159). */
|
|
4
14
|
export interface ConversationDeleteDialogController {
|
|
5
15
|
/** Open the confirmation for `target`. Nothing is deleted until its Delete is pressed. */
|
|
6
|
-
request: (target: ConversationDeleteTarget) => void;
|
|
16
|
+
request: (target: ConversationDeleteTarget, options?: ConversationDeleteRequestOptions) => void;
|
|
7
17
|
/**
|
|
8
18
|
* The confirmation is open. A live voice session holds its listening
|
|
9
19
|
* meanwhile, so nothing said is heard or sent.
|
|
@@ -18,9 +28,9 @@ export interface ConversationDeleteDialogController {
|
|
|
18
28
|
export declare function useConversationDeleteDialog(): ConversationDeleteDialogController | null;
|
|
19
29
|
/**
|
|
20
30
|
* Holds the ONE Delete confirmation for the panel (BOFF-8159): opened by the
|
|
21
|
-
* typed or spoken "delete this conversation"
|
|
22
|
-
*
|
|
23
|
-
* server history on or off.
|
|
31
|
+
* typed or spoken "delete this conversation", and by ⋯ → Delete chat on a page
|
|
32
|
+
* that lets ⋯ manage the chat (BOFF-15028; the list's Delete still deletes at
|
|
33
|
+
* once). It works with server history on or off.
|
|
24
34
|
*
|
|
25
35
|
* ★ A target that goes while it is open — deleted on another device, in
|
|
26
36
|
* another tab, or here by the list — closes it: there is nothing left to
|
|
@@ -14,11 +14,12 @@ var m = ({ children: i }) => {
|
|
|
14
14
|
target: null,
|
|
15
15
|
open: !1,
|
|
16
16
|
opening: 0
|
|
17
|
-
}), h = a((e) => {
|
|
18
|
-
m((
|
|
17
|
+
}), h = a((e, t) => {
|
|
18
|
+
m((n) => ({
|
|
19
19
|
target: e,
|
|
20
20
|
open: !0,
|
|
21
|
-
opening:
|
|
21
|
+
opening: n.opening + 1,
|
|
22
|
+
...t?.onConfirmed ? { onConfirmed: t.onConfirmed } : {}
|
|
22
23
|
}));
|
|
23
24
|
}, []), g = a(() => {
|
|
24
25
|
m((e) => e.open ? {
|
|
@@ -30,10 +31,10 @@ var m = ({ children: i }) => {
|
|
|
30
31
|
v || g();
|
|
31
32
|
}, [v, g]);
|
|
32
33
|
let y = a(() => {
|
|
33
|
-
let { target: e, open: n } = p;
|
|
34
|
+
let { target: e, open: n, onConfirmed: i } = p;
|
|
34
35
|
if (!n || !e) return;
|
|
35
|
-
let
|
|
36
|
-
g(),
|
|
36
|
+
let a = t.getState().conversations.some((t) => t.id === e.conversationId);
|
|
37
|
+
g(), a && (i?.(), r(e.conversationId));
|
|
37
38
|
}, [p, g]), b = p.open && v, x = c(() => ({
|
|
38
39
|
request: h,
|
|
39
40
|
asking: b
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useAssistantTr as e } from "../../i18n.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useAssistantPageBox as t } from "../assistantPageLayout.js";
|
|
3
3
|
import { AudioLines as n } from "lucide-react";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
// src/shared/assistant/ui/voice/AssistantVoiceSessionButton.tsx
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { pushLevel as e } from "../../voice/liveLevel.js";
|
|
2
2
|
import { usePrefersReducedMotion as t } from "../usePrefersReducedMotion.js";
|
|
3
|
-
import {
|
|
3
|
+
import { useAssistantPageBox as n } from "../assistantPageLayout.js";
|
|
4
4
|
import { useEffect as r, useRef as i } from "react";
|
|
5
5
|
import { jsx as a } from "react/jsx-runtime";
|
|
6
6
|
// src/shared/assistant/ui/voice/LiveWaveform.tsx
|