react-markup 0.0.0-experimental-b6c0aa88-20250609 → 0.0.0-experimental-b7e2de63-20250611

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.
@@ -3842,7 +3842,7 @@
3842
3842
  case REACT_PORTAL_TYPE:
3843
3843
  return "Portal";
3844
3844
  case REACT_CONTEXT_TYPE:
3845
- return (type.displayName || "Context") + ".Provider";
3845
+ return type.displayName || "Context";
3846
3846
  case REACT_CONSUMER_TYPE:
3847
3847
  return (type._context.displayName || "Context") + ".Consumer";
3848
3848
  case REACT_FORWARD_REF_TYPE:
@@ -6245,7 +6245,6 @@
6245
6245
  case REACT_MEMO_TYPE:
6246
6246
  renderElement(request, task, keyPath, type.type, props, ref);
6247
6247
  return;
6248
- case REACT_PROVIDER_TYPE:
6249
6248
  case REACT_CONTEXT_TYPE:
6250
6249
  var value$jscomp$0 = props.value,
6251
6250
  children$jscomp$2 = props.children;
@@ -8689,7 +8688,6 @@
8689
8688
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
8690
8689
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
8691
8690
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
8692
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
8693
8691
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
8694
8692
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
8695
8693
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -9710,5 +9708,5 @@
9710
9708
  });
9711
9709
  });
9712
9710
  };
9713
- exports.version = "19.2.0-experimental-b6c0aa88-20250609";
9711
+ exports.version = "19.2.0-experimental-b7e2de63-20250611";
9714
9712
  })();
@@ -39,7 +39,6 @@ var React = require("react"),
39
39
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
40
40
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
41
41
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
42
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
43
42
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
44
43
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
45
44
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -2843,7 +2842,7 @@ function getComponentNameFromType(type) {
2843
2842
  case REACT_PORTAL_TYPE:
2844
2843
  return "Portal";
2845
2844
  case REACT_CONTEXT_TYPE:
2846
- return (type.displayName || "Context") + ".Provider";
2845
+ return type.displayName || "Context";
2847
2846
  case REACT_CONSUMER_TYPE:
2848
2847
  return (type._context.displayName || "Context") + ".Consumer";
2849
2848
  case REACT_FORWARD_REF_TYPE:
@@ -4681,7 +4680,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
4681
4680
  case REACT_MEMO_TYPE:
4682
4681
  renderElement(request, task, keyPath, type.type, props, ref);
4683
4682
  return;
4684
- case REACT_PROVIDER_TYPE:
4685
4683
  case REACT_CONTEXT_TYPE:
4686
4684
  var children$jscomp$2 = props.children,
4687
4685
  prevKeyPath$jscomp$6 = task.keyPath,
@@ -6723,4 +6721,4 @@ exports.experimental_renderToHTML = function (children, options) {
6723
6721
  });
6724
6722
  });
6725
6723
  };
