react-markup 0.0.0-experimental-dffacc7b-20250717 → 0.0.0-experimental-7513996f-20250722

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.
@@ -9792,5 +9792,5 @@
9792
9792
  });
9793
9793
  });
9794
9794
  };
9795
- exports.version = "19.2.0-experimental-dffacc7b-20250717";
9795
+ exports.version = "19.2.0-experimental-7513996f-20250722";
9796
9796
  })();
@@ -6757,4 +6757,4 @@ exports.experimental_renderToHTML = function (children, options) {
6757
6757
  });
6758
6758
  });
6759
6759
  };
6760
- exports.version = "19.2.0-experimental-dffacc7b-20250717";
6760
+ exports.version = "19.2.0-experimental-7513996f-20250722";
@@ -1359,11 +1359,12 @@
1359
1359
  task.debugStack,
1360
1360
  task.debugTask
1361
1361
  );
1362
+ (task = iterable._debugInfo) &&
1363
+ forwardDebugInfo(request, streamTask, task);
1362
1364
  request.pendingChunks++;
1363
- task = streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n";
1364
- request.completedRegularChunks.push(task);
1365
- (iterable = iterable._debugInfo) &&
1366
- forwardDebugInfo(request, streamTask, iterable);
1365
+ isIterator =
1366
+ streamTask.id.toString(16) + ":" + (isIterator ? "x" : "X") + "\n";
1367
+ request.completedRegularChunks.push(isIterator);
1367
1368
  request.cacheController.signal.addEventListener("abort", abortIterable);
1368
1369
  callIteratorInDEV(iterator, progress, error);
1369
1370
  return serializeByValueID$1(streamTask.id);
@@ -1581,6 +1582,9 @@
1581
1582
  Component,
1582
1583
  props
1583
1584
  );
1585
+ task.debugOwner = componentDebugInfo;
1586
+ task.debugStack = null;
1587
+ task.debugTask = null;
1584
1588
  Component = task.keyPath;
1585
1589
  componentDebugInfo = task.implicitSlot;
1586
1590
  null !== key
@@ -4600,25 +4604,37 @@
4600
4604
  function getIOShortName(ioInfo, description, env, rootEnv) {
4601
4605
  ioInfo = ioInfo.name;
4602
4606
  env = env === rootEnv || void 0 === env ? "" : " [" + env + "]";
4603
- rootEnv = "";
4604
- var descMaxLength = 30 - ioInfo.length - env.length;
4605
- if (1 < descMaxLength) {
4607
+ var desc = "";
4608
+ rootEnv = 30 - ioInfo.length - env.length;
4609
+ if (1 < rootEnv) {
4606
4610
  var l = description.length;
4607
- if (0 < l && l <= descMaxLength) rootEnv = " (" + description + ")";
4611
+ if (0 < l && l <= rootEnv) desc = " (" + description + ")";
4608
4612
  else if (
4609
4613
  description.startsWith("http://") ||
4610
4614
  description.startsWith("https://") ||
4611
4615
  description.startsWith("/")
4612
4616
  ) {
4613
- l = description.indexOf("?");
4614
- -1 === l && (l = description.length);
4615
- 47 === description.charCodeAt(l - 1) && l--;
4616
- var slashIdx = description.lastIndexOf("/", l - 1);
4617
- l - slashIdx < descMaxLength &&
4618
- (rootEnv = " (" + description.slice(slashIdx + 1, l) + ")");
4617
+ var queryIdx = description.indexOf("?");
4618
+ -1 === queryIdx && (queryIdx = description.length);
4619
+ 47 === description.charCodeAt(queryIdx - 1) && queryIdx--;
4620
+ desc = description.lastIndexOf("/", queryIdx - 1);
4621
+ queryIdx - desc < rootEnv
4622
+ ? (desc = " (\u2026" + description.slice(desc, queryIdx) + ")")
4623
+ : ((l = description.slice(desc, desc + rootEnv / 2)),
4624
+ (description = description.slice(
4625
+ queryIdx - rootEnv / 2,
4626
+ queryIdx
4627
+ )),
4628
+ (desc =
4629
+ " (" +
4630
+ (0 < desc ? "\u2026" : "") +
4631
+ l +
4632
+ "\u2026" +
4633
+ description +
4634
+ ")"));
4619
4635
  }
4620
4636
  }
4621
- return ioInfo + rootEnv + env;
4637
+ return ioInfo + desc + env;
4622
4638
  }
4623
4639
  function logComponentAwait(
4624
4640
  asyncInfo,
@@ -4767,7 +4783,7 @@
4767
4783
  this.value = value;
4768
4784
  this.reason = reason;
4769
4785
  this._children = [];
4770
- this._debugInfo = null;
4786
+ this._debugInfo = this._debugChunk = null;
4771
4787
  }
4772
4788
  function unwrapWeakResponse(weakResponse) {
4773
4789
  weakResponse = weakResponse.weak.deref();
@@ -4899,13 +4915,33 @@
4899
4915
  }
4900
4916
  }
4901
4917
  function triggerErrorOnChunk(response, chunk, error) {
4902
- "pending" !== chunk.status && "blocked" !== chunk.status
4903
- ? chunk.reason.error(error)
4904
- : (releasePendingChunk(response, chunk),
4905
- (response = chunk.reason),
4906
- (chunk.status = "rejected"),
4907
- (chunk.reason = error),
4908
- null !== response && rejectChunk(response, error));
4918
+ if ("pending" !== chunk.status && "blocked" !== chunk.status)
4919
+ chunk.reason.error(error);
4920
+ else {
4921
+ releasePendingChunk(response, chunk);
4922
+ var listeners = chunk.reason;
4923
+ if ("pending" === chunk.status && null != chunk._debugChunk) {
4924
+ var prevHandler = initializingHandler,
4925
+ prevChunk = initializingChunk;
4926
+ initializingHandler = null;
4927
+ chunk.status = "blocked";
4928
+ chunk.value = null;
4929
+ chunk.reason = null;
4930
+ initializingChunk = chunk;
4931
+ try {
4932
+ initializeDebugChunk(response, chunk), (chunk._debugChunk = null);
4933
+ } finally {
4934
+ (initializingHandler = prevHandler),
4935
+ (initializingChunk = prevChunk);
4936
+ }
4937
+ }
4938
+ chunk.status = "rejected";
4939
+ chunk.reason = error;
4940
+ null !== listeners && rejectChunk(listeners, error);
4941
+ }
4942
+ }
4943
+ function createResolvedModelChunk(response, value) {
4944
+ return new ReactPromise("resolved_model", value, response);
4909
4945
  }
