@@ -2057,28 +2057,41 @@ __DEV__ &&
20572057 0 === root.tag &&
20582058 (ReactSharedInternals.didScheduleLegacyUpdate = !0);
20592059 }
2060- function flushSyncWorkAcrossRoots_impl(onlyLegacy) {
2060+ function flushSyncWorkAcrossRoots_impl(syncTransitionLanes, onlyLegacy) {
20612061 if (!isFlushingWork && mightHavePendingSyncWork) {
20622062 isFlushingWork = !0;
20632063 do {
20642064 var didPerformSomeWork = !1;
20652065 for (var root = firstScheduledRoot; null !== root; ) {
2066- if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag)) {
2067- var workInProgressRootRenderLanes$jscomp$0 =
2068- workInProgressRootRenderLanes;
2069- workInProgressRootRenderLanes$jscomp$0 = getNextLanes(
2070- root,
2071- root === workInProgressRoot
2072- ? workInProgressRootRenderLanes$jscomp$0
2073- : 0
2074- );
2075- 0 !== (workInProgressRootRenderLanes$jscomp$0 & 3) &&
2076- ((didPerformSomeWork = !0),
2077- performSyncWorkOnRoot(
2078- root,
2079- workInProgressRootRenderLanes$jscomp$0
2080- ));
2081- }
2066+ if (!onlyLegacy || (!disableLegacyMode && 0 === root.tag))
2067+ if (0 !== syncTransitionLanes) {
2068+ var pendingLanes = root.pendingLanes;
2069+ if (0 === pendingLanes) var nextLanes = 0;
2070+ else {
2071+ var suspendedLanes = root.suspendedLanes,
2072+ pingedLanes = root.pingedLanes;
2073+ nextLanes =
2074+ (1 << (31 - clz32(42 | syncTransitionLanes) + 1)) - 1;
2075+ nextLanes &= pendingLanes & ~(suspendedLanes & ~pingedLanes);
2076+ nextLanes =
2077+ nextLanes & 201326677
2078+ ? (nextLanes & 201326677) | 1
2079+ : nextLanes
2080+ ? nextLanes | 2
2081+ : 0;
2082+ }
2083+ 0 !== nextLanes &&
2084+ ((didPerformSomeWork = !0),
2085+ performSyncWorkOnRoot(root, nextLanes));
2086+ } else
2087+ (nextLanes = workInProgressRootRenderLanes),
2088+ (nextLanes = getNextLanes(
2089+ root,
2090+ root === workInProgressRoot ? nextLanes : 0
2091+ )),
2092+ 0 !== (nextLanes & 3) &&
2093+ ((didPerformSomeWork = !0),
2094+ performSyncWorkOnRoot(root, nextLanes));
20822095 root = root.next;
20832096 }
20842097 } while (didPerformSomeWork);
@@ -2090,6 +2103,7 @@ __DEV__ &&
20902103 didScheduleMicrotask_act =
20912104 didScheduleMicrotask =
20922105 !1;
2106+ 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
20932107 for (
20942108 var currentTime = now$1(), prev = null, root = firstScheduledRoot;
20952109 null !== root;
@@ -2105,8 +2119,7 @@ __DEV__ &&
21052119 0 !== (nextLanes & 3) && (mightHavePendingSyncWork = !0));
21062120 root = next;
21072121 }
2108- currentEventTransitionLane = 0;
2109- flushSyncWorkAcrossRoots_impl(!1);
2122+ flushSyncWorkAcrossRoots_impl(0, !1);
21102123 }
21112124 function scheduleTaskForRootDuringMicrotask(root, currentTime) {
21122125 var pendingLanes = root.pendingLanes,
@@ -12318,7 +12331,7 @@ __DEV__ &&
1231812331 0 !== (fiber.mode & 1) ||
1231912332 ReactSharedInternals.isBatchingLegacy ||
1232012333 ((workInProgressRootRenderTargetTime = now$1() + RENDER_TIMEOUT_MS),
12321- disableLegacyMode || flushSyncWorkAcrossRoots_impl(!0));
12334+ disableLegacyMode || flushSyncWorkAcrossRoots_impl(0, !0));
1232212335 }
1232312336 }
1232412337 function performConcurrentWorkOnRoot(root, didTimeout) {
@@ -12628,7 +12641,7 @@ __DEV__ &&
1262812641 }
1262912642 function flushSyncWork() {
1263012643 return (executionContext & (RenderContext | CommitContext)) === NoContext
12631- ? (flushSyncWorkAcrossRoots_impl(!1), !1)
12644+ ? (flushSyncWorkAcrossRoots_impl(0, !1), !1)
1263212645 : !0;
1263312646 }
1263412647 function resetWorkInProgressStack() {
@@ -13370,7 +13383,7 @@ __DEV__ &&
1337013383 ? nestedUpdateCount++
1337113384 : ((nestedUpdateCount = 0), (rootWithNestedUpdates = root)))
1337213385 : (nestedUpdateCount = 0);
13373- flushSyncWorkAcrossRoots_impl(!1);
13386+ flushSyncWorkAcrossRoots_impl(0, !1);
1337413387 enableDebugTracing && enableDebugTracing && groupEnd();
1337513388 enableSchedulingProfiler && markCommitStopped();
1337613389 return null;
@@ -13470,7 +13483,7 @@ __DEV__ &&
1347013483 injectedProfilingHooks.markPassiveEffectsStopped();
1347113484 commitDoubleInvokeEffectsInDEV(root, !0);
1347213485 executionContext = prevExecutionContext;
13473- flushSyncWorkAcrossRoots_impl(!1);
13486+ flushSyncWorkAcrossRoots_impl(0, !1);
1347413487 if (enableTransitionTracing) {
1347513488 var prevPendingTransitionCallbacks = currentPendingTransitionCallbacks,
1347613489 prevRootTransitionCallbacks = root.transitionCallbacks,
@@ -16776,11 +16789,11 @@ __DEV__ &&
1677616789 (function () {
1677716790 var internals = {
1677816791 bundleType: 1,
16779- version: "19.0.0-www-classic-1d989965-20240821 ",
16792+ version: "19.0.0-www-classic-ee7f6757-20240823 ",
1678016793 rendererPackageName: "react-art",
1678116794 currentDispatcherRef: ReactSharedInternals,
1678216795 findFiberByHostInstance: getInstanceFromNode,
16783- reconcilerVersion: "19.0.0-www-classic-1d989965-20240821 "
16796+ reconcilerVersion: "19.0.0-www-classic-ee7f6757-20240823 "
1678416797 };
1678516798 internals.overrideHookState = overrideHookState;
1678616799 internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16814,7 +16827,7 @@ __DEV__ &&
1681416827 exports.Shape = Shape;
1681516828 exports.Surface = Surface;
1681616829 exports.Text = Text;
16817- exports.version = "19.0.0-www-classic-1d989965-20240821 ";
16830+ exports.version = "19.0.0-www-classic-ee7f6757-20240823 ";
1681816831 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1681916832 "function" ===
1682016833 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
0 commit comments