6726
- exports.version = "19.2.0-experimental-b6c0aa88-20250609";
6724
+ exports.version = "19.2.0-experimental-b7e2de63-20250611";
@@ -264,7 +264,8 @@
264
264
  function trackUsedThenable$1(thenableState, thenable, index) {
265
265
  index = thenableState[index];
266
266
  void 0 === index
267
- ? thenableState.push(thenable)
267
+ ? (thenableState.push(thenable),
268
+ (thenableState._stacks || (thenableState._stacks = [])).push(Error()))
268
269
  : index !== thenable && (thenable.then(noop, noop), (thenable = index));
269
270
  switch (thenable.status) {
270
271
  case "fulfilled":
@@ -994,16 +995,26 @@
994
995
  switch (thenable.status) {
995
996
  case "fulfilled":
996
997
  return (
997
- (task = thenable._debugInfo) &&
998
- forwardDebugInfo(request, newTask, task),
998
+ forwardDebugInfoFromThenable(
999
+ request,
1000
+ newTask,
1001
+ thenable,
1002
+ null,
1003
+ null
1004
+ ),
999
1005
  (newTask.model = thenable.value),
1000
1006
  pingTask$1(request, newTask),
1001
1007
  newTask.id
1002
1008
  );
1003
1009
  case "rejected":
1004
1010
  return (
1005
- (task = thenable._debugInfo) &&
1006
- forwardDebugInfo(request, newTask, task),
1011
+ forwardDebugInfoFromThenable(
1012
+ request,
1013
+ newTask,
1014
+ thenable,
1015
+ null,
1016
+ null
1017
+ ),
1007
1018
  erroredTask$1(request, newTask, thenable.reason),
1008
1019
  newTask.id
1009
1020
  );
@@ -1034,19 +1045,17 @@
1034
1045
  }
1035
1046
  thenable.then(
1036
1047
  function (value) {
1037
- var _debugInfo2 = thenable._debugInfo;
1038
- _debugInfo2 && forwardDebugInfo(request, newTask, _debugInfo2);
1048
+ forwardDebugInfoFromCurrentContext(request, newTask, thenable);
1039
1049
  newTask.model = value;
1040
1050
  pingTask$1(request, newTask);
1041
1051
  },
1042
1052
  function (reason) {
1043
- var _debugInfo3 = thenable._debugInfo;
1044
- _debugInfo3 && forwardDebugInfo(request, newTask, _debugInfo3);
1045
1053
  newTask.status === PENDING$3 &&
1046
- (erroredTask$1(request, newTask, reason), enqueueFlush(request));
1054
+ ((newTask.timed = !0),
1055
+ erroredTask$1(request, newTask, reason),
1056
+ enqueueFlush(request));
1047
1057
  }
1048
1058
  );
1049
- newTask.timed = !0;
1050
1059
  return newTask.id;
1051
1060
  }
1052
1061
  function serializeReadableStream(request, task, stream) {
@@ -1199,33 +1208,38 @@
1199
1208
  if ("rejected" === thenable.status) throw thenable.reason;
1200
1209
  throw thenable;
1201
1210
  }
1202
- function createLazyWrapperAroundWakeable(wakeable) {
1211
+ function createLazyWrapperAroundWakeable(request, task, wakeable) {
1203
1212
  switch (wakeable.status) {
1204
1213
  case "fulfilled":
1214
+ return (
1215
+ forwardDebugInfoFromThenable(request, task, wakeable, null, null),
1216
+ wakeable.value
1217
+ );
1205
1218
  case "rejected":
1219
+ forwardDebugInfoFromThenable(request, task, wakeable, null, null);
1206
1220
  break;
1207
1221
  default:
1208
1222
  "string" !== typeof wakeable.status &&
1209
1223
  ((wakeable.status = "pending"),
1210
1224
  wakeable.then(
1211
1225
  function (fulfilledValue) {
1226
+ forwardDebugInfoFromCurrentContext(request, task, wakeable);
1212
1227
  "pending" === wakeable.status &&
1213
1228
  ((wakeable.status = "fulfilled"),
1214
1229
  (wakeable.value = fulfilledValue));
1215
1230
  },
1216
1231
  function (error) {
1232
+ forwardDebugInfoFromCurrentContext(request, task, wakeable);
1217
1233
  "pending" === wakeable.status &&
1218
1234
  ((wakeable.status = "rejected"), (wakeable.reason = error));
1219
1235
  }
1220
1236
  ));
1221
1237
  }
1222
- var lazyType = {
1238
+ return {
1223
1239
  $$typeof: REACT_LAZY_TYPE,
1224
1240
  _payload: wakeable,
1225
1241
  _init: readThenable
1226
1242
  };
1227
- lazyType._debugInfo = wakeable._debugInfo || [];
1228
- return lazyType;
1229
1243
  }
1230
1244
  function callWithDebugContextInDEV(request, task, callback, arg) {
1231
1245
  var componentDebugInfo = {
@@ -1267,9 +1281,7 @@
1267
1281
  resolvedValue.$$typeof === REACT_ELEMENT_TYPE &&
1268
1282
  (resolvedValue._store.validated = 1);
1269
1283
  }, voidHandler),
1270
- "fulfilled" === result.status
1271
- ? result.value
1272
- : createLazyWrapperAroundWakeable(result)
1284
+ createLazyWrapperAroundWakeable(request, task, result)
1273
1285
  );
1274
1286
  result.$$typeof === REACT_ELEMENT_TYPE && (result._store.validated = 1);
1275
1287
  var iteratorFn = getIteratorFn(result);
@@ -1344,12 +1356,12 @@
1344
1356
  componentDebugInfo.debugStack = task.debugStack;
1345
1357
  componentDebugInfo.debugTask = task.debugTask;
1346
1358
  outlineComponentInfo(request, componentDebugInfo);
1359
+ var timestamp = performance.now();
1360
+ timestamp > task.time
1361
+ ? (emitTimingChunk(request, task.id, timestamp),
1362
+ (task.time = timestamp))
1363
+ : task.timed || emitTimingChunk(request, task.id, task.time);
1347
1364
  task.timed = !0;
1348
- emitTimingChunk(
1349
- request,
1350
- componentDebugID,
1351
- (task.time = performance.now())
1352
- );
1353
1365
  emitDebugChunk(request, componentDebugID, componentDebugInfo);
1354
1366
  task.environmentName = componentEnv;
1355
1367
  2 === validated &&
@@ -1383,6 +1395,21 @@
1383
1395
  props.then(voidHandler, voidHandler),
1384
1396
  null)
1385
1397
  );
