react-markup 0.0.0-experimental-bb8a76c6-20260115 → 0.0.0-experimental-41b3e9a6-20260119

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.
@@ -4042,6 +4042,7 @@
4042
4042
  throw thenable.reason;
4043
4043
  }
4044
4044
  suspendedThenable = thenable;
4045
+ shouldCaptureSuspendedCallSite && captureSuspendedCallSite();
4045
4046
  throw SuspenseException;
4046
4047
  }
4047
4048
  }
@@ -4054,6 +4055,50 @@
4054
4055
  suspendedThenable = null;
4055
4056
  return thenable;
4056
4057
  }
4058
+ function captureSuspendedCallSite() {
4059
+ var currentTask = currentTaskInDEV;
4060
+ if (null === currentTask)
4061
+ throw Error(
4062
+ "Expected to have a current task when tracking a suspend call site. This is a bug in React."
4063
+ );
4064
+ var currentComponentStack = currentTask.componentStack;
4065
+ if (null === currentComponentStack)
4066
+ throw Error(
4067
+ "Expected to have a component stack on the current task when tracking a suspended call site. This is a bug in React."
4068
+ );
4069
+ suspendedCallSiteStack = {
4070
+ parent: currentComponentStack.parent,
4071
+ type: currentComponentStack.type,
4072
+ owner: currentComponentStack.owner,
4073
+ stack: Error("react-stack-top-frame")
4074
+ };
4075
+ suspendedCallSiteDebugTask = currentTask.debugTask;
4076
+ }
4077
+ function ensureSuspendableThenableStateDEV(thenableState) {
4078
+ var lastThenable = thenableState[thenableState.length - 1];
4079
+ switch (lastThenable.status) {
4080
+ case "fulfilled":
4081
+ var previousThenableValue = lastThenable.value,
4082
+ previousThenableThen = lastThenable.then.bind(lastThenable);
4083
+ delete lastThenable.value;
4084
+ delete lastThenable.status;
4085
+ lastThenable.then = noop;
4086
+ return function () {
4087
+ lastThenable.then = previousThenableThen;
4088
+ lastThenable.value = previousThenableValue;
4089
+ lastThenable.status = "fulfilled";
4090
+ };
4091
+ case "rejected":
4092
+ var previousThenableReason = lastThenable.reason;
4093
+ delete lastThenable.reason;
4094
+ delete lastThenable.status;
4095
+ return function () {
4096
+ lastThenable.reason = previousThenableReason;
4097
+ lastThenable.status = "rejected";
4098
+ };
4099
+ }
4100
+ return noop;
4101
+ }
4057
4102
  function is(x, y) {
4058
4103
  return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
4059
4104
  }
@@ -4902,6 +4947,58 @@
4902
4947
  }
4903
4948
  }
4904
4949
  }
