react-markup 0.0.0-experimental-dd048c3b-20251105 → 0.0.0-experimental-fa50caf5-20251107

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.
@@ -6525,7 +6525,9 @@ function describeComponentStackByType(type) {
6525
6525
  return "";
6526
6526
  }
6527
6527
  function isEligibleForOutlining(request, boundary) {
6528
- return (500 < boundary.byteSize || !1) && null === boundary.contentPreamble;
6528
+ return (
6529
+ (500 < boundary.byteSize || boundary.defer) && null === boundary.preamble
6530
+ );
6529
6531
  }
6530
6532
  function defaultErrorHandler(error) {
6531
6533
  if (
@@ -6652,8 +6654,8 @@ function createSuspenseBoundary(
6652
6654
  request,
6653
6655
  row,
6654
6656
  fallbackAbortableTasks,
6655
- contentPreamble,
6656
- fallbackPreamble
6657
+ preamble,
6658
+ defer
6657
6659
  ) {
6658
6660
  fallbackAbortableTasks = {
6659
6661
  status: 0,
@@ -6663,22 +6665,21 @@ function createSuspenseBoundary(
6663
6665
  row: row,
6664
6666
  completedSegments: [],
6665
6667
  byteSize: 0,
6668
+ defer: defer,
6666
6669
  fallbackAbortableTasks: fallbackAbortableTasks,
6667
6670
  errorDigest: null,
6668
6671
  contentState: createHoistableState(),
6669
6672
  fallbackState: createHoistableState(),
6670
- contentPreamble: contentPreamble,
6671
- fallbackPreamble: fallbackPreamble,
6672
- trackedContentKeyPath: null,
6673
- trackedFallbackNode: null
6673
+ preamble: preamble,
6674
+ tracked: null
6674
6675
  };
6675
6676
  null !== row &&
6676
6677
  (row.pendingTasks++,
6677
- (contentPreamble = row.boundaries),
6678
- null !== contentPreamble &&
6678
+ (preamble = row.boundaries),
6679
+ null !== preamble &&
6679
6680
  (request.allPendingTasks++,
6680
6681
  fallbackAbortableTasks.pendingTasks++,
6681
- contentPreamble.push(fallbackAbortableTasks)),
6682
+ preamble.push(fallbackAbortableTasks)),
6682
6683
  (request = row.inheritedHoistables),
6683
6684
  null !== request &&
6684
6685
  hoistHoistables(fallbackAbortableTasks.contentState, request));
@@ -7505,6 +7506,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
7505
7506
  parentSegment = task.blockedSegment,
7506
7507
  fallback = props.fallback,
7507
7508
  content = props.children,
7509
+ defer = !0 === props.defer,
7508
7510
  fallbackAbortSet = new Set();
7509
7511
  var newBoundary =
7510
7512
  2 > task.formatContext.insertionMode
@@ -7512,18 +7514,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
7512
7514
  request,
7513
7515
  task.row,
7514
7516
  fallbackAbortSet,
7515
- createPreambleState(),
7516
- createPreambleState()
7517
+ {
7518
+ content: createPreambleState(),
7519
+ fallback: createPreambleState()
7520
+ },
7521
+ defer
7517
7522
  )
7518
7523
  : createSuspenseBoundary(
7519
7524
  request,
7520
7525
  task.row,
7521
7526
  fallbackAbortSet,
7522
7527
  null,
7523
- null
7528
+ defer
7524
7529
  );
7525
- null !== request.trackedPostpones &&
7526
- (newBoundary.trackedContentKeyPath = keyPath);
7527
7530
  var boundarySegment = createPendingSegment(
7528
7531
  request,
7529
7532
  parentSegment.chunks.length,
@@ -7543,22 +7546,31 @@ function renderElement(request, task, keyPath, type, props, ref) {
7543
7546
  !1
7544
7547
  );
7545
7548
  contentRootSegment.parentFlushed = !0;
7546
- if (null !== request.trackedPostpones) {
7549
+ var trackedPostpones = request.trackedPostpones;
7550
+ if (null !== trackedPostpones || defer) {
7547
7551
  var suspenseComponentStack = task.componentStack,
7548
- fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]],
7549
- fallbackReplayNode = [
7552
+ fallbackKeyPath = [keyPath[0], "Suspense Fallback", keyPath[2]];
7553
+ if (null !== trackedPostpones) {
7554
+ var fallbackReplayNode = [
7550
7555
  fallbackKeyPath[1],
7551
7556
  fallbackKeyPath[2],
7552
7557
  [],
7553
7558
  null
7554
7559
  ];
7555
- request.trackedPostpones.workingMap.set(
7556
- fallbackKeyPath,
7557
- fallbackReplayNode
7558
- );
7559
- newBoundary.trackedFallbackNode = fallbackReplayNode;
7560
+ trackedPostpones.workingMap.set(
7561
+ fallbackKeyPath,
7562
+ fallbackReplayNode
7563
+ );
7564
+ newBoundary.tracked = {
7565
+ contentKeyPath: keyPath,
7566
+ fallbackNode: fallbackReplayNode
7567
+ };
7568
+ }
7560
7569
  task.blockedSegment = boundarySegment;
7561
- task.blockedPreamble = newBoundary.fallbackPreamble;
7570
+ task.blockedPreamble =
7571
+ null === newBoundary.preamble
7572
+ ? null
7573
+ : newBoundary.preamble.fallback;
7562
7574
  task.keyPath = fallbackKeyPath;
7563
7575
  task.formatContext = getSuspenseFallbackFormatContext(
7564
7576
  request.resumableState,
@@ -7590,7 +7602,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
7590
7602
  -1,
7591
7603
  newBoundary,
7592
7604
  contentRootSegment,
7593
- newBoundary.contentPreamble,
7605
+ null === newBoundary.preamble
7606
+ ? null
7607
+ : newBoundary.preamble.content,
7594
7608
  newBoundary.contentState,
7595
7609
  task.abortSet,
7596
7610
  keyPath,
@@ -7607,7 +7621,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
7607
7621
  request.pingedTasks.push(suspendedPrimaryTask);
7608
7622
  } else {
7609
7623
  task.blockedBoundary = newBoundary;
7610
- task.blockedPreamble = newBoundary.contentPreamble;
7624
+ task.blockedPreamble =
7625
+ null === newBoundary.preamble
7626
+ ? null
7627
+ : newBoundary.preamble.content;
7611
7628
  task.hoistableState = newBoundary.contentState;
7612
7629
  task.blockedSegment = contentRootSegment;
7613
7630
  task.keyPath = keyPath;
@@ -7666,7 +7683,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
7666
7683
  -1,
7667
7684
  parentBoundary,
7668
7685
  boundarySegment,
7669
- newBoundary.fallbackPreamble,
7686
+ null === newBoundary.preamble
7687
+ ? null
7688
+ : newBoundary.preamble.fallback,
7670
7689
  newBoundary.fallbackState,
7671
7690
  fallbackAbortSet,
7672
7691
  [keyPath[0], "Suspense Fallback", keyPath[2]],
@@ -7868,12 +7887,13 @@ function retryNode(request, task) {
7868
7887
  );
7869
7888
  task.replay.pendingTasks--;
7870
7889
  props = getThrownInfo(task.componentStack);
7871
- key = task.blockedBoundary;
7890
+ key = request;
7891
+ request = task.blockedBoundary;
7872
7892
  type = x;
7873
- props = logRecoverableError(request, type, props);
7893
+ props = logRecoverableError(key, type, props);
7874
7894
  abortRemainingReplayNodes(
7875
- request,
7876
7895
  key,
7896
+ request,
7877
7897
  childNodes,
7878
7898
  childSlots,
7879
7899
  type,
@@ -7903,28 +7923,32 @@ function retryNode(request, task) {
7903
7923
  parentBoundary = task.blockedBoundary,
7904
7924
  parentHoistableState = task.hoistableState,
7905
7925
  content = props.children,
7906
- fallback = props.fallback,
7907
- fallbackAbortSet = new Set();
7908
- props =
7926
+ fallback = props.fallback;
7927
+ var resumedBoundary = !0 === props.defer;
7928
+ props = new Set();
7929
+ resumedBoundary =
7909
7930
  2 > task.formatContext.insertionMode
7910
7931
  ? createSuspenseBoundary(
7911
7932
  request,
7912
7933
  task.row,
7913
- fallbackAbortSet,
7914
- createPreambleState(),
7915
- createPreambleState()
7934
+ props,
7935
+ {
7936
+ content: createPreambleState(),
7937
+ fallback: createPreambleState()
7938
+ },
7939
+ resumedBoundary
7916
7940
  )
7917
7941
  : createSuspenseBoundary(
7918
7942
  request,
7919
7943
  task.row,
7920
- fallbackAbortSet,
7944
+ props,
7921
7945
  null,
7922
- null
7946
+ resumedBoundary
7923
7947
  );
7924
- props.parentFlushed = !0;
7925
- props.rootSegmentID = replay;
7926
- task.blockedBoundary = props;
7927
- task.hoistableState = props.contentState;
7948
+ resumedBoundary.parentFlushed = !0;
7949
+ resumedBoundary.rootSegmentID = replay;
7950
+ task.blockedBoundary = resumedBoundary;
7951
+ task.hoistableState = resumedBoundary.contentState;
7928
7952
  task.keyPath = key;
7929
7953
  task.formatContext = getSuspenseContentFormatContext(
7930
7954
  request.resumableState,
@@ -7946,22 +7970,27 @@ function retryNode(request, task) {
7946
7970
  "Couldn't find all resumable slots by key/index during replaying. The tree doesn't match so React will fallback to client rendering."
7947
7971
  );
7948
7972
  task.replay.pendingTasks--;
7949
- if (0 === props.pendingTasks && 0 === props.status) {
7950
- props.status = 1;
7951
- request.completedBoundaries.push(props);
7973
+ if (
7974
+ 0 === resumedBoundary.pendingTasks &&
7975
+ 0 === resumedBoundary.status
7976
+ ) {
7977
+ resumedBoundary.status = 1;
7978
+ request.completedBoundaries.push(resumedBoundary);
7952
7979
  break b;
7953
7980
  }
7954
7981
  } catch (error) {
7955
- (props.status = 4),
7982
+ (resumedBoundary.status = 4),
7956
7983
  (childNodes = getThrownInfo(task.componentStack)),
7957
7984
  (childSlots = logRecoverableError(
7958
7985
  request,
7959
7986
  error,
7960
7987
  childNodes
7961
7988
  )),
7962
- (props.errorDigest = childSlots),
7989
+ (resumedBoundary.errorDigest = childSlots),
7963
7990
  task.replay.pendingTasks--,
7964
- request.clientRenderedBoundaries.push(props);
7991
+ request.clientRenderedBoundaries.push(
7992
+ resumedBoundary
7993
+ );
7965
7994
  } finally {
7966
7995
  (task.blockedBoundary = parentBoundary),
7967
7996
  (task.hoistableState = parentHoistableState),
@@ -7977,8 +8006,8 @@ function retryNode(request, task) {
7977
8006
  fallback,
7978
8007
  -1,
7979
8008
  parentBoundary,
7980
- props.fallbackState,
7981
- fallbackAbortSet,
8009
+ resumedBoundary.fallbackState,
8010
+ props,
7982
8011
  [key[0], "Suspense Fallback", key[2]],
7983
8012
  getSuspenseFallbackFormatContext(
7984
8013
  request.resumableState,
@@ -8168,13 +8197,18 @@ function renderChildrenArray(request, task, children, childIndex) {
8168
8197
  function trackPostponedBoundary(request, trackedPostpones, boundary) {
8169
8198
  boundary.status = 5;
8170
8199
  boundary.rootSegmentID = request.nextSegmentId++;
8171
- request = boundary.trackedContentKeyPath;
8200
+ var tracked = boundary.tracked;
8201
+ if (null === tracked)
8202
+ throw Error(
8203
+ "It should not be possible to postpone at the root. This is a bug in React."
8204
+ );
8205
+ request = tracked.contentKeyPath;
8172
8206
  if (null === request)
8173
8207
  throw Error(
8174
8208
  "It should not be possible to postpone at the root. This is a bug in React."
8175
8209
  );
8176
- var fallbackReplayNode = boundary.trackedFallbackNode,
8177
- children = [],
8210
+ tracked = tracked.fallbackNode;
8211
+ var children = [],
8178
8212
  boundaryNode = trackedPostpones.workingMap.get(request);
8179
8213
  if (void 0 === boundaryNode)
8180
8214
  return (
@@ -8183,14 +8217,14 @@ function trackPostponedBoundary(request, trackedPostpones, boundary) {
8183
8217
  request[2],
8184
8218
  children,
8185
8219
  null,
8186
- fallbackReplayNode,
8220
+ tracked,
8187
8221
  boundary.rootSegmentID
8188
8222
  ]),
8189
8223
  trackedPostpones.workingMap.set(request, boundary),
8190
8224
  addToReplayParent(boundary, request[0], trackedPostpones),
8191
8225
  boundary
8192
8226
  );
8193
- boundaryNode[4] = fallbackReplayNode;
8227
+ boundaryNode[4] = tracked;
8194
8228
  boundaryNode[5] = boundary.rootSegmentID;
8195
8229
  return boundaryNode;
8196
8230
  }
@@ -8211,7 +8245,8 @@ function trackPostpone(request, trackedPostpones, task, segment) {
8211
8245
  boundary
8212
8246
  );
8213
8247
  if (
8214
- boundary.trackedContentKeyPath === keyPath &&
8248
+ null !== boundary.tracked &&
8249
+ boundary.tracked.contentKeyPath === keyPath &&
8215
8250
  -1 === task.childIndex
8216
8251
  ) {
8217
8252
  -1 === segment.id &&
@@ -8267,11 +8302,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
8267
8302
  function untrackBoundary(request, boundary) {
8268
8303
  request = request.trackedPostpones;
8269
8304
  null !== request &&
8270
- ((boundary = boundary.trackedContentKeyPath),
8305
+ ((boundary = boundary.tracked),
8271
8306
  null !== boundary &&
8272
- ((boundary = request.workingMap.get(boundary)),
8273
- void 0 !== boundary &&
8274
- ((boundary.length = 4), (boundary[2] = []), (boundary[3] = null))));
8307
+ ((boundary = boundary.contentKeyPath),
8308
+ null !== boundary &&
8309
+ ((request = request.workingMap.get(boundary)),
8310
+ void 0 !== request &&
8311
+ ((request.length = 4), (request[2] = []), (request[3] = null)))));
8275
8312
  }
8276
8313
  function spawnNewSuspendedReplayTask(request, task, thenableState) {
8277
8314
  return createReplayTask(
@@ -8466,7 +8503,7 @@ function abortRemainingReplayNodes(
8466
8503
  null,
8467
8504
  new Set(),
8468
8505
  null,
8469
- null
8506
+ !1
8470
8507
  );
8471
8508
  resumedBoundary.parentFlushed = !0;
8472
8509
  resumedBoundary.rootSegmentID = node;
@@ -8697,7 +8734,7 @@ function finishedTask(request, boundary, row, segment) {
8697
8734
  finishSuspenseListRow(request, row)),
8698
8735
  0 === request.pendingRootTasks &&
8699
8736
  null === request.trackedPostpones &&
8700
- null !== boundary.contentPreamble &&
8737
+ null !== boundary.preamble &&
8701
8738
  preparePreamble(request);
8702
8739
  else {
8703
8740
  if (
@@ -8908,7 +8945,7 @@ function performWork(request$jscomp$1) {
8908
8945
  request.clientRenderedBoundaries.push(boundary$jscomp$0);
8909
8946
  0 === request.pendingRootTasks &&
8910
8947
  null === request.trackedPostpones &&
8911
- null !== boundary$jscomp$0.contentPreamble &&
8948
+ null !== boundary$jscomp$0.preamble &&
8912
8949
  preparePreamble(request);
8913
8950
  }
8914
8951
  0 === request.allPendingTasks && completeAll(request);
@@ -8959,12 +8996,11 @@ function preparePreambleFromSegment(
8959
8996
  segment,
8960
8997
  collectedPreambleSegments
8961
8998
  );
8962
- var preamble = boundary.contentPreamble,
8963
- fallbackPreamble = boundary.fallbackPreamble;
8964
- if (null === preamble || null === fallbackPreamble) return !1;
8999
+ var preamble = boundary.preamble;
9000
+ if (null === preamble) return !1;
8965
9001
  switch (boundary.status) {
8966
9002
  case 1:
8967
- hoistPreambleState(request.renderState, preamble);
9003
+ hoistPreambleState(request.renderState, preamble.content);
8968
9004
  request.byteSize += boundary.byteSize;
8969
9005
  segment = boundary.completedSegments[0];
8970
9006
  if (!segment)
@@ -8981,7 +9017,7 @@ function preparePreambleFromSegment(
8981
9017
  case 4:
8982
9018
  if (1 === segment.status)
8983
9019
  return (
8984
- hoistPreambleState(request.renderState, fallbackPreamble),
9020
+ hoistPreambleState(request.renderState, preamble.fallback),
8985
9021
  preparePreambleFromSubtree(
8986
9022
  request,
8987
9023
  segment,
@@ -9084,7 +9120,8 @@ function flushSegment(request, destination, segment, hoistableState) {
9084
9120
  if (
9085
9121
  !flushingPartialBoundaries &&
9086
9122
  isEligibleForOutlining(request, boundary) &&
9087
- flushedByteSize + boundary.byteSize > request.progressiveChunkSize
9123
+ (flushedByteSize + boundary.byteSize > request.progressiveChunkSize ||
9124
+ boundary.defer)
9088
9125
  )
9089
9126
  return (
9090
9127
  (boundary.rootSegmentID = request.nextSegmentId++),
@@ -9172,7 +9209,7 @@ function flushCompletedBoundary(request, destination, boundary) {
9172
9209
  0 === (completedSegments.instructions & 256) &&
9173
9210
  ((completedSegments.instructions |= 256),
9174
9211
  destination.push(
9175
- '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
9212
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");\nfor(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,\nI.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),\na.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,\n$RV);'
9176
9213
  )),
9177
9214
  0 === (completedSegments.instructions & 8)
9178
9215
  ? ((completedSegments.instructions |= 8),
@@ -9189,7 +9226,7 @@ function flushCompletedBoundary(request, destination, boundary) {
9189
9226
  0 === (completedSegments.instructions & 256) &&
9190
9227
  ((completedSegments.instructions |= 256),
9191
9228
  destination.push(
9192
- '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");for(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),\nH=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,I.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=\ndocument.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),a.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=\nperformance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,$RV);'
9229
+ '$RV=function(A,g){function k(a,b){var e=a.getAttribute(b);e&&(b=a.style,l.push(a,b.viewTransitionName,b.viewTransitionClass),"auto"!==e&&(b.viewTransitionClass=e),(a=a.getAttribute("vt-name"))||(a="_T_"+K++ +"_"),a=CSS.escape(a)!==a?"r-"+btoa(a).replace(/=/g,""):a,b.viewTransitionName=a,B=!0)}var B=!1,K=0,l=[];try{var f=document.__reactViewTransition;if(f){f.finished.finally($RV.bind(null,g));return}var m=new Map;for(f=1;f<g.length;f+=2)for(var h=g[f].querySelectorAll("[vt-share]"),d=0;d<h.length;d++){var c=h[d];m.set(c.getAttribute("vt-name"),c)}var u=[];for(h=0;h<g.length;h+=2){var C=g[h],x=C.parentNode;if(x){var v=x.getBoundingClientRect();if(v.left||v.top||v.width||v.height){c=C;for(f=0;c;){if(8===c.nodeType){var r=c.data;if("/$"===r)if(0===f)break;else f--;else"$"!==r&&"$?"!==r&&"$~"!==r&&"$!"!==r||f++}else if(1===c.nodeType){d=c;var D=d.getAttribute("vt-name"),y=m.get(D);k(d,y?"vt-share":"vt-exit");y&&(k(y,"vt-share"),m.set(D,null));var E=d.querySelectorAll("[vt-share]");\nfor(d=0;d<E.length;d++){var F=E[d],G=F.getAttribute("vt-name"),H=m.get(G);H&&(k(F,"vt-share"),k(H,"vt-share"),m.set(G,null))}}c=c.nextSibling}for(var I=g[h+1],t=I.firstElementChild;t;)null!==m.get(t.getAttribute("vt-name"))&&k(t,"vt-enter"),t=t.nextElementSibling;c=x;do for(var n=c.firstElementChild;n;){var J=n.getAttribute("vt-update");J&&"none"!==J&&!l.includes(n)&&k(n,"vt-update");n=n.nextElementSibling}while((c=c.parentNode)&&1===c.nodeType&&"none"!==c.getAttribute("vt-update"));u.push.apply(u,\nI.querySelectorAll(\'img[src]:not([loading="lazy"])\'))}}}if(B){var z=document.__reactViewTransition=document.startViewTransition({update:function(){A(g);for(var a=[document.documentElement.clientHeight,document.fonts.ready],b={},e=0;e<u.length;b={g:b.g},e++)if(b.g=u[e],!b.g.complete){var p=b.g.getBoundingClientRect();0<p.bottom&&0<p.right&&p.top<window.innerHeight&&p.left<window.innerWidth&&(p=new Promise(function(w){return function(q){w.g.addEventListener("load",q);w.g.addEventListener("error",q)}}(b)),\na.push(p))}return Promise.race([Promise.all(a),new Promise(function(w){var q=performance.now();setTimeout(w,2300>q&&2E3<q?2300-q:500)})])},types:[]});z.ready.finally(function(){for(var a=l.length-3;0<=a;a-=3){var b=l[a],e=b.style;e.viewTransitionName=l[a+1];e.viewTransitionClass=l[a+1];""===b.getAttribute("style")&&b.removeAttribute("style")}});z.finished.finally(function(){document.__reactViewTransition===z&&(document.__reactViewTransition=null)});$RB=[];return}}catch(a){}A(g)}.bind(null,\n$RV);'
9193
9230
  )),
9194
9231
  destination.push('$RC("')))
9195
9232
  : requiresStyleInsertion
@@ -9608,20 +9645,20 @@ exports.experimental_renderToHTML = function (children, options) {
9608
9645
  void 0,
9609
9646
  void 0
9610
9647
  ),
9611
- JSCompiler_object_inline__rowState_2226 = 0,
9612
- JSCompiler_object_inline__rowID_2227 = 0,
9613
- JSCompiler_object_inline__rowTag_2228 = 0,
9614
- JSCompiler_object_inline__rowLength_2229 = 0,
9615
- JSCompiler_object_inline__buffer_2230 = [],
9648
+ JSCompiler_object_inline__rowState_2228 = 0,
9649
+ JSCompiler_object_inline__rowID_2229 = 0,
9650
+ JSCompiler_object_inline__rowTag_2230 = 0,
9651
+ JSCompiler_object_inline__rowLength_2231 = 0,
9652
+ JSCompiler_object_inline__buffer_2232 = [],
9616
9653
  flightDestination = {
9617
9654
  push: function (chunk) {
9618
9655
  if (null !== chunk) {
9619
9656
  for (
9620
9657
  var i = 0,
9621
- rowState = JSCompiler_object_inline__rowState_2226,
9622
- rowID = JSCompiler_object_inline__rowID_2227,
9623
- rowTag = JSCompiler_object_inline__rowTag_2228,
9624
- rowLength = JSCompiler_object_inline__rowLength_2229,
9658
+ rowState = JSCompiler_object_inline__rowState_2228,
9659
+ rowID = JSCompiler_object_inline__rowID_2229,
9660
+ rowTag = JSCompiler_object_inline__rowTag_2230,
9661
+ rowLength = JSCompiler_object_inline__rowLength_2231,
9625
9662
  chunkLength = chunk.length;
9626
9663
  i < chunkLength;
9627
9664
 
@@ -9682,7 +9719,7 @@ exports.experimental_renderToHTML = function (children, options) {
9682
9719
  lastIdx = chunk.length;
9683
9720
  }
9684
9721
  if (-1 < lastIdx) {
9685
- if (0 < JSCompiler_object_inline__buffer_2230.length)
9722
+ if (0 < JSCompiler_object_inline__buffer_2232.length)
9686
9723
  throw Error(
9687
9724
  "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."
9688
9725
  );
@@ -9757,16 +9794,16 @@ exports.experimental_renderToHTML = function (children, options) {
9757
9794
  i = lastIdx;
9758
9795
  3 === rowState && i++;
9759
9796
  rowLength = rowID = rowTag = rowState = 0;
9760
- JSCompiler_object_inline__buffer_2230.length = 0;
9797
+ JSCompiler_object_inline__buffer_2232.length = 0;
9761
9798
  } else if (chunk.length !== i)
9762
9799
  throw Error(
9763
9800
  "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."
9764
9801
  );
9765
9802
  }
9766
- JSCompiler_object_inline__rowState_2226 = rowState;
9767
- JSCompiler_object_inline__rowID_2227 = rowID;
9768
- JSCompiler_object_inline__rowTag_2228 = rowTag;
9769
- JSCompiler_object_inline__rowLength_2229 = rowLength;
9803
+ JSCompiler_object_inline__rowState_2228 = rowState;
9804
+ JSCompiler_object_inline__rowID_2229 = rowID;
9805
+ JSCompiler_object_inline__rowTag_2230 = rowTag;
9806
+ JSCompiler_object_inline__rowLength_2231 = rowLength;
9770
9807
  } else reportGlobalError(flightResponse, Error("Connection closed."));
9771
9808
  return !0;
9772
9809
  },
@@ -9875,4 +9912,4 @@ exports.experimental_renderToHTML = function (children, options) {
9875
9912
  });
9876
9913
  });
9877
9914
  };
9878
- exports.version = "19.3.0-experimental-dd048c3b-20251105";
9915
+ exports.version = "19.3.0-experimental-fa50caf5-20251107";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-dd048c3b-20251105",
3
+ "version": "0.0.0-experimental-fa50caf5-20251107",
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-dd048c3b-20251105"
20
+ "react": "0.0.0-experimental-fa50caf5-20251107"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",