1398
+ validated = thenableState$1;
1399
+ if (null !== validated)
1400
+ for (
1401
+ prevThenableState = validated._stacks || (validated._stacks = []),
1402
+ componentDebugID = 0;
1403
+ componentDebugID < validated.length;
1404
+ componentDebugID++
1405
+ )
1406
+ forwardDebugInfoFromThenable(
1407
+ request,
1408
+ task,
1409
+ validated[componentDebugID],
1410
+ componentDebugInfo,
1411
+ prevThenableState[componentDebugID]
1412
+ );
1386
1413
  props = processServerComponentReturnValue(
1387
1414
  request,
1388
1415
  task,
@@ -1390,13 +1417,13 @@
1390
1417
  props
1391
1418
  );
1392
1419
  Component = task.keyPath;
1393
- validated = task.implicitSlot;
1420
+ componentDebugInfo = task.implicitSlot;
1394
1421
  null !== key
1395
1422
  ? (task.keyPath = null === Component ? key : Component + "," + key)
1396
1423
  : null === Component && (task.implicitSlot = !0);
1397
1424
  request = renderModelDestructive(request, task, emptyRoot, "", props);
1398
1425
  task.keyPath = Component;
1399
- task.implicitSlot = validated;
1426
+ task.implicitSlot = componentDebugInfo;
1400
1427
  return request;
1401
1428
  }
1402
1429
  function warnForMissingKey$1(request, key, componentDebugInfo, debugTask) {
@@ -2669,16 +2696,10 @@
2669
2696
  request.completedRegularChunks.push(":N" + timeOrigin + "\n");
2670
2697
  }
2671
2698
  function forwardDebugInfo(request$jscomp$0, task, debugInfo) {
2672
- var id = task.id;
2673
- task = task.time;
2674
- for (var i = 0; i < debugInfo.length; i++) {
2699
+ for (var id = task.id, i = 0; i < debugInfo.length; i++) {
2675
2700
  var info = debugInfo[i];
2676
2701
  if ("number" === typeof info.time)
2677
- emitTimingChunk(
2678
- request$jscomp$0,
2679
- id,
2680
- info.time < task ? task : info.time
2681
- );
2702
+ markOperationEndTime(request$jscomp$0, task, info.time);
2682
2703
  else if ("string" === typeof info.name)
2683
2704
  outlineComponentInfo(request$jscomp$0, info),
2684
2705
  request$jscomp$0.pendingChunks++,
@@ -2735,12 +2756,26 @@
2735
2756
  emitDebugChunk(request$jscomp$0, id, info);
2736
2757
  }
2737
2758
  }
2759
+ function forwardDebugInfoFromThenable(request, task, thenable) {
2760
+ (thenable = thenable._debugInfo) &&
2761
+ forwardDebugInfo(request, task, thenable);
2762
+ }
2763
+ function forwardDebugInfoFromCurrentContext(request, task, thenable) {
2764
+ (thenable = thenable._debugInfo) &&
2765
+ forwardDebugInfo(request, task, thenable);
2766
+ }
2738
2767
  function emitTimingChunk(request, id, timestamp) {
2739
2768
  request.pendingChunks++;
2740
2769
  timestamp -= request.timeOrigin;
2741
2770
  id = id.toString(16) + ':D{"time":' + timestamp + "}\n";
2742
2771
  request.completedRegularChunks.push(id);
2743
2772
  }
2773
+ function markOperationEndTime(request, task, timestamp) {
2774
+ timestamp > task.time
2775
+ ? (emitTimingChunk(request, task.id, timestamp),
2776
+ (task.time = timestamp))
2777
+ : emitTimingChunk(request, task.id, task.time);
2778
+ }
2744
2779
  function emitChunk(request, task, value) {
2745
2780
  var id = task.id;
2746
2781
  value instanceof ArrayBuffer
@@ -2773,8 +2808,7 @@
2773
2808
  emitModelChunk(request, task.id, value));
2774
2809
  }
