Skip to content

Commit 450c8fa

Browse files
committed
ncc-compiled
1 parent 0167fbe commit 450c8fa

File tree

60 files changed

+1462
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1462
-734
lines changed

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30579,11 +30579,11 @@
3057930579
};
3058030580
(function () {
3058130581
var isomorphicReactPackageVersion = React.version;
30582-
if ("19.2.0-experimental-4a45ba92-20250515" !== isomorphicReactPackageVersion)
30582+
if ("19.2.0-experimental-462d08f9-20250517" !== isomorphicReactPackageVersion)
3058330583
throw Error(
3058430584
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3058530585
(isomorphicReactPackageVersion +
30586-
"\n - react-dom: 19.2.0-experimental-4a45ba92-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
30586+
"\n - react-dom: 19.2.0-experimental-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
3058730587
);
3058830588
})();
3058930589
("function" === typeof Map &&
@@ -30620,10 +30620,10 @@
3062030620
!(function () {
3062130621
var internals = {
3062230622
bundleType: 1,
30623-
version: "19.2.0-experimental-4a45ba92-20250515",
30623+
version: "19.2.0-experimental-462d08f9-20250517",
3062430624
rendererPackageName: "react-dom",
3062530625
currentDispatcherRef: ReactSharedInternals,
30626-
reconcilerVersion: "19.2.0-experimental-4a45ba92-20250515"
30626+
reconcilerVersion: "19.2.0-experimental-462d08f9-20250517"
3062730627
};
3062830628
internals.overrideHookState = overrideHookState;
3062930629
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30769,7 +30769,7 @@
3076930769
listenToAllSupportedEvents(container);
3077030770
return new ReactDOMHydrationRoot(initialChildren);
3077130771
};
30772-
exports.version = "19.2.0-experimental-4a45ba92-20250515";
30772+
exports.version = "19.2.0-experimental-462d08f9-20250517";
3077330773
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3077430774
"function" ===
3077530775
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19147,14 +19147,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1914719147
};
1914819148
var isomorphicReactPackageVersion$jscomp$inline_2180 = React.version;
1914919149
if (
19150-
"19.2.0-experimental-4a45ba92-20250515" !==
19150+
"19.2.0-experimental-462d08f9-20250517" !==
1915119151
isomorphicReactPackageVersion$jscomp$inline_2180
1915219152
)
1915319153
throw Error(
1915419154
formatProdErrorMessage(
1915519155
527,
1915619156
isomorphicReactPackageVersion$jscomp$inline_2180,
19157-
"19.2.0-experimental-4a45ba92-20250515"
19157+
"19.2.0-experimental-462d08f9-20250517"
1915819158
)
1915919159
);
1916019160
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -19176,10 +19176,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1917619176
};
1917719177
var internals$jscomp$inline_2840 = {
1917819178
bundleType: 0,
19179-
version: "19.2.0-experimental-4a45ba92-20250515",
19179+
version: "19.2.0-experimental-462d08f9-20250517",
1918019180
rendererPackageName: "react-dom",
1918119181
currentDispatcherRef: ReactSharedInternals,
19182-
reconcilerVersion: "19.2.0-experimental-4a45ba92-20250515"
19182+
reconcilerVersion: "19.2.0-experimental-462d08f9-20250517"
1918319183
};
1918419184
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1918519185
var hook$jscomp$inline_2841 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19286,4 +19286,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1928619286
listenToAllSupportedEvents(container);
1928719287
return new ReactDOMHydrationRoot(initialChildren);
1928819288
};
19289-
exports.version = "19.2.0-experimental-4a45ba92-20250515";
19289+
exports.version = "19.2.0-experimental-462d08f9-20250517";

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30631,11 +30631,11 @@
3063130631
};
3063230632
(function () {
3063330633
var isomorphicReactPackageVersion = React.version;
30634-
if ("19.2.0-experimental-4a45ba92-20250515" !== isomorphicReactPackageVersion)
30634+
if ("19.2.0-experimental-462d08f9-20250517" !== isomorphicReactPackageVersion)
3063530635
throw Error(
3063630636
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3063730637
(isomorphicReactPackageVersion +
30638-
"\n - react-dom: 19.2.0-experimental-4a45ba92-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
30638+
"\n - react-dom: 19.2.0-experimental-462d08f9-20250517\nLearn more: https://react.dev/warnings/version-mismatch")
3063930639
);
3064030640
})();
3064130641
("function" === typeof Map &&
@@ -30672,10 +30672,10 @@
3067230672
!(function () {
3067330673
var internals = {
3067430674
bundleType: 1,
30675-
version: "19.2.0-experimental-4a45ba92-20250515",
30675+
version: "19.2.0-experimental-462d08f9-20250517",
3067630676
rendererPackageName: "react-dom",
3067730677
currentDispatcherRef: ReactSharedInternals,
30678-
reconcilerVersion: "19.2.0-experimental-4a45ba92-20250515"
30678+
reconcilerVersion: "19.2.0-experimental-462d08f9-20250517"
3067930679
};
3068030680
internals.overrideHookState = overrideHookState;
3068130681
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31151,7 +31151,7 @@
3115131151
exports.useFormStatus = function () {
3115231152
return resolveDispatcher().useHostTransitionStatus();
3115331153
};
31154-
exports.version = "19.2.0-experimental-4a45ba92-20250515";
31154+
exports.version = "19.2.0-experimental-462d08f9-20250517";
3115531155
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3115631156
"function" ===
3115731157
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20802,14 +20802,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
2080220802
};
2080320803
var isomorphicReactPackageVersion$jscomp$inline_2400 = React.version;
2080420804
if (
20805-
"19.2.0-experimental-4a45ba92-20250515" !==
20805+
"19.2.0-experimental-462d08f9-20250517" !==
2080620806
isomorphicReactPackageVersion$jscomp$inline_2400
2080720807
)
2080820808
throw Error(
2080920809
formatProdErrorMessage(
2081020810
527,
2081120811
isomorphicReactPackageVersion$jscomp$inline_2400,
20812-
"19.2.0-experimental-4a45ba92-20250515"
20812+
"19.2.0-experimental-462d08f9-20250517"
2081320813
)
2081420814
);
2081520815
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -20831,10 +20831,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
2083120831
};
2083220832
var internals$jscomp$inline_3062 = {
2083320833
bundleType: 0,
20834-
version: "19.2.0-experimental-4a45ba92-20250515",
20834+
version: "19.2.0-experimental-462d08f9-20250517",
2083520835
rendererPackageName: "react-dom",
2083620836
currentDispatcherRef: ReactSharedInternals,
20837-
reconcilerVersion: "19.2.0-experimental-4a45ba92-20250515"
20837+
reconcilerVersion: "19.2.0-experimental-462d08f9-20250517"
2083820838
};
2083920839
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
2084020840
var hook$jscomp$inline_3063 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -21101,7 +21101,7 @@ exports.useFormState = function (action, initialState, permalink) {
2110121101
exports.useFormStatus = function () {
2110221102
return ReactSharedInternals.H.useHostTransitionStatus();
2110321103
};
21104-
exports.version = "19.2.0-experimental-4a45ba92-20250515";
21104+
exports.version = "19.2.0-experimental-462d08f9-20250517";
2110521105
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2110621106
"function" ===
2110721107
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js

Lines changed: 67 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -883,15 +883,17 @@
883883
nameIdx: 0
884884
};
885885
}
886-
function getSuspenseFallbackFormatContext(parentContext) {
886+
function getSuspenseFallbackFormatContext(resumableState, parentContext) {
887+
parentContext.tagScope & 32 &&
888+
(resumableState.instructions |= NeedUpgradeToViewTransitions);
887889
return createFormatContext(
888890
parentContext.insertionMode,
889891
parentContext.selectedValue,
890892
parentContext.tagScope | 12,
891893
getSuspenseViewTransition(parentContext.viewTransition)
892894
);
893895
}
894-
function getSuspenseContentFormatContext(parentContext) {
896+
function getSuspenseContentFormatContext(resumableState, parentContext) {
895897
return createFormatContext(
896898
parentContext.insertionMode,
897899
parentContext.selectedValue,
@@ -5691,8 +5693,10 @@
56915693
var _prevKeyPath = task.keyPath,
56925694
_prevContext = task.formatContext;
56935695
task.keyPath = keyPath;
5694-
task.formatContext =
5695-
getSuspenseContentFormatContext(_prevContext);
5696+
task.formatContext = getSuspenseContentFormatContext(
5697+
request.resumableState,
5698+
_prevContext
5699+
);
56965700
var _content = props.children;
56975701
try {
56985702
renderNode(request, task, _content, -1);
@@ -5765,8 +5769,10 @@
57655769
task.blockedSegment = boundarySegment;
57665770
task.blockedPreamble = newBoundary.fallbackPreamble;
57675771
task.keyPath = fallbackKeyPath;
5768-
task.formatContext =
5769-
getSuspenseFallbackFormatContext(prevContext$jscomp$1);
5772+
task.formatContext = getSuspenseFallbackFormatContext(
5773+
request.resumableState,
5774+
prevContext$jscomp$1
5775+
);
57705776
boundarySegment.status = 6;
57715777
try {
57725778
renderNode(request, task, fallback, -1),
@@ -5799,7 +5805,10 @@
57995805
newBoundary.contentState,
58005806
task.abortSet,
58015807
keyPath,
5802-
getSuspenseContentFormatContext(task.formatContext),
5808+
getSuspenseContentFormatContext(
5809+
request.resumableState,
5810+
task.formatContext
5811+
),
58035812
task.context,
58045813
task.treeContext,
58055814
task.componentStack,
@@ -5814,8 +5823,10 @@
58145823
task.hoistableState = newBoundary.contentState;
58155824
task.blockedSegment = contentRootSegment;
58165825
task.keyPath = keyPath;
5817-
task.formatContext =
5818-
getSuspenseContentFormatContext(prevContext$jscomp$1);
5826+
task.formatContext = getSuspenseContentFormatContext(
5827+
request.resumableState,
5828+
prevContext$jscomp$1
5829+
);
58195830
contentRootSegment.status = 6;
58205831
try {
58215832
if (
@@ -5892,7 +5903,10 @@
58925903
newBoundary.fallbackState,
58935904
fallbackAbortSet,
58945905
[keyPath[0], "Suspense Fallback", keyPath[2]],
5895-
getSuspenseFallbackFormatContext(task.formatContext),
5906+
getSuspenseFallbackFormatContext(
5907+
request.resumableState,
5908+
task.formatContext
5909+
),
58965910
task.context,
58975911
task.treeContext,
58985912
task.componentStack,
@@ -6149,7 +6163,10 @@
61496163
task.blockedBoundary = props;
61506164
task.hoistableState = props.contentState;
61516165
task.keyPath = keyPath;
6152-
task.formatContext = getSuspenseContentFormatContext(prevContext);
6166+
task.formatContext = getSuspenseContentFormatContext(
6167+
request.resumableState,
6168+
prevContext
6169+
);
61536170
task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
61546171
try {
61556172
renderNode(request, task, content, -1);
@@ -6205,7 +6222,10 @@
62056222
props.fallbackState,
62066223
fallbackAbortSet,
62076224
[keyPath[0], "Suspense Fallback", keyPath[2]],
6208-
getSuspenseFallbackFormatContext(task.formatContext),
6225+
getSuspenseFallbackFormatContext(
6226+
request.resumableState,
6227+
task.formatContext
6228+
),
62096229
task.context,
62106230
task.treeContext,
62116231
task.componentStack,
@@ -7209,6 +7229,7 @@
72097229
} else boundary.completedSegments.push(segment);
72107230
}
72117231
function finishedTask(request, boundary, segment) {
7232+
request.allPendingTasks--;
72127233
if (null === boundary) {
72137234
if (null !== segment && segment.parentFlushed) {
72147235
if (null !== request.completedRootSegment)
@@ -7248,7 +7269,6 @@
72487269
1 === boundary.completedSegments.length &&
72497270
boundary.parentFlushed &&
72507271
request.partialBoundaries.push(boundary)));
7251-
request.allPendingTasks--;
72527272
0 === request.allPendingTasks && completeAll(request);
72537273
}
72547274
function performWork(request$jscomp$1) {
@@ -7793,7 +7813,10 @@
77937813
request = request.renderState;
77947814
i = boundary.rootSegmentID;
77957815
boundary = boundary.contentState;
7796-
var requiresStyleInsertion = request.stylesToHoist;
7816+
var requiresStyleInsertion = request.stylesToHoist,
7817+
requiresViewTransitions =
7818+
(completedSegments.instructions & NeedUpgradeToViewTransitions) !==
7819+
NothingSent;
77977820
request.stylesToHoist = !1;
77987821
var scriptFormat =
77997822
completedSegments.streamingFormat === ScriptStreamingFormat;
@@ -7811,6 +7834,15 @@
78117834
((completedSegments.instructions |=
78127835
SentCompleteBoundaryFunction),
78137836
destination.push(completeBoundaryScriptFunctionOnly)),
7837+
requiresViewTransitions &&
7838+
(completedSegments.instructions &
7839+
SentUpgradeToViewTransitions) ===
7840+
NothingSent &&
7841+
((completedSegments.instructions |=
7842+
SentUpgradeToViewTransitions),
7843+
destination.push(
7844+
completeBoundaryUpgradeToViewTransitionsInstruction
7845+
)),
78147846
(completedSegments.instructions & SentStyleInsertionFunction) ===
78157847
NothingSent
78167848
? ((completedSegments.instructions |=
@@ -7819,13 +7851,22 @@
78197851
completeBoundaryWithStylesScript1FullPartial
78207852
))
78217853
: destination.push(completeBoundaryWithStylesScript1Partial))
7822-
: (completedSegments.instructions &
7823-
SentCompleteBoundaryFunction) ===
7824-
NothingSent
7825-
? ((completedSegments.instructions |=
7854+
: ((completedSegments.instructions &
7855+
SentCompleteBoundaryFunction) ===
7856+
NothingSent &&
7857+
((completedSegments.instructions |=
78267858
SentCompleteBoundaryFunction),
7827-
destination.push(completeBoundaryScript1Full))
7828-
: destination.push(completeBoundaryScript1Partial))
7859+
destination.push(completeBoundaryScriptFunctionOnly)),
7860+
requiresViewTransitions &&
7861+
(completedSegments.instructions &
7862+
SentUpgradeToViewTransitions) ===
7863+
NothingSent &&
7864+
((completedSegments.instructions |=
7865+
SentUpgradeToViewTransitions),
7866+
destination.push(
7867+
completeBoundaryUpgradeToViewTransitionsInstruction
7868+
)),
7869+
destination.push(completeBoundaryScript1Partial)))
78297870
: requiresStyleInsertion
78307871
? destination.push(completeBoundaryWithStylesData1)
78317872
: destination.push(completeBoundaryData1);
@@ -9478,6 +9519,8 @@
94789519
SentStyleInsertionFunction = 8,
94799520
SentCompletedShellId = 32,
94809521
SentMarkShellTime = 64,
9522+
NeedUpgradeToViewTransitions = 128,
9523+
SentUpgradeToViewTransitions = 256,
94819524
EXISTS = null,
94829525
PRELOAD_NO_CREDS = [];
94839526
Object.freeze(PRELOAD_NO_CREDS);
@@ -9572,9 +9615,9 @@
95729615
completeSegmentData2 = '" data-pid="',
95739616
completeSegmentDataEnd = '"></template>',
95749617
completeBoundaryScriptFunctionOnly =
9575-
'$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())};',
9576-
completeBoundaryScript1Full =
9577-
'$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("',
9618+
'$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())};',
9619+
completeBoundaryUpgradeToViewTransitionsInstruction =
9620+
"$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);",
95789621
completeBoundaryScript1Partial = '$RC("',
95799622
completeBoundaryWithStylesScript1FullPartial =
95809623
'$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("',
@@ -9888,5 +9931,5 @@
98889931
'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'
98899932
);
98909933
};
9891-
exports.version = "19.2.0-experimental-4a45ba92-20250515";
9934+
exports.version = "19.2.0-experimental-462d08f9-20250517";
98929935
})();

0 commit comments

Comments
 (0)