@burdenoff/fe-libs 2026.1024.2 → 2026.1024.4
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/FooterBar.d.ts +1 -1
- package/dist/chrome/NativePageTransition.d.ts +1 -1
- package/dist/chrome/ProductPickerSheet.js +42 -42
- package/dist/chrome/ProductSwitcher.d.ts +8 -0
- package/dist/chrome/ProductSwitcher.js +83 -72
- package/dist/chrome/index.d.ts +9 -9
- package/dist/chrome/swipe/swipeMath.d.ts +1 -1
- package/dist/shared/assistant/api.d.ts +3 -3
- package/dist/shared/assistant/appControls/grammar.d.ts +21 -21
- package/dist/shared/assistant/appControls/languageReply.d.ts +1 -1
- package/dist/shared/assistant/appControls/names.d.ts +3 -3
- package/dist/shared/assistant/appControls/pageAdapters.d.ts +5 -5
- package/dist/shared/assistant/appControls/plan.d.ts +38 -38
- package/dist/shared/assistant/appControls/types.d.ts +15 -15
- package/dist/shared/assistant/appControls/useAssistantControl.d.ts +1 -1
- package/dist/shared/assistant/attachmentSources.d.ts +2 -2
- package/dist/shared/assistant/attachments.d.ts +5 -5
- package/dist/shared/assistant/autoRouting.d.ts +6 -6
- package/dist/shared/assistant/avatar/live/LiveAvatarMinutes.d.ts +24 -0
- package/dist/shared/assistant/avatar/live/LiveAvatarMinutes.js +161 -0
- package/dist/shared/assistant/avatar/live/LiveAvatarStage.js +95 -73
- package/dist/shared/assistant/avatar/live/LiveAvatarTabView.d.ts +6 -0
- package/dist/shared/assistant/avatar/live/LiveAvatarTabView.js +195 -171
- package/dist/shared/assistant/avatar/live/avatarSessionClient.d.ts +77 -1
- package/dist/shared/assistant/avatar/live/avatarSessionClient.js +193 -72
- package/dist/shared/assistant/avatar/live/createLiveAvatarSeam.d.ts +14 -1
- package/dist/shared/assistant/avatar/live/createLiveAvatarSeam.js +65 -40
- package/dist/shared/assistant/avatar/live/liveAvatarController.d.ts +64 -2
- package/dist/shared/assistant/avatar/live/liveAvatarController.js +403 -242
- package/dist/shared/assistant/avatar/live/liveAvatarMinutesView.d.ts +127 -0
- package/dist/shared/assistant/avatar/live/liveAvatarMinutesView.js +168 -0
- package/dist/shared/assistant/avatar/live/liveAvatarStatus.d.ts +3 -0
- package/dist/shared/assistant/avatar/live/liveAvatarStatus.js +11 -7
- package/dist/shared/assistant/avatar/useAvatarCopy.d.ts +127 -2
- package/dist/shared/assistant/avatar/useAvatarCopy.js +116 -7
- package/dist/shared/assistant/conversation.d.ts +20 -20
- package/dist/shared/assistant/displayContent.d.ts +4 -4
- package/dist/shared/assistant/documentText.d.ts +3 -3
- package/dist/shared/assistant/exportConversation.d.ts +1 -1
- package/dist/shared/assistant/history/historyControls.d.ts +4 -4
- package/dist/shared/assistant/history/historyErrors.d.ts +3 -3
- package/dist/shared/assistant/history/historyList.d.ts +5 -5
- package/dist/shared/assistant/history/historyMerge.d.ts +4 -4
- package/dist/shared/assistant/history/historyOperations.d.ts +1 -1
- package/dist/shared/assistant/history/historySearch.d.ts +5 -5
- package/dist/shared/assistant/history/historyStatus.d.ts +1 -1
- package/dist/shared/assistant/history/historyTypes.d.ts +12 -12
- package/dist/shared/assistant/history/profileBoundStorage.d.ts +2 -2
- package/dist/shared/assistant/i18n.d.ts +1 -1
- package/dist/shared/assistant/i18nManifest.d.ts +566 -535
- package/dist/shared/assistant/i18nManifest.js +55 -24
- package/dist/shared/assistant/index.d.ts +2 -0
- package/dist/shared/assistant/liveDeltas.d.ts +1 -1
- package/dist/shared/assistant/liveOverlay.d.ts +1 -1
- package/dist/shared/assistant/localUiCommandCopy.d.ts +1 -1
- package/dist/shared/assistant/localUiCommands.d.ts +22 -22
- package/dist/shared/assistant/localeCommands/engine.d.ts +5 -5
- package/dist/shared/assistant/localeCommands/evaluate.d.ts +8 -8
- package/dist/shared/assistant/localeCommands/fold.d.ts +2 -2
- package/dist/shared/assistant/localeCommands/frames.d.ts +3 -3
- package/dist/shared/assistant/localeCommands/gate.d.ts +3 -3
- package/dist/shared/assistant/localeCommands/languageNames.d.ts +1 -1
- package/dist/shared/assistant/localeCommands/normalise.d.ts +1 -1
- package/dist/shared/assistant/localeCommands/types.d.ts +4 -4
- package/dist/shared/assistant/modeCapabilities.d.ts +1 -1
- package/dist/shared/assistant/modeCopy.d.ts +2 -2
- package/dist/shared/assistant/permissionError.d.ts +2 -2
- package/dist/shared/assistant/preview/surfaceState.d.ts +1 -1
- package/dist/shared/assistant/preview/types.d.ts +5 -5
- package/dist/shared/assistant/preview/writeActionResults.d.ts +1 -1
- package/dist/shared/assistant/prewarm.d.ts +5 -5
- package/dist/shared/assistant/quota.d.ts +2 -2
- package/dist/shared/assistant/sandboxReadiness.d.ts +2 -2
- package/dist/shared/assistant/speech/speechFeed.d.ts +3 -3
- package/dist/shared/assistant/turnOutcome.d.ts +2 -2
- package/dist/shared/assistant/turnProgress.d.ts +1 -1
- package/dist/shared/assistant/turnState.d.ts +1 -1
- package/dist/shared/assistant/turnStream.d.ts +3 -3
- package/dist/shared/assistant/turnTimeline.d.ts +13 -13
- package/dist/shared/assistant/turnTimingReport.d.ts +1 -1
- package/dist/shared/assistant/turnTimingReporter.d.ts +3 -3
- package/dist/shared/assistant/ui/AssistantAvatarTabs.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantChatArea.js +17 -17
- package/dist/shared/assistant/ui/AssistantHistoryNotices.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +5 -2
- package/dist/shared/assistant/ui/AssistantToolActivity.d.ts +1 -1
- package/dist/shared/assistant/ui/AssistantUiOfferLink.d.ts +2 -2
- package/dist/shared/assistant/ui/AssistantWriteConfirmDialog.d.ts +3 -3
- package/dist/shared/assistant/ui/assistantLiveAvatarSeam.d.ts +10 -2
- package/dist/shared/assistant/ui/avatar/AssistantAvatarTab.js +78 -76
- package/dist/shared/assistant/ui/avatar/avatarAskGate.d.ts +2 -0
- package/dist/shared/assistant/ui/avatar/avatarAskGate.js +1 -0
- package/dist/shared/assistant/ui/composer/AssistantAttachmentButton.d.ts +1 -1
- package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.d.ts +1 -1
- package/dist/shared/assistant/ui/leaveConfirmFocus.d.ts +1 -1
- package/dist/shared/assistant/ui/leaveConfirmNavigate.d.ts +3 -3
- package/dist/shared/assistant/ui/panelOverlays.d.ts +5 -5
- package/dist/shared/assistant/ui/useVoiceSession.d.ts +5 -5
- package/dist/shared/assistant/ui/useWriteProposalConfirm.d.ts +4 -4
- package/dist/shared/assistant/ui/useWriteProposals.d.ts +2 -2
- package/dist/shared/assistant/ui/voice/AssistantVoiceSession.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/VoiceCaption.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/VoiceWaveform.d.ts +1 -1
- package/dist/shared/assistant/ui/voice/voiceSessionEscape.d.ts +2 -2
- package/dist/shared/assistant/ui/voice/voiceStartGate.d.ts +6 -6
- package/dist/shared/assistant/ui/writeProposalPresentation.d.ts +1 -1
- package/dist/shared/assistant/uiActions/actOnResolve.d.ts +5 -5
- package/dist/shared/assistant/uiActions/assistantHref.d.ts +2 -2
- package/dist/shared/assistant/uiActions/backStack.d.ts +1 -1
- package/dist/shared/assistant/uiActions/deixis.d.ts +3 -3
- package/dist/shared/assistant/uiActions/entityRoutes.d.ts +1 -1
- package/dist/shared/assistant/uiActions/navigationOutcome.d.ts +8 -8
- package/dist/shared/assistant/uiActions/offerYesOnSurface.d.ts +1 -1
- package/dist/shared/assistant/uiActions/resolveTarget.d.ts +2 -2
- package/dist/shared/assistant/uiActions/uiOffers.d.ts +5 -5
- package/dist/shared/assistant/usageReporting.d.ts +2 -2
- package/dist/shared/assistant/useWorkspaceWriteAccess.d.ts +1 -1
- package/dist/shared/assistant/voice/affirmations.d.ts +1 -1
- package/dist/shared/assistant/voice/handsFree.d.ts +3 -3
- package/dist/shared/assistant/voice/handsfree/bargeIn.d.ts +5 -5
- package/dist/shared/assistant/voice/handsfree/echoGate.d.ts +6 -6
- package/dist/shared/assistant/voice/handsfree/handsFreeController.d.ts +7 -7
- package/dist/shared/assistant/voice/handsfree/handsFreeSetting.d.ts +2 -2
- package/dist/shared/assistant/voice/handsfree/micCapture.d.ts +1 -1
- package/dist/shared/assistant/voice/handsfree/playbackReference.d.ts +1 -1
- package/dist/shared/assistant/voice/handsfree/sttTransport.d.ts +3 -3
- package/dist/shared/assistant/voice/handsfree/useHandsFreeInterrupt.d.ts +4 -4
- package/dist/shared/assistant/voice/handsfree/vad.d.ts +1 -1
- package/dist/shared/assistant/voice/speechPlayback.d.ts +7 -7
- package/dist/shared/assistant/voice/useVoiceInput.d.ts +1 -1
- package/dist/shared/assistant/voice/voiceReopen.d.ts +8 -8
- package/dist/shared/assistant/writeConfirmSeam.d.ts +1 -1
- package/dist/shared/assistant/writeModeConsent.d.ts +7 -7
- package/dist/shared/assistant/writeProposalDiscovery.d.ts +3 -3
- package/dist/shared/assistant/writeProposalErrorCopy.d.ts +1 -1
- package/dist/shared/assistant/writeProposals.d.ts +23 -23
- package/dist/shared/assistant/writeReplyBinder.d.ts +11 -11
- package/dist/shared/assistant/writeReplySend.d.ts +7 -7
- package/dist/shared/components/LandingOrDashboardRedirect.d.ts +18 -3
- package/dist/shared/components/LandingOrDashboardRedirect.js +58 -28
- package/dist/shared/components/index.d.ts +2 -1
- package/dist/shared/events/index.d.ts +2 -1
- package/dist/shared/hooks/shell/globalSearchError.d.ts +2 -2
- package/dist/shared/navigation/productSwitchHandoff.d.ts +45 -0
- package/dist/shared/navigation/productSwitchHandoff.js +27 -0
- package/dist/shared/navigation/unsavedChanges.d.ts +1 -1
- package/dist/shared/utils/index.d.ts +3 -3
- package/dist/shared-assistant.js +227 -225
- package/dist/shared-components.js +7 -6
- package/dist/shared.js +71 -70
- package/package.json +3 -2
|
@@ -1,145 +1,167 @@
|
|
|
1
1
|
import { useAvatarCopy as e } from "../useAvatarCopy.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { liveAvatarMinutesBlockStart as t, liveAvatarMinutesView as n } from "./liveAvatarMinutesView.js";
|
|
3
|
+
import { liveAvatarStatusText as r } from "./liveAvatarStatus.js";
|
|
4
|
+
import { useCallback as i, useEffect as a, useId as o, useRef as s, useSyncExternalStore as c } from "react";
|
|
5
|
+
import { Video as l, VideoOff as u, Volume2 as d } from "lucide-react";
|
|
6
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
7
|
//#region src/shared/assistant/avatar/live/LiveAvatarStage.tsx
|
|
7
|
-
var
|
|
8
|
-
let
|
|
8
|
+
var m = "inline-flex h-8 items-center gap-1.5 rounded-full border border-border-default bg-bg-elevated px-3 text-xs font-medium text-text-secondary transition-colors hover:bg-bg-raised hover:text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong aria-disabled:cursor-default aria-disabled:opacity-60", h = "inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-full border px-3 text-xs font-medium transition-colors focus-within:ring-2 focus-within:ring-border-strong", g = "inline-flex h-8 items-center rounded-full bg-action-primary-bg px-3 text-xs font-medium text-action-primary-text transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong aria-disabled:cursor-default aria-disabled:opacity-60", _ = ({ controller: _, expanded: v, fallback: y, avatarNames: b }) => {
|
|
9
|
+
let x = e(), S = o(), C = o(), w = o(), T = o(), E = s(null), D = s(null), O = i((e) => {
|
|
9
10
|
e?.focus();
|
|
10
|
-
}, []),
|
|
11
|
-
|
|
12
|
-
}), []),
|
|
13
|
-
|
|
14
|
-
let { phase:
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
}, []), k = i((e) => (D.current = e, () => {
|
|
12
|
+
D.current = null, document.activeElement === e && E.current?.focus();
|
|
13
|
+
}), []), A = c(_.subscribe, _.getSnapshot, _.getSnapshot);
|
|
14
|
+
a(() => (_.setStageMounted(!0), () => _.setStageMounted(!1)), [_]);
|
|
15
|
+
let { phase: j } = A, M = j === "starting" || j === "connecting" || j === "ready" || j === "ending", N = j === "checking" || j === "ending", P = Date.now(), F = A.retryAt !== null && A.retryAt > P, I = r(A, x, P), L = n({
|
|
16
|
+
snapshot: A,
|
|
17
|
+
access: { status: "absent" },
|
|
18
|
+
now: P
|
|
19
|
+
}, x)?.stageLines ?? [], R = t(A, P), z = F || R, B = F ? `${S} ${C}` : R ? [
|
|
20
|
+
S,
|
|
21
|
+
I === null ? null : C,
|
|
22
|
+
L.length > 0 ? T : null
|
|
23
|
+
].filter((e) => e !== null).join(" ") : S, V = (e, t) => b?.[e] ?? `${x.chooserLabel} ${t + 1}`;
|
|
24
|
+
return /* @__PURE__ */ p("div", {
|
|
25
|
+
ref: E,
|
|
17
26
|
tabIndex: -1,
|
|
18
27
|
className: "flex flex-col items-center gap-2 focus:outline-none",
|
|
19
28
|
"data-testid": "assistant-live-avatar",
|
|
20
29
|
children: [
|
|
21
|
-
|
|
22
|
-
className: `relative overflow-hidden rounded-2xl border border-border-subtle bg-bg-sunken ${
|
|
30
|
+
M ? /* @__PURE__ */ p("div", {
|
|
31
|
+
className: `relative overflow-hidden rounded-2xl border border-border-subtle bg-bg-sunken ${v ? "size-64" : "size-40"}`,
|
|
23
32
|
"data-testid": "assistant-live-avatar-frame",
|
|
24
|
-
"data-phase":
|
|
33
|
+
"data-phase": j,
|
|
25
34
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
ref:
|
|
28
|
-
className: `size-full object-cover ${
|
|
29
|
-
"aria-label":
|
|
35
|
+
/* @__PURE__ */ f("video", {
|
|
36
|
+
ref: _.attachVideo,
|
|
37
|
+
className: `size-full object-cover ${A.videoReady ? "" : "invisible"}`,
|
|
38
|
+
"aria-label": x.stageLabel,
|
|
30
39
|
autoPlay: !0,
|
|
31
40
|
muted: !0,
|
|
32
41
|
playsInline: !0,
|
|
33
42
|
"data-testid": "assistant-live-avatar-video"
|
|
34
43
|
}),
|
|
35
|
-
|
|
44
|
+
A.videoReady ? null : /* @__PURE__ */ f("p", {
|
|
36
45
|
className: "absolute inset-0 flex items-center justify-center p-3 text-center text-xs text-text-muted",
|
|
37
|
-
children:
|
|
46
|
+
children: j === "ending" ? x.stateEnding : j === "connecting" ? x.stageWaiting : x.stateStarting
|
|
38
47
|
}),
|
|
39
|
-
|
|
48
|
+
A.audioBlocked ? /* @__PURE__ */ p("button", {
|
|
40
49
|
type: "button",
|
|
41
|
-
onClick: () =>
|
|
50
|
+
onClick: () => _.resumeAudio(),
|
|
42
51
|
className: "absolute inset-x-2 bottom-2 inline-flex items-center justify-center gap-1.5 rounded-xl bg-bg-elevated px-2 py-1.5 text-xs font-medium text-text-primary focus:outline-none focus-visible:ring-2 focus-visible:ring-border-strong",
|
|
43
52
|
"data-testid": "assistant-live-avatar-sound",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
53
|
+
children: [/* @__PURE__ */ f(d, {
|
|
45
54
|
className: "size-4 shrink-0",
|
|
46
55
|
"aria-hidden": "true"
|
|
47
|
-
}), /* @__PURE__ */
|
|
56
|
+
}), /* @__PURE__ */ f("span", { children: x.problem("playback-blocked") })]
|
|
48
57
|
}) : null
|
|
49
58
|
]
|
|
50
|
-
}) :
|
|
51
|
-
|
|
52
|
-
ref:
|
|
59
|
+
}) : y,
|
|
60
|
+
A.offered || M ? /* @__PURE__ */ p("button", {
|
|
61
|
+
ref: k,
|
|
53
62
|
type: "button",
|
|
54
63
|
onClick: () => {
|
|
55
|
-
|
|
64
|
+
N || (M ? _.switchOff() : j === "choosing" ? _.cancelChoice() : _.requestOn());
|
|
56
65
|
},
|
|
57
|
-
className:
|
|
58
|
-
"aria-pressed":
|
|
59
|
-
title:
|
|
60
|
-
"aria-disabled":
|
|
66
|
+
className: m,
|
|
67
|
+
"aria-pressed": M,
|
|
68
|
+
title: x.toggleHint,
|
|
69
|
+
"aria-disabled": N,
|
|
61
70
|
"data-testid": "assistant-live-avatar-toggle",
|
|
62
|
-
children: [
|
|
71
|
+
children: [f(M ? u : l, {
|
|
63
72
|
className: "size-4",
|
|
64
73
|
"aria-hidden": "true"
|
|
65
|
-
}), /* @__PURE__ */
|
|
74
|
+
}), /* @__PURE__ */ f("span", { children: x.toggle })]
|
|
66
75
|
}) : null,
|
|
67
|
-
|
|
76
|
+
j === "choosing" ? /* @__PURE__ */ p("fieldset", {
|
|
68
77
|
className: "flex max-w-xs flex-col gap-2 rounded-xl border border-border-default bg-bg-elevated p-3 text-start",
|
|
69
78
|
"data-testid": "assistant-live-avatar-consent",
|
|
70
79
|
children: [
|
|
71
|
-
/* @__PURE__ */
|
|
80
|
+
/* @__PURE__ */ f("legend", {
|
|
72
81
|
className: "sr-only",
|
|
73
|
-
children:
|
|
82
|
+
children: x.toggle
|
|
74
83
|
}),
|
|
75
|
-
|
|
84
|
+
A.avatars.length > 1 ? /* @__PURE__ */ p("fieldset", {
|
|
76
85
|
className: "flex flex-wrap gap-1.5",
|
|
77
86
|
"data-testid": "assistant-live-avatar-chooser",
|
|
78
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ f("legend", {
|
|
79
88
|
className: "sr-only",
|
|
80
|
-
children:
|
|
81
|
-
}),
|
|
82
|
-
let n = e ===
|
|
83
|
-
return /* @__PURE__ */
|
|
84
|
-
className: `${
|
|
85
|
-
title: n ?
|
|
86
|
-
children: [/* @__PURE__ */
|
|
89
|
+
children: x.chooserTitle
|
|
90
|
+
}), A.avatars.map((e, t) => {
|
|
91
|
+
let n = e === A.selectedAvatarId, r = V(e, t);
|
|
92
|
+
return /* @__PURE__ */ p("label", {
|
|
93
|
+
className: `${h} ${n ? "border-transparent bg-action-primary-bg text-action-primary-text" : "border-border-default bg-bg-elevated text-text-secondary hover:bg-bg-raised hover:text-text-primary"}`,
|
|
94
|
+
title: n ? x.chooserSelected(r) : x.chooserOption(r),
|
|
95
|
+
children: [/* @__PURE__ */ f("input", {
|
|
87
96
|
type: "radio",
|
|
88
|
-
name:
|
|
97
|
+
name: w,
|
|
89
98
|
value: e,
|
|
90
99
|
checked: n,
|
|
91
|
-
onChange: () =>
|
|
100
|
+
onChange: () => _.selectAvatar(e),
|
|
92
101
|
className: "sr-only",
|
|
93
102
|
"data-avatar-id": e
|
|
94
103
|
}), r]
|
|
95
104
|
}, e);
|
|
96
105
|
})]
|
|
97
106
|
}) : null,
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
ref:
|
|
100
|
-
id:
|
|
107
|
+
/* @__PURE__ */ f("p", {
|
|
108
|
+
ref: O,
|
|
109
|
+
id: S,
|
|
101
110
|
tabIndex: -1,
|
|
102
111
|
className: "text-xs text-text-secondary focus:outline-none",
|
|
103
112
|
"data-testid": "assistant-live-avatar-disclosure",
|
|
104
|
-
children:
|
|
113
|
+
children: x.consent
|
|
105
114
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
115
|
+
L.length > 0 ? /* @__PURE__ */ f("div", {
|
|
116
|
+
id: T,
|
|
117
|
+
className: "flex flex-col gap-0.5 text-xs text-text-secondary",
|
|
118
|
+
"data-testid": "assistant-live-avatar-minutes",
|
|
119
|
+
children: L.map((e) => /* @__PURE__ */ f("p", {
|
|
120
|
+
"data-testid": "assistant-live-avatar-minutes-line",
|
|
121
|
+
children: e
|
|
122
|
+
}, e))
|
|
123
|
+
}) : null,
|
|
124
|
+
/* @__PURE__ */ p("div", {
|
|
107
125
|
className: "flex justify-end gap-2",
|
|
108
|
-
children: [/* @__PURE__ */
|
|
126
|
+
children: [/* @__PURE__ */ f("button", {
|
|
109
127
|
type: "button",
|
|
110
128
|
onClick: () => {
|
|
111
|
-
|
|
129
|
+
D.current?.focus(), _.cancelChoice();
|
|
112
130
|
},
|
|
113
|
-
className:
|
|
114
|
-
children:
|
|
115
|
-
}), /* @__PURE__ */
|
|
131
|
+
className: m,
|
|
132
|
+
children: x.consentCancel
|
|
133
|
+
}), /* @__PURE__ */ f("button", {
|
|
116
134
|
type: "button",
|
|
117
135
|
onClick: () => {
|
|
118
|
-
if (
|
|
119
|
-
|
|
136
|
+
if (F) {
|
|
137
|
+
_.recheckRetry();
|
|
120
138
|
return;
|
|
121
139
|
}
|
|
122
|
-
|
|
140
|
+
if (R) {
|
|
141
|
+
A.retryAt !== null && _.recheckRetry();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
D.current?.focus(), _.confirm();
|
|
123
145
|
},
|
|
124
|
-
"aria-describedby":
|
|
125
|
-
"aria-disabled":
|
|
126
|
-
className:
|
|
127
|
-
disabled:
|
|
146
|
+
"aria-describedby": B,
|
|
147
|
+
"aria-disabled": z,
|
|
148
|
+
className: g,
|
|
149
|
+
disabled: A.selectedAvatarId === null,
|
|
128
150
|
"data-testid": "assistant-live-avatar-confirm",
|
|
129
|
-
children:
|
|
151
|
+
children: x.consentConfirm
|
|
130
152
|
})]
|
|
131
153
|
})
|
|
132
154
|
]
|
|
133
155
|
}) : null,
|
|
134
|
-
/* @__PURE__ */
|
|
135
|
-
id:
|
|
136
|
-
className:
|
|
156
|
+
/* @__PURE__ */ f("p", {
|
|
157
|
+
id: C,
|
|
158
|
+
className: I === null ? "sr-only" : "max-w-xs text-center text-xs text-text-muted",
|
|
137
159
|
role: "status",
|
|
138
160
|
"data-testid": "assistant-live-avatar-status",
|
|
139
|
-
children:
|
|
161
|
+
children: I ?? ""
|
|
140
162
|
})
|
|
141
163
|
]
|
|
142
164
|
});
|
|
143
165
|
};
|
|
144
166
|
//#endregion
|
|
145
|
-
export {
|
|
167
|
+
export { _ as LiveAvatarStageView };
|
|
@@ -5,6 +5,7 @@ import { LiveAvatarTabProps } from '../../ui/assistantLiveAvatarSeam';
|
|
|
5
5
|
import { AvatarVoiceDefault, AvatarVoicePreference } from '../avatarPreferences';
|
|
6
6
|
import { LiveAvatarVoices } from './avatarVoice';
|
|
7
7
|
import { LiveAvatarController } from './liveAvatarController';
|
|
8
|
+
import { LiveAvatarMinutesPurchase } from './liveAvatarMinutesView';
|
|
8
9
|
/** The person's avatar voice choice: read by the engine decorator per reply, written by the tab's select. STABLE. */
|
|
9
10
|
export interface LiveAvatarVoiceStore {
|
|
10
11
|
getState(): AvatarVoicePreference;
|
|
@@ -24,6 +25,11 @@ export interface LiveAvatarTabViewProps extends LiveAvatarTabProps {
|
|
|
24
25
|
readonly voiceStore: LiveAvatarVoiceStore;
|
|
25
26
|
/** Wall-clock milliseconds: the retry time and the Turn off guard. Tests pass their own. */
|
|
26
27
|
readonly now?: () => number;
|
|
28
|
+
/**
|
|
29
|
+
* ★ BOFF-9446: the host's purchase access (`LiveAvatarSeamOptions.minutesPurchase`, copied once by the seam). Absent: nobody is
|
|
30
|
+
* offered "See plans" here.
|
|
31
|
+
*/
|
|
32
|
+
readonly minutesPurchase?: LiveAvatarMinutesPurchase;
|
|
27
33
|
}
|
|
28
34
|
/** A voice name as the person reads it: a hosted voice by its speaker ("Kore"), any other by its own name. */
|
|
29
35
|
export declare function avatarVoiceDisplayName(name: string): string;
|