Skip to content

Commit 968f95e

Browse files
ncc-compiled
1 parent f7368cf commit 968f95e

File tree

88 files changed

+3536
-2005
lines changed

Some content is hidden

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

88 files changed

+3536
-2005
lines changed

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

Lines changed: 27 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7187,7 +7187,7 @@
71877187
null !== state &&
71887188
((state = state.dehydrated),
71897189
null === state ||
7190-
state.data === SUSPENSE_PENDING_START_DATA ||
7190+
isSuspenseInstancePending(state) ||
71917191
isSuspenseInstanceFallback(state))
71927192
)
71937193
return node;
@@ -10669,16 +10669,15 @@
1066910669
),
1067010670
SelectiveHydrationException)
1067110671
);
10672-
JSCompiler_object_inline_message_3004.data ===
10673-
SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible();
10672+
isSuspenseInstancePending(JSCompiler_object_inline_message_3004) ||
10673+
renderDidSuspendDelayIfPossible();
1067410674
workInProgress = retrySuspenseComponentWithoutHydrating(
1067510675
current,
1067610676
workInProgress,
1067710677
renderLanes
1067810678
);
1067910679
} else
10680-
JSCompiler_object_inline_message_3004.data ===
10681-
SUSPENSE_PENDING_START_DATA
10680+
isSuspenseInstancePending(JSCompiler_object_inline_message_3004)
1068210681
? ((workInProgress.flags |= 192),
1068310682
(workInProgress.child = current.child),
1068410683
(workInProgress = null))
@@ -23612,6 +23611,7 @@
2361223611
} else if (
2361323612
node === SUSPENSE_START_DATA ||
2361423613
node === SUSPENSE_PENDING_START_DATA ||
23614+
node === SUSPENSE_QUEUED_START_DATA ||
2361523615
node === SUSPENSE_FALLBACK_START_DATA ||
2361623616
node === ACTIVITY_START_DATA
2361723617
)
@@ -23664,6 +23664,7 @@
2366423664
else
2366523665
(node !== SUSPENSE_START_DATA &&
2366623666
node !== SUSPENSE_PENDING_START_DATA &&
23667+
node !== SUSPENSE_QUEUED_START_DATA &&
2366723668
node !== SUSPENSE_FALLBACK_START_DATA) ||
2366823669
suspenseInstance++;
2366923670
node = nextNode;
@@ -24444,18 +24445,26 @@
2444424445
}
2444524446
return instance;
2444624447
}
24448+
function isSuspenseInstancePending(instance) {
24449+
return (
24450+
instance.data === SUSPENSE_PENDING_START_DATA ||
24451+
instance.data === SUSPENSE_QUEUED_START_DATA
24452+
);
24453+
}
2444724454
function isSuspenseInstanceFallback(instance) {
2444824455
return (
2444924456
instance.data === SUSPENSE_FALLBACK_START_DATA ||
2445024457
(instance.data === SUSPENSE_PENDING_START_DATA &&
24451-
instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE)
24458+
instance.ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING)
2445224459
);
2445324460
}
2445424461
function registerSuspenseInstanceRetry(instance, callback) {
2445524462
var ownerDocument = instance.ownerDocument;
24456-
if (
24463+
if (instance.data === SUSPENSE_QUEUED_START_DATA)
24464+
instance._reactRetry = callback;
24465+
else if (
2445724466
instance.data !== SUSPENSE_PENDING_START_DATA ||
24458-
ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE
24467+
ownerDocument.readyState !== DOCUMENT_READY_STATE_LOADING
2445924468
)
2446024469
callback();
2446124470
else {
@@ -24477,6 +24486,7 @@
2447724486
nodeType === SUSPENSE_START_DATA ||
2447824487
nodeType === SUSPENSE_FALLBACK_START_DATA ||
2447924488
nodeType === SUSPENSE_PENDING_START_DATA ||
24489+
nodeType === SUSPENSE_QUEUED_START_DATA ||
2448024490
nodeType === ACTIVITY_START_DATA ||
2448124491
nodeType === FORM_STATE_IS_MATCHING ||
2448224492
nodeType === FORM_STATE_IS_NOT_MATCHING
@@ -24541,6 +24551,7 @@
2454124551
(data !== SUSPENSE_START_DATA &&
2454224552
data !== SUSPENSE_FALLBACK_START_DATA &&
2454324553
data !== SUSPENSE_PENDING_START_DATA &&
24554+
data !== SUSPENSE_QUEUED_START_DATA &&
2454424555
data !== ACTIVITY_START_DATA) ||
2454524556
depth++;
2454624557
}
@@ -24557,6 +24568,7 @@
2455724568
data === SUSPENSE_START_DATA ||
2455824569
data === SUSPENSE_FALLBACK_START_DATA ||
2455924570
data === SUSPENSE_PENDING_START_DATA ||
24571+
data === SUSPENSE_QUEUED_START_DATA ||
2456024572
data === ACTIVITY_START_DATA
2456124573
) {
2456224574
if (0 === depth) return targetInstance;
@@ -29469,13 +29481,14 @@
2946929481
SUSPENSE_START_DATA = "$",
2947029482
SUSPENSE_END_DATA = "/$",
2947129483
SUSPENSE_PENDING_START_DATA = "$?",
29484+
SUSPENSE_QUEUED_START_DATA = "$~",
2947229485
SUSPENSE_FALLBACK_START_DATA = "$!",
2947329486
PREAMBLE_CONTRIBUTION_HTML = "html",
2947429487
PREAMBLE_CONTRIBUTION_BODY = "body",
2947529488
PREAMBLE_CONTRIBUTION_HEAD = "head",
2947629489
FORM_STATE_IS_MATCHING = "F!",
2947729490
FORM_STATE_IS_NOT_MATCHING = "F",
29478-
DOCUMENT_READY_STATE_COMPLETE = "complete",
29491+
DOCUMENT_READY_STATE_LOADING = "loading",
2947929492
STYLE = "style",
2948029493
HostContextNamespaceNone = 0,
2948129494
HostContextNamespaceSvg = 1,
@@ -30094,11 +30107,11 @@
3009430107
};
3009530108
(function () {
3009630109
var isomorphicReactPackageVersion = React.version;
30097-
if ("19.2.0-experimental-408d055a-20250430" !== isomorphicReactPackageVersion)
30110+
if ("19.2.0-experimental-f7396427-20250501" !== isomorphicReactPackageVersion)
3009830111
throw Error(
3009930112
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3010030113
(isomorphicReactPackageVersion +
30101-
"\n - react-dom: 19.2.0-experimental-408d055a-20250430\nLearn more: https://react.dev/warnings/version-mismatch")
30114+
"\n - react-dom: 19.2.0-experimental-f7396427-20250501\nLearn more: https://react.dev/warnings/version-mismatch")
3010230115
);
3010330116
})();
3010430117
("function" === typeof Map &&
@@ -30135,10 +30148,10 @@
3013530148
!(function () {
3013630149
var internals = {
3013730150
bundleType: 1,
30138-
version: "19.2.0-experimental-408d055a-20250430",
30151+
version: "19.2.0-experimental-f7396427-20250501",
3013930152
rendererPackageName: "react-dom",
3014030153
currentDispatcherRef: ReactSharedInternals,
30141-
reconcilerVersion: "19.2.0-experimental-408d055a-20250430"
30154+
reconcilerVersion: "19.2.0-experimental-f7396427-20250501"
3014230155
};
3014330156
internals.overrideHookState = overrideHookState;
3014430157
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -30280,7 +30293,7 @@
3028030293
listenToAllSupportedEvents(container);
3028130294
return new ReactDOMHydrationRoot(initialChildren);
3028230295
};
30283-
exports.version = "19.2.0-experimental-408d055a-20250430";
30296+
exports.version = "19.2.0-experimental-f7396427-20250501";
3028430297
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3028530298
"function" ===
3028630299
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4524,7 +4524,7 @@ function findFirstSuspended(row) {
45244524
null !== state &&
45254525
((state = state.dehydrated),
45264526
null === state ||
4527-
"$?" === state.data ||
4527+
isSuspenseInstancePending(state) ||
45284528
isSuspenseInstanceFallback(state))
45294529
)
45304530
return node;
@@ -7225,14 +7225,15 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
72257225
scheduleUpdateOnFiber(JSCompiler_temp, current, nextProps),
72267226
SelectiveHydrationException)
72277227
);
7228-
"$?" === nextPrimaryChildren.data || renderDidSuspendDelayIfPossible();
7228+
isSuspenseInstancePending(nextPrimaryChildren) ||
7229+
renderDidSuspendDelayIfPossible();
72297230
workInProgress = retrySuspenseComponentWithoutHydrating(
72307231
current,
72317232
workInProgress,
72327233
renderLanes
72337234
);
72347235
} else
7235-
"$?" === nextPrimaryChildren.data
7236+
isSuspenseInstancePending(nextPrimaryChildren)
72367237
? ((workInProgress.flags |= 192),
72377238
(workInProgress.child = current.child),
72387239
(workInProgress = null))
@@ -16105,7 +16106,13 @@ function clearHydrationBoundary(parentInstance, hydrationInstance) {
1610516106
return;
1610616107
}
1610716108
depth--;
16108-
} else if ("$" === node || "$?" === node || "$!" === node || "&" === node)
16109+
} else if (
16110+
"$" === node ||
16111+
"$?" === node ||
16112+
"$~" === node ||
16113+
"$!" === node ||
16114+
"&" === node
16115+
)
1610916116
depth++;
1611016117
else if ("html" === node)
1611116118
releaseSingletonInstance(parentInstance.ownerDocument.documentElement);
@@ -16150,7 +16157,8 @@ function hideOrUnhideDehydratedBoundary(suspenseInstance, isHidden) {
1615016157
if (0 === suspenseInstance) break;
1615116158
else suspenseInstance--;
1615216159
else
16153-
("$" !== node && "$?" !== node && "$!" !== node) || suspenseInstance++;
16160+
("$" !== node && "$?" !== node && "$~" !== node && "$!" !== node) ||
16161+
suspenseInstance++;
1615416162
node = nextNode;
1615516163
} while (node);
1615616164
}
@@ -17004,15 +17012,19 @@ function canHydrateHydrationBoundary(instance, inRootOrSingleton) {
1700417012
}
1700517013
return instance;
1700617014
}
17015+
function isSuspenseInstancePending(instance) {
17016+
return "$?" === instance.data || "$~" === instance.data;
17017+
}
1700717018
function isSuspenseInstanceFallback(instance) {
1700817019
return (
1700917020
"$!" === instance.data ||
17010-
("$?" === instance.data && "complete" === instance.ownerDocument.readyState)
17021+
("$?" === instance.data && "loading" !== instance.ownerDocument.readyState)
1701117022
);
1701217023
}
1701317024
function registerSuspenseInstanceRetry(instance, callback) {
1701417025
var ownerDocument = instance.ownerDocument;
17015-
if ("$?" !== instance.data || "complete" === ownerDocument.readyState)
17026+
if ("$~" === instance.data) instance._reactRetry = callback;
17027+
else if ("$?" !== instance.data || "loading" !== ownerDocument.readyState)
1701617028
callback();
1701717029
else {
1701817030
var listener = function () {
@@ -17033,6 +17045,7 @@ function getNextHydratable(node) {
1703317045
"$" === nodeType ||
1703417046
"$!" === nodeType ||
1703517047
"$?" === nodeType ||
17048+
"$~" === nodeType ||
1703617049
"&" === nodeType ||
1703717050
"F!" === nodeType ||
1703817051
"F" === nodeType
@@ -17054,7 +17067,11 @@ function getNextHydratableInstanceAfterHydrationBoundary(hydrationInstance) {
1705417067
return getNextHydratable(hydrationInstance.nextSibling);
1705517068
depth--;
1705617069
} else
17057-
("$" !== data && "$!" !== data && "$?" !== data && "&" !== data) ||
17070+
("$" !== data &&
17071+
"$!" !== data &&
17072+
"$?" !== data &&
17073+
"$~" !== data &&
17074+
"&" !== data) ||
1705817075
depth++;
1705917076
}
1706017077
hydrationInstance = hydrationInstance.nextSibling;
@@ -17066,7 +17083,13 @@ function getParentHydrationBoundary(targetInstance) {
1706617083
for (var depth = 0; targetInstance; ) {
1706717084
if (8 === targetInstance.nodeType) {
1706817085
var data = targetInstance.data;
17069-
if ("$" === data || "$!" === data || "$?" === data || "&" === data) {
17086+
if (
17087+
"$" === data ||
17088+
"$!" === data ||
17089+
"$?" === data ||
17090+
"$~" === data ||
17091+
"&" === data
17092+
) {
1707017093
if (0 === depth) return targetInstance;
1707117094
depth--;
1707217095
} else ("/$" !== data && "/&" !== data) || depth++;
@@ -18657,14 +18680,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1865718680
};
1865818681
var isomorphicReactPackageVersion$jscomp$inline_2045 = React.version;
1865918682
if (
18660-
"19.2.0-experimental-408d055a-20250430" !==
18683+
"19.2.0-experimental-f7396427-20250501" !==
1866118684
isomorphicReactPackageVersion$jscomp$inline_2045
1866218685
)
1866318686
throw Error(
1866418687
formatProdErrorMessage(
1866518688
527,
1866618689
isomorphicReactPackageVersion$jscomp$inline_2045,
18667-
"19.2.0-experimental-408d055a-20250430"
18690+
"19.2.0-experimental-f7396427-20250501"
1866818691
)
1866918692
);
1867018693
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -18686,10 +18709,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1868618709
};
1868718710
var internals$jscomp$inline_2681 = {
1868818711
bundleType: 0,
18689-
version: "19.2.0-experimental-408d055a-20250430",
18712+
version: "19.2.0-experimental-f7396427-20250501",
1869018713
rendererPackageName: "react-dom",
1869118714
currentDispatcherRef: ReactSharedInternals,
18692-
reconcilerVersion: "19.2.0-experimental-408d055a-20250430"
18715+
reconcilerVersion: "19.2.0-experimental-f7396427-20250501"
1869318716
};
1869418717
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1869518718
var hook$jscomp$inline_2682 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -18793,4 +18816,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1879318816
listenToAllSupportedEvents(container);
1879418817
return new ReactDOMHydrationRoot(initialChildren);
1879518818
};
18796-
exports.version = "19.2.0-experimental-408d055a-20250430";
18819+
exports.version = "19.2.0-experimental-f7396427-20250501";

0 commit comments

Comments
 (0)