2564025640 var computedStyle = getComputedStyle(instance);
2564125641 return createMeasurement(measuredRect, computedStyle, instance);
2564225642 }
25643- function cancelAllViewTransitionAnimations(scope) {
25644- for (
25645- var animations = scope.getAnimations({ subtree: !0 }), i = 0;
25646- i < animations.length;
25647- i++
25648- ) {
25649- var anim = animations[i],
25650- effect = anim.effect,
25651- pseudo = effect.pseudoElement;
25652- null != pseudo &&
25653- pseudo.startsWith("::view-transition") &&
25654- effect.target === scope &&
25655- anim.cancel();
25656- }
25657- }
2565825643 function customizeViewTransitionError(error, ignoreAbort) {
2565925644 if ("object" === typeof error && null !== error)
2566025645 switch (error.name) {
2578925774 types: transitionTypes
2579025775 });
2579125776 ownerDocument.__reactViewTransition = transition;
25777+ var viewTransitionAnimations = [];
2579225778 transition.ready.then(
2579325779 function () {
2579425780 for (
@@ -25799,25 +25785,26 @@
2579925785 i < animations.length;
2580025786 i++
2580125787 ) {
25802- var effect = animations[i].effect,
25788+ var animation = animations[i],
25789+ effect = animation.effect,
2580325790 pseudoElement = effect.pseudoElement;
2580425791 if (
2580525792 null != pseudoElement &&
2580625793 pseudoElement.startsWith("::view-transition")
2580725794 ) {
25808- pseudoElement = effect.getKeyframes();
25795+ viewTransitionAnimations.push(animation);
25796+ animation = effect.getKeyframes();
2580925797 for (
25810- var width = void 0,
25811- height = void 0,
25798+ var height = (pseudoElement = void 0),
2581225799 unchangedDimensions = !0,
2581325800 j = 0;
25814- j < pseudoElement .length;
25801+ j < animation .length;
2581525802 j++
2581625803 ) {
25817- var keyframe = pseudoElement [j],
25804+ var keyframe = animation [j],
2581825805 w = keyframe.width;
25819- if (void 0 === width) width = w;
25820- else if (width !== w) {
25806+ if (void 0 === pseudoElement) pseudoElement = w;
25807+ else if (pseudoElement !== w) {
2582125808 unchangedDimensions = !1;
2582225809 break;
2582325810 }
@@ -25832,23 +25819,22 @@
2583225819 "none" === keyframe.transform && delete keyframe.transform;
2583325820 }
2583425821 unchangedDimensions &&
25835- void 0 !== width &&
25822+ void 0 !== pseudoElement &&
2583625823 void 0 !== height &&
25837- (effect.setKeyframes(pseudoElement ),
25824+ (effect.setKeyframes(animation ),
2583825825 (unchangedDimensions = getComputedStyle(
2583925826 effect.target,
2584025827 effect.pseudoElement
2584125828 )),
25842- unchangedDimensions.width !== width ||
25829+ unchangedDimensions.width !== pseudoElement ||
2584325830 unchangedDimensions.height !== height) &&
25844- ((unchangedDimensions = pseudoElement [0]),
25845- (unchangedDimensions.width = width ),
25831+ ((unchangedDimensions = animation [0]),
25832+ (unchangedDimensions.width = pseudoElement ),
2584625833 (unchangedDimensions.height = height),
25847- (unchangedDimensions =
25848- pseudoElement[pseudoElement.length - 1]),
25849- (unchangedDimensions.width = width),
25834+ (unchangedDimensions = animation[animation.length - 1]),
25835+ (unchangedDimensions.width = pseudoElement),
2585025836 (unchangedDimensions.height = height),
25851- effect.setKeyframes(pseudoElement ));
25837+ effect.setKeyframes(animation ));
2585225838 }
2585325839 }
2585425840 spawnedWorkCallback();
2586825854 }
2586925855 );
2587025856 transition.finished.finally(function () {
25871- cancelAllViewTransitionAnimations(ownerDocument.documentElement);
25857+ for (var i = 0; i < viewTransitionAnimations.length; i++)
25858+ viewTransitionAnimations[i].cancel();
2587225859 ownerDocument.__reactViewTransition === transition &&
2587325860 (ownerDocument.__reactViewTransition = null);
2587425861 finishedAnimation();
2600625993 });
2600725994 ownerDocument.__reactViewTransition = transition;
2600825995 var customTimelineCleanup = [],
25996+ viewTransitionAnimations = [],
2600925997 readyCallback = function () {
2601025998 for (
2601125999 var documentElement = ownerDocument.documentElement,
2602126009 pseudoElement = effect.pseudoElement;
2602226010 null != pseudoElement &&
2602326011 pseudoElement.startsWith("::view-transition") &&
26024- ((effect = effect.getTiming()),
26012+ (viewTransitionAnimations.push(animations[i]),
26013+ (effect = effect.getTiming()),
2602526014 (effect =
2602626015 effect.delay +
2602726016 ("number" === typeof effect.duration ? effect.duration : 0)),
2612426113 }
2612526114 });
2612626115 transition.finished.finally(function () {
26127- cancelAllViewTransitionAnimations(ownerDocument.documentElement);
26128- for (var i = 0; i < customTimelineCleanup.length; i++)
26116+ for (var i = 0; i < viewTransitionAnimations.length; i++)
26117+ viewTransitionAnimations[i].cancel();
26118+ for (i = 0; i < customTimelineCleanup.length; i++)
2612926119 (0, customTimelineCleanup[i])();
2613026120 ownerDocument.__reactViewTransition === transition &&
2613126121 (ownerDocument.__reactViewTransition = null);
@@ -32446,11 +32436,11 @@
3244632436 };
3244732437 (function () {
3244832438 var isomorphicReactPackageVersion = React.version;
32449- if ("19.3.0-experimental-55480b4d-20251208 " !== isomorphicReactPackageVersion)
32439+ if ("19.3.0-experimental-80cb7a99-20251211 " !== isomorphicReactPackageVersion)
3245032440 throw Error(
3245132441 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
3245232442 (isomorphicReactPackageVersion +
32453- "\n - react-dom: 19.3.0-experimental-55480b4d-20251208 \nLearn more: https://react.dev/warnings/version-mismatch")
32443+ "\n - react-dom: 19.3.0-experimental-80cb7a99-20251211 \nLearn more: https://react.dev/warnings/version-mismatch")
3245432444 );
3245532445 })();
3245632446 ("function" === typeof Map &&
@@ -32487,10 +32477,10 @@
3248732477 !(function () {
3248832478 var internals = {
3248932479 bundleType: 1,
32490- version: "19.3.0-experimental-55480b4d-20251208 ",
32480+ version: "19.3.0-experimental-80cb7a99-20251211 ",
3249132481 rendererPackageName: "react-dom",
3249232482 currentDispatcherRef: ReactSharedInternals,
32493- reconcilerVersion: "19.3.0-experimental-55480b4d-20251208 "
32483+ reconcilerVersion: "19.3.0-experimental-80cb7a99-20251211 "
3249432484 };
3249532485 internals.overrideHookState = overrideHookState;
3249632486 internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
3263832628 listenToAllSupportedEvents(container);
3263932629 return new ReactDOMHydrationRoot(initialChildren);
3264032630 };
32641- exports.version = "19.3.0-experimental-55480b4d-20251208 ";
32631+ exports.version = "19.3.0-experimental-80cb7a99-20251211 ";
3264232632 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3264332633 "function" ===
3264432634 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
0 commit comments