@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.js CHANGED
@@ -47451,7 +47451,7 @@ var useMessageAudio = function(_ref) {
47451
47451
  }
47452
47452
  var run = /* @__PURE__ */ function() {
47453
47453
  var _ref2 = _asyncToGenerator11(function() {
47454
- 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;
47454
+ 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;
47455
47455
  return _ts_generator(this, function(_state) {
47456
47456
  switch(_state.label){
47457
47457
  case 0:
@@ -47512,10 +47512,10 @@ var useMessageAudio = function(_ref) {
47512
47512
  3,
47513
47513
  5
47514
47514
  ];
47515
- rawInput = input({
47515
+ input2 = input({
47516
47516
  message: m_6
47517
47517
  });
47518
- if (rawInput == null) {
47518
+ if (input2 == null) {
47519
47519
  segCache.delete(m_6.id);
47520
47520
  messagesByIdRef.current.delete(m_6.id);
47521
47521
  return [
@@ -47535,14 +47535,14 @@ var useMessageAudio = function(_ref) {
47535
47535
  4,
47536
47536
  Promise.resolve(providedGetSegments({
47537
47537
  message: m_6,
47538
- rawInput: rawInput
47538
+ input: input2
47539
47539
  }))
47540
47540
  ];
47541
47541
  case 2:
47542
47542
  customSegments = _state.sent();
47543
47543
  safeSegments = Array.isArray(customSegments) ? customSegments : [];
47544
47544
  nextEntry = {
47545
- input: rawInput,
47545
+ input: input2,
47546
47546
  segments: safeSegments,
47547
47547
  touched: nowTs
47548
47548
  };
@@ -47552,7 +47552,7 @@ var useMessageAudio = function(_ref) {
47552
47552
  4
47553
47553
  ];
47554
47554
  case 3:
47555
- base = getIncrementalSegments(prevEntry, rawInput, nowTs);
47555
+ base = getIncrementalSegments(prevEntry, input2, nowTs);
47556
47556
  nextEntry = {
47557
47557
  input: base.input,
47558
47558
  segments: base.segments,
@@ -47574,7 +47574,7 @@ var useMessageAudio = function(_ref) {
47574
47574
  existing = prevById.get(m_6.id);
47575
47575
  nextIndex = Math.min((_existing$nextIndex = existing === null || existing === void 0 ? void 0 : existing.nextIndex) !== null && _existing$nextIndex !== void 0 ? _existing$nextIndex : 0, playableSegments.length);
47576
47576
  stopped = (_existing$stopped = existing === null || existing === void 0 ? void 0 : existing.stopped) !== null && _existing$stopped !== void 0 ? _existing$stopped : false;
47577
- reuse = !!existing && existing.status === m_6.status && existing.rawInput === rawInput && existing.nextIndex === nextIndex && existing.stopped === stopped && segmentsEqual(existing.segments, playableSegments);
47577
+ reuse = !!existing && existing.status === m_6.status && existing.messageInput === input2 && existing.nextIndex === nextIndex && existing.stopped === stopped && segmentsEqual(existing.segments, playableSegments);
47578
47578
  if (reuse) {
47579
47579
  nextQueue.push(existing);
47580
47580
  } else {
@@ -47584,7 +47584,7 @@ var useMessageAudio = function(_ref) {
47584
47584
  segments: playableSegments,
47585
47585
  nextIndex: nextIndex,
47586
47586
  stopped: stopped,
47587
- rawInput: rawInput
47587
+ messageInput: input2
47588
47588
  });
47589
47589
  changed = true;
47590
47590
  }
@@ -47737,13 +47737,13 @@ var useMessageAudio = function(_ref) {
47737
47737
  ]);
47738
47738
  var defaultPlay = useCallback7(/* @__PURE__ */ function() {
47739
47739
  var _ref5 = _asyncToGenerator11(function(_ref4) {
47740
- var input2, onPlay, onStop, onEnd_0, searchParams;
47740
+ var input_0, onPlay, onStop, onEnd_0, searchParams;
47741
47741
  return _ts_generator(this, function(_state) {
47742
47742
  switch(_state.label){
47743
47743
  case 0:
47744
- input2 = _ref4.input, onPlay = _ref4.onPlay, onStop = _ref4.onStop, onEnd_0 = _ref4.onEnd;
47744
+ input_0 = _ref4.input, onPlay = _ref4.onPlay, onStop = _ref4.onStop, onEnd_0 = _ref4.onEnd;
47745
47745
  searchParams = new URLSearchParams(_objectSpread47({
47746
- input: input2
47746
+ input: input_0
47747
47747
  }, superinterfaceContext.variables));
47748
47748
  return [
47749
47749
  4,
@@ -47990,7 +47990,7 @@ var useMessageAudio = function(_ref) {
47990
47990
  candidate = {
47991
47991
  messageId: msg.id,
47992
47992
  message: message_0,
47993
- rawInput: msg.rawInput,
47993
+ messageInput: msg.messageInput,
47994
47994
  startIndex: msg.nextIndex,
47995
47995
  segments: msg.segments.slice(msg.nextIndex)
47996
47996
  };