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
@@ -25432,11 +25432,11 @@
|
|
25432
25432
|
};
|
25433
25433
|
(function () {
|
25434
25434
|
var isomorphicReactPackageVersion = React.version;
|
25435
|
-
if ("19.2.0-canary-
|
25435
|
+
if ("19.2.0-canary-462d08f9-20250517" !== isomorphicReactPackageVersion)
|
25436
25436
|
throw Error(
|
25437
25437
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
25438
25438
|
(isomorphicReactPackageVersion +
|
25439
|
-
"\n - react-dom: 19.2.0-canary-
|
25439
|
+
"\n - react-dom: 19.2.0-canary-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
|
25440
25440
|
);
|
25441
25441
|
})();
|
25442
25442
|
("function" === typeof Map &&
|
@@ -25473,10 +25473,10 @@
|
|
25473
25473
|
!(function () {
|
25474
25474
|
var internals = {
|
25475
25475
|
bundleType: 1,
|
25476
|
-
version: "19.2.0-canary-
|
25476
|
+
version: "19.2.0-canary-462d08f9-20250517",
|
25477
25477
|
rendererPackageName: "react-dom",
|
25478
25478
|
currentDispatcherRef: ReactSharedInternals,
|
25479
|
-
reconcilerVersion: "19.2.0-canary-
|
25479
|
+
reconcilerVersion: "19.2.0-canary-462d08f9-20250517"
|
25480
25480
|
};
|
25481
25481
|
internals.overrideHookState = overrideHookState;
|
25482
25482
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25614,7 +25614,7 @@
|
|
25614
25614
|
listenToAllSupportedEvents(container);
|
25615
25615
|
return new ReactDOMHydrationRoot(initialChildren);
|
25616
25616
|
};
|
25617
|
-
exports.version = "19.2.0-canary-
|
25617
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
25618
25618
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
25619
25619
|
"function" ===
|
25620
25620
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -15685,14 +15685,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
15685
15685
|
};
|
15686
15686
|
var isomorphicReactPackageVersion$jscomp$inline_1851 = React.version;
|
15687
15687
|
if (
|
15688
|
-
"19.2.0-canary-
|
15688
|
+
"19.2.0-canary-462d08f9-20250517" !==
|
15689
15689
|
isomorphicReactPackageVersion$jscomp$inline_1851
|
15690
15690
|
)
|
15691
15691
|
throw Error(
|
15692
15692
|
formatProdErrorMessage(
|
15693
15693
|
527,
|
15694
15694
|
isomorphicReactPackageVersion$jscomp$inline_1851,
|
15695
|
-
"19.2.0-canary-
|
15695
|
+
"19.2.0-canary-462d08f9-20250517"
|
15696
15696
|
)
|
15697
15697
|
);
|
15698
15698
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -15714,10 +15714,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
15714
15714
|
};
|
15715
15715
|
var internals$jscomp$inline_2344 = {
|
15716
15716
|
bundleType: 0,
|
15717
|
-
version: "19.2.0-canary-
|
15717
|
+
version: "19.2.0-canary-462d08f9-20250517",
|
15718
15718
|
rendererPackageName: "react-dom",
|
15719
15719
|
currentDispatcherRef: ReactSharedInternals,
|
15720
|
-
reconcilerVersion: "19.2.0-canary-
|
15720
|
+
reconcilerVersion: "19.2.0-canary-462d08f9-20250517"
|
15721
15721
|
};
|
15722
15722
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
15723
15723
|
var hook$jscomp$inline_2345 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
@@ -15815,4 +15815,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
|
15815
15815
|
listenToAllSupportedEvents(container);
|
15816
15816
|
return new ReactDOMHydrationRoot(initialChildren);
|
15817
15817
|
};
|
15818
|
-
exports.version = "19.2.0-canary-
|
15818
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
@@ -25484,11 +25484,11 @@
|
|
25484
25484
|
};
|
25485
25485
|
(function () {
|
25486
25486
|
var isomorphicReactPackageVersion = React.version;
|
25487
|
-
if ("19.2.0-canary-
|
25487
|
+
if ("19.2.0-canary-462d08f9-20250517" !== isomorphicReactPackageVersion)
|
25488
25488
|
throw Error(
|
25489
25489
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
25490
25490
|
(isomorphicReactPackageVersion +
|
25491
|
-
"\n - react-dom: 19.2.0-canary-
|
25491
|
+
"\n - react-dom: 19.2.0-canary-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
|
25492
25492
|
);
|
25493
25493
|
})();
|
25494
25494
|
("function" === typeof Map &&
|
@@ -25525,10 +25525,10 @@
|
|
25525
25525
|
!(function () {
|
25526
25526
|
var internals = {
|
25527
25527
|
bundleType: 1,
|
25528
|
-
version: "19.2.0-canary-
|
25528
|
+
version: "19.2.0-canary-462d08f9-20250517",
|
25529
25529
|
rendererPackageName: "react-dom",
|
25530
25530
|
currentDispatcherRef: ReactSharedInternals,
|
25531
|
-
reconcilerVersion: "19.2.0-canary-
|
25531
|
+
reconcilerVersion: "19.2.0-canary-462d08f9-20250517"
|
25532
25532
|
};
|
25533
25533
|
internals.overrideHookState = overrideHookState;
|
25534
25534
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
@@ -25996,7 +25996,7 @@
|
|
25996
25996
|
exports.useFormStatus = function () {
|
25997
25997
|
return resolveDispatcher().useHostTransitionStatus();
|
25998
25998
|
};
|
25999
|
-
exports.version = "19.2.0-canary-
|
25999
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
26000
26000
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
26001
26001
|
"function" ===
|
26002
26002
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -16386,14 +16386,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
|
16386
16386
|
};
|
16387
16387
|
var isomorphicReactPackageVersion$jscomp$inline_1955 = React.version;
|
16388
16388
|
if (
|
16389
|
-
"19.2.0-canary-
|
16389
|
+
"19.2.0-canary-462d08f9-20250517" !==
|
16390
16390
|
isomorphicReactPackageVersion$jscomp$inline_1955
|
16391
16391
|
)
|
16392
16392
|
throw Error(
|
16393
16393
|
formatProdErrorMessage(
|
16394
16394
|
527,
|
16395
16395
|
isomorphicReactPackageVersion$jscomp$inline_1955,
|
16396
|
-
"19.2.0-canary-
|
16396
|
+
"19.2.0-canary-462d08f9-20250517"
|
16397
16397
|
)
|
16398
16398
|
);
|
16399
16399
|
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
@@ -16415,10 +16415,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
|
16415
16415
|
};
|
16416
16416
|
var internals$jscomp$inline_1962 = {
|
16417
16417
|
bundleType: 0,
|
16418
|
-
version: "19.2.0-canary-
|
16418
|
+
version: "19.2.0-canary-462d08f9-20250517",
|
16419
16419
|
rendererPackageName: "react-dom",
|
16420
16420
|
currentDispatcherRef: ReactSharedInternals,
|
16421
|
-
reconcilerVersion: "19.2.0-canary-
|
16421
|
+
reconcilerVersion: "19.2.0-canary-462d08f9-20250517",
|
16422
16422
|
getLaneLabelMap: function () {
|
16423
16423
|
for (
|
16424
16424
|
var map = new Map(), lane = 1, index$293 = 0;
|
@@ -16691,7 +16691,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
16691
16691
|
exports.useFormStatus = function () {
|
16692
16692
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
16693
16693
|
};
|
16694
|
-
exports.version = "19.2.0-canary-
|
16694
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
16695
16695
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
16696
16696
|
"function" ===
|
16697
16697
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -862,7 +862,8 @@
|
|
862
862
|
nameIdx: 0
|
863
863
|
};
|
864
864
|
}
|
865
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
865
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
866
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
866
867
|
return createFormatContext(
|
867
868
|
parentContext.insertionMode,
|
868
869
|
parentContext.selectedValue,
|
@@ -870,7 +871,7 @@
|
|
870
871
|
getSuspenseViewTransition(parentContext.viewTransition)
|
871
872
|
);
|
872
873
|
}
|
873
|
-
function getSuspenseContentFormatContext(parentContext) {
|
874
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
874
875
|
return createFormatContext(
|
875
876
|
parentContext.insertionMode,
|
876
877
|
parentContext.selectedValue,
|
@@ -5406,8 +5407,10 @@
|
|
5406
5407
|
var _prevKeyPath = task.keyPath,
|
5407
5408
|
_prevContext = task.formatContext;
|
5408
5409
|
task.keyPath = keyPath;
|
5409
|
-
task.formatContext =
|
5410
|
-
|
5410
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5411
|
+
request.resumableState,
|
5412
|
+
_prevContext
|
5413
|
+
);
|
5411
5414
|
var _content = props.children;
|
5412
5415
|
try {
|
5413
5416
|
renderNode(request, task, _content, -1);
|
@@ -5480,8 +5483,10 @@
|
|
5480
5483
|
task.blockedSegment = boundarySegment;
|
5481
5484
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5482
5485
|
task.keyPath = fallbackKeyPath;
|
5483
|
-
task.formatContext =
|
5484
|
-
|
5486
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
5487
|
+
request.resumableState,
|
5488
|
+
prevContext$jscomp$0
|
5489
|
+
);
|
5485
5490
|
boundarySegment.status = 6;
|
5486
5491
|
try {
|
5487
5492
|
renderNode(request, task, fallback, -1),
|
@@ -5514,7 +5519,10 @@
|
|
5514
5519
|
newBoundary.contentState,
|
5515
5520
|
task.abortSet,
|
5516
5521
|
keyPath,
|
5517
|
-
getSuspenseContentFormatContext(
|
5522
|
+
getSuspenseContentFormatContext(
|
5523
|
+
request.resumableState,
|
5524
|
+
task.formatContext
|
5525
|
+
),
|
5518
5526
|
task.context,
|
5519
5527
|
task.treeContext,
|
5520
5528
|
task.componentStack,
|
@@ -5529,8 +5537,10 @@
|
|
5529
5537
|
task.hoistableState = newBoundary.contentState;
|
5530
5538
|
task.blockedSegment = contentRootSegment;
|
5531
5539
|
task.keyPath = keyPath;
|
5532
|
-
task.formatContext =
|
5533
|
-
|
5540
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5541
|
+
request.resumableState,
|
5542
|
+
prevContext$jscomp$0
|
5543
|
+
);
|
5534
5544
|
contentRootSegment.status = 6;
|
5535
5545
|
try {
|
5536
5546
|
if (
|
@@ -5594,7 +5604,10 @@
|
|
5594
5604
|
newBoundary.fallbackState,
|
5595
5605
|
fallbackAbortSet,
|
5596
5606
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5597
|
-
getSuspenseFallbackFormatContext(
|
5607
|
+
getSuspenseFallbackFormatContext(
|
5608
|
+
request.resumableState,
|
5609
|
+
task.formatContext
|
5610
|
+
),
|
5598
5611
|
task.context,
|
5599
5612
|
task.treeContext,
|
5600
5613
|
task.componentStack,
|
@@ -5857,7 +5870,10 @@
|
|
5857
5870
|
task.blockedBoundary = props;
|
5858
5871
|
task.hoistableState = props.contentState;
|
5859
5872
|
task.keyPath = keyPath;
|
5860
|
-
task.formatContext = getSuspenseContentFormatContext(
|
5873
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5874
|
+
request.resumableState,
|
5875
|
+
prevContext
|
5876
|
+
);
|
5861
5877
|
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
5862
5878
|
try {
|
5863
5879
|
renderNode(request, task, content, -1);
|
@@ -5903,7 +5919,10 @@
|
|
5903
5919
|
props.fallbackState,
|
5904
5920
|
fallbackAbortSet,
|
5905
5921
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5906
|
-
getSuspenseFallbackFormatContext(
|
5922
|
+
getSuspenseFallbackFormatContext(
|
5923
|
+
request.resumableState,
|
5924
|
+
task.formatContext
|
5925
|
+
),
|
5907
5926
|
task.context,
|
5908
5927
|
task.treeContext,
|
5909
5928
|
task.componentStack,
|
@@ -6659,6 +6678,7 @@
|
|
6659
6678
|
} else boundary.completedSegments.push(segment);
|
6660
6679
|
}
|
6661
6680
|
function finishedTask(request, boundary, segment) {
|
6681
|
+
request.allPendingTasks--;
|
6662
6682
|
if (null === boundary) {
|
6663
6683
|
if (null !== segment && segment.parentFlushed) {
|
6664
6684
|
if (null !== request.completedRootSegment)
|
@@ -6698,7 +6718,6 @@
|
|
6698
6718
|
1 === boundary.completedSegments.length &&
|
6699
6719
|
boundary.parentFlushed &&
|
6700
6720
|
request.partialBoundaries.push(boundary)));
|
6701
|
-
request.allPendingTasks--;
|
6702
6721
|
0 === request.allPendingTasks && completeAll(request);
|
6703
6722
|
}
|
6704
6723
|
function performWork(request$jscomp$2) {
|
@@ -7200,11 +7219,11 @@
|
|
7200
7219
|
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
7201
7220
|
destination.push(completeBoundaryWithStylesScript1FullPartial))
|
7202
7221
|
: destination.push(completeBoundaryWithStylesScript1Partial))
|
7203
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7204
|
-
NothingSent
|
7205
|
-
|
7206
|
-
destination.push(
|
7207
|
-
|
7222
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7223
|
+
NothingSent &&
|
7224
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
7225
|
+
destination.push(completeBoundaryScriptFunctionOnly)),
|
7226
|
+
destination.push(completeBoundaryScript1Partial));
|
7208
7227
|
completedSegments = i.toString(16);
|
7209
7228
|
destination.push(request.boundaryPrefix);
|
7210
7229
|
destination.push(completedSegments);
|
@@ -8854,9 +8873,7 @@
|
|
8854
8873
|
completeSegmentScript2 = '","',
|
8855
8874
|
completeSegmentScriptEnd = '")\x3c/script>',
|
8856
8875
|
completeBoundaryScriptFunctionOnly =
|
8857
|
-
'$RB=[];$
|
8858
|
-
completeBoundaryScript1Full =
|
8859
|
-
'$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};$RC("',
|
8876
|
+
'$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())};',
|
8860
8877
|
completeBoundaryScript1Partial = '$RC("',
|
8861
8878
|
completeBoundaryWithStylesScript1FullPartial =
|
8862
8879
|
'$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("',
|
@@ -9160,5 +9177,5 @@
|
|
9160
9177
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
9161
9178
|
);
|
9162
9179
|
};
|
9163
|
-
exports.version = "19.2.0-canary-
|
9180
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
9164
9181
|
})();
|
@@ -407,7 +407,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
407
407
|
nameIdx: 0
|
408
408
|
};
|
409
409
|
}
|
410
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
410
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
411
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
411
412
|
return createFormatContext(
|
412
413
|
parentContext.insertionMode,
|
413
414
|
parentContext.selectedValue,
|
@@ -415,7 +416,7 @@ function getSuspenseFallbackFormatContext(parentContext) {
|
|
415
416
|
getSuspenseViewTransition(parentContext.viewTransition)
|
416
417
|
);
|
417
418
|
}
|
418
|
-
function getSuspenseContentFormatContext(parentContext) {
|
419
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
419
420
|
return createFormatContext(
|
420
421
|
parentContext.insertionMode,
|
421
422
|
parentContext.selectedValue,
|
@@ -4186,7 +4187,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4186
4187
|
type = task.keyPath;
|
4187
4188
|
newProps = task.formatContext;
|
4188
4189
|
task.keyPath = keyPath;
|
4189
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4190
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4191
|
+
request.resumableState,
|
4192
|
+
newProps
|
4193
|
+
);
|
4190
4194
|
keyPath = props.children;
|
4191
4195
|
try {
|
4192
4196
|
renderNode(request, task, keyPath, -1);
|
@@ -4241,7 +4245,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4241
4245
|
task.blockedSegment = boundarySegment;
|
4242
4246
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
4243
4247
|
task.keyPath = newProps;
|
4244
|
-
task.formatContext = getSuspenseFallbackFormatContext(
|
4248
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
4249
|
+
request.resumableState,
|
4250
|
+
ref
|
4251
|
+
);
|
4245
4252
|
boundarySegment.status = 6;
|
4246
4253
|
try {
|
4247
4254
|
renderNode(request, task, fallback, -1),
|
@@ -4274,7 +4281,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4274
4281
|
newBoundary.contentState,
|
4275
4282
|
task.abortSet,
|
4276
4283
|
keyPath,
|
4277
|
-
getSuspenseContentFormatContext(
|
4284
|
+
getSuspenseContentFormatContext(
|
4285
|
+
request.resumableState,
|
4286
|
+
task.formatContext
|
4287
|
+
),
|
4278
4288
|
task.context,
|
4279
4289
|
task.treeContext,
|
4280
4290
|
task.componentStack
|
@@ -4287,7 +4297,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4287
4297
|
task.hoistableState = newBoundary.contentState;
|
4288
4298
|
task.blockedSegment = contentRootSegment;
|
4289
4299
|
task.keyPath = keyPath;
|
4290
|
-
task.formatContext = getSuspenseContentFormatContext(
|
4300
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4301
|
+
request.resumableState,
|
4302
|
+
ref
|
4303
|
+
);
|
4291
4304
|
contentRootSegment.status = 6;
|
4292
4305
|
try {
|
4293
4306
|
if (
|
@@ -4343,7 +4356,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4343
4356
|
newBoundary.fallbackState,
|
4344
4357
|
fallbackAbortSet,
|
4345
4358
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
4346
|
-
getSuspenseFallbackFormatContext(
|
4359
|
+
getSuspenseFallbackFormatContext(
|
4360
|
+
request.resumableState,
|
4361
|
+
task.formatContext
|
4362
|
+
),
|
4347
4363
|
task.context,
|
4348
4364
|
task.treeContext,
|
4349
4365
|
task.componentStack
|
@@ -4580,8 +4596,10 @@ function retryNode(request, task) {
|
|
4580
4596
|
task.blockedBoundary = props;
|
4581
4597
|
task.hoistableState = props.contentState;
|
4582
4598
|
task.keyPath = key;
|
4583
|
-
task.formatContext =
|
4584
|
-
|
4599
|
+
task.formatContext = getSuspenseContentFormatContext(
|
4600
|
+
request.resumableState,
|
4601
|
+
prevContext
|
4602
|
+
);
|
4585
4603
|
task.replay = {
|
4586
4604
|
nodes: ref,
|
4587
4605
|
slots: name,
|
@@ -4632,7 +4650,10 @@ function retryNode(request, task) {
|
|
4632
4650
|
props.fallbackState,
|
4633
4651
|
fallbackAbortSet,
|
4634
4652
|
[key[0], "Suspense Fallback", key[2]],
|
4635
|
-
getSuspenseFallbackFormatContext(
|
4653
|
+
getSuspenseFallbackFormatContext(
|
4654
|
+
request.resumableState,
|
4655
|
+
task.formatContext
|
4656
|
+
),
|
4636
4657
|
task.context,
|
4637
4658
|
task.treeContext,
|
4638
4659
|
task.componentStack
|
@@ -5140,6 +5161,7 @@ function queueCompletedSegment(boundary, segment) {
|
|
5140
5161
|
} else boundary.completedSegments.push(segment);
|
5141
5162
|
}
|
5142
5163
|
function finishedTask(request, boundary, segment) {
|
5164
|
+
request.allPendingTasks--;
|
5143
5165
|
if (null === boundary) {
|
5144
5166
|
if (null !== segment && segment.parentFlushed) {
|
5145
5167
|
if (null !== request.completedRootSegment)
|
@@ -5177,7 +5199,6 @@ function finishedTask(request, boundary, segment) {
|
|
5177
5199
|
1 === boundary.completedSegments.length &&
|
5178
5200
|
boundary.parentFlushed &&
|
5179
5201
|
request.partialBoundaries.push(boundary)));
|
5180
|
-
request.allPendingTasks--;
|
5181
5202
|
0 === request.allPendingTasks && completeAll(request);
|
5182
5203
|
}
|
5183
5204
|
function performWork(request$jscomp$2) {
|
@@ -5587,7 +5608,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5587
5608
|
0 === (completedSegments.instructions & 2) &&
|
5588
5609
|
((completedSegments.instructions |= 2),
|
5589
5610
|
destination.push(
|
5590
|
-
'$RB=[];$
|
5611
|
+
'$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())};'
|
5591
5612
|
)),
|
5592
5613
|
0 === (completedSegments.instructions & 8)
|
5593
5614
|
? ((completedSegments.instructions |= 8),
|
@@ -5595,12 +5616,12 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5595
5616
|
'$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("'
|
5596
5617
|
))
|
5597
5618
|
: destination.push('$RR("'))
|
5598
|
-
: 0 === (completedSegments.instructions & 2)
|
5599
|
-
|
5619
|
+
: (0 === (completedSegments.instructions & 2) &&
|
5620
|
+
((completedSegments.instructions |= 2),
|
5600
5621
|
destination.push(
|
5601
|
-
'$RB=[];$
|
5602
|
-
))
|
5603
|
-
|
5622
|
+
'$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())};'
|
5623
|
+
)),
|
5624
|
+
destination.push('$RC("'));
|
5604
5625
|
completedSegments = i.toString(16);
|
5605
5626
|
destination.push(request.boundaryPrefix);
|
5606
5627
|
destination.push(completedSegments);
|
@@ -6020,4 +6041,4 @@ exports.renderToString = function (children, options) {
|
|
6020
6041
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
6021
6042
|
);
|
6022
6043
|
};
|
6023
|
-
exports.version = "19.2.0-canary-
|
6044
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
@@ -862,7 +862,8 @@
|
|
862
862
|
nameIdx: 0
|
863
863
|
};
|
864
864
|
}
|
865
|
-
function getSuspenseFallbackFormatContext(parentContext) {
|
865
|
+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
|
866
|
+
parentContext.tagScope & 32 && (resumableState.instructions |= 128);
|
866
867
|
return createFormatContext(
|
867
868
|
parentContext.insertionMode,
|
868
869
|
parentContext.selectedValue,
|
@@ -870,7 +871,7 @@
|
|
870
871
|
getSuspenseViewTransition(parentContext.viewTransition)
|
871
872
|
);
|
872
873
|
}
|
873
|
-
function getSuspenseContentFormatContext(parentContext) {
|
874
|
+
function getSuspenseContentFormatContext(resumableState, parentContext) {
|
874
875
|
return createFormatContext(
|
875
876
|
parentContext.insertionMode,
|
876
877
|
parentContext.selectedValue,
|
@@ -5406,8 +5407,10 @@
|
|
5406
5407
|
var _prevKeyPath = task.keyPath,
|
5407
5408
|
_prevContext = task.formatContext;
|
5408
5409
|
task.keyPath = keyPath;
|
5409
|
-
task.formatContext =
|
5410
|
-
|
5410
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5411
|
+
request.resumableState,
|
5412
|
+
_prevContext
|
5413
|
+
);
|
5411
5414
|
var _content = props.children;
|
5412
5415
|
try {
|
5413
5416
|
renderNode(request, task, _content, -1);
|
@@ -5480,8 +5483,10 @@
|
|
5480
5483
|
task.blockedSegment = boundarySegment;
|
5481
5484
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5482
5485
|
task.keyPath = fallbackKeyPath;
|
5483
|
-
task.formatContext =
|
5484
|
-
|
5486
|
+
task.formatContext = getSuspenseFallbackFormatContext(
|
5487
|
+
request.resumableState,
|
5488
|
+
prevContext$jscomp$0
|
5489
|
+
);
|
5485
5490
|
boundarySegment.status = 6;
|
5486
5491
|
try {
|
5487
5492
|
renderNode(request, task, fallback, -1),
|
@@ -5514,7 +5519,10 @@
|
|
5514
5519
|
newBoundary.contentState,
|
5515
5520
|
task.abortSet,
|
5516
5521
|
keyPath,
|
5517
|
-
getSuspenseContentFormatContext(
|
5522
|
+
getSuspenseContentFormatContext(
|
5523
|
+
request.resumableState,
|
5524
|
+
task.formatContext
|
5525
|
+
),
|
5518
5526
|
task.context,
|
5519
5527
|
task.treeContext,
|
5520
5528
|
task.componentStack,
|
@@ -5529,8 +5537,10 @@
|
|
5529
5537
|
task.hoistableState = newBoundary.contentState;
|
5530
5538
|
task.blockedSegment = contentRootSegment;
|
5531
5539
|
task.keyPath = keyPath;
|
5532
|
-
task.formatContext =
|
5533
|
-
|
5540
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5541
|
+
request.resumableState,
|
5542
|
+
prevContext$jscomp$0
|
5543
|
+
);
|
5534
5544
|
contentRootSegment.status = 6;
|
5535
5545
|
try {
|
5536
5546
|
if (
|
@@ -5594,7 +5604,10 @@
|
|
5594
5604
|
newBoundary.fallbackState,
|
5595
5605
|
fallbackAbortSet,
|
5596
5606
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5597
|
-
getSuspenseFallbackFormatContext(
|
5607
|
+
getSuspenseFallbackFormatContext(
|
5608
|
+
request.resumableState,
|
5609
|
+
task.formatContext
|
5610
|
+
),
|
5598
5611
|
task.context,
|
5599
5612
|
task.treeContext,
|
5600
5613
|
task.componentStack,
|
@@ -5857,7 +5870,10 @@
|
|
5857
5870
|
task.blockedBoundary = props;
|
5858
5871
|
task.hoistableState = props.contentState;
|
5859
5872
|
task.keyPath = keyPath;
|
5860
|
-
task.formatContext = getSuspenseContentFormatContext(
|
5873
|
+
task.formatContext = getSuspenseContentFormatContext(
|
5874
|
+
request.resumableState,
|
5875
|
+
prevContext
|
5876
|
+
);
|
5861
5877
|
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
5862
5878
|
try {
|
5863
5879
|
renderNode(request, task, content, -1);
|
@@ -5903,7 +5919,10 @@
|
|
5903
5919
|
props.fallbackState,
|
5904
5920
|
fallbackAbortSet,
|
5905
5921
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5906
|
-
getSuspenseFallbackFormatContext(
|
5922
|
+
getSuspenseFallbackFormatContext(
|
5923
|
+
request.resumableState,
|
5924
|
+
task.formatContext
|
5925
|
+
),
|
5907
5926
|
task.context,
|
5908
5927
|
task.treeContext,
|
5909
5928
|
task.componentStack,
|
@@ -6659,6 +6678,7 @@
|
|
6659
6678
|
} else boundary.completedSegments.push(segment);
|
6660
6679
|
}
|
6661
6680
|
function finishedTask(request, boundary, segment) {
|
6681
|
+
request.allPendingTasks--;
|
6662
6682
|
if (null === boundary) {
|
6663
6683
|
if (null !== segment && segment.parentFlushed) {
|
6664
6684
|
if (null !== request.completedRootSegment)
|
@@ -6698,7 +6718,6 @@
|
|
6698
6718
|
1 === boundary.completedSegments.length &&
|
6699
6719
|
boundary.parentFlushed &&
|
6700
6720
|
request.partialBoundaries.push(boundary)));
|
6701
|
-
request.allPendingTasks--;
|
6702
6721
|
0 === request.allPendingTasks && completeAll(request);
|
6703
6722
|
}
|
6704
6723
|
function performWork(request$jscomp$2) {
|
@@ -7200,11 +7219,11 @@
|
|
7200
7219
|
? ((completedSegments.instructions |= SentStyleInsertionFunction),
|
7201
7220
|
destination.push(completeBoundaryWithStylesScript1FullPartial))
|
7202
7221
|
: destination.push(completeBoundaryWithStylesScript1Partial))
|
7203
|
-
: (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7204
|
-
NothingSent
|
7205
|
-
|
7206
|
-
destination.push(
|
7207
|
-
|
7222
|
+
: ((completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7223
|
+
NothingSent &&
|
7224
|
+
((completedSegments.instructions |= SentCompleteBoundaryFunction),
|
7225
|
+
destination.push(completeBoundaryScriptFunctionOnly)),
|
7226
|
+
destination.push(completeBoundaryScript1Partial));
|
7208
7227
|
completedSegments = i.toString(16);
|
7209
7228
|
destination.push(request.boundaryPrefix);
|
7210
7229
|
destination.push(completedSegments);
|
@@ -8854,9 +8873,7 @@
|
|
8854
8873
|
completeSegmentScript2 = '","',
|
8855
8874
|
completeSegmentScriptEnd = '")\x3c/script>',
|
8856
8875
|
completeBoundaryScriptFunctionOnly =
|
8857
|
-
'$RB=[];$
|
8858
|
-
completeBoundaryScript1Full =
|
8859
|
-
'$RB=[];$RC=function(d,c){function m(){$RT=performance.now();var f=$RB;$RB=[];for(var e=0;e<f.length;e+=2){var a=f[e],l=f[e+1],g=a.parentNode;if(g){var h=a.previousSibling,k=0;do{if(a&&8===a.nodeType){var b=a.data;if("/$"===b||"/&"===b)if(0===k)break;else k--;else"$"!==b&&"$?"!==b&&"$~"!==b&&"$!"!==b&&"&"!==b||k++}b=a.nextSibling;g.removeChild(a);a=b}while(a);for(;l.firstChild;)g.insertBefore(l.firstChild,a);h.data="$";h._reactRetry&&h._reactRetry()}}}if(c=document.getElementById(c))if(c.parentNode.removeChild(c),d=\ndocument.getElementById(d))d.previousSibling.data="$~",$RB.push(d,c),2===$RB.length&&setTimeout(m,("number"!==typeof $RT?0:$RT)+300-performance.now())};$RC("',
|
8876
|
+
'$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())};',
|
8860
8877
|
completeBoundaryScript1Partial = '$RC("',
|
8861
8878
|
completeBoundaryWithStylesScript1FullPartial =
|
8862
8879
|
'$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("',
|
@@ -9160,5 +9177,5 @@
|
|
9160
9177
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
|
9161
9178
|
);
|
9162
9179
|
};
|
9163
|
-
exports.version = "19.2.0-canary-
|
9180
|
+
exports.version = "19.2.0-canary-462d08f9-20250517";
|
9164
9181
|
})();
|