@superinterface/react 5.3.0-beta.14 → 5.3.0-beta.15

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
@@ -47968,9 +47968,11 @@ var useMessageAudio = function(_ref) {
47968
47968
  checkForCompletion
47969
47969
  ]);
47970
47970
  useEffect10(function() {
47971
- if (isPlaying) return;
47971
+ var allowParallel = Boolean(providedPlaySegments);
47972
+ if (!allowParallel && isPlaying) return;
47972
47973
  if (pickLockRef.current) return;
47973
47974
  if (audioQueue.length === 0) return;
47975
+ if (!allowParallel && audioPlayer.playing) return;
47974
47976
  var candidate = null;
47975
47977
  for(var i_3 = 0; i_3 < audioQueue.length; i_3++){
47976
47978
  var msg = audioQueue[i_3];
@@ -48063,7 +48065,9 @@ var useMessageAudio = function(_ref) {
48063
48065
  playInternal,
48064
48066
  handleStop,
48065
48067
  handleSegmentEnd,
48066
- checkForCompletion
48068
+ checkForCompletion,
48069
+ providedPlaySegments,
48070
+ audioPlayer.playing
48067
48071
  ]);
48068
48072
  useEffect10(function() {
48069
48073
  if (isHtmlAudioSupported) {