@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/index.js CHANGED
@@ -2520,6 +2520,13 @@ class ChatKitElementBase extends (_c = HTMLElement, _focusComposer_dec = [requir
2520
2520
  },
2521
2521
  targetOrigin: window.location.origin,
2522
2522
  handlers: {
2523
+ onRealtimeVoiceCommand: (input) => {
2524
+ var _a2;
2525
+ const voice = (_a2 = __privateGet(this, _opts)) == null ? void 0 : _a2.realtimeVoice;
2526
+ if (!voice || input.type === "start" && !voice.enabled)
2527
+ throw new IntegrationError2("Realtime voice is unavailable.");
2528
+ return voice.onCommand(input);
2529
+ },
2523
2530
  onFileInputClick: ({
2524
2531
  inputAttributes
2525
2532
  }) => {