mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Add scrollIntoView to fragment instances (#32814)
This adds `experimental_scrollIntoView(alignToTop)`. It doesn't yet support `scrollIntoView(options)`. Cases: - No host children: Without host children, we represent the virtual space of the Fragment by attempting to scroll to the nearest edge by using its siblings. If the preferred sibling is not found, we'll try the other side, and then the parent. - 1 or more host children: In order to handle the case of children spread between multiple scroll containers, we scroll to each child in reverse order based on the `alignToTop` flag. Due to the complexity of multiple scroll containers and dealing with portals, I've added this under a separate feature flag with an experimental prefix. We may stabilize it along with the other APIs, but this allows us to not block the whole feature on it. This PR was previously implementing a much more complex approach to handling multiple scroll containers and portals. We're going to start with the simple loop and see if we can find any concrete use cases where that doesn't suffice.01f31d4301is the diff between approaches here. DiffTrain build for [3434ff4f4b](https://github.com/facebook/react/commit/3434ff4f4b89ad9388c6109312ef95c14652ae21)
This commit is contained in:
@@ -1 +1 @@
|
||||
19.2.0-native-fb-bd5b1b76-20250827
|
||||
19.2.0-native-fb-3434ff4f-20250827
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<9ca74be9adfdf65611146bf301cb25ae>>
|
||||
* @generated SignedSource<<5bda1c5c2ae4b2e9a2614a52a70a950d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -404,5 +404,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
})();
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ad6480083b74a80f03a967d2026ca494>>
|
||||
* @generated SignedSource<<26926598b31bd63cfc31aadced5b8394>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ad6480083b74a80f03a967d2026ca494>>
|
||||
* @generated SignedSource<<26926598b31bd63cfc31aadced5b8394>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
Vendored
+228
-153
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<1d1d6a89d16ea49d8db244d0b973eb91>>
|
||||
* @generated SignedSource<<3fd553e19021fcfa085ff13b607fe418>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -278,6 +278,28 @@ __DEV__ &&
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -11106,24 +11128,24 @@ __DEV__ &&
|
||||
return current;
|
||||
}
|
||||
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
var JSCompiler_object_inline_digest_2845;
|
||||
var JSCompiler_object_inline_stack_2846 = workInProgress.pendingProps;
|
||||
var JSCompiler_object_inline_digest_2855;
|
||||
var JSCompiler_object_inline_stack_2856 = workInProgress.pendingProps;
|
||||
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
||||
var JSCompiler_object_inline_message_2844 = !1;
|
||||
var JSCompiler_object_inline_message_2854 = !1;
|
||||
var didSuspend = 0 !== (workInProgress.flags & 128);
|
||||
(JSCompiler_object_inline_digest_2845 = didSuspend) ||
|
||||
(JSCompiler_object_inline_digest_2845 =
|
||||
(JSCompiler_object_inline_digest_2855 = didSuspend) ||
|
||||
(JSCompiler_object_inline_digest_2855 =
|
||||
null !== current && null === current.memoizedState
|
||||
? !1
|
||||
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
||||
JSCompiler_object_inline_digest_2845 &&
|
||||
((JSCompiler_object_inline_message_2844 = !0),
|
||||
JSCompiler_object_inline_digest_2855 &&
|
||||
((JSCompiler_object_inline_message_2854 = !0),
|
||||
(workInProgress.flags &= -129));
|
||||
JSCompiler_object_inline_digest_2845 = 0 !== (workInProgress.flags & 32);
|
||||
JSCompiler_object_inline_digest_2855 = 0 !== (workInProgress.flags & 32);
|
||||
workInProgress.flags &= -33;
|
||||
if (null === current) {
|
||||
if (isHydrating) {
|
||||
JSCompiler_object_inline_message_2844
|
||||
JSCompiler_object_inline_message_2854
|
||||
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
||||
: reuseSuspenseHandlerOnStack(workInProgress);
|
||||
(renderLanes = nextHydratableInstance)
|
||||
@@ -11136,18 +11158,18 @@ __DEV__ &&
|
||||
? current
|
||||
: null),
|
||||
null !== current &&
|
||||
((JSCompiler_object_inline_digest_2845 = {
|
||||
((JSCompiler_object_inline_digest_2855 = {
|
||||
dehydrated: current,
|
||||
treeContext: getSuspendedTreeContext(),
|
||||
retryLane: 536870912,
|
||||
hydrationErrors: null
|
||||
}),
|
||||
(workInProgress.memoizedState =
|
||||
JSCompiler_object_inline_digest_2845),
|
||||
(JSCompiler_object_inline_digest_2845 =
|
||||
JSCompiler_object_inline_digest_2855),
|
||||
(JSCompiler_object_inline_digest_2855 =
|
||||
createFiberFromDehydratedFragment(current)),
|
||||
(JSCompiler_object_inline_digest_2845.return = workInProgress),
|
||||
(workInProgress.child = JSCompiler_object_inline_digest_2845),
|
||||
(JSCompiler_object_inline_digest_2855.return = workInProgress),
|
||||
(workInProgress.child = JSCompiler_object_inline_digest_2855),
|
||||
(hydrationParentFiber = workInProgress),
|
||||
(nextHydratableInstance = null)))
|
||||
: (current = null);
|
||||
@@ -11161,9 +11183,9 @@ __DEV__ &&
|
||||
: (workInProgress.lanes = 536870912);
|
||||
return null;
|
||||
}
|
||||
var nextPrimaryChildren = JSCompiler_object_inline_stack_2846.children,
|
||||
nextFallbackChildren = JSCompiler_object_inline_stack_2846.fallback;
|
||||
if (JSCompiler_object_inline_message_2844)
|
||||
var nextPrimaryChildren = JSCompiler_object_inline_stack_2856.children,
|
||||
nextFallbackChildren = JSCompiler_object_inline_stack_2856.fallback;
|
||||
if (JSCompiler_object_inline_message_2854)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
mountSuspenseFallbackChildren(
|
||||
@@ -11172,21 +11194,21 @@ __DEV__ &&
|
||||
nextFallbackChildren,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2846 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2846.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2856 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2856.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2846.childLanes =
|
||||
(JSCompiler_object_inline_stack_2856.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2846)
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2856)
|
||||
);
|
||||
if (
|
||||
"number" ===
|
||||
typeof JSCompiler_object_inline_stack_2846.unstable_expectedLoadTime
|
||||
typeof JSCompiler_object_inline_stack_2856.unstable_expectedLoadTime
|
||||
)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
@@ -11196,18 +11218,18 @@ __DEV__ &&
|
||||
nextFallbackChildren,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2846 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2846.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2856 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2856.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2846.childLanes =
|
||||
(JSCompiler_object_inline_stack_2856.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2846)
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2856)
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
return mountSuspensePrimaryChildren(
|
||||
@@ -11217,8 +11239,8 @@ __DEV__ &&
|
||||
}
|
||||
var prevState = current.memoizedState;
|
||||
if (null !== prevState) {
|
||||
var JSCompiler_object_inline_componentStack_2847 = prevState.dehydrated;
|
||||
if (null !== JSCompiler_object_inline_componentStack_2847) {
|
||||
var JSCompiler_object_inline_componentStack_2857 = prevState.dehydrated;
|
||||
if (null !== JSCompiler_object_inline_componentStack_2857) {
|
||||
if (didSuspend)
|
||||
workInProgress.flags & 256
|
||||
? (pushPrimaryTreeSuspenseHandler(workInProgress),
|
||||
@@ -11235,13 +11257,13 @@ __DEV__ &&
|
||||
(workInProgress = null))
|
||||
: (reuseSuspenseHandlerOnStack(workInProgress),
|
||||
(nextPrimaryChildren =
|
||||
JSCompiler_object_inline_stack_2846.fallback),
|
||||
JSCompiler_object_inline_stack_2856.fallback),
|
||||
(nextFallbackChildren = workInProgress.mode),
|
||||
(JSCompiler_object_inline_stack_2846 =
|
||||
(JSCompiler_object_inline_stack_2856 =
|
||||
mountWorkInProgressOffscreenFiber(
|
||||
{
|
||||
mode: "visible",
|
||||
children: JSCompiler_object_inline_stack_2846.children
|
||||
children: JSCompiler_object_inline_stack_2856.children
|
||||
},
|
||||
nextFallbackChildren
|
||||
)),
|
||||
@@ -11252,11 +11274,11 @@ __DEV__ &&
|
||||
null
|
||||
)),
|
||||
(nextPrimaryChildren.flags |= 2),
|
||||
(JSCompiler_object_inline_stack_2846.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2856.return = workInProgress),
|
||||
(nextPrimaryChildren.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2846.sibling =
|
||||
(JSCompiler_object_inline_stack_2856.sibling =
|
||||
nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2846),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2856),
|
||||
(workInProgress.mode & ConcurrentMode) !== NoMode &&
|
||||
reconcileChildFibers(
|
||||
workInProgress,
|
||||
@@ -11264,19 +11286,19 @@ __DEV__ &&
|
||||
null,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2846 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2846.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2856 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2856.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2846.childLanes =
|
||||
(JSCompiler_object_inline_stack_2856.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress = bailoutOffscreenComponent(
|
||||
null,
|
||||
JSCompiler_object_inline_stack_2846
|
||||
JSCompiler_object_inline_stack_2856
|
||||
)));
|
||||
else if (
|
||||
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
||||
@@ -11284,45 +11306,45 @@ __DEV__ &&
|
||||
0 !== (renderLanes & 536870912) &&
|
||||
markRenderDerivedCause(workInProgress),
|
||||
isSuspenseInstanceFallback(
|
||||
JSCompiler_object_inline_componentStack_2847
|
||||
JSCompiler_object_inline_componentStack_2857
|
||||
))
|
||||
) {
|
||||
JSCompiler_object_inline_digest_2845 =
|
||||
JSCompiler_object_inline_componentStack_2847.nextSibling &&
|
||||
JSCompiler_object_inline_componentStack_2847.nextSibling.dataset;
|
||||
if (JSCompiler_object_inline_digest_2845) {
|
||||
nextPrimaryChildren = JSCompiler_object_inline_digest_2845.dgst;
|
||||
var message = JSCompiler_object_inline_digest_2845.msg;
|
||||
nextFallbackChildren = JSCompiler_object_inline_digest_2845.stck;
|
||||
var componentStack = JSCompiler_object_inline_digest_2845.cstck;
|
||||
JSCompiler_object_inline_digest_2855 =
|
||||
JSCompiler_object_inline_componentStack_2857.nextSibling &&
|
||||
JSCompiler_object_inline_componentStack_2857.nextSibling.dataset;
|
||||
if (JSCompiler_object_inline_digest_2855) {
|
||||
nextPrimaryChildren = JSCompiler_object_inline_digest_2855.dgst;
|
||||
var message = JSCompiler_object_inline_digest_2855.msg;
|
||||
nextFallbackChildren = JSCompiler_object_inline_digest_2855.stck;
|
||||
var componentStack = JSCompiler_object_inline_digest_2855.cstck;
|
||||
}
|
||||
JSCompiler_object_inline_message_2844 = message;
|
||||
JSCompiler_object_inline_digest_2845 = nextPrimaryChildren;
|
||||
JSCompiler_object_inline_stack_2846 = nextFallbackChildren;
|
||||
JSCompiler_object_inline_componentStack_2847 = componentStack;
|
||||
nextPrimaryChildren = JSCompiler_object_inline_message_2844;
|
||||
nextFallbackChildren = JSCompiler_object_inline_componentStack_2847;
|
||||
JSCompiler_object_inline_message_2854 = message;
|
||||
JSCompiler_object_inline_digest_2855 = nextPrimaryChildren;
|
||||
JSCompiler_object_inline_stack_2856 = nextFallbackChildren;
|
||||
JSCompiler_object_inline_componentStack_2857 = componentStack;
|
||||
nextPrimaryChildren = JSCompiler_object_inline_message_2854;
|
||||
nextFallbackChildren = JSCompiler_object_inline_componentStack_2857;
|
||||
nextPrimaryChildren = nextPrimaryChildren
|
||||
? Error(nextPrimaryChildren)
|
||||
: Error(
|
||||
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
||||
);
|
||||
nextPrimaryChildren.stack =
|
||||
JSCompiler_object_inline_stack_2846 || "";
|
||||
nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2845;
|
||||
JSCompiler_object_inline_digest_2845 =
|
||||
JSCompiler_object_inline_stack_2856 || "";
|
||||
nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2855;
|
||||
JSCompiler_object_inline_digest_2855 =
|
||||
void 0 === nextFallbackChildren ? null : nextFallbackChildren;
|
||||
JSCompiler_object_inline_stack_2846 = {
|
||||
JSCompiler_object_inline_stack_2856 = {
|
||||
value: nextPrimaryChildren,
|
||||
source: null,
|
||||
stack: JSCompiler_object_inline_digest_2845
|
||||
stack: JSCompiler_object_inline_digest_2855
|
||||
};
|
||||
"string" === typeof JSCompiler_object_inline_digest_2845 &&
|
||||
"string" === typeof JSCompiler_object_inline_digest_2855 &&
|
||||
CapturedStacks.set(
|
||||
nextPrimaryChildren,
|
||||
JSCompiler_object_inline_stack_2846
|
||||
JSCompiler_object_inline_stack_2856
|
||||
);
|
||||
queueHydrationError(JSCompiler_object_inline_stack_2846);
|
||||
queueHydrationError(JSCompiler_object_inline_stack_2856);
|
||||
workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -11336,35 +11358,35 @@ __DEV__ &&
|
||||
renderLanes,
|
||||
!1
|
||||
),
|
||||
(JSCompiler_object_inline_digest_2845 =
|
||||
(JSCompiler_object_inline_digest_2855 =
|
||||
0 !== (renderLanes & current.childLanes)),
|
||||
didReceiveUpdate || JSCompiler_object_inline_digest_2845)
|
||||
didReceiveUpdate || JSCompiler_object_inline_digest_2855)
|
||||
) {
|
||||
JSCompiler_object_inline_digest_2845 = workInProgressRoot;
|
||||
JSCompiler_object_inline_digest_2855 = workInProgressRoot;
|
||||
if (
|
||||
null !== JSCompiler_object_inline_digest_2845 &&
|
||||
((JSCompiler_object_inline_stack_2846 = getBumpedLaneForHydration(
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
null !== JSCompiler_object_inline_digest_2855 &&
|
||||
((JSCompiler_object_inline_stack_2856 = getBumpedLaneForHydration(
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
renderLanes
|
||||
)),
|
||||
0 !== JSCompiler_object_inline_stack_2846 &&
|
||||
JSCompiler_object_inline_stack_2846 !== prevState.retryLane)
|
||||
0 !== JSCompiler_object_inline_stack_2856 &&
|
||||
JSCompiler_object_inline_stack_2856 !== prevState.retryLane)
|
||||
)
|
||||
throw (
|
||||
((prevState.retryLane = JSCompiler_object_inline_stack_2846),
|
||||
((prevState.retryLane = JSCompiler_object_inline_stack_2856),
|
||||
enqueueConcurrentRenderForLane(
|
||||
current,
|
||||
JSCompiler_object_inline_stack_2846
|
||||
JSCompiler_object_inline_stack_2856
|
||||
),
|
||||
scheduleUpdateOnFiber(
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
current,
|
||||
JSCompiler_object_inline_stack_2846
|
||||
JSCompiler_object_inline_stack_2856
|
||||
),
|
||||
SelectiveHydrationException)
|
||||
);
|
||||
isSuspenseInstancePending(
|
||||
JSCompiler_object_inline_componentStack_2847
|
||||
JSCompiler_object_inline_componentStack_2857
|
||||
) || renderDidSuspendDelayIfPossible();
|
||||
workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -11373,14 +11395,14 @@ __DEV__ &&
|
||||
);
|
||||
} else
|
||||
isSuspenseInstancePending(
|
||||
JSCompiler_object_inline_componentStack_2847
|
||||
JSCompiler_object_inline_componentStack_2857
|
||||
)
|
||||
? ((workInProgress.flags |= 192),
|
||||
(workInProgress.child = current.child),
|
||||
(workInProgress = null))
|
||||
: ((renderLanes = prevState.treeContext),
|
||||
(nextHydratableInstance = getNextHydratable(
|
||||
JSCompiler_object_inline_componentStack_2847.nextSibling
|
||||
JSCompiler_object_inline_componentStack_2857.nextSibling
|
||||
)),
|
||||
(hydrationParentFiber = workInProgress),
|
||||
(isHydrating = !0),
|
||||
@@ -11392,47 +11414,47 @@ __DEV__ &&
|
||||
restoreSuspendedTreeContext(workInProgress, renderLanes),
|
||||
(workInProgress = mountSuspensePrimaryChildren(
|
||||
workInProgress,
|
||||
JSCompiler_object_inline_stack_2846.children
|
||||
JSCompiler_object_inline_stack_2856.children
|
||||
)),
|
||||
(workInProgress.flags |= 4096));
|
||||
return workInProgress;
|
||||
}
|
||||
}
|
||||
if (JSCompiler_object_inline_message_2844)
|
||||
if (JSCompiler_object_inline_message_2854)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
(nextPrimaryChildren = JSCompiler_object_inline_stack_2846.fallback),
|
||||
(nextPrimaryChildren = JSCompiler_object_inline_stack_2856.fallback),
|
||||
(nextFallbackChildren = workInProgress.mode),
|
||||
(componentStack = current.child),
|
||||
(JSCompiler_object_inline_componentStack_2847 =
|
||||
(JSCompiler_object_inline_componentStack_2857 =
|
||||
componentStack.sibling),
|
||||
(JSCompiler_object_inline_message_2844 = {
|
||||
(JSCompiler_object_inline_message_2854 = {
|
||||
mode: "hidden",
|
||||
children: JSCompiler_object_inline_stack_2846.children
|
||||
children: JSCompiler_object_inline_stack_2856.children
|
||||
}),
|
||||
(nextFallbackChildren & ConcurrentMode) === NoMode &&
|
||||
workInProgress.child !== componentStack
|
||||
? ((JSCompiler_object_inline_stack_2846 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2846.childLanes = 0),
|
||||
(JSCompiler_object_inline_stack_2846.pendingProps =
|
||||
JSCompiler_object_inline_message_2844),
|
||||
? ((JSCompiler_object_inline_stack_2856 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2856.childLanes = 0),
|
||||
(JSCompiler_object_inline_stack_2856.pendingProps =
|
||||
JSCompiler_object_inline_message_2854),
|
||||
workInProgress.mode & ProfileMode &&
|
||||
((JSCompiler_object_inline_stack_2846.actualDuration = -0),
|
||||
(JSCompiler_object_inline_stack_2846.actualStartTime = -1.1),
|
||||
(JSCompiler_object_inline_stack_2846.selfBaseDuration =
|
||||
((JSCompiler_object_inline_stack_2856.actualDuration = -0),
|
||||
(JSCompiler_object_inline_stack_2856.actualStartTime = -1.1),
|
||||
(JSCompiler_object_inline_stack_2856.selfBaseDuration =
|
||||
componentStack.selfBaseDuration),
|
||||
(JSCompiler_object_inline_stack_2846.treeBaseDuration =
|
||||
(JSCompiler_object_inline_stack_2856.treeBaseDuration =
|
||||
componentStack.treeBaseDuration)),
|
||||
(workInProgress.deletions = null))
|
||||
: ((JSCompiler_object_inline_stack_2846 = createWorkInProgress(
|
||||
: ((JSCompiler_object_inline_stack_2856 = createWorkInProgress(
|
||||
componentStack,
|
||||
JSCompiler_object_inline_message_2844
|
||||
JSCompiler_object_inline_message_2854
|
||||
)),
|
||||
(JSCompiler_object_inline_stack_2846.subtreeFlags =
|
||||
(JSCompiler_object_inline_stack_2856.subtreeFlags =
|
||||
componentStack.subtreeFlags & 65011712)),
|
||||
null !== JSCompiler_object_inline_componentStack_2847
|
||||
null !== JSCompiler_object_inline_componentStack_2857
|
||||
? (nextPrimaryChildren = createWorkInProgress(
|
||||
JSCompiler_object_inline_componentStack_2847,
|
||||
JSCompiler_object_inline_componentStack_2857,
|
||||
nextPrimaryChildren
|
||||
))
|
||||
: ((nextPrimaryChildren = createFiberFromFragment(
|
||||
@@ -11443,11 +11465,11 @@ __DEV__ &&
|
||||
)),
|
||||
(nextPrimaryChildren.flags |= 2)),
|
||||
(nextPrimaryChildren.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2846.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2846.sibling = nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2846),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2846),
|
||||
(JSCompiler_object_inline_stack_2846 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2856.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2856.sibling = nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2856),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2856),
|
||||
(JSCompiler_object_inline_stack_2856 = workInProgress.child),
|
||||
(nextPrimaryChildren = current.child.memoizedState),
|
||||
null === nextPrimaryChildren
|
||||
? (nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes))
|
||||
@@ -11463,18 +11485,18 @@ __DEV__ &&
|
||||
baseLanes: nextPrimaryChildren.baseLanes | renderLanes,
|
||||
cachePool: nextFallbackChildren
|
||||
})),
|
||||
(JSCompiler_object_inline_stack_2846.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2856.memoizedState =
|
||||
nextPrimaryChildren),
|
||||
(JSCompiler_object_inline_stack_2846.childLanes =
|
||||
(JSCompiler_object_inline_stack_2856.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
bailoutOffscreenComponent(
|
||||
current.child,
|
||||
JSCompiler_object_inline_stack_2846
|
||||
JSCompiler_object_inline_stack_2856
|
||||
)
|
||||
);
|
||||
null !== prevState &&
|
||||
@@ -11482,28 +11504,28 @@ __DEV__ &&
|
||||
0 !== (renderLanes & current.lanes) &&
|
||||
markRenderDerivedCause(workInProgress);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
JSCompiler_object_inline_digest_2845 = current.child;
|
||||
current = JSCompiler_object_inline_digest_2845.sibling;
|
||||
JSCompiler_object_inline_digest_2845 = createWorkInProgress(
|
||||
JSCompiler_object_inline_digest_2845,
|
||||
JSCompiler_object_inline_digest_2855 = current.child;
|
||||
current = JSCompiler_object_inline_digest_2855.sibling;
|
||||
JSCompiler_object_inline_digest_2855 = createWorkInProgress(
|
||||
JSCompiler_object_inline_digest_2855,
|
||||
{
|
||||
mode: "visible",
|
||||
children: JSCompiler_object_inline_stack_2846.children
|
||||
children: JSCompiler_object_inline_stack_2856.children
|
||||
}
|
||||
);
|
||||
(workInProgress.mode & ConcurrentMode) === NoMode &&
|
||||
(JSCompiler_object_inline_digest_2845.lanes = renderLanes);
|
||||
JSCompiler_object_inline_digest_2845.return = workInProgress;
|
||||
JSCompiler_object_inline_digest_2845.sibling = null;
|
||||
(JSCompiler_object_inline_digest_2855.lanes = renderLanes);
|
||||
JSCompiler_object_inline_digest_2855.return = workInProgress;
|
||||
JSCompiler_object_inline_digest_2855.sibling = null;
|
||||
null !== current &&
|
||||
((renderLanes = workInProgress.deletions),
|
||||
null === renderLanes
|
||||
? ((workInProgress.deletions = [current]),
|
||||
(workInProgress.flags |= 16))
|
||||
: renderLanes.push(current));
|
||||
workInProgress.child = JSCompiler_object_inline_digest_2845;
|
||||
workInProgress.child = JSCompiler_object_inline_digest_2855;
|
||||
workInProgress.memoizedState = null;
|
||||
return JSCompiler_object_inline_digest_2845;
|
||||
return JSCompiler_object_inline_digest_2855;
|
||||
}
|
||||
function mountSuspensePrimaryChildren(workInProgress, primaryChildren) {
|
||||
primaryChildren = mountWorkInProgressOffscreenFiber(
|
||||
@@ -23298,6 +23320,36 @@ __DEV__ &&
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
function setFocusOnFiberIfFocusable(fiber, focusOptions) {
|
||||
fiber = getInstanceFromHostFiber(fiber);
|
||||
return setFocusIfFocusable(fiber, focusOptions);
|
||||
@@ -23426,36 +23478,6 @@ __DEV__ &&
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -25399,6 +25421,8 @@ __DEV__ &&
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView,
|
||||
enableComponentPerformanceTrack =
|
||||
dynamicFlagsUntyped.enableComponentPerformanceTrack,
|
||||
searchTarget = null,
|
||||
@@ -28960,6 +28984,57 @@ __DEV__ &&
|
||||
? parentHostFiber
|
||||
: Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
||||
};
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(
|
||||
"FragmentInstance.experimental_scrollIntoView() does not support scrollIntoViewOptions. Use the alignToTop boolean instead."
|
||||
);
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(
|
||||
result,
|
||||
children,
|
||||
parentHostFiber.child
|
||||
);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null === resolvedAlignToTop
|
||||
? console.warn(
|
||||
"You are attempting to scroll a FragmentInstance that has no children, siblings, or parent. No scroll was performed."
|
||||
)
|
||||
: getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(
|
||||
alignToTop
|
||||
);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(
|
||||
alignToTop
|
||||
),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
var previousHydratableOnEnteringScopedSingleton = null,
|
||||
NotLoaded = 0,
|
||||
Loaded = 1,
|
||||
@@ -29373,11 +29448,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-bd5b1b76-20250827" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-3434ff4f-20250827" !== 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.2.0-native-fb-bd5b1b76-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-3434ff4f-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29414,10 +29489,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29556,5 +29631,5 @@ __DEV__ &&
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
})();
|
||||
|
||||
compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js
Vendored
+121
-59
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<65790211fb0c54dd94d84715914b8982>>
|
||||
* @generated SignedSource<<4cebbc6a47ba881bc91246f49c9ae955>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -40,7 +40,9 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
|
||||
enablePersistedModeClonedFlag =
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs;
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView;
|
||||
function isValidContainer(node) {
|
||||
return !(
|
||||
!node ||
|
||||
@@ -190,6 +192,28 @@ function getFragmentParentHostFiber(fiber) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -12992,20 +13016,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
|
||||
(nativeEventTarget[internalScrollTimer] = targetInst));
|
||||
}
|
||||
for (
|
||||
var i$jscomp$inline_1627 = 0;
|
||||
i$jscomp$inline_1627 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1627++
|
||||
var i$jscomp$inline_1628 = 0;
|
||||
i$jscomp$inline_1628 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1628++
|
||||
) {
|
||||
var eventName$jscomp$inline_1628 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1627],
|
||||
domEventName$jscomp$inline_1629 =
|
||||
eventName$jscomp$inline_1628.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1630 =
|
||||
eventName$jscomp$inline_1628[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1628.slice(1);
|
||||
var eventName$jscomp$inline_1629 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1628],
|
||||
domEventName$jscomp$inline_1630 =
|
||||
eventName$jscomp$inline_1629.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1631 =
|
||||
eventName$jscomp$inline_1629[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1629.slice(1);
|
||||
registerSimpleEvent(
|
||||
domEventName$jscomp$inline_1629,
|
||||
"on" + capitalizedEvent$jscomp$inline_1630
|
||||
domEventName$jscomp$inline_1630,
|
||||
"on" + capitalizedEvent$jscomp$inline_1631
|
||||
);
|
||||
}
|
||||
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
||||
@@ -15006,6 +15030,36 @@ function removeEventListenerFromChild(
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
FragmentInstance.prototype.dispatchEvent = function (event) {
|
||||
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
||||
if (null === parentHostFiber) return !0;
|
||||
@@ -15336,36 +15390,44 @@ function validateDocumentPositionWithFiberTree(
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(formatProdErrorMessage(566));
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(result, children, parentHostFiber.child);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null !== resolvedAlignToTop &&
|
||||
getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -17194,16 +17256,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
0 === i && attemptExplicitHydrationTarget(target);
|
||||
}
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version;
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2034 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-bd5b1b76-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023
|
||||
"19.2.0-native-fb-3434ff4f-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2034
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2023,
|
||||
"19.2.0-native-fb-bd5b1b76-20250827"
|
||||
isomorphicReactPackageVersion$jscomp$inline_2034,
|
||||
"19.2.0-native-fb-3434ff4f-20250827"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17223,24 +17285,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
null === componentOrElement ? null : componentOrElement.stateNode;
|
||||
return componentOrElement;
|
||||
};
|
||||
var internals$jscomp$inline_2554 = {
|
||||
var internals$jscomp$inline_2565 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2555 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2566 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2555.isDisabled &&
|
||||
hook$jscomp$inline_2555.supportsFiber
|
||||
!hook$jscomp$inline_2566.isDisabled &&
|
||||
hook$jscomp$inline_2566.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2555.inject(
|
||||
internals$jscomp$inline_2554
|
||||
(rendererID = hook$jscomp$inline_2566.inject(
|
||||
internals$jscomp$inline_2565
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2555);
|
||||
(injectedHook = hook$jscomp$inline_2566);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.createRoot = function (container, options) {
|
||||
@@ -17326,4 +17388,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
+120
-58
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0a37832563fe49a0a9b20f47476f8fb7>>
|
||||
* @generated SignedSource<<75b3c39dc3d1e6de4691e2b5efe9649e>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -41,6 +41,8 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView,
|
||||
enableComponentPerformanceTrack =
|
||||
dynamicFlagsUntyped.enableComponentPerformanceTrack;
|
||||
function isValidContainer(node) {
|
||||
@@ -192,6 +194,28 @@ function getFragmentParentHostFiber(fiber) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -14984,20 +15008,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
|
||||
(nativeEventTarget[internalScrollTimer] = targetInst));
|
||||
}
|
||||
for (
|
||||
var i$jscomp$inline_1876 = 0;
|
||||
i$jscomp$inline_1876 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1876++
|
||||
var i$jscomp$inline_1877 = 0;
|
||||
i$jscomp$inline_1877 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1877++
|
||||
) {
|
||||
var eventName$jscomp$inline_1877 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1876],
|
||||
domEventName$jscomp$inline_1878 =
|
||||
eventName$jscomp$inline_1877.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1879 =
|
||||
eventName$jscomp$inline_1877[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1877.slice(1);
|
||||
var eventName$jscomp$inline_1878 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1877],
|
||||
domEventName$jscomp$inline_1879 =
|
||||
eventName$jscomp$inline_1878.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1880 =
|
||||
eventName$jscomp$inline_1878[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1878.slice(1);
|
||||
registerSimpleEvent(
|
||||
domEventName$jscomp$inline_1878,
|
||||
"on" + capitalizedEvent$jscomp$inline_1879
|
||||
domEventName$jscomp$inline_1879,
|
||||
"on" + capitalizedEvent$jscomp$inline_1880
|
||||
);
|
||||
}
|
||||
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
||||
@@ -17007,6 +17031,36 @@ function removeEventListenerFromChild(
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
FragmentInstance.prototype.dispatchEvent = function (event) {
|
||||
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
||||
if (null === parentHostFiber) return !0;
|
||||
@@ -17337,36 +17391,44 @@ function validateDocumentPositionWithFiberTree(
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(formatProdErrorMessage(566));
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(result, children, parentHostFiber.child);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null !== resolvedAlignToTop &&
|
||||
getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -19204,16 +19266,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
0 === i && attemptExplicitHydrationTarget(target);
|
||||
}
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2274 = React.version;
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2285 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-bd5b1b76-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274
|
||||
"19.2.0-native-fb-3434ff4f-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2285
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2274,
|
||||
"19.2.0-native-fb-bd5b1b76-20250827"
|
||||
isomorphicReactPackageVersion$jscomp$inline_2285,
|
||||
"19.2.0-native-fb-3434ff4f-20250827"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19233,12 +19295,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
null === componentOrElement ? null : componentOrElement.stateNode;
|
||||
return componentOrElement;
|
||||
};
|
||||
var internals$jscomp$inline_2281 = {
|
||||
var internals$jscomp$inline_2292 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19256,16 +19318,16 @@ var internals$jscomp$inline_2281 = {
|
||||
}
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2806 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2817 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2806.isDisabled &&
|
||||
hook$jscomp$inline_2806.supportsFiber
|
||||
!hook$jscomp$inline_2817.isDisabled &&
|
||||
hook$jscomp$inline_2817.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2806.inject(
|
||||
internals$jscomp$inline_2281
|
||||
(rendererID = hook$jscomp$inline_2817.inject(
|
||||
internals$jscomp$inline_2292
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2806);
|
||||
(injectedHook = hook$jscomp$inline_2817);
|
||||
} catch (err) {}
|
||||
}
|
||||
exports.createRoot = function (container, options) {
|
||||
@@ -19352,4 +19414,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
|
||||
listenToAllSupportedEvents(container);
|
||||
return new ReactDOMHydrationRoot(initialChildren);
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
+228
-153
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<327194535e0f278009365bbbbb3df185>>
|
||||
* @generated SignedSource<<e3ea76b6e62c3640d28f8cd68fbf4ad5>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -278,6 +278,28 @@ __DEV__ &&
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -11114,24 +11136,24 @@ __DEV__ &&
|
||||
return current;
|
||||
}
|
||||
function updateSuspenseComponent(current, workInProgress, renderLanes) {
|
||||
var JSCompiler_object_inline_digest_2850;
|
||||
var JSCompiler_object_inline_stack_2851 = workInProgress.pendingProps;
|
||||
var JSCompiler_object_inline_digest_2860;
|
||||
var JSCompiler_object_inline_stack_2861 = workInProgress.pendingProps;
|
||||
shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128);
|
||||
var JSCompiler_object_inline_message_2849 = !1;
|
||||
var JSCompiler_object_inline_message_2859 = !1;
|
||||
var didSuspend = 0 !== (workInProgress.flags & 128);
|
||||
(JSCompiler_object_inline_digest_2850 = didSuspend) ||
|
||||
(JSCompiler_object_inline_digest_2850 =
|
||||
(JSCompiler_object_inline_digest_2860 = didSuspend) ||
|
||||
(JSCompiler_object_inline_digest_2860 =
|
||||
null !== current && null === current.memoizedState
|
||||
? !1
|
||||
: 0 !== (suspenseStackCursor.current & ForceSuspenseFallback));
|
||||
JSCompiler_object_inline_digest_2850 &&
|
||||
((JSCompiler_object_inline_message_2849 = !0),
|
||||
JSCompiler_object_inline_digest_2860 &&
|
||||
((JSCompiler_object_inline_message_2859 = !0),
|
||||
(workInProgress.flags &= -129));
|
||||
JSCompiler_object_inline_digest_2850 = 0 !== (workInProgress.flags & 32);
|
||||
JSCompiler_object_inline_digest_2860 = 0 !== (workInProgress.flags & 32);
|
||||
workInProgress.flags &= -33;
|
||||
if (null === current) {
|
||||
if (isHydrating) {
|
||||
JSCompiler_object_inline_message_2849
|
||||
JSCompiler_object_inline_message_2859
|
||||
? pushPrimaryTreeSuspenseHandler(workInProgress)
|
||||
: reuseSuspenseHandlerOnStack(workInProgress);
|
||||
(renderLanes = nextHydratableInstance)
|
||||
@@ -11144,18 +11166,18 @@ __DEV__ &&
|
||||
? current
|
||||
: null),
|
||||
null !== current &&
|
||||
((JSCompiler_object_inline_digest_2850 = {
|
||||
((JSCompiler_object_inline_digest_2860 = {
|
||||
dehydrated: current,
|
||||
treeContext: getSuspendedTreeContext(),
|
||||
retryLane: 536870912,
|
||||
hydrationErrors: null
|
||||
}),
|
||||
(workInProgress.memoizedState =
|
||||
JSCompiler_object_inline_digest_2850),
|
||||
(JSCompiler_object_inline_digest_2850 =
|
||||
JSCompiler_object_inline_digest_2860),
|
||||
(JSCompiler_object_inline_digest_2860 =
|
||||
createFiberFromDehydratedFragment(current)),
|
||||
(JSCompiler_object_inline_digest_2850.return = workInProgress),
|
||||
(workInProgress.child = JSCompiler_object_inline_digest_2850),
|
||||
(JSCompiler_object_inline_digest_2860.return = workInProgress),
|
||||
(workInProgress.child = JSCompiler_object_inline_digest_2860),
|
||||
(hydrationParentFiber = workInProgress),
|
||||
(nextHydratableInstance = null)))
|
||||
: (current = null);
|
||||
@@ -11169,9 +11191,9 @@ __DEV__ &&
|
||||
: (workInProgress.lanes = 536870912);
|
||||
return null;
|
||||
}
|
||||
var nextPrimaryChildren = JSCompiler_object_inline_stack_2851.children,
|
||||
nextFallbackChildren = JSCompiler_object_inline_stack_2851.fallback;
|
||||
if (JSCompiler_object_inline_message_2849)
|
||||
var nextPrimaryChildren = JSCompiler_object_inline_stack_2861.children,
|
||||
nextFallbackChildren = JSCompiler_object_inline_stack_2861.fallback;
|
||||
if (JSCompiler_object_inline_message_2859)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
mountSuspenseFallbackChildren(
|
||||
@@ -11180,21 +11202,21 @@ __DEV__ &&
|
||||
nextFallbackChildren,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2851 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2851.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2861 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2861.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2851.childLanes =
|
||||
(JSCompiler_object_inline_stack_2861.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2851)
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2861)
|
||||
);
|
||||
if (
|
||||
"number" ===
|
||||
typeof JSCompiler_object_inline_stack_2851.unstable_expectedLoadTime
|
||||
typeof JSCompiler_object_inline_stack_2861.unstable_expectedLoadTime
|
||||
)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
@@ -11204,18 +11226,18 @@ __DEV__ &&
|
||||
nextFallbackChildren,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2851 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2851.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2861 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2861.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2851.childLanes =
|
||||
(JSCompiler_object_inline_stack_2861.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress.lanes = 4194304),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2851)
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2861)
|
||||
);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
return mountSuspensePrimaryChildren(
|
||||
@@ -11225,8 +11247,8 @@ __DEV__ &&
|
||||
}
|
||||
var prevState = current.memoizedState;
|
||||
if (null !== prevState) {
|
||||
var JSCompiler_object_inline_componentStack_2852 = prevState.dehydrated;
|
||||
if (null !== JSCompiler_object_inline_componentStack_2852) {
|
||||
var JSCompiler_object_inline_componentStack_2862 = prevState.dehydrated;
|
||||
if (null !== JSCompiler_object_inline_componentStack_2862) {
|
||||
if (didSuspend)
|
||||
workInProgress.flags & 256
|
||||
? (pushPrimaryTreeSuspenseHandler(workInProgress),
|
||||
@@ -11243,13 +11265,13 @@ __DEV__ &&
|
||||
(workInProgress = null))
|
||||
: (reuseSuspenseHandlerOnStack(workInProgress),
|
||||
(nextPrimaryChildren =
|
||||
JSCompiler_object_inline_stack_2851.fallback),
|
||||
JSCompiler_object_inline_stack_2861.fallback),
|
||||
(nextFallbackChildren = workInProgress.mode),
|
||||
(JSCompiler_object_inline_stack_2851 =
|
||||
(JSCompiler_object_inline_stack_2861 =
|
||||
mountWorkInProgressOffscreenFiber(
|
||||
{
|
||||
mode: "visible",
|
||||
children: JSCompiler_object_inline_stack_2851.children
|
||||
children: JSCompiler_object_inline_stack_2861.children
|
||||
},
|
||||
nextFallbackChildren
|
||||
)),
|
||||
@@ -11260,11 +11282,11 @@ __DEV__ &&
|
||||
null
|
||||
)),
|
||||
(nextPrimaryChildren.flags |= 2),
|
||||
(JSCompiler_object_inline_stack_2851.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2861.return = workInProgress),
|
||||
(nextPrimaryChildren.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2851.sibling =
|
||||
(JSCompiler_object_inline_stack_2861.sibling =
|
||||
nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2851),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2861),
|
||||
(workInProgress.mode & ConcurrentMode) !== NoMode &&
|
||||
reconcileChildFibers(
|
||||
workInProgress,
|
||||
@@ -11272,19 +11294,19 @@ __DEV__ &&
|
||||
null,
|
||||
renderLanes
|
||||
),
|
||||
(JSCompiler_object_inline_stack_2851 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2851.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2861 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2861.memoizedState =
|
||||
mountSuspenseOffscreenState(renderLanes)),
|
||||
(JSCompiler_object_inline_stack_2851.childLanes =
|
||||
(JSCompiler_object_inline_stack_2861.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
(workInProgress = bailoutOffscreenComponent(
|
||||
null,
|
||||
JSCompiler_object_inline_stack_2851
|
||||
JSCompiler_object_inline_stack_2861
|
||||
)));
|
||||
else if (
|
||||
(pushPrimaryTreeSuspenseHandler(workInProgress),
|
||||
@@ -11292,45 +11314,45 @@ __DEV__ &&
|
||||
0 !== (renderLanes & 536870912) &&
|
||||
markRenderDerivedCause(workInProgress),
|
||||
isSuspenseInstanceFallback(
|
||||
JSCompiler_object_inline_componentStack_2852
|
||||
JSCompiler_object_inline_componentStack_2862
|
||||
))
|
||||
) {
|
||||
JSCompiler_object_inline_digest_2850 =
|
||||
JSCompiler_object_inline_componentStack_2852.nextSibling &&
|
||||
JSCompiler_object_inline_componentStack_2852.nextSibling.dataset;
|
||||
if (JSCompiler_object_inline_digest_2850) {
|
||||
nextPrimaryChildren = JSCompiler_object_inline_digest_2850.dgst;
|
||||
var message = JSCompiler_object_inline_digest_2850.msg;
|
||||
nextFallbackChildren = JSCompiler_object_inline_digest_2850.stck;
|
||||
var componentStack = JSCompiler_object_inline_digest_2850.cstck;
|
||||
JSCompiler_object_inline_digest_2860 =
|
||||
JSCompiler_object_inline_componentStack_2862.nextSibling &&
|
||||
JSCompiler_object_inline_componentStack_2862.nextSibling.dataset;
|
||||
if (JSCompiler_object_inline_digest_2860) {
|
||||
nextPrimaryChildren = JSCompiler_object_inline_digest_2860.dgst;
|
||||
var message = JSCompiler_object_inline_digest_2860.msg;
|
||||
nextFallbackChildren = JSCompiler_object_inline_digest_2860.stck;
|
||||
var componentStack = JSCompiler_object_inline_digest_2860.cstck;
|
||||
}
|
||||
JSCompiler_object_inline_message_2849 = message;
|
||||
JSCompiler_object_inline_digest_2850 = nextPrimaryChildren;
|
||||
JSCompiler_object_inline_stack_2851 = nextFallbackChildren;
|
||||
JSCompiler_object_inline_componentStack_2852 = componentStack;
|
||||
nextPrimaryChildren = JSCompiler_object_inline_message_2849;
|
||||
nextFallbackChildren = JSCompiler_object_inline_componentStack_2852;
|
||||
JSCompiler_object_inline_message_2859 = message;
|
||||
JSCompiler_object_inline_digest_2860 = nextPrimaryChildren;
|
||||
JSCompiler_object_inline_stack_2861 = nextFallbackChildren;
|
||||
JSCompiler_object_inline_componentStack_2862 = componentStack;
|
||||
nextPrimaryChildren = JSCompiler_object_inline_message_2859;
|
||||
nextFallbackChildren = JSCompiler_object_inline_componentStack_2862;
|
||||
nextPrimaryChildren = nextPrimaryChildren
|
||||
? Error(nextPrimaryChildren)
|
||||
: Error(
|
||||
"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."
|
||||
);
|
||||
nextPrimaryChildren.stack =
|
||||
JSCompiler_object_inline_stack_2851 || "";
|
||||
nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2850;
|
||||
JSCompiler_object_inline_digest_2850 =
|
||||
JSCompiler_object_inline_stack_2861 || "";
|
||||
nextPrimaryChildren.digest = JSCompiler_object_inline_digest_2860;
|
||||
JSCompiler_object_inline_digest_2860 =
|
||||
void 0 === nextFallbackChildren ? null : nextFallbackChildren;
|
||||
JSCompiler_object_inline_stack_2851 = {
|
||||
JSCompiler_object_inline_stack_2861 = {
|
||||
value: nextPrimaryChildren,
|
||||
source: null,
|
||||
stack: JSCompiler_object_inline_digest_2850
|
||||
stack: JSCompiler_object_inline_digest_2860
|
||||
};
|
||||
"string" === typeof JSCompiler_object_inline_digest_2850 &&
|
||||
"string" === typeof JSCompiler_object_inline_digest_2860 &&
|
||||
CapturedStacks.set(
|
||||
nextPrimaryChildren,
|
||||
JSCompiler_object_inline_stack_2851
|
||||
JSCompiler_object_inline_stack_2861
|
||||
);
|
||||
queueHydrationError(JSCompiler_object_inline_stack_2851);
|
||||
queueHydrationError(JSCompiler_object_inline_stack_2861);
|
||||
workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
workInProgress,
|
||||
@@ -11344,35 +11366,35 @@ __DEV__ &&
|
||||
renderLanes,
|
||||
!1
|
||||
),
|
||||
(JSCompiler_object_inline_digest_2850 =
|
||||
(JSCompiler_object_inline_digest_2860 =
|
||||
0 !== (renderLanes & current.childLanes)),
|
||||
didReceiveUpdate || JSCompiler_object_inline_digest_2850)
|
||||
didReceiveUpdate || JSCompiler_object_inline_digest_2860)
|
||||
) {
|
||||
JSCompiler_object_inline_digest_2850 = workInProgressRoot;
|
||||
JSCompiler_object_inline_digest_2860 = workInProgressRoot;
|
||||
if (
|
||||
null !== JSCompiler_object_inline_digest_2850 &&
|
||||
((JSCompiler_object_inline_stack_2851 = getBumpedLaneForHydration(
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
null !== JSCompiler_object_inline_digest_2860 &&
|
||||
((JSCompiler_object_inline_stack_2861 = getBumpedLaneForHydration(
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
renderLanes
|
||||
)),
|
||||
0 !== JSCompiler_object_inline_stack_2851 &&
|
||||
JSCompiler_object_inline_stack_2851 !== prevState.retryLane)
|
||||
0 !== JSCompiler_object_inline_stack_2861 &&
|
||||
JSCompiler_object_inline_stack_2861 !== prevState.retryLane)
|
||||
)
|
||||
throw (
|
||||
((prevState.retryLane = JSCompiler_object_inline_stack_2851),
|
||||
((prevState.retryLane = JSCompiler_object_inline_stack_2861),
|
||||
enqueueConcurrentRenderForLane(
|
||||
current,
|
||||
JSCompiler_object_inline_stack_2851
|
||||
JSCompiler_object_inline_stack_2861
|
||||
),
|
||||
scheduleUpdateOnFiber(
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
current,
|
||||
JSCompiler_object_inline_stack_2851
|
||||
JSCompiler_object_inline_stack_2861
|
||||
),
|
||||
SelectiveHydrationException)
|
||||
);
|
||||
isSuspenseInstancePending(
|
||||
JSCompiler_object_inline_componentStack_2852
|
||||
JSCompiler_object_inline_componentStack_2862
|
||||
) || renderDidSuspendDelayIfPossible();
|
||||
workInProgress = retrySuspenseComponentWithoutHydrating(
|
||||
current,
|
||||
@@ -11381,14 +11403,14 @@ __DEV__ &&
|
||||
);
|
||||
} else
|
||||
isSuspenseInstancePending(
|
||||
JSCompiler_object_inline_componentStack_2852
|
||||
JSCompiler_object_inline_componentStack_2862
|
||||
)
|
||||
? ((workInProgress.flags |= 192),
|
||||
(workInProgress.child = current.child),
|
||||
(workInProgress = null))
|
||||
: ((renderLanes = prevState.treeContext),
|
||||
(nextHydratableInstance = getNextHydratable(
|
||||
JSCompiler_object_inline_componentStack_2852.nextSibling
|
||||
JSCompiler_object_inline_componentStack_2862.nextSibling
|
||||
)),
|
||||
(hydrationParentFiber = workInProgress),
|
||||
(isHydrating = !0),
|
||||
@@ -11400,47 +11422,47 @@ __DEV__ &&
|
||||
restoreSuspendedTreeContext(workInProgress, renderLanes),
|
||||
(workInProgress = mountSuspensePrimaryChildren(
|
||||
workInProgress,
|
||||
JSCompiler_object_inline_stack_2851.children
|
||||
JSCompiler_object_inline_stack_2861.children
|
||||
)),
|
||||
(workInProgress.flags |= 4096));
|
||||
return workInProgress;
|
||||
}
|
||||
}
|
||||
if (JSCompiler_object_inline_message_2849)
|
||||
if (JSCompiler_object_inline_message_2859)
|
||||
return (
|
||||
reuseSuspenseHandlerOnStack(workInProgress),
|
||||
(nextPrimaryChildren = JSCompiler_object_inline_stack_2851.fallback),
|
||||
(nextPrimaryChildren = JSCompiler_object_inline_stack_2861.fallback),
|
||||
(nextFallbackChildren = workInProgress.mode),
|
||||
(componentStack = current.child),
|
||||
(JSCompiler_object_inline_componentStack_2852 =
|
||||
(JSCompiler_object_inline_componentStack_2862 =
|
||||
componentStack.sibling),
|
||||
(JSCompiler_object_inline_message_2849 = {
|
||||
(JSCompiler_object_inline_message_2859 = {
|
||||
mode: "hidden",
|
||||
children: JSCompiler_object_inline_stack_2851.children
|
||||
children: JSCompiler_object_inline_stack_2861.children
|
||||
}),
|
||||
(nextFallbackChildren & ConcurrentMode) === NoMode &&
|
||||
workInProgress.child !== componentStack
|
||||
? ((JSCompiler_object_inline_stack_2851 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2851.childLanes = 0),
|
||||
(JSCompiler_object_inline_stack_2851.pendingProps =
|
||||
JSCompiler_object_inline_message_2849),
|
||||
? ((JSCompiler_object_inline_stack_2861 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2861.childLanes = 0),
|
||||
(JSCompiler_object_inline_stack_2861.pendingProps =
|
||||
JSCompiler_object_inline_message_2859),
|
||||
workInProgress.mode & ProfileMode &&
|
||||
((JSCompiler_object_inline_stack_2851.actualDuration = -0),
|
||||
(JSCompiler_object_inline_stack_2851.actualStartTime = -1.1),
|
||||
(JSCompiler_object_inline_stack_2851.selfBaseDuration =
|
||||
((JSCompiler_object_inline_stack_2861.actualDuration = -0),
|
||||
(JSCompiler_object_inline_stack_2861.actualStartTime = -1.1),
|
||||
(JSCompiler_object_inline_stack_2861.selfBaseDuration =
|
||||
componentStack.selfBaseDuration),
|
||||
(JSCompiler_object_inline_stack_2851.treeBaseDuration =
|
||||
(JSCompiler_object_inline_stack_2861.treeBaseDuration =
|
||||
componentStack.treeBaseDuration)),
|
||||
(workInProgress.deletions = null))
|
||||
: ((JSCompiler_object_inline_stack_2851 = createWorkInProgress(
|
||||
: ((JSCompiler_object_inline_stack_2861 = createWorkInProgress(
|
||||
componentStack,
|
||||
JSCompiler_object_inline_message_2849
|
||||
JSCompiler_object_inline_message_2859
|
||||
)),
|
||||
(JSCompiler_object_inline_stack_2851.subtreeFlags =
|
||||
(JSCompiler_object_inline_stack_2861.subtreeFlags =
|
||||
componentStack.subtreeFlags & 65011712)),
|
||||
null !== JSCompiler_object_inline_componentStack_2852
|
||||
null !== JSCompiler_object_inline_componentStack_2862
|
||||
? (nextPrimaryChildren = createWorkInProgress(
|
||||
JSCompiler_object_inline_componentStack_2852,
|
||||
JSCompiler_object_inline_componentStack_2862,
|
||||
nextPrimaryChildren
|
||||
))
|
||||
: ((nextPrimaryChildren = createFiberFromFragment(
|
||||
@@ -11451,11 +11473,11 @@ __DEV__ &&
|
||||
)),
|
||||
(nextPrimaryChildren.flags |= 2)),
|
||||
(nextPrimaryChildren.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2851.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2851.sibling = nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2851),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2851),
|
||||
(JSCompiler_object_inline_stack_2851 = workInProgress.child),
|
||||
(JSCompiler_object_inline_stack_2861.return = workInProgress),
|
||||
(JSCompiler_object_inline_stack_2861.sibling = nextPrimaryChildren),
|
||||
(workInProgress.child = JSCompiler_object_inline_stack_2861),
|
||||
bailoutOffscreenComponent(null, JSCompiler_object_inline_stack_2861),
|
||||
(JSCompiler_object_inline_stack_2861 = workInProgress.child),
|
||||
(nextPrimaryChildren = current.child.memoizedState),
|
||||
null === nextPrimaryChildren
|
||||
? (nextPrimaryChildren = mountSuspenseOffscreenState(renderLanes))
|
||||
@@ -11471,18 +11493,18 @@ __DEV__ &&
|
||||
baseLanes: nextPrimaryChildren.baseLanes | renderLanes,
|
||||
cachePool: nextFallbackChildren
|
||||
})),
|
||||
(JSCompiler_object_inline_stack_2851.memoizedState =
|
||||
(JSCompiler_object_inline_stack_2861.memoizedState =
|
||||
nextPrimaryChildren),
|
||||
(JSCompiler_object_inline_stack_2851.childLanes =
|
||||
(JSCompiler_object_inline_stack_2861.childLanes =
|
||||
getRemainingWorkInPrimaryTree(
|
||||
current,
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
renderLanes
|
||||
)),
|
||||
(workInProgress.memoizedState = SUSPENDED_MARKER),
|
||||
bailoutOffscreenComponent(
|
||||
current.child,
|
||||
JSCompiler_object_inline_stack_2851
|
||||
JSCompiler_object_inline_stack_2861
|
||||
)
|
||||
);
|
||||
null !== prevState &&
|
||||
@@ -11490,28 +11512,28 @@ __DEV__ &&
|
||||
0 !== (renderLanes & current.lanes) &&
|
||||
markRenderDerivedCause(workInProgress);
|
||||
pushPrimaryTreeSuspenseHandler(workInProgress);
|
||||
JSCompiler_object_inline_digest_2850 = current.child;
|
||||
current = JSCompiler_object_inline_digest_2850.sibling;
|
||||
JSCompiler_object_inline_digest_2850 = createWorkInProgress(
|
||||
JSCompiler_object_inline_digest_2850,
|
||||
JSCompiler_object_inline_digest_2860 = current.child;
|
||||
current = JSCompiler_object_inline_digest_2860.sibling;
|
||||
JSCompiler_object_inline_digest_2860 = createWorkInProgress(
|
||||
JSCompiler_object_inline_digest_2860,
|
||||
{
|
||||
mode: "visible",
|
||||
children: JSCompiler_object_inline_stack_2851.children
|
||||
children: JSCompiler_object_inline_stack_2861.children
|
||||
}
|
||||
);
|
||||
(workInProgress.mode & ConcurrentMode) === NoMode &&
|
||||
(JSCompiler_object_inline_digest_2850.lanes = renderLanes);
|
||||
JSCompiler_object_inline_digest_2850.return = workInProgress;
|
||||
JSCompiler_object_inline_digest_2850.sibling = null;
|
||||
(JSCompiler_object_inline_digest_2860.lanes = renderLanes);
|
||||
JSCompiler_object_inline_digest_2860.return = workInProgress;
|
||||
JSCompiler_object_inline_digest_2860.sibling = null;
|
||||
null !== current &&
|
||||
((renderLanes = workInProgress.deletions),
|
||||
null === renderLanes
|
||||
? ((workInProgress.deletions = [current]),
|
||||
(workInProgress.flags |= 16))
|
||||
: renderLanes.push(current));
|
||||
workInProgress.child = JSCompiler_object_inline_digest_2850;
|
||||
workInProgress.child = JSCompiler_object_inline_digest_2860;
|
||||
workInProgress.memoizedState = null;
|
||||
return JSCompiler_object_inline_digest_2850;
|
||||
return JSCompiler_object_inline_digest_2860;
|
||||
}
|
||||
function mountSuspensePrimaryChildren(workInProgress, primaryChildren) {
|
||||
primaryChildren = mountWorkInProgressOffscreenFiber(
|
||||
@@ -23306,6 +23328,36 @@ __DEV__ &&
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
function setFocusOnFiberIfFocusable(fiber, focusOptions) {
|
||||
fiber = getInstanceFromHostFiber(fiber);
|
||||
return setFocusIfFocusable(fiber, focusOptions);
|
||||
@@ -23434,36 +23486,6 @@ __DEV__ &&
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -25455,6 +25477,8 @@ __DEV__ &&
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView,
|
||||
enableComponentPerformanceTrack =
|
||||
dynamicFlagsUntyped.enableComponentPerformanceTrack,
|
||||
searchTarget = null,
|
||||
@@ -29016,6 +29040,57 @@ __DEV__ &&
|
||||
? parentHostFiber
|
||||
: Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC;
|
||||
};
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(
|
||||
"FragmentInstance.experimental_scrollIntoView() does not support scrollIntoViewOptions. Use the alignToTop boolean instead."
|
||||
);
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(
|
||||
result,
|
||||
children,
|
||||
parentHostFiber.child
|
||||
);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null === resolvedAlignToTop
|
||||
? console.warn(
|
||||
"You are attempting to scroll a FragmentInstance that has no children, siblings, or parent. No scroll was performed."
|
||||
)
|
||||
: getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(
|
||||
alignToTop
|
||||
);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(
|
||||
alignToTop
|
||||
),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
var previousHydratableOnEnteringScopedSingleton = null,
|
||||
NotLoaded = 0,
|
||||
Loaded = 1,
|
||||
@@ -29429,11 +29504,11 @@ __DEV__ &&
|
||||
};
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-bd5b1b76-20250827" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-3434ff4f-20250827" !== 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.2.0-native-fb-bd5b1b76-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.2.0-native-fb-3434ff4f-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -29470,10 +29545,10 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -29928,7 +30003,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+121
-59
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<ed775301fdec4892074897a1cbc3d0ed>>
|
||||
* @generated SignedSource<<e9ed55ef58efc6099ce95f1921c7aa90>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -40,7 +40,9 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
|
||||
enablePersistedModeClonedFlag =
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs;
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView;
|
||||
function isValidContainer(node) {
|
||||
return !(
|
||||
!node ||
|
||||
@@ -190,6 +192,28 @@ function getFragmentParentHostFiber(fiber) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -12992,20 +13016,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
|
||||
(nativeEventTarget[internalScrollTimer] = targetInst));
|
||||
}
|
||||
for (
|
||||
var i$jscomp$inline_1628 = 0;
|
||||
i$jscomp$inline_1628 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1628++
|
||||
var i$jscomp$inline_1629 = 0;
|
||||
i$jscomp$inline_1629 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1629++
|
||||
) {
|
||||
var eventName$jscomp$inline_1629 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1628],
|
||||
domEventName$jscomp$inline_1630 =
|
||||
eventName$jscomp$inline_1629.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1631 =
|
||||
eventName$jscomp$inline_1629[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1629.slice(1);
|
||||
var eventName$jscomp$inline_1630 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1629],
|
||||
domEventName$jscomp$inline_1631 =
|
||||
eventName$jscomp$inline_1630.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1632 =
|
||||
eventName$jscomp$inline_1630[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1630.slice(1);
|
||||
registerSimpleEvent(
|
||||
domEventName$jscomp$inline_1630,
|
||||
"on" + capitalizedEvent$jscomp$inline_1631
|
||||
domEventName$jscomp$inline_1631,
|
||||
"on" + capitalizedEvent$jscomp$inline_1632
|
||||
);
|
||||
}
|
||||
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
||||
@@ -15006,6 +15030,36 @@ function removeEventListenerFromChild(
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
FragmentInstance.prototype.dispatchEvent = function (event) {
|
||||
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
||||
if (null === parentHostFiber) return !0;
|
||||
@@ -15336,36 +15390,44 @@ function validateDocumentPositionWithFiberTree(
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(formatProdErrorMessage(566));
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(result, children, parentHostFiber.child);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null !== resolvedAlignToTop &&
|
||||
getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -17205,16 +17267,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
0 === i && attemptExplicitHydrationTarget(target);
|
||||
}
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version;
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2035 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-bd5b1b76-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024
|
||||
"19.2.0-native-fb-3434ff4f-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2035
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2024,
|
||||
"19.2.0-native-fb-bd5b1b76-20250827"
|
||||
isomorphicReactPackageVersion$jscomp$inline_2035,
|
||||
"19.2.0-native-fb-3434ff4f-20250827"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17234,24 +17296,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
null === componentOrElement ? null : componentOrElement.stateNode;
|
||||
return componentOrElement;
|
||||
};
|
||||
var internals$jscomp$inline_2557 = {
|
||||
var internals$jscomp$inline_2568 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2558 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2569 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2558.isDisabled &&
|
||||
hook$jscomp$inline_2558.supportsFiber
|
||||
!hook$jscomp$inline_2569.isDisabled &&
|
||||
hook$jscomp$inline_2569.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2558.inject(
|
||||
internals$jscomp$inline_2557
|
||||
(rendererID = hook$jscomp$inline_2569.inject(
|
||||
internals$jscomp$inline_2568
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2558);
|
||||
(injectedHook = hook$jscomp$inline_2569);
|
||||
} catch (err) {}
|
||||
}
|
||||
function getCrossOriginStringAs(as, input) {
|
||||
@@ -17490,4 +17552,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
+120
-58
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<29cdeb404914725bc353656295c6b605>>
|
||||
* @generated SignedSource<<264b64653945a3d50a14dad983ae95ac>>
|
||||
*/
|
||||
|
||||
/*
|
||||
@@ -45,6 +45,8 @@ var alwaysThrottleRetries = dynamicFlagsUntyped.alwaysThrottleRetries,
|
||||
dynamicFlagsUntyped.enablePersistedModeClonedFlag,
|
||||
renameElementSymbol = dynamicFlagsUntyped.renameElementSymbol,
|
||||
enableFragmentRefs = dynamicFlagsUntyped.enableFragmentRefs,
|
||||
enableFragmentRefsScrollIntoView =
|
||||
dynamicFlagsUntyped.enableFragmentRefsScrollIntoView,
|
||||
enableComponentPerformanceTrack =
|
||||
dynamicFlagsUntyped.enableComponentPerformanceTrack;
|
||||
function isValidContainer(node) {
|
||||
@@ -196,6 +198,28 @@ function getFragmentParentHostFiber(fiber) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
function findFragmentInstanceSiblings(result, self, child) {
|
||||
for (
|
||||
var foundSelf =
|
||||
3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : !1;
|
||||
null !== child;
|
||||
|
||||
) {
|
||||
if (child === self)
|
||||
if (((foundSelf = !0), child.sibling)) child = child.sibling;
|
||||
else return !0;
|
||||
if (5 === child.tag) {
|
||||
if (foundSelf) return (result[1] = child), !0;
|
||||
result[0] = child;
|
||||
} else if (
|
||||
(22 !== child.tag || null === child.memoizedState) &&
|
||||
findFragmentInstanceSiblings(result, self, child.child, foundSelf)
|
||||
)
|
||||
return !0;
|
||||
child = child.sibling;
|
||||
}
|
||||
return !1;
|
||||
}
|
||||
function getInstanceFromHostFiber(fiber) {
|
||||
switch (fiber.tag) {
|
||||
case 5:
|
||||
@@ -14988,20 +15012,20 @@ function debounceScrollEnd(targetInst, nativeEvent, nativeEventTarget) {
|
||||
(nativeEventTarget[internalScrollTimer] = targetInst));
|
||||
}
|
||||
for (
|
||||
var i$jscomp$inline_1877 = 0;
|
||||
i$jscomp$inline_1877 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1877++
|
||||
var i$jscomp$inline_1878 = 0;
|
||||
i$jscomp$inline_1878 < simpleEventPluginEvents.length;
|
||||
i$jscomp$inline_1878++
|
||||
) {
|
||||
var eventName$jscomp$inline_1878 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1877],
|
||||
domEventName$jscomp$inline_1879 =
|
||||
eventName$jscomp$inline_1878.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1880 =
|
||||
eventName$jscomp$inline_1878[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1878.slice(1);
|
||||
var eventName$jscomp$inline_1879 =
|
||||
simpleEventPluginEvents[i$jscomp$inline_1878],
|
||||
domEventName$jscomp$inline_1880 =
|
||||
eventName$jscomp$inline_1879.toLowerCase(),
|
||||
capitalizedEvent$jscomp$inline_1881 =
|
||||
eventName$jscomp$inline_1879[0].toUpperCase() +
|
||||
eventName$jscomp$inline_1879.slice(1);
|
||||
registerSimpleEvent(
|
||||
domEventName$jscomp$inline_1879,
|
||||
"on" + capitalizedEvent$jscomp$inline_1880
|
||||
domEventName$jscomp$inline_1880,
|
||||
"on" + capitalizedEvent$jscomp$inline_1881
|
||||
);
|
||||
}
|
||||
registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
|
||||
@@ -17011,6 +17035,36 @@ function removeEventListenerFromChild(
|
||||
);
|
||||
return !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
FragmentInstance.prototype.dispatchEvent = function (event) {
|
||||
var parentHostFiber = getFragmentParentHostFiber(this._fragmentFiber);
|
||||
if (null === parentHostFiber) return !0;
|
||||
@@ -17341,36 +17395,44 @@ function validateDocumentPositionWithFiberTree(
|
||||
fragmentFiber)
|
||||
: !1;
|
||||
}
|
||||
function normalizeListenerOptions(opts) {
|
||||
return null == opts
|
||||
? "0"
|
||||
: "boolean" === typeof opts
|
||||
? "c=" + (opts ? "1" : "0")
|
||||
: "c=" +
|
||||
(opts.capture ? "1" : "0") +
|
||||
"&o=" +
|
||||
(opts.once ? "1" : "0") +
|
||||
"&p=" +
|
||||
(opts.passive ? "1" : "0");
|
||||
}
|
||||
function indexOfEventListener(
|
||||
eventListeners,
|
||||
type,
|
||||
listener,
|
||||
optionsOrUseCapture
|
||||
) {
|
||||
for (var i = 0; i < eventListeners.length; i++) {
|
||||
var item = eventListeners[i];
|
||||
if (
|
||||
item.type === type &&
|
||||
item.listener === listener &&
|
||||
normalizeListenerOptions(item.optionsOrUseCapture) ===
|
||||
normalizeListenerOptions(optionsOrUseCapture)
|
||||
)
|
||||
return i;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
enableFragmentRefsScrollIntoView &&
|
||||
(FragmentInstance.prototype.experimental_scrollIntoView = function (
|
||||
alignToTop
|
||||
) {
|
||||
if ("object" === typeof alignToTop)
|
||||
throw Error(formatProdErrorMessage(566));
|
||||
var children = [];
|
||||
traverseVisibleHostChildren(
|
||||
this._fragmentFiber.child,
|
||||
!1,
|
||||
collectChildren,
|
||||
children,
|
||||
void 0,
|
||||
void 0
|
||||
);
|
||||
var resolvedAlignToTop = !1 !== alignToTop;
|
||||
if (0 === children.length) {
|
||||
children = this._fragmentFiber;
|
||||
var result = [null, null],
|
||||
parentHostFiber = getFragmentParentHostFiber(children);
|
||||
null !== parentHostFiber &&
|
||||
findFragmentInstanceSiblings(result, children, parentHostFiber.child);
|
||||
resolvedAlignToTop = resolvedAlignToTop
|
||||
? result[1] ||
|
||||
result[0] ||
|
||||
getFragmentParentHostFiber(this._fragmentFiber)
|
||||
: result[0] || result[1];
|
||||
null !== resolvedAlignToTop &&
|
||||
getInstanceFromHostFiber(resolvedAlignToTop).scrollIntoView(alignToTop);
|
||||
} else
|
||||
for (
|
||||
result = resolvedAlignToTop ? children.length - 1 : 0;
|
||||
result !== (resolvedAlignToTop ? -1 : children.length);
|
||||
|
||||
)
|
||||
getInstanceFromHostFiber(children[result]).scrollIntoView(alignToTop),
|
||||
(result += resolvedAlignToTop ? -1 : 1);
|
||||
});
|
||||
function commitNewChildToFragmentInstance(childInstance, fragmentInstance) {
|
||||
var eventListeners = fragmentInstance._eventListeners;
|
||||
if (null !== eventListeners)
|
||||
@@ -19219,16 +19281,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
|
||||
0 === i && attemptExplicitHydrationTarget(target);
|
||||
}
|
||||
};
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2275 = React.version;
|
||||
var isomorphicReactPackageVersion$jscomp$inline_2286 = React.version;
|
||||
if (
|
||||
"19.2.0-native-fb-bd5b1b76-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275
|
||||
"19.2.0-native-fb-3434ff4f-20250827" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_2286
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_2275,
|
||||
"19.2.0-native-fb-bd5b1b76-20250827"
|
||||
isomorphicReactPackageVersion$jscomp$inline_2286,
|
||||
"19.2.0-native-fb-3434ff4f-20250827"
|
||||
)
|
||||
);
|
||||
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
@@ -19248,12 +19310,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
|
||||
null === componentOrElement ? null : componentOrElement.stateNode;
|
||||
return componentOrElement;
|
||||
};
|
||||
var internals$jscomp$inline_2282 = {
|
||||
var internals$jscomp$inline_2293 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$321 = 0;
|
||||
@@ -19271,16 +19333,16 @@ var internals$jscomp$inline_2282 = {
|
||||
}
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2809 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2820 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2809.isDisabled &&
|
||||
hook$jscomp$inline_2809.supportsFiber
|
||||
!hook$jscomp$inline_2820.isDisabled &&
|
||||
hook$jscomp$inline_2820.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2809.inject(
|
||||
internals$jscomp$inline_2282
|
||||
(rendererID = hook$jscomp$inline_2820.inject(
|
||||
internals$jscomp$inline_2293
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2809);
|
||||
(injectedHook = hook$jscomp$inline_2820);
|
||||
} catch (err) {}
|
||||
}
|
||||
function getCrossOriginStringAs(as, input) {
|
||||
@@ -19520,7 +19582,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<27a7c1f553282389146ec85d93093a0f>>
|
||||
* @generated SignedSource<<1814798b53a038bf14468dc78091c522>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -15758,10 +15758,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15906,5 +15906,5 @@ __DEV__ &&
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
})();
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b677f7e7363ab6589ee12cec43cf0d9e>>
|
||||
* @generated SignedSource<<00e9abde5bd720ec1ff9caad19aeb7af>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -9924,10 +9924,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1428 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1429 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10063,4 +10063,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
+4
-4
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<c39f21a9c861cf2b050cf371eaa41a07>>
|
||||
* @generated SignedSource<<a95e4d6b9bc980a9b826c836a2e80650>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -10544,10 +10544,10 @@ function wrapFiber(fiber) {
|
||||
}
|
||||
var internals$jscomp$inline_1236 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
getLaneLabelMap: function () {
|
||||
for (
|
||||
var map = new Map(), lane = 1, index$142 = 0;
|
||||
@@ -10698,4 +10698,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
|
||||
flushSyncWorkAcrossRoots_impl(0, !0));
|
||||
}
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<0dece7a5af2c281c5287eb7dc65b803e>>
|
||||
* @generated SignedSource<<e2c1a50d0de00e22138ff99d78fd9227>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -1388,7 +1388,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<3d4b5c997d000c0a3445a906e90a4a45>>
|
||||
* @generated SignedSource<<b86c1c125cd9c06d9e4f25e41058162e>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -579,4 +579,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<97298d16fdbf762d2d6702a0a145189f>>
|
||||
* @generated SignedSource<<45ed9a0ee021c00589a16f3062647261>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -583,7 +583,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.2.0-native-fb-bd5b1b76-20250827";
|
||||
exports.version = "19.2.0-native-fb-3434ff4f-20250827";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
bd5b1b7639b818a3fbd33ce83bf022a6f9f27b55
|
||||
3434ff4f4b89ad9388c6109312ef95c14652ae21
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cdd077459fb91eeb72d8545c40fca02c>>
|
||||
* @generated SignedSource<<1d84b6eec439bbddc93733c15aa6f963>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19594,10 +19594,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<6c1540141fbe6fcadfaec36ec1974617>>
|
||||
* @generated SignedSource<<85103c97a4c5b0a2cbcd9e3b22d7a6b3>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11108,10 +11108,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1260 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1260.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+3
-3
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<cf3677dc70b4b4221968d6327dd27058>>
|
||||
* @generated SignedSource<<cded1f65f39a95663f9850806ed7213d>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13059,10 +13059,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1504 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1504.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<b7f2b2e69d19361e90bed6f2ee357e57>>
|
||||
* @generated SignedSource<<98c37d27aa3b7bb74cbfdb45bc245272>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -19878,11 +19878,11 @@ __DEV__ &&
|
||||
shouldSuspendImpl = newShouldSuspendImpl;
|
||||
};
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-bd5b1b76-20250827" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-3434ff4f-20250827" !== 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.2.0-native-fb-bd5b1b76-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-3434ff4f-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -19908,10 +19908,10 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<5ad4be8a936e193c04dd12356aa3a551>>
|
||||
* @generated SignedSource<<5ee9a2a917ffda39a8bf7eb8eada3a32>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -11254,11 +11254,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-bd5b1b76-20250827" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-3434ff4f-20250827" !== 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.2.0-native-fb-bd5b1b76-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-3434ff4f-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -11308,10 +11308,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1290 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1290.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
+5
-5
@@ -7,7 +7,7 @@
|
||||
* @noflow
|
||||
* @nolint
|
||||
* @preventMunge
|
||||
* @generated SignedSource<<7a6e23082c9c705d66e4f3a4377d9879>>
|
||||
* @generated SignedSource<<53e5c9166a48a644ab239aa65dc4a169>>
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -13194,11 +13194,11 @@ function updateContainer(element, container, parentComponent, callback) {
|
||||
return lane;
|
||||
}
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.2.0-native-fb-bd5b1b76-20250827" !== isomorphicReactPackageVersion)
|
||||
if ("19.2.0-native-fb-3434ff4f-20250827" !== 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.2.0-native-fb-bd5b1b76-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-native-renderer: 19.2.0-native-fb-3434ff4f-20250827\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
if (
|
||||
"function" !==
|
||||
@@ -13248,10 +13248,10 @@ batchedUpdatesImpl = function (fn, a) {
|
||||
var roots = new Map(),
|
||||
internals$jscomp$inline_1534 = {
|
||||
bundleType: 0,
|
||||
version: "19.2.0-native-fb-bd5b1b76-20250827",
|
||||
version: "19.2.0-native-fb-3434ff4f-20250827",
|
||||
rendererPackageName: "react-native-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
reconcilerVersion: "19.2.0-native-fb-bd5b1b76-20250827"
|
||||
reconcilerVersion: "19.2.0-native-fb-3434ff4f-20250827"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals$jscomp$inline_1534.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "eslint-plugin-react-hooks",
|
||||
"description": "ESLint rules for React Hooks",
|
||||
"version": "0.0.0-experimental-bd5b1b76-20250827",
|
||||
"version": "0.0.0-experimental-3434ff4f-20250827",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/react.git",
|
||||
|
||||
Reference in New Issue
Block a user