2775
2810
  function erroredTask$1(request, task, error) {
2776
- task.timed &&
2777
- emitTimingChunk(request, task.id, (task.time = performance.now()));
2811
+ task.timed && markOperationEndTime(request, task, performance.now());
2778
2812
  task.status = ERRORED$2;
2779
2813
  if (
2780
2814
  "object" === typeof error &&
@@ -2813,8 +2847,7 @@
2813
2847
  currentEnv !== task.environmentName &&
2814
2848
  (request.pendingChunks++,
2815
2849
  emitDebugChunk(request, task.id, { env: currentEnv }));
2816
- task.timed &&
2817
- emitTimingChunk(request, task.id, (task.time = performance.now()));
2850
+ task.timed && markOperationEndTime(request, task, performance.now());
2818
2851
  if ("object" === typeof resolvedModel && null !== resolvedModel)
2819
2852
  request.writtenObjects.set(
2820
2853
  resolvedModel,
@@ -2897,8 +2930,7 @@
2897
2930
  function abortTask$1(task, request, errorId) {
2898
2931
  task.status !== RENDERING$1 &&
2899
2932
  ((task.status = ABORTED$1),
2900
- task.timed &&
2901
- emitTimingChunk(request, task.id, (task.time = performance.now())),
2933
+ task.timed && markOperationEndTime(request, task, performance.now()),
2902
2934
  (errorId = serializeByValueID$1(errorId)),
2903
2935
  (task = encodeReferenceChunk(request, task.id, errorId)),
2904
2936
  request.completedErrorChunks.push(task));
@@ -3790,7 +3822,7 @@
3790
3822
  case REACT_PORTAL_TYPE:
3791
3823
  return "Portal";
3792
3824
  case REACT_CONTEXT_TYPE:
3793
- return (type.displayName || "Context") + ".Provider";
3825
+ return type.displayName || "Context";
3794
3826
  case REACT_CONSUMER_TYPE:
3795
3827
  return (type._context.displayName || "Context") + ".Consumer";
3796
3828
  case REACT_FORWARD_REF_TYPE:
@@ -4971,9 +5003,9 @@
4971
5003
  );
4972
5004
  }
4973
5005
  function flushComponentPerformance(
4974
- response,
5006
+ response$jscomp$0,
4975
5007
  root,
4976
- trackIdx$jscomp$0,
5008
+ trackIdx$jscomp$1,
4977
5009
  trackTime,
4978
5010
  parentEndTime
4979
5011
  ) {
@@ -4986,10 +5018,10 @@
4986
5018
  null !== root.component
4987
5019
  ) {
4988
5020
  var componentInfo = root.component,
4989
- trackIdx = trackIdx$jscomp$0;
5021
+ trackIdx = trackIdx$jscomp$1;
4990
5022
  if (supportsUserTiming && 0 <= previousEndTime && 10 > trackIdx) {
4991
- response =
4992
- componentInfo.env === response._rootEnvironmentName
5023
+ response$jscomp$0 =
5024
+ componentInfo.env === response$jscomp$0._rootEnvironmentName
4993
5025
  ? "primary-light"
4994
5026
  : "secondary-light";
4995
5027
  var entryName = componentInfo.name + " [deduped]";
@@ -5002,7 +5034,7 @@
5002
5034
  previousEndTime,
5003
5035
  trackNames[trackIdx],
5004
5036
  "Server Components \u269b",
5005
- response
5037
+ response$jscomp$0
5006
5038
  )
5007
5039
  )
5008
5040
  : console.timeStamp(
@@ -5011,222 +5043,235 @@
5011
5043
  previousEndTime,
5012
5044
  trackNames[trackIdx],
5013
5045
  "Server Components \u269b",
5014
- response
5046
+ response$jscomp$0
5015
5047
  );
5016
5048
  }
5017
5049
  }
5018
- root.track = trackIdx$jscomp$0;
5050
+ root.track = trackIdx$jscomp$1;
5019
5051
  return root;
5020
5052
  }
5021
5053
  entryName = root._children;
5022
5054
  "resolved_model" === root.status && initializeModelChunk(root);
