diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index ef423112c8..6d4ea9fd34 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -14f50ad1554f0adf20fa1b5bc62859ed32be0bc6 +9007fdc8f103a5d9247be384791496db9a3be91d diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 0e6c5a7808..cd4f496939 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -3034,15 +3034,14 @@ if (__DEV__) { preinitModuleScript: noop$3 }; var Internals = { - usingClientEntryPoint: false, Events: null, - ReactDOMCurrentDispatcher: { - current: DefaultDispatcher - }, - findDOMNode: null, - up: + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher, + p: /* currentUpdatePriority */ - NoEventPriority + NoEventPriority, + findDOMNode: null }; function setCurrentUpdatePriority( @@ -3052,13 +3051,17 @@ if (__DEV__) { // is much longer. I hope this is consistent enough to rely on across builds IntentionallyUnusedArgument ) { - Internals.up = newPriority; + Internals.p = + /* currentUpdatePriority */ + newPriority; } function getCurrentUpdatePriority() { - return Internals.up; + return Internals.p; + /* currentUpdatePriority */ } function resolveUpdatePriority() { - var updatePriority = Internals.up; + var updatePriority = Internals.p; + /* currentUpdatePriority */ if (updatePriority !== NoEventPriority) { return updatePriority; @@ -36159,7 +36162,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-a72c7db8"; + var ReactVersion = "19.0.0-www-classic-393dd949"; function createPortal$1( children, @@ -44179,8 +44182,6 @@ if (__DEV__) { } } - var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; // Unused - var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; @@ -45599,17 +45600,21 @@ if (__DEV__) { return root.ownerDocument || root; } - var previousDispatcher = ReactDOMCurrentDispatcher$1.current; - ReactDOMCurrentDispatcher$1.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS$1, - preconnect: preconnect$1, - preload: preload$1, - preloadModule: preloadModule$1, - preinitStyle: preinitStyle, - preinitScript: preinitScript, - preinitModuleScript: preinitModuleScript - }; + var previousDispatcher = Internals.d; + /* ReactDOMCurrentDispatcher */ + + Internals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS$1, + preconnect: preconnect$1, + preload: preload$1, + preloadModule: preloadModule$1, + preinitStyle: preinitStyle, + preinitScript: preinitScript, + preinitModuleScript: preinitModuleScript + }; // how we resolve the HoistableRoot for ReactDOM.pre*() methods. Because we support calling // these methods outside of render there is no way to know which Document or ShadowRoot is 'scoped' // and so we have to fall back to something universal. Currently we just refer to the global document. @@ -48675,7 +48680,6 @@ if (__DEV__) { return undefined; } - var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; function prefetchDNS(href) { { if (typeof href !== "string" || !href) { @@ -48704,7 +48708,9 @@ if (__DEV__) { } if (typeof href === "string") { - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .prefetchDNS(href); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48733,7 +48739,9 @@ if (__DEV__) { var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null; - ReactDOMCurrentDispatcher.current.preconnect(href, crossOrigin); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preconnect(href, crossOrigin); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48777,32 +48785,35 @@ if (__DEV__) { ) { var as = options.as; var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: typeof options.nonce === "string" ? options.nonce : undefined, - type: typeof options.type === "string" ? options.type : undefined, - fetchPriority: - typeof options.fetchPriority === "string" - ? options.fetchPriority - : undefined, - referrerPolicy: - typeof options.referrerPolicy === "string" - ? options.referrerPolicy - : undefined, - imageSrcSet: - typeof options.imageSrcSet === "string" - ? options.imageSrcSet - : undefined, - imageSizes: - typeof options.imageSizes === "string" - ? options.imageSizes - : undefined, - media: typeof options.media === "string" ? options.media : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preload(href, as, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined, + type: typeof options.type === "string" ? options.type : undefined, + fetchPriority: + typeof options.fetchPriority === "string" + ? options.fetchPriority + : undefined, + referrerPolicy: + typeof options.referrerPolicy === "string" + ? options.referrerPolicy + : undefined, + imageSrcSet: + typeof options.imageSrcSet === "string" + ? options.imageSrcSet + : undefined, + imageSizes: + typeof options.imageSizes === "string" + ? options.imageSizes + : undefined, + media: typeof options.media === "string" ? options.media : undefined + }); } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48848,19 +48859,23 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preloadModule(href, { - as: - typeof options.as === "string" && options.as !== "script" - ? options.as - : undefined, - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href, { + as: + typeof options.as === "string" && options.as !== "script" + ? options.as + : undefined, + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined + }); } else { - ReactDOMCurrentDispatcher.current.preloadModule(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href); } } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -48901,24 +48916,29 @@ if (__DEV__) { : undefined; if (as === "style") { - ReactDOMCurrentDispatcher.current.preinitStyle( - href, - typeof options.precedence === "string" - ? options.precedence - : undefined, - { + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitStyle( + href, + typeof options.precedence === "string" + ? options.precedence + : undefined, + { + crossOrigin: crossOrigin, + integrity: integrity, + fetchPriority: fetchPriority + } + ); + } else if (as === "script") { + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, - fetchPriority: fetchPriority - } - ); - } else if (as === "script") { - ReactDOMCurrentDispatcher.current.preinitScript(href, { - crossOrigin: crossOrigin, - integrity: integrity, - fetchPriority: fetchPriority, - nonce: typeof options.nonce === "string" ? options.nonce : undefined - }); + fetchPriority: fetchPriority, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -48985,18 +49005,22 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: - typeof options.nonce === "string" ? options.nonce : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } else if (options == null) { - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -49056,7 +49080,7 @@ if (__DEV__) { // $FlowFixMe[incompatible-return] The Flow type is opaque but there's no way to actually create it. return createPortal$1(children, container, null, key); - } + } // Overload the definition to the two valid signatures. // Warning, this opts-out of checking the function body. // eslint-disable-next-line no-redeclare // eslint-disable-next-line no-redeclare @@ -49091,14 +49115,16 @@ if (__DEV__) { } // This is an array for better minification. - Internals.Events = [ - getInstanceFromNode, - getNodeFromInstance, - getFiberCurrentPropsFromNode, - enqueueStateRestore, - restoreStateIfNeeded, - unstable_batchedUpdates - ]; + Internals.Events = + /* Events */ + [ + getInstanceFromNode, + getNodeFromInstance, + getFiberCurrentPropsFromNode, + enqueueStateRestore, + restoreStateIfNeeded, + unstable_batchedUpdates + ]; var foundDevTools = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 0eec1f5811..55cd712e4b 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -1930,15 +1930,14 @@ if (__DEV__) { preinitModuleScript: noop$3 }; var Internals = { - usingClientEntryPoint: false, Events: null, - ReactDOMCurrentDispatcher: { - current: DefaultDispatcher - }, - findDOMNode: null, - up: + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher, + p: /* currentUpdatePriority */ - NoEventPriority + NoEventPriority, + findDOMNode: null }; /** @@ -2987,13 +2986,17 @@ if (__DEV__) { // is much longer. I hope this is consistent enough to rely on across builds IntentionallyUnusedArgument ) { - Internals.up = newPriority; + Internals.p = + /* currentUpdatePriority */ + newPriority; } function getCurrentUpdatePriority() { - return Internals.up; + return Internals.p; + /* currentUpdatePriority */ } function resolveUpdatePriority() { - var updatePriority = Internals.up; + var updatePriority = Internals.p; + /* currentUpdatePriority */ if (updatePriority !== NoEventPriority) { return updatePriority; @@ -42487,8 +42490,6 @@ if (__DEV__) { } } - var ReactDOMCurrentDispatcher$2 = Internals.ReactDOMCurrentDispatcher; // Unused - var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; @@ -43907,17 +43908,21 @@ if (__DEV__) { return root.ownerDocument || root; } - var previousDispatcher = ReactDOMCurrentDispatcher$2.current; - ReactDOMCurrentDispatcher$2.current = { - flushSyncWork: flushSyncWork, - prefetchDNS: prefetchDNS$1, - preconnect: preconnect$1, - preload: preload$1, - preloadModule: preloadModule$1, - preinitStyle: preinitStyle, - preinitScript: preinitScript, - preinitModuleScript: preinitModuleScript - }; + var previousDispatcher = Internals.d; + /* ReactDOMCurrentDispatcher */ + + Internals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: flushSyncWork, + prefetchDNS: prefetchDNS$1, + preconnect: preconnect$1, + preload: preload$1, + preloadModule: preloadModule$1, + preinitStyle: preinitStyle, + preinitScript: preinitScript, + preinitModuleScript: preinitModuleScript + }; function flushSyncWork() { { @@ -45588,7 +45593,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-a18925e5"; + var ReactVersion = "19.0.0-www-modern-67454cc7"; function createPortal$1( children, @@ -47525,16 +47530,15 @@ if (__DEV__) { } var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; - var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; function flushSyncImpl(fn) { var previousTransition = ReactCurrentBatchConfig.transition; - var previousUpdatePriority = Internals.up; + var previousUpdatePriority = Internals.p; /* ReactDOMCurrentUpdatePriority */ try { ReactCurrentBatchConfig.transition = null; - Internals.up = + Internals.p = /* ReactDOMCurrentUpdatePriority */ DiscreteEventPriority; @@ -47545,10 +47549,12 @@ if (__DEV__) { } } finally { ReactCurrentBatchConfig.transition = previousTransition; - Internals.up = + Internals.p = /* ReactDOMCurrentUpdatePriority */ previousUpdatePriority; - var wasInRender = ReactDOMCurrentDispatcher$1.current.flushSyncWork(); + var wasInRender = Internals.d + /* ReactDOMCurrentDispatcher */ + .flushSyncWork(); { if (wasInRender) { @@ -47583,7 +47589,6 @@ if (__DEV__) { return undefined; } - var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; function prefetchDNS(href) { { if (typeof href !== "string" || !href) { @@ -47612,7 +47617,9 @@ if (__DEV__) { } if (typeof href === "string") { - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .prefetchDNS(href); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -47641,7 +47648,9 @@ if (__DEV__) { var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null; - ReactDOMCurrentDispatcher.current.preconnect(href, crossOrigin); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preconnect(href, crossOrigin); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -47685,32 +47694,35 @@ if (__DEV__) { ) { var as = options.as; var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: typeof options.nonce === "string" ? options.nonce : undefined, - type: typeof options.type === "string" ? options.type : undefined, - fetchPriority: - typeof options.fetchPriority === "string" - ? options.fetchPriority - : undefined, - referrerPolicy: - typeof options.referrerPolicy === "string" - ? options.referrerPolicy - : undefined, - imageSrcSet: - typeof options.imageSrcSet === "string" - ? options.imageSrcSet - : undefined, - imageSizes: - typeof options.imageSizes === "string" - ? options.imageSizes - : undefined, - media: typeof options.media === "string" ? options.media : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preload(href, as, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined, + type: typeof options.type === "string" ? options.type : undefined, + fetchPriority: + typeof options.fetchPriority === "string" + ? options.fetchPriority + : undefined, + referrerPolicy: + typeof options.referrerPolicy === "string" + ? options.referrerPolicy + : undefined, + imageSrcSet: + typeof options.imageSrcSet === "string" + ? options.imageSrcSet + : undefined, + imageSizes: + typeof options.imageSizes === "string" + ? options.imageSizes + : undefined, + media: typeof options.media === "string" ? options.media : undefined + }); } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -47756,19 +47768,23 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preloadModule(href, { - as: - typeof options.as === "string" && options.as !== "script" - ? options.as - : undefined, - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href, { + as: + typeof options.as === "string" && options.as !== "script" + ? options.as + : undefined, + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined + }); } else { - ReactDOMCurrentDispatcher.current.preloadModule(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href); } } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -47809,24 +47825,29 @@ if (__DEV__) { : undefined; if (as === "style") { - ReactDOMCurrentDispatcher.current.preinitStyle( - href, - typeof options.precedence === "string" - ? options.precedence - : undefined, - { + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitStyle( + href, + typeof options.precedence === "string" + ? options.precedence + : undefined, + { + crossOrigin: crossOrigin, + integrity: integrity, + fetchPriority: fetchPriority + } + ); + } else if (as === "script") { + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, - fetchPriority: fetchPriority - } - ); - } else if (as === "script") { - ReactDOMCurrentDispatcher.current.preinitScript(href, { - crossOrigin: crossOrigin, - integrity: integrity, - fetchPriority: fetchPriority, - nonce: typeof options.nonce === "string" ? options.nonce : undefined - }); + fetchPriority: fetchPriority, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -47893,18 +47914,22 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: - typeof options.nonce === "string" ? options.nonce : undefined - }); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } else if (options == null) { - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + Internals.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -47964,7 +47989,7 @@ if (__DEV__) { // $FlowFixMe[incompatible-return] The Flow type is opaque but there's no way to actually create it. return createPortal$1(children, container, null, key); - } + } // Overload the definition to the two valid signatures. var flushSync = flushSync$1; @@ -47982,14 +48007,16 @@ if (__DEV__) { } // This is an array for better minification. - Internals.Events = [ - getInstanceFromNode$1, - getNodeFromInstance, - getFiberCurrentPropsFromNode, - enqueueStateRestore, - restoreStateIfNeeded, - unstable_batchedUpdates - ]; + Internals.Events = + /* Events */ + [ + getInstanceFromNode$1, + getNodeFromInstance, + getFiberCurrentPropsFromNode, + enqueueStateRestore, + restoreStateIfNeeded, + unstable_batchedUpdates + ]; var foundDevTools = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 197206b6f9..66f79172a3 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -722,29 +722,26 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var allNativeEvents = new Set(); @@ -4098,8 +4095,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -4131,7 +4128,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -10805,7 +10802,7 @@ function requestUpdateLane(fiber) { (fiber = currentEntangledLane), 0 !== fiber ? fiber : requestTransitionLane() ); - fiber = Internals.up; + fiber = Internals.p; 0 === fiber && ((fiber = window.event), (fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type))); @@ -11610,9 +11607,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$1.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$1.transition = null), commitRootImpl( root, @@ -11624,7 +11621,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$1.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -11669,8 +11666,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -11690,7 +11687,7 @@ function commitRootImpl( commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$1.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects @@ -11756,15 +11753,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$1.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), releaseRootPooledCache(root$196, remainingLanes); } @@ -15209,8 +15206,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { (null == propKey$228 && null == propKey) || setProp(domElement, tag, lastProp, propKey$228, nextProps, propKey); } -var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -15508,8 +15504,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$1.current; -ReactDOMCurrentDispatcher$1.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -16652,12 +16648,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -16669,12 +16665,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -16908,7 +16904,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -16967,7 +16963,6 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { return findHostInstance(componentOrElement); }; @@ -16984,7 +16979,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1727 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-4dfdbe45", + version: "19.0.0-www-classic-eb2872a8", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2160 = { @@ -17014,7 +17009,7 @@ var internals$jscomp$inline_2160 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-4dfdbe45" + reconcilerVersion: "19.0.0-www-classic-eb2872a8" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17227,14 +17222,14 @@ exports.flushSync = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; var prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { - Internals.up = 2; + Internals.p = 2; ReactCurrentBatchConfig$1.transition = null; var JSCompiler_inline_result = fn ? fn() : void 0; break a; } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); @@ -17302,11 +17297,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -17319,7 +17313,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -17329,7 +17323,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -17345,16 +17339,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -17365,7 +17357,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -17391,7 +17383,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -17400,7 +17392,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.render = function (element, container, callback) { if (!isValidContainerLegacy(container)) @@ -17483,4 +17475,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-4dfdbe45"; +exports.version = "19.0.0-www-classic-eb2872a8"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 7a5ac3941c..9c52d71965 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -333,22 +333,19 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; @@ -616,11 +613,11 @@ function popHostContext(fiber) { } var hasOwnProperty = Object.prototype.hasOwnProperty; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var randomKey = Math.random().toString(36).slice(2), @@ -6699,8 +6696,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -6732,7 +6729,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -13401,7 +13398,7 @@ function requestUpdateLane() { var actionScopeLane = currentEntangledLane; return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane(); } - actionScopeLane = Internals.up; + actionScopeLane = Internals.p; 0 === actionScopeLane && ((actionScopeLane = window.event), (actionScopeLane = @@ -14187,9 +14184,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$2.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$2.transition = null), commitRootImpl( root, @@ -14201,7 +14198,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$2.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -14246,8 +14243,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -14267,7 +14264,7 @@ function commitRootImpl( commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$2.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects @@ -14331,15 +14328,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$2.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$2.transition = prevTransition), releaseRootPooledCache(root$253, remainingLanes); } @@ -14514,8 +14511,7 @@ function throwIfInfiniteUpdateLoopDetected() { function scheduleCallback(priorityLevel, callback) { return scheduleCallback$3(priorityLevel, callback); } -var ReactDOMCurrentDispatcher$2 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -14799,8 +14795,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$2.current; -ReactDOMCurrentDispatcher$2.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -15694,12 +15690,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -15711,12 +15707,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -16271,7 +16267,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -16315,14 +16311,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { listenerSet.add(listenerSetKey)); } else throw Error(formatProdErrorMessage(369)); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, - ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; +var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; function getCrossOriginStringAs(as, input) { if ("font" === as) return ""; if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { var fiber = componentOrElement._reactInternals; if (void 0 === fiber) { @@ -16350,7 +16344,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1720 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-c039e18b", + version: "19.0.0-www-modern-93a9698c", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2162 = { @@ -16380,7 +16374,7 @@ var internals$jscomp$inline_2162 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-c039e18b" + reconcilerVersion: "19.0.0-www-modern-93a9698c" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16473,14 +16467,14 @@ exports.createRoot = function (container, options) { }; exports.flushSync = function (fn) { var previousTransition = ReactCurrentBatchConfig.transition, - previousUpdatePriority = Internals.up; + previousUpdatePriority = Internals.p; try { - if (((ReactCurrentBatchConfig.transition = null), (Internals.up = 2), fn)) + if (((ReactCurrentBatchConfig.transition = null), (Internals.p = 2), fn)) return fn(); } finally { (ReactCurrentBatchConfig.transition = previousTransition), - (Internals.up = previousUpdatePriority), - ReactDOMCurrentDispatcher$1.current.flushSyncWork(); + (Internals.p = previousUpdatePriority), + Internals.d.flushSyncWork(); } }; exports.hydrateRoot = function (container, initialChildren, options) { @@ -16551,11 +16545,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -16568,7 +16561,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -16578,7 +16571,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -16594,16 +16587,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -16614,7 +16605,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -16640,7 +16631,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -16649,7 +16640,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.unstable_batchedUpdates = unstable_batchedUpdates; exports.unstable_createEventHandle = function (type, options) { @@ -16692,4 +16683,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-c039e18b"; +exports.version = "19.0.0-www-modern-93a9698c"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index c6b5a69d3f..3eb4642734 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -858,29 +858,26 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var allNativeEvents = new Set(); @@ -4234,8 +4231,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -4267,7 +4264,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -11396,7 +11393,7 @@ function requestUpdateLane(fiber) { (fiber = currentEntangledLane), 0 !== fiber ? fiber : requestTransitionLane() ); - fiber = Internals.up; + fiber = Internals.p; 0 === fiber && ((fiber = window.event), (fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type))); @@ -12283,9 +12280,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$1.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$1.transition = null), commitRootImpl( root, @@ -12297,7 +12294,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$1.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -12348,8 +12345,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -12380,7 +12377,7 @@ function commitRootImpl( injectedProfilingHooks.markLayoutEffectsStopped(); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$1.transition = transitions; } else (root.current = finishedWork), (commitTime = now()); rootDoesHavePassiveEffects @@ -12449,15 +12446,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$1.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), releaseRootPooledCache(root$216, remainingLanes); } @@ -15957,8 +15954,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { (null == propKey$249 && null == propKey) || setProp(domElement, tag, lastProp, propKey$249, nextProps, propKey); } -var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -16256,8 +16252,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$1.current; -ReactDOMCurrentDispatcher$1.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -17400,12 +17396,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -17417,12 +17413,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -17656,7 +17652,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -17715,7 +17711,6 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { return findHostInstance(componentOrElement); }; @@ -17732,7 +17727,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1813 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-ea79e242", + version: "19.0.0-www-classic-8471758c", rendererPackageName: "react-dom" }; (function (internals) { @@ -17776,7 +17771,7 @@ var devToolsConfig$jscomp$inline_1813 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-ea79e242" + reconcilerVersion: "19.0.0-www-classic-8471758c" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17976,14 +17971,14 @@ exports.flushSync = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; var prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { - Internals.up = 2; + Internals.p = 2; ReactCurrentBatchConfig$1.transition = null; var JSCompiler_inline_result = fn ? fn() : void 0; break a; } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); @@ -18051,11 +18046,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -18068,7 +18062,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -18078,7 +18072,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -18094,16 +18088,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -18114,7 +18106,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -18140,7 +18132,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -18149,7 +18141,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.render = function (element, container, callback) { if (!isValidContainerLegacy(container)) @@ -18232,7 +18224,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-ea79e242"; +exports.version = "19.0.0-www-classic-8471758c"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index ee452bf1da..867bf7d7b3 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -469,22 +469,19 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; @@ -752,11 +749,11 @@ function popHostContext(fiber) { } var hasOwnProperty = Object.prototype.hasOwnProperty; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var randomKey = Math.random().toString(36).slice(2), @@ -6835,8 +6832,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -6868,7 +6865,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -13987,7 +13984,7 @@ function requestUpdateLane() { var actionScopeLane = currentEntangledLane; return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane(); } - actionScopeLane = Internals.up; + actionScopeLane = Internals.p; 0 === actionScopeLane && ((actionScopeLane = window.event), (actionScopeLane = @@ -14855,9 +14852,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$2.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$2.transition = null), commitRootImpl( root, @@ -14869,7 +14866,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$2.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -14920,8 +14917,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -14952,7 +14949,7 @@ function commitRootImpl( injectedProfilingHooks.markLayoutEffectsStopped(); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$2.transition = transitions; } else (root.current = finishedWork), (commitTime = now()); rootDoesHavePassiveEffects @@ -15019,15 +15016,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$2.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$2.transition = prevTransition), releaseRootPooledCache(root$273, remainingLanes); } @@ -15235,8 +15232,7 @@ function restorePendingUpdaters(root, lanes) { function scheduleCallback(priorityLevel, callback) { return scheduleCallback$3(priorityLevel, callback); } -var ReactDOMCurrentDispatcher$2 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -15520,8 +15516,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$2.current; -ReactDOMCurrentDispatcher$2.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -16425,12 +16421,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -16442,12 +16438,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -17002,7 +16998,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -17046,14 +17042,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { listenerSet.add(listenerSetKey)); } else throw Error(formatProdErrorMessage(369)); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, - ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; +var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; function getCrossOriginStringAs(as, input) { if ("font" === as) return ""; if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { var fiber = componentOrElement._reactInternals; if (void 0 === fiber) { @@ -17081,7 +17075,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1806 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-da5a1b1f", + version: "19.0.0-www-modern-1bf8461f", rendererPackageName: "react-dom" }; (function (internals) { @@ -17125,7 +17119,7 @@ var devToolsConfig$jscomp$inline_1806 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-da5a1b1f" + reconcilerVersion: "19.0.0-www-modern-1bf8461f" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17205,14 +17199,14 @@ exports.createRoot = function (container, options) { }; exports.flushSync = function (fn) { var previousTransition = ReactCurrentBatchConfig.transition, - previousUpdatePriority = Internals.up; + previousUpdatePriority = Internals.p; try { - if (((ReactCurrentBatchConfig.transition = null), (Internals.up = 2), fn)) + if (((ReactCurrentBatchConfig.transition = null), (Internals.p = 2), fn)) return fn(); } finally { (ReactCurrentBatchConfig.transition = previousTransition), - (Internals.up = previousUpdatePriority), - ReactDOMCurrentDispatcher$1.current.flushSyncWork(); + (Internals.p = previousUpdatePriority), + Internals.d.flushSyncWork(); } }; exports.hydrateRoot = function (container, initialChildren, options) { @@ -17283,11 +17277,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -17300,7 +17293,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -17310,7 +17303,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -17326,16 +17319,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -17346,7 +17337,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -17372,7 +17363,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -17381,7 +17372,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.unstable_batchedUpdates = unstable_batchedUpdates; exports.unstable_createEventHandle = function (type, options) { @@ -17424,7 +17415,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-da5a1b1f"; +exports.version = "19.0.0-www-modern-1bf8461f"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index ed4d11ec37..0608d0db6a 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-classic-d5ab330a"; + var ReactVersion = "19.0.0-www-classic-e7ce3381"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -2366,19 +2366,21 @@ if (__DEV__) { var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactDOMCurrentDispatcher = - ReactDOMSharedInternals.ReactDOMCurrentDispatcher; - var previousDispatcher = ReactDOMCurrentDispatcher.current; - ReactDOMCurrentDispatcher.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS, - preconnect: preconnect, - preload: preload, - preloadModule: preloadModule, - preinitScript: preinitScript, - preinitStyle: preinitStyle, - preinitModuleScript: preinitModuleScript - }; // We make every property of the descriptor optional because it is not a contract that + var previousDispatcher = ReactDOMSharedInternals.d; + /* ReactDOMCurrentDispatcher */ + + ReactDOMSharedInternals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS, + preconnect: preconnect, + preload: preload, + preloadModule: preloadModule, + preinitScript: preinitScript, + preinitStyle: preinitStyle, + preinitModuleScript: preinitModuleScript + }; // We make every property of the descriptor optional because it is not a contract that var ScriptStreamingFormat = 0; var DataStreamingFormat = 1; var NothingSent = diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 73d5f4b6e4..2ed60bda35 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-modern-f5f3f757"; + var ReactVersion = "19.0.0-www-modern-f0bfd9eb"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -2366,19 +2366,21 @@ if (__DEV__) { var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactDOMCurrentDispatcher = - ReactDOMSharedInternals.ReactDOMCurrentDispatcher; - var previousDispatcher = ReactDOMCurrentDispatcher.current; - ReactDOMCurrentDispatcher.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS, - preconnect: preconnect, - preload: preload, - preloadModule: preloadModule, - preinitScript: preinitScript, - preinitStyle: preinitStyle, - preinitModuleScript: preinitModuleScript - }; // We make every property of the descriptor optional because it is not a contract that + var previousDispatcher = ReactDOMSharedInternals.d; + /* ReactDOMCurrentDispatcher */ + + ReactDOMSharedInternals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS, + preconnect: preconnect, + preload: preload, + preloadModule: preloadModule, + preinitScript: preinitScript, + preinitStyle: preinitStyle, + preinitModuleScript: preinitModuleScript + }; // We make every property of the descriptor optional because it is not a contract that var ScriptStreamingFormat = 0; var DataStreamingFormat = 1; var NothingSent = diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 5199fbca3c..22cf108c17 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -294,11 +294,10 @@ var ReactSharedInternals = method: null, action: null }, - ReactDOMCurrentDispatcher = - ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED - .ReactDOMCurrentDispatcher, - previousDispatcher = ReactDOMCurrentDispatcher.current; -ReactDOMCurrentDispatcher.current = { + ReactDOMSharedInternals = + ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + previousDispatcher = ReactDOMSharedInternals.d; +ReactDOMSharedInternals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS, preconnect: preconnect, @@ -5678,4 +5677,4 @@ exports.renderToString = function (children, options) { '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' ); }; -exports.version = "19.0.0-www-classic-88a129b5"; +exports.version = "19.0.0-www-classic-d1aec401"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 07ef82b2e3..bfd3b8ba81 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -294,11 +294,10 @@ var ReactSharedInternals = method: null, action: null }, - ReactDOMCurrentDispatcher = - ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED - .ReactDOMCurrentDispatcher, - previousDispatcher = ReactDOMCurrentDispatcher.current; -ReactDOMCurrentDispatcher.current = { + ReactDOMSharedInternals = + ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + previousDispatcher = ReactDOMSharedInternals.d; +ReactDOMSharedInternals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS, preconnect: preconnect, @@ -5656,4 +5655,4 @@ exports.renderToString = function (children, options) { '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' ); }; -exports.version = "19.0.0-www-modern-a2afd591"; +exports.version = "19.0.0-www-modern-17053e45"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index ba3aa58cd3..300fdd8b3d 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -2363,19 +2363,21 @@ if (__DEV__) { var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactDOMCurrentDispatcher = - ReactDOMSharedInternals.ReactDOMCurrentDispatcher; - var previousDispatcher = ReactDOMCurrentDispatcher.current; - ReactDOMCurrentDispatcher.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS, - preconnect: preconnect, - preload: preload, - preloadModule: preloadModule, - preinitScript: preinitScript, - preinitStyle: preinitStyle, - preinitModuleScript: preinitModuleScript - }; // We make every property of the descriptor optional because it is not a contract that + var previousDispatcher = ReactDOMSharedInternals.d; + /* ReactDOMCurrentDispatcher */ + + ReactDOMSharedInternals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS, + preconnect: preconnect, + preload: preload, + preloadModule: preloadModule, + preinitScript: preinitScript, + preinitStyle: preinitStyle, + preinitModuleScript: preinitModuleScript + }; // We make every property of the descriptor optional because it is not a contract that var ScriptStreamingFormat = 0; var DataStreamingFormat = 1; var NothingSent = diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index f3eddef09e..36bae847e1 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -286,11 +286,10 @@ var ReactSharedInternals = method: null, action: null }, - ReactDOMCurrentDispatcher = - ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED - .ReactDOMCurrentDispatcher, - previousDispatcher = ReactDOMCurrentDispatcher.current; -ReactDOMCurrentDispatcher.current = { + ReactDOMSharedInternals = + ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + previousDispatcher = ReactDOMSharedInternals.d; +ReactDOMSharedInternals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS, preconnect: preconnect, diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 6443b0398e..e254d4f91e 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -3013,28 +3013,27 @@ if (__DEV__) { return IdleEventPriority; } - function noop$3() {} + function noop$4() {} - var DefaultDispatcher = { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 + var DefaultDispatcher$1 = { + flushSyncWork: noop$4, + prefetchDNS: noop$4, + preconnect: noop$4, + preload: noop$4, + preloadModule: noop$4, + preinitScript: noop$4, + preinitStyle: noop$4, + preinitModuleScript: noop$4 }; - var Internals = { - usingClientEntryPoint: false, + var Internals$1 = { Events: null, - ReactDOMCurrentDispatcher: { - current: DefaultDispatcher - }, - findDOMNode: null, - up: + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher$1, + p: /* currentUpdatePriority */ - NoEventPriority + NoEventPriority, + findDOMNode: null }; function setCurrentUpdatePriority( @@ -3044,13 +3043,17 @@ if (__DEV__) { // is much longer. I hope this is consistent enough to rely on across builds IntentionallyUnusedArgument ) { - Internals.up = newPriority; + Internals$1.p = + /* currentUpdatePriority */ + newPriority; } function getCurrentUpdatePriority() { - return Internals.up; + return Internals$1.p; + /* currentUpdatePriority */ } function resolveUpdatePriority() { - var updatePriority = Internals.up; + var updatePriority = Internals$1.p; + /* currentUpdatePriority */ if (updatePriority !== NoEventPriority) { return updatePriority; @@ -11381,7 +11384,7 @@ if (__DEV__) { return status === "fulfilled" || status === "rejected"; } - function noop$2() {} + function noop$3() {} function trackUsedThenable(thenableState, thenable, index) { if (ReactCurrentActQueue$3.current !== null) { @@ -11427,7 +11430,7 @@ if (__DEV__) { } // Avoid an unhandled rejection errors for the Promises that we'll // intentionally ignore. - thenable.then(noop$2, noop$2); + thenable.then(noop$3, noop$3); thenable = previous; } } // We use an expando to track the status and result of a thenable so that we @@ -11456,7 +11459,7 @@ if (__DEV__) { // some custom userspace implementation. We treat it as "pending". // Attach a dummy listener, to ensure that any lazy initialization can // happen. Flight lazily parses JSON when the value is actually awaited. - thenable.then(noop$2, noop$2); + thenable.then(noop$3, noop$3); } else { // This is an uncached thenable that we haven't seen before. // Detect infinite ping loops caused by uncached promises. @@ -36783,7 +36786,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-63a82a32"; + var ReactVersion = "19.0.0-www-classic-438c6c1d"; function createPortal$1( children, @@ -41598,7 +41601,7 @@ if (__DEV__) { return false; } - function noop$1() {} + function noop$2() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on @@ -41610,7 +41613,7 @@ if (__DEV__) { // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? - node.onclick = noop$1; + node.onclick = noop$2; } var xlinkNamespace = "http://www.w3.org/1999/xlink"; var xmlNamespace = "http://www.w3.org/XML/1998/namespace"; @@ -44803,8 +44806,6 @@ if (__DEV__) { } } - var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; // Unused - var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; @@ -46355,17 +46356,21 @@ if (__DEV__) { return root.ownerDocument || root; } - var previousDispatcher = ReactDOMCurrentDispatcher$1.current; - ReactDOMCurrentDispatcher$1.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS$1, - preconnect: preconnect$1, - preload: preload$1, - preloadModule: preloadModule$1, - preinitStyle: preinitStyle, - preinitScript: preinitScript, - preinitModuleScript: preinitModuleScript - }; + var previousDispatcher = Internals$1.d; + /* ReactDOMCurrentDispatcher */ + + Internals$1.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS$1, + preconnect: preconnect$1, + preload: preload$1, + preloadModule: preloadModule$1, + preinitStyle: preinitStyle, + preinitScript: preinitScript, + preinitModuleScript: preinitModuleScript + }; // how we resolve the HoistableRoot for ReactDOM.pre*() methods. Because we support calling // these methods outside of render there is no way to know which Document or ShadowRoot is 'scoped' // and so we have to fall back to something universal. Currently we just refer to the global document. @@ -47613,13 +47618,13 @@ if (__DEV__) { // provide the actual unsuspend function and that will get completed when the count // hits zero or it will get cancelled if the root starts new work. - function noop() {} + function noop$1() {} function startSuspendingCommit() { suspendedState = { stylesheets: null, count: 0, - unsuspend: noop + unsuspend: noop$1 }; } function suspendResource(hoistableRoot, resource, props) { @@ -49431,7 +49436,6 @@ if (__DEV__) { return undefined; } - var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; function prefetchDNS(href) { { if (typeof href !== "string" || !href) { @@ -49460,7 +49464,9 @@ if (__DEV__) { } if (typeof href === "string") { - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .prefetchDNS(href); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -49489,7 +49495,9 @@ if (__DEV__) { var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null; - ReactDOMCurrentDispatcher.current.preconnect(href, crossOrigin); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preconnect(href, crossOrigin); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -49533,32 +49541,35 @@ if (__DEV__) { ) { var as = options.as; var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: typeof options.nonce === "string" ? options.nonce : undefined, - type: typeof options.type === "string" ? options.type : undefined, - fetchPriority: - typeof options.fetchPriority === "string" - ? options.fetchPriority - : undefined, - referrerPolicy: - typeof options.referrerPolicy === "string" - ? options.referrerPolicy - : undefined, - imageSrcSet: - typeof options.imageSrcSet === "string" - ? options.imageSrcSet - : undefined, - imageSizes: - typeof options.imageSizes === "string" - ? options.imageSizes - : undefined, - media: typeof options.media === "string" ? options.media : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preload(href, as, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined, + type: typeof options.type === "string" ? options.type : undefined, + fetchPriority: + typeof options.fetchPriority === "string" + ? options.fetchPriority + : undefined, + referrerPolicy: + typeof options.referrerPolicy === "string" + ? options.referrerPolicy + : undefined, + imageSrcSet: + typeof options.imageSrcSet === "string" + ? options.imageSrcSet + : undefined, + imageSizes: + typeof options.imageSizes === "string" + ? options.imageSizes + : undefined, + media: typeof options.media === "string" ? options.media : undefined + }); } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -49604,19 +49615,23 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preloadModule(href, { - as: - typeof options.as === "string" && options.as !== "script" - ? options.as - : undefined, - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href, { + as: + typeof options.as === "string" && options.as !== "script" + ? options.as + : undefined, + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined + }); } else { - ReactDOMCurrentDispatcher.current.preloadModule(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href); } } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -49657,24 +49672,29 @@ if (__DEV__) { : undefined; if (as === "style") { - ReactDOMCurrentDispatcher.current.preinitStyle( - href, - typeof options.precedence === "string" - ? options.precedence - : undefined, - { + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitStyle( + href, + typeof options.precedence === "string" + ? options.precedence + : undefined, + { + crossOrigin: crossOrigin, + integrity: integrity, + fetchPriority: fetchPriority + } + ); + } else if (as === "script") { + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, - fetchPriority: fetchPriority - } - ); - } else if (as === "script") { - ReactDOMCurrentDispatcher.current.preinitScript(href, { - crossOrigin: crossOrigin, - integrity: integrity, - fetchPriority: fetchPriority, - nonce: typeof options.nonce === "string" ? options.nonce : undefined - }); + fetchPriority: fetchPriority, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -49741,18 +49761,22 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: - typeof options.nonce === "string" ? options.nonce : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } else if (options == null) { - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -49812,32 +49836,6 @@ if (__DEV__) { // $FlowFixMe[incompatible-return] The Flow type is opaque but there's no way to actually create it. return createPortal$1(children, container, null, key); - } - - function createRoot$1(container, options) { - { - if (!Internals.usingClientEntryPoint && !false) { - error( - 'You are importing createRoot from "react-dom" which is not supported. ' + - 'You should instead import it from "react-dom/client".' - ); - } - } - - return createRoot$2(container, options); - } - - function hydrateRoot$1(container, initialChildren, options) { - { - if (!Internals.usingClientEntryPoint && !false) { - error( - 'You are importing hydrateRoot from "react-dom" which is not supported. ' + - 'You should instead import it from "react-dom/client".' - ); - } - } - - return hydrateRoot$2(container, initialChildren, options); } // Overload the definition to the two valid signatures. // Warning, this opts-out of checking the function body. // eslint-disable-next-line no-redeclare @@ -49859,11 +49857,11 @@ if (__DEV__) { var flushSync = flushSyncFromReconciler; - function findDOMNode$1(componentOrElement) { + function findDOMNode$2(componentOrElement) { return findHostInstance(componentOrElement); } // Expose findDOMNode on internals - Internals.findDOMNode = findDOMNode$1; + Internals$1.findDOMNode = findDOMNode$2; function unstable_batchedUpdates(fn, a) { // batchedUpdates was a legacy mode feature that is a no-op outside of @@ -49873,15 +49871,17 @@ if (__DEV__) { } // This is an array for better minification. - Internals.Events = [ - getInstanceFromNode, - getNodeFromInstance, - getFiberCurrentPropsFromNode, - enqueueStateRestore, - restoreStateIfNeeded, - unstable_batchedUpdates - ]; - var foundDevTools = injectIntoDevTools({ + Internals$1.Events = + /* Events */ + [ + getInstanceFromNode, + getNodeFromInstance, + getFiberCurrentPropsFromNode, + enqueueStateRestore, + restoreStateIfNeeded, + unstable_batchedUpdates + ]; + var foundDevTools$1 = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, version: ReactVersion, @@ -49889,22 +49889,22 @@ if (__DEV__) { }); { - if (!foundDevTools && canUseDOM && window.top === window.self) { + if (!foundDevTools$1 && canUseDOM && window.top === window.self) { // If we're in Chrome or Firefox, provide a download link if not installed. if ( (navigator.userAgent.indexOf("Chrome") > -1 && navigator.userAgent.indexOf("Edge") === -1) || navigator.userAgent.indexOf("Firefox") > -1 ) { - var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://. + var protocol$1 = window.location.protocol; // Don't warn in exotic cases like chrome-extension://. - if (/^(https?|file):$/.test(protocol)) { + if (/^(https?|file):$/.test(protocol$1)) { // eslint-disable-next-line react-internal/no-production-logging console.info( "%cDownload the React DevTools " + "for a better development experience: " + "https://react.dev/link/react-devtools" + - (protocol === "file:" + (protocol$1 === "file:" ? "\nYou might need to use a local HTTP server (instead of file://): " + "https://react.dev/link/react-devtools-faq" : ""), @@ -50153,7 +50153,7 @@ if (__DEV__) { return getPublicRootInstance(root); } - function findDOMNode(componentOrElement) { + function findDOMNode$1(componentOrElement) { { var owner = ReactCurrentOwner.current; @@ -50325,12 +50325,117 @@ if (__DEV__) { } } - assign(Internals, { + assign(Internals$1, { ReactBrowserEventEmitter: { isEnabled: isEnabled } }); + function noop() {} + + var DefaultDispatcher = { + flushSyncWork: noop, + prefetchDNS: noop, + preconnect: noop, + preload: noop, + preloadModule: noop, + preinitScript: noop, + preinitStyle: noop, + preinitModuleScript: noop + }; + var Internals = { + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher, + p: + /* currentUpdatePriority */ + NoEventPriority, + findDOMNode: null, + usingClientEntryPoint: false + }; // if (true) { + + { + if ( + typeof Map !== "function" || // $FlowFixMe[prop-missing] Flow incorrectly thinks Map has no prototype + Map.prototype == null || + typeof Map.prototype.forEach !== "function" || + typeof Set !== "function" || // $FlowFixMe[prop-missing] Flow incorrectly thinks Set has no prototype + Set.prototype == null || + typeof Set.prototype.clear !== "function" || + typeof Set.prototype.forEach !== "function" + ) { + error( + "React depends on Map and Set built-in types. Make sure that you load a " + + "polyfill in older browsers. https://react.dev/link/react-polyfills" + ); + } + } + + function createRoot$1(container, options) { + { + if (!Internals.usingClientEntryPoint && !false) { + error( + 'You are importing createRoot from "react-dom" which is not supported. ' + + 'You should instead import it from "react-dom/client".' + ); + } + } + + return createRoot$2(container, options); + } + + function hydrateRoot$1(container, initialChildren, options) { + { + if (!Internals.usingClientEntryPoint && !false) { + error( + 'You are importing hydrateRoot from "react-dom" which is not supported. ' + + 'You should instead import it from "react-dom/client".' + ); + } + } + + return hydrateRoot$2(container, initialChildren, options); + } // Overload the definition to the two valid signatures. + + function findDOMNode(componentOrElement) { + return findHostInstance(componentOrElement); + } // Expose findDOMNode on internals + + Internals.findDOMNode = findDOMNode; + var foundDevTools = injectIntoDevTools({ + findFiberByHostInstance: getClosestInstanceFromNode, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-dom" + }); + + { + if (!foundDevTools && canUseDOM && window.top === window.self) { + // If we're in Chrome or Firefox, provide a download link if not installed. + if ( + (navigator.userAgent.indexOf("Chrome") > -1 && + navigator.userAgent.indexOf("Edge") === -1) || + navigator.userAgent.indexOf("Firefox") > -1 + ) { + var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://. + + if (/^(https?|file):$/.test(protocol)) { + // eslint-disable-next-line react-internal/no-production-logging + console.info( + "%cDownload the React DevTools " + + "for a better development experience: " + + "https://react.dev/link/react-devtools" + + (protocol === "file:" + ? "\nYou might need to use a local HTTP server (instead of file://): " + + "https://react.dev/link/react-devtools-faq" + : ""), + "font-weight:bold" + ); + } + } + } + } + function createRoot(container, options) { { Internals.usingClientEntryPoint = true; @@ -50358,7 +50463,7 @@ if (__DEV__) { } } - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals$1; exports.createComponentSelector = createComponentSelector; exports.createHasPseudoClassSelector = createHasPseudoClassSelector; exports.createPortal = createPortal; @@ -50368,7 +50473,7 @@ if (__DEV__) { exports.createTextSelector = createTextSelector; exports.findAllNodes = findAllNodes; exports.findBoundingRects = findBoundingRects; - exports.findDOMNode = findDOMNode; + exports.findDOMNode = findDOMNode$1; exports.flushSync = flushSync; exports.focusWithin = focusWithin; exports.getFindAllNodesFailureDescription = diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index be1ba8f0d5..7c60c97422 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -1909,28 +1909,27 @@ if (__DEV__) { return IdleEventPriority; } - function noop$3() {} + function noop$4() {} - var DefaultDispatcher = { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 + var DefaultDispatcher$1 = { + flushSyncWork: noop$4, + prefetchDNS: noop$4, + preconnect: noop$4, + preload: noop$4, + preloadModule: noop$4, + preinitScript: noop$4, + preinitStyle: noop$4, + preinitModuleScript: noop$4 }; - var Internals = { - usingClientEntryPoint: false, + var Internals$1 = { Events: null, - ReactDOMCurrentDispatcher: { - current: DefaultDispatcher - }, - findDOMNode: null, - up: + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher$1, + p: /* currentUpdatePriority */ - NoEventPriority + NoEventPriority, + findDOMNode: null }; /** @@ -2979,13 +2978,17 @@ if (__DEV__) { // is much longer. I hope this is consistent enough to rely on across builds IntentionallyUnusedArgument ) { - Internals.up = newPriority; + Internals$1.p = + /* currentUpdatePriority */ + newPriority; } function getCurrentUpdatePriority() { - return Internals.up; + return Internals$1.p; + /* currentUpdatePriority */ } function resolveUpdatePriority() { - var updatePriority = Internals.up; + var updatePriority = Internals$1.p; + /* currentUpdatePriority */ if (updatePriority !== NoEventPriority) { return updatePriority; @@ -11880,7 +11883,7 @@ if (__DEV__) { return false; } - function noop$2() {} + function noop$3() {} function trapClickOnNonInteractiveElement(node) { // Mobile Safari does not fire properly bubble click events on @@ -11892,7 +11895,7 @@ if (__DEV__) { // bookkeeping for it. Not sure if we need to clear it when the listener is // removed. // TODO: Only do this for the relevant Safaris maybe? - node.onclick = noop$2; + node.onclick = noop$3; } var xlinkNamespace = "http://www.w3.org/1999/xlink"; var xmlNamespace = "http://www.w3.org/XML/1998/namespace"; @@ -18163,7 +18166,7 @@ if (__DEV__) { return status === "fulfilled" || status === "rejected"; } - function noop$1() {} + function noop$2() {} function trackUsedThenable(thenableState, thenable, index) { if (ReactCurrentActQueue$4.current !== null) { @@ -18209,7 +18212,7 @@ if (__DEV__) { } // Avoid an unhandled rejection errors for the Promises that we'll // intentionally ignore. - thenable.then(noop$1, noop$1); + thenable.then(noop$2, noop$2); thenable = previous; } } // We use an expando to track the status and result of a thenable so that we @@ -18238,7 +18241,7 @@ if (__DEV__) { // some custom userspace implementation. We treat it as "pending". // Attach a dummy listener, to ensure that any lazy initialization can // happen. Flight lazily parses JSON when the value is actually awaited. - thenable.then(noop$1, noop$1); + thenable.then(noop$2, noop$2); } else { // This is an uncached thenable that we haven't seen before. // Detect infinite ping loops caused by uncached promises. @@ -43111,8 +43114,6 @@ if (__DEV__) { } } - var ReactDOMCurrentDispatcher$2 = Internals.ReactDOMCurrentDispatcher; // Unused - var SUPPRESS_HYDRATION_WARNING = "suppressHydrationWarning"; var SUSPENSE_START_DATA = "$"; var SUSPENSE_END_DATA = "/$"; @@ -44663,17 +44664,21 @@ if (__DEV__) { return root.ownerDocument || root; } - var previousDispatcher = ReactDOMCurrentDispatcher$2.current; - ReactDOMCurrentDispatcher$2.current = { - flushSyncWork: flushSyncWork, - prefetchDNS: prefetchDNS$1, - preconnect: preconnect$1, - preload: preload$1, - preloadModule: preloadModule$1, - preinitStyle: preinitStyle, - preinitScript: preinitScript, - preinitModuleScript: preinitModuleScript - }; + var previousDispatcher = Internals$1.d; + /* ReactDOMCurrentDispatcher */ + + Internals$1.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: flushSyncWork, + prefetchDNS: prefetchDNS$1, + preconnect: preconnect$1, + preload: preload$1, + preloadModule: preloadModule$1, + preinitStyle: preinitStyle, + preinitScript: preinitScript, + preinitModuleScript: preinitModuleScript + }; function flushSyncWork() { { @@ -45931,13 +45936,13 @@ if (__DEV__) { // provide the actual unsuspend function and that will get completed when the count // hits zero or it will get cancelled if the root starts new work. - function noop() {} + function noop$1() {} function startSuspendingCommit() { suspendedState = { stylesheets: null, count: 0, - unsuspend: noop + unsuspend: noop$1 }; } function suspendResource(hoistableRoot, resource, props) { @@ -46344,7 +46349,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-38282ccc"; + var ReactVersion = "19.0.0-www-modern-a48d0d31"; function createPortal$1( children, @@ -48281,16 +48286,15 @@ if (__DEV__) { } var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; - var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; function flushSyncImpl(fn) { var previousTransition = ReactCurrentBatchConfig.transition; - var previousUpdatePriority = Internals.up; + var previousUpdatePriority = Internals$1.p; /* ReactDOMCurrentUpdatePriority */ try { ReactCurrentBatchConfig.transition = null; - Internals.up = + Internals$1.p = /* ReactDOMCurrentUpdatePriority */ DiscreteEventPriority; @@ -48301,10 +48305,12 @@ if (__DEV__) { } } finally { ReactCurrentBatchConfig.transition = previousTransition; - Internals.up = + Internals$1.p = /* ReactDOMCurrentUpdatePriority */ previousUpdatePriority; - var wasInRender = ReactDOMCurrentDispatcher$1.current.flushSyncWork(); + var wasInRender = Internals$1.d + /* ReactDOMCurrentDispatcher */ + .flushSyncWork(); { if (wasInRender) { @@ -48339,7 +48345,6 @@ if (__DEV__) { return undefined; } - var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; function prefetchDNS(href) { { if (typeof href !== "string" || !href) { @@ -48368,7 +48373,9 @@ if (__DEV__) { } if (typeof href === "string") { - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .prefetchDNS(href); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48397,7 +48404,9 @@ if (__DEV__) { var crossOrigin = options ? getCrossOriginString(options.crossOrigin) : null; - ReactDOMCurrentDispatcher.current.preconnect(href, crossOrigin); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preconnect(href, crossOrigin); } // We don't error because preconnect needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48441,32 +48450,35 @@ if (__DEV__) { ) { var as = options.as; var crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: typeof options.nonce === "string" ? options.nonce : undefined, - type: typeof options.type === "string" ? options.type : undefined, - fetchPriority: - typeof options.fetchPriority === "string" - ? options.fetchPriority - : undefined, - referrerPolicy: - typeof options.referrerPolicy === "string" - ? options.referrerPolicy - : undefined, - imageSrcSet: - typeof options.imageSrcSet === "string" - ? options.imageSrcSet - : undefined, - imageSizes: - typeof options.imageSizes === "string" - ? options.imageSizes - : undefined, - media: typeof options.media === "string" ? options.media : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preload(href, as, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined, + type: typeof options.type === "string" ? options.type : undefined, + fetchPriority: + typeof options.fetchPriority === "string" + ? options.fetchPriority + : undefined, + referrerPolicy: + typeof options.referrerPolicy === "string" + ? options.referrerPolicy + : undefined, + imageSrcSet: + typeof options.imageSrcSet === "string" + ? options.imageSrcSet + : undefined, + imageSizes: + typeof options.imageSizes === "string" + ? options.imageSizes + : undefined, + media: typeof options.media === "string" ? options.media : undefined + }); } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical // so we favor silent bailout over warning or erroring. @@ -48512,19 +48524,23 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preloadModule(href, { - as: - typeof options.as === "string" && options.as !== "script" - ? options.as - : undefined, - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href, { + as: + typeof options.as === "string" && options.as !== "script" + ? options.as + : undefined, + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined + }); } else { - ReactDOMCurrentDispatcher.current.preloadModule(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preloadModule(href); } } // We don't error because preload needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -48565,24 +48581,29 @@ if (__DEV__) { : undefined; if (as === "style") { - ReactDOMCurrentDispatcher.current.preinitStyle( - href, - typeof options.precedence === "string" - ? options.precedence - : undefined, - { + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitStyle( + href, + typeof options.precedence === "string" + ? options.precedence + : undefined, + { + crossOrigin: crossOrigin, + integrity: integrity, + fetchPriority: fetchPriority + } + ); + } else if (as === "script") { + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, - fetchPriority: fetchPriority - } - ); - } else if (as === "script") { - ReactDOMCurrentDispatcher.current.preinitScript(href, { - crossOrigin: crossOrigin, - integrity: integrity, - fetchPriority: fetchPriority, - nonce: typeof options.nonce === "string" ? options.nonce : undefined - }); + fetchPriority: fetchPriority, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -48649,18 +48670,22 @@ if (__DEV__) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { - crossOrigin: crossOrigin, - integrity: - typeof options.integrity === "string" - ? options.integrity - : undefined, - nonce: - typeof options.nonce === "string" ? options.nonce : undefined - }); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href, { + crossOrigin: crossOrigin, + integrity: + typeof options.integrity === "string" + ? options.integrity + : undefined, + nonce: + typeof options.nonce === "string" ? options.nonce : undefined + }); } } else if (options == null) { - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + Internals$1.d + /* ReactDOMCurrentDispatcher */ + .preinitModuleScript(href); } } // We don't error because preinit needs to be resilient to being called in a variety of scopes // and the runtime may not be capable of responding. The function is optimistic and not critical @@ -48720,6 +48745,114 @@ if (__DEV__) { // $FlowFixMe[incompatible-return] The Flow type is opaque but there's no way to actually create it. return createPortal$1(children, container, null, key); + } // Overload the definition to the two valid signatures. + + var flushSync = flushSync$1; + + function findDOMNode$1(componentOrElement) { + return findHostInstance(componentOrElement); + } // Expose findDOMNode on internals + + Internals$1.findDOMNode = findDOMNode$1; + + function unstable_batchedUpdates(fn, a) { + // batchedUpdates was a legacy mode feature that is a no-op outside of + // legacy mode. In 19, we made it an actual no-op, but we're keeping it + // for now since there may be libraries that still include it. + return fn(a); + } + // This is an array for better minification. + + Internals$1.Events = + /* Events */ + [ + getInstanceFromNode$1, + getNodeFromInstance, + getFiberCurrentPropsFromNode, + enqueueStateRestore, + restoreStateIfNeeded, + unstable_batchedUpdates + ]; + var foundDevTools$1 = injectIntoDevTools({ + findFiberByHostInstance: getClosestInstanceFromNode, + bundleType: 1, + version: ReactVersion, + rendererPackageName: "react-dom" + }); + + { + if (!foundDevTools$1 && canUseDOM && window.top === window.self) { + // If we're in Chrome or Firefox, provide a download link if not installed. + if ( + (navigator.userAgent.indexOf("Chrome") > -1 && + navigator.userAgent.indexOf("Edge") === -1) || + navigator.userAgent.indexOf("Firefox") > -1 + ) { + var protocol$1 = window.location.protocol; // Don't warn in exotic cases like chrome-extension://. + + if (/^(https?|file):$/.test(protocol$1)) { + // eslint-disable-next-line react-internal/no-production-logging + console.info( + "%cDownload the React DevTools " + + "for a better development experience: " + + "https://react.dev/link/react-devtools" + + (protocol$1 === "file:" + ? "\nYou might need to use a local HTTP server (instead of file://): " + + "https://react.dev/link/react-devtools-faq" + : ""), + "font-weight:bold" + ); + } + } + } + } + + var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); + + if (typeof ReactFiberErrorDialogWWW.showErrorDialog !== "function") { + throw new Error( + "Expected ReactFiberErrorDialog.showErrorDialog to be a function." + ); + } + + function noop() {} + + var DefaultDispatcher = { + flushSyncWork: noop, + prefetchDNS: noop, + preconnect: noop, + preload: noop, + preloadModule: noop, + preinitScript: noop, + preinitStyle: noop, + preinitModuleScript: noop + }; + var Internals = { + d: + /* ReactDOMCurrentDispatcher */ + DefaultDispatcher, + p: + /* currentUpdatePriority */ + NoEventPriority, + findDOMNode: null, + usingClientEntryPoint: false + }; // if (true) { + + { + if ( + typeof Map !== "function" || // $FlowFixMe[prop-missing] Flow incorrectly thinks Map has no prototype + Map.prototype == null || + typeof Map.prototype.forEach !== "function" || + typeof Set !== "function" || // $FlowFixMe[prop-missing] Flow incorrectly thinks Set has no prototype + Set.prototype == null || + typeof Set.prototype.clear !== "function" || + typeof Set.prototype.forEach !== "function" + ) { + error( + "React depends on Map and Set built-in types. Make sure that you load a " + + "polyfill in older browsers. https://react.dev/link/react-polyfills" + ); + } } function createRoot$1(container, options) { @@ -48748,30 +48881,11 @@ if (__DEV__) { return hydrateRoot$2(container, initialChildren, options); } // Overload the definition to the two valid signatures. - var flushSync = flushSync$1; - function findDOMNode(componentOrElement) { return findHostInstance(componentOrElement); } // Expose findDOMNode on internals Internals.findDOMNode = findDOMNode; - - function unstable_batchedUpdates(fn, a) { - // batchedUpdates was a legacy mode feature that is a no-op outside of - // legacy mode. In 19, we made it an actual no-op, but we're keeping it - // for now since there may be libraries that still include it. - return fn(a); - } - // This is an array for better minification. - - Internals.Events = [ - getInstanceFromNode$1, - getNodeFromInstance, - getFiberCurrentPropsFromNode, - enqueueStateRestore, - restoreStateIfNeeded, - unstable_batchedUpdates - ]; var foundDevTools = injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 1, @@ -48806,14 +48920,6 @@ if (__DEV__) { } } - var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); - - if (typeof ReactFiberErrorDialogWWW.showErrorDialog !== "function") { - throw new Error( - "Expected ReactFiberErrorDialog.showErrorDialog to be a function." - ); - } - function createRoot(container, options) { { Internals.usingClientEntryPoint = true; @@ -48841,7 +48947,7 @@ if (__DEV__) { } } - exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; + exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals$1; exports.createComponentSelector = createComponentSelector; exports.createHasPseudoClassSelector = createHasPseudoClassSelector; exports.createPortal = createPortal; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 578abe2dc9..25db261859 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -722,29 +722,26 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var tagToRoleMappings = { @@ -4184,8 +4181,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -4217,7 +4214,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -11077,7 +11074,7 @@ function requestUpdateLane(fiber) { (fiber = currentEntangledLane), 0 !== fiber ? fiber : requestTransitionLane() ); - fiber = Internals.up; + fiber = Internals.p; 0 === fiber && ((fiber = window.event), (fiber = void 0 === fiber ? 32 : getEventPriority(fiber.type))); @@ -11882,9 +11879,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$1.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$1.transition = null), commitRootImpl( root, @@ -11896,7 +11893,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$1.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -11941,8 +11938,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -11962,7 +11959,7 @@ function commitRootImpl( commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$1.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects @@ -12028,15 +12025,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$1.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), releaseRootPooledCache(root$197, remainingLanes); } @@ -12785,9 +12782,53 @@ function attemptContinuousHydration(fiber) { markRetryLaneIfNotHydrated(fiber, 67108864); } } +function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; +} function emptyFindFiberByHostInstance() { return null; } +function injectIntoDevTools(devToolsConfig) { + devToolsConfig = { + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: findHostInstanceByFiber, + findFiberByHostInstance: + devToolsConfig.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "19.0.0-www-classic-38b8cfc1" + }; + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) + devToolsConfig = !1; + else { + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled || !hook.supportsFiber) devToolsConfig = !0; + else { + try { + (rendererID = hook.inject(devToolsConfig)), (injectedHook = hook); + } catch (err) {} + devToolsConfig = hook.checkDCE ? !0 : !1; + } + } + return devToolsConfig; +} var isInsideEventHandler = !1; function batchedUpdates(fn, a, b) { if (isInsideEventHandler) return fn(a, b); @@ -15481,8 +15522,7 @@ function updateProperties(domElement, tag, lastProps, nextProps) { (null == propKey$229 && null == propKey) || setProp(domElement, tag, lastProp, propKey$229, nextProps, propKey); } -var ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -15837,8 +15877,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$1.current; -ReactDOMCurrentDispatcher$1.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -16981,12 +17021,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -16998,12 +17038,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig.transition; ReactCurrentBatchConfig.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig.transition = prevTransition); } } @@ -17237,7 +17277,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -17296,7 +17336,6 @@ function getCrossOriginStringAs(as, input) { if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { return findHostInstance(componentOrElement); }; @@ -17310,54 +17349,12 @@ Internals.Events = [ return fn(a); } ]; -var devToolsConfig$jscomp$inline_1754 = { +injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-152d3b19", + version: "19.0.0-www-classic-38b8cfc1", rendererPackageName: "react-dom" -}; -var internals$jscomp$inline_2168 = { - bundleType: devToolsConfig$jscomp$inline_1754.bundleType, - version: devToolsConfig$jscomp$inline_1754.version, - rendererPackageName: devToolsConfig$jscomp$inline_1754.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1754.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, - findHostInstanceByFiber: function (fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: - devToolsConfig$jscomp$inline_1754.findFiberByHostInstance || - emptyFindFiberByHostInstance, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-152d3b19" -}; -if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2169 = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if ( - !hook$jscomp$inline_2169.isDisabled && - hook$jscomp$inline_2169.supportsFiber - ) - try { - (rendererID = hook$jscomp$inline_2169.inject( - internals$jscomp$inline_2168 - )), - (injectedHook = hook$jscomp$inline_2169); - } catch (err) {} -} +}); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) throw Error(formatProdErrorMessage(320)); @@ -17485,6 +17482,12 @@ assign(Internals, { } } }); +injectIntoDevTools({ + findFiberByHostInstance: getClosestInstanceFromNode, + bundleType: 0, + version: "19.0.0-www-classic-38b8cfc1", + rendererPackageName: "react-dom" +}); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createComponentSelector = function (component) { return { $$typeof: COMPONENT_TYPE, value: component }; @@ -17633,14 +17636,14 @@ exports.flushSync = function (fn) { var prevExecutionContext = executionContext; executionContext |= 1; var prevTransition = ReactCurrentBatchConfig$1.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { - Internals.up = 2; + Internals.p = 2; ReactCurrentBatchConfig$1.transition = null; var JSCompiler_inline_result = fn ? fn() : void 0; break a; } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition), (executionContext = prevExecutionContext), 0 === (executionContext & 6) && flushSyncWorkAcrossRoots_impl(!1); @@ -17774,11 +17777,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -17791,7 +17793,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -17801,7 +17803,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -17817,16 +17819,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -17837,7 +17837,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -17863,7 +17863,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -17872,7 +17872,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.render = function (element, container, callback) { if (!isValidContainerLegacy(container)) @@ -17955,4 +17955,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-152d3b19"; +exports.version = "19.0.0-www-classic-38b8cfc1"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 6a7a084348..3e5d2cb8d7 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -333,22 +333,19 @@ function lanesToEventPriority(lanes) { } function noop$3() {} var Internals = { - usingClientEntryPoint: !1, Events: null, - ReactDOMCurrentDispatcher: { - current: { - flushSyncWork: noop$3, - prefetchDNS: noop$3, - preconnect: noop$3, - preload: noop$3, - preloadModule: noop$3, - preinitScript: noop$3, - preinitStyle: noop$3, - preinitModuleScript: noop$3 - } + d: { + flushSyncWork: noop$3, + prefetchDNS: noop$3, + preconnect: noop$3, + preload: noop$3, + preloadModule: noop$3, + preinitScript: noop$3, + preinitStyle: noop$3, + preinitModuleScript: noop$3 }, - findDOMNode: null, - up: 0 + p: 0, + findDOMNode: null }; function formatProdErrorMessage(code) { var url = "https://react.dev/errors/" + code; @@ -675,11 +672,11 @@ function popHostContext(fiber) { } var hasOwnProperty = Object.prototype.hasOwnProperty; function runWithPriority(priority, fn) { - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - return (Internals.up = priority), fn(); + return (Internals.p = priority), fn(); } finally { - Internals.up = previousPriority; + Internals.p = previousPriority; } } var randomKey = Math.random().toString(36).slice(2), @@ -6844,8 +6841,8 @@ function startTransition( callback, options ) { - var previousPriority = Internals.up; - Internals.up = + var previousPriority = Internals.p; + Internals.p = 0 !== previousPriority && 8 > previousPriority ? previousPriority : 8; var prevTransition = ReactCurrentBatchConfig$3.transition, currentTransition = { _callbacks: new Set() }; @@ -6877,7 +6874,7 @@ function startTransition( reason: error }); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$3.transition = prevTransition); } } @@ -13732,7 +13729,7 @@ function requestUpdateLane() { var actionScopeLane = currentEntangledLane; return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane(); } - actionScopeLane = Internals.up; + actionScopeLane = Internals.p; 0 === actionScopeLane && ((actionScopeLane = window.event), (actionScopeLane = @@ -14518,9 +14515,9 @@ function commitRoot( spawnedLane ) { var prevTransition = ReactCurrentBatchConfig$2.transition, - previousUpdateLanePriority = Internals.up; + previousUpdateLanePriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), (ReactCurrentBatchConfig$2.transition = null), commitRootImpl( root, @@ -14532,7 +14529,7 @@ function commitRoot( ); } finally { (ReactCurrentBatchConfig$2.transition = prevTransition), - (Internals.up = previousUpdateLanePriority); + (Internals.p = previousUpdateLanePriority); } return null; } @@ -14577,8 +14574,8 @@ function commitRootImpl( if (0 !== (finishedWork.subtreeFlags & 15990) || transitions) { transitions = ReactCurrentBatchConfig$2.transition; ReactCurrentBatchConfig$2.transition = null; - spawnedLane = Internals.up; - Internals.up = 2; + spawnedLane = Internals.p; + Internals.p = 2; var prevExecutionContext = executionContext; executionContext |= 4; ReactCurrentOwner.current = null; @@ -14598,7 +14595,7 @@ function commitRootImpl( commitLayoutEffectOnFiber(root, finishedWork.alternate, finishedWork); requestPaint(); executionContext = prevExecutionContext; - Internals.up = spawnedLane; + Internals.p = spawnedLane; ReactCurrentBatchConfig$2.transition = transitions; } else root.current = finishedWork; rootDoesHavePassiveEffects @@ -14662,15 +14659,15 @@ function flushPassiveEffects() { pendingPassiveEffectsRemainingLanes = 0; var renderPriority = lanesToEventPriority(pendingPassiveEffectsLanes), prevTransition = ReactCurrentBatchConfig$2.transition, - previousPriority = Internals.up; + previousPriority = Internals.p; try { return ( - (Internals.up = 32 > renderPriority ? 32 : renderPriority), + (Internals.p = 32 > renderPriority ? 32 : renderPriority), (ReactCurrentBatchConfig$2.transition = null), flushPassiveEffectsImpl() ); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$2.transition = prevTransition), releaseRootPooledCache(root$254, remainingLanes); } @@ -14845,8 +14842,7 @@ function throwIfInfiniteUpdateLoopDetected() { function scheduleCallback(priorityLevel, callback) { return scheduleCallback$3(priorityLevel, callback); } -var ReactDOMCurrentDispatcher$2 = Internals.ReactDOMCurrentDispatcher, - eventsEnabled = null, +var eventsEnabled = null, selectionInformation = null; function getOwnerDocumentFromRootContainer(rootContainerElement) { return 9 === rootContainerElement.nodeType @@ -15187,8 +15183,8 @@ function getHoistableRoot(container) { ? container.getRootNode() : container.ownerDocument; } -var previousDispatcher = ReactDOMCurrentDispatcher$2.current; -ReactDOMCurrentDispatcher$2.current = { +var previousDispatcher = Internals.d; +Internals.d = { flushSyncWork: flushSyncWork, prefetchDNS: prefetchDNS$1, preconnect: preconnect$1, @@ -16047,9 +16043,53 @@ function attemptContinuousHydration(fiber) { markRetryLaneIfNotHydrated(fiber, 67108864); } } +function findHostInstanceByFiber(fiber) { + fiber = findCurrentHostFiber(fiber); + return null === fiber ? null : fiber.stateNode; +} function emptyFindFiberByHostInstance() { return null; } +function injectIntoDevTools(devToolsConfig) { + devToolsConfig = { + bundleType: devToolsConfig.bundleType, + version: devToolsConfig.version, + rendererPackageName: devToolsConfig.rendererPackageName, + rendererConfig: devToolsConfig.rendererConfig, + overrideHookState: null, + overrideHookStateDeletePath: null, + overrideHookStateRenamePath: null, + overrideProps: null, + overridePropsDeletePath: null, + overridePropsRenamePath: null, + setErrorHandler: null, + setSuspenseHandler: null, + scheduleUpdate: null, + currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, + findHostInstanceByFiber: findHostInstanceByFiber, + findFiberByHostInstance: + devToolsConfig.findFiberByHostInstance || emptyFindFiberByHostInstance, + findHostInstancesForRefresh: null, + scheduleRefresh: null, + scheduleRoot: null, + setRefreshHandler: null, + getCurrentFiber: null, + reconcilerVersion: "19.0.0-www-modern-014c1b8c" + }; + if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) + devToolsConfig = !1; + else { + var hook = __REACT_DEVTOOLS_GLOBAL_HOOK__; + if (hook.isDisabled || !hook.supportsFiber) devToolsConfig = !0; + else { + try { + (rendererID = hook.inject(devToolsConfig)), (injectedHook = hook); + } catch (err) {} + devToolsConfig = hook.checkDCE ? !0 : !1; + } + } + return devToolsConfig; +} var ReactCurrentBatchConfig$1 = ReactSharedInternals.ReactCurrentBatchConfig, _enabled = !0; function createEventListenerWrapperWithPriority( @@ -16082,12 +16122,12 @@ function dispatchDiscreteEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 2), + (Internals.p = 2), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -16099,12 +16139,12 @@ function dispatchContinuousEvent( ) { var prevTransition = ReactCurrentBatchConfig$1.transition; ReactCurrentBatchConfig$1.transition = null; - var previousPriority = Internals.up; + var previousPriority = Internals.p; try { - (Internals.up = 8), + (Internals.p = 8), dispatchEvent(domEventName, eventSystemFlags, container, nativeEvent); } finally { - (Internals.up = previousPriority), + (Internals.p = previousPriority), (ReactCurrentBatchConfig$1.transition = prevTransition); } } @@ -16659,7 +16699,7 @@ function ReactDOMHydrationRoot(internalRoot) { } ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { if (target) { - var updatePriority = Internals.up; + var updatePriority = Internals.p; target = { blockedOn: null, target: target, priority: updatePriority }; for ( var i = 0; @@ -16703,14 +16743,12 @@ function registerReactDOMEvent(target, domEventName, isCapturePhaseListener) { listenerSet.add(listenerSetKey)); } else throw Error(formatProdErrorMessage(369)); } -var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig, - ReactDOMCurrentDispatcher$1 = Internals.ReactDOMCurrentDispatcher; +var ReactCurrentBatchConfig = ReactSharedInternals.ReactCurrentBatchConfig; function getCrossOriginStringAs(as, input) { if ("font" === as) return ""; if ("string" === typeof input) return "use-credentials" === input ? input : ""; } -var ReactDOMCurrentDispatcher = Internals.ReactDOMCurrentDispatcher; Internals.findDOMNode = function (componentOrElement) { var fiber = componentOrElement._reactInternals; if (void 0 === fiber) { @@ -16735,56 +16773,20 @@ Internals.Events = [ restoreStateIfNeeded, unstable_batchedUpdates ]; -var devToolsConfig$jscomp$inline_1747 = { +injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-b9dba7d3", + version: "19.0.0-www-modern-014c1b8c", rendererPackageName: "react-dom" -}; -var internals$jscomp$inline_2166 = { - bundleType: devToolsConfig$jscomp$inline_1747.bundleType, - version: devToolsConfig$jscomp$inline_1747.version, - rendererPackageName: devToolsConfig$jscomp$inline_1747.rendererPackageName, - rendererConfig: devToolsConfig$jscomp$inline_1747.rendererConfig, - overrideHookState: null, - overrideHookStateDeletePath: null, - overrideHookStateRenamePath: null, - overrideProps: null, - overridePropsDeletePath: null, - overridePropsRenamePath: null, - setErrorHandler: null, - setSuspenseHandler: null, - scheduleUpdate: null, - currentDispatcherRef: ReactSharedInternals.ReactCurrentDispatcher, - findHostInstanceByFiber: function (fiber) { - fiber = findCurrentHostFiber(fiber); - return null === fiber ? null : fiber.stateNode; - }, - findFiberByHostInstance: - devToolsConfig$jscomp$inline_1747.findFiberByHostInstance || - emptyFindFiberByHostInstance, - findHostInstancesForRefresh: null, - scheduleRefresh: null, - scheduleRoot: null, - setRefreshHandler: null, - getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-b9dba7d3" -}; -if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2167 = __REACT_DEVTOOLS_GLOBAL_HOOK__; - if ( - !hook$jscomp$inline_2167.isDisabled && - hook$jscomp$inline_2167.supportsFiber - ) - try { - (rendererID = hook$jscomp$inline_2167.inject( - internals$jscomp$inline_2166 - )), - (injectedHook = hook$jscomp$inline_2167); - } catch (err) {} -} +}); if ("function" !== typeof require("ReactFiberErrorDialog").showErrorDialog) throw Error(formatProdErrorMessage(320)); +injectIntoDevTools({ + findFiberByHostInstance: getClosestInstanceFromNode, + bundleType: 0, + version: "19.0.0-www-modern-014c1b8c", + rendererPackageName: "react-dom" +}); exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals; exports.createComponentSelector = function (component) { return { $$typeof: COMPONENT_TYPE, value: component }; @@ -16919,14 +16921,14 @@ exports.findBoundingRects = function (hostRoot, selectors) { }; exports.flushSync = function (fn) { var previousTransition = ReactCurrentBatchConfig.transition, - previousUpdatePriority = Internals.up; + previousUpdatePriority = Internals.p; try { - if (((ReactCurrentBatchConfig.transition = null), (Internals.up = 2), fn)) + if (((ReactCurrentBatchConfig.transition = null), (Internals.p = 2), fn)) return fn(); } finally { (ReactCurrentBatchConfig.transition = previousTransition), - (Internals.up = previousUpdatePriority), - ReactDOMCurrentDispatcher$1.current.flushSyncWork(); + (Internals.p = previousUpdatePriority), + Internals.d.flushSyncWork(); } }; exports.focusWithin = function (hostRoot, selectors) { @@ -17063,11 +17065,10 @@ exports.preconnect = function (href, options) { : "" : void 0)) : (options = null), - ReactDOMCurrentDispatcher.current.preconnect(href, options)); + Internals.d.preconnect(href, options)); }; exports.prefetchDNS = function (href) { - "string" === typeof href && - ReactDOMCurrentDispatcher.current.prefetchDNS(href); + "string" === typeof href && Internals.d.prefetchDNS(href); }; exports.preinit = function (href, options) { if ("string" === typeof href && options && "string" === typeof options.as) { @@ -17080,7 +17081,7 @@ exports.preinit = function (href, options) { ? options.fetchPriority : void 0; "style" === as - ? ReactDOMCurrentDispatcher.current.preinitStyle( + ? Internals.d.preinitStyle( href, "string" === typeof options.precedence ? options.precedence : void 0, { @@ -17090,7 +17091,7 @@ exports.preinit = function (href, options) { } ) : "script" === as && - ReactDOMCurrentDispatcher.current.preinitScript(href, { + Internals.d.preinitScript(href, { crossOrigin: crossOrigin, integrity: integrity, fetchPriority: fetchPriority, @@ -17106,16 +17107,14 @@ exports.preinitModule = function (href, options) { options.as, options.crossOrigin ); - ReactDOMCurrentDispatcher.current.preinitModuleScript(href, { + Internals.d.preinitModuleScript(href, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, nonce: "string" === typeof options.nonce ? options.nonce : void 0 }); } - } else - null == options && - ReactDOMCurrentDispatcher.current.preinitModuleScript(href); + } else null == options && Internals.d.preinitModuleScript(href); }; exports.preload = function (href, options) { if ( @@ -17126,7 +17125,7 @@ exports.preload = function (href, options) { ) { var as = options.as, crossOrigin = getCrossOriginStringAs(as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preload(href, as, { + Internals.d.preload(href, as, { crossOrigin: crossOrigin, integrity: "string" === typeof options.integrity ? options.integrity : void 0, @@ -17152,7 +17151,7 @@ exports.preloadModule = function (href, options) { if ("string" === typeof href) if (options) { var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin); - ReactDOMCurrentDispatcher.current.preloadModule(href, { + Internals.d.preloadModule(href, { as: "string" === typeof options.as && "script" !== options.as ? options.as @@ -17161,7 +17160,7 @@ exports.preloadModule = function (href, options) { integrity: "string" === typeof options.integrity ? options.integrity : void 0 }); - } else ReactDOMCurrentDispatcher.current.preloadModule(href); + } else Internals.d.preloadModule(href); }; exports.unstable_batchedUpdates = unstable_batchedUpdates; exports.unstable_createEventHandle = function (type, options) { @@ -17203,4 +17202,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-b9dba7d3"; +exports.version = "19.0.0-www-modern-014c1b8c"; diff --git a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js index b4215b607a..2a7e861790 100644 --- a/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMClient-dev.modern.js @@ -81,10 +81,9 @@ if (__DEV__) { ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; // This client file is in the shared folder because it applies to both SSR and browser contexts. - var ReactDOMCurrentDispatcher = - ReactDOMSharedInternals.ReactDOMCurrentDispatcher; function dispatchHint(code, model) { - var dispatcher = ReactDOMCurrentDispatcher.current; + var dispatcher = ReactDOMSharedInternals.d; + /* ReactDOMCurrentDispatcher */ switch (code) { case "D": { diff --git a/compiled/facebook-www/ReactFlightDOMClient-prod.modern.js b/compiled/facebook-www/ReactFlightDOMClient-prod.modern.js index 81903bd2a5..eb58c2df07 100644 --- a/compiled/facebook-www/ReactFlightDOMClient-prod.modern.js +++ b/compiled/facebook-www/ReactFlightDOMClient-prod.modern.js @@ -14,9 +14,8 @@ var ReactDOM = require("react-dom"); require("ReactFeatureFlags"); var decoderOptions = { stream: !0 }, - ReactDOMCurrentDispatcher = - ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED - .ReactDOMCurrentDispatcher; + ReactDOMSharedInternals = + ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; function resolveClientReference(moduleMap, metadata) { if ("function" === typeof moduleMap.resolveClientReference) return moduleMap.resolveClientReference(metadata); @@ -475,7 +474,7 @@ function startReadingFromStream(response, stream) { rowID = rowTag[0]; rowTag = rowTag.slice(1); rowLength = JSON.parse(rowTag, rowLength._fromJSON); - rowTag = ReactDOMCurrentDispatcher.current; + rowTag = ReactDOMSharedInternals.d; switch (rowID) { case "D": rowTag.prefetchDNS(rowLength); diff --git a/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js index ecb0ab81a6..a60d386b69 100644 --- a/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMServer-dev.modern.js @@ -160,19 +160,21 @@ if (__DEV__) { var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; - var ReactDOMCurrentDispatcher = - ReactDOMSharedInternals.ReactDOMCurrentDispatcher; - var previousDispatcher = ReactDOMCurrentDispatcher.current; - ReactDOMCurrentDispatcher.current = { - flushSyncWork: previousDispatcher.flushSyncWork, - prefetchDNS: prefetchDNS, - preconnect: preconnect, - preload: preload, - preloadModule: preloadModule, - preinitStyle: preinitStyle, - preinitScript: preinitScript, - preinitModuleScript: preinitModuleScript - }; + var previousDispatcher = ReactDOMSharedInternals.d; + /* ReactDOMCurrentDispatcher */ + + ReactDOMSharedInternals.d = + /* ReactDOMCurrentDispatcher */ + { + flushSyncWork: previousDispatcher.flushSyncWork, + prefetchDNS: prefetchDNS, + preconnect: preconnect, + preload: preload, + preloadModule: preloadModule, + preinitStyle: preinitStyle, + preinitScript: preinitScript, + preinitModuleScript: preinitModuleScript + }; function prefetchDNS(href) { if (typeof href === "string" && href) { diff --git a/compiled/facebook-www/ReactFlightDOMServer-prod.modern.js b/compiled/facebook-www/ReactFlightDOMServer-prod.modern.js index fed5265888..aabf9271bb 100644 --- a/compiled/facebook-www/ReactFlightDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactFlightDOMServer-prod.modern.js @@ -26,11 +26,10 @@ function writeChunkAndReturn(destination, chunk) { destination.write(chunk); return !0; } -var ReactDOMCurrentDispatcher = - ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED - .ReactDOMCurrentDispatcher, - previousDispatcher = ReactDOMCurrentDispatcher.current; -ReactDOMCurrentDispatcher.current = { +var ReactDOMSharedInternals = + ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, + previousDispatcher = ReactDOMSharedInternals.d; +ReactDOMSharedInternals.d = { flushSyncWork: previousDispatcher.flushSyncWork, prefetchDNS: prefetchDNS, preconnect: preconnect,