4950
+ function pushSuspendedCallSiteOnComponentStack(request, task) {
4951
+ shouldCaptureSuspendedCallSite = !0;
4952
+ var restoreThenableState = ensureSuspendableThenableStateDEV(
4953
+ task.thenableState
4954
+ );
4955
+ try {
4956
+ var prevStatus = request.status;
4957
+ request.status = 15;
4958
+ var prevContext = currentActiveSnapshot,
4959
+ prevDispatcher = ReactSharedInternals.H;
4960
+ ReactSharedInternals.H = HooksDispatcher;
4961
+ var prevAsyncDispatcher = ReactSharedInternals.A;
4962
+ ReactSharedInternals.A = DefaultAsyncDispatcher;
4963
+ var prevGetCurrentStackImpl = ReactSharedInternals.getCurrentStack;
4964
+ ReactSharedInternals.getCurrentStack = getCurrentStackInDEV;
4965
+ var prevResumableState = currentResumableState;
4966
+ currentResumableState = request.resumableState;
4967
+ switchContext(task.context);
4968
+ var prevTaskInDEV = currentTaskInDEV;
4969
+ currentTaskInDEV = task;
4970
+ try {
4971
+ retryNode(request, task);
4972
+ } catch (x) {
4973
+ resetHooksState();
4974
+ } finally {
4975
+ (currentTaskInDEV = prevTaskInDEV),
4976
+ (currentResumableState = prevResumableState),
4977
+ (ReactSharedInternals.H = prevDispatcher),
4978
+ (ReactSharedInternals.A = prevAsyncDispatcher),
4979
+ (ReactSharedInternals.getCurrentStack = prevGetCurrentStackImpl),
4980
+ prevDispatcher === HooksDispatcher && switchContext(prevContext),
4981
+ (request.status = prevStatus);
4982
+ }
4983
+ } finally {
4984
+ restoreThenableState(), (shouldCaptureSuspendedCallSite = !1);
4985
+ }
4986
+ null === suspendedCallSiteStack
4987
+ ? (request = null)
4988
+ : ((request = suspendedCallSiteStack), (suspendedCallSiteStack = null));
4989
+ null === suspendedCallSiteDebugTask
4990
+ ? (restoreThenableState = null)
4991
+ : ((restoreThenableState = suspendedCallSiteDebugTask),
4992
+ (suspendedCallSiteDebugTask = null));
4993
+ null !== request &&
4994
+ (task.componentStack = {
4995
+ owner: task.componentStack,
4996
+ parent: request.parent,
4997
+ stack: request.stack,
4998
+ type: request.type
4999
+ });
5000
+ task.debugTask = restoreThenableState;
5001
+ }
4905
5002
  function pushServerComponentStack(task, debugInfo) {
4906
5003
  if (null != debugInfo)
4907
5004
  for (var i = 0; i < debugInfo.length; i++) {
@@ -6358,7 +6455,7 @@
6358
6455
  return;
6359
6456
  case REACT_LAZY_TYPE:
6360
6457
  var Component = callLazyInitInDEV(type);
6361
- if (12 === request.status) throw null;
6458
+ if (12 === request.status && 15 !== request.status) throw null;
6362
6459
  renderElement(request, task, keyPath, Component, props, ref);
6363
6460
  return;
6364
6461
  }
@@ -7380,6 +7477,8 @@
7380
7477
  isArrayImpl(node._debugInfo) &&
7381
7478
  (debugInfo = node._debugInfo);
7382
7479
  pushHaltedAwaitOnComponentStack(task, debugInfo);
7480
+ null !== task.thenableState &&
7481
+ pushSuspendedCallSiteOnComponentStack(request, task);
7383
7482
  }
7384
7483
  if (null === boundary) {
7385
7484
  if (13 !== request.status && 14 !== request.status) {
@@ -9478,10 +9577,14 @@
9478
9577
  clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
9479
9578
  log = Math.log,
9480
9579
  LN2 = Math.LN2,
9580
+ currentTaskInDEV = null,
9481
9581
  SuspenseException = Error(
9482
9582
  "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
9483
9583
  ),
9484
9584
  suspendedThenable = null,
9585
+ shouldCaptureSuspendedCallSite = !1,
9586
+ suspendedCallSiteStack = null,
9587
+ suspendedCallSiteDebugTask = null,
9485
9588
  objectIs = "function" === typeof Object.is ? Object.is : is,
9486
9589
  currentlyRenderingComponent = null,
9487
9590
  currentlyRenderingTask = null,
@@ -9566,7 +9669,6 @@
9566
9669
  }
9567
9670
  },
9568
9671
  currentResumableState = null,
9569
- currentTaskInDEV = null,
9570
9672
  DefaultAsyncDispatcher = {
9571
9673
  getCacheForType: function () {
9572
9674
  throw Error("Not implemented.");
@@ -9694,5 +9796,5 @@
9694
9796
  });
9695
9797
  });
9696
9798
  };