5023
5055
  if ((previousEndTime = root._debugInfo)) {
5024
- for (trackIdx = 1; trackIdx < previousEndTime.length; trackIdx++)
5025
- if (
5026
- "string" === typeof previousEndTime[trackIdx].name &&
5027
- ((componentInfo = previousEndTime[trackIdx - 1]),
5028
- "number" === typeof componentInfo.time)
5029
- ) {
5030
- trackIdx = componentInfo.time;
5031
- trackIdx < trackTime && trackIdx$jscomp$0++;
5056
+ for (
5057
+ componentInfo = trackIdx = 0;
5058
+ componentInfo < previousEndTime.length;
5059
+ componentInfo++
5060
+ ) {
5061
+ var info = previousEndTime[componentInfo];
5062
+ "number" === typeof info.time && (trackIdx = info.time);
5063
+ if ("string" === typeof info.name) {
5064
+ trackIdx < trackTime && trackIdx$jscomp$1++;
5032
5065
  trackTime = trackIdx;
5033
5066
  break;
5034
5067
  }
5068
+ }
5035
5069
  for (trackIdx = previousEndTime.length - 1; 0 <= trackIdx; trackIdx--)
5036
- (componentInfo = previousEndTime[trackIdx]),
5070
+ if (
5071
+ ((componentInfo = previousEndTime[trackIdx]),
5037
5072
  "number" === typeof componentInfo.time &&
5038
- componentInfo.time > parentEndTime &&
5039
- (parentEndTime = componentInfo.time);
5073
+ componentInfo.time > parentEndTime)
5074
+ ) {
5075
+ parentEndTime = componentInfo.time;
5076
+ break;
5077
+ }
5040
5078
  }
5041
5079
  trackIdx = {
5042
- track: trackIdx$jscomp$0,
5080
+ track: trackIdx$jscomp$1,
5043
5081
  endTime: -Infinity,
5044
5082
  component: null
5045
5083
  };
5046
5084
  root._children = trackIdx;
5047
5085
  componentInfo = -Infinity;
5048
- var childTrackIdx = trackIdx$jscomp$0,
5049
- childTrackTime = trackTime;
5050
- for (trackTime = 0; trackTime < entryName.length; trackTime++) {
5051
- childTrackTime = flushComponentPerformance(
5052
- response,
5053
- entryName[trackTime],
5054
- childTrackIdx,
5055
- childTrackTime,
5086
+ info = trackIdx$jscomp$1;
5087
+ for (var _i4 = 0; _i4 < entryName.length; _i4++) {
5088
+ var childResult = flushComponentPerformance(
5089
+ response$jscomp$0,
5090
+ entryName[_i4],
5091
+ info,
5092
+ trackTime,
5056
5093
  parentEndTime
5057
5094
  );
5058
- null !== childTrackTime.component &&
5059
- (trackIdx.component = childTrackTime.component);
5060
- childTrackIdx = childTrackTime.track;
5061
- var childEndTime = childTrackTime.endTime;
5062
- childTrackTime = childEndTime;
5063
- childEndTime > componentInfo && (componentInfo = childEndTime);
5064
- }
5065
- if (previousEndTime)
5095
+ null !== childResult.component &&
5096
+ (trackIdx.component = childResult.component);
5097
+ info = childResult.track;
5098
+ childResult = childResult.endTime;
5099
+ childResult > trackTime && (trackTime = childResult);
5100
+ childResult > componentInfo && (componentInfo = childResult);
5101
+ }
5102
+ if (previousEndTime) {
5103
+ var componentEndTime = 0,
5104
+ isLastComponent = !0;
5105
+ info = parentEndTime = -1;
5066
5106
  for (
5067
- entryName = 0,
5068
- childTrackTime = !0,
5069
- parentEndTime = previousEndTime.length - 1;
5070
- 0 <= parentEndTime;
5071
- parentEndTime--
5107
+ entryName = previousEndTime.length - 1;
5108
+ 0 <= entryName;
5109
+ entryName--
5072
5110
  )
5073
5111
  if (
5074
- ((trackTime = previousEndTime[parentEndTime]),
5075
- "number" === typeof trackTime.time &&
5076
- (trackTime.time > componentInfo &&
5077
- (componentInfo = trackTime.time),
5078
- 0 === entryName && (entryName = trackTime.time)),
5079
- "string" === typeof trackTime.name && 0 < parentEndTime)
5112
+ ((trackTime = previousEndTime[entryName]),
5113
+ "number" === typeof trackTime.time)
5080
5114
  ) {
5081
- childTrackIdx = previousEndTime[parentEndTime - 1];
5082
- if ("number" === typeof childTrackIdx.time) {
5083
- childTrackIdx = childTrackIdx.time;
5084
- if (
5085
- childTrackTime &&
5086
- "rejected" === root.status &&
5087
- root.reason !== response._closedReason
5088
- ) {
5089
- entryName = trackIdx$jscomp$0;
5090
- childTrackTime = childTrackIdx;
5091
- childEndTime = componentInfo;
5092
- var error = root.reason;
5093
- if (supportsUserTiming) {
5094
- var env = trackTime.env,
5095
- name = trackTime.name;
5096
- env =
5097
- env === response._rootEnvironmentName || void 0 === env
5098
- ? name
5099
- : name + " [" + env + "]";
5100
- "undefined" !== typeof performance &&
5101
- "function" === typeof performance.measure
5102
- ? performance.measure(env, {
5103
- start: 0 > childTrackTime ? 0 : childTrackTime,
5104
- end: childEndTime,
5105
- detail: {
5106
- devtools: {
5107
- color: "error",
5108
- track: trackNames[entryName],
5109
- trackGroup: "Server Components \u269b",
5110
- tooltipText: env + " Errored",
5111
- properties: [
5112
- [
5113
- "Error",
5114
- "object" === typeof error &&
5115
- null !== error &&
5116
- "string" === typeof error.message
5117
- ? String(error.message)
5118
- : String(error)
5119
- ]
5120
- ]
5121
- }
5122
- }
5123
- })
5115
+ 0 === componentEndTime && (componentEndTime = trackTime.time);
5116
+ trackTime = trackTime.time;
5117
+ if (-1 < info)
5118
+ for (--info; info > entryName; info--)
5119
+ if (
5120
+ ((_i4 = previousEndTime[info]), "string" === typeof _i4.name)
5121
+ ) {
5122
+ componentEndTime > componentInfo &&
5123
+ (componentInfo = componentEndTime);
5124
+ var response = response$jscomp$0;
5125
+ childResult = _i4;
5126
+ var trackIdx$jscomp$0 = trackIdx$jscomp$1,
5127
+ startTime = trackTime,
5128
+ componentEndTime$jscomp$0 = componentEndTime,
5129
+ childrenEndTime = componentInfo;
5130
+ isLastComponent &&
5131
+ "rejected" === root.status &&
5132
+ root.reason !== response._closedReason
5133
+ ? ((isLastComponent = trackIdx$jscomp$0),
5134
+ (componentEndTime = startTime),
5135
+ (componentEndTime$jscomp$0 = childrenEndTime),
5136
+ (childrenEndTime = root.reason),
5137
+ supportsUserTiming &&
5138
+ ((startTime = childResult.env),
5139
+ (childResult = childResult.name),
5140
+ (childResult =
5141
+ startTime === response._rootEnvironmentName ||
5142
+ void 0 === startTime
5143
+ ? childResult
5144
+ : childResult + " [" + startTime + "]"),
5145
+ "undefined" !== typeof performance &&
5146
+ "function" === typeof performance.measure
5147
+ ? performance.measure(childResult, {
5148
+ start:
5149
+ 0 > componentEndTime ? 0 : componentEndTime,
5150
+ end: componentEndTime$jscomp$0,
5151
+ detail: {
5152
+ devtools: {
5153
+ color: "error",
5154
+ track: trackNames[isLastComponent],
5155
+ trackGroup: "Server Components \u269b",
5156
+ tooltipText: childResult + " Errored",
5157
+ properties: [
5158
+ [
5159
+ "Error",
5160
+ "object" === typeof childrenEndTime &&
5161
+ null !== childrenEndTime &&
5162
+ "string" ===
5163
+ typeof childrenEndTime.message
5164
+ ? String(childrenEndTime.message)
5165
+ : String(childrenEndTime)
5166
+ ]
5167
+ ]
5168
+ }
5169
+ }
5170
+ })
5171
+ : console.timeStamp(
5172
+ childResult,
5173
+ 0 > componentEndTime ? 0 : componentEndTime,
5174
+ componentEndTime$jscomp$0,
5175
+ trackNames[isLastComponent],
5176
+ "Server Components \u269b",
5177
+ "error"
5178
+ )))
5179
+ : ((isLastComponent = trackIdx$jscomp$0),
5180
+ (componentEndTime = startTime),
5181
+ supportsUserTiming &&
5182
+ 0 <= childrenEndTime &&
5183
+ 10 > isLastComponent &&
5184
+ ((startTime = childResult.env),
5185
+ (trackIdx$jscomp$0 = childResult.name),
5186
+ (response =
5187
+ startTime === response._rootEnvironmentName),
5188
+ (componentEndTime$jscomp$0 -= componentEndTime),
5189
+ (componentEndTime$jscomp$0 =
5190
+ 0.5 > componentEndTime$jscomp$0
5191
+ ? response
5192
+ ? "primary-light"
5193
+ : "secondary-light"
5194
+ : 50 > componentEndTime$jscomp$0
5195
+ ? response
5196
+ ? "primary"
5197
+ : "secondary"
5198
+ : 500 > componentEndTime$jscomp$0
5199
+ ? response
5200
+ ? "primary-dark"
5201
+ : "secondary-dark"
5202
+ : "error"),
5203
+ (response =
5204
+ response || void 0 === startTime
5205
+ ? trackIdx$jscomp$0
5206
+ : trackIdx$jscomp$0 + " [" + startTime + "]"),
5207
+ (childResult = childResult.debugTask)
5208
+ ? childResult.run(
5209
+ console.timeStamp.bind(
5210
+ console,
5211
+ response,
5212
+ 0 > componentEndTime ? 0 : componentEndTime,
5213
+ childrenEndTime,
5214
+ trackNames[isLastComponent],
5215
+ "Server Components \u269b",
5216
+ componentEndTime$jscomp$0
5217
+ )
5218
+ )
5219
+ : console.timeStamp(
5220
+ response,
5221
+ 0 > componentEndTime ? 0 : componentEndTime,
5222
+ childrenEndTime,
5223
+ trackNames[isLastComponent],
5224
+ "Server Components \u269b",
5225
+ componentEndTime$jscomp$0
5226
+ )));
5227
+ componentEndTime = trackTime;
5228
+ trackIdx.component = _i4;
5229
+ isLastComponent = !1;
5230
+ } else if (
5231
+ _i4.awaited &&
5232
+ (parentEndTime > componentInfo &&
5233
+ (componentInfo = parentEndTime),
5234
+ (childrenEndTime = _i4),
5235
+ (_i4 = trackIdx$jscomp$1),
5236
+ (childResult = trackTime),
5237
+ (response = parentEndTime),
5238
+ supportsUserTiming && 0 < response)
5239
+ ) {
5240
+ startTime = childrenEndTime.env;
5241
+ trackIdx$jscomp$0 = childrenEndTime.awaited.name;
5242
+ var isPrimaryEnv =
5243
+ startTime === response$jscomp$0._rootEnvironmentName;
5244
+ componentEndTime$jscomp$0 = getIOColor(trackIdx$jscomp$0);
5245
+ startTime =
5246
+ "await " +
5247
+ (isPrimaryEnv || void 0 === startTime
5248
+ ? trackIdx$jscomp$0
5249
+ : trackIdx$jscomp$0 + " [" + startTime + "]");
5250
+ (childrenEndTime = childrenEndTime.debugTask)
5251
+ ? childrenEndTime.run(
5252
+ console.timeStamp.bind(
5253
+ console,
5254
+ startTime,
5255
+ 0 > childResult ? 0 : childResult,
5256
+ response,
5257
+ trackNames[_i4],
5258
+ "Server Components \u269b",
5259
+ componentEndTime$jscomp$0
5260
+ )
5261
+ )
5124
5262
  : console.timeStamp(
5125
- env,
5126
- 0 > childTrackTime ? 0 : childTrackTime,
5127
- childEndTime,
5128
- trackNames[entryName],
5263
+ startTime,
5264
+ 0 > childResult ? 0 : childResult,
5265
+ response,
5266
+ trackNames[_i4],
5129
5267
  "Server Components \u269b",
5130
- "error"
5268
+ componentEndTime$jscomp$0
5131
5269
  );
5132
5270
  }
5133
- } else if (
5134
- ((childTrackTime = trackIdx$jscomp$0),
5135
- (childEndTime = childTrackIdx),
5136
- (error = componentInfo),
5137
- supportsUserTiming && 0 <= error && 10 > childTrackTime)
5138
- ) {
5139
- env = trackTime.env;
5140
- name = trackTime.name;
5141
- var isPrimaryEnv = env === response._rootEnvironmentName;
5142
- entryName -= childEndTime;
5143
- entryName =
5144
- 0.5 > entryName
5145
- ? isPrimaryEnv
5146
- ? "primary-light"
5147
- : "secondary-light"
5148
- : 50 > entryName
5149
- ? isPrimaryEnv
5150
- ? "primary"
5151
- : "secondary"
5152
- : 500 > entryName
5153
- ? isPrimaryEnv
5154
- ? "primary-dark"
5155
- : "secondary-dark"
5156
- : "error";
5157
- env =
5158
- isPrimaryEnv || void 0 === env
5159
- ? name
5160
- : name + " [" + env + "]";
5161
- (name = trackTime.debugTask)
5162
- ? name.run(
5163
- console.timeStamp.bind(
5164
- console,
5165
- env,
5166
- 0 > childEndTime ? 0 : childEndTime,
5167
- error,
5168
- trackNames[childTrackTime],
5169
- "Server Components \u269b",
5170
- entryName
5171
- )
5172
- )
5173
- : console.timeStamp(
5174
- env,
5175
- 0 > childEndTime ? 0 : childEndTime,
5176
- error,
5177
- trackNames[childTrackTime],
5178
- "Server Components \u269b",
5179
- entryName
5180
- );
5181
- }
5182
- trackIdx.component = trackTime;
5183
- entryName = childTrackIdx;
5184
- }
5185
- childTrackTime = !1;
5186
- } else if (
5187
- trackTime.awaited &&
5188
- 0 < parentEndTime &&
5189
- parentEndTime < previousEndTime.length - 2 &&
5190
- ((childEndTime = previousEndTime[parentEndTime - 1]),
5191
- (error = previousEndTime[parentEndTime + 1]),
5192
- "number" === typeof childEndTime.time &&
5193
- "number" === typeof error.time &&
5194
- ((childTrackIdx = trackTime),
5195
- (trackTime = trackIdx$jscomp$0),
5196
- (childEndTime = childEndTime.time),
5197
- (error = error.time),
5198
- supportsUserTiming && 0 < error))
5199
- ) {
5200
- name = childTrackIdx.env;
5201
- isPrimaryEnv = childTrackIdx.awaited.name;
5202
- var isPrimaryEnv$jscomp$0 = name === response._rootEnvironmentName;
5203
- env = getIOColor(isPrimaryEnv);
5204
- name =
5205
- "await " +
5206
- (isPrimaryEnv$jscomp$0 || void 0 === name
5207
- ? isPrimaryEnv
5208
- : isPrimaryEnv + " [" + name + "]");
5209
- (childTrackIdx = childTrackIdx.debugTask)
5210
- ? childTrackIdx.run(
5211
- console.timeStamp.bind(
5212
- console,
5213
- name,
5214
- 0 > childEndTime ? 0 : childEndTime,
5215
- error,
5216
- trackNames[trackTime],
5217
- "Server Components \u269b",
5218
- env
5219
- )
5220
- )
5221
- : console.timeStamp(
5222
- name,
5223
- 0 > childEndTime ? 0 : childEndTime,
5224
- error,
5225
- trackNames[trackTime],
5226
- "Server Components \u269b",
5227
- env
5228
- );
5271
+ parentEndTime = trackTime;
5272
+ info = entryName;
5229
5273
  }
5274
+ }
5230
5275
  trackIdx.endTime = componentInfo;
5231
5276
  return trackIdx;
5232
5277
  }
@@ -11032,7 +11077,6 @@
11032
11077
  case REACT_MEMO_TYPE:
11033
11078
  renderElement(request, task, keyPath, type.type, props, ref);
11034
11079
  return;
11035
- case REACT_PROVIDER_TYPE:
11036
11080
  case REACT_CONTEXT_TYPE:
11037
11081
  var value$jscomp$0 = props.value,
11038
11082
  children$jscomp$2 = props.children;
@@ -13512,7 +13556,6 @@
13512
13556
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
13513
13557
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
13514
13558
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
13515
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
13516
13559
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
13517
13560
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
13518
13561
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -14972,5 +15015,5 @@
14972
15015
  });