4910
4946
  function createResolvedIteratorResultChunk(response, value, done) {
4911
4947
  return new ReactPromise(
@@ -4939,6 +4975,63 @@
4939
4975
  wakeChunkIfInitialized(chunk, resolveListeners, rejectListeners));
4940
4976
  }
4941
4977
  }
4978
+ function initializeDebugChunk(response, chunk) {
4979
+ var debugChunk = chunk._debugChunk;
4980
+ if (null !== debugChunk) {
4981
+ var debugInfo = chunk._debugInfo || (chunk._debugInfo = []);
4982
+ try {
4983
+ if ("resolved_model" === debugChunk.status) {
4984
+ for (
4985
+ var idx = debugInfo.length, c = debugChunk._debugChunk;
4986
+ null !== c;
4987
+
4988
+ )
4989
+ "fulfilled" !== c.status && idx++, (c = c._debugChunk);
4990
+ initializeModelChunk(debugChunk);
4991
+ switch (debugChunk.status) {
4992
+ case "fulfilled":
4993
+ debugInfo[idx] = initializeDebugInfo(
4994
+ response,
4995
+ debugChunk.value
4996
+ );
4997
+ break;
4998
+ case "blocked":
4999
+ case "pending":
5000
+ waitForReference(
5001
+ debugChunk,
5002
+ debugInfo,
5003
+ "" + idx,
5004
+ response,
5005
+ initializeDebugInfo,
5006
+ [""]
5007
+ );
5008
+ break;
5009
+ default:
5010
+ throw debugChunk.reason;
5011
+ }
5012
+ } else
5013
+ switch (debugChunk.status) {
5014
+ case "fulfilled":
5015
+ break;
5016
+ case "blocked":
5017
+ case "pending":
5018
+ waitForReference(
5019
+ debugChunk,
5020
+ {},
5021
+ "",
5022
+ response,
5023
+ initializeDebugInfo,
5024
+ [""]
5025
+ );
5026
+ break;
5027
+ default:
5028
+ throw debugChunk.reason;
5029
+ }
5030
+ } catch (error) {
5031
+ triggerErrorOnChunk(response, chunk, error);
5032
+ }
5033
+ }
5034
+ }
4942
5035
  function initializeModelChunk(chunk) {
4943
5036
  var prevHandler = initializingHandler,
4944
5037
  prevChunk = initializingChunk;
@@ -4949,6 +5042,8 @@
4949
5042
  chunk.value = null;
4950
5043
  chunk.reason = null;
4951
5044
  initializingChunk = chunk;
5045
+ initializeDebugChunk(response, chunk);
5046
+ chunk._debugChunk = null;
4952
5047
  try {
4953
5048
  var value = JSON.parse(resolvedModel, response._fromJSON),
4954
5049
  resolveListeners = chunk.value;
@@ -4957,7 +5052,7 @@
4957
5052
  (chunk.reason = null),
4958
5053
  wakeChunk(resolveListeners, value));
4959
5054
  if (null !== initializingHandler) {
4960
- if (initializingHandler.errored) throw initializingHandler.value;
5055
+ if (initializingHandler.errored) throw initializingHandler.reason;
4961
5056
  if (0 < initializingHandler.deps) {
4962
5057
  initializingHandler.value = value;
4963
5058
  initializingHandler.chunk = chunk;
@@ -5151,6 +5246,7 @@
5151
5246
  ((parentObject = key.value),
5152
5247
  (key.status = "fulfilled"),
5153
5248
  (key.value = handler.value),
5249
+ (key.reason = handler.reason),
5154
5250
  null !== parentObject && wakeChunk(parentObject, handler.value)));
5155
5251
  }
5156
5252
  function rejectReference(reference, error) {
@@ -5159,7 +5255,8 @@
5159
5255
  if (!handler.errored) {
5160
5256
  var blockedValue = handler.value;
5161
5257
  handler.errored = !0;
5162
- handler.value = error;
5258
+ handler.value = null;
5259
+ handler.reason = error;
5163
5260
  handler = handler.chunk;
5164
5261
  if (null !== handler && "blocked" === handler.status) {
5165
5262
  if (
@@ -5205,6 +5302,7 @@
5205
5302
  parent: null,
5206
5303
  chunk: null,
5207
5304
  value: null,
5305
+ reason: null,
5208
5306
  deps: 1,
5209
5307
  errored: !1
5210
5308
  };
@@ -5284,6 +5382,7 @@
5284
5382
  parent: null,
5285
5383
  chunk: null,
5286
5384
  value: null,
5385
+ reason: null,
5287
5386
  deps: 1,
5288
5387
  errored: !1
5289
5388
  }),
@@ -5293,11 +5392,13 @@
5293
5392
  return (
5294
5393
  initializingHandler
5295
5394
  ? ((initializingHandler.errored = !0),
5296
- (initializingHandler.value = value.reason))
5395
+ (initializingHandler.value = null),
5396
+ (initializingHandler.reason = value.reason))
5297
5397
  : (initializingHandler = {
5298
5398
  parent: null,
5299
5399
  chunk: null,
5300
- value: value.reason,
5400
+ value: null,
5401
+ reason: value.reason,
5301
5402
  deps: 0,
5302
5403
  errored: !0
5303
5404
  }),
@@ -5340,6 +5441,7 @@
5340
5441
  parent: null,
5341
5442
  chunk: null,
5342
5443
  value: null,
5444
+ reason: null,
5343
5445
  deps: 1,
5344
5446
  errored: !1
5345
5447
  }),