9697
- exports.version = "19.3.0-experimental-bb8a76c6-20260115";
9799
+ exports.version = "19.3.0-experimental-41b3e9a6-20260119";
9698
9800
  })();
@@ -6666,4 +6666,4 @@ exports.experimental_renderToHTML = function (children, options) {
6666
6666
  });
6667
6667
  });
6668
6668
  };
6669
- exports.version = "19.3.0-experimental-bb8a76c6-20260115";
6669
+ exports.version = "19.3.0-experimental-41b3e9a6-20260119";
@@ -2332,8 +2332,8 @@
2332
2332
  return renderModelDestructive(
2333
2333
  request,
2334
2334
  task,
2335
- emptyRoot,
2336
- "",
2335
+ parent,
2336
+ parentPropertyName,
2337
2337
  elementReference
2338
2338
  );
2339
2339
  case REACT_LEGACY_ELEMENT_TYPE:
@@ -11079,6 +11079,7 @@
11079
11079
  throw thenable.reason;
11080
11080
  }
11081
11081
  suspendedThenable = thenable;
11082
+ shouldCaptureSuspendedCallSite && captureSuspendedCallSite();
11082
11083
  throw SuspenseException;
11083
11084
  }
11084
11085
  }
@@ -11091,6 +11092,50 @@
11091
11092
  suspendedThenable = null;
11092
11093
  return thenable;
11093
11094
  }
11095
+ function captureSuspendedCallSite() {
11096
+ var currentTask = currentTaskInDEV;
11097
+ if (null === currentTask)
11098
+ throw Error(
11099
+ "Expected to have a current task when tracking a suspend call site. This is a bug in React."
11100
+ );
11101
+ var currentComponentStack = currentTask.componentStack;
11102
+ if (null === currentComponentStack)
11103
+ throw Error(
11104
+ "Expected to have a component stack on the current task when tracking a suspended call site. This is a bug in React."
11105
+ );
11106
+ suspendedCallSiteStack = {
11107
+ parent: currentComponentStack.parent,
11108
+ type: currentComponentStack.type,
11109
+ owner: currentComponentStack.owner,
11110
+ stack: Error("react-stack-top-frame")
11111
+ };
11112
+ suspendedCallSiteDebugTask = currentTask.debugTask;
11113
+ }
11114
+ function ensureSuspendableThenableStateDEV(thenableState) {
11115
+ var lastThenable = thenableState[thenableState.length - 1];
11116
+ switch (lastThenable.status) {
11117
+ case "fulfilled":
11118
+ var previousThenableValue = lastThenable.value,
11119
+ previousThenableThen = lastThenable.then.bind(lastThenable);
11120
+ delete lastThenable.value;
11121
+ delete lastThenable.status;
11122
+ lastThenable.then = noop;
11123
+ return function () {
11124
+ lastThenable.then = previousThenableThen;
11125
+ lastThenable.value = previousThenableValue;
11126
+ lastThenable.status = "fulfilled";
11127
+ };
11128
+ case "rejected":
11129
+ var previousThenableReason = lastThenable.reason;
11130
+ delete lastThenable.reason;
11131
+ delete lastThenable.status;
11132
+ return function () {
11133
+ lastThenable.reason = previousThenableReason;
11134
+ lastThenable.status = "rejected";
11135
+ };
11136
+ }
11137
+ return noop;
11138
+ }
11094
11139
  function is(x, y) {
11095
11140
  return (x === y && (0 !== x || 1 / x === 1 / y)) || (x !== x && y !== y);
11096
11141
  }
@@ -11676,6 +11721,58 @@
11676
11721
  }
11677
11722
  }
11678
11723
  }