14973
15016
  });
14974
15017
  };
14975
- exports.version = "19.2.0-experimental-b6c0aa88-20250609";
15018
+ exports.version = "19.2.0-experimental-b7e2de63-20250611";
14976
15019
  })();
@@ -117,7 +117,6 @@ var CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
117
117
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
118
118
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
119
119
  REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
120
- REACT_PROVIDER_TYPE = Symbol.for("react.provider"),
121
120
  REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
122
121
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
123
122
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
@@ -831,9 +830,10 @@ function readThenable(thenable) {
831
830
  if ("rejected" === thenable.status) throw thenable.reason;
832
831
  throw thenable;
833
832
  }
834
- function createLazyWrapperAroundWakeable(wakeable) {
833
+ function createLazyWrapperAroundWakeable(request, task, wakeable) {
835
834
  switch (wakeable.status) {
836
835
  case "fulfilled":
836
+ return wakeable.value;
837
837
  case "rejected":
838
838
  break;
839
839
  default:
@@ -862,9 +862,7 @@ function processServerComponentReturnValue(request, task, Component, result) {
862
862
  )
863
863
  return result;
864
864
  if ("function" === typeof result.then)
865
- return "fulfilled" === result.status
866
- ? result.value
867
- : createLazyWrapperAroundWakeable(result);
865
+ return createLazyWrapperAroundWakeable(request, task, result);
868
866
  var iteratorFn = getIteratorFn(result);
869
867
  return iteratorFn
870
868
  ? ((request = {}),
@@ -2358,7 +2356,7 @@ function getComponentNameFromType(type) {
2358
2356
  case REACT_PORTAL_TYPE:
2359
2357
  return "Portal";
2360
2358
  case REACT_CONTEXT_TYPE:
2361
- return (type.displayName || "Context") + ".Provider";
2359
+ return type.displayName || "Context";
2362
2360
  case REACT_CONSUMER_TYPE:
2363
2361
  return (type._context.displayName || "Context") + ".Consumer";
2364
2362
  case REACT_FORWARD_REF_TYPE:
@@ -7404,7 +7402,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
7404
7402
  case REACT_MEMO_TYPE:
7405
7403
  renderElement(request, task, keyPath, type.type, props, ref);
7406
7404
  return;
7407
- case REACT_PROVIDER_TYPE:
7408
7405
  case REACT_CONTEXT_TYPE:
7409
7406
  var children$jscomp$2 = props.children,
7410
7407
  prevKeyPath$jscomp$6 = task.keyPath,
@@ -9684,4 +9681,4 @@ exports.experimental_renderToHTML = function (children, options) {
9684
9681
  });
9685
9682
  });
9686
9683
  };
9687
- exports.version = "19.2.0-experimental-b6c0aa88-20250609";
9684
+ exports.version = "19.2.0-experimental-b7e2de63-20250611";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-b6c0aa88-20250609",
3
+ "version": "0.0.0-experimental-b7e2de63-20250611",
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-b6c0aa88-20250609"
20
+ "react": "0.0.0-experimental-b7e2de63-20250611"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",