@xpert-ai/chatkit-ui5 0.9.0 → 0.11.0
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/chatkit.cjs +7 -0
- package/dist/chatkit.cjs.map +1 -1
- package/dist/chatkit.ui5.js +7 -0
- package/dist/chatkit.ui5.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/chatkit.ui5.js
CHANGED
|
@@ -2523,6 +2523,13 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
2523
2523
|
},
|
|
2524
2524
|
targetOrigin: window.location.origin,
|
|
2525
2525
|
handlers: {
|
|
2526
|
+
onRealtimeVoiceCommand: (input) => {
|
|
2527
|
+
var _a2;
|
|
2528
|
+
const voice = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.realtimeVoice;
|
|
2529
|
+
if (!voice || input.type === "start" && !voice.enabled)
|
|
2530
|
+
throw new IntegrationError("Realtime voice is unavailable.");
|
|
2531
|
+
return voice.onCommand(input);
|
|
2532
|
+
},
|
|
2526
2533
|
onFileInputClick: ({
|
|
2527
2534
|
inputAttributes
|
|
2528
2535
|
}) => {
|