11724
+ function pushSuspendedCallSiteOnComponentStack(request, task) {
11725
+ shouldCaptureSuspendedCallSite = !0;
11726
+ var restoreThenableState = ensureSuspendableThenableStateDEV(
11727
+ task.thenableState
11728
+ );
11729
+ try {
11730
+ var prevStatus = request.status;
11731
+ request.status = 15;
11732
+ var prevContext = currentActiveSnapshot,
11733
+ prevDispatcher = ReactSharedInternals$1.H;
11734
+ ReactSharedInternals$1.H = HooksDispatcher;
11735
+ var prevAsyncDispatcher = ReactSharedInternals$1.A;
11736
+ ReactSharedInternals$1.A = DefaultAsyncDispatcher;
11737
+ var prevGetCurrentStackImpl = ReactSharedInternals$1.getCurrentStack;
11738
+ ReactSharedInternals$1.getCurrentStack = getCurrentStackInDEV;
11739
+ var prevResumableState = currentResumableState;
11740
+ currentResumableState = request.resumableState;
11741
+ switchContext(task.context);
11742
+ var prevTaskInDEV = currentTaskInDEV;
11743
+ currentTaskInDEV = task;
11744
+ try {
11745
+ retryNode(request, task);
11746
+ } catch (x) {
11747
+ resetHooksState();
11748
+ } finally {
11749
+ (currentTaskInDEV = prevTaskInDEV),
11750
+ (currentResumableState = prevResumableState),
11751
+ (ReactSharedInternals$1.H = prevDispatcher),
11752
+ (ReactSharedInternals$1.A = prevAsyncDispatcher),
11753
+ (ReactSharedInternals$1.getCurrentStack = prevGetCurrentStackImpl),
11754
+ prevDispatcher === HooksDispatcher && switchContext(prevContext),
11755
+ (request.status = prevStatus);
11756
+ }
11757
+ } finally {
11758
+ restoreThenableState(), (shouldCaptureSuspendedCallSite = !1);
11759
+ }
11760
+ null === suspendedCallSiteStack
11761
+ ? (request = null)
11762
+ : ((request = suspendedCallSiteStack), (suspendedCallSiteStack = null));
11763
+ null === suspendedCallSiteDebugTask
11764
+ ? (restoreThenableState = null)
11765
+ : ((restoreThenableState = suspendedCallSiteDebugTask),
11766
+ (suspendedCallSiteDebugTask = null));
11767
+ null !== request &&
11768
+ (task.componentStack = {
11769
+ owner: task.componentStack,
11770
+ parent: request.parent,
11771
+ stack: request.stack,
11772
+ type: request.type
11773
+ });
11774
+ task.debugTask = restoreThenableState;
11775
+ }
11679
11776
  function pushServerComponentStack(task, debugInfo) {
11680
11777
  if (null != debugInfo)
11681
11778
  for (var i = 0; i < debugInfo.length; i++) {
@@ -13132,7 +13229,7 @@
13132
13229
  return;
13133
13230
  case REACT_LAZY_TYPE:
13134
13231
  var Component = callLazyInitInDEV(type);
13135
- if (12 === request.status) throw null;
13232
+ if (12 === request.status && 15 !== request.status) throw null;
13136
13233
  renderElement(request, task, keyPath, Component, props, ref);
13137
13234
  return;
13138
13235
  }
@@ -14154,6 +14251,8 @@
14154
14251
  isArrayImpl(node._debugInfo) &&
14155
14252
  (debugInfo = node._debugInfo);
14156
14253
  pushHaltedAwaitOnComponentStack(task, debugInfo);
14254
+ null !== task.thenableState &&
14255
+ pushSuspendedCallSiteOnComponentStack(request, task);
14157
14256
  }
