@unctad-ai/voice-agent-ui 3.0.1 → 3.0.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/{VoiceSettingsView-DM22BR6B.js → VoiceSettingsView-25CXZPWY.js} +2 -2
- package/dist/{chunk-R6EX5YF4.js → chunk-MUM5DNV4.js} +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- /package/dist/{VoiceSettingsView-DM22BR6B.js.map → VoiceSettingsView-25CXZPWY.js.map} +0 -0
- /package/dist/{chunk-R6EX5YF4.js.map → chunk-MUM5DNV4.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
SliderSetting,
|
|
6
6
|
ToggleSetting,
|
|
7
7
|
VoiceSettingsView
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-MUM5DNV4.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-25CXZPWY.js.map
|
|
@@ -1187,7 +1187,7 @@ function VoiceSettingsView({ onBack, onVolumeChange }) {
|
|
|
1187
1187
|
] }),
|
|
1188
1188
|
/* @__PURE__ */ jsxs2("div", { style: { flexShrink: 0, textAlign: "center", padding: "8px 16px", fontSize: 11, color: "#9ca3af" }, children: [
|
|
1189
1189
|
"Kit v",
|
|
1190
|
-
/* @__PURE__ */ jsx3("span", { style: { fontWeight: 500, color: "#6b7280" }, children: "3.0.
|
|
1190
|
+
/* @__PURE__ */ jsx3("span", { style: { fontWeight: 500, color: "#6b7280" }, children: "3.0.3" })
|
|
1191
1191
|
] })
|
|
1192
1192
|
]
|
|
1193
1193
|
}
|
|
@@ -1278,4 +1278,4 @@ export {
|
|
|
1278
1278
|
SettingsSection,
|
|
1279
1279
|
Divider
|
|
1280
1280
|
};
|
|
1281
|
-
//# sourceMappingURL=chunk-
|
|
1281
|
+
//# sourceMappingURL=chunk-MUM5DNV4.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-MUM5DNV4.js";
|
|
12
12
|
|
|
13
13
|
// src/VoiceAgentProvider.tsx
|
|
14
14
|
import { SiteConfigProvider } from "@unctad-ai/voice-agent-core";
|
|
@@ -1665,7 +1665,7 @@ function PipelineMetricsBar({
|
|
|
1665
1665
|
|
|
1666
1666
|
// src/components/GlassCopilotPanel.tsx
|
|
1667
1667
|
import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1668
|
-
var VoiceSettingsView2 = lazy(() => import("./VoiceSettingsView-
|
|
1668
|
+
var VoiceSettingsView2 = lazy(() => import("./VoiceSettingsView-25CXZPWY.js"));
|
|
1669
1669
|
var STATE_LABELS = {
|
|
1670
1670
|
IDLE: "Tap mic to speak",
|
|
1671
1671
|
LISTENING: "Listening...",
|
|
@@ -2375,7 +2375,7 @@ function WiredPanelInner({
|
|
|
2375
2375
|
const config = useSiteConfig4();
|
|
2376
2376
|
const resolvedPortrait = portraitSrc ?? config.avatarUrl;
|
|
2377
2377
|
const { settings: voiceSettings, volumeRef, speedRef } = useVoiceSettings();
|
|
2378
|
-
const { state, start, stop, messages,
|
|
2378
|
+
const { state, start, stop, messages, getAmplitude, analyser, sendTextMessage, voiceError, dismissError, lastTimings, applyVolume, settings } = useVoiceAgent({ settings: voiceSettings, volumeRef, speedRef });
|
|
2379
2379
|
const [toolResult, setToolResult] = useState5(null);
|
|
2380
2380
|
const orbState = voiceStateToOrbState(state);
|
|
2381
2381
|
const [backendDown, setBackendDown] = useState5(false);
|
|
@@ -2475,7 +2475,7 @@ function WiredPanelInner({
|
|
|
2475
2475
|
bumpActivity();
|
|
2476
2476
|
sendTextMessage(text);
|
|
2477
2477
|
}, [sendTextMessage, bumpActivity]);
|
|
2478
|
-
const isTyping = state === "AI_SPEAKING"
|
|
2478
|
+
const isTyping = state === "AI_SPEAKING";
|
|
2479
2479
|
const effectiveError = backendDown ? "network_error" : voiceError;
|
|
2480
2480
|
const [isRetrying, setIsRetrying] = useState5(false);
|
|
2481
2481
|
const handleRetryClick = useCallback3(() => {
|