react-dom 19.2.0-canary-23884812-20250520 → 19.2.0-canary-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.
- package/cjs/react-dom-client.development.js +7 -7
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +7 -7
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +132 -53
- package/cjs/react-dom-server-legacy.browser.production.js +152 -85
- package/cjs/react-dom-server-legacy.node.development.js +132 -53
- package/cjs/react-dom-server-legacy.node.production.js +155 -85
- package/cjs/react-dom-server.browser.development.js +135 -56
- package/cjs/react-dom-server.browser.production.js +134 -67
- package/cjs/react-dom-server.bun.development.js +127 -58
- package/cjs/react-dom-server.bun.production.js +140 -70
- package/cjs/react-dom-server.edge.development.js +135 -56
- package/cjs/react-dom-server.edge.production.js +137 -67
- package/cjs/react-dom-server.node.development.js +135 -56
- package/cjs/react-dom-server.node.production.js +137 -67
- 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
@@ -634,8 +634,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
634
634
|
? null
|
635
635
|
: {
|
636
636
|
update: parentViewTransition.update,
|
637
|
-
enter:
|
638
|
-
exit:
|
637
|
+
enter: "none",
|
638
|
+
exit: "none",
|
639
639
|
share: parentViewTransition.update,
|
640
640
|
name: parentViewTransition.autoName,
|
641
641
|
autoName: parentViewTransition.autoName,
|
@@ -2457,10 +2457,10 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
2457
2457
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
2458
2458
|
stringToPrecomputedChunk('" data-pid="');
|
2459
2459
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
2460
|
-
'$RB=[];$RV=function(){$RT=performance.now();
|
2460
|
+
'$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())};'
|
2461
2461
|
);
|
2462
2462
|
stringToPrecomputedChunk(
|
2463
|
-
|
2463
|
+
'$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);'
|
2464
2464
|
);
|
2465
2465
|
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2466
2466
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
@@ -5558,15 +5558,15 @@ function renderNode(request, task, node, childIndex) {
|
|
5558
5558
|
chunkLength = segment.chunks.length;
|
5559
5559
|
try {
|
5560
5560
|
return renderNodeDestructive(request, task, node, childIndex);
|
5561
|
-
} catch (thrownValue$
|
5561
|
+
} catch (thrownValue$60) {
|
5562
5562
|
if (
|
5563
5563
|
(resetHooksState(),
|
5564
5564
|
(segment.children.length = childrenLength),
|
5565
5565
|
(segment.chunks.length = chunkLength),
|
5566
5566
|
(node =
|
5567
|
-
thrownValue$
|
5567
|
+
thrownValue$60 === SuspenseException
|
5568
5568
|
? getSuspendedThenable()
|
5569
|
-
: thrownValue$
|
5569
|
+
: thrownValue$60),
|
5570
5570
|
"object" === typeof node && null !== node)
|
5571
5571
|
) {
|
5572
5572
|
if ("function" === typeof node.then) {
|
@@ -5820,62 +5820,120 @@ function finishedSegment(request, boundary, segment) {
|
|
5820
5820
|
: (boundary.byteSize += segmentByteSize);
|
5821
5821
|
}
|
5822
5822
|
}
|
5823
|
-
function finishedTask(request, boundary, row, segment) {
|
5823
|
+
function finishedTask(request$jscomp$0, boundary, row, segment) {
|
5824
5824
|
null !== row &&
|
5825
5825
|
(0 === --row.pendingTasks
|
5826
|
-
? finishSuspenseListRow(request, row)
|
5827
|
-
: row.together && tryToResolveTogetherRow(request, row));
|
5828
|
-
request.allPendingTasks--;
|
5826
|
+
? finishSuspenseListRow(request$jscomp$0, row)
|
5827
|
+
: row.together && tryToResolveTogetherRow(request$jscomp$0, row));
|
5828
|
+
request$jscomp$0.allPendingTasks--;
|
5829
5829
|
if (null === boundary) {
|
5830
5830
|
if (null !== segment && segment.parentFlushed) {
|
5831
|
-
if (null !== request.completedRootSegment)
|
5831
|
+
if (null !== request$jscomp$0.completedRootSegment)
|
5832
5832
|
throw Error(
|
5833
5833
|
"There can only be one root segment. This is a bug in React."
|
5834
5834
|
);
|
5835
|
-
request.completedRootSegment = segment;
|
5835
|
+
request$jscomp$0.completedRootSegment = segment;
|
5836
5836
|
}
|
5837
|
-
request.pendingRootTasks--;
|
5838
|
-
0 === request.pendingRootTasks && completeShell(request);
|
5839
|
-
} else
|
5840
|
-
boundary.pendingTasks
|
5841
|
-
|
5842
|
-
(0 === boundary.
|
5843
|
-
|
5844
|
-
|
5845
|
-
|
5846
|
-
|
5847
|
-
|
5848
|
-
|
5849
|
-
|
5850
|
-
|
5851
|
-
|
5852
|
-
|
5853
|
-
|
5854
|
-
|
5855
|
-
|
5856
|
-
|
5857
|
-
|
5858
|
-
|
5859
|
-
|
5860
|
-
|
5861
|
-
|
5862
|
-
|
5863
|
-
|
5864
|
-
|
5865
|
-
|
5866
|
-
|
5867
|
-
|
5868
|
-
|
5869
|
-
|
5870
|
-
|
5871
|
-
|
5872
|
-
|
5873
|
-
|
5874
|
-
|
5875
|
-
|
5876
|
-
|
5877
|
-
|
5878
|
-
|
5837
|
+
request$jscomp$0.pendingRootTasks--;
|
5838
|
+
0 === request$jscomp$0.pendingRootTasks && completeShell(request$jscomp$0);
|
5839
|
+
} else if ((boundary.pendingTasks--, 4 !== boundary.status))
|
5840
|
+
if (0 === boundary.pendingTasks)
|
5841
|
+
if (
|
5842
|
+
(0 === boundary.status && (boundary.status = 1),
|
5843
|
+
null !== segment &&
|
5844
|
+
segment.parentFlushed &&
|
5845
|
+
1 === segment.status &&
|
5846
|
+
queueCompletedSegment(boundary, segment),
|
5847
|
+
boundary.parentFlushed &&
|
5848
|
+
request$jscomp$0.completedBoundaries.push(boundary),
|
5849
|
+
1 === boundary.status)
|
5850
|
+
)
|
5851
|
+
(row = boundary.row),
|
5852
|
+
null !== row &&
|
5853
|
+
hoistHoistables(row.hoistables, boundary.contentState),
|
5854
|
+
500 < boundary.byteSize ||
|
5855
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5856
|
+
abortTaskSoft,
|
5857
|
+
request$jscomp$0
|
5858
|
+
),
|
5859
|
+
boundary.fallbackAbortableTasks.clear(),
|
5860
|
+
null !== row &&
|
5861
|
+
0 === --row.pendingTasks &&
|
5862
|
+
finishSuspenseListRow(request$jscomp$0, row)),
|
5863
|
+
0 === request$jscomp$0.pendingRootTasks &&
|
5864
|
+
null === request$jscomp$0.trackedPostpones &&
|
5865
|
+
null !== boundary.contentPreamble &&
|
5866
|
+
preparePreamble(request$jscomp$0);
|
5867
|
+
else {
|
5868
|
+
if (
|
5869
|
+
5 === boundary.status &&
|
5870
|
+
((boundary = boundary.row), null !== boundary)
|
5871
|
+
) {
|
5872
|
+
if (null !== request$jscomp$0.trackedPostpones) {
|
5873
|
+
row = request$jscomp$0.trackedPostpones;
|
5874
|
+
var postponedRow = boundary.next;
|
5875
|
+
if (
|
5876
|
+
null !== postponedRow &&
|
5877
|
+
((segment = postponedRow.boundaries), null !== segment)
|
5878
|
+
)
|
5879
|
+
for (
|
5880
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
5881
|
+
postponedRow < segment.length;
|
5882
|
+
postponedRow++
|
5883
|
+
) {
|
5884
|
+
var postponedBoundary = segment[postponedRow];
|
5885
|
+
var request = request$jscomp$0,
|
5886
|
+
trackedPostpones = row;
|
5887
|
+
postponedBoundary.status = 5;
|
5888
|
+
postponedBoundary.rootSegmentID = request.nextSegmentId++;
|
5889
|
+
request = postponedBoundary.trackedContentKeyPath;
|
5890
|
+
if (null === request)
|
5891
|
+
throw Error(
|
5892
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
5893
|
+
);
|
5894
|
+
var fallbackReplayNode = postponedBoundary.trackedFallbackNode,
|
5895
|
+
children = [],
|
5896
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
5897
|
+
void 0 === boundaryNode
|
5898
|
+
? ((fallbackReplayNode = [
|
5899
|
+
request[1],
|
5900
|
+
request[2],
|
5901
|
+
children,
|
5902
|
+
null,
|
5903
|
+
fallbackReplayNode,
|
5904
|
+
postponedBoundary.rootSegmentID
|
5905
|
+
]),
|
5906
|
+
trackedPostpones.workingMap.set(
|
5907
|
+
request,
|
5908
|
+
fallbackReplayNode
|
5909
|
+
),
|
5910
|
+
addToReplayParent(
|
5911
|
+
fallbackReplayNode,
|
5912
|
+
request[0],
|
5913
|
+
trackedPostpones
|
5914
|
+
))
|
5915
|
+
: ((boundaryNode[4] = fallbackReplayNode),
|
5916
|
+
(boundaryNode[5] = postponedBoundary.rootSegmentID));
|
5917
|
+
finishedTask(request$jscomp$0, postponedBoundary, null, null);
|
5918
|
+
}
|
5919
|
+
}
|
5920
|
+
0 === --boundary.pendingTasks &&
|
5921
|
+
finishSuspenseListRow(request$jscomp$0, boundary);
|
5922
|
+
}
|
5923
|
+
}
|
5924
|
+
else
|
5925
|
+
null !== segment &&
|
5926
|
+
segment.parentFlushed &&
|
5927
|
+
1 === segment.status &&
|
5928
|
+
(queueCompletedSegment(boundary, segment),
|
5929
|
+
1 === boundary.completedSegments.length &&
|
5930
|
+
boundary.parentFlushed &&
|
5931
|
+
request$jscomp$0.partialBoundaries.push(boundary)),
|
5932
|
+
(boundary = boundary.row),
|
5933
|
+
null !== boundary &&
|
5934
|
+
boundary.together &&
|
5935
|
+
tryToResolveTogetherRow(request$jscomp$0, boundary);
|
5936
|
+
0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
|
5879
5937
|
}
|
5880
5938
|
function performWork(request$jscomp$2) {
|
5881
5939
|
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
@@ -6556,12 +6614,12 @@ function flushCompletedQueues(request, destination) {
|
|
6556
6614
|
destinationHasCapacity$1 = !0;
|
6557
6615
|
var partialBoundaries = request.partialBoundaries;
|
6558
6616
|
for (i = 0; i < partialBoundaries.length; i++) {
|
6559
|
-
var boundary$
|
6617
|
+
var boundary$66 = partialBoundaries[i];
|
6560
6618
|
a: {
|
6561
6619
|
clientRenderedBoundaries = request;
|
6562
6620
|
boundary = destination;
|
6563
|
-
flushedByteSize = boundary$
|
6564
|
-
var completedSegments = boundary$
|
6621
|
+
flushedByteSize = boundary$66.byteSize;
|
6622
|
+
var completedSegments = boundary$66.completedSegments;
|
6565
6623
|
for (
|
6566
6624
|
JSCompiler_inline_result = 0;
|
6567
6625
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -6571,7 +6629,7 @@ function flushCompletedQueues(request, destination) {
|
|
6571
6629
|
!flushPartiallyCompletedSegment(
|
6572
6630
|
clientRenderedBoundaries,
|
6573
6631
|
boundary,
|
6574
|
-
boundary$
|
6632
|
+
boundary$66,
|
6575
6633
|
completedSegments[JSCompiler_inline_result]
|
6576
6634
|
)
|
6577
6635
|
) {
|
@@ -6581,10 +6639,10 @@ function flushCompletedQueues(request, destination) {
|
|
6581
6639
|
break a;
|
6582
6640
|
}
|
6583
6641
|
completedSegments.splice(0, JSCompiler_inline_result);
|
6584
|
-
var row = boundary$
|
6642
|
+
var row = boundary$66.row;
|
6585
6643
|
null !== row &&
|
6586
6644
|
row.together &&
|
6587
|
-
1 === boundary$
|
6645
|
+
1 === boundary$66.pendingTasks &&
|
6588
6646
|
(1 === row.pendingTasks
|
6589
6647
|
? unblockSuspenseListRow(
|
6590
6648
|
clientRenderedBoundaries,
|
@@ -6594,7 +6652,7 @@ function flushCompletedQueues(request, destination) {
|
|
6594
6652
|
: row.pendingTasks--);
|
6595
6653
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
6596
6654
|
boundary,
|
6597
|
-
boundary$
|
6655
|
+
boundary$66.contentState,
|
6598
6656
|
clientRenderedBoundaries.renderState
|
6599
6657
|
);
|
6600
6658
|
}
|
@@ -6695,17 +6753,29 @@ function abort(request, reason) {
|
|
6695
6753
|
}
|
6696
6754
|
null !== request.destination &&
|
6697
6755
|
flushCompletedQueues(request, request.destination);
|
6698
|
-
} catch (error$
|
6699
|
-
logRecoverableError(request, error$
|
6756
|
+
} catch (error$68) {
|
6757
|
+
logRecoverableError(request, error$68, {}), fatalError(request, error$68);
|
6758
|
+
}
|
6759
|
+
}
|
6760
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
6761
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
6762
|
+
else {
|
6763
|
+
var workingMap = trackedPostpones.workingMap,
|
6764
|
+
parentNode = workingMap.get(parentKeyPath);
|
6765
|
+
void 0 === parentNode &&
|
6766
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
6767
|
+
workingMap.set(parentKeyPath, parentNode),
|
6768
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
6769
|
+
parentNode[2].push(node);
|
6700
6770
|
}
|
6701
6771
|
}
|
6702
6772
|
function ensureCorrectIsomorphicReactVersion() {
|
6703
6773
|
var isomorphicReactPackageVersion = React.version;
|
6704
|
-
if ("19.2.0-canary-
|
6774
|
+
if ("19.2.0-canary-99efc627-20250523" !== isomorphicReactPackageVersion)
|
6705
6775
|
throw Error(
|
6706
6776
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6707
6777
|
(isomorphicReactPackageVersion +
|
6708
|
-
"\n - react-dom: 19.2.0-canary-
|
6778
|
+
"\n - react-dom: 19.2.0-canary-99efc627-20250523\nLearn more: https://react.dev/warnings/version-mismatch")
|
6709
6779
|
);
|
6710
6780
|
}
|
6711
6781
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6854,4 +6924,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6854
6924
|
}
|
6855
6925
|
};
|
6856
6926
|
};
|
6857
|
-
exports.version = "19.2.0-canary-
|
6927
|
+
exports.version = "19.2.0-canary-99efc627-20250523";
|
@@ -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-99efc627-20250523";
|
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-99efc627-20250523";
|
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-99efc627-20250523",
|
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-99efc627-20250523"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-99efc627-20250523"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|