@superinterface/react 5.3.0-beta.13 → 5.3.0-beta.14
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 +55 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +55 -86
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -47997,95 +47997,64 @@ var useMessageAudio = function(_ref) {
|
|
|
47997
47997
|
}) : m_14;
|
|
47998
47998
|
});
|
|
47999
47999
|
});
|
|
48000
|
-
var runPlayback =
|
|
48001
|
-
var
|
|
48002
|
-
|
|
48003
|
-
return
|
|
48004
|
-
|
|
48005
|
-
|
|
48006
|
-
|
|
48007
|
-
|
|
48008
|
-
|
|
48009
|
-
_state
|
|
48010
|
-
|
|
48011
|
-
|
|
48012
|
-
|
|
48013
|
-
|
|
48014
|
-
|
|
48015
|
-
|
|
48016
|
-
|
|
48017
|
-
|
|
48018
|
-
|
|
48019
|
-
|
|
48020
|
-
|
|
48021
|
-
|
|
48022
|
-
|
|
48023
|
-
|
|
48024
|
-
|
|
48025
|
-
|
|
48026
|
-
|
|
48027
|
-
nextIndex_0 += 1;
|
|
48028
|
-
currentSegmentRef.current = {
|
|
48029
|
-
messageId: candidate.messageId,
|
|
48030
|
-
nextIndex: nextIndex_0
|
|
48031
|
-
};
|
|
48032
|
-
return [
|
|
48033
|
-
4,
|
|
48034
|
-
playInternal(segment_0, {
|
|
48035
|
-
onPlay: function() {},
|
|
48036
|
-
onStop: function() {
|
|
48037
|
-
return handleStop(candidate.messageId);
|
|
48038
|
-
},
|
|
48039
|
-
onEnd: function() {
|
|
48040
|
-
return handleSegmentEnd();
|
|
48041
|
-
}
|
|
48042
|
-
})
|
|
48043
|
-
];
|
|
48044
|
-
case 1:
|
|
48045
|
-
_state.sent();
|
|
48046
|
-
return [
|
|
48047
|
-
2
|
|
48048
|
-
];
|
|
48000
|
+
var runPlayback = function() {
|
|
48001
|
+
var nextIndex_0 = candidate.startIndex;
|
|
48002
|
+
var launch = function() {
|
|
48003
|
+
return playSegmentsImpl({
|
|
48004
|
+
segments: candidate.segments,
|
|
48005
|
+
startIndex: candidate.startIndex,
|
|
48006
|
+
message: candidate.message,
|
|
48007
|
+
play: function() {
|
|
48008
|
+
var _play = _asyncToGenerator11(function(segment_0) {
|
|
48009
|
+
return _ts_generator(this, function(_state) {
|
|
48010
|
+
switch(_state.label){
|
|
48011
|
+
case 0:
|
|
48012
|
+
activeSegmentsRef.current += 1;
|
|
48013
|
+
nextIndex_0 += 1;
|
|
48014
|
+
currentSegmentRef.current = {
|
|
48015
|
+
messageId: candidate.messageId,
|
|
48016
|
+
nextIndex: nextIndex_0
|
|
48017
|
+
};
|
|
48018
|
+
return [
|
|
48019
|
+
4,
|
|
48020
|
+
playInternal(segment_0, {
|
|
48021
|
+
onPlay: function() {},
|
|
48022
|
+
onStop: function() {
|
|
48023
|
+
return handleStop(candidate.messageId);
|
|
48024
|
+
},
|
|
48025
|
+
onEnd: function() {
|
|
48026
|
+
return handleSegmentEnd();
|
|
48049
48027
|
}
|
|
48050
|
-
})
|
|
48051
|
-
|
|
48052
|
-
|
|
48053
|
-
|
|
48054
|
-
|
|
48055
|
-
|
|
48056
|
-
|
|
48057
|
-
}
|
|
48058
|
-
|
|
48059
|
-
|
|
48060
|
-
|
|
48061
|
-
return
|
|
48062
|
-
|
|
48063
|
-
|
|
48064
|
-
|
|
48065
|
-
case 3:
|
|
48066
|
-
error = _state.sent();
|
|
48067
|
-
handleStop(candidate.messageId);
|
|
48068
|
-
console.error(error);
|
|
48069
|
-
return [
|
|
48070
|
-
3,
|
|
48071
|
-
5
|
|
48072
|
-
];
|
|
48073
|
-
case 4:
|
|
48074
|
-
checkForCompletion();
|
|
48075
|
-
return [
|
|
48076
|
-
7
|
|
48077
|
-
];
|
|
48078
|
-
case 5:
|
|
48079
|
-
return [
|
|
48080
|
-
2
|
|
48081
|
-
];
|
|
48082
|
-
}
|
|
48028
|
+
})
|
|
48029
|
+
];
|
|
48030
|
+
case 1:
|
|
48031
|
+
_state.sent();
|
|
48032
|
+
return [
|
|
48033
|
+
2
|
|
48034
|
+
];
|
|
48035
|
+
}
|
|
48036
|
+
});
|
|
48037
|
+
});
|
|
48038
|
+
function play(_x6) {
|
|
48039
|
+
return _play.apply(this, arguments);
|
|
48040
|
+
}
|
|
48041
|
+
return play;
|
|
48042
|
+
}()
|
|
48083
48043
|
});
|
|
48084
|
-
});
|
|
48085
|
-
return function runPlayback2() {
|
|
48086
|
-
return _ref0.apply(this, arguments);
|
|
48087
48044
|
};
|
|
48088
|
-
|
|
48045
|
+
try {
|
|
48046
|
+
Promise.resolve(launch()).catch(function(error_0) {
|
|
48047
|
+
handleStop(candidate.messageId);
|
|
48048
|
+
console.error(error_0);
|
|
48049
|
+
}).finally(function() {
|
|
48050
|
+
checkForCompletion();
|
|
48051
|
+
});
|
|
48052
|
+
} catch (error) {
|
|
48053
|
+
handleStop(candidate.messageId);
|
|
48054
|
+
console.error(error);
|
|
48055
|
+
checkForCompletion();
|
|
48056
|
+
}
|
|
48057
|
+
};
|
|
48089
48058
|
runPlayback();
|
|
48090
48059
|
}, [
|
|
48091
48060
|
audioQueue,
|