react-markup 0.0.0-experimental-5d87cd22-20250704 → 0.0.0-experimental-befc1246-20250708

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.
@@ -661,8 +661,11 @@ function serializeThenable(request, task, thenable) {
661
661
  return (
662
662
  request.abortableTasks.delete(newTask),
663
663
  21 === request.type
664
- ? haltTask(newTask, request)
665
- : abortTask$1(newTask, request, request.fatalError),
664
+ ? (haltTask(newTask),
665
+ 3 === newTask.status && request.pendingChunks--)
666
+ : ((task = request.fatalError),
667
+ abortTask$1(newTask),
668
+ finishAbortedTask(newTask, request, task)),
666
669
  newTask.id
667
670
  );
668
671
  "string" !== typeof thenable.status &&
@@ -729,8 +732,7 @@ function serializeReadableStream(request, task, stream) {
729
732
  signal.removeEventListener("abort", abortStream);
730
733
  signal = signal.reason;
731
734
  21 === request.type
732
- ? (haltTask(streamTask, request),
733
- request.abortableTasks.delete(streamTask))
735
+ ? (haltTask(streamTask), request.abortableTasks.delete(streamTask))
734
736
  : (erroredTask$1(request, streamTask, signal), enqueueFlush(request));
735
737
  reader.cancel(signal).then(error, error);
736
738
  }
@@ -812,8 +814,7 @@ function serializeAsyncIterable(request, task, iterable, iterator) {
812
814
  signal.removeEventListener("abort", abortIterable);
813
815
  var reason = signal.reason;
814
816
  21 === request.type
815
- ? (haltTask(streamTask, request),
816
- request.abortableTasks.delete(streamTask))
817
+ ? (haltTask(streamTask), request.abortableTasks.delete(streamTask))
817
818
  : (erroredTask$1(request, streamTask, signal.reason),
818
819
  enqueueFlush(request));
819
820
  "function" === typeof iterator.throw &&
@@ -1124,7 +1125,7 @@ function outlineModel(request, value) {
1124
1125
  function serializeTypedArray(request, tag, typedArray) {
1125
1126
  request.pendingChunks++;
1126
1127
  var bufferId = request.nextChunkId++;
1127
- emitTypedArrayChunk(request, bufferId, tag, typedArray);
1128
+ emitTypedArrayChunk(request, bufferId, tag, typedArray, !1);
1128
1129
  return serializeByValueID$1(bufferId);
1129
1130
  }
1130
1131
  function serializeBlob(request, blob) {
@@ -1151,7 +1152,7 @@ function serializeBlob(request, blob) {
1151
1152
  signal.removeEventListener("abort", abortBlob);
1152
1153
  signal = signal.reason;
1153
1154
  21 === request.type
1154
- ? haltTask(newTask, request)
1155
+ ? haltTask(newTask)
1155
1156
  : (erroredTask$1(request, newTask, signal), enqueueFlush(request));
1156
1157
  reader.cancel(signal).then(error, error);
1157
1158
  }
@@ -1509,7 +1510,7 @@ function emitErrorChunk(request, id, digest) {
1509
1510
  id = id.toString(16) + ":E" + stringify(digest) + "\n";
1510
1511
  request.completedErrorChunks.push(id);
1511
1512
  }
1512
- function emitTypedArrayChunk(request, id, tag, typedArray) {
1513
+ function emitTypedArrayChunk(request, id, tag, typedArray, debug) {
1513
1514
  TaintRegistryByteLengths.has(typedArray.byteLength) &&
1514
1515
  ((id = TaintRegistryValues.get(
1515
1516
  String.fromCharCode.apply(
@@ -1522,37 +1523,37 @@ function emitTypedArrayChunk(request, id, tag, typedArray) {
1522
1523
  )
1523
1524
  )),
1524
1525
  void 0 !== id && throwTaintViolation(id.message));
1525
- request.pendingChunks++;
1526
+ debug ? request.pendingDebugChunks++ : request.pendingChunks++;
1526
1527
  throw Error("Not implemented.");
1527
1528
  }
1528
1529
  function emitChunk(request, task, value) {
1529
1530
  var id = task.id;
1530
1531
  value instanceof ArrayBuffer
1531
- ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value))
1532
+ ? emitTypedArrayChunk(request, id, "A", new Uint8Array(value), !1)
1532
1533
  : value instanceof Int8Array
1533
- ? emitTypedArrayChunk(request, id, "O", value)
1534
+ ? emitTypedArrayChunk(request, id, "O", value, !1)
1534
1535
  : value instanceof Uint8Array
1535
- ? emitTypedArrayChunk(request, id, "o", value)
1536
+ ? emitTypedArrayChunk(request, id, "o", value, !1)
1536
1537
  : value instanceof Uint8ClampedArray
1537
- ? emitTypedArrayChunk(request, id, "U", value)
1538
+ ? emitTypedArrayChunk(request, id, "U", value, !1)
1538
1539
  : value instanceof Int16Array
1539
- ? emitTypedArrayChunk(request, id, "S", value)
1540
+ ? emitTypedArrayChunk(request, id, "S", value, !1)
1540
1541
  : value instanceof Uint16Array
1541
- ? emitTypedArrayChunk(request, id, "s", value)
1542
+ ? emitTypedArrayChunk(request, id, "s", value, !1)
1542
1543
  : value instanceof Int32Array
1543
- ? emitTypedArrayChunk(request, id, "L", value)
1544
+ ? emitTypedArrayChunk(request, id, "L", value, !1)
1544
1545
  : value instanceof Uint32Array
1545
- ? emitTypedArrayChunk(request, id, "l", value)
1546
+ ? emitTypedArrayChunk(request, id, "l", value, !1)
1546
1547
  : value instanceof Float32Array
1547
- ? emitTypedArrayChunk(request, id, "G", value)
1548
+ ? emitTypedArrayChunk(request, id, "G", value, !1)
1548
1549
  : value instanceof Float64Array
1549
- ? emitTypedArrayChunk(request, id, "g", value)
1550
+ ? emitTypedArrayChunk(request, id, "g", value, !1)
1550
1551
  : value instanceof BigInt64Array
1551
- ? emitTypedArrayChunk(request, id, "M", value)
1552
+ ? emitTypedArrayChunk(request, id, "M", value, !1)
1552
1553
  : value instanceof BigUint64Array
1553
- ? emitTypedArrayChunk(request, id, "m", value)
1554
+ ? emitTypedArrayChunk(request, id, "m", value, !1)
1554
1555
  : value instanceof DataView
1555
- ? emitTypedArrayChunk(request, id, "V", value)
1556
+ ? emitTypedArrayChunk(request, id, "V", value, !1)
1556
1557
  : ((value = stringify(value, task.toJSON)),
1557
1558
  (task =
1558
1559
  task.id.toString(16) + ":" + value + "\n"),
@@ -1603,11 +1604,17 @@ function retryTask$1(request, task) {
1603
1604
  callOnAllReadyIfReady(request);
1604
1605
  } catch (thrownValue) {
1605
1606
  if (12 === request.status)
1606
- request.abortableTasks.delete(task),
1607
+ if (
1608
+ (request.abortableTasks.delete(task),
1607
1609
  (task.status = 0),
1608
- 21 === request.type
1609
- ? haltTask(task, request)
1610
- : abortTask$1(task, request, request.fatalError);
1610
+ 21 === request.type)
1611
+ )
1612
+ haltTask(task), 3 === task.status && request.pendingChunks--;
1613
+ else {
1614
+ var errorId = request.fatalError;
1615
+ abortTask$1(task);
1616
+ finishAbortedTask(task, request, errorId);
1617
+ }
1611
1618
  else {
1612
1619
  var x =
1613
1620
  thrownValue === SuspenseException$1
@@ -1657,15 +1664,17 @@ function performWork$1(request) {
1657
1664
  (currentRequest = prevRequest);
1658
1665
  }
1659
1666
  }
1660
- function abortTask$1(task, request, errorId) {
1661
- 5 !== task.status &&
1662
- ((task.status = 3),
1663
- (errorId = serializeByValueID$1(errorId)),
1667
+ function abortTask$1(task) {
1668
+ 0 === task.status && (task.status = 3);
1669
+ }
1670
+ function finishAbortedTask(task, request, errorId) {
1671
+ 3 === task.status &&
1672
+ ((errorId = serializeByValueID$1(errorId)),
1664
1673
  (task = encodeReferenceChunk(request, task.id, errorId)),
1665
1674
  request.completedErrorChunks.push(task));
1666
1675
  }
1667
- function haltTask(task, request) {
1668
- 5 !== task.status && ((task.status = 3), request.pendingChunks--);
1676
+ function haltTask(task) {
1677
+ 0 === task.status && (task.status = 3);
1669
1678
  }
1670
1679
  function flushCompletedChunks(request, destination) {
1671
1680
  try {
@@ -1734,59 +1743,92 @@ function callOnAllReadyIfReady(request) {
1734
1743
  0 === request.abortableTasks.size &&
1735
1744
  ((request = request.onAllReady), request());
1736
1745
  }
1737
- function abort$1(request, reason) {
1746
+ function finishHalt(request, abortedTasks) {
1738
1747
  try {
1739
- 11 >= request.status &&
1740
- ((request.status = 12),
1741
- request.cacheController.abort(reason),
1742
- callOnAllReadyIfReady(request));
1743
- var abortableTasks = request.abortableTasks;
1744
- if (0 < abortableTasks.size) {
1745
- if (21 === request.type)
1746
- abortableTasks.forEach(function (task) {
1747
- return haltTask(task, request);
1748
- });
1749
- else if (
1750
- "object" === typeof reason &&
1751
- null !== reason &&
1752
- reason.$$typeof === REACT_POSTPONE_TYPE
1753
- ) {
1754
- logPostpone$1(request, reason.message, null);
1755
- var errorId = request.nextChunkId++;
1756
- request.fatalError = errorId;
1757
- request.pendingChunks++;
1758
- emitPostponeChunk(request, errorId, reason);
1759
- abortableTasks.forEach(function (task) {
1760
- return abortTask$1(task, request, errorId);
1761
- });
1762
- } else {
1763
- var error =
1764
- void 0 === reason
1765
- ? Error("The render was aborted by the server without a reason.")
1766
- : "object" === typeof reason &&
1767
- null !== reason &&
1768
- "function" === typeof reason.then
1769
- ? Error("The render was aborted by the server with a promise.")
1770
- : reason,
1771
- digest = logRecoverableError$1(request, error, null),
1772
- errorId$28 = request.nextChunkId++;
1773
- request.fatalError = errorId$28;
1774
- request.pendingChunks++;
1775
- emitErrorChunk(request, errorId$28, digest, error, !1);
1776
- abortableTasks.forEach(function (task) {
1777
- return abortTask$1(task, request, errorId$28);
1778
- });
1779
- }
1780
- abortableTasks.clear();
1781
- callOnAllReadyIfReady(request);
1782
- }
1748
+ abortedTasks.forEach(function (task) {
1749
+ 3 === task.status && request.pendingChunks--;
1750
+ });
1751
+ var onAllReady = request.onAllReady;
1752
+ onAllReady();
1783
1753
  null !== request.destination &&
1784
1754
  flushCompletedChunks(request, request.destination);
1785
- } catch (error$29) {
1786
- logRecoverableError$1(request, error$29, null),
1787
- fatalError$1(request, error$29);
1755
+ } catch (error) {
1756
+ logRecoverableError$1(request, error, null), fatalError$1(request, error);
1757
+ }
1758
+ }
1759
+ function finishAbort(request, abortedTasks, errorId) {
1760
+ try {
1761
+ abortedTasks.forEach(function (task) {
1762
+ return finishAbortedTask(task, request, errorId);
1763
+ });
1764
+ var onAllReady = request.onAllReady;
1765
+ onAllReady();
1766
+ null !== request.destination &&
1767
+ flushCompletedChunks(request, request.destination);
1768
+ } catch (error) {
1769
+ logRecoverableError$1(request, error, null), fatalError$1(request, error);
1788
1770
  }
1789
1771
  }
1772
+ function abort$1(request, reason) {
1773
+ if (!(11 < request.status))
1774
+ try {
1775
+ request.status = 12;
1776
+ request.cacheController.abort(reason);
1777
+ var abortableTasks = request.abortableTasks;
1778
+ if (0 < abortableTasks.size)
1779
+ if (21 === request.type)
1780
+ abortableTasks.forEach(function (task) {
1781
+ return haltTask(task, request);
1782
+ }),
1783
+ finishHalt(request, abortableTasks);
1784
+ else if (
1785
+ "object" === typeof reason &&
1786
+ null !== reason &&
1787
+ reason.$$typeof === REACT_POSTPONE_TYPE
1788
+ ) {
1789
+ logPostpone$1(request, reason.message, null);
1790
+ var errorId = request.nextChunkId++;
1791
+ request.fatalError = errorId;
1792
+ request.pendingChunks++;
1793
+ emitPostponeChunk(request, errorId, reason);
1794
+ abortableTasks.forEach(function (task) {
1795
+ return abortTask$1(task, request, errorId);
1796
+ });
1797
+ finishAbort(request, abortableTasks, errorId);
1798
+ } else {
1799
+ var error =
1800
+ void 0 === reason
1801
+ ? Error(
1802
+ "The render was aborted by the server without a reason."
1803
+ )
1804
+ : "object" === typeof reason &&
1805
+ null !== reason &&
1806
+ "function" === typeof reason.then
1807
+ ? Error(
1808
+ "The render was aborted by the server with a promise."
1809
+ )
1810
+ : reason,
1811
+ digest = logRecoverableError$1(request, error, null),
1812
+ errorId$28 = request.nextChunkId++;
1813
+ request.fatalError = errorId$28;
1814
+ request.pendingChunks++;
1815
+ emitErrorChunk(request, errorId$28, digest, error, !1);
1816
+ abortableTasks.forEach(function (task) {
1817
+ return abortTask$1(task, request, errorId$28);
1818
+ });
1819
+ finishAbort(request, abortableTasks, errorId$28);
1820
+ }
1821
+ else {
1822
+ var onAllReady = request.onAllReady;
1823
+ onAllReady();
1824
+ null !== request.destination &&
1825
+ flushCompletedChunks(request, request.destination);
1826
+ }
1827
+ } catch (error$29) {
1828
+ logRecoverableError$1(request, error$29, null),
1829
+ fatalError$1(request, error$29);
1830
+ }
1831
+ }
1790
1832
  var bind$1 = Function.prototype.bind,
1791
1833
  ObjectPrototype = Object.prototype,
1792
1834
  knownServerReferences = new WeakMap();
@@ -2511,15 +2553,13 @@ function wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners) {
2511
2553
  rejectListeners && rejectChunk(rejectListeners, chunk.reason);
2512
2554
  }
2513
2555
  }
2514
- function triggerErrorOnChunk(chunk, error) {
2515
- if ("pending" !== chunk.status && "blocked" !== chunk.status)
2516
- chunk.reason.error(error);
2517
- else {
2518
- var listeners = chunk.reason;
2519
- chunk.status = "rejected";
2520
- chunk.reason = error;
2521
- null !== listeners && rejectChunk(listeners, error);
2522
- }
2556
+ function triggerErrorOnChunk(response, chunk, error) {
2557
+ "pending" !== chunk.status && "blocked" !== chunk.status
2558
+ ? chunk.reason.error(error)
2559
+ : ((response = chunk.reason),
2560
+ (chunk.status = "rejected"),
2561
+ (chunk.reason = error),
2562
+ null !== response && rejectChunk(response, error));
2523
2563
  }
2524
2564
  function createResolvedIteratorResultChunk(response, value, done) {
2525
2565
  return new ReactPromise(
@@ -2589,11 +2629,12 @@ function initializeModuleChunk(chunk) {
2589
2629
  (chunk.status = "rejected"), (chunk.reason = error);
2590
2630
  }
2591
2631
  }
2592
- function reportGlobalError(response, error) {
2593
- response._closed = !0;
2594
- response._closedReason = error;
2595
- response._chunks.forEach(function (chunk) {
2596
- "pending" === chunk.status && triggerErrorOnChunk(chunk, error);
2632
+ function reportGlobalError(weakResponse, error) {
2633
+ weakResponse._closed = !0;
2634
+ weakResponse._closedReason = error;
2635
+ weakResponse._chunks.forEach(function (chunk) {
2636
+ "pending" === chunk.status &&
2637
+ triggerErrorOnChunk(weakResponse, chunk, error);
2597
2638
  });
2598
2639
  }
2599
2640
  function createLazyChunkWrapper(chunk) {
@@ -2684,14 +2725,15 @@ function fulfillReference(reference, value) {
2684
2725
  null !== parentObject && wakeChunk(parentObject, handler.value)));
2685
2726
  }
2686
2727
  function rejectReference(reference, error) {
2687
- reference = reference.handler;
2688
- reference.errored ||
2689
- ((reference.errored = !0),
2690
- (reference.value = error),
2691
- (reference = reference.chunk),
2692
- null !== reference &&
2693
- "blocked" === reference.status &&
2694
- triggerErrorOnChunk(reference, error));
2728
+ var handler = reference.handler;
2729
+ reference = reference.response;
2730
+ handler.errored ||
2731
+ ((handler.errored = !0),
2732
+ (handler.value = error),
2733
+ (handler = handler.chunk),
2734
+ null !== handler &&
2735
+ "blocked" === handler.status &&
2736
+ triggerErrorOnChunk(reference, handler, error));
2695
2737
  }
2696
2738
  function waitForReference(
2697
2739
  referencedChunk,
@@ -3174,7 +3216,7 @@ function startAsyncIterable(response, id, iterator) {
3174
3216
  nextWriteIndex < buffer.length;
3175
3217
 
3176
3218
  )
3177
- triggerErrorOnChunk(buffer[nextWriteIndex++], error);
3219
+ triggerErrorOnChunk(response, buffer[nextWriteIndex++], error);
3178
3220
  }
3179
3221
  }
3180
3222
  );
@@ -6664,6 +6706,13 @@ function pushComponentStack(task) {
6664
6706
  task.componentStack = { parent: task.componentStack, type: node.type };
6665
6707
  }
6666
6708
  }
6709
+ function replaceSuspenseComponentStackWithSuspenseFallbackStack(
6710
+ componentStack
6711
+ ) {
6712
+ return null === componentStack
6713
+ ? null
6714
+ : { parent: componentStack.parent, type: "Suspense Fallback" };
6715
+ }
6667
6716
  function getThrownInfo(node$jscomp$0) {
6668
6717
  var errorInfo = {};
6669
6718
  node$jscomp$0 &&
@@ -7125,25 +7174,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
7125
7174
  !1
7126
7175
  );
7127
7176
  segment.preambleChildren.push(preambleSegment);
7128
- var preambleTask = createRenderTask(
7129
- request,
7130
- null,
7131
- JSCompiler_inline_result$jscomp$2,
7132
- -1,
7133
- task.blockedBoundary,
7134
- preambleSegment,
7135
- task.blockedPreamble,
7136
- task.hoistableState,
7137
- request.abortableTasks,
7138
- task.keyPath,
7139
- task.formatContext,
7140
- task.context,
7141
- task.treeContext,
7142
- task.row,
7143
- task.componentStack
7144
- );
7145
- pushComponentStack(preambleTask);
7146
- request.pingedTasks.push(preambleTask);
7177
+ task.blockedSegment = preambleSegment;
7178
+ try {
7179
+ (preambleSegment.status = 6),
7180
+ renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1),
7181
+ (preambleSegment.status = 1);
7182
+ } finally {
7183
+ task.blockedSegment = segment;
7184
+ }
7147
7185
  } else renderNode(request, task, JSCompiler_inline_result$jscomp$2, -1);
7148
7186
  task.formatContext = prevContext$97;
7149
7187
  task.keyPath = prevKeyPath$98;
@@ -7411,7 +7449,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
7411
7449
  );
7412
7450
  contentRootSegment.parentFlushed = !0;
7413
7451
  if (null !== request.trackedPostpones) {
7414
- var fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
7452
+ var suspenseComponentStack = task.componentStack,
7453
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
7415
7454
  fallbackReplayNode = [
7416
7455
  fallbackKeyPath[1],
7417
7456
  fallbackKeyPath[2],
@@ -7430,6 +7469,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
7430
7469
  request.resumableState,
7431
7470
  prevContext$jscomp$1
7432
7471
  );
7472
+ task.componentStack =
7473
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
7474
+ suspenseComponentStack
7475
+ );
7433
7476
  boundarySegment.status = 6;
7434
7477
  try {
7435
7478
  renderNode(request, task, fallback, -1),
@@ -7463,7 +7506,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7463
7506
  task.context,
7464
7507
  task.treeContext,
7465
7508
  null,
7466
- task.componentStack
7509
+ suspenseComponentStack
7467
7510
  );
7468
7511
  pushComponentStack(suspendedPrimaryTask);
7469
7512
  request.pingedTasks.push(suspendedPrimaryTask);
@@ -7544,7 +7587,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
7544
7587
  task.context,
7545
7588
  task.treeContext,
7546
7589
  task.row,
7547
- task.componentStack
7590
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
7591
+ task.componentStack
7592
+ )
7548
7593
  );
7549
7594
  pushComponentStack(suspendedFallbackTask);
7550
7595
  request.pingedTasks.push(suspendedFallbackTask);
@@ -7859,7 +7904,9 @@ function retryNode(request, task) {
7859
7904
  task.context,
7860
7905
  task.treeContext,
7861
7906
  task.row,
7862
- task.componentStack
7907
+ replaceSuspenseComponentStackWithSuspenseFallbackStack(
7908
+ task.componentStack
7909
+ )
7863
7910
  );
7864
7911
  pushComponentStack(task);
7865
7912
  request.pingedTasks.push(task);
@@ -9578,12 +9625,13 @@ exports.experimental_renderToHTML = function (children, options) {
9578
9625
  push: function (chunk) {
9579
9626
  if (null !== chunk) {
9580
9627
  for (
9581
- var i = 0,
9582
- rowState = flightResponse._rowState,
9583
- rowID = flightResponse._rowID,
9584
- rowTag = flightResponse._rowTag,
9585
- rowLength = flightResponse._rowLength,
9586
- buffer = flightResponse._buffer,
9628
+ var response = flightResponse,
9629
+ i = 0,
9630
+ rowState = response._rowState,
9631
+ rowID = response._rowID,
9632
+ rowTag = response._rowTag,
9633
+ rowLength = response._rowLength,
9634
+ buffer = response._buffer,
9587
9635
  chunkLength = chunk.length;
9588
9636
  i < chunkLength;
9589
9637
 
@@ -9652,27 +9700,27 @@ exports.experimental_renderToHTML = function (children, options) {
9652
9700
  switch (rowTag) {
9653
9701
  case 73:
9654
9702
  throw (
9655
- (flightResponse._chunks.get(rowID),
9656
- JSON.parse(i, flightResponse._fromJSON),
9703
+ (response._chunks.get(rowID),
9704
+ JSON.parse(i, response._fromJSON),
9657
9705
  Error(
9658
9706
  "renderToHTML should not have emitted Client References. This is a bug in React."
9659
9707
  ))
9660
9708
  );
9661
9709
  case 72:
9662
9710
  rowID = i.slice(1);
9663
- JSON.parse(rowID, flightResponse._fromJSON);
9711
+ JSON.parse(rowID, response._fromJSON);
9664
9712
  break;
9665
9713
  case 69:
9666
9714
  rowTag = JSON.parse(i);
9667
9715
  i = resolveErrorProd();
9668
9716
  i.digest = rowTag.digest;
9669
- rowTag = flightResponse._chunks;
9717
+ rowTag = response._chunks;
9670
9718
  (rowLength = rowTag.get(rowID))
9671
- ? triggerErrorOnChunk(rowLength, i)
9672
- : rowTag.set(rowID, createErrorChunk(flightResponse, i));
9719
+ ? triggerErrorOnChunk(response, rowLength, i)
9720
+ : rowTag.set(rowID, createErrorChunk(response, i));
9673
9721
  break;
9674
9722
  case 84:
9675
- rowTag = flightResponse._chunks;
9723
+ rowTag = response._chunks;
9676
9724
  (rowLength = rowTag.get(rowID)) &&
9677
9725
  "pending" !== rowLength.status
9678
9726
  ? rowLength.reason.enqueueValue(i)
@@ -9689,19 +9737,19 @@ exports.experimental_renderToHTML = function (children, options) {
9689
9737
  "Failed to read a RSC payload created by a development version of React on the server while using a production version on the client. Always use matching versions on the server and the client."
9690
9738
  );
9691
9739
  case 82:
9692
- startReadableStream(flightResponse, rowID, void 0);
9740
+ startReadableStream(response, rowID, void 0);
9693
9741
  break;
9694
9742
  case 114:
9695
- startReadableStream(flightResponse, rowID, "bytes");
9743
+ startReadableStream(response, rowID, "bytes");
9696
9744
  break;
9697
9745
  case 88:
9698
- startAsyncIterable(flightResponse, rowID, !1);
9746
+ startAsyncIterable(response, rowID, !1);
9699
9747
  break;
9700
9748
  case 120:
9701
- startAsyncIterable(flightResponse, rowID, !0);
9749
+ startAsyncIterable(response, rowID, !0);
9702
9750
  break;
9703
9751
  case 67:
9704
- (rowID = flightResponse._chunks.get(rowID)) &&
9752
+ (rowID = response._chunks.get(rowID)) &&
9705
9753
  "fulfilled" === rowID.status &&
9706
9754
  rowID.reason.close("" === i ? '"$undefined"' : i);
9707
9755
  break;
@@ -9711,22 +9759,18 @@ exports.experimental_renderToHTML = function (children, options) {
9711
9759
  );
9712
9760
  i.$$typeof = REACT_POSTPONE_TYPE;
9713
9761
  i.stack = "Error: " + i.message;
9714
- rowTag = flightResponse._chunks;
9762
+ rowTag = response._chunks;
9715
9763
  (rowLength = rowTag.get(rowID))
9716
- ? triggerErrorOnChunk(rowLength, i)
9717
- : rowTag.set(rowID, createErrorChunk(flightResponse, i));
9764
+ ? triggerErrorOnChunk(response, rowLength, i)
9765
+ : rowTag.set(rowID, createErrorChunk(response, i));
9718
9766
  break;
9719
9767
  default:
9720
- (rowTag = flightResponse._chunks),
9768
+ (rowTag = response._chunks),
9721
9769
  (rowLength = rowTag.get(rowID))
9722
- ? resolveModelChunk(flightResponse, rowLength, i)
9770
+ ? resolveModelChunk(response, rowLength, i)
9723
9771
  : rowTag.set(
9724
9772
  rowID,
9725
- new ReactPromise(
9726
- "resolved_model",
9727
- i,
9728
- flightResponse
9729
- )
9773
+ new ReactPromise("resolved_model", i, response)
9730
9774
  );
9731
9775
  }
9732
9776
  i = lastIdx;
@@ -9738,10 +9782,10 @@ exports.experimental_renderToHTML = function (children, options) {
9738
9782
  "String chunks need to be passed in their original shape. Not split into smaller string chunks. This is a bug in the wiring of the React streams."
9739
9783
  );
9740
9784
  }
9741
- flightResponse._rowState = rowState;
9742
- flightResponse._rowID = rowID;
9743
- flightResponse._rowTag = rowTag;
9744
- flightResponse._rowLength = rowLength;
9785
+ response._rowState = rowState;
9786
+ response._rowID = rowID;
9787
+ response._rowTag = rowTag;
9788
+ response._rowLength = rowLength;
9745
9789
  } else reportGlobalError(flightResponse, Error("Connection closed."));
9746
9790
  return !0;
9747
9791
  },
@@ -9861,4 +9905,4 @@ exports.experimental_renderToHTML = function (children, options) {
9861
9905
  });
9862
9906
  });
9863
9907
  };
9864
- exports.version = "19.2.0-experimental-5d87cd22-20250704";
9908
+ exports.version = "19.2.0-experimental-befc1246-20250708";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-5d87cd22-20250704",
3
+ "version": "0.0.0-experimental-befc1246-20250708",
4
4
  "description": "React package generating embedded markup such as e-mails with support for Server Components.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "homepage": "https://react.dev/",
19
19
  "peerDependencies": {
20
- "react": "0.0.0-experimental-5d87cd22-20250704"
20
+ "react": "0.0.0-experimental-befc1246-20250708"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",