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