@rapidaai/react 1.1.53 → 1.1.54

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DeviceSelectorComponent
3
- } from "../chunk-4RUIGDSN.mjs";
3
+ } from "../chunk-U2JQCXY3.mjs";
4
4
  import "../chunk-32YFHJN5.mjs";
5
5
  export {
6
6
  DeviceSelectorComponent
package/dist/index.js CHANGED
@@ -63282,6 +63282,9 @@ class AudioConcatProcessor extends AudioWorkletProcessor {
63282
63282
  case "interrupt":
63283
63283
  this.wasInterrupted = true;
63284
63284
  break;
63285
+ case "resetInterrupt":
63286
+ this.wasInterrupted = false;
63287
+ break;
63285
63288
  case "clearInterrupted":
63286
63289
  if (this.wasInterrupted) {
63287
63290
  this.wasInterrupted = false;
@@ -63584,6 +63587,7 @@ var VoiceAgent = class extends Agent {
63584
63587
  */
63585
63588
  fadeOutAudio = (duration = 2) => {
63586
63589
  if (!this.output) return;
63590
+ this.output.worklet.port.postMessage({ type: "resetInterrupt" });
63587
63591
  const currentTime = this.output.context.currentTime;
63588
63592
  this.output.gain.gain.exponentialRampToValueAtTime(
63589
63593
  1e-4,