Skip to content

Commit d0749b9

Browse files
vercel-release-boteps1lon
authored andcommittedMar 17, 2025··
ncc-compiled
1 parent 7f08c49 commit d0749b9

File tree

86 files changed

+489
-192
lines changed

Some content is hidden

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

86 files changed

+489
-192
lines changed
 

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

+14-12
Original file line numberDiff line numberDiff line change
@@ -22045,7 +22045,7 @@
2204522045
anim.cancel();
2204622046
}
2204722047
}
22048-
function customizeViewTransitionError(error) {
22048+
function customizeViewTransitionError(error, ignoreAbort) {
2204922049
if ("object" === typeof error && null !== error)
2205022050
switch (error.name) {
2205122051
case "TimeoutError":
@@ -22054,10 +22054,12 @@
2205422054
{ cause: error }
2205522055
);
2205622056
case "AbortError":
22057-
return Error(
22058-
"A ViewTransition was aborted early. This might be because you have other View Transition libraries on the page and only one can run at a time. To avoid this, use only React's built-in <ViewTransition> to coordinate.",
22059-
{ cause: error }
22060-
);
22057+
return ignoreAbort
22058+
? null
22059+
: Error(
22060+
"A ViewTransition was aborted early. This might be because you have other View Transition libraries on the page and only one can run at a time. To avoid this, use only React's built-in <ViewTransition> to coordinate.",
22061+
{ cause: error }
22062+
);
2206122063
case "InvalidStateError":
2206222064
if (
2206322065
"View transition was skipped because document visibility state is hidden." ===
@@ -22134,7 +22136,7 @@
2213422136
ownerDocument.__reactViewTransition = transition;
2213522137
transition.ready.then(spawnedWorkCallback, function (error) {
2213622138
try {
22137-
(error = customizeViewTransitionError(error)),
22139+
(error = customizeViewTransitionError(error, !1)),
2213822140
null !== error && errorCallback(error);
2213922141
} finally {
2214022142
spawnedWorkCallback();
@@ -22321,7 +22323,7 @@
2232122323
: readyCallback;
2232222324
transition.ready.then(readyForAnimations, function (error) {
2232322325
try {
22324-
(error = customizeViewTransitionError(error)),
22326+
(error = customizeViewTransitionError(error, !0)),
2232522327
null !== error && errorCallback(error);
2232622328
} finally {
2232722329
readyCallback();
@@ -27960,11 +27962,11 @@
2796027962
};
2796127963
(function () {
2796227964
var isomorphicReactPackageVersion = React.version;
27963-
if ("19.1.0-experimental-6aa8254b-20250312" !== isomorphicReactPackageVersion)
27965+
if ("19.1.0-experimental-5398b711-20250314" !== isomorphicReactPackageVersion)
2796427966
throw Error(
2796527967
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2796627968
(isomorphicReactPackageVersion +
27967-
"\n - react-dom: 19.1.0-experimental-6aa8254b-20250312\nLearn more: https://react.dev/warnings/version-mismatch")
27969+
"\n - react-dom: 19.1.0-experimental-5398b711-20250314\nLearn more: https://react.dev/warnings/version-mismatch")
2796827970
);
2796927971
})();
2797027972
("function" === typeof Map &&
@@ -28001,10 +28003,10 @@
2800128003
!(function () {
2800228004
var internals = {
2800328005
bundleType: 1,
28004-
version: "19.1.0-experimental-6aa8254b-20250312",
28006+
version: "19.1.0-experimental-5398b711-20250314",
2800528007
rendererPackageName: "react-dom",
2800628008
currentDispatcherRef: ReactSharedInternals,
28007-
reconcilerVersion: "19.1.0-experimental-6aa8254b-20250312"
28009+
reconcilerVersion: "19.1.0-experimental-5398b711-20250314"
2800828010
};
2800928011
internals.overrideHookState = overrideHookState;
2801028012
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28146,7 +28148,7 @@
2814628148
listenToAllSupportedEvents(container);
2814728149
return new ReactDOMHydrationRoot(initialChildren);
2814828150
};
28149-
exports.version = "19.1.0-experimental-6aa8254b-20250312";
28151+
exports.version = "19.1.0-experimental-5398b711-20250314";
2815028152
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2815128153
"function" ===
2815228154
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

+11-8
Original file line numberDiff line numberDiff line change
@@ -15343,9 +15343,12 @@ function cancelAllViewTransitionAnimations(scope) {
1534315343
anim.cancel();
1534415344
}
1534515345
}
15346-
function customizeViewTransitionError(error) {
15346+
function customizeViewTransitionError(error, ignoreAbort) {
1534715347
if ("object" === typeof error && null !== error)
1534815348
switch (error.name) {
15349+
case "AbortError":
15350+
if (ignoreAbort) return null;
15351+
break;
1534915352
case "InvalidStateError":
1535015353
if (
1535115354
"View transition was skipped because document visibility state is hidden." ===
@@ -15412,7 +15415,7 @@ function startViewTransition(
1541215415
ownerDocument.__reactViewTransition = transition;
1541315416
transition.ready.then(spawnedWorkCallback, function (error) {
1541415417
try {
15415-
(error = customizeViewTransitionError(error)),
15418+
(error = customizeViewTransitionError(error, !1)),
1541615419
null !== error && errorCallback(error);
1541715420
} finally {
1541815421
spawnedWorkCallback();
@@ -15597,7 +15600,7 @@ function startGestureTransition(
1559715600
: readyCallback;
1559815601
transition.ready.then(readyForAnimations, function (error) {
1559915602
try {
15600-
(error = customizeViewTransitionError(error)),
15603+
(error = customizeViewTransitionError(error, !0)),
1560115604
null !== error && errorCallback(error);
1560215605
} finally {
1560315606
readyCallback();
@@ -17368,14 +17371,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
1736817371
};
1736917372
var isomorphicReactPackageVersion$jscomp$inline_1905 = React.version;
1737017373
if (
17371-
"19.1.0-experimental-6aa8254b-20250312" !==
17374+
"19.1.0-experimental-5398b711-20250314" !==
1737217375
isomorphicReactPackageVersion$jscomp$inline_1905
1737317376
)
1737417377
throw Error(
1737517378
formatProdErrorMessage(
1737617379
527,
1737717380
isomorphicReactPackageVersion$jscomp$inline_1905,
17378-
"19.1.0-experimental-6aa8254b-20250312"
17381+
"19.1.0-experimental-5398b711-20250314"
1737917382
)
1738017383
);
1738117384
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17397,10 +17400,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
1739717400
};
1739817401
var internals$jscomp$inline_2498 = {
1739917402
bundleType: 0,
17400-
version: "19.1.0-experimental-6aa8254b-20250312",
17403+
version: "19.1.0-experimental-5398b711-20250314",
1740117404
rendererPackageName: "react-dom",
1740217405
currentDispatcherRef: ReactSharedInternals,
17403-
reconcilerVersion: "19.1.0-experimental-6aa8254b-20250312"
17406+
reconcilerVersion: "19.1.0-experimental-5398b711-20250314"
1740417407
};
1740517408
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1740617409
var hook$jscomp$inline_2499 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17504,4 +17507,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
1750417507
listenToAllSupportedEvents(container);
1750517508
return new ReactDOMHydrationRoot(initialChildren);
1750617509
};
17507-
exports.version = "19.1.0-experimental-6aa8254b-20250312";
17510+
exports.version = "19.1.0-experimental-5398b711-20250314";

0 commit comments

Comments
 (0)
Please sign in to comment.