@unctad-ai/voice-agent-ui 5.2.0 → 5.2.1
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/{VoiceSettingsView-OPMI5HCP.js → VoiceSettingsView-DANMPNO7.js} +2 -2
- package/dist/{chunk-IMDRPZ6B.js → chunk-7ZBULBW7.js} +2 -2
- package/dist/index.js +19 -24
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{VoiceSettingsView-OPMI5HCP.js.map → VoiceSettingsView-DANMPNO7.js.map} +0 -0
- /package/dist/{chunk-IMDRPZ6B.js.map → chunk-7ZBULBW7.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SliderSetting,
|
|
6
6
|
ToggleSetting,
|
|
7
7
|
VoiceSettingsView
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7ZBULBW7.js";
|
|
9
9
|
export {
|
|
10
10
|
Divider,
|
|
11
11
|
SelectSetting,
|
|
@@ -14,4 +14,4 @@ export {
|
|
|
14
14
|
ToggleSetting,
|
|
15
15
|
VoiceSettingsView as default
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=VoiceSettingsView-
|
|
17
|
+
//# sourceMappingURL=VoiceSettingsView-DANMPNO7.js.map
|
|
@@ -1902,7 +1902,7 @@ function VoiceSettingsView({ onBack, onVolumeChange }) {
|
|
|
1902
1902
|
) : /* @__PURE__ */ jsx3("span", {}),
|
|
1903
1903
|
/* @__PURE__ */ jsxs2("span", { children: [
|
|
1904
1904
|
"Kit v",
|
|
1905
|
-
/* @__PURE__ */ jsx3("span", { style: { fontWeight: 500, color: "#6b7280" }, children: "5.2.
|
|
1905
|
+
/* @__PURE__ */ jsx3("span", { style: { fontWeight: 500, color: "#6b7280" }, children: "5.2.1" })
|
|
1906
1906
|
] })
|
|
1907
1907
|
] }) })
|
|
1908
1908
|
]
|
|
@@ -1994,4 +1994,4 @@ export {
|
|
|
1994
1994
|
SettingsSection,
|
|
1995
1995
|
Divider
|
|
1996
1996
|
};
|
|
1997
|
-
//# sourceMappingURL=chunk-
|
|
1997
|
+
//# sourceMappingURL=chunk-7ZBULBW7.js.map
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
VoiceSettingsProvider,
|
|
9
9
|
VoiceSettingsView,
|
|
10
10
|
useVoiceSettings
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7ZBULBW7.js";
|
|
12
12
|
|
|
13
13
|
// src/VoiceAgentProvider.tsx
|
|
14
14
|
import { SiteConfigProvider } from "@unctad-ai/voice-agent-core";
|
|
@@ -1764,7 +1764,7 @@ function PipelineMetricsBar({
|
|
|
1764
1764
|
|
|
1765
1765
|
// src/components/GlassCopilotPanel.tsx
|
|
1766
1766
|
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1767
|
-
var VoiceSettingsView2 = lazy(() => import("./VoiceSettingsView-
|
|
1767
|
+
var VoiceSettingsView2 = lazy(() => import("./VoiceSettingsView-DANMPNO7.js"));
|
|
1768
1768
|
var RETRY_INITIAL_MS = 3e3;
|
|
1769
1769
|
var RETRY_MAX_MS = 3e4;
|
|
1770
1770
|
var STATE_LABELS = {
|
|
@@ -2037,9 +2037,9 @@ function CollapsedBar({
|
|
|
2037
2037
|
"div",
|
|
2038
2038
|
{
|
|
2039
2039
|
className: "relative shrink-0",
|
|
2040
|
-
style: { width:
|
|
2040
|
+
style: { width: 56, height: 56, opacity: isOffline ? 0.4 : 1 },
|
|
2041
2041
|
children: [
|
|
2042
|
-
/* @__PURE__ */ jsx9(AgentAvatar, { state: orbState, getAmplitude, size:
|
|
2042
|
+
/* @__PURE__ */ jsx9(AgentAvatar, { state: orbState, getAmplitude, size: 56, portraitSrc }),
|
|
2043
2043
|
!ttsEnabled && /* @__PURE__ */ jsx9(
|
|
2044
2044
|
"div",
|
|
2045
2045
|
{
|
|
@@ -2261,31 +2261,26 @@ function ComposerBar({
|
|
|
2261
2261
|
className: "flex items-center gap-3",
|
|
2262
2262
|
style: { height: 56, padding: "10px 14px" },
|
|
2263
2263
|
children: [
|
|
2264
|
-
/* @__PURE__ */
|
|
2265
|
-
|
|
2264
|
+
/* @__PURE__ */ jsx9(
|
|
2265
|
+
motion5.button,
|
|
2266
2266
|
{
|
|
2267
2267
|
onClick: onMicToggle,
|
|
2268
|
-
|
|
2268
|
+
whileHover: { scale: 1.08 },
|
|
2269
|
+
whileTap: { scale: 0.93 },
|
|
2270
|
+
animate: isListening ? { backgroundColor: [colors.primary, `${colors.primary}BB`, colors.primary] } : { backgroundColor: "rgba(0,0,0,0.06)" },
|
|
2271
|
+
transition: isListening ? { backgroundColor: { duration: 1.8, repeat: Infinity, ease: "easeInOut" } } : { duration: 0.3 },
|
|
2272
|
+
className: "shrink-0 rounded-full flex items-center justify-center relative cursor-pointer",
|
|
2269
2273
|
style: {
|
|
2270
2274
|
width: 44,
|
|
2271
2275
|
height: 44,
|
|
2272
|
-
|
|
2273
|
-
|
|
2276
|
+
color: isListening ? "white" : "rgba(0,0,0,0.5)",
|
|
2277
|
+
border: "none",
|
|
2278
|
+
padding: 0,
|
|
2279
|
+
boxShadow: isListening ? `0 2px 8px ${colors.primary}40, 0 1px 3px rgba(0,0,0,0.12)` : "0 1px 4px rgba(0,0,0,0.10)"
|
|
2274
2280
|
},
|
|
2275
2281
|
"aria-label": isListening ? "Stop listening" : "Start listening",
|
|
2276
2282
|
"data-testid": "voice-agent-mic",
|
|
2277
|
-
children:
|
|
2278
|
-
isListening && /* @__PURE__ */ jsx9(
|
|
2279
|
-
motion5.span,
|
|
2280
|
-
{
|
|
2281
|
-
className: "absolute inset-0 rounded-full",
|
|
2282
|
-
animate: { scale: [1, 1.22, 1], opacity: [0.25, 0.08, 0.25] },
|
|
2283
|
-
transition: { duration: 1.8, repeat: Infinity, ease: "easeInOut" },
|
|
2284
|
-
style: { backgroundColor: `${colors.primary}33`, filter: "blur(4px)" }
|
|
2285
|
-
}
|
|
2286
|
-
),
|
|
2287
|
-
/* @__PURE__ */ jsx9(Mic3, { style: { width: 18, height: 18, position: "relative", zIndex: 1 } })
|
|
2288
|
-
]
|
|
2283
|
+
children: /* @__PURE__ */ jsx9(Mic3, { style: { width: 18, height: 18, position: "relative", zIndex: 1 } })
|
|
2289
2284
|
}
|
|
2290
2285
|
),
|
|
2291
2286
|
/* @__PURE__ */ jsx9("div", { className: "flex-1 min-w-0", children: /* @__PURE__ */ jsx9(AnimatePresence5, { mode: "wait", children: /* @__PURE__ */ jsx9(
|
|
@@ -2581,9 +2576,9 @@ function ExpandedContent({
|
|
|
2581
2576
|
{
|
|
2582
2577
|
animate: { opacity: isOffline ? 0.35 : 1 },
|
|
2583
2578
|
className: "relative shrink-0",
|
|
2584
|
-
style: { width:
|
|
2579
|
+
style: { width: 56, height: 56, filter: isOffline ? "grayscale(0.8)" : "none" },
|
|
2585
2580
|
children: [
|
|
2586
|
-
/* @__PURE__ */ jsx9(AgentAvatar, { state: orbState, getAmplitude, size:
|
|
2581
|
+
/* @__PURE__ */ jsx9(AgentAvatar, { state: orbState, getAmplitude, size: 56, showRing: true, portraitSrc }),
|
|
2587
2582
|
!ttsEnabled && /* @__PURE__ */ jsx9(
|
|
2588
2583
|
"div",
|
|
2589
2584
|
{
|
|
@@ -2902,7 +2897,7 @@ function WiredPanelInner({
|
|
|
2902
2897
|
timings: lastTimings ?? void 0,
|
|
2903
2898
|
route: window.location.pathname,
|
|
2904
2899
|
copilotName: config.copilotName,
|
|
2905
|
-
kitVersion: "5.2.
|
|
2900
|
+
kitVersion: "5.2.1"
|
|
2906
2901
|
})
|
|
2907
2902
|
});
|
|
2908
2903
|
const body = await res.json().catch(() => ({ ticketId: void 0 }));
|