From 5637e8ed15ff0f163eafbeda07d938e34d1fc0a0 Mon Sep 17 00:00:00 2001 From: gnoff <2716369+gnoff@users.noreply.github.com> Date: Thu, 6 Feb 2025 15:11:29 -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 | 142 +++++++++++------- compiled/facebook-www/ReactDOM-dev.modern.js | 142 +++++++++++------- .../facebook-www/ReactDOM-prod.classic.js | 10 +- compiled/facebook-www/ReactDOM-prod.modern.js | 10 +- .../ReactDOM-profiling.classic.js | 10 +- .../facebook-www/ReactDOM-profiling.modern.js | 10 +- .../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 | 142 +++++++++++------- .../ReactDOMTesting-dev.modern.js | 142 +++++++++++------- .../ReactDOMTesting-prod.classic.js | 10 +- .../ReactDOMTesting-prod.modern.js | 10 +- .../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, 422 insertions(+), 278 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 18f667e49c2de..4c100163b083e 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -b48e739998432fc9672a42d0d04515980b8cae82 +a0fdb6306043b9f049106e58dcec107d8dbed2b1 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 18f667e49c2de..4c100163b083e 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -b48e739998432fc9672a42d0d04515980b8cae82 +a0fdb6306043b9f049106e58dcec107d8dbed2b1 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index eb47765ba47ac..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-b48e7399-20250206"; + 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 e6d8e5512f59d..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-b48e7399-20250206"; + 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 09611df87706a..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-b48e7399-20250206"; +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 8e496bffc6b46..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-b48e7399-20250206"; +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 b79f866a4bafd..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-b48e7399-20250206"; +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 cf88986e144a3..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-b48e7399-20250206"; +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 22aae8fbeaf2d..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-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + 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-b48e7399-20250206"; + 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 0b1705cafdcec..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-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + 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-b48e7399-20250206"; + 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 df77e52d68fe4..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-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + 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-b48e7399-20250206"; +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 a4a3245805c1b..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-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + 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-b48e7399-20250206"; +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 02814b602c324..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.", @@ -24963,7 +24998,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28617,11 +28653,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-b48e7399-20250206" !== 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-b48e7399-20250206\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 && @@ -28664,10 +28700,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29265,7 +29301,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-b48e7399-20250206"; + 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 4216a616eecda..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.", @@ -24755,7 +24790,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28403,11 +28439,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-b48e7399-20250206" !== 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-b48e7399-20250206\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 && @@ -28450,10 +28486,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29051,7 +29087,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-b48e7399-20250206"; + 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 dbaed81924c08..9d1775c63b1f0 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -18442,14 +18442,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1871 = React.version; if ( - "19.1.0-www-classic-b48e7399-20250206" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1871 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1871, - "19.1.0-www-classic-b48e7399-20250206" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18467,10 +18467,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2431 = { bundleType: 0, - version: "19.1.0-www-classic-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2432 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18834,4 +18834,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-b48e7399-20250206"; +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 ea645305dc84e..97cf053d11488 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -18173,14 +18173,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1861 = React.version; if ( - "19.1.0-www-modern-b48e7399-20250206" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1861 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1861, - "19.1.0-www-modern-b48e7399-20250206" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18198,10 +18198,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2413 = { bundleType: 0, - version: "19.1.0-www-modern-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2414 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18565,4 +18565,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-b48e7399-20250206"; +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 767ebc309dc05..faa21cee81968 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -19133,14 +19133,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1968 = React.version; if ( - "19.1.0-www-classic-b48e7399-20250206" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1968 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1968, - "19.1.0-www-classic-b48e7399-20250206" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -19158,10 +19158,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1970 = { bundleType: 0, - version: "19.1.0-www-classic-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; enableSchedulingProfiler && ((internals$jscomp$inline_1970.getLaneLabelMap = getLaneLabelMap), @@ -19528,7 +19528,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-b48e7399-20250206"; +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 50707a842e558..ddbde35cc8bc7 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -18863,14 +18863,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1958 = React.version; if ( - "19.1.0-www-modern-b48e7399-20250206" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1958 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1958, - "19.1.0-www-modern-b48e7399-20250206" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18888,10 +18888,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_1960 = { bundleType: 0, - version: "19.1.0-www-modern-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; enableSchedulingProfiler && ((internals$jscomp$inline_1960.getLaneLabelMap = getLaneLabelMap), @@ -19258,7 +19258,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-b48e7399-20250206"; +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 74e1f5fe77828..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-b48e7399-20250206"; + 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 4179cce3282e5..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-b48e7399-20250206"; + 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 65aecd2f346a6..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-b48e7399-20250206"; +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 c37c8bc14b40f..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-b48e7399-20250206"; +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 3e9c5766346b7..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.", @@ -25292,7 +25327,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28951,11 +28987,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-classic-b48e7399-20250206" !== 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-b48e7399-20250206\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 && @@ -28998,10 +29034,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-classic-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29765,5 +29801,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-classic-b48e7399-20250206"; + 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 d6f252f25b60e..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.", @@ -25084,7 +25119,8 @@ __DEV__ && pTagInButtonScope: null, listItemTagAutoclosing: null, dlItemTagAutoclosing: null, - containerTagInScope: null + containerTagInScope: null, + implicitRootScope: !1 }, didWarn = {}, COMMENT_NODE = 8, @@ -28737,11 +28773,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.1.0-www-modern-b48e7399-20250206" !== 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-b48e7399-20250206\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 && @@ -28784,10 +28820,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.1.0-www-modern-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29551,5 +29587,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.1.0-www-modern-b48e7399-20250206"; + 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 8d114e48dd298..b62be23326bcd 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -18771,14 +18771,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1900 = React.version; if ( - "19.1.0-www-classic-b48e7399-20250206" !== + "19.1.0-www-classic-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1900 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1900, - "19.1.0-www-classic-b48e7399-20250206" + "19.1.0-www-classic-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18796,10 +18796,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2465 = { bundleType: 0, - version: "19.1.0-www-classic-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-classic-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2466 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19314,4 +19314,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-classic-b48e7399-20250206"; +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 f75e55e8ffdba..6a10c2130b099 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -18502,14 +18502,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1890 = React.version; if ( - "19.1.0-www-modern-b48e7399-20250206" !== + "19.1.0-www-modern-a0fdb630-20250206" !== isomorphicReactPackageVersion$jscomp$inline_1890 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1890, - "19.1.0-www-modern-b48e7399-20250206" + "19.1.0-www-modern-a0fdb630-20250206" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -18527,10 +18527,10 @@ Internals.Events = [ ]; var internals$jscomp$inline_2447 = { bundleType: 0, - version: "19.1.0-www-modern-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + reconcilerVersion: "19.1.0-www-modern-a0fdb630-20250206" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2448 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -19045,4 +19045,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.1.0-www-modern-b48e7399-20250206"; +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 634cbaadebcd8..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-b48e7399-20250206" + 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 ae075d268c804..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-b48e7399-20250206" + 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 91d01f035b53e..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-b48e7399-20250206" + 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 e8ad6b59b9dd7..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-b48e7399-20250206" + 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 cebae15e7ab01..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-b48e7399-20250206", + version: "19.1.0-www-classic-a0fdb630-20250206", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-classic-b48e7399-20250206" + 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-b48e7399-20250206"; + 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 1b5433358db4f..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-b48e7399-20250206", + version: "19.1.0-www-modern-a0fdb630-20250206", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.1.0-www-modern-b48e7399-20250206" + 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-b48e7399-20250206"; + exports.version = "19.1.0-www-modern-a0fdb630-20250206"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index 037e338e06b6a..0b5ffec03b18b 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.1.0-www-classic-b48e7399-20250206 \ 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 b5d77e2d9a371..a08787eb791b9 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.1.0-www-modern-b48e7399-20250206 \ No newline at end of file +19.1.0-www-modern-a0fdb630-20250206 \ No newline at end of file