@burdenoff/fe-libs 2026.1013.8 → 2026.1013.10

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.
@@ -3,59 +3,63 @@ import { isAwaitingFirstChunk as i } from "../../voice/speechPlayback.js";
3
3
  import { VoiceCaption as a } from "./VoiceCaption.js";
4
4
  import { VoiceWaveform as o } from "./VoiceWaveform.js";
5
5
  import { VoiceStatusText as s } from "./VoiceStatusText.js";
6
- import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
6
+ import { useLiveAvatarStage as c } from "../assistantLiveAvatarSeam.js";
7
+ import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
7
8
  //#region src/shared/assistant/ui/voice/VoiceStage.tsx
8
- var d = ({ state: d, userCaption: f, assistantCaption: p, expanded: m, statusText: h, statusSuffix: g, rotateStatus: _, control: v, errorText: y = null, spokenChunks: b = null }) => {
9
- let x = e(d) && i(b), S = e(d) ? p : t(d) ? f : null;
10
- return /* @__PURE__ */ u("div", {
9
+ var f = ({ state: f, userCaption: p, assistantCaption: m, expanded: h, statusText: g, statusSuffix: _, rotateStatus: v, control: y, errorText: b = null, spokenChunks: x = null }) => {
10
+ let S = c(), C = e(f) && i(x), w = e(f) ? m : t(f) ? p : null, T = /* @__PURE__ */ u(o, {
11
+ active: n(f),
12
+ settled: r(f),
13
+ tone: f === "speaking" ? "speaking" : "listening",
14
+ expanded: h
15
+ });
16
+ return /* @__PURE__ */ d("div", {
11
17
  className: [
12
18
  "flex min-h-0 w-full flex-1 flex-col items-center",
13
- m ? "px-8" : "px-14",
14
- m ? "justify-start pt-[16vh]" : "justify-center"
19
+ h ? "px-8" : "px-14",
20
+ h ? "justify-start pt-[16vh]" : "justify-center"
15
21
  ].join(" "),
16
22
  "data-testid": "assistant-voice-stage",
17
- "data-state": d,
23
+ "data-state": f,
18
24
  children: [
19
- /* @__PURE__ */ l(s, {
25
+ /* @__PURE__ */ u(s, {
20
26
  className: [
21
27
  "text-center text-text-muted",
22
- m ? "text-base" : "text-sm",
23
- m ? "mb-3" : "mb-2"
28
+ h ? "text-base" : "text-sm",
29
+ h ? "mb-3" : "mb-2"
24
30
  ].join(" "),
25
- status: h,
26
- suffix: g,
27
- rotating: _
31
+ status: g,
32
+ suffix: _,
33
+ rotating: v
28
34
  }),
29
- d === "mic-error" ? /* @__PURE__ */ l("p", {
30
- className: `max-w-md text-center text-status-warning ${m ? "text-lg" : "text-sm"}`,
35
+ f === "mic-error" ? /* @__PURE__ */ u("p", {
36
+ className: `max-w-md text-center text-status-warning ${h ? "text-lg" : "text-sm"}`,
31
37
  role: "alert",
32
38
  "data-testid": "assistant-voice-stage-error",
33
- children: y
34
- }) : /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l("div", {
35
- className: m ? "mb-10" : "mb-5",
36
- children: /* @__PURE__ */ l(o, {
37
- active: n(d),
38
- settled: r(d),
39
- tone: d === "speaking" ? "speaking" : "listening",
40
- expanded: m
41
- })
42
- }), S ? /* @__PURE__ */ l("div", {
43
- className: [m ? "mb-12 max-h-[46vh] w-full overflow-y-auto" : "mb-6 max-h-[38vh] w-full overflow-y-auto", x ? m ? "min-h-[4.875rem]" : "min-h-12" : ""].join(" "),
39
+ children: b
40
+ }) : /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("div", {
41
+ className: h ? "mb-10" : "mb-5",
42
+ children: S ? /* @__PURE__ */ u(S, {
43
+ expanded: h,
44
+ fallback: T
45
+ }) : T
46
+ }), w ? /* @__PURE__ */ u("div", {
47
+ className: [h ? "mb-12 max-h-[46vh] w-full overflow-y-auto" : "mb-6 max-h-[38vh] w-full overflow-y-auto", C ? h ? "min-h-[4.875rem]" : "min-h-12" : ""].join(" "),
44
48
  "data-caption-scroll": "",
45
- children: /* @__PURE__ */ l(a, {
46
- text: S,
47
- role: e(d) ? "assistant" : "user",
48
- spokenChunks: b,
49
- expanded: m,
49
+ children: /* @__PURE__ */ u(a, {
50
+ text: w,
51
+ role: e(f) ? "assistant" : "user",
52
+ spokenChunks: x,
53
+ expanded: h,
50
54
  testId: "assistant-voice-caption"
51
55
  })
52
- }) : /* @__PURE__ */ l("div", {
53
- className: m ? "mb-12 h-[4.875rem]" : "mb-6 h-12",
56
+ }) : /* @__PURE__ */ u("div", {
57
+ className: h ? "mb-12 h-[4.875rem]" : "mb-6 h-12",
54
58
  "aria-hidden": "true"
55
59
  })] }),
56
- v
60
+ y
57
61
  ]
58
62
  });
59
63
  };
60
64
  //#endregion
61
- export { d as VoiceStage };
65
+ export { f as VoiceStage };