@@ -5349,11 +5451,13 @@
5349
5451
  return (
5350
5452
  initializingHandler
5351
5453
  ? ((initializingHandler.errored = !0),
5352
- (initializingHandler.value = id.reason))
5454
+ (initializingHandler.value = null),
5455
+ (initializingHandler.reason = id.reason))
5353
5456
  : (initializingHandler = {
5354
5457
  parent: null,
5355
5458
  chunk: null,
5356
- value: id.reason,
5459
+ value: null,
5460
+ reason: id.reason,
5357
5461
  deps: 0,
5358
5462
  errored: !0
5359
5463
  }),
@@ -5412,6 +5516,7 @@
5412
5516
  parent: initializingHandler,
5413
5517
  chunk: null,
5414
5518
  value: null,
5519
+ reason: null,
5415
5520
  deps: 0,
5416
5521
  errored: !1
5417
5522
  }),
@@ -5643,6 +5748,7 @@
5643
5748
  ));
5644
5749
  this._debugFindSourceMapURL = findSourceMapURL;
5645
5750
  this._debugChannel = debugChannel;
5751
+ this._blockedConsole = null;
5646
5752
  this._replayConsole = replayConsole;
5647
5753
  this._rootEnvironmentName = environmentName;
5648
5754
  debugChannel &&
@@ -5652,51 +5758,44 @@
5652
5758
  replayConsole && markAllTracksInOrder();
5653
5759
  this._fromJSON = createFromJSONCallback(this);
5654
5760
  }
5655
- function resolveDebugHalt(response, id) {
5656
- var chunks = response._chunks,
5657
- chunk = chunks.get(id);
5658
- chunk || chunks.set(id, (chunk = createPendingChunk(response)));
5659
- if ("pending" === chunk.status || "blocked" === chunk.status)
5660
- releasePendingChunk(response, chunk),
5661
- (response = chunk),
5662
- (response.status = "halted"),
5663
- (response.value = null),
5664
- (response.reason = null);
5665
- }
5666
- function resolveModel(response, id, model) {
5667
- var chunks = response._chunks,
5668
- chunk = chunks.get(id);
5669
- chunk
5670
- ? resolveModelChunk(response, chunk, model)
5671
- : chunks.set(id, new ReactPromise("resolved_model", model, response));
5672
- }
5673
- function resolveText(response, id, text) {
5674
- var chunks = response._chunks,
5675
- chunk = chunks.get(id);
5676
- chunk && "pending" !== chunk.status
5677
- ? chunk.reason.enqueueValue(text)
5678
- : (chunk && releasePendingChunk(response, chunk),
5679
- chunks.set(id, new ReactPromise("fulfilled", text, null)));
5680
- }
5681
- function resolveModule(response, id, model) {
5682
- response._chunks.get(id);
5683
- JSON.parse(model, response._fromJSON);
5684
- throw Error(
5685
- "renderToHTML should not have emitted Client References. This is a bug in React."
5686
- );
5687
- }
5688
5761
  function resolveStream(response, id, stream, controller) {
5689
5762
  var chunks = response._chunks,
5690
5763
  chunk = chunks.get(id);
5691
- chunk
5692
- ? "pending" === chunk.status &&
5693
- (releasePendingChunk(response, chunk),
5694
- (response = chunk.value),
5695
- (chunk.status = "fulfilled"),
5696
- (chunk.value = stream),
5697
- (chunk.reason = controller),
5698
- null !== response && wakeChunk(response, chunk.value))
5699
- : chunks.set(id, new ReactPromise("fulfilled", stream, controller));
5764
+ if (!chunk)
5765
+ chunks.set(id, new ReactPromise("fulfilled", stream, controller));
5766
+ else if ("pending" === chunk.status) {
5767
+ releasePendingChunk(response, chunk);
5768
+ id = chunk.value;
5769
+ if (null != chunk._debugChunk) {
5770
+ chunks = initializingHandler;
5771
+ var prevChunk = initializingChunk;
5772
+ initializingHandler = null;
5773
+ chunk.status = "blocked";
5774
+ chunk.value = null;
5775
+ chunk.reason = null;
5776
+ initializingChunk = chunk;
5777
+ try {
5778
+ if (
5779
+ (initializeDebugChunk(response, chunk),
5780
+ (chunk._debugChunk = null),
5781
+ null !== initializingHandler &&
5782
+ !initializingHandler.errored &&
5783
+ 0 < initializingHandler.deps)
5784
+ ) {
5785
+ initializingHandler.value = stream;
5786
+ initializingHandler.reason = controller;
5787
+ initializingHandler.chunk = chunk;
5788
+ return;
5789
+ }
5790
+ } finally {
5791
+ (initializingHandler = chunks), (initializingChunk = prevChunk);
5792
+ }
5793
+ }
5794
+ chunk.status = "fulfilled";
5795
+ chunk.value = stream;
5796
+ chunk.reason = controller;
5797
+ null !== id && wakeChunk(id, chunk.value);
5798
+ }
5700
5799
  }
5701
5800
  function startReadableStream(response, id, type) {
5702
5801
  var controller = null;
@@ -5717,7 +5816,7 @@
5717
5816
  },
5718
5817
  enqueueModel: function (json) {
5719
5818
  if (null === previousBlockedChunk) {
5720
- var chunk = new ReactPromise("resolved_model", json, response);
5819
+ var chunk = createResolvedModelChunk(response, json);
5721
5820
  initializeModelChunk(chunk);
5722
5821
  "fulfilled" === chunk.status
5723
5822
  ? controller.enqueue(chunk.value)
@@ -5879,11 +5978,6 @@
5879
5978
  }
5880
5979
  );
5881
5980
  }
5882
- function stopStream(response, id, row) {
5883
- (response = response._chunks.get(id)) &&
5884
- "fulfilled" === response.status &&
5885
- response.reason.close("" === row ? '"$undefined"' : row);
5886
- }
5887
5981
  function resolveErrorDev(response, errorInfo) {
5888
5982
  var name = errorInfo.name,
5889
5983
  env = errorInfo.env;
@@ -5904,25 +5998,6 @@
5904
5998
  response.environmentName = env;
5905
5999
  return response;
5906
6000
  }
