From e7358eb82520757092da4e01c4d9013265eec896 Mon Sep 17 00:00:00 2001 From: "pull[bot]" Date: Fri, 13 Dec 2024 17:08:26 -0800 Subject: [PATCH] Remove enableFlightReadableStream (#31766) Base: https://github.com/facebook/react/pull/31765 Landed everywhere DiffTrain build for [152080276c61873fdfc88db7f5856332742ddb02](https://github.com/facebook/react/commit/152080276c61873fdfc88db7f5856332742ddb02) --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../react/react-dom/cjs/ReactDOM-dev.js | 4 +- .../react/react-dom/cjs/ReactDOM-prod.js | 4 +- .../react/react-dom/cjs/ReactDOM-profiling.js | 4 +- .../react/react-dom/cjs/ReactDOMClient-dev.js | 712 ++++++++---------- .../react-dom/cjs/ReactDOMClient-prod.js | 178 +++-- .../react-dom/cjs/ReactDOMClient-profiling.js | 178 +++-- .../react-dom/cjs/ReactDOMProfiling-dev.js | 712 ++++++++---------- .../react-dom/cjs/ReactDOMProfiling-prod.js | 178 +++-- .../cjs/ReactDOMProfiling-profiling.js | 178 +++-- .../cjs/ReactTestRenderer-dev.js | 324 ++++---- .../cjs/ReactTestRenderer-prod.js | 124 ++- .../cjs/ReactTestRenderer-profiling.js | 124 ++- .../react/react/cjs/JSXDEVRuntime-dev.js | 4 +- .../vendor/react/react/cjs/JSXRuntime-dev.js | 4 +- .../vendor/react/react/cjs/React-dev.js | 6 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 318 ++++---- .../implementations/ReactFabric-prod.fb.js | 158 ++-- .../ReactFabric-profiling.fb.js | 162 ++-- .../ReactNativeRenderer-dev.fb.js | 322 ++++---- .../ReactNativeRenderer-prod.fb.js | 162 ++-- .../ReactNativeRenderer-profiling.fb.js | 166 ++-- 25 files changed, 1886 insertions(+), 2148 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index 9ca7214d175d8..a933d07e31917 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.1.0-native-fb-fb12845d-20241213 \ No newline at end of file +19.1.0-native-fb-15208027-20241213 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js index 302f20a51375f..534c626ddedeb 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<1d24c956383007ef2228a8063ebe8934>> + * @generated SignedSource<<1b56f9b5a7232e45d2edb544e4a3f007>> */ "use strict"; @@ -420,5 +420,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-native-fb-fb12845d-20241213"; + exports.version = "19.1.0-native-fb-15208027-20241213"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js index b3a9c4149fea3..82e5bb364d2c9 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>> + * @generated SignedSource<> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js index b3a9c4149fea3..82e5bb364d2c9 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<2c9770f2de058ad6be1ceaede0107193>> + * @generated SignedSource<> */ "use strict"; @@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js index 8b4ad467f3b0a..ede7dc88f847c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<25dc727a4f4b12e8b8f3d2cfe8c7051f>> + * @generated SignedSource<<4513e46946bcee8ea9693f62feccd8dc>> */ /* @@ -545,13 +545,11 @@ __DEV__ && return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -9293,32 +9291,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2369; - var JSCompiler_object_inline_stack_2370 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2360; + var JSCompiler_object_inline_stack_2361 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2371 = !1; + var JSCompiler_object_inline_componentStack_2362 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2369 = didSuspend) || - (JSCompiler_object_inline_digest_2369 = + (JSCompiler_object_inline_digest_2360 = didSuspend) || + (JSCompiler_object_inline_digest_2360 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2369 && - ((JSCompiler_object_inline_componentStack_2371 = !0), + JSCompiler_object_inline_digest_2360 && + ((JSCompiler_object_inline_componentStack_2362 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2369 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2360 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2371 + JSCompiler_object_inline_componentStack_2362 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2368 = nextHydratableInstance; + var JSCompiler_object_inline_message_2359 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2368)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2359)) { c: { - var instance = JSCompiler_object_inline_message_2368; + var instance = JSCompiler_object_inline_message_2359; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9359,89 +9357,89 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2368 + JSCompiler_object_inline_message_2359 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2368 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2359 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2368 && - ((JSCompiler_object_inline_message_2368 = - JSCompiler_object_inline_message_2368.dehydrated), - null !== JSCompiler_object_inline_message_2368) + null !== JSCompiler_object_inline_message_2359 && + ((JSCompiler_object_inline_message_2359 = + JSCompiler_object_inline_message_2359.dehydrated), + null !== JSCompiler_object_inline_message_2359) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2368) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2359) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2368 = - JSCompiler_object_inline_stack_2370.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2370.fallback; - if (JSCompiler_object_inline_componentStack_2371) + JSCompiler_object_inline_message_2359 = + JSCompiler_object_inline_stack_2361.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2361.fallback; + if (JSCompiler_object_inline_componentStack_2362) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_stack_2361 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2368, + JSCompiler_object_inline_message_2359, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2371 = + (JSCompiler_object_inline_componentStack_2362 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2371.memoizedState = + (JSCompiler_object_inline_componentStack_2362.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2371.childLanes = + (JSCompiler_object_inline_componentStack_2362.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2370.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2361.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_stack_2361 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2368, + JSCompiler_object_inline_message_2359, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2371 = + (JSCompiler_object_inline_componentStack_2362 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2371.memoizedState = + (JSCompiler_object_inline_componentStack_2362.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2371.childLanes = + (JSCompiler_object_inline_componentStack_2362.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2368 + JSCompiler_object_inline_message_2359 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2368 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2368) + ((JSCompiler_object_inline_message_2359 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2359) ) { if (didSuspend) workInProgress.flags & 256 @@ -9458,32 +9456,32 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2371 = - JSCompiler_object_inline_stack_2370.fallback), - (JSCompiler_object_inline_message_2368 = workInProgress.mode), - (JSCompiler_object_inline_stack_2370 = createFiberFromOffscreen( + (JSCompiler_object_inline_componentStack_2362 = + JSCompiler_object_inline_stack_2361.fallback), + (JSCompiler_object_inline_message_2359 = workInProgress.mode), + (JSCompiler_object_inline_stack_2361 = createFiberFromOffscreen( { mode: "visible", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2361.children }, - JSCompiler_object_inline_message_2368, + JSCompiler_object_inline_message_2359, 0, null )), - (JSCompiler_object_inline_componentStack_2371 = + (JSCompiler_object_inline_componentStack_2362 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2371, - JSCompiler_object_inline_message_2368, + JSCompiler_object_inline_componentStack_2362, + JSCompiler_object_inline_message_2359, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2371.flags |= 2), - (JSCompiler_object_inline_stack_2370.return = workInProgress), - (JSCompiler_object_inline_componentStack_2371.return = + (JSCompiler_object_inline_componentStack_2362.flags |= 2), + (JSCompiler_object_inline_stack_2361.return = workInProgress), + (JSCompiler_object_inline_componentStack_2362.return = workInProgress), - (JSCompiler_object_inline_stack_2370.sibling = - JSCompiler_object_inline_componentStack_2371), - (workInProgress.child = JSCompiler_object_inline_stack_2370), + (JSCompiler_object_inline_stack_2361.sibling = + JSCompiler_object_inline_componentStack_2362), + (workInProgress.child = JSCompiler_object_inline_stack_2361), (workInProgress.mode & ConcurrentMode) !== NoMode && reconcileChildFibers( workInProgress, @@ -9491,63 +9489,63 @@ __DEV__ && null, renderLanes ), - (JSCompiler_object_inline_stack_2370 = workInProgress.child), - (JSCompiler_object_inline_stack_2370.memoizedState = + (JSCompiler_object_inline_stack_2361 = workInProgress.child), + (JSCompiler_object_inline_stack_2361.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2370.childLanes = + (JSCompiler_object_inline_stack_2361.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2371)); + JSCompiler_object_inline_componentStack_2362)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2368)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2359)) ) { - JSCompiler_object_inline_digest_2369 = - JSCompiler_object_inline_message_2368.nextSibling && - JSCompiler_object_inline_message_2368.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2369) { - JSCompiler_temp = JSCompiler_object_inline_digest_2369.dgst; - var message = JSCompiler_object_inline_digest_2369.msg; - instance = JSCompiler_object_inline_digest_2369.stck; - var componentStack = JSCompiler_object_inline_digest_2369.cstck; + JSCompiler_object_inline_digest_2360 = + JSCompiler_object_inline_message_2359.nextSibling && + JSCompiler_object_inline_message_2359.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2360) { + JSCompiler_temp = JSCompiler_object_inline_digest_2360.dgst; + var message = JSCompiler_object_inline_digest_2360.msg; + instance = JSCompiler_object_inline_digest_2360.stck; + var componentStack = JSCompiler_object_inline_digest_2360.cstck; } - JSCompiler_object_inline_message_2368 = message; - JSCompiler_object_inline_digest_2369 = JSCompiler_temp; - JSCompiler_object_inline_stack_2370 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2371 = + JSCompiler_object_inline_message_2359 = message; + JSCompiler_object_inline_digest_2360 = JSCompiler_temp; + JSCompiler_object_inline_stack_2361 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2362 = componentStack; - JSCompiler_object_inline_componentStack_2371 = - JSCompiler_object_inline_message_2368 - ? Error(JSCompiler_object_inline_message_2368) + JSCompiler_object_inline_componentStack_2362 = + JSCompiler_object_inline_message_2359 + ? Error(JSCompiler_object_inline_message_2359) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2371.stack = - JSCompiler_object_inline_stack_2370 || ""; - JSCompiler_object_inline_componentStack_2371.digest = - JSCompiler_object_inline_digest_2369; - JSCompiler_object_inline_digest_2369 = + JSCompiler_object_inline_componentStack_2362.stack = + JSCompiler_object_inline_stack_2361 || ""; + JSCompiler_object_inline_componentStack_2362.digest = + JSCompiler_object_inline_digest_2360; + JSCompiler_object_inline_digest_2360 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2370 = { - value: JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_stack_2361 = { + value: JSCompiler_object_inline_componentStack_2362, source: null, - stack: JSCompiler_object_inline_digest_2369 + stack: JSCompiler_object_inline_digest_2360 }; - "string" === typeof JSCompiler_object_inline_digest_2369 && + "string" === typeof JSCompiler_object_inline_digest_2360 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2371, - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_componentStack_2362, + JSCompiler_object_inline_stack_2361 ); - queueHydrationError(JSCompiler_object_inline_stack_2370); + queueHydrationError(JSCompiler_object_inline_stack_2361); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9561,44 +9559,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2369 = + (JSCompiler_object_inline_digest_2360 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2369) + didReceiveUpdate || JSCompiler_object_inline_digest_2360) ) { - JSCompiler_object_inline_digest_2369 = workInProgressRoot; + JSCompiler_object_inline_digest_2360 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2369 && - ((JSCompiler_object_inline_stack_2370 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2370 = - 0 !== (JSCompiler_object_inline_stack_2370 & 42) + null !== JSCompiler_object_inline_digest_2360 && + ((JSCompiler_object_inline_stack_2361 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2361 = + 0 !== (JSCompiler_object_inline_stack_2361 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 )), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_stack_2361 = 0 !== - (JSCompiler_object_inline_stack_2370 & - (JSCompiler_object_inline_digest_2369.suspendedLanes | + (JSCompiler_object_inline_stack_2361 & + (JSCompiler_object_inline_digest_2360.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2370), - 0 !== JSCompiler_object_inline_stack_2370 && - JSCompiler_object_inline_stack_2370 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2361), + 0 !== JSCompiler_object_inline_stack_2361 && + JSCompiler_object_inline_stack_2361 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2370), + ((prevState.retryLane = JSCompiler_object_inline_stack_2361), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360, current, - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2368.data === + JSCompiler_object_inline_message_2359.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9606,14 +9604,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2368.data === + JSCompiler_object_inline_message_2359.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((renderLanes = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2368.nextSibling + JSCompiler_object_inline_message_2359.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9631,72 +9629,72 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2370.children + JSCompiler_object_inline_stack_2361.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2371) + if (JSCompiler_object_inline_componentStack_2362) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2371 = - JSCompiler_object_inline_stack_2370.fallback), - (JSCompiler_object_inline_message_2368 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2362 = + JSCompiler_object_inline_stack_2361.fallback), + (JSCompiler_object_inline_message_2359 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), (componentStack = { mode: "hidden", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2361.children }), - (JSCompiler_object_inline_message_2368 & ConcurrentMode) === NoMode && + (JSCompiler_object_inline_message_2359 & ConcurrentMode) === NoMode && workInProgress.child !== JSCompiler_temp - ? ((JSCompiler_object_inline_stack_2370 = workInProgress.child), - (JSCompiler_object_inline_stack_2370.childLanes = 0), - (JSCompiler_object_inline_stack_2370.pendingProps = + ? ((JSCompiler_object_inline_stack_2361 = workInProgress.child), + (JSCompiler_object_inline_stack_2361.childLanes = 0), + (JSCompiler_object_inline_stack_2361.pendingProps = componentStack), workInProgress.mode & ProfileMode && - ((JSCompiler_object_inline_stack_2370.actualDuration = -0), - (JSCompiler_object_inline_stack_2370.actualStartTime = -1.1), - (JSCompiler_object_inline_stack_2370.selfBaseDuration = + ((JSCompiler_object_inline_stack_2361.actualDuration = -0), + (JSCompiler_object_inline_stack_2361.actualStartTime = -1.1), + (JSCompiler_object_inline_stack_2361.selfBaseDuration = JSCompiler_temp.selfBaseDuration), - (JSCompiler_object_inline_stack_2370.treeBaseDuration = + (JSCompiler_object_inline_stack_2361.treeBaseDuration = JSCompiler_temp.treeBaseDuration)), (workInProgress.deletions = null)) - : ((JSCompiler_object_inline_stack_2370 = createWorkInProgress( + : ((JSCompiler_object_inline_stack_2361 = createWorkInProgress( JSCompiler_temp, componentStack )), - (JSCompiler_object_inline_stack_2370.subtreeFlags = + (JSCompiler_object_inline_stack_2361.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)), null !== instance - ? (JSCompiler_object_inline_componentStack_2371 = + ? (JSCompiler_object_inline_componentStack_2362 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2371 + JSCompiler_object_inline_componentStack_2362 )) - : ((JSCompiler_object_inline_componentStack_2371 = + : ((JSCompiler_object_inline_componentStack_2362 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2371, - JSCompiler_object_inline_message_2368, + JSCompiler_object_inline_componentStack_2362, + JSCompiler_object_inline_message_2359, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2371.flags |= 2)), - (JSCompiler_object_inline_componentStack_2371.return = + (JSCompiler_object_inline_componentStack_2362.flags |= 2)), + (JSCompiler_object_inline_componentStack_2362.return = workInProgress), - (JSCompiler_object_inline_stack_2370.return = workInProgress), - (JSCompiler_object_inline_stack_2370.sibling = - JSCompiler_object_inline_componentStack_2371), - (workInProgress.child = JSCompiler_object_inline_stack_2370), - (JSCompiler_object_inline_stack_2370 = - JSCompiler_object_inline_componentStack_2371), - (JSCompiler_object_inline_componentStack_2371 = workInProgress.child), - (JSCompiler_object_inline_message_2368 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2368 - ? (JSCompiler_object_inline_message_2368 = + (JSCompiler_object_inline_stack_2361.return = workInProgress), + (JSCompiler_object_inline_stack_2361.sibling = + JSCompiler_object_inline_componentStack_2362), + (workInProgress.child = JSCompiler_object_inline_stack_2361), + (JSCompiler_object_inline_stack_2361 = + JSCompiler_object_inline_componentStack_2362), + (JSCompiler_object_inline_componentStack_2362 = workInProgress.child), + (JSCompiler_object_inline_message_2359 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2359 + ? (JSCompiler_object_inline_message_2359 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2368.cachePool), + JSCompiler_object_inline_message_2359.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9704,45 +9702,45 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2368 = { + (JSCompiler_object_inline_message_2359 = { baseLanes: - JSCompiler_object_inline_message_2368.baseLanes | renderLanes, + JSCompiler_object_inline_message_2359.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2371.memoizedState = - JSCompiler_object_inline_message_2368), - (JSCompiler_object_inline_componentStack_2371.childLanes = + (JSCompiler_object_inline_componentStack_2362.memoizedState = + JSCompiler_object_inline_message_2359), + (JSCompiler_object_inline_componentStack_2362.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2361 ); pushPrimaryTreeSuspenseHandler(workInProgress); - JSCompiler_object_inline_digest_2369 = current.child; - current = JSCompiler_object_inline_digest_2369.sibling; - JSCompiler_object_inline_digest_2369 = createWorkInProgress( - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2360 = current.child; + current = JSCompiler_object_inline_digest_2360.sibling; + JSCompiler_object_inline_digest_2360 = createWorkInProgress( + JSCompiler_object_inline_digest_2360, { mode: "visible", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2361.children } ); (workInProgress.mode & ConcurrentMode) === NoMode && - (JSCompiler_object_inline_digest_2369.lanes = renderLanes); - JSCompiler_object_inline_digest_2369.return = workInProgress; - JSCompiler_object_inline_digest_2369.sibling = null; + (JSCompiler_object_inline_digest_2360.lanes = renderLanes); + JSCompiler_object_inline_digest_2360.return = workInProgress; + JSCompiler_object_inline_digest_2360.sibling = null; null !== current && ((renderLanes = workInProgress.deletions), null === renderLanes ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) : renderLanes.push(current)); - workInProgress.child = JSCompiler_object_inline_digest_2369; + workInProgress.child = JSCompiler_object_inline_digest_2360; workInProgress.memoizedState = null; - return JSCompiler_object_inline_digest_2369; + return JSCompiler_object_inline_digest_2360; } function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { primaryChildren = createFiberFromOffscreen( @@ -19691,42 +19689,36 @@ __DEV__ && } case "src": case "href": - if ( - !( - "" !== propKey || - ("a" === tag && "href" === value) || - ("object" === tag && "data" === value) - ) - ) { - "src" === value - ? error$jscomp$0( - 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', - value, - value - ) - : error$jscomp$0( - 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', - value, - value - ); - hydrateSanitizedAttribute( - domElement, - value, - value, - null, - extraAttributes, - serverDifferences - ); - continue; - } - hydrateSanitizedAttribute( - domElement, - value, - value, - propKey, - extraAttributes, - serverDifferences - ); + "" !== propKey || + ("a" === tag && "href" === value) || + ("object" === tag && "data" === value) + ? hydrateSanitizedAttribute( + domElement, + value, + value, + propKey, + extraAttributes, + serverDifferences + ) + : ("src" === value + ? error$jscomp$0( + 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', + value, + value + ) + : error$jscomp$0( + 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', + value, + value + ), + hydrateSanitizedAttribute( + domElement, + value, + value, + null, + extraAttributes, + serverDifferences + )); continue; case "action": case "formAction": @@ -23762,16 +23754,16 @@ __DEV__ && useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); - ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; - ContextOnlyDispatcher.useFormState = throwInvalidHookError; - ContextOnlyDispatcher.useActionState = throwInvalidHookError; - ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -23890,6 +23882,23 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + mountHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -23923,27 +23932,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountInDEV.useFormState = function (action, initialState) { - currentHookNameInDev = "useFormState"; - mountHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useOptimistic = function (passthrough) { - currentHookNameInDev = "useOptimistic"; - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -24049,6 +24037,23 @@ __DEV__ && updateHookTypesDev(); return mountId(); }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return mountActionState(action, initialState); + }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24074,32 +24079,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountWithHookTypesInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountWithHookTypesInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -24205,6 +24184,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24232,27 +24228,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -24358,6 +24333,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24385,27 +24377,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnRerenderInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24530,6 +24501,25 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -24559,34 +24549,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnMountInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; InvalidNestedHooksDispatcherOnUpdateInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24711,6 +24673,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24742,31 +24723,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnRerenderInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24891,6 +24847,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24917,33 +24892,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnRerenderInDEV.useFormState = function ( - action - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; var callComponent = { "react-stack-bottom-frame": function (Component, props, secondArg) { var wasRendering = isRendering; @@ -25944,11 +25892,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-fb12845d-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-15208027-20241213" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-native-fb-fb12845d-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-native-fb-15208027-20241213\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25985,10 +25933,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -26134,5 +26082,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.1.0-native-fb-fb12845d-20241213"; + exports.version = "19.1.0-native-fb-15208027-20241213"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js index dac000c9030d0..768c890ab446f 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<0bb11a7986a8960e72017b34885fe6ae>> + * @generated SignedSource<> */ /* @@ -352,13 +352,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2112,19 +2110,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$295; + var JSCompiler_inline_result$jscomp$292; if (canUseDOM) { - var isSupported$jscomp$inline_428 = "oninput" in document; - if (!isSupported$jscomp$inline_428) { - var element$jscomp$inline_429 = document.createElement("div"); - element$jscomp$inline_429.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_428 = - "function" === typeof element$jscomp$inline_429.oninput; + var isSupported$jscomp$inline_419 = "oninput" in document; + if (!isSupported$jscomp$inline_419) { + var element$jscomp$inline_420 = document.createElement("div"); + element$jscomp$inline_420.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_419 = + "function" === typeof element$jscomp$inline_420.oninput; } - JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_428; - } else JSCompiler_inline_result$jscomp$295 = !1; + JSCompiler_inline_result$jscomp$292 = isSupported$jscomp$inline_419; + } else JSCompiler_inline_result$jscomp$292 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$295 && + JSCompiler_inline_result$jscomp$292 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4294,16 +4292,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4464,6 +4462,29 @@ var HooksDispatcherOnMount = { ":"); return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4474,29 +4495,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4533,19 +4531,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4584,22 +4582,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -12363,20 +12361,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1488 = 0; - i$jscomp$inline_1488 < simpleEventPluginEvents.length; - i$jscomp$inline_1488++ + var i$jscomp$inline_1479 = 0; + i$jscomp$inline_1479 < simpleEventPluginEvents.length; + i$jscomp$inline_1479++ ) { - var eventName$jscomp$inline_1489 = - simpleEventPluginEvents[i$jscomp$inline_1488], - domEventName$jscomp$inline_1490 = - eventName$jscomp$inline_1489.toLowerCase(), - capitalizedEvent$jscomp$inline_1491 = - eventName$jscomp$inline_1489[0].toUpperCase() + - eventName$jscomp$inline_1489.slice(1); + var eventName$jscomp$inline_1480 = + simpleEventPluginEvents[i$jscomp$inline_1479], + domEventName$jscomp$inline_1481 = + eventName$jscomp$inline_1480.toLowerCase(), + capitalizedEvent$jscomp$inline_1482 = + eventName$jscomp$inline_1480[0].toUpperCase() + + eventName$jscomp$inline_1480.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1490, - "on" + capitalizedEvent$jscomp$inline_1491 + domEventName$jscomp$inline_1481, + "on" + capitalizedEvent$jscomp$inline_1482 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15869,16 +15867,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1731 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1722 = React.version; if ( - "19.1.0-native-fb-fb12845d-20241213" !== - isomorphicReactPackageVersion$jscomp$inline_1731 + "19.1.0-native-fb-15208027-20241213" !== + isomorphicReactPackageVersion$jscomp$inline_1722 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1731, - "19.1.0-native-fb-fb12845d-20241213" + isomorphicReactPackageVersion$jscomp$inline_1722, + "19.1.0-native-fb-15208027-20241213" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15898,24 +15896,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2186 = { +var internals$jscomp$inline_2177 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2187 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2178 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2187.isDisabled && - hook$jscomp$inline_2187.supportsFiber + !hook$jscomp$inline_2178.isDisabled && + hook$jscomp$inline_2178.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2187.inject( - internals$jscomp$inline_2186 + (rendererID = hook$jscomp$inline_2178.inject( + internals$jscomp$inline_2177 )), - (injectedHook = hook$jscomp$inline_2187); + (injectedHook = hook$jscomp$inline_2178); } catch (err) {} } exports.createRoot = function (container, options) { @@ -16009,4 +16007,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js index 374b4d86ab22c..7e216969bb41d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ /* @@ -352,13 +352,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2207,19 +2205,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$311; + var JSCompiler_inline_result$jscomp$308; if (canUseDOM) { - var isSupported$jscomp$inline_444 = "oninput" in document; - if (!isSupported$jscomp$inline_444) { - var element$jscomp$inline_445 = document.createElement("div"); - element$jscomp$inline_445.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_444 = - "function" === typeof element$jscomp$inline_445.oninput; + var isSupported$jscomp$inline_435 = "oninput" in document; + if (!isSupported$jscomp$inline_435) { + var element$jscomp$inline_436 = document.createElement("div"); + element$jscomp$inline_436.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_435 = + "function" === typeof element$jscomp$inline_436.oninput; } - JSCompiler_inline_result$jscomp$311 = isSupported$jscomp$inline_444; - } else JSCompiler_inline_result$jscomp$311 = !1; + JSCompiler_inline_result$jscomp$308 = isSupported$jscomp$inline_435; + } else JSCompiler_inline_result$jscomp$308 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$311 && + JSCompiler_inline_result$jscomp$308 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4446,16 +4444,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4616,6 +4614,29 @@ var HooksDispatcherOnMount = { ":"); return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4626,29 +4647,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4685,19 +4683,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4736,22 +4734,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -13008,20 +13006,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1576 = 0; - i$jscomp$inline_1576 < simpleEventPluginEvents.length; - i$jscomp$inline_1576++ + var i$jscomp$inline_1567 = 0; + i$jscomp$inline_1567 < simpleEventPluginEvents.length; + i$jscomp$inline_1567++ ) { - var eventName$jscomp$inline_1577 = - simpleEventPluginEvents[i$jscomp$inline_1576], - domEventName$jscomp$inline_1578 = - eventName$jscomp$inline_1577.toLowerCase(), - capitalizedEvent$jscomp$inline_1579 = - eventName$jscomp$inline_1577[0].toUpperCase() + - eventName$jscomp$inline_1577.slice(1); + var eventName$jscomp$inline_1568 = + simpleEventPluginEvents[i$jscomp$inline_1567], + domEventName$jscomp$inline_1569 = + eventName$jscomp$inline_1568.toLowerCase(), + capitalizedEvent$jscomp$inline_1570 = + eventName$jscomp$inline_1568[0].toUpperCase() + + eventName$jscomp$inline_1568.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1578, - "on" + capitalizedEvent$jscomp$inline_1579 + domEventName$jscomp$inline_1569, + "on" + capitalizedEvent$jscomp$inline_1570 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -16522,16 +16520,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1821 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1812 = React.version; if ( - "19.1.0-native-fb-fb12845d-20241213" !== - isomorphicReactPackageVersion$jscomp$inline_1821 + "19.1.0-native-fb-15208027-20241213" !== + isomorphicReactPackageVersion$jscomp$inline_1812 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1821, - "19.1.0-native-fb-fb12845d-20241213" + isomorphicReactPackageVersion$jscomp$inline_1812, + "19.1.0-native-fb-15208027-20241213" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16551,12 +16549,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1828 = { +var internals$jscomp$inline_1819 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213", + reconcilerVersion: "19.1.0-native-fb-15208027-20241213", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$292 = 0; @@ -16574,16 +16572,16 @@ var internals$jscomp$inline_1828 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2238 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2229 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2238.isDisabled && - hook$jscomp$inline_2238.supportsFiber + !hook$jscomp$inline_2229.isDisabled && + hook$jscomp$inline_2229.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2238.inject( - internals$jscomp$inline_1828 + (rendererID = hook$jscomp$inline_2229.inject( + internals$jscomp$inline_1819 )), - (injectedHook = hook$jscomp$inline_2238); + (injectedHook = hook$jscomp$inline_2229); } catch (err) {} } exports.createRoot = function (container, options) { @@ -16677,4 +16675,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js index 2d9857a5bf6c5..33bedf8e81246 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<4cb53cd2dae523b6ef43d2c66efed2f0>> + * @generated SignedSource<<1dda4b67e8c388e426a93ff7f6472ec1>> */ /* @@ -545,13 +545,11 @@ __DEV__ && return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -9301,32 +9299,32 @@ __DEV__ && return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2374; - var JSCompiler_object_inline_stack_2375 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2365; + var JSCompiler_object_inline_stack_2366 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2376 = !1; + var JSCompiler_object_inline_componentStack_2367 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2374 = didSuspend) || - (JSCompiler_object_inline_digest_2374 = + (JSCompiler_object_inline_digest_2365 = didSuspend) || + (JSCompiler_object_inline_digest_2365 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2374 && - ((JSCompiler_object_inline_componentStack_2376 = !0), + JSCompiler_object_inline_digest_2365 && + ((JSCompiler_object_inline_componentStack_2367 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2374 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2365 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2376 + JSCompiler_object_inline_componentStack_2367 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2373 = nextHydratableInstance; + var JSCompiler_object_inline_message_2364 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2373)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2364)) { c: { - var instance = JSCompiler_object_inline_message_2373; + var instance = JSCompiler_object_inline_message_2364; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9367,89 +9365,89 @@ __DEV__ && JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2373 + JSCompiler_object_inline_message_2364 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2373 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2364 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2373 && - ((JSCompiler_object_inline_message_2373 = - JSCompiler_object_inline_message_2373.dehydrated), - null !== JSCompiler_object_inline_message_2373) + null !== JSCompiler_object_inline_message_2364 && + ((JSCompiler_object_inline_message_2364 = + JSCompiler_object_inline_message_2364.dehydrated), + null !== JSCompiler_object_inline_message_2364) ) return ( - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2373) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2364) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2373 = - JSCompiler_object_inline_stack_2375.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2375.fallback; - if (JSCompiler_object_inline_componentStack_2376) + JSCompiler_object_inline_message_2364 = + JSCompiler_object_inline_stack_2366.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2366.fallback; + if (JSCompiler_object_inline_componentStack_2367) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2375 = + (JSCompiler_object_inline_stack_2366 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2373, + JSCompiler_object_inline_message_2364, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2376 = + (JSCompiler_object_inline_componentStack_2367 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2376.memoizedState = + (JSCompiler_object_inline_componentStack_2367.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2376.childLanes = + (JSCompiler_object_inline_componentStack_2367.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2375.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2366.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2375 = + (JSCompiler_object_inline_stack_2366 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_message_2373, + JSCompiler_object_inline_message_2364, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_componentStack_2376 = + (JSCompiler_object_inline_componentStack_2367 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2376.memoizedState = + (JSCompiler_object_inline_componentStack_2367.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2376.childLanes = + (JSCompiler_object_inline_componentStack_2367.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2373 + JSCompiler_object_inline_message_2364 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2373 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2373) + ((JSCompiler_object_inline_message_2364 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2364) ) { if (didSuspend) workInProgress.flags & 256 @@ -9466,32 +9464,32 @@ __DEV__ && (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2376 = - JSCompiler_object_inline_stack_2375.fallback), - (JSCompiler_object_inline_message_2373 = workInProgress.mode), - (JSCompiler_object_inline_stack_2375 = createFiberFromOffscreen( + (JSCompiler_object_inline_componentStack_2367 = + JSCompiler_object_inline_stack_2366.fallback), + (JSCompiler_object_inline_message_2364 = workInProgress.mode), + (JSCompiler_object_inline_stack_2366 = createFiberFromOffscreen( { mode: "visible", - children: JSCompiler_object_inline_stack_2375.children + children: JSCompiler_object_inline_stack_2366.children }, - JSCompiler_object_inline_message_2373, + JSCompiler_object_inline_message_2364, 0, null )), - (JSCompiler_object_inline_componentStack_2376 = + (JSCompiler_object_inline_componentStack_2367 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2376, - JSCompiler_object_inline_message_2373, + JSCompiler_object_inline_componentStack_2367, + JSCompiler_object_inline_message_2364, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2376.flags |= 2), - (JSCompiler_object_inline_stack_2375.return = workInProgress), - (JSCompiler_object_inline_componentStack_2376.return = + (JSCompiler_object_inline_componentStack_2367.flags |= 2), + (JSCompiler_object_inline_stack_2366.return = workInProgress), + (JSCompiler_object_inline_componentStack_2367.return = workInProgress), - (JSCompiler_object_inline_stack_2375.sibling = - JSCompiler_object_inline_componentStack_2376), - (workInProgress.child = JSCompiler_object_inline_stack_2375), + (JSCompiler_object_inline_stack_2366.sibling = + JSCompiler_object_inline_componentStack_2367), + (workInProgress.child = JSCompiler_object_inline_stack_2366), (workInProgress.mode & ConcurrentMode) !== NoMode && reconcileChildFibers( workInProgress, @@ -9499,63 +9497,63 @@ __DEV__ && null, renderLanes ), - (JSCompiler_object_inline_stack_2375 = workInProgress.child), - (JSCompiler_object_inline_stack_2375.memoizedState = + (JSCompiler_object_inline_stack_2366 = workInProgress.child), + (JSCompiler_object_inline_stack_2366.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2375.childLanes = + (JSCompiler_object_inline_stack_2366.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2376)); + JSCompiler_object_inline_componentStack_2367)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && error$jscomp$0( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - isSuspenseInstanceFallback(JSCompiler_object_inline_message_2373)) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2364)) ) { - JSCompiler_object_inline_digest_2374 = - JSCompiler_object_inline_message_2373.nextSibling && - JSCompiler_object_inline_message_2373.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2374) { - JSCompiler_temp = JSCompiler_object_inline_digest_2374.dgst; - var message = JSCompiler_object_inline_digest_2374.msg; - instance = JSCompiler_object_inline_digest_2374.stck; - var componentStack = JSCompiler_object_inline_digest_2374.cstck; + JSCompiler_object_inline_digest_2365 = + JSCompiler_object_inline_message_2364.nextSibling && + JSCompiler_object_inline_message_2364.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2365) { + JSCompiler_temp = JSCompiler_object_inline_digest_2365.dgst; + var message = JSCompiler_object_inline_digest_2365.msg; + instance = JSCompiler_object_inline_digest_2365.stck; + var componentStack = JSCompiler_object_inline_digest_2365.cstck; } - JSCompiler_object_inline_message_2373 = message; - JSCompiler_object_inline_digest_2374 = JSCompiler_temp; - JSCompiler_object_inline_stack_2375 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2376 = + JSCompiler_object_inline_message_2364 = message; + JSCompiler_object_inline_digest_2365 = JSCompiler_temp; + JSCompiler_object_inline_stack_2366 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2367 = componentStack; - JSCompiler_object_inline_componentStack_2376 = - JSCompiler_object_inline_message_2373 - ? Error(JSCompiler_object_inline_message_2373) + JSCompiler_object_inline_componentStack_2367 = + JSCompiler_object_inline_message_2364 + ? Error(JSCompiler_object_inline_message_2364) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2376.stack = - JSCompiler_object_inline_stack_2375 || ""; - JSCompiler_object_inline_componentStack_2376.digest = - JSCompiler_object_inline_digest_2374; - JSCompiler_object_inline_digest_2374 = + JSCompiler_object_inline_componentStack_2367.stack = + JSCompiler_object_inline_stack_2366 || ""; + JSCompiler_object_inline_componentStack_2367.digest = + JSCompiler_object_inline_digest_2365; + JSCompiler_object_inline_digest_2365 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2375 = { - value: JSCompiler_object_inline_componentStack_2376, + JSCompiler_object_inline_stack_2366 = { + value: JSCompiler_object_inline_componentStack_2367, source: null, - stack: JSCompiler_object_inline_digest_2374 + stack: JSCompiler_object_inline_digest_2365 }; - "string" === typeof JSCompiler_object_inline_digest_2374 && + "string" === typeof JSCompiler_object_inline_digest_2365 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2376, - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_componentStack_2367, + JSCompiler_object_inline_stack_2366 ); - queueHydrationError(JSCompiler_object_inline_stack_2375); + queueHydrationError(JSCompiler_object_inline_stack_2366); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9569,44 +9567,44 @@ __DEV__ && renderLanes, !1 ), - (JSCompiler_object_inline_digest_2374 = + (JSCompiler_object_inline_digest_2365 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2374) + didReceiveUpdate || JSCompiler_object_inline_digest_2365) ) { - JSCompiler_object_inline_digest_2374 = workInProgressRoot; + JSCompiler_object_inline_digest_2365 = workInProgressRoot; if ( - null !== JSCompiler_object_inline_digest_2374 && - ((JSCompiler_object_inline_stack_2375 = renderLanes & -renderLanes), - (JSCompiler_object_inline_stack_2375 = - 0 !== (JSCompiler_object_inline_stack_2375 & 42) + null !== JSCompiler_object_inline_digest_2365 && + ((JSCompiler_object_inline_stack_2366 = renderLanes & -renderLanes), + (JSCompiler_object_inline_stack_2366 = + 0 !== (JSCompiler_object_inline_stack_2366 & 42) ? 1 : getBumpedLaneForHydrationByLane( - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 )), - (JSCompiler_object_inline_stack_2375 = + (JSCompiler_object_inline_stack_2366 = 0 !== - (JSCompiler_object_inline_stack_2375 & - (JSCompiler_object_inline_digest_2374.suspendedLanes | + (JSCompiler_object_inline_stack_2366 & + (JSCompiler_object_inline_digest_2365.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2375), - 0 !== JSCompiler_object_inline_stack_2375 && - JSCompiler_object_inline_stack_2375 !== prevState.retryLane) + : JSCompiler_object_inline_stack_2366), + 0 !== JSCompiler_object_inline_stack_2366 && + JSCompiler_object_inline_stack_2366 !== prevState.retryLane) ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2375), + ((prevState.retryLane = JSCompiler_object_inline_stack_2366), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365, current, - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 ), SelectiveHydrationException) ); - JSCompiler_object_inline_message_2373.data === + JSCompiler_object_inline_message_2364.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9614,14 +9612,14 @@ __DEV__ && renderLanes ); } else - JSCompiler_object_inline_message_2373.data === + JSCompiler_object_inline_message_2364.data === SUSPENSE_PENDING_START_DATA ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), (workInProgress = null)) : ((renderLanes = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2373.nextSibling + JSCompiler_object_inline_message_2364.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9639,72 +9637,72 @@ __DEV__ && (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2375.children + JSCompiler_object_inline_stack_2366.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2376) + if (JSCompiler_object_inline_componentStack_2367) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2376 = - JSCompiler_object_inline_stack_2375.fallback), - (JSCompiler_object_inline_message_2373 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2367 = + JSCompiler_object_inline_stack_2366.fallback), + (JSCompiler_object_inline_message_2364 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), (componentStack = { mode: "hidden", - children: JSCompiler_object_inline_stack_2375.children + children: JSCompiler_object_inline_stack_2366.children }), - (JSCompiler_object_inline_message_2373 & ConcurrentMode) === NoMode && + (JSCompiler_object_inline_message_2364 & ConcurrentMode) === NoMode && workInProgress.child !== JSCompiler_temp - ? ((JSCompiler_object_inline_stack_2375 = workInProgress.child), - (JSCompiler_object_inline_stack_2375.childLanes = 0), - (JSCompiler_object_inline_stack_2375.pendingProps = + ? ((JSCompiler_object_inline_stack_2366 = workInProgress.child), + (JSCompiler_object_inline_stack_2366.childLanes = 0), + (JSCompiler_object_inline_stack_2366.pendingProps = componentStack), workInProgress.mode & ProfileMode && - ((JSCompiler_object_inline_stack_2375.actualDuration = -0), - (JSCompiler_object_inline_stack_2375.actualStartTime = -1.1), - (JSCompiler_object_inline_stack_2375.selfBaseDuration = + ((JSCompiler_object_inline_stack_2366.actualDuration = -0), + (JSCompiler_object_inline_stack_2366.actualStartTime = -1.1), + (JSCompiler_object_inline_stack_2366.selfBaseDuration = JSCompiler_temp.selfBaseDuration), - (JSCompiler_object_inline_stack_2375.treeBaseDuration = + (JSCompiler_object_inline_stack_2366.treeBaseDuration = JSCompiler_temp.treeBaseDuration)), (workInProgress.deletions = null)) - : ((JSCompiler_object_inline_stack_2375 = createWorkInProgress( + : ((JSCompiler_object_inline_stack_2366 = createWorkInProgress( JSCompiler_temp, componentStack )), - (JSCompiler_object_inline_stack_2375.subtreeFlags = + (JSCompiler_object_inline_stack_2366.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280)), null !== instance - ? (JSCompiler_object_inline_componentStack_2376 = + ? (JSCompiler_object_inline_componentStack_2367 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2376 + JSCompiler_object_inline_componentStack_2367 )) - : ((JSCompiler_object_inline_componentStack_2376 = + : ((JSCompiler_object_inline_componentStack_2367 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2376, - JSCompiler_object_inline_message_2373, + JSCompiler_object_inline_componentStack_2367, + JSCompiler_object_inline_message_2364, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2376.flags |= 2)), - (JSCompiler_object_inline_componentStack_2376.return = + (JSCompiler_object_inline_componentStack_2367.flags |= 2)), + (JSCompiler_object_inline_componentStack_2367.return = workInProgress), - (JSCompiler_object_inline_stack_2375.return = workInProgress), - (JSCompiler_object_inline_stack_2375.sibling = - JSCompiler_object_inline_componentStack_2376), - (workInProgress.child = JSCompiler_object_inline_stack_2375), - (JSCompiler_object_inline_stack_2375 = - JSCompiler_object_inline_componentStack_2376), - (JSCompiler_object_inline_componentStack_2376 = workInProgress.child), - (JSCompiler_object_inline_message_2373 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2373 - ? (JSCompiler_object_inline_message_2373 = + (JSCompiler_object_inline_stack_2366.return = workInProgress), + (JSCompiler_object_inline_stack_2366.sibling = + JSCompiler_object_inline_componentStack_2367), + (workInProgress.child = JSCompiler_object_inline_stack_2366), + (JSCompiler_object_inline_stack_2366 = + JSCompiler_object_inline_componentStack_2367), + (JSCompiler_object_inline_componentStack_2367 = workInProgress.child), + (JSCompiler_object_inline_message_2364 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2364 + ? (JSCompiler_object_inline_message_2364 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2373.cachePool), + JSCompiler_object_inline_message_2364.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9712,45 +9710,45 @@ __DEV__ && ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2373 = { + (JSCompiler_object_inline_message_2364 = { baseLanes: - JSCompiler_object_inline_message_2373.baseLanes | renderLanes, + JSCompiler_object_inline_message_2364.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2376.memoizedState = - JSCompiler_object_inline_message_2373), - (JSCompiler_object_inline_componentStack_2376.childLanes = + (JSCompiler_object_inline_componentStack_2367.memoizedState = + JSCompiler_object_inline_message_2364), + (JSCompiler_object_inline_componentStack_2367.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2375 + JSCompiler_object_inline_stack_2366 ); pushPrimaryTreeSuspenseHandler(workInProgress); - JSCompiler_object_inline_digest_2374 = current.child; - current = JSCompiler_object_inline_digest_2374.sibling; - JSCompiler_object_inline_digest_2374 = createWorkInProgress( - JSCompiler_object_inline_digest_2374, + JSCompiler_object_inline_digest_2365 = current.child; + current = JSCompiler_object_inline_digest_2365.sibling; + JSCompiler_object_inline_digest_2365 = createWorkInProgress( + JSCompiler_object_inline_digest_2365, { mode: "visible", - children: JSCompiler_object_inline_stack_2375.children + children: JSCompiler_object_inline_stack_2366.children } ); (workInProgress.mode & ConcurrentMode) === NoMode && - (JSCompiler_object_inline_digest_2374.lanes = renderLanes); - JSCompiler_object_inline_digest_2374.return = workInProgress; - JSCompiler_object_inline_digest_2374.sibling = null; + (JSCompiler_object_inline_digest_2365.lanes = renderLanes); + JSCompiler_object_inline_digest_2365.return = workInProgress; + JSCompiler_object_inline_digest_2365.sibling = null; null !== current && ((renderLanes = workInProgress.deletions), null === renderLanes ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) : renderLanes.push(current)); - workInProgress.child = JSCompiler_object_inline_digest_2374; + workInProgress.child = JSCompiler_object_inline_digest_2365; workInProgress.memoizedState = null; - return JSCompiler_object_inline_digest_2374; + return JSCompiler_object_inline_digest_2365; } function mountSuspensePrimaryChildren(workInProgress, primaryChildren) { primaryChildren = createFiberFromOffscreen( @@ -19703,42 +19701,36 @@ __DEV__ && } case "src": case "href": - if ( - !( - "" !== propKey || - ("a" === tag && "href" === value) || - ("object" === tag && "data" === value) - ) - ) { - "src" === value - ? error$jscomp$0( - 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', - value, - value - ) - : error$jscomp$0( - 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', - value, - value - ); - hydrateSanitizedAttribute( - domElement, - value, - value, - null, - extraAttributes, - serverDifferences - ); - continue; - } - hydrateSanitizedAttribute( - domElement, - value, - value, - propKey, - extraAttributes, - serverDifferences - ); + "" !== propKey || + ("a" === tag && "href" === value) || + ("object" === tag && "data" === value) + ? hydrateSanitizedAttribute( + domElement, + value, + value, + propKey, + extraAttributes, + serverDifferences + ) + : ("src" === value + ? error$jscomp$0( + 'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', + value, + value + ) + : error$jscomp$0( + 'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.', + value, + value + ), + hydrateSanitizedAttribute( + domElement, + value, + value, + null, + extraAttributes, + serverDifferences + )); continue; case "action": case "formAction": @@ -23823,16 +23815,16 @@ __DEV__ && useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); - ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; - ContextOnlyDispatcher.useFormState = throwInvalidHookError; - ContextOnlyDispatcher.useActionState = throwInvalidHookError; - ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -23951,6 +23943,23 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + mountHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -23984,27 +23993,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountInDEV.useFormState = function (action, initialState) { - currentHookNameInDev = "useFormState"; - mountHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useOptimistic = function (passthrough) { - currentHookNameInDev = "useOptimistic"; - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -24110,6 +24098,23 @@ __DEV__ && updateHookTypesDev(); return mountId(); }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return mountActionState(action, initialState); + }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24135,32 +24140,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountWithHookTypesInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountWithHookTypesInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -24266,6 +24245,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24293,27 +24289,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -24419,6 +24394,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24446,27 +24438,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnRerenderInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24591,6 +24562,25 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -24620,34 +24610,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnMountInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; InvalidNestedHooksDispatcherOnUpdateInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24772,6 +24734,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24803,31 +24784,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnRerenderInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -24952,6 +24908,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -24978,33 +24953,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnRerenderInDEV.useFormState = function ( - action - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; var callComponent = { "react-stack-bottom-frame": function (Component, props, secondArg) { var wasRendering = isRendering; @@ -26005,11 +25953,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-fb12845d-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-15208027-20241213" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-native-fb-fb12845d-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-native-fb-15208027-20241213\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26046,10 +25994,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -26511,7 +26459,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-native-fb-fb12845d-20241213"; + exports.version = "19.1.0-native-fb-15208027-20241213"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js index f4b12ab262fa5..e37a5a3ed7f6c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<4fa40a6b2d0931b890d23da0f41d520e>> + * @generated SignedSource<> */ /* @@ -352,13 +352,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2112,19 +2110,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$295; + var JSCompiler_inline_result$jscomp$292; if (canUseDOM) { - var isSupported$jscomp$inline_429 = "oninput" in document; - if (!isSupported$jscomp$inline_429) { - var element$jscomp$inline_430 = document.createElement("div"); - element$jscomp$inline_430.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_429 = - "function" === typeof element$jscomp$inline_430.oninput; + var isSupported$jscomp$inline_420 = "oninput" in document; + if (!isSupported$jscomp$inline_420) { + var element$jscomp$inline_421 = document.createElement("div"); + element$jscomp$inline_421.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_420 = + "function" === typeof element$jscomp$inline_421.oninput; } - JSCompiler_inline_result$jscomp$295 = isSupported$jscomp$inline_429; - } else JSCompiler_inline_result$jscomp$295 = !1; + JSCompiler_inline_result$jscomp$292 = isSupported$jscomp$inline_420; + } else JSCompiler_inline_result$jscomp$292 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$295 && + JSCompiler_inline_result$jscomp$292 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4294,16 +4292,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4464,6 +4462,29 @@ var HooksDispatcherOnMount = { ":"); return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4474,29 +4495,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4533,19 +4531,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4584,22 +4582,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -12363,20 +12361,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1489 = 0; - i$jscomp$inline_1489 < simpleEventPluginEvents.length; - i$jscomp$inline_1489++ + var i$jscomp$inline_1480 = 0; + i$jscomp$inline_1480 < simpleEventPluginEvents.length; + i$jscomp$inline_1480++ ) { - var eventName$jscomp$inline_1490 = - simpleEventPluginEvents[i$jscomp$inline_1489], - domEventName$jscomp$inline_1491 = - eventName$jscomp$inline_1490.toLowerCase(), - capitalizedEvent$jscomp$inline_1492 = - eventName$jscomp$inline_1490[0].toUpperCase() + - eventName$jscomp$inline_1490.slice(1); + var eventName$jscomp$inline_1481 = + simpleEventPluginEvents[i$jscomp$inline_1480], + domEventName$jscomp$inline_1482 = + eventName$jscomp$inline_1481.toLowerCase(), + capitalizedEvent$jscomp$inline_1483 = + eventName$jscomp$inline_1481[0].toUpperCase() + + eventName$jscomp$inline_1481.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1491, - "on" + capitalizedEvent$jscomp$inline_1492 + domEventName$jscomp$inline_1482, + "on" + capitalizedEvent$jscomp$inline_1483 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -15880,16 +15878,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1732 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1723 = React.version; if ( - "19.1.0-native-fb-fb12845d-20241213" !== - isomorphicReactPackageVersion$jscomp$inline_1732 + "19.1.0-native-fb-15208027-20241213" !== + isomorphicReactPackageVersion$jscomp$inline_1723 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1732, - "19.1.0-native-fb-fb12845d-20241213" + isomorphicReactPackageVersion$jscomp$inline_1723, + "19.1.0-native-fb-15208027-20241213" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15909,24 +15907,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2189 = { +var internals$jscomp$inline_2180 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2190 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2181 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2190.isDisabled && - hook$jscomp$inline_2190.supportsFiber + !hook$jscomp$inline_2181.isDisabled && + hook$jscomp$inline_2181.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2190.inject( - internals$jscomp$inline_2189 + (rendererID = hook$jscomp$inline_2181.inject( + internals$jscomp$inline_2180 )), - (injectedHook = hook$jscomp$inline_2190); + (injectedHook = hook$jscomp$inline_2181); } catch (err) {} } function noop() {} @@ -16174,4 +16172,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js index b20774b8d78ab..83679aab02207 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<2da4200eb03a67077f4fc3fe610a544b>> + * @generated SignedSource<<810c06f332bccacae490e258bde06284>> */ /* @@ -356,13 +356,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2211,19 +2209,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) { } var isInputEventSupported = !1; if (canUseDOM) { - var JSCompiler_inline_result$jscomp$311; + var JSCompiler_inline_result$jscomp$308; if (canUseDOM) { - var isSupported$jscomp$inline_445 = "oninput" in document; - if (!isSupported$jscomp$inline_445) { - var element$jscomp$inline_446 = document.createElement("div"); - element$jscomp$inline_446.setAttribute("oninput", "return;"); - isSupported$jscomp$inline_445 = - "function" === typeof element$jscomp$inline_446.oninput; + var isSupported$jscomp$inline_436 = "oninput" in document; + if (!isSupported$jscomp$inline_436) { + var element$jscomp$inline_437 = document.createElement("div"); + element$jscomp$inline_437.setAttribute("oninput", "return;"); + isSupported$jscomp$inline_436 = + "function" === typeof element$jscomp$inline_437.oninput; } - JSCompiler_inline_result$jscomp$311 = isSupported$jscomp$inline_445; - } else JSCompiler_inline_result$jscomp$311 = !1; + JSCompiler_inline_result$jscomp$308 = isSupported$jscomp$inline_436; + } else JSCompiler_inline_result$jscomp$308 = !1; isInputEventSupported = - JSCompiler_inline_result$jscomp$311 && + JSCompiler_inline_result$jscomp$308 && (!document.documentMode || 9 < document.documentMode); } function stopWatchingForValueChange() { @@ -4450,16 +4448,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4620,6 +4618,29 @@ var HooksDispatcherOnMount = { ":"); return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4630,29 +4651,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4689,19 +4687,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4740,22 +4738,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -13012,20 +13010,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1577 = 0; - i$jscomp$inline_1577 < simpleEventPluginEvents.length; - i$jscomp$inline_1577++ + var i$jscomp$inline_1568 = 0; + i$jscomp$inline_1568 < simpleEventPluginEvents.length; + i$jscomp$inline_1568++ ) { - var eventName$jscomp$inline_1578 = - simpleEventPluginEvents[i$jscomp$inline_1577], - domEventName$jscomp$inline_1579 = - eventName$jscomp$inline_1578.toLowerCase(), - capitalizedEvent$jscomp$inline_1580 = - eventName$jscomp$inline_1578[0].toUpperCase() + - eventName$jscomp$inline_1578.slice(1); + var eventName$jscomp$inline_1569 = + simpleEventPluginEvents[i$jscomp$inline_1568], + domEventName$jscomp$inline_1570 = + eventName$jscomp$inline_1569.toLowerCase(), + capitalizedEvent$jscomp$inline_1571 = + eventName$jscomp$inline_1569[0].toUpperCase() + + eventName$jscomp$inline_1569.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1579, - "on" + capitalizedEvent$jscomp$inline_1580 + domEventName$jscomp$inline_1570, + "on" + capitalizedEvent$jscomp$inline_1571 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -16537,16 +16535,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1822 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1813 = React.version; if ( - "19.1.0-native-fb-fb12845d-20241213" !== - isomorphicReactPackageVersion$jscomp$inline_1822 + "19.1.0-native-fb-15208027-20241213" !== + isomorphicReactPackageVersion$jscomp$inline_1813 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1822, - "19.1.0-native-fb-fb12845d-20241213" + isomorphicReactPackageVersion$jscomp$inline_1813, + "19.1.0-native-fb-15208027-20241213" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16566,12 +16564,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1829 = { +var internals$jscomp$inline_1820 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213", + reconcilerVersion: "19.1.0-native-fb-15208027-20241213", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$292 = 0; @@ -16589,16 +16587,16 @@ var internals$jscomp$inline_1829 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2241 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2232 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2241.isDisabled && - hook$jscomp$inline_2241.supportsFiber + !hook$jscomp$inline_2232.isDisabled && + hook$jscomp$inline_2232.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2241.inject( - internals$jscomp$inline_1829 + (rendererID = hook$jscomp$inline_2232.inject( + internals$jscomp$inline_1820 )), - (injectedHook = hook$jscomp$inline_2241); + (injectedHook = hook$jscomp$inline_2232); } catch (err) {} } function noop() {} @@ -16846,7 +16844,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index 957d9c5093fe4..fa251e47107a5 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -7,13 +7,13 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; __DEV__ && (function () { - function JSCompiler_object_inline_createNodeMock_1154() { + function JSCompiler_object_inline_createNodeMock_1145() { return null; } function findHook(fiber, id) { @@ -529,13 +529,11 @@ __DEV__ && return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -13774,15 +13772,15 @@ __DEV__ && useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError; - ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; - ContextOnlyDispatcher.useFormState = throwInvalidHookError; - ContextOnlyDispatcher.useActionState = throwInvalidHookError; - ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -13893,6 +13891,23 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + mountHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -13925,27 +13940,6 @@ __DEV__ && destroy ); }; - HooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountInDEV.useFormState = function (action, initialState) { - currentHookNameInDev = "useFormState"; - mountHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useOptimistic = function (passthrough) { - currentHookNameInDev = "useOptimistic"; - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -14043,6 +14037,23 @@ __DEV__ && updateHookTypesDev(); return mountId(); }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return mountActionState(action, initialState); + }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -14067,32 +14078,6 @@ __DEV__ && destroy ); }; - HooksDispatcherOnMountWithHookTypesInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountWithHookTypesInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -14190,6 +14175,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -14216,27 +14218,6 @@ __DEV__ && destroy ); }; - HooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -14334,6 +14315,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -14360,27 +14358,6 @@ __DEV__ && destroy ); }; - HooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnRerenderInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -14497,6 +14474,25 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -14525,34 +14521,6 @@ __DEV__ && ); } }; - InvalidNestedHooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnMountInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; InvalidNestedHooksDispatcherOnUpdateInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -14669,6 +14637,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -14699,31 +14686,6 @@ __DEV__ && ); } }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnRerenderInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -14840,6 +14802,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -14870,33 +14851,6 @@ __DEV__ && ); } }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnRerenderInDEV.useFormState = function ( - action - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; var callComponent = { "react-stack-bottom-frame": function (Component, props, secondArg) { var wasRendering = isRendering; @@ -15572,10 +15526,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15597,7 +15551,7 @@ __DEV__ && exports._Scheduler = Scheduler; exports.act = act; exports.create = function (element, options) { - var createNodeMock = JSCompiler_object_inline_createNodeMock_1154, + var createNodeMock = JSCompiler_object_inline_createNodeMock_1145, isConcurrent = !1, isStrictMode = !1; "object" === typeof options && @@ -15720,5 +15674,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.1.0-native-fb-fb12845d-20241213"; + exports.version = "19.1.0-native-fb-15208027-20241213"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js index 634b60e44ba13..bde35bf1f1cfd 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<<0ba321aa7c0d2c8aecef9910a864396d>> */ "use strict"; @@ -333,13 +333,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2726,15 +2724,15 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError; -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -2868,6 +2866,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -2897,29 +2918,6 @@ HooksDispatcherOnMount.useResourceEffect = function ( updateDeps ); }; -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -2956,18 +2954,18 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect; -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -3006,21 +3004,21 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect; -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -9753,24 +9751,24 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var internals$jscomp$inline_1390 = { +var internals$jscomp$inline_1381 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1391 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1382 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1391.isDisabled && - hook$jscomp$inline_1391.supportsFiber + !hook$jscomp$inline_1382.isDisabled && + hook$jscomp$inline_1382.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1391.inject( - internals$jscomp$inline_1390 + (rendererID = hook$jscomp$inline_1382.inject( + internals$jscomp$inline_1381 )), - (injectedHook = hook$jscomp$inline_1391); + (injectedHook = hook$jscomp$inline_1382); } catch (err) {} } exports._Scheduler = Scheduler; @@ -9894,4 +9892,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js index 918517f7cc6a0..3c8f3df739ea7 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<623713ed9a0fd7e742343746bb4ba448>> + * @generated SignedSource<> */ "use strict"; @@ -333,13 +333,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -2851,15 +2849,15 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError; -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -2993,6 +2991,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -3022,29 +3043,6 @@ HooksDispatcherOnMount.useResourceEffect = function ( updateDeps ); }; -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -3081,18 +3079,18 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect; -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -3131,21 +3129,21 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect; -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -10322,12 +10320,12 @@ function wrapFiber(fiber) { fiberToWrapper.set(fiber, wrapper)); return wrapper; } -var internals$jscomp$inline_1203 = { +var internals$jscomp$inline_1194 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213", + reconcilerVersion: "19.1.0-native-fb-15208027-20241213", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$146 = 0; @@ -10345,16 +10343,16 @@ var internals$jscomp$inline_1203 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1447 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1438 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1447.isDisabled && - hook$jscomp$inline_1447.supportsFiber + !hook$jscomp$inline_1438.isDisabled && + hook$jscomp$inline_1438.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1447.inject( - internals$jscomp$inline_1203 + (rendererID = hook$jscomp$inline_1438.inject( + internals$jscomp$inline_1194 )), - (injectedHook = hook$jscomp$inline_1447); + (injectedHook = hook$jscomp$inline_1438); } catch (err) {} } exports._Scheduler = Scheduler; @@ -10478,4 +10476,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXDEVRuntime-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXDEVRuntime-dev.js index 51a5104d9ad7f..bbec353aca1c0 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXDEVRuntime-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXDEVRuntime-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<72b895ad61fca7b76f9143c7f09a0d56>> + * @generated SignedSource<> */ "use strict"; @@ -348,7 +348,7 @@ __DEV__ && if ("object" === typeof type) switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: - return (type = describeNativeComponentFrame(type.render, !1)), type; + return describeNativeComponentFrame(type.render, !1); case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type); case REACT_LAZY_TYPE: diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXRuntime-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXRuntime-dev.js index 57e91384cd284..8ddb40c343ec8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXRuntime-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/JSXRuntime-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -348,7 +348,7 @@ __DEV__ && if ("object" === typeof type) switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: - return (type = describeNativeComponentFrame(type.render, !1)), type; + return describeNativeComponentFrame(type.render, !1); case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type); case REACT_LAZY_TYPE: diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js index ec615ea5bb70d..1e6d7d41bc4b2 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<6a79eb171bca332d862b8c2836468529>> + * @generated SignedSource<> */ "use strict"; @@ -429,7 +429,7 @@ __DEV__ && if ("object" === typeof type) switch (type.$$typeof) { case REACT_FORWARD_REF_TYPE: - return (type = describeNativeComponentFrame(type.render, !1)), type; + return describeNativeComponentFrame(type.render, !1); case REACT_MEMO_TYPE: return describeUnknownElementTypeFrameInDEV(type.type); case REACT_LAZY_TYPE: @@ -1829,7 +1829,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-native-fb-fb12845d-20241213"; + exports.version = "19.1.0-native-fb-15208027-20241213"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js index 268fdd7eaee33..1220a8cb8575c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -597,4 +597,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js index 79b6c9f5a0c0c..935a82f33101c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<583c8ddd72236140a6751a8bd6c8290a>> + * @generated SignedSource<> */ "use strict"; @@ -601,7 +601,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-native-fb-fb12845d-20241213"; +exports.version = "19.1.0-native-fb-15208027-20241213"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index 88c7985f5b403..e35e4a0441ce8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -fb12845d779667b35cc7f44eee6bea47f4db72ba +152080276c61873fdfc88db7f5856332742ddb02 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index bdd61bcc581a7..94083a8ae7d7c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<821871d6aea7cce3cf72e24465d7fc8b>> + * @generated SignedSource<<79e1229e1e72ea01063605955ac48ae4>> */ "use strict"; @@ -416,13 +416,11 @@ __DEV__ && return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -15612,16 +15610,16 @@ __DEV__ && useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); - ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; - ContextOnlyDispatcher.useFormState = throwInvalidHookError; - ContextOnlyDispatcher.useActionState = throwInvalidHookError; - ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -15732,6 +15730,23 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + mountHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -15765,27 +15780,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountInDEV.useFormState = function (action, initialState) { - currentHookNameInDev = "useFormState"; - mountHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useOptimistic = function (passthrough) { - currentHookNameInDev = "useOptimistic"; - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -15883,6 +15877,23 @@ __DEV__ && updateHookTypesDev(); return mountId(); }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return mountActionState(action, initialState); + }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -15908,32 +15919,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountWithHookTypesInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountWithHookTypesInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -16031,6 +16016,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16058,27 +16060,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -16176,6 +16157,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16203,27 +16201,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnRerenderInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -16340,6 +16317,25 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -16369,34 +16365,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnMountInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; InvalidNestedHooksDispatcherOnUpdateInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -16513,6 +16481,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16544,31 +16531,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnRerenderInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -16685,6 +16647,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16711,33 +16692,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnRerenderInDEV.useFormState = function ( - action - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; var callComponent = { "react-stack-bottom-frame": function (Component, props, secondArg) { var wasRendering = isRendering; @@ -17515,10 +17469,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index 408158dc21379..c6de880743ea7 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "use strict"; @@ -226,13 +226,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -1233,7 +1231,7 @@ eventPluginOrder = Array.prototype.slice.call([ "ReactNativeBridgeEventPlugin" ]); recomputePluginOrdering(); -var injectedNamesToPlugins$jscomp$inline_288 = { +var injectedNamesToPlugins$jscomp$inline_279 = { ResponderEventPlugin: ResponderEventPlugin, ReactNativeBridgeEventPlugin: { eventTypes: {}, @@ -1279,32 +1277,32 @@ var injectedNamesToPlugins$jscomp$inline_288 = { } } }, - isOrderingDirty$jscomp$inline_289 = !1, - pluginName$jscomp$inline_290; -for (pluginName$jscomp$inline_290 in injectedNamesToPlugins$jscomp$inline_288) + isOrderingDirty$jscomp$inline_280 = !1, + pluginName$jscomp$inline_281; +for (pluginName$jscomp$inline_281 in injectedNamesToPlugins$jscomp$inline_279) if ( - injectedNamesToPlugins$jscomp$inline_288.hasOwnProperty( - pluginName$jscomp$inline_290 + injectedNamesToPlugins$jscomp$inline_279.hasOwnProperty( + pluginName$jscomp$inline_281 ) ) { - var pluginModule$jscomp$inline_291 = - injectedNamesToPlugins$jscomp$inline_288[pluginName$jscomp$inline_290]; + var pluginModule$jscomp$inline_282 = + injectedNamesToPlugins$jscomp$inline_279[pluginName$jscomp$inline_281]; if ( - !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_290) || - namesToPlugins[pluginName$jscomp$inline_290] !== - pluginModule$jscomp$inline_291 + !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_281) || + namesToPlugins[pluginName$jscomp$inline_281] !== + pluginModule$jscomp$inline_282 ) { - if (namesToPlugins[pluginName$jscomp$inline_290]) + if (namesToPlugins[pluginName$jscomp$inline_281]) throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + - (pluginName$jscomp$inline_290 + "`.") + (pluginName$jscomp$inline_281 + "`.") ); - namesToPlugins[pluginName$jscomp$inline_290] = - pluginModule$jscomp$inline_291; - isOrderingDirty$jscomp$inline_289 = !0; + namesToPlugins[pluginName$jscomp$inline_281] = + pluginModule$jscomp$inline_282; + isOrderingDirty$jscomp$inline_280 = !0; } } -isOrderingDirty$jscomp$inline_289 && recomputePluginOrdering(); +isOrderingDirty$jscomp$inline_280 && recomputePluginOrdering(); var emptyObject$1 = {}, removedKeys = null, removedKeyCount = 0, @@ -3999,16 +3997,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4142,6 +4140,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4152,29 +4173,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4211,19 +4209,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4262,22 +4260,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -11099,26 +11097,26 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - internals$jscomp$inline_1219 = { + internals$jscomp$inline_1210 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && - (internals$jscomp$inline_1219.rendererConfig = extraDevToolsConfig); + (internals$jscomp$inline_1210.rendererConfig = extraDevToolsConfig); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1535 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1526 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1535.isDisabled && - hook$jscomp$inline_1535.supportsFiber + !hook$jscomp$inline_1526.isDisabled && + hook$jscomp$inline_1526.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1535.inject( - internals$jscomp$inline_1219 + (rendererID = hook$jscomp$inline_1526.inject( + internals$jscomp$inline_1210 )), - (injectedHook = hook$jscomp$inline_1535); + (injectedHook = hook$jscomp$inline_1526); } catch (err) {} } exports.createPortal = function (children, containerTag) { diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index 14330847918c9..36b2e7861ace9 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<60aa0e95eb6527a43a32718a861824d4>> + * @generated SignedSource<<04011ffba941051a0ca6c3c9083438e4>> */ "use strict"; @@ -230,13 +230,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -1237,7 +1235,7 @@ eventPluginOrder = Array.prototype.slice.call([ "ReactNativeBridgeEventPlugin" ]); recomputePluginOrdering(); -var injectedNamesToPlugins$jscomp$inline_304 = { +var injectedNamesToPlugins$jscomp$inline_295 = { ResponderEventPlugin: ResponderEventPlugin, ReactNativeBridgeEventPlugin: { eventTypes: {}, @@ -1283,32 +1281,32 @@ var injectedNamesToPlugins$jscomp$inline_304 = { } } }, - isOrderingDirty$jscomp$inline_305 = !1, - pluginName$jscomp$inline_306; -for (pluginName$jscomp$inline_306 in injectedNamesToPlugins$jscomp$inline_304) + isOrderingDirty$jscomp$inline_296 = !1, + pluginName$jscomp$inline_297; +for (pluginName$jscomp$inline_297 in injectedNamesToPlugins$jscomp$inline_295) if ( - injectedNamesToPlugins$jscomp$inline_304.hasOwnProperty( - pluginName$jscomp$inline_306 + injectedNamesToPlugins$jscomp$inline_295.hasOwnProperty( + pluginName$jscomp$inline_297 ) ) { - var pluginModule$jscomp$inline_307 = - injectedNamesToPlugins$jscomp$inline_304[pluginName$jscomp$inline_306]; + var pluginModule$jscomp$inline_298 = + injectedNamesToPlugins$jscomp$inline_295[pluginName$jscomp$inline_297]; if ( - !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_306) || - namesToPlugins[pluginName$jscomp$inline_306] !== - pluginModule$jscomp$inline_307 + !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_297) || + namesToPlugins[pluginName$jscomp$inline_297] !== + pluginModule$jscomp$inline_298 ) { - if (namesToPlugins[pluginName$jscomp$inline_306]) + if (namesToPlugins[pluginName$jscomp$inline_297]) throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + - (pluginName$jscomp$inline_306 + "`.") + (pluginName$jscomp$inline_297 + "`.") ); - namesToPlugins[pluginName$jscomp$inline_306] = - pluginModule$jscomp$inline_307; - isOrderingDirty$jscomp$inline_305 = !0; + namesToPlugins[pluginName$jscomp$inline_297] = + pluginModule$jscomp$inline_298; + isOrderingDirty$jscomp$inline_296 = !0; } } -isOrderingDirty$jscomp$inline_305 && recomputePluginOrdering(); +isOrderingDirty$jscomp$inline_296 && recomputePluginOrdering(); var emptyObject$1 = {}, removedKeys = null, removedKeyCount = 0, @@ -4158,16 +4156,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4301,6 +4299,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4311,29 +4332,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4370,19 +4368,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4421,22 +4419,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -11756,16 +11754,16 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - internals$jscomp$inline_1307 = { + internals$jscomp$inline_1298 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && - (internals$jscomp$inline_1307.rendererConfig = extraDevToolsConfig); -internals$jscomp$inline_1307.getLaneLabelMap = function () { + (internals$jscomp$inline_1298.rendererConfig = extraDevToolsConfig); +internals$jscomp$inline_1298.getLaneLabelMap = function () { for ( var map = new Map(), lane = 1, index$154 = 0; 31 > index$154; @@ -11777,20 +11775,20 @@ internals$jscomp$inline_1307.getLaneLabelMap = function () { } return map; }; -internals$jscomp$inline_1307.injectProfilingHooks = function (profilingHooks) { +internals$jscomp$inline_1298.injectProfilingHooks = function (profilingHooks) { injectedProfilingHooks = profilingHooks; }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1586 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1577 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1586.isDisabled && - hook$jscomp$inline_1586.supportsFiber + !hook$jscomp$inline_1577.isDisabled && + hook$jscomp$inline_1577.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1586.inject( - internals$jscomp$inline_1307 + (rendererID = hook$jscomp$inline_1577.inject( + internals$jscomp$inline_1298 )), - (injectedHook = hook$jscomp$inline_1586); + (injectedHook = hook$jscomp$inline_1577); } catch (err) {} } exports.createPortal = function (children, containerTag) { diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index b832d8bdb4873..b1e0bb20ec545 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<15357dfc83cc146270c5460c14979c28>> + * @generated SignedSource<> */ "use strict"; @@ -411,13 +411,11 @@ __DEV__ && return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -16048,16 +16046,16 @@ __DEV__ && useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); - ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; - ContextOnlyDispatcher.useFormState = throwInvalidHookError; - ContextOnlyDispatcher.useActionState = throwInvalidHookError; - ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMountInDEV = null, HooksDispatcherOnMountWithHookTypesInDEV = null, HooksDispatcherOnUpdateInDEV = null, @@ -16168,6 +16166,23 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + mountHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -16201,27 +16216,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountInDEV.useFormState = function (action, initialState) { - currentHookNameInDev = "useFormState"; - mountHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountInDEV.useOptimistic = function (passthrough) { - currentHookNameInDev = "useOptimistic"; - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnMountWithHookTypesInDEV = { readContext: function (context) { return readContext(context); @@ -16319,6 +16313,23 @@ __DEV__ && updateHookTypesDev(); return mountId(); }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return mountActionState(action, initialState); + }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16344,32 +16355,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnMountWithHookTypesInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnMountWithHookTypesInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return mountActionState(action, initialState); - }; - HooksDispatcherOnMountWithHookTypesInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return mountOptimistic(passthrough); - }; HooksDispatcherOnUpdateInDEV = { readContext: function (context) { return readContext(context); @@ -16467,6 +16452,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16494,27 +16496,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return updateActionState(action); - }; - HooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; HooksDispatcherOnRerenderInDEV = { readContext: function (context) { return readContext(context); @@ -16612,6 +16593,23 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + updateHookTypesDev(); + warnOnUseFormStateInDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16639,27 +16637,6 @@ __DEV__ && destroy ); }); - HooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - HooksDispatcherOnRerenderInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - updateHookTypesDev(); - warnOnUseFormStateInDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useActionState = function (action) { - currentHookNameInDev = "useActionState"; - updateHookTypesDev(); - return rerenderActionState(action); - }; - HooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnMountInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -16776,6 +16753,25 @@ __DEV__ && mountHookTypesDev(); return mountId(); }, + useFormState: function (action, initialState) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useActionState: function (action, initialState) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountActionState(action, initialState); + }, + useOptimistic: function (passthrough) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + mountHookTypesDev(); + return mountOptimistic(passthrough); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; mountHookTypesDev(); @@ -16805,34 +16801,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnMountInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnMountInDEV.useFormState = function ( - action, - initialState - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useActionState = function ( - action, - initialState - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountActionState(action, initialState); - }; - InvalidNestedHooksDispatcherOnMountInDEV.useOptimistic = function ( - passthrough - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - mountHookTypesDev(); - return mountOptimistic(passthrough); - }; InvalidNestedHooksDispatcherOnUpdateInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -16949,6 +16917,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return updateOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -16980,31 +16967,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnUpdateInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnUpdateInDEV.useFormState = function (action) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateActionState(action); - }; - InvalidNestedHooksDispatcherOnUpdateInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return updateOptimistic(passthrough, reducer); - }; InvalidNestedHooksDispatcherOnRerenderInDEV = { readContext: function (context) { warnInvalidContextAccess(); @@ -17121,6 +17083,25 @@ __DEV__ && updateHookTypesDev(); return updateWorkInProgressHook().memoizedState; }, + useFormState: function (action) { + currentHookNameInDev = "useFormState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useActionState: function (action) { + currentHookNameInDev = "useActionState"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderActionState(action); + }, + useOptimistic: function (passthrough, reducer) { + currentHookNameInDev = "useOptimistic"; + warnInvalidHookAccess(); + updateHookTypesDev(); + return rerenderOptimistic(passthrough, reducer); + }, + useHostTransitionStatus: useHostTransitionStatus, useCacheRefresh: function () { currentHookNameInDev = "useCacheRefresh"; updateHookTypesDev(); @@ -17147,33 +17128,6 @@ __DEV__ && destroy ); }); - InvalidNestedHooksDispatcherOnRerenderInDEV.useHostTransitionStatus = - useHostTransitionStatus; - InvalidNestedHooksDispatcherOnRerenderInDEV.useFormState = function ( - action - ) { - currentHookNameInDev = "useFormState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useActionState = function ( - action - ) { - currentHookNameInDev = "useActionState"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderActionState(action); - }; - InvalidNestedHooksDispatcherOnRerenderInDEV.useOptimistic = function ( - passthrough, - reducer - ) { - currentHookNameInDev = "useOptimistic"; - warnInvalidHookAccess(); - updateHookTypesDev(); - return rerenderOptimistic(passthrough, reducer); - }; var callComponent = { "react-stack-bottom-frame": function (Component, props, secondArg) { var wasRendering = isRendering; @@ -17738,11 +17692,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.1.0-native-fb-fb12845d-20241213" !== isomorphicReactPackageVersion) + if ("19.1.0-native-fb-15208027-20241213" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.1.0-native-fb-fb12845d-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-15208027-20241213\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -17768,10 +17722,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 8d8b73e363fe9..1909f01aac00f 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<80fa8977d60f0f99e3e82ca51c02f10e>> + * @generated SignedSource<<931307f754af0f21ea52a34f431d768d>> */ "use strict"; @@ -221,13 +221,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -1228,7 +1226,7 @@ eventPluginOrder = Array.prototype.slice.call([ "ReactNativeBridgeEventPlugin" ]); recomputePluginOrdering(); -var injectedNamesToPlugins$jscomp$inline_295 = { +var injectedNamesToPlugins$jscomp$inline_286 = { ResponderEventPlugin: ResponderEventPlugin, ReactNativeBridgeEventPlugin: { eventTypes: {}, @@ -1274,32 +1272,32 @@ var injectedNamesToPlugins$jscomp$inline_295 = { } } }, - isOrderingDirty$jscomp$inline_296 = !1, - pluginName$jscomp$inline_297; -for (pluginName$jscomp$inline_297 in injectedNamesToPlugins$jscomp$inline_295) + isOrderingDirty$jscomp$inline_287 = !1, + pluginName$jscomp$inline_288; +for (pluginName$jscomp$inline_288 in injectedNamesToPlugins$jscomp$inline_286) if ( - injectedNamesToPlugins$jscomp$inline_295.hasOwnProperty( - pluginName$jscomp$inline_297 + injectedNamesToPlugins$jscomp$inline_286.hasOwnProperty( + pluginName$jscomp$inline_288 ) ) { - var pluginModule$jscomp$inline_298 = - injectedNamesToPlugins$jscomp$inline_295[pluginName$jscomp$inline_297]; + var pluginModule$jscomp$inline_289 = + injectedNamesToPlugins$jscomp$inline_286[pluginName$jscomp$inline_288]; if ( - !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_297) || - namesToPlugins[pluginName$jscomp$inline_297] !== - pluginModule$jscomp$inline_298 + !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_288) || + namesToPlugins[pluginName$jscomp$inline_288] !== + pluginModule$jscomp$inline_289 ) { - if (namesToPlugins[pluginName$jscomp$inline_297]) + if (namesToPlugins[pluginName$jscomp$inline_288]) throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + - (pluginName$jscomp$inline_297 + "`.") + (pluginName$jscomp$inline_288 + "`.") ); - namesToPlugins[pluginName$jscomp$inline_297] = - pluginModule$jscomp$inline_298; - isOrderingDirty$jscomp$inline_296 = !0; + namesToPlugins[pluginName$jscomp$inline_288] = + pluginModule$jscomp$inline_289; + isOrderingDirty$jscomp$inline_287 = !0; } } -isOrderingDirty$jscomp$inline_296 && recomputePluginOrdering(); +isOrderingDirty$jscomp$inline_287 && recomputePluginOrdering(); var instanceCache = new Map(), instanceProps = new Map(); function getInstanceFromTag(tag) { @@ -4294,16 +4292,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4437,6 +4435,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4447,29 +4468,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4506,19 +4504,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4557,22 +4555,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -11233,11 +11231,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.1.0-native-fb-fb12845d-20241213" !== isomorphicReactPackageVersion) +if ("19.1.0-native-fb-15208027-20241213" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.1.0-native-fb-fb12845d-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-15208027-20241213\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11284,26 +11282,26 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - internals$jscomp$inline_1285 = { + internals$jscomp$inline_1276 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && - (internals$jscomp$inline_1285.rendererConfig = extraDevToolsConfig); + (internals$jscomp$inline_1276.rendererConfig = extraDevToolsConfig); if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1622 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1613 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1622.isDisabled && - hook$jscomp$inline_1622.supportsFiber + !hook$jscomp$inline_1613.isDisabled && + hook$jscomp$inline_1613.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1622.inject( - internals$jscomp$inline_1285 + (rendererID = hook$jscomp$inline_1613.inject( + internals$jscomp$inline_1276 )), - (injectedHook = hook$jscomp$inline_1622); + (injectedHook = hook$jscomp$inline_1613); } catch (err) {} } exports.createPortal = function (children, containerTag) { diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 767871749f53c..c43964ca2bd25 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<91b2d8b3ecbdf9caa95ad968ed7bb8b2>> + * @generated SignedSource<<2982638face29493e0355a5048f696ac>> */ "use strict"; @@ -225,13 +225,11 @@ function describeFiber(fiber) { return describeBuiltInComponentFrame("SuspenseList"); case 0: case 15: - return (fiber = describeNativeComponentFrame(fiber.type, !1)), fiber; + return describeNativeComponentFrame(fiber.type, !1); case 11: - return ( - (fiber = describeNativeComponentFrame(fiber.type.render, !1)), fiber - ); + return describeNativeComponentFrame(fiber.type.render, !1); case 1: - return (fiber = describeNativeComponentFrame(fiber.type, !0)), fiber; + return describeNativeComponentFrame(fiber.type, !0); default: return ""; } @@ -1232,7 +1230,7 @@ eventPluginOrder = Array.prototype.slice.call([ "ReactNativeBridgeEventPlugin" ]); recomputePluginOrdering(); -var injectedNamesToPlugins$jscomp$inline_311 = { +var injectedNamesToPlugins$jscomp$inline_302 = { ResponderEventPlugin: ResponderEventPlugin, ReactNativeBridgeEventPlugin: { eventTypes: {}, @@ -1278,32 +1276,32 @@ var injectedNamesToPlugins$jscomp$inline_311 = { } } }, - isOrderingDirty$jscomp$inline_312 = !1, - pluginName$jscomp$inline_313; -for (pluginName$jscomp$inline_313 in injectedNamesToPlugins$jscomp$inline_311) + isOrderingDirty$jscomp$inline_303 = !1, + pluginName$jscomp$inline_304; +for (pluginName$jscomp$inline_304 in injectedNamesToPlugins$jscomp$inline_302) if ( - injectedNamesToPlugins$jscomp$inline_311.hasOwnProperty( - pluginName$jscomp$inline_313 + injectedNamesToPlugins$jscomp$inline_302.hasOwnProperty( + pluginName$jscomp$inline_304 ) ) { - var pluginModule$jscomp$inline_314 = - injectedNamesToPlugins$jscomp$inline_311[pluginName$jscomp$inline_313]; + var pluginModule$jscomp$inline_305 = + injectedNamesToPlugins$jscomp$inline_302[pluginName$jscomp$inline_304]; if ( - !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_313) || - namesToPlugins[pluginName$jscomp$inline_313] !== - pluginModule$jscomp$inline_314 + !namesToPlugins.hasOwnProperty(pluginName$jscomp$inline_304) || + namesToPlugins[pluginName$jscomp$inline_304] !== + pluginModule$jscomp$inline_305 ) { - if (namesToPlugins[pluginName$jscomp$inline_313]) + if (namesToPlugins[pluginName$jscomp$inline_304]) throw Error( "EventPluginRegistry: Cannot inject two different event plugins using the same name, `" + - (pluginName$jscomp$inline_313 + "`.") + (pluginName$jscomp$inline_304 + "`.") ); - namesToPlugins[pluginName$jscomp$inline_313] = - pluginModule$jscomp$inline_314; - isOrderingDirty$jscomp$inline_312 = !0; + namesToPlugins[pluginName$jscomp$inline_304] = + pluginModule$jscomp$inline_305; + isOrderingDirty$jscomp$inline_303 = !0; } } -isOrderingDirty$jscomp$inline_312 && recomputePluginOrdering(); +isOrderingDirty$jscomp$inline_303 && recomputePluginOrdering(); var instanceCache = new Map(), instanceProps = new Map(); function getInstanceFromTag(tag) { @@ -4453,16 +4451,16 @@ var ContextOnlyDispatcher = { useDeferredValue: throwInvalidHookError, useTransition: throwInvalidHookError, useSyncExternalStore: throwInvalidHookError, - useId: throwInvalidHookError + useId: throwInvalidHookError, + useHostTransitionStatus: throwInvalidHookError, + useFormState: throwInvalidHookError, + useActionState: throwInvalidHookError, + useOptimistic: throwInvalidHookError }; ContextOnlyDispatcher.useCacheRefresh = throwInvalidHookError; ContextOnlyDispatcher.useMemoCache = throwInvalidHookError; enableUseResourceEffectHook && (ContextOnlyDispatcher.useResourceEffect = throwInvalidHookError); -ContextOnlyDispatcher.useHostTransitionStatus = throwInvalidHookError; -ContextOnlyDispatcher.useFormState = throwInvalidHookError; -ContextOnlyDispatcher.useActionState = throwInvalidHookError; -ContextOnlyDispatcher.useOptimistic = throwInvalidHookError; var HooksDispatcherOnMount = { readContext: readContext, use: use, @@ -4596,6 +4594,29 @@ var HooksDispatcherOnMount = { ":" + identifierPrefix + "r" + globalClientId.toString(32) + ":"; return (hook.memoizedState = identifierPrefix); }, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: mountActionState, + useActionState: mountActionState, + useOptimistic: function (passthrough) { + var hook = mountWorkInProgressHook(); + hook.memoizedState = hook.baseState = passthrough; + var queue = { + pending: null, + lanes: 0, + dispatch: null, + lastRenderedReducer: null, + lastRenderedState: null + }; + hook.queue = queue; + hook = dispatchOptimisticSetState.bind( + null, + currentlyRenderingFiber$1, + !0, + queue + ); + queue.dispatch = hook; + return [passthrough, hook]; + }, useCacheRefresh: function () { return (mountWorkInProgressHook().memoizedState = refreshCache.bind( null, @@ -4606,29 +4627,6 @@ var HooksDispatcherOnMount = { HooksDispatcherOnMount.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnMount.useResourceEffect = mountResourceEffect); -HooksDispatcherOnMount.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnMount.useFormState = mountActionState; -HooksDispatcherOnMount.useActionState = mountActionState; -HooksDispatcherOnMount.useOptimistic = function (passthrough) { - var hook = mountWorkInProgressHook(); - hook.memoizedState = hook.baseState = passthrough; - var queue = { - pending: null, - lanes: 0, - dispatch: null, - lastRenderedReducer: null, - lastRenderedState: null - }; - hook.queue = queue; - hook = dispatchOptimisticSetState.bind( - null, - currentlyRenderingFiber$1, - !0, - queue - ); - queue.dispatch = hook; - return [passthrough, hook]; -}; var HooksDispatcherOnUpdate = { readContext: readContext, use: use, @@ -4665,19 +4663,19 @@ var HooksDispatcherOnUpdate = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: updateActionState, + useActionState: updateActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + } }; HooksDispatcherOnUpdate.useCacheRefresh = updateRefresh; HooksDispatcherOnUpdate.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnUpdate.useResourceEffect = updateResourceEffect); -HooksDispatcherOnUpdate.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnUpdate.useFormState = updateActionState; -HooksDispatcherOnUpdate.useActionState = updateActionState; -HooksDispatcherOnUpdate.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); -}; var HooksDispatcherOnRerender = { readContext: readContext, use: use, @@ -4716,22 +4714,22 @@ var HooksDispatcherOnRerender = { ]; }, useSyncExternalStore: updateSyncExternalStore, - useId: updateId + useId: updateId, + useHostTransitionStatus: useHostTransitionStatus, + useFormState: rerenderActionState, + useActionState: rerenderActionState, + useOptimistic: function (passthrough, reducer) { + var hook = updateWorkInProgressHook(); + if (null !== currentHook) + return updateOptimisticImpl(hook, currentHook, passthrough, reducer); + hook.baseState = passthrough; + return [passthrough, hook.queue.dispatch]; + } }; HooksDispatcherOnRerender.useCacheRefresh = updateRefresh; HooksDispatcherOnRerender.useMemoCache = useMemoCache; enableUseResourceEffectHook && (HooksDispatcherOnRerender.useResourceEffect = updateResourceEffect); -HooksDispatcherOnRerender.useHostTransitionStatus = useHostTransitionStatus; -HooksDispatcherOnRerender.useFormState = rerenderActionState; -HooksDispatcherOnRerender.useActionState = rerenderActionState; -HooksDispatcherOnRerender.useOptimistic = function (passthrough, reducer) { - var hook = updateWorkInProgressHook(); - if (null !== currentHook) - return updateOptimisticImpl(hook, currentHook, passthrough, reducer); - hook.baseState = passthrough; - return [passthrough, hook.queue.dispatch]; -}; var thenableState = null, thenableIndexCounter = 0; function unwrapThenable(thenable) { @@ -11889,11 +11887,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.1.0-native-fb-fb12845d-20241213" !== isomorphicReactPackageVersion) +if ("19.1.0-native-fb-15208027-20241213" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-native-renderer: 19.1.0-native-fb-fb12845d-20241213\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.1.0-native-fb-15208027-20241213\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11940,16 +11938,16 @@ batchedUpdatesImpl = function (fn, a) { } }; var roots = new Map(), - internals$jscomp$inline_1373 = { + internals$jscomp$inline_1364 = { bundleType: 0, - version: "19.1.0-native-fb-fb12845d-20241213", + version: "19.1.0-native-fb-15208027-20241213", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-native-fb-fb12845d-20241213" + reconcilerVersion: "19.1.0-native-fb-15208027-20241213" }; null !== extraDevToolsConfig && - (internals$jscomp$inline_1373.rendererConfig = extraDevToolsConfig); -internals$jscomp$inline_1373.getLaneLabelMap = function () { + (internals$jscomp$inline_1364.rendererConfig = extraDevToolsConfig); +internals$jscomp$inline_1364.getLaneLabelMap = function () { for ( var map = new Map(), lane = 1, index$158 = 0; 31 > index$158; @@ -11961,20 +11959,20 @@ internals$jscomp$inline_1373.getLaneLabelMap = function () { } return map; }; -internals$jscomp$inline_1373.injectProfilingHooks = function (profilingHooks) { +internals$jscomp$inline_1364.injectProfilingHooks = function (profilingHooks) { injectedProfilingHooks = profilingHooks; }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_1673 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_1664 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_1673.isDisabled && - hook$jscomp$inline_1673.supportsFiber + !hook$jscomp$inline_1664.isDisabled && + hook$jscomp$inline_1664.supportsFiber ) try { - (rendererID = hook$jscomp$inline_1673.inject( - internals$jscomp$inline_1373 + (rendererID = hook$jscomp$inline_1664.inject( + internals$jscomp$inline_1364 )), - (injectedHook = hook$jscomp$inline_1673); + (injectedHook = hook$jscomp$inline_1664); } catch (err) {} } exports.createPortal = function (children, containerTag) {