react-dom 19.2.0-canary-4a45ba92-20250515 → 19.2.0-canary-462d08f9-20250517
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.
- package/cjs/react-dom-client.development.js +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +39 -22
- package/cjs/react-dom-server-legacy.browser.production.js +39 -18
- package/cjs/react-dom-server-legacy.node.development.js +39 -22
- package/cjs/react-dom-server-legacy.node.production.js +39 -18
- package/cjs/react-dom-server.browser.development.js +46 -27
- package/cjs/react-dom-server.browser.production.js +45 -24
- package/cjs/react-dom-server.bun.development.js +41 -23
- package/cjs/react-dom-server.bun.production.js +41 -20
- package/cjs/react-dom-server.edge.development.js +46 -27
- package/cjs/react-dom-server.edge.production.js +45 -24
- package/cjs/react-dom-server.node.development.js +46 -27
- package/cjs/react-dom-server.node.production.js +45 -24
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -685,7 +685,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
685
685
|
nameIdx: 0
|
686
686
|
};
|
687
687
|
}
|
688
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
688
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
689
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
689
690
|
return createFormatContext(
|
690
691
|
parentContext.insertionMode,
|
691
692
|
parentContext.selectedValue,
|
@@ -693,7 +694,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
|
|
693
694
|
getSuspenseViewTransition(parentContext.viewTransition)
|
694
695
|
);
|
695
696
|
}
|
696
|
-
function getSuspenseContentFormatContext(parentContext) {
|
697
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
697
698
|
return createFormatContext(
|
698
699
|
parentContext.insertionMode,
|
699
700
|
parentContext.selectedValue,
|
@@ -2529,12 +2530,12 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
2529
2530
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
2530
2531
|
stringToPrecomputedChunk('" data-pid="');
|
2531
2532
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
2532
|
-
|
2533
|
-
|
2534
|
-
|
2535
|
-
|
2536
|
-
|
2537
|
-
|
2533
|
+
'$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())};'
|
2534
|
+
);
|
2535
|
+
stringToPrecomputedChunk(
|
2536
|
+
"$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);"
|
2537
|
+
);
|
2538
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2538
2539
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
2539
2540
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
2540
2541
|
),
|
@@ -4661,7 +4662,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4661
4662
|
type = task.keyPath;
|
4662
4663
|
newProps = task.formatContext;
|
4663
4664
|
task.keyPath = keyPath;
|
4664
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4665
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4666
|
+
request.resumableState,
|
4667
|
+
newProps
|
4668
|
+
);
|
4665
4669
|
keyPath = props.children;
|
4666
4670
|
try {
|
4667
4671
|
renderNode(request, task, keyPath, -1);
|
@@ -4716,7 +4720,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4716
4720
|
task.blockedSegment = boundarySegment;
|
4717
4721
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
4718
4722
|
task.keyPath = newProps;
|
4719
|
-
task.formatContext = getSuspenseFallbackFormatContext(
|
4723
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
4724
|
+
request.resumableState,
|
4725
|
+
ref
|
4726
|
+
);
|
4720
4727
|
boundarySegment.status = 6;
|
4721
4728
|
try {
|
4722
4729
|
renderNode(request, task, fallback, -1),
|
@@ -4747,7 +4754,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4747
4754
|
newBoundary.contentState,
|
4748
4755
|
task.abortSet,
|
4749
4756
|
keyPath,
|
4750
|
-
getSuspenseContentFormatContext(
|
4757
|
+
getSuspenseContentFormatContext(
|
4758
|
+
request.resumableState,
|
4759
|
+
task.formatContext
|
4760
|
+
),
|
4751
4761
|
task.context,
|
4752
4762
|
task.treeContext,
|
4753
4763
|
task.componentStack
|
@@ -4760,7 +4770,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4760
4770
|
task.hoistableState = newBoundary.contentState;
|
4761
4771
|
task.blockedSegment = contentRootSegment;
|
4762
4772
|
task.keyPath = keyPath;
|
4763
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4773
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4774
|
+
request.resumableState,
|
4775
|
+
ref
|
4776
|
+
);
|
4764
4777
|
contentRootSegment.status = 6;
|
4765
4778
|
try {
|
4766
4779
|
if (
|
@@ -4814,7 +4827,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4814
4827
|
newBoundary.fallbackState,
|
4815
4828
|
fallbackAbortSet,
|
4816
4829
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4817
|
-
getSuspenseFallbackFormatContext(
|
4830
|
+
getSuspenseFallbackFormatContext(
|
4831
|
+
request.resumableState,
|
4832
|
+
task.formatContext
|
4833
|
+
),
|
4818
4834
|
task.context,
|
4819
4835
|
task.treeContext,
|
4820
4836
|
task.componentStack
|
@@ -5061,8 +5077,10 @@ function retryNode(request, task) {
|
|
5061
5077
|
task.blockedBoundary = props;
|
5062
5078
|
task.hoistableState = props.contentState;
|
5063
5079
|
task.keyPath = key;
|
5064
|
-
task.formatContext =
|
5065
|
-
|
5080
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5081
|
+
request.resumableState,
|
5082
|
+
prevContext
|
5083
|
+
);
|
5066
5084
|
task.replay = {
|
5067
5085
|
nodes: ref,
|
5068
5086
|
slots: name,
|
@@ -5115,7 +5133,10 @@ function retryNode(request, task) {
|
|
5115
5133
|
props.fallbackState,
|
5116
5134
|
fallbackAbortSet,
|
5117
5135
|
[key[0], "Suspense Fallback", key[2]],
|
5118
|
-
getSuspenseFallbackFormatContext(
|
5136
|
+
getSuspenseFallbackFormatContext(
|
5137
|
+
request.resumableState,
|
5138
|
+
task.formatContext
|
5139
|
+
),
|
5119
5140
|
task.context,
|
5120
5141
|
task.treeContext,
|
5121
5142
|
task.componentStack
|
@@ -5639,6 +5660,7 @@ function finishedSegment(request, boundary, segment) {
|
|
5639
5660
|
}
|
5640
5661
|
}
|
5641
5662
|
function finishedTask(request, boundary, segment) {
|
5663
|
+
request.allPendingTasks--;
|
5642
5664
|
if (null === boundary) {
|
5643
5665
|
if (null !== segment && segment.parentFlushed) {
|
5644
5666
|
if (null !== request.completedRootSegment)
|
@@ -5678,7 +5700,6 @@ function finishedTask(request, boundary, segment) {
|
|
5678
5700
|
1 === boundary.completedSegments.length &&
|
5679
5701
|
boundary.parentFlushed &&
|
5680
5702
|
request.partialBoundaries.push(boundary)));
|
5681
|
-
request.allPendingTasks--;
|
5682
5703
|
0 === request.allPendingTasks && completeAll(request);
|
5683
5704
|
}
|
5684
5705
|
function performWork(request$jscomp$2) {
|
@@ -6085,10 +6106,10 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
6085
6106
|
? ((completedSegments.instructions |= 8),
|
6086
6107
|
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
6087
6108
|
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
6088
|
-
: 0 === (completedSegments.instructions & 2)
|
6089
|
-
|
6090
|
-
writeChunk(destination,
|
6091
|
-
|
6109
|
+
: (0 === (completedSegments.instructions & 2) &&
|
6110
|
+
((completedSegments.instructions |= 2),
|
6111
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
6112
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
6092
6113
|
completedSegments = stringToChunk(i.toString(16));
|
6093
6114
|
writeChunk(destination, request.boundaryPrefix);
|
6094
6115
|
writeChunk(destination, completedSegments);
|
@@ -6477,11 +6498,11 @@ function abort(request, reason) {
|
|
6477
6498
|
}
|
6478
6499
|
function ensureCorrectIsomorphicReactVersion() {
|
6479
6500
|
var isomorphicReactPackageVersion = React.version;
|
6480
|
-
if ("19.2.0-canary-
|
6501
|
+
if ("19.2.0-canary-462d08f9-20250517" !== isomorphicReactPackageVersion)
|
6481
6502
|
throw Error(
|
6482
6503
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6483
6504
|
(isomorphicReactPackageVersion +
|
6484
|
-
"\n - react-dom: 19.2.0-canary-
|
6505
|
+
"\n - react-dom: 19.2.0-canary-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
|
6485
6506
|
);
|
6486
6507
|
}
|
6487
6508
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6627,4 +6648,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6627
6648
|
startWork(request);
|
6628
6649
|
});
|
6629
6650
|
};
|
6630
|
-
exports.version = "19.2.0-canary-
|
6651
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
@@ -1094,7 +1094,8 @@
|
|
1094
1094
|
nameIdx: 0
|
1095
1095
|
};
|
1096
1096
|
}
|
1097
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
1097
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
1098
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
1098
1099
|
return createFormatContext(
|
1099
1100
|
parentContext.insertionMode,
|
1100
1101
|
parentContext.selectedValue,
|
@@ -1102,7 +1103,7 @@
|
|
1102
1103
|
getSuspenseViewTransition(parentContext.viewTransition)
|
1103
1104
|
);
|
1104
1105
|
}
|
1105
|
-
function getSuspenseContentFormatContext(parentContext) {
|
1106
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
1106
1107
|
return createFormatContext(
|
1107
1108
|
parentContext.insertionMode,
|
1108
1109
|
parentContext.selectedValue,
|
@@ -5513,8 +5514,10 @@
|
|
5513
5514
|
var _prevKeyPath = task.keyPath,
|
5514
5515
|
_prevContext = task.formatContext;
|
5515
5516
|
task.keyPath = keyPath;
|
5516
|
-
task.formatContext =
|
5517
|
-
|
5517
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5518
|
+
request.resumableState,
|
5519
|
+
_prevContext
|
5520
|
+
);
|
5518
5521
|
var _content = props.children;
|
5519
5522
|
try {
|
5520
5523
|
renderNode(request, task, _content, -1);
|
@@ -5587,8 +5590,10 @@
|
|
5587
5590
|
task.blockedSegment = boundarySegment;
|
5588
5591
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5589
5592
|
task.keyPath = fallbackKeyPath;
|
5590
|
-
task.formatContext =
|
5591
|
-
|
5593
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
5594
|
+
request.resumableState,
|
5595
|
+
prevContext$jscomp$0
|
5596
|
+
);
|
5592
5597
|
boundarySegment.status = 6;
|
5593
5598
|
try {
|
5594
5599
|
renderNode(request, task, fallback, -1),
|
@@ -5619,7 +5624,10 @@
|
|
5619
5624
|
newBoundary.contentState,
|
5620
5625
|
task.abortSet,
|
5621
5626
|
keyPath,
|
5622
|
-
getSuspenseContentFormatContext(
|
5627
|
+
getSuspenseContentFormatContext(
|
5628
|
+
request.resumableState,
|
5629
|
+
task.formatContext
|
5630
|
+
),
|
5623
5631
|
task.context,
|
5624
5632
|
task.treeContext,
|
5625
5633
|
task.componentStack,
|
@@ -5634,8 +5642,10 @@
|
|
5634
5642
|
task.hoistableState = newBoundary.contentState;
|
5635
5643
|
task.blockedSegment = contentRootSegment;
|
5636
5644
|
task.keyPath = keyPath;
|
5637
|
-
task.formatContext =
|
5638
|
-
|
5645
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5646
|
+
request.resumableState,
|
5647
|
+
prevContext$jscomp$0
|
5648
|
+
);
|
5639
5649
|
contentRootSegment.status = 6;
|
5640
5650
|
try {
|
5641
5651
|
if (
|
@@ -5697,7 +5707,10 @@
|
|
5697
5707
|
newBoundary.fallbackState,
|
5698
5708
|
fallbackAbortSet,
|
5699
5709
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5700
|
-
getSuspenseFallbackFormatContext(
|
5710
|
+
getSuspenseFallbackFormatContext(
|
5711
|
+
request.resumableState,
|
5712
|
+
task.formatContext
|
5713
|
+
),
|
5701
5714
|
task.context,
|
5702
5715
|
task.treeContext,
|
5703
5716
|
task.componentStack,
|
@@ -5961,7 +5974,10 @@
|
|
5961
5974
|
task.blockedBoundary = props;
|
5962
5975
|
task.hoistableState = props.contentState;
|
5963
5976
|
task.keyPath = keyPath;
|
5964
|
-
task.formatContext = getSuspenseContentFormatContext(
|
5977
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5978
|
+
request.resumableState,
|
5979
|
+
prevContext
|
5980
|
+
);
|
5965
5981
|
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
5966
5982
|
try {
|
5967
5983
|
renderNode(request, task, content, -1);
|
@@ -6007,7 +6023,10 @@
|
|
6007
6023
|
props.fallbackState,
|
6008
6024
|
fallbackAbortSet,
|
6009
6025
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
6010
|
-
getSuspenseFallbackFormatContext(
|
6026
|
+
getSuspenseFallbackFormatContext(
|
6027
|
+
request.resumableState,
|
6028
|
+
task.formatContext
|
6029
|
+
),
|
6011
6030
|
task.context,
|
6012
6031
|
task.treeContext,
|
6013
6032
|
task.componentStack,
|
@@ -6773,6 +6792,7 @@
|
|
6773
6792
|
}
|
6774
6793
|
}
|
6775
6794
|
function finishedTask(request, boundary, segment) {
|
6795
|
+
request.allPendingTasks--;
|
6776
6796
|
if (null === boundary) {
|
6777
6797
|
if (null !== segment && segment.parentFlushed) {
|
6778
6798
|
if (null !== request.completedRootSegment)
|
@@ -6812,7 +6832,6 @@
|
|
6812
6832
|
1 === boundary.completedSegments.length &&
|
6813
6833
|
boundary.parentFlushed &&
|
6814
6834
|
request.partialBoundaries.push(boundary)));
|
6815
|
-
request.allPendingTasks--;
|
6816
6835
|
0 === request.allPendingTasks && completeAll(request);
|
6817
6836
|
}
|
6818
6837
|
function performWork(request$jscomp$2) {
|
@@ -7305,11 +7324,11 @@
|
|
7305
7324
|
completeBoundaryWithStylesScript1FullPartial
|
7306
7325
|
))
|
7307
7326
|
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
7308
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7309
|
-
NothingSent
|
7310
|
-
|
7311
|
-
writeChunk(destination,
|
7312
|
-
|
7327
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7328
|
+
NothingSent &&
|
7329
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
7330
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
7331
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
7313
7332
|
completedSegments = i.toString(16);
|
7314
7333
|
writeChunk(destination, request.boundaryPrefix);
|
7315
7334
|
writeChunk(destination, completedSegments);
|
@@ -7787,11 +7806,11 @@
|
|
7787
7806
|
}
|
7788
7807
|
function ensureCorrectIsomorphicReactVersion() {
|
7789
7808
|
var isomorphicReactPackageVersion = React.version;
|
7790
|
-
if ("19.2.0-canary-
|
7809
|
+
if ("19.2.0-canary-462d08f9-20250517" !== isomorphicReactPackageVersion)
|
7791
7810
|
throw Error(
|
7792
7811
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7793
7812
|
(isomorphicReactPackageVersion +
|
7794
|
-
"\n - react-dom: 19.2.0-canary-
|
7813
|
+
"\n - react-dom: 19.2.0-canary-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
|
7795
7814
|
);
|
7796
7815
|
}
|
7797
7816
|
function createDrainHandler(destination, request) {
|
@@ -9069,12 +9088,12 @@
|
|
9069
9088
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
9070
9089
|
stringToPrecomputedChunk('" data-pid="');
|
9071
9090
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
9072
|
-
|
9073
|
-
|
9074
|
-
|
9075
|
-
|
9076
|
-
|
9077
|
-
|
9091
|
+
'$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())};'
|
9092
|
+
);
|
9093
|
+
stringToPrecomputedChunk(
|
9094
|
+
"$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);"
|
9095
|
+
);
|
9096
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
9078
9097
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
9079
9098
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
9080
9099
|
),
|
@@ -9472,5 +9491,5 @@
|
|
9472
9491
|
}
|
9473
9492
|
};
|
9474
9493
|
};
|
9475
|
-
exports.version = "19.2.0-canary-
|
9494
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
9476
9495
|
})();
|
@@ -635,7 +635,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
635
635
|
nameIdx: 0
|
636
636
|
};
|
637
637
|
}
|
638
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
638
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
639
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
639
640
|
return createFormatContext(
|
640
641
|
parentContext.insertionMode,
|
641
642
|
parentContext.selectedValue,
|
@@ -643,7 +644,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
|
|
643
644
|
getSuspenseViewTransition(parentContext.viewTransition)
|
644
645
|
);
|
645
646
|
}
|
646
|
-
function getSuspenseContentFormatContext(parentContext) {
|
647
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
647
648
|
return createFormatContext(
|
648
649
|
parentContext.insertionMode,
|
649
650
|
parentContext.selectedValue,
|
@@ -2449,12 +2450,12 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
2449
2450
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
2450
2451
|
stringToPrecomputedChunk('" data-pid="');
|
2451
2452
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
2452
|
-
|
2453
|
-
|
2454
|
-
|
2455
|
-
|
2456
|
-
|
2457
|
-
|
2453
|
+
'$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())};'
|
2454
|
+
);
|
2455
|
+
stringToPrecomputedChunk(
|
2456
|
+
"$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);"
|
2457
|
+
);
|
2458
|
+
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2458
2459
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
2459
2460
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("'
|
2460
2461
|
),
|
@@ -4564,7 +4565,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4564
4565
|
type = task.keyPath;
|
4565
4566
|
newProps = task.formatContext;
|
4566
4567
|
task.keyPath = keyPath;
|
4567
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4568
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4569
|
+
request.resumableState,
|
4570
|
+
newProps
|
4571
|
+
);
|
4568
4572
|
keyPath = props.children;
|
4569
4573
|
try {
|
4570
4574
|
renderNode(request, task, keyPath, -1);
|
@@ -4619,7 +4623,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4619
4623
|
task.blockedSegment = boundarySegment;
|
4620
4624
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
4621
4625
|
task.keyPath = newProps;
|
4622
|
-
task.formatContext = getSuspenseFallbackFormatContext(
|
4626
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
4627
|
+
request.resumableState,
|
4628
|
+
ref
|
4629
|
+
);
|
4623
4630
|
boundarySegment.status = 6;
|
4624
4631
|
try {
|
4625
4632
|
renderNode(request, task, fallback, -1),
|
@@ -4650,7 +4657,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4650
4657
|
newBoundary.contentState,
|
4651
4658
|
task.abortSet,
|
4652
4659
|
keyPath,
|
4653
|
-
getSuspenseContentFormatContext(
|
4660
|
+
getSuspenseContentFormatContext(
|
4661
|
+
request.resumableState,
|
4662
|
+
task.formatContext
|
4663
|
+
),
|
4654
4664
|
task.context,
|
4655
4665
|
task.treeContext,
|
4656
4666
|
task.componentStack
|
@@ -4663,7 +4673,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4663
4673
|
task.hoistableState = newBoundary.contentState;
|
4664
4674
|
task.blockedSegment = contentRootSegment;
|
4665
4675
|
task.keyPath = keyPath;
|
4666
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4676
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4677
|
+
request.resumableState,
|
4678
|
+
ref
|
4679
|
+
);
|
4667
4680
|
contentRootSegment.status = 6;
|
4668
4681
|
try {
|
4669
4682
|
if (
|
@@ -4717,7 +4730,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4717
4730
|
newBoundary.fallbackState,
|
4718
4731
|
fallbackAbortSet,
|
4719
4732
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4720
|
-
getSuspenseFallbackFormatContext(
|
4733
|
+
getSuspenseFallbackFormatContext(
|
4734
|
+
request.resumableState,
|
4735
|
+
task.formatContext
|
4736
|
+
),
|
4721
4737
|
task.context,
|
4722
4738
|
task.treeContext,
|
4723
4739
|
task.componentStack
|
@@ -4964,8 +4980,10 @@ function retryNode(request, task) {
|
|
4964
4980
|
task.blockedBoundary = props;
|
4965
4981
|
task.hoistableState = props.contentState;
|
4966
4982
|
task.keyPath = key;
|
4967
|
-
task.formatContext =
|
4968
|
-
|
4983
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4984
|
+
request.resumableState,
|
4985
|
+
prevContext
|
4986
|
+
);
|
4969
4987
|
task.replay = {
|
4970
4988
|
nodes: ref,
|
4971
4989
|
slots: name,
|
@@ -5018,7 +5036,10 @@ function retryNode(request, task) {
|
|
5018
5036
|
props.fallbackState,
|
5019
5037
|
fallbackAbortSet,
|
5020
5038
|
[key[0], "Suspense Fallback", key[2]],
|
5021
|
-
getSuspenseFallbackFormatContext(
|
5039
|
+
getSuspenseFallbackFormatContext(
|
5040
|
+
request.resumableState,
|
5041
|
+
task.formatContext
|
5042
|
+
),
|
5022
5043
|
task.context,
|
5023
5044
|
task.treeContext,
|
5024
5045
|
task.componentStack
|
@@ -5542,6 +5563,7 @@ function finishedSegment(request, boundary, segment) {
|
|
5542
5563
|
}
|
5543
5564
|
}
|
5544
5565
|
function finishedTask(request, boundary, segment) {
|
5566
|
+
request.allPendingTasks--;
|
5545
5567
|
if (null === boundary) {
|
5546
5568
|
if (null !== segment && segment.parentFlushed) {
|
5547
5569
|
if (null !== request.completedRootSegment)
|
@@ -5581,7 +5603,6 @@ function finishedTask(request, boundary, segment) {
|
|
5581
5603
|
1 === boundary.completedSegments.length &&
|
5582
5604
|
boundary.parentFlushed &&
|
5583
5605
|
request.partialBoundaries.push(boundary)));
|
5584
|
-
request.allPendingTasks--;
|
5585
5606
|
0 === request.allPendingTasks && completeAll(request);
|
5586
5607
|
}
|
5587
5608
|
function performWork(request$jscomp$2) {
|
@@ -5988,10 +6009,10 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5988
6009
|
? ((completedSegments.instructions |= 8),
|
5989
6010
|
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial))
|
5990
6011
|
: writeChunk(destination, completeBoundaryWithStylesScript1Partial))
|
5991
|
-
: 0 === (completedSegments.instructions & 2)
|
5992
|
-
|
5993
|
-
writeChunk(destination,
|
5994
|
-
|
6012
|
+
: (0 === (completedSegments.instructions & 2) &&
|
6013
|
+
((completedSegments.instructions |= 2),
|
6014
|
+
writeChunk(destination, completeBoundaryScriptFunctionOnly)),
|
6015
|
+
writeChunk(destination, completeBoundaryScript1Partial));
|
5995
6016
|
completedSegments = i.toString(16);
|
5996
6017
|
writeChunk(destination, request.boundaryPrefix);
|
5997
6018
|
writeChunk(destination, completedSegments);
|
@@ -6372,11 +6393,11 @@ function abort(request, reason) {
|
|
6372
6393
|
}
|
6373
6394
|
function ensureCorrectIsomorphicReactVersion() {
|
6374
6395
|
var isomorphicReactPackageVersion = React.version;
|
6375
|
-
if ("19.2.0-canary-
|
6396
|
+
if ("19.2.0-canary-462d08f9-20250517" !== isomorphicReactPackageVersion)
|
6376
6397
|
throw Error(
|
6377
6398
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6378
6399
|
(isomorphicReactPackageVersion +
|
6379
|
-
"\n - react-dom: 19.2.0-canary-
|
6400
|
+
"\n - react-dom: 19.2.0-canary-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
|
6380
6401
|
);
|
6381
6402
|
}
|
6382
6403
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6525,4 +6546,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6525
6546
|
}
|
6526
6547
|
};
|
6527
6548
|
};
|
6528
|
-
exports.version = "19.2.0-canary-
|
6549
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.2.0-canary-
|
419
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.2.0-canary-
|
210
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.2.0-canary-
|
3
|
+
"version": "19.2.0-canary-462d08f9-20250517",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.27.0-canary-
|
20
|
+
"scheduler": "0.27.0-canary-462d08f9-20250517"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-462d08f9-20250517"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|