@xpert-ai/chatkit-web-component 0.10.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/xpert-chatkit.js
CHANGED
|
@@ -2765,6 +2765,13 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
|
|
|
2765
2765
|
},
|
|
2766
2766
|
targetOrigin: window.location.origin,
|
|
2767
2767
|
handlers: {
|
|
2768
|
+
onRealtimeVoiceCommand: (input) => {
|
|
2769
|
+
var _a2;
|
|
2770
|
+
const voice = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.realtimeVoice;
|
|
2771
|
+
if (!voice || input.type === "start" && !voice.enabled)
|
|
2772
|
+
throw new IntegrationError2("Realtime voice is unavailable.");
|
|
2773
|
+
return voice.onCommand(input);
|
|
2774
|
+
},
|
|
2768
2775
|
onFileInputClick: ({
|
|
2769
2776
|
inputAttributes
|
|
2770
2777
|
}) => {
|