@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.cjs CHANGED
@@ -48117,9 +48117,11 @@ var useMessageAudio = function(_ref) {
48117
48117
  checkForCompletion
48118
48118
  ]);
48119
48119
  (0, import_react67.useEffect)(function() {
48120
- if (isPlaying) return;
48120
+ var allowParallel = Boolean(providedPlaySegments);
48121
+ if (!allowParallel && isPlaying) return;
48121
48122
  if (pickLockRef.current) return;
48122
48123
  if (audioQueue.length === 0) return;
48124
+ if (!allowParallel && audioPlayer.playing) return;
48123
48125
  var candidate = null;
48124
48126
  for(var i_3 = 0; i_3 < audioQueue.length; i_3++){
48125
48127
  var msg = audioQueue[i_3];
@@ -48212,7 +48214,9 @@ var useMessageAudio = function(_ref) {
48212
48214
  playInternal,
48213
48215
  handleStop,
48214
48216
  handleSegmentEnd,
48215
- checkForCompletion
48217
+ checkForCompletion,
48218
+ providedPlaySegments,
48219
+ audioPlayer.playing
48216
48220
  ]);
48217
48221
  (0, import_react67.useEffect)(function() {
48218
48222
  if (isHtmlAudioSupported) {