react-markup 0.0.0-experimental-23884812-20250520 → 0.0.0-experimental-99efc627-20250523

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.
@@ -1087,8 +1087,8 @@
1087
1087
  ? null
1088
1088
  : {
1089
1089
  update: parentViewTransition.update,
1090
- enter: null,
1091
- exit: null,
1090
+ enter: "none",
1091
+ exit: "none",
1092
1092
  share: parentViewTransition.update,
1093
1093
  name: parentViewTransition.autoName,
1094
1094
  autoName: parentViewTransition.autoName,
@@ -1130,11 +1130,11 @@
1130
1130
  ),
1131
1131
  formatContext.nameIdx++),
1132
1132
  pushStringAttribute(target, "vt-update", formatContext.update),
1133
- null !== formatContext.enter &&
1133
+ "none" !== formatContext.enter &&
1134
1134
  pushStringAttribute(target, "vt-enter", formatContext.enter),
1135
- null !== formatContext.exit &&
1135
+ "none" !== formatContext.exit &&
1136
1136
  pushStringAttribute(target, "vt-exit", formatContext.exit),
1137
- null !== formatContext.share &&
1137
+ "none" !== formatContext.share &&
1138
1138
  pushStringAttribute(target, "vt-share", formatContext.share));
1139
1139
  }
1140
1140
  function pushStyleAttribute(target, style) {
@@ -6876,6 +6876,35 @@
6876
6876
  task.componentStack = previousComponentStack;
6877
6877
  task.debugTask = previousDebugTask;
6878
6878
  }