14158
14257
  if (null === boundary) {
14159
14258
  if (13 !== request.status && 14 !== request.status) {
@@ -15570,10 +15669,10 @@
15570
15669
  },
15571
15670
  useCacheRefresh: function () {
15572
15671
  return unsupportedRefresh$1;
15573
- }
15574
- };
15575
- HooksDispatcher$1.useEffectEvent = unsupportedHook;
15576
- var currentOwner = null,
15672
+ },
15673
+ useEffectEvent: unsupportedHook
15674
+ },
15675
+ currentOwner = null,
15577
15676
  DefaultAsyncDispatcher$1 = {
15578
15677
  getCacheForType: function (resourceType) {
15579
15678
  var cache = (cache = currentRequest ? currentRequest : null)
@@ -16608,10 +16707,14 @@
16608
16707
  clz32 = Math.clz32 ? Math.clz32 : clz32Fallback,
16609
16708
  log = Math.log,
16610
16709
  LN2 = Math.LN2,
16710
+ currentTaskInDEV = null,
16611
16711
  SuspenseException = Error(
16612
16712
  "Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."
16613
16713
  ),
16614
16714
  suspendedThenable = null,
16715
+ shouldCaptureSuspendedCallSite = !1,
16716
+ suspendedCallSiteStack = null,
16717
+ suspendedCallSiteDebugTask = null,
16615
16718
  objectIs = "function" === typeof Object.is ? Object.is : is,
16616
16719
  currentlyRenderingComponent = null,
16617
16720
  currentlyRenderingTask = null,
@@ -16696,7 +16799,6 @@
16696
16799
  }
16697
16800
  },
16698
16801
  currentResumableState = null,
16699
- currentTaskInDEV = null,
16700
16802
  DefaultAsyncDispatcher = {
16701
16803
  getCacheForType: function () {
16702
16804
  throw Error("Not implemented.");
@@ -17108,5 +17210,5 @@
17108
17210
  });
17109
17211
  });
17110
17212
  };
17111
- exports.version = "19.3.0-experimental-bb8a76c6-20260115";
17213
+ exports.version = "19.3.0-experimental-41b3e9a6-20260119";
17112
17214
  })();
@@ -235,9 +235,9 @@ var HooksDispatcher$1 = {
235
235
  },
236
236
  useCacheRefresh: function () {
237
237
  return unsupportedRefresh$1;
238
- }
238
+ },
239
+ useEffectEvent: unsupportedHook
239
240
  };
240
- HooksDispatcher$1.useEffectEvent = unsupportedHook;
241
241
  function unsupportedHook() {
242
242
  throw Error("This Hook is not supported in Server Components.");
243
243
  }
@@ -1261,10 +1261,16 @@ function renderModelDestructive(
1261
1261
  case REACT_LAZY_TYPE:
1262
1262
  if (3200 < serializedSize) return deferTask(request, task);
1263
1263
  task.thenableState = null;
1264
- parentPropertyName = value._init;
1265
- value = parentPropertyName(value._payload);
1264
+ elementReference = value._init;
1265
+ value = elementReference(value._payload);
1266
1266
  if (12 === request.status) throw null;
1267
- return renderModelDestructive(request, task, emptyRoot, "", value);
1267
+ return renderModelDestructive(
1268
+ request,
1269
+ task,
1270
+ parent,
1271
+ parentPropertyName,
1272
+ value
1273
+ );
1268
1274
  case REACT_LEGACY_ELEMENT_TYPE:
1269
1275
  throw Error(
1270
1276
  'A React Element from an older version of React was rendered. This is not supported. It can happen if:\n- Multiple copies of the "react" package is used.\n- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n- A compiler tries to "inline" JSX instead of using the runtime.'
@@ -9954,4 +9960,4 @@ exports.experimental_renderToHTML = function (children, options) {
9954
9960
  });
9955
9961
  });
9956
9962
  };
9957
- exports.version = "19.3.0-experimental-bb8a76c6-20260115";
9963
+ exports.version = "19.3.0-experimental-41b3e9a6-20260119";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-bb8a76c6-20260115",
3
+ "version": "0.0.0-experimental-41b3e9a6-20260119",
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-bb8a76c6-20260115"
20
+ "react": "0.0.0-experimental-41b3e9a6-20260119"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",