@burdenoff/fe-libs 2026.906.4 → 2026.906.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVoiceSession.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/useVoiceSession.ts"],"names":[],"mappings":"AAUA,OAAO,EAWL,KAAK,oBAAoB,EAE1B,MAAM,uBAAuB,CAAC;AAsC/B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,eAAe,GACf,eAAe,GACf,oBAAoB,CAAC;AAMzB,UAAU,OAAO;IACf,+EAA+E;IAC/E;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;;;OAIG;IACH,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO;;
|
|
1
|
+
{"version":3,"file":"useVoiceSession.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/useVoiceSession.ts"],"names":[],"mappings":"AAUA,OAAO,EAWL,KAAK,oBAAoB,EAE1B,MAAM,uBAAuB,CAAC;AAsC/B;;;;;;;;GAQG;AACH,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,eAAe,GACf,eAAe,GACf,oBAAoB,CAAC;AAMzB,UAAU,OAAO;IACf,+EAA+E;IAC/E;;;;;;;OAOG;IACH,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,IAAI,CAAC;IACzD;;;;OAIG;IACH,WAAW,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,6EAA6E;IAC7E,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,OAAO;;IAqftE,qEAAqE;;IAErE;;;;;;;OAOG;;;;;IAEH,+DAA+D;;IAE/D;;;;;;;OAOG;;IAIH,0EAA0E;;IAE1E,6DAA6D;;IAE7D,sDAAsD;;;;;;EA4B3D"}
|
|
@@ -77,6 +77,8 @@ function x({ onSubmit: x, latestReply: S, language: C }) {
|
|
|
77
77
|
error: "no-speech-support"
|
|
78
78
|
}) : G.error === "network" ? F("network") : G.error === "unknown" && F("recognition-failed");
|
|
79
79
|
}, [G.error]), d(() => {
|
|
80
|
+
G.error !== null || !G.isListening || F((e) => e === "network" || e === "recognition-failed" ? null : e);
|
|
81
|
+
}, [G.error, G.isListening]), d(() => {
|
|
80
82
|
if (G.isListening && F((e) => e === "not-capturing" ? null : e), !i(T) || G.isListening) return;
|
|
81
83
|
let e = setTimeout(() => F("not-capturing"), v);
|
|
82
84
|
return () => clearTimeout(e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VoiceCaption.d.ts","sourceRoot":"","sources":["../../../../../src/shared/assistant/ui/voice/VoiceCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"VoiceCaption.d.ts","sourceRoot":"","sources":["../../../../../src/shared/assistant/ui/voice/VoiceCaption.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAEnD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,UAAU,KAAK;IACb,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;IAC3B,mDAAmD;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC1D,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAqKlC,CAAC"}
|
|
@@ -1,34 +1,38 @@
|
|
|
1
1
|
import { useEffect as e, useRef as t } from "react";
|
|
2
|
-
import { jsx as n
|
|
2
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
//#region src/shared/assistant/ui/voice/VoiceCaption.tsx
|
|
4
|
-
var
|
|
5
|
-
let
|
|
4
|
+
var r = "data-caption-scroll", i = ({ text: i, role: a, expanded: o, spokenChunks: s = null, testId: c }) => {
|
|
5
|
+
let l = t(null), u = a === "assistant", d = u && s && s.index >= 0 ? s : null, f = u && s !== null && s.index < 0;
|
|
6
6
|
return e(() => {
|
|
7
|
-
let e =
|
|
7
|
+
let e = l.current;
|
|
8
8
|
if (!e) return;
|
|
9
|
-
let t = e.closest(`[${
|
|
9
|
+
let t = e.closest(`[${r}]`);
|
|
10
10
|
if (!t) return;
|
|
11
|
-
let n = e.offsetTop - t.offsetTop,
|
|
12
|
-
|
|
13
|
-
}, [
|
|
11
|
+
let n = e.offsetTop - t.offsetTop, i = n + e.offsetHeight;
|
|
12
|
+
i > t.scrollTop + t.clientHeight ? t.scrollTop = i - t.clientHeight : n < t.scrollTop && (t.scrollTop = n);
|
|
13
|
+
}, [d?.index]), /* @__PURE__ */ n("div", {
|
|
14
14
|
className: "flex w-full justify-center",
|
|
15
15
|
children: /* @__PURE__ */ n("p", {
|
|
16
16
|
className: [
|
|
17
17
|
"w-full whitespace-pre-wrap break-words text-left",
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
o ? "max-w-[45rem]" : "max-w-md",
|
|
19
|
+
u ? "font-semibold text-text-primary" : "font-medium text-text-secondary",
|
|
20
|
+
u ? o ? "text-[clamp(1.625rem,2.5vw,2.25rem)] leading-[1.5]" : "text-[clamp(1.625rem,2vw,2rem)] leading-[1.5]" : o ? "text-[clamp(1.125rem,1.8vw,1.375rem)] leading-[1.5]" : "text-base leading-relaxed"
|
|
21
21
|
].join(" "),
|
|
22
22
|
role: "status",
|
|
23
23
|
"aria-live": "polite",
|
|
24
|
-
"data-testid":
|
|
25
|
-
children:
|
|
26
|
-
className:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
"data-testid": c,
|
|
25
|
+
children: d ? d.chunks.slice(0, d.index + 1).map((e, t) => /* @__PURE__ */ n("span", {
|
|
26
|
+
className: [
|
|
27
|
+
"block",
|
|
28
|
+
t > 0 ? "mt-2" : "",
|
|
29
|
+
t === d.index ? "text-text-primary" : "text-text-muted transition-colors duration-300"
|
|
30
|
+
].join(" "),
|
|
31
|
+
ref: t === d.index ? l : void 0,
|
|
32
|
+
children: e
|
|
33
|
+
}, t)) : f ? null : i
|
|
30
34
|
})
|
|
31
35
|
});
|
|
32
36
|
};
|
|
33
37
|
//#endregion
|
|
34
|
-
export {
|
|
38
|
+
export { r as CAPTION_SCROLL_ATTR, i as VoiceCaption };
|