6879
+ function trackPostponedBoundary(request, trackedPostpones, boundary) {
6880
+ boundary.status = 5;
6881
+ boundary.rootSegmentID = request.nextSegmentId++;
6882
+ request = boundary.trackedContentKeyPath;
6883
+ if (null === request)
6884
+ throw Error(
6885
+ "It should not be possible to postpone at the root. This is a bug in React."
6886
+ );
6887
+ var fallbackReplayNode = boundary.trackedFallbackNode,
6888
+ children = [],
6889
+ boundaryNode = trackedPostpones.workingMap.get(request);
6890
+ if (void 0 === boundaryNode)
6891
+ return (
6892
+ (boundary = [
6893
+ request[1],
6894
+ request[2],
6895
+ children,
6896
+ null,
6897
+ fallbackReplayNode,
6898
+ boundary.rootSegmentID
6899
+ ]),
6900
+ trackedPostpones.workingMap.set(request, boundary),
6901
+ addToReplayParent(boundary, request[0], trackedPostpones),
6902
+ boundary
6903
+ );
6904
+ boundaryNode[4] = fallbackReplayNode;
6905
+ boundaryNode[5] = boundary.rootSegmentID;
6906
+ return boundaryNode;
6907
+ }
6879
6908
  function trackPostpone(request, trackedPostpones, task, segment) {
6880
6909
  segment.status = 5;
6881
6910
  var keyPath = task.keyPath,
@@ -6887,51 +6916,22 @@
6887
6916
  (request.completedRootSegment.status = 5);
6888
6917
  else {
6889
6918
  if (null !== boundary && 0 === boundary.status) {
6890
- boundary.status = 5;
6891
- boundary.rootSegmentID = request.nextSegmentId++;
6892
- var boundaryKeyPath = boundary.trackedContentKeyPath;
6893
- if (null === boundaryKeyPath)
6894
- throw Error(
6895
- "It should not be possible to postpone at the root. This is a bug in React."
6896
- );
6897
- var fallbackReplayNode = boundary.trackedFallbackNode,
6898
- children = [];
6899
- if (boundaryKeyPath === keyPath && -1 === task.childIndex) {
6919
+ var boundaryNode = trackPostponedBoundary(
6920
+ request,
6921
+ trackedPostpones,
6922
+ boundary
6923
+ );
6924
+ if (
6925
+ boundary.trackedContentKeyPath === keyPath &&
6926
+ -1 === task.childIndex
6927
+ ) {
6900
6928
  -1 === segment.id &&
6901
6929
  (segment.id = segment.parentFlushed
6902
6930
  ? boundary.rootSegmentID
6903
6931
  : request.nextSegmentId++);
6904
- segment = [
6905
- boundaryKeyPath[1],
6906
- boundaryKeyPath[2],
6907
- children,
6908
- segment.id,
6909
- fallbackReplayNode,
6910
- boundary.rootSegmentID
6911
- ];
6912
- trackedPostpones.workingMap.set(boundaryKeyPath, segment);
6913
- addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
6932
+ boundaryNode[3] = segment.id;
6914
6933
  return;
6915
6934
  }
6916
- var _boundaryNode = trackedPostpones.workingMap.get(boundaryKeyPath);
6917
- void 0 === _boundaryNode
6918
- ? ((_boundaryNode = [
6919
- boundaryKeyPath[1],
6920
- boundaryKeyPath[2],
6921
- children,
6922
- null,
6923
- fallbackReplayNode,
6924
- boundary.rootSegmentID
6925
- ]),
6926
- trackedPostpones.workingMap.set(boundaryKeyPath, _boundaryNode),
6927
- addToReplayParent(
6928
- _boundaryNode,
6929
- boundaryKeyPath[0],
6930
- trackedPostpones
6931
- ))
6932
- : ((boundaryKeyPath = _boundaryNode),
6933
- (boundaryKeyPath[4] = fallbackReplayNode),
6934
- (boundaryKeyPath[5] = boundary.rootSegmentID));
6935
6935
  }
6936
6936
  -1 === segment.id &&
6937
6937
  (segment.id =
@@ -6958,15 +6958,15 @@
6958
6958
  }
6959
6959
  else if (
6960
6960
  ((boundary = trackedPostpones.workingMap),
6961
- (boundaryKeyPath = boundary.get(keyPath)),
6962
- void 0 === boundaryKeyPath)
6961
+ (boundaryNode = boundary.get(keyPath)),
6962
+ void 0 === boundaryNode)
6963
6963
  )
6964
6964
  (request = {}),
6965
- (boundaryKeyPath = [keyPath[1], keyPath[2], [], request]),
6966
- boundary.set(keyPath, boundaryKeyPath),
6967
- addToReplayParent(boundaryKeyPath, keyPath[0], trackedPostpones);
6968
- else if (((request = boundaryKeyPath[3]), null === request))
6969
- request = boundaryKeyPath[3] = {};
6965
+ (boundaryNode = [keyPath[1], keyPath[2], [], request]),
6966
+ boundary.set(keyPath, boundaryNode),
6967
+ addToReplayParent(boundaryNode, keyPath[0], trackedPostpones);
6968
+ else if (((request = boundaryNode[3]), null === request))
6969
+ request = boundaryNode[3] = {};
6970
6970
  else if ("number" === typeof request)
6971
6971
  throw Error(
6972
6972
  "It should not be possible to postpone both at the root of an element as well as a slot below. This is a bug in React."
@@ -7518,45 +7518,72 @@
7518
7518
  }
7519
7519
  request.pendingRootTasks--;
7520
7520
  0 === request.pendingRootTasks && completeShell(request);
7521
- } else
7522
- boundary.pendingTasks--,
7523
- 4 !== boundary.status &&
7524
- (0 === boundary.pendingTasks
7525
- ? (0 === boundary.status && (boundary.status = 1),
7526
- null !== segment &&
7527
- segment.parentFlushed &&
7528
- 1 === segment.status &&
7529
- queueCompletedSegment(boundary, segment),
7530
- boundary.parentFlushed &&
7531
- request.completedBoundaries.push(boundary),
7532
- 1 === boundary.status &&
7533
- ((row = boundary.row),
7534
- null !== row &&
7535
- hoistHoistables(row.hoistables, boundary.contentState),
7536
- 500 < boundary.byteSize ||
7537
- (boundary.fallbackAbortableTasks.forEach(
7538
- abortTaskSoft,
7539
- request
7540
- ),
7541
- boundary.fallbackAbortableTasks.clear(),
7542
- null !== row &&
7543
- 0 === --row.pendingTasks &&
7544
- finishSuspenseListRow(request, row)),
7545
- 0 === request.pendingRootTasks &&
7546
- null === request.trackedPostpones &&
7547
- null !== boundary.contentPreamble &&
7548
- preparePreamble(request)))
7549
- : (null !== segment &&
7550
- segment.parentFlushed &&
7551
- 1 === segment.status &&
7552
- (queueCompletedSegment(boundary, segment),
7553
- 1 === boundary.completedSegments.length &&
7554
- boundary.parentFlushed &&
7555
- request.partialBoundaries.push(boundary)),
7556
- (boundary = boundary.row),
7557
- null !== boundary &&
7558
- boundary.together &&
7559
- tryToResolveTogetherRow(request, boundary)));
7521
+ } else if ((boundary.pendingTasks--, 4 !== boundary.status))
7522
+ if (0 === boundary.pendingTasks)
7523
+ if (
7524
+ (0 === boundary.status && (boundary.status = 1),
7525
+ null !== segment &&
7526
+ segment.parentFlushed &&
7527
+ 1 === segment.status &&
7528
+ queueCompletedSegment(boundary, segment),
7529
+ boundary.parentFlushed &&
7530
+ request.completedBoundaries.push(boundary),
7531
+ 1 === boundary.status)
7532
+ )
7533
+ (row = boundary.row),
7534
+ null !== row &&
7535
+ hoistHoistables(row.hoistables, boundary.contentState),
7536
+ 500 < boundary.byteSize ||
7537
+ (boundary.fallbackAbortableTasks.forEach(
7538
+ abortTaskSoft,
7539
+ request
7540
+ ),
7541
+ boundary.fallbackAbortableTasks.clear(),
7542
+ null !== row &&
7543
+ 0 === --row.pendingTasks &&
7544
+ finishSuspenseListRow(request, row)),
7545
+ 0 === request.pendingRootTasks &&
7546
+ null === request.trackedPostpones &&
7547
+ null !== boundary.contentPreamble &&
7548
+ preparePreamble(request);
7549
+ else {
7550
+ if (
7551
+ 5 === boundary.status &&
7552
+ ((boundary = boundary.row), null !== boundary)
7553
+ ) {
7554
+ if (null !== request.trackedPostpones) {
7555
+ row = request.trackedPostpones;
7556
+ var postponedRow = boundary.next;
7557
+ if (
7558
+ null !== postponedRow &&
7559
+ ((segment = postponedRow.boundaries), null !== segment)
7560
+ )
7561
+ for (
7562
+ postponedRow.boundaries = null, postponedRow = 0;
7563
+ postponedRow < segment.length;
7564
+ postponedRow++
7565
+ ) {
7566
+ var postponedBoundary = segment[postponedRow];
7567
+ trackPostponedBoundary(request, row, postponedBoundary);
7568
+ finishedTask(request, postponedBoundary, null, null);
7569
+ }
7570
+ }
7571
+ 0 === --boundary.pendingTasks &&
7572
+ finishSuspenseListRow(request, boundary);
7573
+ }
7574
+ }
7575
+ else
7576
+ null !== segment &&
7577
+ segment.parentFlushed &&
7578
+ 1 === segment.status &&
7579
+ (queueCompletedSegment(boundary, segment),
7580
+ 1 === boundary.completedSegments.length &&
7581
+ boundary.parentFlushed &&
7582
+ request.partialBoundaries.push(boundary)),
7583
+ (boundary = boundary.row),
7584
+ null !== boundary &&
7585
+ boundary.together &&
7586
+ tryToResolveTogetherRow(request, boundary);
7560
7587
  0 === request.allPendingTasks && completeAll(request);
