From d73d69464aa3a6b1b0bc58df53535795f2aff1e3 Mon Sep 17 00:00:00 2001 From: "pull[bot]" <39814207+pull[bot]@users.noreply.github.com> Date: Thu, 6 Feb 2025 17:10:08 -0800 Subject: [PATCH] [Fiber][Dev] Relax dom nesting validation when the root is a Document, html tag, or body tag (#32252) followup to * https://github.com/facebook/react/pull/32069 * https://github.com/facebook/react/pull/32163 * https://github.com/facebook/react/pull/32224 in react-dom in Dev we validate that the tag nesting is valid. This is motivated primarily because while browsers are tolerant to poor HTML there are many cases that if server rendered will be hydrated in a way that will break hydration. With the changes to singleton scoping where the document body is now the implicit render/hydration context for arbitrary tags at the root we need to adjust the validation logic to allow for valid programs such as rendering divs as a child of a Document (since this div will actually insert into the body). DiffTrain build for [a0fdb6306043b9f049106e58dcec107d8dbed2b1](https://github.com/facebook/react/commit/a0fdb6306043b9f049106e58dcec107d8dbed2b1) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 2 +- compiled/facebook-www/React-dev.modern.js | 2 +- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 6 +- compiled/facebook-www/ReactART-dev.modern.js | 6 +- .../facebook-www/ReactART-prod.classic.js | 6 +- compiled/facebook-www/ReactART-prod.modern.js | 6 +- compiled/facebook-www/ReactDOM-dev.classic.js | 146 +++++++++++------- compiled/facebook-www/ReactDOM-dev.modern.js | 146 +++++++++++------- .../facebook-www/ReactDOM-prod.classic.js | 14 +- compiled/facebook-www/ReactDOM-prod.modern.js | 14 +- .../ReactDOM-profiling.classic.js | 14 +- .../facebook-www/ReactDOM-profiling.modern.js | 14 +- .../ReactDOMServer-dev.classic.js | 2 +- .../facebook-www/ReactDOMServer-dev.modern.js | 2 +- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMTesting-dev.classic.js | 146 +++++++++++------- .../ReactDOMTesting-dev.modern.js | 146 +++++++++++------- .../ReactDOMTesting-prod.classic.js | 14 +- .../ReactDOMTesting-prod.modern.js | 14 +- .../ReactReconciler-dev.classic.js | 2 +- .../ReactReconciler-dev.modern.js | 2 +- .../ReactReconciler-prod.classic.js | 2 +- .../ReactReconciler-prod.modern.js | 2 +- .../ReactTestRenderer-dev.classic.js | 6 +- .../ReactTestRenderer-dev.modern.js | 6 +- compiled/facebook-www/VERSION_CLASSIC | 2 +- compiled/facebook-www/VERSION_MODERN | 2 +- 34 files changed, 452 insertions(+), 288 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 94368cde9f287..4c100163b083e 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -ff6283340a10bb72ad0fb16ca027606a9ea1e67c +a0fdb6306043b9f049106e58dcec107d8dbed2b1 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 94368cde9f287..4c100163b083e 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -ff6283340a10bb72ad0fb16ca027606a9ea1e67c +a0fdb6306043b9f049106e58dcec107d8dbed2b1 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 0e993c41f7d63..eadf396c8c551 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -1972,7 +1972,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 3cc6566b6fcbc..b5843e1f23501 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -1972,7 +1972,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 517d449c9ad1e..ed0a8d771a359 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -639,4 +639,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 49caf9b864dfe..f2320e5a0d019 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -639,4 +639,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index bdad9cd90006c..bad9061ef4f73 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -643,7 +643,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index e2c790b65e35f..b0f73ecb4b77b 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -643,7 +643,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 6f1b55171f9e5..483d79b58f606 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -17417,10 +17417,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17454,7 +17454,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 7bad72d535f88..1a3e54a319b98 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -17189,10 +17189,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17226,7 +17226,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index c1419641fdf08..0e6a76fb3e5ab 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -11275,10 +11275,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1567 = { bundleType: 0, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1568 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11304,4 +11304,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 5fbd26dd72bd8..4e3b485c0d755 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -10990,10 +10990,10 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1540 = { bundleType: 0, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1541 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -11019,4 +11019,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index b8eaff6c13df3..048c294afb957 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -2491,33 +2491,41 @@ __DEV__ && return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; } function updatedAncestorInfoDev(oldInfo, tag) { - oldInfo = assign({}, oldInfo || emptyAncestorInfoDev); - var info = { tag: tag }; + var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), + info = { tag: tag }; -1 !== inScopeTags.indexOf(tag) && - ((oldInfo.aTagInScope = null), - (oldInfo.buttonTagInScope = null), - (oldInfo.nobrTagInScope = null)); - -1 !== buttonScopeTags.indexOf(tag) && (oldInfo.pTagInButtonScope = null); + ((ancestorInfo.aTagInScope = null), + (ancestorInfo.buttonTagInScope = null), + (ancestorInfo.nobrTagInScope = null)); + -1 !== buttonScopeTags.indexOf(tag) && + (ancestorInfo.pTagInButtonScope = null); -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && - ((oldInfo.listItemTagAutoclosing = null), - (oldInfo.dlItemTagAutoclosing = null)); - oldInfo.current = info; - "form" === tag && (oldInfo.formTag = info); - "a" === tag && (oldInfo.aTagInScope = info); - "button" === tag && (oldInfo.buttonTagInScope = info); - "nobr" === tag && (oldInfo.nobrTagInScope = info); - "p" === tag && (oldInfo.pTagInButtonScope = info); - "li" === tag && (oldInfo.listItemTagAutoclosing = info); - if ("dd" === tag || "dt" === tag) oldInfo.dlItemTagAutoclosing = info; + ((ancestorInfo.listItemTagAutoclosing = null), + (ancestorInfo.dlItemTagAutoclosing = null)); + ancestorInfo.current = info; + "form" === tag && (ancestorInfo.formTag = info); + "a" === tag && (ancestorInfo.aTagInScope = info); + "button" === tag && (ancestorInfo.buttonTagInScope = info); + "nobr" === tag && (ancestorInfo.nobrTagInScope = info); + "p" === tag && (ancestorInfo.pTagInButtonScope = info); + "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); + if ("dd" === tag || "dt" === tag) + ancestorInfo.dlItemTagAutoclosing = info; "#document" === tag || "html" === tag - ? (oldInfo.containerTagInScope = null) - : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); - return oldInfo; - } - function isTagValidWithParent(tag, parentTag) { + ? (ancestorInfo.containerTagInScope = null) + : ancestorInfo.containerTagInScope || + (ancestorInfo.containerTagInScope = info); + null !== oldInfo || + ("#document" !== tag && "html" !== tag && "body" !== tag) + ? !0 === ancestorInfo.implicitRootScope && + (ancestorInfo.implicitRootScope = !1) + : (ancestorInfo.implicitRootScope = !0); + return ancestorInfo; + } + function isTagValidWithParent(tag, parentTag, implicitRootScope) { switch (parentTag) { case "select": return ( @@ -2577,11 +2585,12 @@ __DEV__ && "template" === tag ); case "html": + if (implicitRootScope) break; return "head" === tag || "body" === tag || "frameset" === tag; case "frameset": return "frame" === tag; case "#document": - return "html" === tag; + if (!implicitRootScope) return "html" === tag; } switch (tag) { case "h1": @@ -2601,14 +2610,11 @@ __DEV__ && case "rp": case "rt": return -1 === impliedEndTags.indexOf(parentTag); - case "body": case "caption": case "col": case "colgroup": case "frameset": case "frame": - case "head": - case "html": case "tbody": case "td": case "tfoot": @@ -2616,6 +2622,19 @@ __DEV__ && case "thead": case "tr": return null == parentTag; + case "head": + return implicitRootScope || null === parentTag; + case "html": + return ( + (implicitRootScope && "#document" === parentTag) || + null === parentTag + ); + case "body": + return ( + (implicitRootScope && + ("#document" === parentTag || "html" === parentTag)) || + null === parentTag + ); } return !0; } @@ -2690,7 +2709,8 @@ __DEV__ && var parentInfo = ancestorInfo.current; ancestorInfo = (parentInfo = isTagValidWithParent( childTag, - parentInfo && parentInfo.tag + parentInfo && parentInfo.tag, + ancestorInfo.implicitRootScope ) ? null : parentInfo) @@ -2745,32 +2765,33 @@ __DEV__ && })); return !1; } - function validateTextNesting(childText, parentTag) { - if (isTagValidWithParent("#text", parentTag)) return !0; - var warnKey = "#text|" + parentTag; - if (didWarn[warnKey]) return !1; - didWarn[warnKey] = !0; - var ancestor = (warnKey = current) - ? findAncestor(warnKey, parentTag) + function validateTextNesting(childText, parentTag, implicitRootScope) { + if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) + return !0; + implicitRootScope = "#text|" + parentTag; + if (didWarn[implicitRootScope]) return !1; + didWarn[implicitRootScope] = !0; + var ancestor = (implicitRootScope = current) + ? findAncestor(implicitRootScope, parentTag) : null; - warnKey = - null !== warnKey && null !== ancestor + implicitRootScope = + null !== implicitRootScope && null !== ancestor ? describeAncestors( ancestor, - warnKey, - 6 !== warnKey.tag ? { children: null } : null + implicitRootScope, + 6 !== implicitRootScope.tag ? { children: null } : null ) : ""; /\S/.test(childText) ? error$jscomp$0( "In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ) : error$jscomp$0( "In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ); return !1; } @@ -10988,9 +11009,16 @@ __DEV__ && case 6: if (null === current && isHydrating) { var text = workInProgress.pendingProps, - ancestor = getHostContext().ancestorInfo.current; + currentHostContext$jscomp$1 = getHostContext(), + ancestor = currentHostContext$jscomp$1.ancestorInfo.current; var shouldKeepWarning$jscomp$0 = - null != ancestor ? validateTextNesting(text, ancestor.tag) : !0; + null != ancestor + ? validateTextNesting( + text, + ancestor.tag, + currentHostContext$jscomp$1.ancestorInfo.implicitRootScope + ) + : !0; var nextInstance$jscomp$0 = nextHydratableInstance, JSCompiler_temp$jscomp$1; if (!(JSCompiler_temp$jscomp$1 = !nextInstance$jscomp$0)) { @@ -11861,9 +11889,13 @@ __DEV__ && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(workInProgress); } else - (renderLanes = renderLanes.ancestorInfo.current), - null != renderLanes && - validateTextNesting(newProps, renderLanes.tag), + (_type = renderLanes.ancestorInfo.current), + null != _type && + validateTextNesting( + newProps, + _type.tag, + renderLanes.ancestorInfo.implicitRootScope + ), (current = getOwnerDocumentFromRootContainer(current).createTextNode( newProps @@ -20553,12 +20585,12 @@ __DEV__ && switch (key) { case "children": if ("string" === typeof value) - validateTextNesting(value, tag), + validateTextNesting(value, tag, !1), "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value); else if ("number" === typeof value || "bigint" === typeof value) - validateTextNesting("" + value, tag), + validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); else return; break; @@ -23268,7 +23300,10 @@ __DEV__ && instance, internalInstanceHandle ) { - if (getInstanceFromNode(instance)) { + if ( + !instance[internalContainerInstanceKey] && + getInstanceFromNode(instance) + ) { var tagName = instance.tagName.toLowerCase(); error$jscomp$0( "You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", @@ -23301,7 +23336,9 @@ __DEV__ && function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : container.nodeType === DOCUMENT_NODE + ? container + : container.ownerDocument; } function preconnectAs(rel, href, crossOrigin) { var ownerDocument = globalDocument; @@ -24961,7 +24998,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28615,11 +28653,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-ff628334-20250205" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-classic-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-a0fdb630-20250206\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28662,10 +28700,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29263,7 +29301,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 1930ece9d51c2..1198832077b93 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -2477,33 +2477,41 @@ __DEV__ && return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; } function updatedAncestorInfoDev(oldInfo, tag) { - oldInfo = assign({}, oldInfo || emptyAncestorInfoDev); - var info = { tag: tag }; + var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), + info = { tag: tag }; -1 !== inScopeTags.indexOf(tag) && - ((oldInfo.aTagInScope = null), - (oldInfo.buttonTagInScope = null), - (oldInfo.nobrTagInScope = null)); - -1 !== buttonScopeTags.indexOf(tag) && (oldInfo.pTagInButtonScope = null); + ((ancestorInfo.aTagInScope = null), + (ancestorInfo.buttonTagInScope = null), + (ancestorInfo.nobrTagInScope = null)); + -1 !== buttonScopeTags.indexOf(tag) && + (ancestorInfo.pTagInButtonScope = null); -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && - ((oldInfo.listItemTagAutoclosing = null), - (oldInfo.dlItemTagAutoclosing = null)); - oldInfo.current = info; - "form" === tag && (oldInfo.formTag = info); - "a" === tag && (oldInfo.aTagInScope = info); - "button" === tag && (oldInfo.buttonTagInScope = info); - "nobr" === tag && (oldInfo.nobrTagInScope = info); - "p" === tag && (oldInfo.pTagInButtonScope = info); - "li" === tag && (oldInfo.listItemTagAutoclosing = info); - if ("dd" === tag || "dt" === tag) oldInfo.dlItemTagAutoclosing = info; + ((ancestorInfo.listItemTagAutoclosing = null), + (ancestorInfo.dlItemTagAutoclosing = null)); + ancestorInfo.current = info; + "form" === tag && (ancestorInfo.formTag = info); + "a" === tag && (ancestorInfo.aTagInScope = info); + "button" === tag && (ancestorInfo.buttonTagInScope = info); + "nobr" === tag && (ancestorInfo.nobrTagInScope = info); + "p" === tag && (ancestorInfo.pTagInButtonScope = info); + "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); + if ("dd" === tag || "dt" === tag) + ancestorInfo.dlItemTagAutoclosing = info; "#document" === tag || "html" === tag - ? (oldInfo.containerTagInScope = null) - : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); - return oldInfo; - } - function isTagValidWithParent(tag, parentTag) { + ? (ancestorInfo.containerTagInScope = null) + : ancestorInfo.containerTagInScope || + (ancestorInfo.containerTagInScope = info); + null !== oldInfo || + ("#document" !== tag && "html" !== tag && "body" !== tag) + ? !0 === ancestorInfo.implicitRootScope && + (ancestorInfo.implicitRootScope = !1) + : (ancestorInfo.implicitRootScope = !0); + return ancestorInfo; + } + function isTagValidWithParent(tag, parentTag, implicitRootScope) { switch (parentTag) { case "select": return ( @@ -2563,11 +2571,12 @@ __DEV__ && "template" === tag ); case "html": + if (implicitRootScope) break; return "head" === tag || "body" === tag || "frameset" === tag; case "frameset": return "frame" === tag; case "#document": - return "html" === tag; + if (!implicitRootScope) return "html" === tag; } switch (tag) { case "h1": @@ -2587,14 +2596,11 @@ __DEV__ && case "rp": case "rt": return -1 === impliedEndTags.indexOf(parentTag); - case "body": case "caption": case "col": case "colgroup": case "frameset": case "frame": - case "head": - case "html": case "tbody": case "td": case "tfoot": @@ -2602,6 +2608,19 @@ __DEV__ && case "thead": case "tr": return null == parentTag; + case "head": + return implicitRootScope || null === parentTag; + case "html": + return ( + (implicitRootScope && "#document" === parentTag) || + null === parentTag + ); + case "body": + return ( + (implicitRootScope && + ("#document" === parentTag || "html" === parentTag)) || + null === parentTag + ); } return !0; } @@ -2676,7 +2695,8 @@ __DEV__ && var parentInfo = ancestorInfo.current; ancestorInfo = (parentInfo = isTagValidWithParent( childTag, - parentInfo && parentInfo.tag + parentInfo && parentInfo.tag, + ancestorInfo.implicitRootScope ) ? null : parentInfo) @@ -2731,32 +2751,33 @@ __DEV__ && })); return !1; } - function validateTextNesting(childText, parentTag) { - if (isTagValidWithParent("#text", parentTag)) return !0; - var warnKey = "#text|" + parentTag; - if (didWarn[warnKey]) return !1; - didWarn[warnKey] = !0; - var ancestor = (warnKey = current) - ? findAncestor(warnKey, parentTag) + function validateTextNesting(childText, parentTag, implicitRootScope) { + if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) + return !0; + implicitRootScope = "#text|" + parentTag; + if (didWarn[implicitRootScope]) return !1; + didWarn[implicitRootScope] = !0; + var ancestor = (implicitRootScope = current) + ? findAncestor(implicitRootScope, parentTag) : null; - warnKey = - null !== warnKey && null !== ancestor + implicitRootScope = + null !== implicitRootScope && null !== ancestor ? describeAncestors( ancestor, - warnKey, - 6 !== warnKey.tag ? { children: null } : null + implicitRootScope, + 6 !== implicitRootScope.tag ? { children: null } : null ) : ""; /\S/.test(childText) ? error$jscomp$0( "In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ) : error$jscomp$0( "In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ); return !1; } @@ -10801,9 +10822,16 @@ __DEV__ && case 6: if (null === current && isHydrating) { var text = workInProgress.pendingProps, - ancestor = getHostContext().ancestorInfo.current; + currentHostContext$jscomp$1 = getHostContext(), + ancestor = currentHostContext$jscomp$1.ancestorInfo.current; var shouldKeepWarning$jscomp$0 = - null != ancestor ? validateTextNesting(text, ancestor.tag) : !0; + null != ancestor + ? validateTextNesting( + text, + ancestor.tag, + currentHostContext$jscomp$1.ancestorInfo.implicitRootScope + ) + : !0; var nextInstance$jscomp$0 = nextHydratableInstance, JSCompiler_temp$jscomp$1; if (!(JSCompiler_temp$jscomp$1 = !nextInstance$jscomp$0)) { @@ -11668,9 +11696,13 @@ __DEV__ && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(workInProgress); } else - (renderLanes = renderLanes.ancestorInfo.current), - null != renderLanes && - validateTextNesting(newProps, renderLanes.tag), + (_type = renderLanes.ancestorInfo.current), + null != _type && + validateTextNesting( + newProps, + _type.tag, + renderLanes.ancestorInfo.implicitRootScope + ), (current = getOwnerDocumentFromRootContainer(current).createTextNode( newProps @@ -20355,12 +20387,12 @@ __DEV__ && switch (key) { case "children": if ("string" === typeof value) - validateTextNesting(value, tag), + validateTextNesting(value, tag, !1), "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value); else if ("number" === typeof value || "bigint" === typeof value) - validateTextNesting("" + value, tag), + validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); else return; break; @@ -23062,7 +23094,10 @@ __DEV__ && instance, internalInstanceHandle ) { - if (getInstanceFromNode(instance)) { + if ( + !instance[internalContainerInstanceKey] && + getInstanceFromNode(instance) + ) { var tagName = instance.tagName.toLowerCase(); error$jscomp$0( "You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", @@ -23095,7 +23130,9 @@ __DEV__ && function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : container.nodeType === DOCUMENT_NODE + ? container + : container.ownerDocument; } function preconnectAs(rel, href, crossOrigin) { var ownerDocument = globalDocument; @@ -24753,7 +24790,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28401,11 +28439,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-ff628334-20250205" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-modern-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-a0fdb630-20250206\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28448,10 +28486,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29049,7 +29087,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 28fadfd92e670..9d1775c63b1f0 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -16963,7 +16963,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -18440,14 +18442,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1871 = React.version; if ( - "19.1.0-www-classic-ff628334-20250205" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1871 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1871, - "19.1.0-www-classic-ff628334-20250205" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18465,10 +18467,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2431 = { bundleType: 0, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2432 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18832,4 +18834,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 916eb7ae9c619..97cf053d11488 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -16694,7 +16694,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -18171,14 +18173,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1861 = React.version; if ( - "19.1.0-www-modern-ff628334-20250205" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1861 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1861, - "19.1.0-www-modern-ff628334-20250205" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18196,10 +18198,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2413 = { bundleType: 0, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2414 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18563,4 +18565,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 0f3884afd03a0..faa21cee81968 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -17654,7 +17654,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -19131,14 +19133,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1968 = React.version; if ( - "19.1.0-www-classic-ff628334-20250205" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1968 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1968, - "19.1.0-www-classic-ff628334-20250205" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19156,10 +19158,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1970 = { bundleType: 0, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; enableSchedulingProfiler && ((internals$jscomp$inline_1970.getLaneLabelMap = getLaneLabelMap), @@ -19526,7 +19528,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index d7f8f401bc523..ddbde35cc8bc7 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -17384,7 +17384,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -18861,14 +18863,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1958 = React.version; if ( - "19.1.0-www-modern-ff628334-20250205" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1958 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1958, - "19.1.0-www-modern-ff628334-20250205" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18886,10 +18888,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1960 = { bundleType: 0, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; enableSchedulingProfiler && ((internals$jscomp$inline_1960.getLaneLabelMap = getLaneLabelMap), @@ -19256,7 +19258,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 9b4a07cc502be..153a8c0caec84 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -9479,5 +9479,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.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 5929554115a16..e69bcedfe0b50 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -9305,5 +9305,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.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index a3a423944b4c4..bb51fa9cf8847 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -6194,4 +6194,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.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 3df5641ee0160..0852b910b86e4 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -6106,4 +6106,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.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index eb859aeba69e4..549d414f718b5 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -2532,33 +2532,41 @@ __DEV__ && return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; } function updatedAncestorInfoDev(oldInfo, tag) { - oldInfo = assign({}, oldInfo || emptyAncestorInfoDev); - var info = { tag: tag }; + var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), + info = { tag: tag }; -1 !== inScopeTags.indexOf(tag) && - ((oldInfo.aTagInScope = null), - (oldInfo.buttonTagInScope = null), - (oldInfo.nobrTagInScope = null)); - -1 !== buttonScopeTags.indexOf(tag) && (oldInfo.pTagInButtonScope = null); + ((ancestorInfo.aTagInScope = null), + (ancestorInfo.buttonTagInScope = null), + (ancestorInfo.nobrTagInScope = null)); + -1 !== buttonScopeTags.indexOf(tag) && + (ancestorInfo.pTagInButtonScope = null); -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && - ((oldInfo.listItemTagAutoclosing = null), - (oldInfo.dlItemTagAutoclosing = null)); - oldInfo.current = info; - "form" === tag && (oldInfo.formTag = info); - "a" === tag && (oldInfo.aTagInScope = info); - "button" === tag && (oldInfo.buttonTagInScope = info); - "nobr" === tag && (oldInfo.nobrTagInScope = info); - "p" === tag && (oldInfo.pTagInButtonScope = info); - "li" === tag && (oldInfo.listItemTagAutoclosing = info); - if ("dd" === tag || "dt" === tag) oldInfo.dlItemTagAutoclosing = info; + ((ancestorInfo.listItemTagAutoclosing = null), + (ancestorInfo.dlItemTagAutoclosing = null)); + ancestorInfo.current = info; + "form" === tag && (ancestorInfo.formTag = info); + "a" === tag && (ancestorInfo.aTagInScope = info); + "button" === tag && (ancestorInfo.buttonTagInScope = info); + "nobr" === tag && (ancestorInfo.nobrTagInScope = info); + "p" === tag && (ancestorInfo.pTagInButtonScope = info); + "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); + if ("dd" === tag || "dt" === tag) + ancestorInfo.dlItemTagAutoclosing = info; "#document" === tag || "html" === tag - ? (oldInfo.containerTagInScope = null) - : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); - return oldInfo; - } - function isTagValidWithParent(tag, parentTag) { + ? (ancestorInfo.containerTagInScope = null) + : ancestorInfo.containerTagInScope || + (ancestorInfo.containerTagInScope = info); + null !== oldInfo || + ("#document" !== tag && "html" !== tag && "body" !== tag) + ? !0 === ancestorInfo.implicitRootScope && + (ancestorInfo.implicitRootScope = !1) + : (ancestorInfo.implicitRootScope = !0); + return ancestorInfo; + } + function isTagValidWithParent(tag, parentTag, implicitRootScope) { switch (parentTag) { case "select": return ( @@ -2618,11 +2626,12 @@ __DEV__ && "template" === tag ); case "html": + if (implicitRootScope) break; return "head" === tag || "body" === tag || "frameset" === tag; case "frameset": return "frame" === tag; case "#document": - return "html" === tag; + if (!implicitRootScope) return "html" === tag; } switch (tag) { case "h1": @@ -2642,14 +2651,11 @@ __DEV__ && case "rp": case "rt": return -1 === impliedEndTags.indexOf(parentTag); - case "body": case "caption": case "col": case "colgroup": case "frameset": case "frame": - case "head": - case "html": case "tbody": case "td": case "tfoot": @@ -2657,6 +2663,19 @@ __DEV__ && case "thead": case "tr": return null == parentTag; + case "head": + return implicitRootScope || null === parentTag; + case "html": + return ( + (implicitRootScope && "#document" === parentTag) || + null === parentTag + ); + case "body": + return ( + (implicitRootScope && + ("#document" === parentTag || "html" === parentTag)) || + null === parentTag + ); } return !0; } @@ -2731,7 +2750,8 @@ __DEV__ && var parentInfo = ancestorInfo.current; ancestorInfo = (parentInfo = isTagValidWithParent( childTag, - parentInfo && parentInfo.tag + parentInfo && parentInfo.tag, + ancestorInfo.implicitRootScope ) ? null : parentInfo) @@ -2786,32 +2806,33 @@ __DEV__ && })); return !1; } - function validateTextNesting(childText, parentTag) { - if (isTagValidWithParent("#text", parentTag)) return !0; - var warnKey = "#text|" + parentTag; - if (didWarn[warnKey]) return !1; - didWarn[warnKey] = !0; - var ancestor = (warnKey = current) - ? findAncestor(warnKey, parentTag) + function validateTextNesting(childText, parentTag, implicitRootScope) { + if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) + return !0; + implicitRootScope = "#text|" + parentTag; + if (didWarn[implicitRootScope]) return !1; + didWarn[implicitRootScope] = !0; + var ancestor = (implicitRootScope = current) + ? findAncestor(implicitRootScope, parentTag) : null; - warnKey = - null !== warnKey && null !== ancestor + implicitRootScope = + null !== implicitRootScope && null !== ancestor ? describeAncestors( ancestor, - warnKey, - 6 !== warnKey.tag ? { children: null } : null + implicitRootScope, + 6 !== implicitRootScope.tag ? { children: null } : null ) : ""; /\S/.test(childText) ? error$jscomp$0( "In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ) : error$jscomp$0( "In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ); return !1; } @@ -11029,9 +11050,16 @@ __DEV__ && case 6: if (null === current && isHydrating) { var text = workInProgress.pendingProps, - ancestor = getHostContext().ancestorInfo.current; + currentHostContext$jscomp$1 = getHostContext(), + ancestor = currentHostContext$jscomp$1.ancestorInfo.current; var shouldKeepWarning$jscomp$0 = - null != ancestor ? validateTextNesting(text, ancestor.tag) : !0; + null != ancestor + ? validateTextNesting( + text, + ancestor.tag, + currentHostContext$jscomp$1.ancestorInfo.implicitRootScope + ) + : !0; var nextInstance$jscomp$0 = nextHydratableInstance, JSCompiler_temp$jscomp$1; if (!(JSCompiler_temp$jscomp$1 = !nextInstance$jscomp$0)) { @@ -11902,9 +11930,13 @@ __DEV__ && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(workInProgress); } else - (renderLanes = renderLanes.ancestorInfo.current), - null != renderLanes && - validateTextNesting(newProps, renderLanes.tag), + (_type = renderLanes.ancestorInfo.current), + null != _type && + validateTextNesting( + newProps, + _type.tag, + renderLanes.ancestorInfo.implicitRootScope + ), (current = getOwnerDocumentFromRootContainer(current).createTextNode( newProps @@ -20776,12 +20808,12 @@ __DEV__ && switch (key) { case "children": if ("string" === typeof value) - validateTextNesting(value, tag), + validateTextNesting(value, tag, !1), "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value); else if ("number" === typeof value || "bigint" === typeof value) - validateTextNesting("" + value, tag), + validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); else return; break; @@ -23556,7 +23588,10 @@ __DEV__ && instance, internalInstanceHandle ) { - if (getInstanceFromNode(instance)) { + if ( + !instance[internalContainerInstanceKey] && + getInstanceFromNode(instance) + ) { var tagName = instance.tagName.toLowerCase(); error$jscomp$0( "You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", @@ -23589,7 +23624,9 @@ __DEV__ && function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : container.nodeType === DOCUMENT_NODE + ? container + : container.ownerDocument; } function preconnectAs(rel, href, crossOrigin) { var ownerDocument = globalDocument; @@ -25290,7 +25327,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28949,11 +28987,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-ff628334-20250205" !== isomorphicReactPackageVersion) + if ("19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-classic-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-classic-a0fdb630-20250206\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28996,10 +29034,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29763,5 +29801,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index b1aa10b94dbe2..bb4070532644b 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -2518,33 +2518,41 @@ __DEV__ && return null !== node ? describeDiff(node).replaceAll(/^[+-]/gm, ">") : ""; } function updatedAncestorInfoDev(oldInfo, tag) { - oldInfo = assign({}, oldInfo || emptyAncestorInfoDev); - var info = { tag: tag }; + var ancestorInfo = assign({}, oldInfo || emptyAncestorInfoDev), + info = { tag: tag }; -1 !== inScopeTags.indexOf(tag) && - ((oldInfo.aTagInScope = null), - (oldInfo.buttonTagInScope = null), - (oldInfo.nobrTagInScope = null)); - -1 !== buttonScopeTags.indexOf(tag) && (oldInfo.pTagInButtonScope = null); + ((ancestorInfo.aTagInScope = null), + (ancestorInfo.buttonTagInScope = null), + (ancestorInfo.nobrTagInScope = null)); + -1 !== buttonScopeTags.indexOf(tag) && + (ancestorInfo.pTagInButtonScope = null); -1 !== specialTags.indexOf(tag) && "address" !== tag && "div" !== tag && "p" !== tag && - ((oldInfo.listItemTagAutoclosing = null), - (oldInfo.dlItemTagAutoclosing = null)); - oldInfo.current = info; - "form" === tag && (oldInfo.formTag = info); - "a" === tag && (oldInfo.aTagInScope = info); - "button" === tag && (oldInfo.buttonTagInScope = info); - "nobr" === tag && (oldInfo.nobrTagInScope = info); - "p" === tag && (oldInfo.pTagInButtonScope = info); - "li" === tag && (oldInfo.listItemTagAutoclosing = info); - if ("dd" === tag || "dt" === tag) oldInfo.dlItemTagAutoclosing = info; + ((ancestorInfo.listItemTagAutoclosing = null), + (ancestorInfo.dlItemTagAutoclosing = null)); + ancestorInfo.current = info; + "form" === tag && (ancestorInfo.formTag = info); + "a" === tag && (ancestorInfo.aTagInScope = info); + "button" === tag && (ancestorInfo.buttonTagInScope = info); + "nobr" === tag && (ancestorInfo.nobrTagInScope = info); + "p" === tag && (ancestorInfo.pTagInButtonScope = info); + "li" === tag && (ancestorInfo.listItemTagAutoclosing = info); + if ("dd" === tag || "dt" === tag) + ancestorInfo.dlItemTagAutoclosing = info; "#document" === tag || "html" === tag - ? (oldInfo.containerTagInScope = null) - : oldInfo.containerTagInScope || (oldInfo.containerTagInScope = info); - return oldInfo; - } - function isTagValidWithParent(tag, parentTag) { + ? (ancestorInfo.containerTagInScope = null) + : ancestorInfo.containerTagInScope || + (ancestorInfo.containerTagInScope = info); + null !== oldInfo || + ("#document" !== tag && "html" !== tag && "body" !== tag) + ? !0 === ancestorInfo.implicitRootScope && + (ancestorInfo.implicitRootScope = !1) + : (ancestorInfo.implicitRootScope = !0); + return ancestorInfo; + } + function isTagValidWithParent(tag, parentTag, implicitRootScope) { switch (parentTag) { case "select": return ( @@ -2604,11 +2612,12 @@ __DEV__ && "template" === tag ); case "html": + if (implicitRootScope) break; return "head" === tag || "body" === tag || "frameset" === tag; case "frameset": return "frame" === tag; case "#document": - return "html" === tag; + if (!implicitRootScope) return "html" === tag; } switch (tag) { case "h1": @@ -2628,14 +2637,11 @@ __DEV__ && case "rp": case "rt": return -1 === impliedEndTags.indexOf(parentTag); - case "body": case "caption": case "col": case "colgroup": case "frameset": case "frame": - case "head": - case "html": case "tbody": case "td": case "tfoot": @@ -2643,6 +2649,19 @@ __DEV__ && case "thead": case "tr": return null == parentTag; + case "head": + return implicitRootScope || null === parentTag; + case "html": + return ( + (implicitRootScope && "#document" === parentTag) || + null === parentTag + ); + case "body": + return ( + (implicitRootScope && + ("#document" === parentTag || "html" === parentTag)) || + null === parentTag + ); } return !0; } @@ -2717,7 +2736,8 @@ __DEV__ && var parentInfo = ancestorInfo.current; ancestorInfo = (parentInfo = isTagValidWithParent( childTag, - parentInfo && parentInfo.tag + parentInfo && parentInfo.tag, + ancestorInfo.implicitRootScope ) ? null : parentInfo) @@ -2772,32 +2792,33 @@ __DEV__ && })); return !1; } - function validateTextNesting(childText, parentTag) { - if (isTagValidWithParent("#text", parentTag)) return !0; - var warnKey = "#text|" + parentTag; - if (didWarn[warnKey]) return !1; - didWarn[warnKey] = !0; - var ancestor = (warnKey = current) - ? findAncestor(warnKey, parentTag) + function validateTextNesting(childText, parentTag, implicitRootScope) { + if (implicitRootScope || isTagValidWithParent("#text", parentTag, !1)) + return !0; + implicitRootScope = "#text|" + parentTag; + if (didWarn[implicitRootScope]) return !1; + didWarn[implicitRootScope] = !0; + var ancestor = (implicitRootScope = current) + ? findAncestor(implicitRootScope, parentTag) : null; - warnKey = - null !== warnKey && null !== ancestor + implicitRootScope = + null !== implicitRootScope && null !== ancestor ? describeAncestors( ancestor, - warnKey, - 6 !== warnKey.tag ? { children: null } : null + implicitRootScope, + 6 !== implicitRootScope.tag ? { children: null } : null ) : ""; /\S/.test(childText) ? error$jscomp$0( "In HTML, text nodes cannot be a child of <%s>.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ) : error$jscomp$0( "In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.\nThis will cause a hydration error.%s", parentTag, - warnKey + implicitRootScope ); return !1; } @@ -10842,9 +10863,16 @@ __DEV__ && case 6: if (null === current && isHydrating) { var text = workInProgress.pendingProps, - ancestor = getHostContext().ancestorInfo.current; + currentHostContext$jscomp$1 = getHostContext(), + ancestor = currentHostContext$jscomp$1.ancestorInfo.current; var shouldKeepWarning$jscomp$0 = - null != ancestor ? validateTextNesting(text, ancestor.tag) : !0; + null != ancestor + ? validateTextNesting( + text, + ancestor.tag, + currentHostContext$jscomp$1.ancestorInfo.implicitRootScope + ) + : !0; var nextInstance$jscomp$0 = nextHydratableInstance, JSCompiler_temp$jscomp$1; if (!(JSCompiler_temp$jscomp$1 = !nextInstance$jscomp$0)) { @@ -11709,9 +11737,13 @@ __DEV__ && favorSafetyOverHydrationPerf && throwOnHydrationMismatch(workInProgress); } else - (renderLanes = renderLanes.ancestorInfo.current), - null != renderLanes && - validateTextNesting(newProps, renderLanes.tag), + (_type = renderLanes.ancestorInfo.current), + null != _type && + validateTextNesting( + newProps, + _type.tag, + renderLanes.ancestorInfo.implicitRootScope + ), (current = getOwnerDocumentFromRootContainer(current).createTextNode( newProps @@ -20578,12 +20610,12 @@ __DEV__ && switch (key) { case "children": if ("string" === typeof value) - validateTextNesting(value, tag), + validateTextNesting(value, tag, !1), "body" === tag || ("textarea" === tag && "" === value) || setTextContent(domElement, value); else if ("number" === typeof value || "bigint" === typeof value) - validateTextNesting("" + value, tag), + validateTextNesting("" + value, tag, !1), "body" !== tag && setTextContent(domElement, "" + value); else return; break; @@ -23350,7 +23382,10 @@ __DEV__ && instance, internalInstanceHandle ) { - if (getInstanceFromNode(instance)) { + if ( + !instance[internalContainerInstanceKey] && + getInstanceFromNode(instance) + ) { var tagName = instance.tagName.toLowerCase(); error$jscomp$0( "You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.", @@ -23383,7 +23418,9 @@ __DEV__ && function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : container.nodeType === DOCUMENT_NODE + ? container + : container.ownerDocument; } function preconnectAs(rel, href, crossOrigin) { var ownerDocument = globalDocument; @@ -25082,7 +25119,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28735,11 +28773,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-ff628334-20250205" !== isomorphicReactPackageVersion) + if ("19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.1.0-www-modern-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.1.0-www-modern-a0fdb630-20250206\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28782,10 +28820,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29549,5 +29587,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 5a83e6f0e2d27..b62be23326bcd 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -17292,7 +17292,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -18769,14 +18771,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1900 = React.version; if ( - "19.1.0-www-classic-ff628334-20250205" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1900 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1900, - "19.1.0-www-classic-ff628334-20250205" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18794,10 +18796,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2465 = { bundleType: 0, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2466 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19312,4 +19314,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-ff628334-20250205"; +exports.version = "19.1.0-www-classic-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index f972c67dab2d0..6a10c2130b099 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -17023,7 +17023,9 @@ var preloadPropsMap = new Map(), function getHoistableRoot(container) { return "function" === typeof container.getRootNode ? container.getRootNode() - : container.ownerDocument; + : 9 === container.nodeType + ? container + : container.ownerDocument; } var previousDispatcher = Internals.d; Internals.d = { @@ -18500,14 +18502,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1890 = React.version; if ( - "19.1.0-www-modern-ff628334-20250205" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1890 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1890, - "19.1.0-www-modern-ff628334-20250205" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18525,10 +18527,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2447 = { bundleType: 0, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2448 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19043,4 +19045,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-ff628334-20250205"; +exports.version = "19.1.0-www-modern-a0fdb630-20250206"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 9befe96991d27..fe47a610532b6 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -20047,7 +20047,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 95bafda1a5305..43a4e119c589e 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -19828,7 +19828,7 @@ __DEV__ && version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 4ca559683111c..b7b894f2df44a 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -13764,7 +13764,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 52d72c5e921db..165551150e67e 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -13483,7 +13483,7 @@ module.exports = function ($$$config) { version: rendererVersion, rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 4e0da8c74a879..c5dd696d861ba 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -14991,10 +14991,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-ff628334-20250205", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-ff628334-20250205" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15129,5 +15129,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-classic-ff628334-20250205"; + exports.version = "19.1.0-www-classic-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 09e53e7d0eeeb..f6ef40b0e8764 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -14991,10 +14991,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-ff628334-20250205", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-ff628334-20250205" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15129,5 +15129,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.1.0-www-modern-ff628334-20250205"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index ab28b36c5e3c8..0b5ffec03b18b 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-ff628334-20250205 \ No newline at end of file +19.1.0-www-classic-a0fdb630-20250206 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index d52b8cc061e72..a08787eb791b9 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-ff628334-20250205 \ No newline at end of file +19.1.0-www-modern-a0fdb630-20250206 \ No newline at end of file