@superinterface/react 5.3.0-beta.11 → 5.3.0-beta.12

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
@@ -47600,7 +47600,7 @@ var useMessageAudio = function(_ref) {
47600
47600
  }
47601
47601
  var run = /* @__PURE__ */ function() {
47602
47602
  var _ref2 = _asyncToGenerator11(function() {
47603
- var assistantsDesc, assistantsAsc, nowTs, lastNIds, prevQueue, prevById, prevUnfinishedIds, streamingIds, includeIds, segCache, nextQueue, changed, touch, i, _existing$nextIndex, _existing$stopped, m_6, rawInput, prevEntry, nextEntry, playableSegments, customSegments, safeSegments, base, fullSegments, readyCount, last3, readySegments, existing, nextIndex, stopped, reuse, unfinished, finished, prunedFinished, combined, i_0, idsInQueue, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, id_3, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, id_4, entries, toRemove, i_1;
47603
+ var assistantsDesc, assistantsAsc, nowTs, lastNIds, prevQueue, prevById, prevUnfinishedIds, streamingIds, includeIds, segCache, nextQueue, changed, touch, i, _existing$nextIndex, _existing$stopped, m_6, input2, prevEntry, nextEntry, playableSegments, customSegments, safeSegments, base, fullSegments, readyCount, last3, readySegments, existing, nextIndex, stopped, reuse, unfinished, finished, prunedFinished, combined, i_0, idsInQueue, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, id_3, _iteratorNormalCompletion1, _didIteratorError1, _iteratorError1, _iterator1, _step1, id_4, entries, toRemove, i_1;
47604
47604
  return _ts_generator(this, function(_state) {
47605
47605
  switch(_state.label){
47606
47606
  case 0:
@@ -47661,10 +47661,10 @@ var useMessageAudio = function(_ref) {
47661
47661
  3,
47662
47662
  5
47663
47663
  ];
47664
- rawInput = input({
47664
+ input2 = input({
47665
47665
  message: m_6
47666
47666
  });
47667
- if (rawInput == null) {
47667
+ if (input2 == null) {
47668
47668
  segCache.delete(m_6.id);
47669
47669
  messagesByIdRef.current.delete(m_6.id);
47670
47670
  return [
@@ -47684,14 +47684,14 @@ var useMessageAudio = function(_ref) {
47684
47684
  4,
47685
47685
  Promise.resolve(providedGetSegments({
47686
47686
  message: m_6,
47687
- rawInput: rawInput
47687
+ input: input2
47688
47688
  }))
47689
47689
  ];
47690
47690
  case 2:
47691
47691
  customSegments = _state.sent();
47692
47692
  safeSegments = Array.isArray(customSegments) ? customSegments : [];
47693
47693
  nextEntry = {
47694
- input: rawInput,
47694
+ input: input2,
47695
47695
  segments: safeSegments,
47696
47696
  touched: nowTs
47697
47697
  };
@@ -47701,7 +47701,7 @@ var useMessageAudio = function(_ref) {
47701
47701
  4
47702
47702
  ];
47703
47703
  case 3:
47704
- base = getIncrementalSegments(prevEntry, rawInput, nowTs);
47704
+ base = getIncrementalSegments(prevEntry, input2, nowTs);
47705
47705
  nextEntry = {
47706
47706
  input: base.input,
47707
47707
  segments: base.segments,
@@ -47723,7 +47723,7 @@ var useMessageAudio = function(_ref) {
47723
47723
  existing = prevById.get(m_6.id);
47724
47724
  nextIndex = Math.min((_existing$nextIndex = existing === null || existing === void 0 ? void 0 : existing.nextIndex) !== null && _existing$nextIndex !== void 0 ? _existing$nextIndex : 0, playableSegments.length);
47725
47725
  stopped = (_existing$stopped = existing === null || existing === void 0 ? void 0 : existing.stopped) !== null && _existing$stopped !== void 0 ? _existing$stopped : false;
47726
- reuse = !!existing && existing.status === m_6.status && existing.rawInput === rawInput && existing.nextIndex === nextIndex && existing.stopped === stopped && segmentsEqual(existing.segments, playableSegments);
47726
+ reuse = !!existing && existing.status === m_6.status && existing.messageInput === input2 && existing.nextIndex === nextIndex && existing.stopped === stopped && segmentsEqual(existing.segments, playableSegments);
47727
47727
  if (reuse) {
47728
47728
  nextQueue.push(existing);
47729
47729
  } else {
@@ -47733,7 +47733,7 @@ var useMessageAudio = function(_ref) {
47733
47733
  segments: playableSegments,
47734
47734
  nextIndex: nextIndex,
47735
47735
  stopped: stopped,
47736
- rawInput: rawInput
47736
+ messageInput: input2
47737
47737
  });
47738
47738
  changed = true;
47739
47739
  }
@@ -47886,13 +47886,13 @@ var useMessageAudio = function(_ref) {
47886
47886
  ]);
47887
47887
  var defaultPlay = (0, import_react67.useCallback)(/* @__PURE__ */ function() {
47888
47888
  var _ref5 = _asyncToGenerator11(function(_ref4) {
47889
- var input2, onPlay, onStop, onEnd_0, searchParams;
47889
+ var input_0, onPlay, onStop, onEnd_0, searchParams;
47890
47890
  return _ts_generator(this, function(_state) {
47891
47891
  switch(_state.label){
47892
47892
  case 0:
47893
- input2 = _ref4.input, onPlay = _ref4.onPlay, onStop = _ref4.onStop, onEnd_0 = _ref4.onEnd;
47893
+ input_0 = _ref4.input, onPlay = _ref4.onPlay, onStop = _ref4.onStop, onEnd_0 = _ref4.onEnd;
47894
47894
  searchParams = new URLSearchParams(_objectSpread47({
47895
- input: input2
47895
+ input: input_0
47896
47896
  }, superinterfaceContext.variables));
47897
47897
  return [
47898
47898
  4,
@@ -48139,7 +48139,7 @@ var useMessageAudio = function(_ref) {
48139
48139
  candidate = {
48140
48140
  messageId: msg.id,
48141
48141
  message: message_0,
48142
- rawInput: msg.rawInput,
48142
+ messageInput: msg.messageInput,
48143
48143
  startIndex: msg.nextIndex,
48144
48144
  segments: msg.segments.slice(msg.nextIndex)
48145
48145
  };