5907
- function resolvePostponeDev(response, id, reason, stack, env) {
5908
- reason = buildFakeCallStack(
5909
- response,
5910
- stack,
5911
- env,
5912
- !1,
5913
- Error.bind(null, reason || "")
5914
- );
5915
- stack = response._debugRootTask;
5916
- reason = null != stack ? stack.run(reason) : reason();
5917
- reason.$$typeof = REACT_POSTPONE_TYPE;
5918
- stack = response._chunks;
5919
- (env = stack.get(id))
5920
- ? triggerErrorOnChunk(response, env, reason)
5921
- : stack.set(id, createErrorChunk(response, reason));
5922
- }
5923
- function resolveHint(response, code, model) {
5924
- JSON.parse(model, response._fromJSON);
5925
- }
5926
6001
  function createFakeFunction(
5927
6002
  name,
5928
6003
  filename,
@@ -6134,7 +6209,7 @@
6134
6209
  (owner.debugLocation = debugInfo.debugStack));
6135
6210
  }
6136
6211
  }
6137
- function resolveDebugInfo(response, id, debugInfo) {
6212
+ function initializeDebugInfo(response, debugInfo) {
6138
6213
  void 0 !== debugInfo.stack && initializeFakeTask(response, debugInfo);
6139
6214
  if (null == debugInfo.owner && null != response._debugRootOwner) {
6140
6215
  var _componentInfoOrAsyncInfo = debugInfo;
@@ -6146,29 +6221,43 @@
6146
6221
  void 0 !== debugInfo.stack && initializeFakeStack(response, debugInfo);
6147
6222
  "number" === typeof debugInfo.time &&
6148
6223
  (debugInfo = { time: debugInfo.time + response._timeOrigin });
6149
- response = getChunk(response, id);
6150
- (response._debugInfo || (response._debugInfo = [])).push(debugInfo);
6224
+ return debugInfo;
6151
6225
  }
6152
6226
  function getCurrentStackInDEV$1() {
6153
6227
  var owner = currentOwnerInDEV;
6154
6228
  return null === owner ? "" : getOwnerStackByComponentInfoInDev(owner);
6155
6229
  }
6156
- function resolveConsoleEntry(response, value) {
6230
+ function resolveConsoleEntry(response, json) {
6157
6231
  if (response._replayConsole) {
6158
- var payload = JSON.parse(value, response._fromJSON);
6159
- value = payload[0];
6160
- var stackTrace = payload[1],
6161
- owner = payload[2],
6162
- env = payload[3];
6163
- payload = payload.slice(4);
6164
- replayConsoleWithCallStackInDEV(
6165
- response,
6166
- value,
6167
- stackTrace,
6168
- owner,
6169
- env,
6170
- payload
6171
- );
6232
+ var blockedChunk = response._blockedConsole;
6233
+ if (null == blockedChunk)
6234
+ (blockedChunk = createResolvedModelChunk(response, json)),
6235
+ initializeModelChunk(blockedChunk),
6236
+ "fulfilled" === blockedChunk.status
6237
+ ? replayConsoleWithCallStackInDEV(response, blockedChunk.value)
6238
+ : (blockedChunk.then(
6239
+ function (v) {
6240
+ return replayConsoleWithCallStackInDEV(response, v);
6241
+ },
6242
+ function () {}
6243
+ ),
6244
+ (response._blockedConsole = blockedChunk));
6245
+ else {
6246
+ var _chunk4 = createPendingChunk(response);
6247
+ _chunk4.then(
6248
+ function (v) {
6249
+ return replayConsoleWithCallStackInDEV(response, v);
6250
+ },
6251
+ function () {}
6252
+ );
6253
+ response._blockedConsole = _chunk4;
6254
+ var unblock = function () {
6255
+ response._blockedConsole === _chunk4 &&
6256
+ (response._blockedConsole = null);
6257
+ resolveModelChunk(response, _chunk4, json);
6258
+ };
6259
+ blockedChunk.then(unblock, unblock);
6260
+ }
6172
6261
  }
6173
6262
  }
6174
6263
  function initializeIOInfo(response, ioInfo) {
@@ -6203,7 +6292,7 @@
6203
6292
  chunk
6204
6293
  ? (resolveModelChunk(response, chunk, model),
6205
6294
  "resolved_model" === chunk.status && initializeModelChunk(chunk))
6206
- : ((chunk = new ReactPromise("resolved_model", model, response)),
6295
+ : ((chunk = createResolvedModelChunk(response, model)),
6207
6296
  chunks.set(id, chunk),
6208
6297
  initializeModelChunk(chunk));
6209
6298
  "fulfilled" === chunk.status
@@ -6740,73 +6829,6 @@
6740
6829
  ));
6741
6830
  }
6742
6831
  }
6743
- function processFullStringRow(response, id, tag, row) {
6744
- switch (tag) {
6745
- case 73:
6746
- resolveModule(response, id, row);
6747
- break;
6748
- case 72:
6749
- resolveHint(response, row[0], row.slice(1));
6750
- break;
6751
- case 69:
6752
- row = JSON.parse(row);
6753
- tag = resolveErrorDev(response, row);
6754
- tag.digest = row.digest;
6755
- row = response._chunks;
6756
- var chunk = row.get(id);
6757
- chunk
6758
- ? triggerErrorOnChunk(response, chunk, tag)
6759
- : row.set(id, createErrorChunk(response, tag));
6760
- break;
6761
- case 84:
6762
- resolveText(response, id, row);
6763
- break;
6764
- case 78:
6765
- response._timeOrigin = +row - performance.timeOrigin;
6766
- break;
6767
- case 68:
6768
- tag = new ReactPromise("resolved_model", row, response);
6769
- initializeModelChunk(tag);
6770
- "fulfilled" === tag.status
6771
- ? resolveDebugInfo(response, id, tag.value)
6772
- : tag.then(
6773
- function (v) {
6774
- return resolveDebugInfo(response, id, v);
6775
- },
6776
- function () {}
6777
- );
6778
- break;
6779
- case 74:
6780
- resolveIOInfo(response, id, row);
6781
- break;
6782
- case 87:
6783
- resolveConsoleEntry(response, row);
6784
- break;
6785
- case 82:
6786
- startReadableStream(response, id, void 0);
6787
- break;
6788
- case 114:
6789
- startReadableStream(response, id, "bytes");
6790
- break;
6791
- case 88:
6792
- startAsyncIterable(response, id, !1);
6793
- break;
6794
- case 120:
6795
- startAsyncIterable(response, id, !0);
6796
- break;
6797
- case 67:
6798
- stopStream(response, id, row);
6799
- break;
6800
- case 80:
6801
- tag = JSON.parse(row);
6802
- resolvePostponeDev(response, id, tag.reason, tag.stack, tag.env);
6803
- break;
6804
- default:
6805
- "" === row
6806
- ? resolveDebugHalt(response, id)
6807
- : resolveModel(response, id, row);
6808
- }
6809
- }
6810
6832
  function createFromJSONCallback(response) {
6811
6833
  return function (key, value) {
6812
6834
  if ("string" === typeof value)
@@ -6857,7 +6879,7 @@
6857
6879
  validated = initializingHandler;
6858
6880
  initializingHandler = validated.parent;
6859
6881
  if (validated.errored) {
6860
- key = createErrorChunk(response, validated.value);
6882
+ key = createErrorChunk(response, validated.reason);
6861
6883
  initializeElement(response, value);
6862
6884
  validated = {
6863
6885
  name: getComponentNameFromType(value.type) || "",
@@ -15392,14 +15414,12 @@
15392
15414
  ),
15393
15415
  currentOwnerInDEV = null,
15394
15416
  replayConsoleWithCallStack = {
15395
- react_stack_bottom_frame: function (
15396
- response,
15397
- methodName,
15398
- stackTrace,
15399
- owner,
15400
- env,
15401
- args
15402
- ) {
15417
+ react_stack_bottom_frame: function (response, payload) {
15418
+ var methodName = payload[0],
15419
+ stackTrace = payload[1],
15420
+ owner = payload[2],
15421
+ env = payload[3];
15422
+ payload = payload.slice(4);
15403
15423
  var prevStack = ReactSharedInternals.getCurrentStack;
15404
15424
  ReactSharedInternals.getCurrentStack = getCurrentStackInDEV$1;
15405
15425
  currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
@@ -15409,7 +15429,7 @@
15409
15429
  stackTrace,
15410
15430
  env,
15411
15431
  !1,
15412
- bindToConsole(methodName, args, env)
15432
+ bindToConsole(methodName, payload, env)
15413
15433
  );
15414
15434
  if (null != owner) {
15415
15435
  var task = initializeFakeTask(response, owner);
@@ -16346,11 +16366,11 @@
16346
16366
  flushedByteSize = 0;
16347
16367
  exports.experimental_renderToHTML = function (children, options) {
16348
16368
  return new Promise(function (resolve, reject) {
16349
- var JSCompiler_object_inline__rowState_1582 = 0,
16350
- JSCompiler_object_inline__rowID_1583 = 0,
16351
- JSCompiler_object_inline__rowTag_1584 = 0,
16352
- JSCompiler_object_inline__rowLength_1585 = 0,
16353
- JSCompiler_object_inline__buffer_1586 = [],
16369
+ var JSCompiler_object_inline__rowState_1625 = 0,
16370
+ JSCompiler_object_inline__rowID_1626 = 0,
16371
+ JSCompiler_object_inline__rowTag_1627 = 0,
16372
+ JSCompiler_object_inline__rowLength_1628 = 0,
16373
+ JSCompiler_object_inline__buffer_1629 = [],
16354
16374
  buffer = "",
16355
16375
  stashErrorIdx = 1,
16356
16376
  stashedErrors = new Map(),
@@ -16444,24 +16464,24 @@
16444
16464
  }
16445
16465
  startWork$1(flightRequest);
16446
16466
  startFlowing$1(flightRequest, {
16447
- push: function (chunk) {
16448
- if (null !== chunk) {
16467
+ push: function (chunk$jscomp$0) {
16468
+ if (null !== chunk$jscomp$0) {
16449
16469
  if (void 0 !== flightResponse.weak.deref()) {
16450
16470
  for (
16451
16471
  var response = unwrapWeakResponse(flightResponse),
16452
16472
  i = 0,
16453
- rowState = JSCompiler_object_inline__rowState_1582,
16454
- rowID = JSCompiler_object_inline__rowID_1583,
16455
- rowTag = JSCompiler_object_inline__rowTag_1584,
16456
- rowLength = JSCompiler_object_inline__rowLength_1585,
16457
- chunkLength = chunk.length;
16473
+ rowState = JSCompiler_object_inline__rowState_1625,
16474
+ rowID = JSCompiler_object_inline__rowID_1626,
16475
+ rowTag = JSCompiler_object_inline__rowTag_1627,
16476
+ rowLength = JSCompiler_object_inline__rowLength_1628,
16477
+ chunkLength = chunk$jscomp$0.length;
16458
16478
  i < chunkLength;
16459
16479
 
16460
16480
  ) {
16461
16481
  var lastIdx = -1;
16462
16482
  switch (rowState) {
16463
16483
  case 0:
16464
- lastIdx = chunk.charCodeAt(i++);
16484
+ lastIdx = chunk$jscomp$0.charCodeAt(i++);
16465
16485
  58 === lastIdx
16466
16486
  ? (rowState = 1)
16467
16487
  : (rowID =
@@ -16469,7 +16489,7 @@
16469
16489
  (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16470
16490
  continue;
16471
16491
  case 1:
16472
- rowState = chunk.charCodeAt(i);
16492
+ rowState = chunk$jscomp$0.charCodeAt(i);
16473
16493
  84 === rowState ||
16474
16494
  65 === rowState ||
16475
16495
  79 === rowState ||
@@ -16492,7 +16512,7 @@
16492
16512
  : ((rowTag = 0), (rowState = 3));
16493
16513
  continue;
16494
16514
  case 2:
16495
- lastIdx = chunk.charCodeAt(i++);
16515
+ lastIdx = chunk$jscomp$0.charCodeAt(i++);
16496
16516
  44 === lastIdx
16497
16517
  ? (rowState = 4)
16498
16518
  : (rowLength =
@@ -16500,7 +16520,7 @@
16500
16520
  (96 < lastIdx ? lastIdx - 87 : lastIdx - 48));
16501
16521
  continue;
16502
16522
  case 3:
16503
- lastIdx = chunk.indexOf("\n", i);
16523
+ lastIdx = chunk$jscomp$0.indexOf("\n", i);
16504
16524
  break;
16505
16525
  case 4:
16506
16526
  if (84 !== rowTag)
@@ -16508,34 +16528,163 @@
16508
16528
  "Binary RSC chunks cannot be encoded as strings. This is a bug in the wiring of the React streams."
16509
16529
  );
16510
16530
  if (
16511
- rowLength < chunk.length ||
16512
- chunk.length > 3 * rowLength
16531
+ rowLength < chunk$jscomp$0.length ||
16532
+ chunk$jscomp$0.length > 3 * rowLength
16513
16533
  )
16514
16534
  throw Error(
16515
16535
  "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."
16516
16536
  );
16517
- lastIdx = chunk.length;
16537
+ lastIdx = chunk$jscomp$0.length;
16518
16538
  }
16519
16539
  if (-1 < lastIdx) {
16520
- if (0 < JSCompiler_object_inline__buffer_1586.length)
16540
+ if (0 < JSCompiler_object_inline__buffer_1629.length)
16521
16541
  throw Error(
16522
16542
  "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."
16523
16543
  );
16524
- i = chunk.slice(i, lastIdx);
16525
- processFullStringRow(response, rowID, rowTag, i);
16544
+ rowLength = chunk$jscomp$0.slice(i, lastIdx);
16545
+ i = response;
16546
+ switch (rowTag) {
16547
+ case 73:
16548
+ throw (
16549
+ (i._chunks.get(rowID),
16550
+ JSON.parse(rowLength, i._fromJSON),
16551
+ Error(
16552
+ "renderToHTML should not have emitted Client References. This is a bug in React."
16553
+ ))
16554
+ );
16555
+ case 72:
16556
+ rowID = rowLength.slice(1);
16557
+ JSON.parse(rowID, i._fromJSON);
16558
+ break;
16559
+ case 69:
16560
+ rowTag = i._chunks;
16561
+ var chunk = rowTag.get(rowID),
16562
+ errorInfo = JSON.parse(rowLength);
16563
+ rowLength = resolveErrorDev(i, errorInfo);
16564
+ rowLength.digest = errorInfo.digest;
16565
+ chunk
16566
+ ? triggerErrorOnChunk(i, chunk, rowLength)
16567
+ : rowTag.set(rowID, createErrorChunk(i, rowLength));
16568
+ break;
16569
+ case 84:
16570
+ rowTag = i._chunks;
16571
+ (chunk = rowTag.get(rowID)) &&
16572
+ "pending" !== chunk.status
16573
+ ? chunk.reason.enqueueValue(rowLength)
16574
+ : (chunk && releasePendingChunk(i, chunk),
16575
+ rowTag.set(
16576
+ rowID,
16577
+ new ReactPromise("fulfilled", rowLength, null)
16578
+ ));
16579
+ break;
16580
+ case 78:
16581
+ i._timeOrigin = +rowLength - performance.timeOrigin;
16582
+ break;
16583
+ case 68:
16584
+ rowID = getChunk(i, rowID);
16585
+ "fulfilled" !== rowID.status &&
16586
+ "rejected" !== rowID.status &&
16587
+ "halted" !== rowID.status &&
16588
+ "blocked" !== rowID.status &&
16589
+ "resolved_module" !== rowID.status &&
16590
+ ((rowTag = rowID._debugChunk),
16591
+ (chunk = createResolvedModelChunk(i, rowLength)),
16592
+ (chunk._debugChunk = rowTag),
16593
+ (rowID._debugChunk = chunk),
16594
+ initializeDebugChunk(i, rowID),
16595
+ "blocked" === chunk.status &&
16596
+ void 0 === i._debugChannel &&
16597
+ '"' === rowLength[0] &&
16598
+ "$" === rowLength[1] &&
16599
+ ((rowLength = rowLength
16600
+ .slice(2, rowLength.length - 1)
16601
+ .split(":")),
16602
+ (rowLength = parseInt(rowLength[0], 16)),
16603
+ "pending" === getChunk(i, rowLength).status &&
16604
+ (rowID._debugChunk = null)));
16605
+ break;
16606
+ case 74:
16607
+ resolveIOInfo(i, rowID, rowLength);
16608
+ break;
16609
+ case 87:
16610
+ resolveConsoleEntry(i, rowLength);
16611
+ break;
16612
+ case 82:
16613
+ startReadableStream(i, rowID, void 0);
16614
+ break;
16615
+ case 114:
16616
+ startReadableStream(i, rowID, "bytes");
16617
+ break;
16618
+ case 88:
16619
+ startAsyncIterable(i, rowID, !1);
16620
+ break;
16621
+ case 120:
16622
+ startAsyncIterable(i, rowID, !0);
16623
+ break;
16624
+ case 67:
16625
+ (i = i._chunks.get(rowID)) &&
16626
+ "fulfilled" === i.status &&
16627
+ i.reason.close(
16628
+ "" === rowLength ? '"$undefined"' : rowLength
16629
+ );
16630
+ break;
16631
+ case 80:
16632
+ rowLength = JSON.parse(rowLength);
16633
+ rowLength = buildFakeCallStack(
16634
+ i,
16635
+ rowLength.stack,
16636
+ rowLength.env,
16637
+ !1,
16638
+ Error.bind(null, rowLength.reason || "")
16639
+ );
16640
+ rowTag = i._debugRootTask;
16641
+ rowLength =
16642
+ null != rowTag ? rowTag.run(rowLength) : rowLength();
16643
+ rowLength.$$typeof = REACT_POSTPONE_TYPE;
16644
+ rowTag = i._chunks;
16645
+ (chunk = rowTag.get(rowID))
16646
+ ? triggerErrorOnChunk(i, chunk, rowLength)
16647
+ : rowTag.set(rowID, createErrorChunk(i, rowLength));
16648
+ break;
16649
+ default:
16650
+ if ("" === rowLength) {
16651
+ if (
16652
+ ((rowLength = i._chunks),
16653
+ (rowTag = rowLength.get(rowID)) ||
16654
+ rowLength.set(
16655
+ rowID,
16656
+ (rowTag = createPendingChunk(i))
16657
+ ),
16658
+ "pending" === rowTag.status ||
16659
+ "blocked" === rowTag.status)
16660
+ )
16661
+ releasePendingChunk(i, rowTag),
16662
+ (i = rowTag),
16663
+ (i.status = "halted"),
16664
+ (i.value = null),
16665
+ (i.reason = null);
16666
+ } else
16667
+ (rowTag = i._chunks),
16668
+ (chunk = rowTag.get(rowID))
16669
+ ? resolveModelChunk(i, chunk, rowLength)
16670
+ : rowTag.set(
16671
+ rowID,
16672
+ createResolvedModelChunk(i, rowLength)
16673
+ );
16674
+ }
16526
16675
  i = lastIdx;
16527
16676
  3 === rowState && i++;
16528
16677
  rowLength = rowID = rowTag = rowState = 0;
16529
- JSCompiler_object_inline__buffer_1586.length = 0;
16530
- } else if (chunk.length !== i)
16678
+ JSCompiler_object_inline__buffer_1629.length = 0;
16679
+ } else if (chunk$jscomp$0.length !== i)
16531
16680
  throw Error(
16532
16681
  "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."
16533
16682
  );
16534
16683
  }
16535
- JSCompiler_object_inline__rowState_1582 = rowState;
16536
- JSCompiler_object_inline__rowID_1583 = rowID;
16537
- JSCompiler_object_inline__rowTag_1584 = rowTag;
16538
- JSCompiler_object_inline__rowLength_1585 = rowLength;
16684
+ JSCompiler_object_inline__rowState_1625 = rowState;
16685
+ JSCompiler_object_inline__rowID_1626 = rowID;
16686
+ JSCompiler_object_inline__rowTag_1627 = rowTag;
16687
+ JSCompiler_object_inline__rowLength_1628 = rowLength;
16539
16688
  }
16540
16689
  } else
16541
16690
  reportGlobalError(flightResponse, Error("Connection closed."));
@@ -16559,5 +16708,5 @@
16559
16708
  });
16560
16709
  });
16561
16710
  };
16562
- exports.version = "19.2.0-experimental-dffacc7b-20250717";
16711
+ exports.version = "19.2.0-experimental-7513996f-20250722";
16563
16712
  })();
@@ -2606,7 +2606,7 @@ function initializeModelChunk(chunk) {
2606
2606
  (chunk.reason = null),
2607
2607
  wakeChunk(resolveListeners, value));
2608
2608
  if (null !== initializingHandler) {
2609
- if (initializingHandler.errored) throw initializingHandler.value;
2609
+ if (initializingHandler.errored) throw initializingHandler.reason;
2610
2610
  if (0 < initializingHandler.deps) {
2611
2611
  initializingHandler.value = value;
2612
2612
  initializingHandler.chunk = chunk;
@@ -2723,6 +2723,7 @@ function fulfillReference(reference, value) {
2723
2723
  ((parentObject = key.value),
2724
2724
  (key.status = "fulfilled"),
2725
2725
  (key.value = handler.value),
2726
+ (key.reason = handler.reason),
2726
2727
  null !== parentObject && wakeChunk(parentObject, handler.value)));
2727
2728
  }
2728
2729
  function rejectReference(reference, error) {
@@ -2730,7 +2731,8 @@ function rejectReference(reference, error) {
2730
2731
  reference = reference.response;
2731
2732
  handler.errored ||
2732
2733
  ((handler.errored = !0),
2733
- (handler.value = error),
2734
+ (handler.value = null),
2735
+ (handler.reason = error),
2734
2736
  (handler = handler.chunk),
2735
2737
  null !== handler &&
2736
2738
  "blocked" === handler.status &&
@@ -2752,6 +2754,7 @@ function waitForReference(
2752
2754
  parent: null,
2753
2755
  chunk: null,
2754
2756
  value: null,
2757
+ reason: null,
2755
2758
  deps: 1,
2756
2759
  errored: !1
2757
2760
  };
@@ -2828,6 +2831,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2828
2831
  parent: null,
2829
2832
  chunk: null,
2830
2833
  value: null,
2834
+ reason: null,
2831
2835
  deps: 1,
2832
2836
  errored: !1
2833
2837
  }),
@@ -2837,11 +2841,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2837
2841
  return (
2838
2842
  initializingHandler
2839
2843
  ? ((initializingHandler.errored = !0),
2840
- (initializingHandler.value = value.reason))
2844
+ (initializingHandler.value = null),
2845
+ (initializingHandler.reason = value.reason))
2841
2846
  : (initializingHandler = {
2842
2847
  parent: null,
2843
2848
  chunk: null,
2844
- value: value.reason,
2849
+ value: null,
2850
+ reason: value.reason,
2845
2851
  deps: 0,
2846
2852
  errored: !0
2847
2853
  }),
@@ -2863,6 +2869,7 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2863
2869
  parent: null,
2864
2870
  chunk: null,
2865
2871
  value: null,
2872
+ reason: null,
2866
2873
  deps: 1,
2867
2874
  errored: !1
2868
2875
  }),
@@ -2872,11 +2879,13 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2872
2879
  return (
2873
2880
  initializingHandler
2874
2881
  ? ((initializingHandler.errored = !0),
2875
- (initializingHandler.value = id.reason))
2882
+ (initializingHandler.value = null),
2883
+ (initializingHandler.reason = id.reason))
2876
2884
  : (initializingHandler = {
2877
2885
  parent: null,
2878
2886
  chunk: null,
2879
- value: id.reason,
2887
+ value: null,
2888
+ reason: id.reason,
2880
2889
  deps: 0,
2881
2890
  errored: !0
2882
2891
  }),
@@ -2915,6 +2924,7 @@ function parseModelString(response, parentObject, key, value) {
2915
2924
  parent: initializingHandler,
2916
2925
  chunk: null,
2917
2926
  value: null,
2927
+ reason: null,
2918
2928
  deps: 0,
2919
2929
  errored: !1
2920
2930
  }),
@@ -3248,7 +3258,7 @@ function createFromJSONCallback(response) {
3248
3258
  (initializingHandler = value.parent),
3249
3259
  value.errored)
3250
3260
  )
3251
- (key = createErrorChunk(response, value.value)),
3261
+ (key = createErrorChunk(response, value.reason)),
3252
3262
  (key = createLazyChunkWrapper(key));
3253
3263
  else if (0 < value.deps) {
3254
3264
  var blockedChunk = new ReactPromise("blocked", null, null);
@@ -9620,21 +9630,21 @@ function noServerCallOrFormAction() {
9620
9630
  }
9621
9631
  exports.experimental_renderToHTML = function (children, options) {
9622
9632
  return new Promise(function (resolve, reject) {
9623
- var JSCompiler_object_inline__rowState_1667 = 0,
9624
- JSCompiler_object_inline__rowID_1668 = 0,
9625
- JSCompiler_object_inline__rowTag_1669 = 0,
9626
- JSCompiler_object_inline__rowLength_1670 = 0,
9627
- JSCompiler_object_inline__buffer_1671 = [],
9633
+ var JSCompiler_object_inline__rowState_1676 = 0,
9634
+ JSCompiler_object_inline__rowID_1677 = 0,
9635
+ JSCompiler_object_inline__rowTag_1678 = 0,
9636
+ JSCompiler_object_inline__rowLength_1679 = 0,
9637
+ JSCompiler_object_inline__buffer_1680 = [],
9628
9638
  flightDestination = {
9629
9639
  push: function (chunk) {
9630
9640
  if (null !== chunk) {
9631
9641
  for (
9632
9642
  var response = flightResponse,
9633
9643
  i = 0,
9634
- rowState = JSCompiler_object_inline__rowState_1667,
9635
- rowID = JSCompiler_object_inline__rowID_1668,
9636
- rowTag = JSCompiler_object_inline__rowTag_1669,
9637
- rowLength = JSCompiler_object_inline__rowLength_1670,
9644
+ rowState = JSCompiler_object_inline__rowState_1676,
9645
+ rowID = JSCompiler_object_inline__rowID_1677,
9646
+ rowTag = JSCompiler_object_inline__rowTag_1678,
9647
+ rowLength = JSCompiler_object_inline__rowLength_1679,
9638
9648
  chunkLength = chunk.length;
9639
9649
  i < chunkLength;
9640
9650
 
@@ -9695,7 +9705,7 @@ exports.experimental_renderToHTML = function (children, options) {
9695
9705
  lastIdx = chunk.length;
9696
9706
  }
9697
9707
  if (-1 < lastIdx) {
9698
- if (0 < JSCompiler_object_inline__buffer_1671.length)
9708
+ if (0 < JSCompiler_object_inline__buffer_1680.length)
9699
9709
  throw Error(
9700
9710
  "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."
9701
9711
  );
@@ -9714,11 +9724,12 @@ exports.experimental_renderToHTML = function (children, options) {
9714
9724
  JSON.parse(rowID, response._fromJSON);
9715
9725
  break;
9716
9726
  case 69:
9717
- rowTag = JSON.parse(i);
9718
- i = resolveErrorProd();
9719
- i.digest = rowTag.digest;
9720
9727
  rowTag = response._chunks;
9721
- (rowLength = rowTag.get(rowID))
9728
+ rowLength = rowTag.get(rowID);
9729
+ var errorInfo = JSON.parse(i);
9730
+ i = resolveErrorProd();
9731
+ i.digest = errorInfo.digest;
9732
+ rowLength
9722
9733
  ? triggerErrorOnChunk(response, rowLength, i)
9723
9734
  : rowTag.set(rowID, createErrorChunk(response, i));
9724
9735
  break;
@@ -9779,16 +9790,16 @@ exports.experimental_renderToHTML = function (children, options) {
9779
9790
  i = lastIdx;
9780
9791
  3 === rowState && i++;
9781
9792
  rowLength = rowID = rowTag = rowState = 0;
9782
- JSCompiler_object_inline__buffer_1671.length = 0;
9793
+ JSCompiler_object_inline__buffer_1680.length = 0;
9783
9794
  } else if (chunk.length !== i)
9784
9795
  throw Error(
9785
9796
  "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."
9786
9797
  );
9787
9798
  }
9788
- JSCompiler_object_inline__rowState_1667 = rowState;
9789
- JSCompiler_object_inline__rowID_1668 = rowID;
9790
- JSCompiler_object_inline__rowTag_1669 = rowTag;
9791
- JSCompiler_object_inline__rowLength_1670 = rowLength;
9799
+ JSCompiler_object_inline__rowState_1676 = rowState;
9800
+ JSCompiler_object_inline__rowID_1677 = rowID;
9801
+ JSCompiler_object_inline__rowTag_1678 = rowTag;
9802
+ JSCompiler_object_inline__rowLength_1679 = rowLength;
9792
9803
  } else reportGlobalError(flightResponse, Error("Connection closed."));
9793
9804
  return !0;
9794
9805
  },
@@ -9908,4 +9919,4 @@ exports.experimental_renderToHTML = function (children, options) {
9908
9919
  });
9909
9920
  });
9910
9921
  };
9911
- exports.version = "19.2.0-experimental-dffacc7b-20250717";
9922
+ exports.version = "19.2.0-experimental-7513996f-20250722";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-dffacc7b-20250717",
3
+ "version": "0.0.0-experimental-7513996f-20250722",
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-dffacc7b-20250717"
20
+ "react": "0.0.0-experimental-7513996f-20250722"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",