diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 9607d0cdf2..f907ac182d 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -18812b645c93a9c42f931fae57bbbab9c1f402b8 +6cd6ba703de77e332ab201518b6e30e47cd49aaf diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 9bfc2aa89e..e8ba47de85 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -154,7 +154,6 @@ if (__DEV__) { enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf; // On WWW, false is used for a new modern build. var enableProfilerTimer = true; @@ -6215,9 +6214,9 @@ if (__DEV__) { return aliases.get(name) || name; } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -6292,6 +6291,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -6711,10 +6711,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var ariaProperties = { "aria-current": 0, // state @@ -7146,20 +7142,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -7237,17 +7226,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -36368,7 +36351,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-eb2e3f4c"; + var ReactVersion = "19.0.0-www-classic-36b47fc1"; function createPortal$1( children, @@ -41512,29 +41495,21 @@ if (__DEV__) { } // Boolean - case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } else { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[key] - ) { - didWarnForNewBooleanPropsWithEmptyValue[key] = true; + case "inert": { + { + if (value === "" && !didWarnForNewBooleanPropsWithEmptyValue[key]) { + didWarnForNewBooleanPropsWithEmptyValue[key] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - key - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + key + ); } } - + } // fallthrough for new boolean props without the flag on case "allowFullScreen": @@ -43932,35 +43907,32 @@ if (__DEV__) { continue; case "inert": - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[propKey] - ) { - didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; + { + if ( + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[propKey] + ) { + didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - propKey - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + propKey + ); } - - hydrateBooleanAttribute( - domElement, - propKey, - propKey, - value, - extraAttributes, - serverDifferences - ); - continue; } + hydrateBooleanAttribute( + domElement, + propKey, + propKey, + value, + extraAttributes, + serverDifferences + ); + continue; // fallthrough for new boolean props without the flag on default: { diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index af44893726..196d146f2f 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -150,7 +150,6 @@ if (__DEV__) { enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf; // On WWW, true is used for a new modern build. var enableProfilerTimer = true; @@ -6050,9 +6049,9 @@ if (__DEV__) { return aliases.get(name) || name; } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -6127,6 +6126,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -6546,10 +6546,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var ariaProperties = { "aria-current": 0, // state @@ -6981,20 +6977,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -7072,17 +7061,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -36216,7 +36199,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-0c956171"; + var ReactVersion = "19.0.0-www-modern-7787bbbe"; function createPortal$1( children, @@ -42238,29 +42221,21 @@ if (__DEV__) { } // Boolean - case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } else { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[key] - ) { - didWarnForNewBooleanPropsWithEmptyValue[key] = true; + case "inert": { + { + if (value === "" && !didWarnForNewBooleanPropsWithEmptyValue[key]) { + didWarnForNewBooleanPropsWithEmptyValue[key] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - key - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + key + ); } } - + } // fallthrough for new boolean props without the flag on case "allowFullScreen": @@ -44655,35 +44630,32 @@ if (__DEV__) { continue; case "inert": - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[propKey] - ) { - didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; + { + if ( + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[propKey] + ) { + didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - propKey - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + propKey + ); } - - hydrateBooleanAttribute( - domElement, - propKey, - propKey, - value, - extraAttributes, - serverDifferences - ); - continue; } + hydrateBooleanAttribute( + domElement, + propKey, + propKey, + value, + extraAttributes, + serverDifferences + ); + continue; // fallthrough for new boolean props without the flag on default: { diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index cef286cc35..626ac6874c 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -65,7 +65,6 @@ var ReactSharedInternals = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, REACT_ELEMENT_TYPE = Symbol.for("react.element"), @@ -14473,10 +14472,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -17110,7 +17105,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1732 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-8d5be4b3", + version: "19.0.0-www-classic-64e7bfa1", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2160 = { @@ -17140,7 +17135,7 @@ var internals$jscomp$inline_2160 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-8d5be4b3" + reconcilerVersion: "19.0.0-www-classic-64e7bfa1" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17590,4 +17585,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8d5be4b3"; +exports.version = "19.0.0-www-classic-64e7bfa1"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 1c69ad6042..fde4644a47 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -79,7 +79,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, assign = Object.assign, @@ -14780,10 +14779,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -16624,7 +16619,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1693 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-8af68c69", + version: "19.0.0-www-modern-0a452e58", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2122 = { @@ -16654,7 +16649,7 @@ var internals$jscomp$inline_2122 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-8af68c69" + reconcilerVersion: "19.0.0-www-modern-0a452e58" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2123 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16957,4 +16952,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-8af68c69"; +exports.version = "19.0.0-www-modern-0a452e58"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 3bd6599418..14d05fe46b 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -69,7 +69,6 @@ var ReactSharedInternals = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, @@ -15223,10 +15222,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -17860,7 +17855,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1818 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-84f28ae7", + version: "19.0.0-www-classic-be736b3f", rendererPackageName: "react-dom" }; (function (internals) { @@ -17904,7 +17899,7 @@ var devToolsConfig$jscomp$inline_1818 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-84f28ae7" + reconcilerVersion: "19.0.0-www-classic-be736b3f" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -18341,7 +18336,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-84f28ae7"; +exports.version = "19.0.0-www-classic-be736b3f"; "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 76545432ee..c264b1fe37 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -83,7 +83,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, @@ -15524,10 +15523,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -17368,7 +17363,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1779 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-056e78c8", + version: "19.0.0-www-modern-f5cb12fd", rendererPackageName: "react-dom" }; (function (internals) { @@ -17412,7 +17407,7 @@ var devToolsConfig$jscomp$inline_1779 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-056e78c8" + reconcilerVersion: "19.0.0-www-modern-f5cb12fd" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17702,7 +17697,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-056e78c8"; +exports.version = "19.0.0-www-modern-f5cb12fd"; "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 82dc28ccc6..bdd0d64636 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-classic-ba16cd90"; + var ReactVersion = "19.0.0-www-classic-4615f507"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -680,8 +680,7 @@ if (__DEV__) { enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, false is used for a new modern build. // $FlowFixMe[method-unbinding] @@ -1165,9 +1164,9 @@ if (__DEV__) { } } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -1242,6 +1241,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -1661,10 +1661,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; @@ -1899,20 +1895,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -1990,17 +1979,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -3599,38 +3582,36 @@ if (__DEV__) { return; case "inert": { - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[name] - ) { - didWarnForNewBooleanPropsWithEmptyValue[name] = true; - - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - name - ); - } - } // Boolean - + { if ( - value && - typeof value !== "function" && - typeof value !== "symbol" + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[name] ) { - target.push( - attributeSeparator, - stringToChunk(name), - attributeEmptyString + didWarnForNewBooleanPropsWithEmptyValue[name] = true; + + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + name ); } + } // Boolean - return; + if ( + value && + typeof value !== "function" && + typeof value !== "symbol" + ) { + target.push( + attributeSeparator, + stringToChunk(name), + attributeEmptyString + ); } + + return; } // fallthrough for new boolean props without the flag on diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index 380e91fb80..ffa0afa246 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -19,7 +19,7 @@ if (__DEV__) { var React = require("react"); var ReactDOM = require("react-dom"); - var ReactVersion = "19.0.0-www-modern-76165512"; + var ReactVersion = "19.0.0-www-modern-7f58775d"; // This refers to a WWW module. var warningWWW = require("warning"); @@ -680,8 +680,7 @@ if (__DEV__) { enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. // $FlowFixMe[method-unbinding] @@ -1165,9 +1164,9 @@ if (__DEV__) { } } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -1242,6 +1241,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -1661,10 +1661,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; @@ -1899,20 +1895,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -1990,17 +1979,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -3599,38 +3582,36 @@ if (__DEV__) { return; case "inert": { - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[name] - ) { - didWarnForNewBooleanPropsWithEmptyValue[name] = true; - - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - name - ); - } - } // Boolean - + { if ( - value && - typeof value !== "function" && - typeof value !== "symbol" + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[name] ) { - target.push( - attributeSeparator, - stringToChunk(name), - attributeEmptyString + didWarnForNewBooleanPropsWithEmptyValue[name] = true; + + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + name ); } + } // Boolean - return; + if ( + value && + typeof value !== "function" && + typeof value !== "symbol" + ) { + target.push( + attributeSeparator, + stringToChunk(name), + attributeEmptyString + ); } + + return; } // fallthrough for new boolean props without the flag on diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 1d7f267d02..92813b2023 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -135,7 +135,6 @@ var assign = Object.assign, dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" @@ -642,13 +641,11 @@ function pushAttribute(target, name, value) { pushStringAttribute(target, "xml:space", value); break; case "inert": - if (enableNewBooleanProps) { - value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '=""'); - break; - } + value && + "function" !== typeof value && + "symbol" !== typeof value && + target.push(" ", name, '=""'); + break; default: if ( !(2 < name.length) || @@ -5733,4 +5730,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.0.0-www-classic-31877900"; +exports.version = "19.0.0-www-classic-fdf32945"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index e660518877..53b496cd76 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -135,7 +135,6 @@ var assign = Object.assign, dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" @@ -642,13 +641,11 @@ function pushAttribute(target, name, value) { pushStringAttribute(target, "xml:space", value); break; case "inert": - if (enableNewBooleanProps) { - value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '=""'); - break; - } + value && + "function" !== typeof value && + "symbol" !== typeof value && + target.push(" ", name, '=""'); + break; default: if ( !(2 < name.length) || @@ -5674,4 +5671,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.0.0-www-modern-369c07f3"; +exports.version = "19.0.0-www-modern-a0711929"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index d327d00f9d..e55195c4f0 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -677,8 +677,7 @@ if (__DEV__) { enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps; + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp; // On WWW, true is used for a new modern build. // $FlowFixMe[method-unbinding] @@ -1162,9 +1161,9 @@ if (__DEV__) { } } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -1239,6 +1238,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -1658,10 +1658,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; @@ -1896,20 +1892,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -1987,17 +1976,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -3596,38 +3579,36 @@ if (__DEV__) { return; case "inert": { - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[name] - ) { - didWarnForNewBooleanPropsWithEmptyValue[name] = true; - - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - name - ); - } - } // Boolean - + { if ( - value && - typeof value !== "function" && - typeof value !== "symbol" + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[name] ) { - target.push( - attributeSeparator, - stringToChunk(name), - attributeEmptyString + didWarnForNewBooleanPropsWithEmptyValue[name] = true; + + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + name ); } + } // Boolean - return; + if ( + value && + typeof value !== "function" && + typeof value !== "symbol" + ) { + target.push( + attributeSeparator, + stringToChunk(name), + attributeEmptyString + ); } + + return; } // fallthrough for new boolean props without the flag on diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 5a712d3018..937b091de1 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -127,7 +127,6 @@ var assign = Object.assign, dynamicFeatureFlags.enableUseDeferredValueInitialArg, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, hasOwnProperty = Object.prototype.hasOwnProperty, VALID_ATTRIBUTE_NAME_REGEX = RegExp( "^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$" @@ -617,13 +616,11 @@ function pushAttribute(target, name, value) { pushStringAttribute(target, "xml:space", value); break; case "inert": - if (enableNewBooleanProps) { - value && - "function" !== typeof value && - "symbol" !== typeof value && - target.push(" ", name, '=""'); - break; - } + value && + "function" !== typeof value && + "symbol" !== typeof value && + target.push(" ", name, '=""'); + break; default: if ( !(2 < name.length) || diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 7146795e69..bd18793c42 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -146,7 +146,6 @@ if (__DEV__) { enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf; // On WWW, false is used for a new modern build. var enableProfilerTimer = true; @@ -6352,9 +6351,9 @@ if (__DEV__) { return aliases.get(name) || name; } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -6429,6 +6428,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -6848,10 +6848,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var ariaProperties = { "aria-current": 0, // state @@ -7283,20 +7279,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -7374,17 +7363,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -36992,7 +36975,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-classic-25663c8c"; + var ReactVersion = "19.0.0-www-classic-5c6af03f"; function createPortal$1( children, @@ -42136,29 +42119,21 @@ if (__DEV__) { } // Boolean - case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } else { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[key] - ) { - didWarnForNewBooleanPropsWithEmptyValue[key] = true; + case "inert": { + { + if (value === "" && !didWarnForNewBooleanPropsWithEmptyValue[key]) { + didWarnForNewBooleanPropsWithEmptyValue[key] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - key - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + key + ); } } - + } // fallthrough for new boolean props without the flag on case "allowFullScreen": @@ -44556,35 +44531,32 @@ if (__DEV__) { continue; case "inert": - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[propKey] - ) { - didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; + { + if ( + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[propKey] + ) { + didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - propKey - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + propKey + ); } - - hydrateBooleanAttribute( - domElement, - propKey, - propKey, - value, - extraAttributes, - serverDifferences - ); - continue; } + hydrateBooleanAttribute( + domElement, + propKey, + propKey, + value, + extraAttributes, + serverDifferences + ); + continue; // fallthrough for new boolean props without the flag on default: { diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index be3a18b52f..9f1f27a6e4 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -142,7 +142,6 @@ if (__DEV__) { enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, useModernStrictMode = dynamicFeatureFlags.useModernStrictMode, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf; // On WWW, true is used for a new modern build. var enableProfilerTimer = true; @@ -6187,9 +6186,9 @@ if (__DEV__) { return aliases.get(name) || name; } + // When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. - var possibleStandardNames = { // HTML accept: "accept", @@ -6264,6 +6263,7 @@ if (__DEV__) { id: "id", imagesizes: "imageSizes", imagesrcset: "imageSrcSet", + inert: "inert", innerhtml: "innerHTML", inputmode: "inputMode", integrity: "integrity", @@ -6683,10 +6683,6 @@ if (__DEV__) { zoomandpan: "zoomAndPan" }; - if (enableNewBooleanProps) { - possibleStandardNames.inert = "inert"; - } - var ariaProperties = { "aria-current": 0, // state @@ -7118,20 +7114,13 @@ if (__DEV__) { case "seamless": case "itemScope": case "capture": - case "download": { + case "download": + case "inert": { // Boolean properties can accept boolean values return true; } // fallthrough - case "inert": { - if (enableNewBooleanProps) { - // Boolean properties can accept boolean values - return true; - } - } - // fallthrough for new boolean props without the flag on - default: { var prefix = name.toLowerCase().slice(0, 5); @@ -7209,17 +7198,11 @@ if (__DEV__) { case "reversed": case "scoped": case "seamless": - case "itemScope": { + case "itemScope": + case "inert": { break; } - case "inert": { - if (enableNewBooleanProps) { - break; - } - } - // fallthrough for new boolean props without the flag on - default: { return true; } @@ -36840,7 +36823,7 @@ if (__DEV__) { return root; } - var ReactVersion = "19.0.0-www-modern-bf95121e"; + var ReactVersion = "19.0.0-www-modern-909b8e80"; function createPortal$1( children, @@ -42862,29 +42845,21 @@ if (__DEV__) { } // Boolean - case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } else { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[key] - ) { - didWarnForNewBooleanPropsWithEmptyValue[key] = true; + case "inert": { + { + if (value === "" && !didWarnForNewBooleanPropsWithEmptyValue[key]) { + didWarnForNewBooleanPropsWithEmptyValue[key] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - key - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + key + ); } } - + } // fallthrough for new boolean props without the flag on case "allowFullScreen": @@ -45279,35 +45254,32 @@ if (__DEV__) { continue; case "inert": - if (enableNewBooleanProps) { - { - if ( - value === "" && - !didWarnForNewBooleanPropsWithEmptyValue[propKey] - ) { - didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; + { + if ( + value === "" && + !didWarnForNewBooleanPropsWithEmptyValue[propKey] + ) { + didWarnForNewBooleanPropsWithEmptyValue[propKey] = true; - error( - "Received an empty string for a boolean attribute `%s`. " + - "This will treat the attribute as if it were false. " + - "Either pass `false` to silence this warning, or " + - "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", - propKey - ); - } + error( + "Received an empty string for a boolean attribute `%s`. " + + "This will treat the attribute as if it were false. " + + "Either pass `false` to silence this warning, or " + + "pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.", + propKey + ); } - - hydrateBooleanAttribute( - domElement, - propKey, - propKey, - value, - extraAttributes, - serverDifferences - ); - continue; } + hydrateBooleanAttribute( + domElement, + propKey, + propKey, + value, + extraAttributes, + serverDifferences + ); + continue; // fallthrough for new boolean props without the flag on default: { diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index cbcb369f31..8ad8db2c97 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -65,7 +65,6 @@ var ReactSharedInternals = dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, REACT_ELEMENT_TYPE = Symbol.for("react.element"), @@ -14745,10 +14744,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -17439,7 +17434,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1759 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-add9ca31", + version: "19.0.0-www-classic-9cca9405", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2168 = { @@ -17469,7 +17464,7 @@ var internals$jscomp$inline_2168 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-add9ca31" + reconcilerVersion: "19.0.0-www-classic-9cca9405" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2169 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18062,4 +18057,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-add9ca31"; +exports.version = "19.0.0-www-classic-9cca9405"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 2acb44f802..66e8f99eb5 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -79,7 +79,6 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"), dynamicFeatureFlags.enableInfiniteRenderLoopDetection, enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - enableNewBooleanProps = dynamicFeatureFlags.enableNewBooleanProps, favorSafetyOverHydrationPerf = dynamicFeatureFlags.favorSafetyOverHydrationPerf, assign = Object.assign, @@ -15113,10 +15112,6 @@ function setProp(domElement, tag, key, value, props, prevValue) { : domElement.removeAttribute(key); break; case "inert": - if (!enableNewBooleanProps) { - setValueForAttribute(domElement, key, value); - break; - } case "allowFullScreen": case "async": case "autoPlay": @@ -17014,7 +17009,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1720 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-469b3f56", + version: "19.0.0-www-modern-5be8bd62", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2126 = { @@ -17044,7 +17039,7 @@ var internals$jscomp$inline_2126 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-469b3f56" + reconcilerVersion: "19.0.0-www-modern-5be8bd62" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2127 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17470,4 +17465,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactCurrentDispatcher$2.current.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-469b3f56"; +exports.version = "19.0.0-www-modern-5be8bd62";