7561
7588
  }
7562
7589
  function performWork(request$jscomp$1) {
@@ -8080,13 +8107,13 @@
8080
8107
  0 === (completedSegments.instructions & 2) &&
8081
8108
  ((completedSegments.instructions |= 2),
8082
8109
  destination.push(
8083
- '$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8110
+ '$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8084
8111
  )),
8085
8112
  requiresViewTransitions &&
8086
8113
  0 === (completedSegments.instructions & 256) &&
8087
8114
  ((completedSegments.instructions |= 256),
8088
8115
  destination.push(
8089
- "$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
8116
+ '$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
8090
8117
  )),
8091
8118
  0 === (completedSegments.instructions & 8)
8092
8119
  ? ((completedSegments.instructions |= 8),
@@ -8097,13 +8124,13 @@
8097
8124
  : (0 === (completedSegments.instructions & 2) &&
8098
8125
  ((completedSegments.instructions |= 2),
8099
8126
  destination.push(
8100
- '$RB=[];$RV=function(){$RT=performance.now();var d=$RB;$RB=[];for(var a=0;a<d.length;a+=2){var b=d[a],h=d[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var c=b.data;if("/$"===c||"/&"===c)if(0===g)break;else g--;else"$"!==c&&"$?"!==c&&"$~"!==c&&"$!"!==c&&"&"!==c||g++}c=b.nextSibling;e.removeChild(b);b=c}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}};$RC=function(d,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),d=document.getElementById(d))d.previousSibling.data="$~",$RB.push(d,a),2===$RB.length&&setTimeout($RV,("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8127
+ '$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};'
8101
8128
  )),
8102
8129
  requiresViewTransitions &&
8103
8130
  0 === (completedSegments.instructions & 256) &&
8104
8131
  ((completedSegments.instructions |= 256),
8105
8132
  destination.push(
8106
- "$RV=function(a){try{var b=document.__reactViewTransition;if(b){b.finished.then($RV,$RV);return}if(window._useVT){var c=document.__reactViewTransition=document.startViewTransition({update:a,types:[]});c.finished.finally(function(){document.__reactViewTransition===c&&(document.__reactViewTransition=null)});return}}catch(d){}a()}.bind(null,$RV);"
8133
+ '$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
8107
8134
  )),
8108
8135
  destination.push('$RC("')))
8109
8136
  : requiresStyleInsertion
@@ -9610,5 +9637,5 @@
9610
9637
  });
9611
9638
  });
9612
9639
  };
9613
- exports.version = "19.2.0-experimental-23884812-20250520";
9640
+ exports.version = "19.2.0-experimental-99efc627-20250523";
9614
9641
  })();