Allow fragment refs to attempt focus/focusLast on nested host children (#33058)

This enables `focus` and `focusLast` methods on FragmentInstances to
search nested host components, depth first. Attempts focus on each child
and bails if one is successful. Previously, only the first level of host
children would attempt focus.

Now if we have an example like

```
component MenuItem() {
  return (<div><a>{...}</a></div>)
}

component Menu() {
  return <Fragment>{items.map(i => <MenuItem i={i} />)}</Fragment>
}
```
We can target focus on the first or last a tag, rather than checking
each wrapping div and then noop.

DiffTrain build for [4206fe4982](https://github.com/facebook/react/commit/4206fe49825787eda57a5d142640a63772ccbf2b)
This commit is contained in:
jackpope
2025-05-07 09:53:26 -07:00
parent 0d8b3393ee
commit 3eca8ac794
34 changed files with 226 additions and 304 deletions
+1 -1
View File
@@ -1 +1 @@
e5a8de81e57181692d33ce916dfd6aa23638ec92
4206fe49825787eda57a5d142640a63772ccbf2b
+1 -1
View File
@@ -1 +1 @@
e5a8de81e57181692d33ce916dfd6aa23638ec92
4206fe49825787eda57a5d142640a63772ccbf2b
+1 -1
View File
@@ -1538,7 +1538,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -1538,7 +1538,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+1 -1
View File
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
+1 -1
View File
@@ -636,4 +636,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -640,7 +640,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -19032,10 +19032,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -19069,7 +19069,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+3 -3
View File
@@ -18804,10 +18804,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -18841,7 +18841,7 @@ __DEV__ &&
exports.Shape = Shape;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -11419,10 +11419,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1620 = {
bundleType: 0,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1621 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11448,4 +11448,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
@@ -11131,10 +11131,10 @@ var slice = Array.prototype.slice,
})(React.Component);
var internals$jscomp$inline_1593 = {
bundleType: 0,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-art",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1594 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -11160,4 +11160,4 @@ exports.RadialGradient = RadialGradient;
exports.Shape = TYPES.SHAPE;
exports.Surface = Surface;
exports.Text = Text;
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
+19 -31
View File
@@ -272,30 +272,18 @@ __DEV__ &&
c
) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -30927,7 +30915,7 @@ __DEV__ &&
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -30938,7 +30926,7 @@ __DEV__ &&
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -31360,11 +31348,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-e5a8de81-20250506" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-4206fe49-20250507" !== 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-www-classic-e5a8de81-20250506\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-4206fe49-20250507\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31407,10 +31395,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32008,7 +31996,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+19 -31
View File
@@ -272,30 +272,18 @@ __DEV__ &&
c
) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -30713,7 +30701,7 @@ __DEV__ &&
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -30724,7 +30712,7 @@ __DEV__ &&
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -31146,11 +31134,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-e5a8de81-20250506" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-4206fe49-20250507" !== 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-www-modern-e5a8de81-20250506\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-4206fe49-20250507\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31193,10 +31181,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -31794,7 +31782,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
+19 -24
View File
@@ -201,23 +201,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -17520,7 +17515,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -17535,7 +17530,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -19550,14 +19545,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2075 = React.version;
if (
"19.2.0-www-classic-e5a8de81-20250506" !==
"19.2.0-www-classic-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2075
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2075,
"19.2.0-www-classic-e5a8de81-20250506"
"19.2.0-www-classic-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19575,10 +19570,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2686 = {
bundleType: 0,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2687 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19942,4 +19937,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
+19 -24
View File
@@ -199,23 +199,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -17249,7 +17244,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -17264,7 +17259,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -19279,14 +19274,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2065 = React.version;
if (
"19.2.0-www-modern-e5a8de81-20250506" !==
"19.2.0-www-modern-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2065
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2065,
"19.2.0-www-modern-e5a8de81-20250506"
"19.2.0-www-modern-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19304,10 +19299,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2668 = {
bundleType: 0,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2669 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -19671,4 +19666,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
@@ -208,23 +208,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -19495,7 +19490,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -19510,7 +19505,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -21525,14 +21520,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2319 = React.version;
if (
"19.2.0-www-classic-e5a8de81-20250506" !==
"19.2.0-www-classic-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2319
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2319,
"19.2.0-www-classic-e5a8de81-20250506"
"19.2.0-www-classic-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21550,10 +21545,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2321 = {
bundleType: 0,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2321.getLaneLabelMap = getLaneLabelMap),
@@ -21920,7 +21915,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -206,23 +206,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -19293,7 +19288,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -19308,7 +19303,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -21323,14 +21318,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2309 = React.version;
if (
"19.2.0-www-modern-e5a8de81-20250506" !==
"19.2.0-www-modern-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2309
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2309,
"19.2.0-www-modern-e5a8de81-20250506"
"19.2.0-www-modern-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -21348,10 +21343,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2311 = {
bundleType: 0,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
enableSchedulingProfiler &&
((internals$jscomp$inline_2311.getLaneLabelMap = getLaneLabelMap),
@@ -21718,7 +21713,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -9536,5 +9536,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
})();
@@ -9465,5 +9465,5 @@ __DEV__ &&
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
})();
@@ -6287,4 +6287,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
@@ -6199,4 +6199,4 @@ exports.renderToString = function (children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
@@ -272,30 +272,18 @@ __DEV__ &&
c
) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -31248,7 +31236,7 @@ __DEV__ &&
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -31259,7 +31247,7 @@ __DEV__ &&
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -31681,11 +31669,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-classic-e5a8de81-20250506" !== isomorphicReactPackageVersion)
if ("19.2.0-www-classic-4206fe49-20250507" !== 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-www-classic-e5a8de81-20250506\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-classic-4206fe49-20250507\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31728,10 +31716,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32495,5 +32483,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
})();
@@ -272,30 +272,18 @@ __DEV__ &&
c
) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -31034,7 +31022,7 @@ __DEV__ &&
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -31045,7 +31033,7 @@ __DEV__ &&
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -31467,11 +31455,11 @@ __DEV__ &&
return_targetInst = null;
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-www-modern-e5a8de81-20250506" !== isomorphicReactPackageVersion)
if ("19.2.0-www-modern-4206fe49-20250507" !== 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-www-modern-e5a8de81-20250506\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-www-modern-4206fe49-20250507\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -31514,10 +31502,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -32281,5 +32269,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
})();
@@ -201,23 +201,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -17792,7 +17787,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -17807,7 +17802,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -19866,14 +19861,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2104 = React.version;
if (
"19.2.0-www-classic-e5a8de81-20250506" !==
"19.2.0-www-classic-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2104
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2104,
"19.2.0-www-classic-e5a8de81-20250506"
"19.2.0-www-classic-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19891,10 +19886,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2720 = {
bundleType: 0,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2721 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20409,4 +20404,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
@@ -199,23 +199,18 @@ function doesFiberContain(parentFiber, childFiber) {
}
function traverseVisibleHostChildren(child, searchWithinHosts, fn, a, b, c) {
for (; null !== child; ) {
if (5 === child.tag) {
if (
fn(child, a, b, c) ||
(searchWithinHosts &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
} else if (
(22 !== child.tag || null === child.memoizedState) &&
traverseVisibleHostChildren(child.child, searchWithinHosts, fn, a, b, c)
if (
(5 === child.tag && fn(child, a, b, c)) ||
((22 !== child.tag || null === child.memoizedState) &&
(searchWithinHosts || 5 !== child.tag) &&
traverseVisibleHostChildren(
child.child,
searchWithinHosts,
fn,
a,
b,
c
))
)
return !0;
child = child.sibling;
@@ -17521,7 +17516,7 @@ function removeEventListenerFromChild(
FragmentInstance.prototype.focus = function (focusOptions) {
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
setFocusOnFiberIfFocusable,
focusOptions,
void 0,
@@ -17536,7 +17531,7 @@ FragmentInstance.prototype.focusLast = function (focusOptions) {
var children = [];
traverseVisibleHostChildren(
this._fragmentFiber.child,
!1,
!0,
collectChildren,
children,
void 0,
@@ -19595,14 +19590,14 @@ function getCrossOriginStringAs(as, input) {
}
var isomorphicReactPackageVersion$jscomp$inline_2094 = React.version;
if (
"19.2.0-www-modern-e5a8de81-20250506" !==
"19.2.0-www-modern-4206fe49-20250507" !==
isomorphicReactPackageVersion$jscomp$inline_2094
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2094,
"19.2.0-www-modern-e5a8de81-20250506"
"19.2.0-www-modern-4206fe49-20250507"
)
);
Internals.findDOMNode = function (componentOrElement) {
@@ -19620,10 +19615,10 @@ Internals.Events = [
];
var internals$jscomp$inline_2702 = {
bundleType: 0,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2703 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -20138,4 +20133,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
@@ -21856,7 +21856,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -21637,7 +21637,7 @@ __DEV__ &&
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -14100,7 +14100,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -13817,7 +13817,7 @@ module.exports = function ($$$config) {
version: rendererVersion,
rendererPackageName: rendererPackageName,
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -15364,10 +15364,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-classic-e5a8de81-20250506",
version: "19.2.0-www-classic-4206fe49-20250507",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-classic-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-classic-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15502,5 +15502,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-classic-e5a8de81-20250506";
exports.version = "19.2.0-www-classic-4206fe49-20250507";
})();
@@ -15364,10 +15364,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-www-modern-e5a8de81-20250506",
version: "19.2.0-www-modern-4206fe49-20250507",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-www-modern-e5a8de81-20250506"
reconcilerVersion: "19.2.0-www-modern-4206fe49-20250507"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15502,5 +15502,5 @@ __DEV__ &&
exports.unstable_batchedUpdates = function (fn, a) {
return fn(a);
};
exports.version = "19.2.0-www-modern-e5a8de81-20250506";
exports.version = "19.2.0-www-modern-4206fe49-20250507";
})();
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-classic-e5a8de81-20250506
19.2.0-www-classic-4206fe49-20250507
+1 -1
View File
@@ -1 +1 @@
19.2.0-www-modern-e5a8de81-20250506
19.2.0-www-modern-4206fe49-20250507