diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index aca1e65618e00..988cafd91f3b0 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -18,11 +18,25 @@ if (__DEV__) { var React = require('react'); -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, false is used for a new modern build. +// because JSX is an extremely hot path. + +var disableStringRefs = false; + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -93,19 +107,6 @@ function printWarning(level, format, args) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, false is used for a new modern build. -// because JSX is an extremely hot path. - -var disableStringRefs = false; - function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -1026,7 +1027,7 @@ function elementRefGetterWithDeprecationWarning() { /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check - * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check * if something is a React Element. * * @param {*} type diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index 03db5d1548a0c..5ed5c7af4f508 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -18,11 +18,25 @@ if (__DEV__) { var React = require('react'); -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, true is used for a new modern build. +// because JSX is an extremely hot path. + +var disableStringRefs = false; + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -93,19 +107,6 @@ function printWarning(level, format, args) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, true is used for a new modern build. -// because JSX is an extremely hot path. - -var disableStringRefs = false; - function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -1029,7 +1030,7 @@ function elementRefGetterWithDeprecationWarning() { /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check - * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check * if something is a React Element. * * @param {*} type diff --git a/compiled/facebook-www/JSXDEVRuntime-prod.classic.js b/compiled/facebook-www/JSXDEVRuntime-prod.classic.js index 887e7a3f8b700..68e3d377511ca 100644 --- a/compiled/facebook-www/JSXDEVRuntime-prod.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-prod.classic.js @@ -11,7 +11,7 @@ */ "use strict"; -var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); require("ReactFeatureFlags"); +var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = void 0; diff --git a/compiled/facebook-www/JSXDEVRuntime-prod.modern.js b/compiled/facebook-www/JSXDEVRuntime-prod.modern.js index 887e7a3f8b700..68e3d377511ca 100644 --- a/compiled/facebook-www/JSXDEVRuntime-prod.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-prod.modern.js @@ -11,7 +11,7 @@ */ "use strict"; -var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); require("ReactFeatureFlags"); +var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = void 0; diff --git a/compiled/facebook-www/JSXDEVRuntime-profiling.classic.js b/compiled/facebook-www/JSXDEVRuntime-profiling.classic.js index 887e7a3f8b700..68e3d377511ca 100644 --- a/compiled/facebook-www/JSXDEVRuntime-profiling.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-profiling.classic.js @@ -11,7 +11,7 @@ */ "use strict"; -var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); require("ReactFeatureFlags"); +var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = void 0; diff --git a/compiled/facebook-www/JSXDEVRuntime-profiling.modern.js b/compiled/facebook-www/JSXDEVRuntime-profiling.modern.js index 887e7a3f8b700..68e3d377511ca 100644 --- a/compiled/facebook-www/JSXDEVRuntime-profiling.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-profiling.modern.js @@ -11,7 +11,7 @@ */ "use strict"; -var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); require("ReactFeatureFlags"); +var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"); exports.Fragment = REACT_FRAGMENT_TYPE; exports.jsxDEV = void 0; diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index ec5bdd3366836..177a8c5d4e98d 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -db913d8e17db25045e0518f3621f1640f2390525 +3b551c82844bcfde51f0febb8e42c1a0d777df2c diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 50f86c9857973..39d3230703046 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -25,13 +25,28 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = '19.0.0-www-classic-29916c01'; + var ReactVersion = '19.0.0-www-classic-ece5ea17'; + +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, false is used for a new modern build. +// because JSX is an extremely hot path. + +var disableStringRefs = false; +var disableLegacyMode = false; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -422,20 +437,6 @@ function checkPropStringCoercion(value, propName) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, false is used for a new modern build. -// because JSX is an extremely hot path. - -var disableStringRefs = false; -var disableLegacyMode = false; - function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -1313,7 +1314,7 @@ function elementRefGetterWithDeprecationWarning() { /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check - * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check * if something is a React Element. * * @param {*} type diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 3a5fff51847bd..ea2bae1df8021 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -25,13 +25,28 @@ if ( ) { __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error()); } - var ReactVersion = '19.0.0-www-modern-16b8232b'; + var ReactVersion = '19.0.0-www-modern-367021cf'; + +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, true is used for a new modern build. +// because JSX is an extremely hot path. + +var disableStringRefs = false; +var disableLegacyMode = true; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -422,20 +437,6 @@ function checkPropStringCoercion(value, propName) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, true is used for a new modern build. -// because JSX is an extremely hot path. - -var disableStringRefs = false; -var disableLegacyMode = true; - function getWrappedName$1(outerType, innerType, wrapperName) { var displayName = outerType.displayName; @@ -1316,7 +1317,7 @@ function elementRefGetterWithDeprecationWarning() { /** * Factory method to create a new React element. This no longer adheres to * the class pattern, so do not use new to call it. Also, instanceof check - * will not work. Instead test $$typeof field against Symbol.for('react.element') to check + * will not work. Instead test $$typeof field against Symbol.for('react.transitional.element') to check * if something is a React Element. * * @param {*} type diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index 150955cdef342..acbd7bd541a37 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -11,7 +11,13 @@ */ "use strict"; -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -81,19 +87,13 @@ pureComponentPrototype.constructor = PureComponent; assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, ReactSharedInternals = { H: null, C: null, T: null, owner: null }, hasOwnProperty = Object.prototype.hasOwnProperty; function ReactElement(type, key, _ref, self, source, owner, props) { enableRefAsProp && ((_ref = props.ref), (_ref = void 0 !== _ref ? _ref : null)); return { - $$typeof: REACT_ELEMENT_TYPE, + $$typeof: REACT_LEGACY_ELEMENT_TYPE, type: type, key: key, ref: _ref, @@ -152,7 +152,7 @@ function isValidElement(object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); } function coerceStringRef(mixedRef, owner, type) { @@ -249,7 +249,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { break; case "object": switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: case REACT_PORTAL_TYPE: invokeCallback = !0; break; @@ -695,4 +695,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-c379aa62"; +exports.version = "19.0.0-www-classic-4c7400c8"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index af971f462a2b1..6331733e2720e 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -11,7 +11,13 @@ */ "use strict"; -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -81,19 +87,13 @@ pureComponentPrototype.constructor = PureComponent; assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, ReactSharedInternals = { H: null, C: null, T: null, owner: null }, hasOwnProperty = Object.prototype.hasOwnProperty; function ReactElement(type, key, _ref, self, source, owner, props) { enableRefAsProp && ((_ref = props.ref), (_ref = void 0 !== _ref ? _ref : null)); return { - $$typeof: REACT_ELEMENT_TYPE, + $$typeof: REACT_LEGACY_ELEMENT_TYPE, type: type, key: key, ref: _ref, @@ -152,7 +152,7 @@ function isValidElement(object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); } function coerceStringRef(mixedRef, owner, type) { @@ -249,7 +249,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { break; case "object": switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: case REACT_PORTAL_TYPE: invokeCallback = !0; break; @@ -695,4 +695,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-c379aa62"; +exports.version = "19.0.0-www-modern-4c7400c8"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index c3c3d4b64ebf7..6d183bd7e1804 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -15,7 +15,13 @@ "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -85,19 +91,13 @@ pureComponentPrototype.constructor = PureComponent; assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, ReactSharedInternals = { H: null, C: null, T: null, owner: null }, hasOwnProperty = Object.prototype.hasOwnProperty; function ReactElement(type, key, _ref, self, source, owner, props) { enableRefAsProp && ((_ref = props.ref), (_ref = void 0 !== _ref ? _ref : null)); return { - $$typeof: REACT_ELEMENT_TYPE, + $$typeof: REACT_LEGACY_ELEMENT_TYPE, type: type, key: key, ref: _ref, @@ -156,7 +156,7 @@ function isValidElement(object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); } function coerceStringRef(mixedRef, owner, type) { @@ -253,7 +253,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { break; case "object": switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: case REACT_PORTAL_TYPE: invokeCallback = !0; break; @@ -699,7 +699,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-6d3239ac"; +exports.version = "19.0.0-www-classic-d5860266"; "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 3d064629f0f97..86e47fc96e157 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -15,7 +15,13 @@ "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()); -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -85,19 +91,13 @@ pureComponentPrototype.constructor = PureComponent; assign(pureComponentPrototype, Component.prototype); pureComponentPrototype.isPureReactComponent = !0; var isArrayImpl = Array.isArray, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, ReactSharedInternals = { H: null, C: null, T: null, owner: null }, hasOwnProperty = Object.prototype.hasOwnProperty; function ReactElement(type, key, _ref, self, source, owner, props) { enableRefAsProp && ((_ref = props.ref), (_ref = void 0 !== _ref ? _ref : null)); return { - $$typeof: REACT_ELEMENT_TYPE, + $$typeof: REACT_LEGACY_ELEMENT_TYPE, type: type, key: key, ref: _ref, @@ -156,7 +156,7 @@ function isValidElement(object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); } function coerceStringRef(mixedRef, owner, type) { @@ -253,7 +253,7 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) { break; case "object": switch (children.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: case REACT_PORTAL_TYPE: invokeCallback = !0; break; @@ -699,7 +699,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-6d3239ac"; +exports.version = "19.0.0-www-modern-d5860266"; "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 36b179fc30583..31be1715cac58 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -63,7 +63,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = '19.0.0-www-classic-426e3043'; +var ReactVersion = '19.0.0-www-classic-5033c724'; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -201,11 +201,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -6268,7 +6269,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 2fe51d1f2b4b5..faae258fd51a1 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -63,7 +63,7 @@ function _assertThisInitialized(self) { return self; } -var ReactVersion = '19.0.0-www-modern-dd5be59c'; +var ReactVersion = '19.0.0-www-modern-9c7c2ced'; var LegacyRoot = 0; var ConcurrentRoot = 1; @@ -201,11 +201,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -6057,7 +6058,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 10578236af382..d40851f45155d 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -87,7 +87,7 @@ var ReactSharedInternals = disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -1779,6 +1779,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -1940,7 +1942,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -2003,7 +2005,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -2057,7 +2059,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -2285,7 +2287,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -10622,7 +10624,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-classic-a0422099", + version: "19.0.0-www-classic-48f6e4f0", rendererPackageName: "react-art" }; var internals$jscomp$inline_1322 = { @@ -10653,7 +10655,7 @@ var internals$jscomp$inline_1322 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-a0422099" + reconcilerVersion: "19.0.0-www-classic-48f6e4f0" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1323 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 1b69ec7dedb0f..37af1d61ebe38 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -87,7 +87,7 @@ var ReactSharedInternals = disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -1577,6 +1577,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -1738,7 +1740,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -1801,7 +1803,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -1855,7 +1857,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -2083,7 +2085,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -10101,7 +10103,7 @@ var slice = Array.prototype.slice, return null; }, bundleType: 0, - version: "19.0.0-www-modern-07af3a38", + version: "19.0.0-www-modern-ce5296cc", rendererPackageName: "react-art" }; var internals$jscomp$inline_1307 = { @@ -10132,7 +10134,7 @@ var internals$jscomp$inline_1307 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-07af3a38" + reconcilerVersion: "19.0.0-www-modern-ce5296cc" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1308 = __REACT_DEVTOOLS_GLOBAL_HOOK__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index 148729257779f..91f3107afa170 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -168,11 +168,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -9867,7 +9868,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -30820,7 +30825,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-classic-0e9d3a50'; +var ReactVersion = '19.0.0-www-classic-61925632'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index b8db2e3479e6f..7ded44cc9f5c9 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -1842,11 +1842,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -15277,7 +15278,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -38727,7 +38732,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-modern-1cc22151'; +var ReactVersion = '19.0.0-www-modern-d45a9ed1'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index e78add365eb18..97e97f52bf8b5 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -64,7 +64,7 @@ var ReactSharedInternals = disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -2468,6 +2468,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -2629,7 +2631,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -2692,7 +2694,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -2746,7 +2748,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -2984,7 +2986,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -17036,7 +17038,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1729 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-8e0d593f", + version: "19.0.0-www-classic-73a7e510", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2160 = { @@ -17066,7 +17068,7 @@ var internals$jscomp$inline_2160 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-8e0d593f" + reconcilerVersion: "19.0.0-www-classic-73a7e510" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2161 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17532,4 +17534,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-8e0d593f"; +exports.version = "19.0.0-www-classic-73a7e510"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 10bc67fc993b2..faa33e1216a2d 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -363,7 +363,7 @@ function formatProdErrorMessage(code) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -4769,6 +4769,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -4930,7 +4932,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -4993,7 +4995,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -5047,7 +5049,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -5285,7 +5287,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -16398,7 +16400,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1722 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-c10596ab", + version: "19.0.0-www-modern-ad222928", rendererPackageName: "react-dom" }; var internals$jscomp$inline_2162 = { @@ -16428,7 +16430,7 @@ var internals$jscomp$inline_2162 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-c10596ab" + reconcilerVersion: "19.0.0-www-modern-ad222928" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2163 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -16736,4 +16738,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-c10596ab"; +exports.version = "19.0.0-www-modern-ad222928"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 4e94c87a19f59..6e5d8edef60d9 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -69,7 +69,7 @@ var ReactSharedInternals = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, enableSchedulingProfiler = dynamicFeatureFlags.enableSchedulingProfiler, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -2604,6 +2604,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -2765,7 +2767,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -2828,7 +2830,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -2882,7 +2884,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -3120,7 +3122,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -17784,7 +17786,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1815 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-21ff4feb", + version: "19.0.0-www-classic-e85c3a58", rendererPackageName: "react-dom" }; (function (internals) { @@ -17828,7 +17830,7 @@ var devToolsConfig$jscomp$inline_1815 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-21ff4feb" + reconcilerVersion: "19.0.0-www-classic-e85c3a58" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -18281,7 +18283,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-21ff4feb"; +exports.version = "19.0.0-www-classic-e85c3a58"; "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 4a2f4d9d915b7..3ec79b8b93263 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -499,7 +499,7 @@ function formatProdErrorMessage(code) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -4905,6 +4905,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -5066,7 +5068,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -5129,7 +5131,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -5183,7 +5185,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -5421,7 +5423,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -17129,7 +17131,7 @@ Internals.Events = [ var devToolsConfig$jscomp$inline_1808 = { findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-6f4c1c9f", + version: "19.0.0-www-modern-ff9e8711", rendererPackageName: "react-dom" }; (function (internals) { @@ -17173,7 +17175,7 @@ var devToolsConfig$jscomp$inline_1808 = { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-6f4c1c9f" + reconcilerVersion: "19.0.0-www-modern-ff9e8711" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); if ("function" !== typeof ReactFiberErrorDialogWWW.showErrorDialog) @@ -17468,7 +17470,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-6f4c1c9f"; +exports.version = "19.0.0-www-modern-ff9e8711"; "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 26a068f4657f4..60540a901b686 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-7553220d'; +var ReactVersion = '19.0.0-www-classic-cb8d6fd0'; // This refers to a WWW module. var warningWWW = require('warning'); @@ -68,11 +68,22 @@ function printWarning(level, format, args) { } } -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, false is used for a new modern build. + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -602,16 +613,6 @@ function checkHtmlStringCoercion(value) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, false is used for a new modern build. - // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index cd31f30950e36..1c005d13172fd 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-5517e912'; +var ReactVersion = '19.0.0-www-modern-5c36a344'; // This refers to a WWW module. var warningWWW = require('warning'); @@ -68,11 +68,22 @@ function printWarning(level, format, args) { } } -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, true is used for a new modern build. + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -602,16 +613,6 @@ function checkHtmlStringCoercion(value) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, true is used for a new modern build. - // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index c69554d6310d6..2f964be5aaaab 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -52,7 +52,15 @@ function formatProdErrorMessage(code) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = + dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -127,14 +135,6 @@ function murmurhash3_32_gc(key, seed) { return (h1 ^ (h1 >>> 16)) >>> 0; } var assign = Object.assign, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = - dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, 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]*$" @@ -4286,7 +4286,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { ) { if ("object" === typeof node$jscomp$0) { switch (node$jscomp$0.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: var type = node$jscomp$0.type, key = node$jscomp$0.key, props = node$jscomp$0.props; @@ -5684,4 +5684,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-c3826905"; +exports.version = "19.0.0-www-classic-11a178db"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 2f5f861f84c86..041d4f2bd0ee3 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -52,7 +52,15 @@ function formatProdErrorMessage(code) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = + dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -127,14 +135,6 @@ function murmurhash3_32_gc(key, seed) { return (h1 ^ (h1 >>> 16)) >>> 0; } var assign = Object.assign, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = - dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, 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]*$" @@ -4264,7 +4264,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { ) { if ("object" === typeof node$jscomp$0) { switch (node$jscomp$0.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: var type = node$jscomp$0.type, key = node$jscomp$0.key, props = node$jscomp$0.props; @@ -5662,4 +5662,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-f02d17e5"; +exports.version = "19.0.0-www-modern-ef2f7d1b"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index de43327d5ed49..aee4e77a1c50f 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -66,11 +66,22 @@ function printWarning(level, format, args) { } } -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; + // On WWW, true is used for a new modern build. + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -599,16 +610,6 @@ function checkHtmlStringCoercion(value) { } } -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses; - // On WWW, true is used for a new modern build. - // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 81e6944ae2ff3..e094d8aaa66b8 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -37,7 +37,15 @@ "use strict"; var React = require("react"), ReactDOM = require("react-dom"), - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + dynamicFeatureFlags = require("ReactFeatureFlags"), + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableUseDeferredValueInitialArg = + dynamicFeatureFlags.enableUseDeferredValueInitialArg, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, + disableDefaultPropsExceptForClasses = + dynamicFeatureFlags.disableDefaultPropsExceptForClasses, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -119,14 +127,6 @@ function writeChunkAndReturn(destination, chunk) { return !0; } var assign = Object.assign, - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableUseDeferredValueInitialArg = - dynamicFeatureFlags.enableUseDeferredValueInitialArg, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, - enableRefAsProp = dynamicFeatureFlags.enableRefAsProp, - disableDefaultPropsExceptForClasses = - dynamicFeatureFlags.disableDefaultPropsExceptForClasses, 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]*$" @@ -4088,7 +4088,7 @@ function renderNodeDestructive(request, task, node$jscomp$0, childIndex) { ) { if ("object" === typeof node$jscomp$0) { switch (node$jscomp$0.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: var type = node$jscomp$0.type, key = node$jscomp$0.key, props = node$jscomp$0.props; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index 8938e4da15f08..99ff32cadf702 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -159,11 +159,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -9998,7 +9999,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -31376,7 +31381,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-classic-153fbc4e'; +var ReactVersion = '19.0.0-www-classic-ed31fbb8'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 5456daaa57059..2b24b5d000e66 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -1833,11 +1833,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -15408,7 +15409,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -39415,7 +39420,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-modern-572232e1'; +var ReactVersion = '19.0.0-www-modern-d55cff3d'; function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation. implementation) { diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 96e048dccc49e..cbfbccf27c57b 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -64,7 +64,7 @@ var ReactSharedInternals = disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -2554,6 +2554,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -2715,7 +2717,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -2778,7 +2780,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -2832,7 +2834,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -3070,7 +3072,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -12846,7 +12848,7 @@ function injectIntoDevTools(devToolsConfig) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-58a04a89" + reconcilerVersion: "19.0.0-www-classic-0b6adad3" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; @@ -17409,7 +17411,7 @@ Internals.Events = [ injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-58a04a89", + version: "19.0.0-www-classic-0b6adad3", rendererPackageName: "react-dom" }); var ReactFiberErrorDialogWWW = require("ReactFiberErrorDialog"); @@ -17542,7 +17544,7 @@ assign(Internals, { injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-classic-58a04a89", + version: "19.0.0-www-classic-0b6adad3", rendererPackageName: "react-dom" }); exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = @@ -18009,4 +18011,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-58a04a89"; +exports.version = "19.0.0-www-classic-0b6adad3"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 4ade7733a2d2b..70eb4bddd06a2 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -363,7 +363,7 @@ function formatProdErrorMessage(code) { " for the full message or use the non-minified dev environment for full errors and additional helpful warnings." ); } -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -4914,6 +4914,8 @@ function coerceRef(returnFiber, current, workInProgress, element) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -5075,7 +5077,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (lanes = createFiberFromTypeAndProps( newChild.type, @@ -5138,7 +5140,7 @@ function createChildReconciler(shouldTrackSideEffects) { : updateTextNode(returnFiber, oldFiber, "" + newChild, lanes); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return newChild.key === key ? updateElement(returnFiber, oldFiber, newChild, lanes) : null; @@ -5192,7 +5194,7 @@ function createChildReconciler(shouldTrackSideEffects) { ); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: return ( (existingChildren = existingChildren.get( @@ -5430,7 +5432,7 @@ function createChildReconciler(shouldTrackSideEffects) { (newChild = newChild.props.children); if ("object" === typeof newChild && null !== newChild) { switch (newChild.$$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: a: { for ( var key = newChild.key, child = currentFirstChild; @@ -16132,7 +16134,7 @@ function injectIntoDevTools(devToolsConfig) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-252cdb5f" + reconcilerVersion: "19.0.0-www-modern-693c0137" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; @@ -16830,7 +16832,7 @@ Internals.Events = [ injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-252cdb5f", + version: "19.0.0-www-modern-693c0137", rendererPackageName: "react-dom" }); if ("function" !== typeof require("ReactFiberErrorDialog").showErrorDialog) @@ -16838,7 +16840,7 @@ if ("function" !== typeof require("ReactFiberErrorDialog").showErrorDialog) injectIntoDevTools({ findFiberByHostInstance: getClosestInstanceFromNode, bundleType: 0, - version: "19.0.0-www-modern-252cdb5f", + version: "19.0.0-www-modern-693c0137", rendererPackageName: "react-dom" }); exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = @@ -17252,4 +17254,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-252cdb5f"; +exports.version = "19.0.0-www-modern-693c0137"; diff --git a/compiled/facebook-www/ReactFreshRuntime-dev.classic.js b/compiled/facebook-www/ReactFreshRuntime-dev.classic.js index 05edc29bc3240..716e9cc76d62b 100644 --- a/compiled/facebook-www/ReactFreshRuntime-dev.classic.js +++ b/compiled/facebook-www/ReactFreshRuntime-dev.classic.js @@ -16,7 +16,9 @@ if (__DEV__) { (function() { 'use strict'; -// ATTENTION +// Re-export dynamic flags from the www version. +require('ReactFeatureFlags'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); var REACT_MEMO_TYPE = Symbol.for('react.memo'); diff --git a/compiled/facebook-www/ReactFreshRuntime-dev.modern.js b/compiled/facebook-www/ReactFreshRuntime-dev.modern.js index 05edc29bc3240..716e9cc76d62b 100644 --- a/compiled/facebook-www/ReactFreshRuntime-dev.modern.js +++ b/compiled/facebook-www/ReactFreshRuntime-dev.modern.js @@ -16,7 +16,9 @@ if (__DEV__) { (function() { 'use strict'; -// ATTENTION +// Re-export dynamic flags from the www version. +require('ReactFeatureFlags'); + var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'); var REACT_MEMO_TYPE = Symbol.for('react.memo'); diff --git a/compiled/facebook-www/ReactIs-dev.classic.js b/compiled/facebook-www/ReactIs-dev.classic.js index 9760ae9829ec7..c748889aebeaa 100644 --- a/compiled/facebook-www/ReactIs-dev.classic.js +++ b/compiled/facebook-www/ReactIs-dev.classic.js @@ -16,11 +16,20 @@ if (__DEV__) { (function() { 'use strict'; -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; + // On WWW, false is used for a new modern build. + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -40,14 +49,6 @@ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden'); var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker'); -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; - // On WWW, false is used for a new modern build. - var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { diff --git a/compiled/facebook-www/ReactIs-dev.modern.js b/compiled/facebook-www/ReactIs-dev.modern.js index 6f293fa4e8685..0a52d0a91c161 100644 --- a/compiled/facebook-www/ReactIs-dev.modern.js +++ b/compiled/facebook-www/ReactIs-dev.modern.js @@ -16,11 +16,20 @@ if (__DEV__) { (function() { 'use strict'; -// ATTENTION +// Re-export dynamic flags from the www version. +var dynamicFeatureFlags = require('ReactFeatureFlags'); + +var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; + // On WWW, true is used for a new modern build. + // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -40,14 +49,6 @@ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen'); var REACT_LEGACY_HIDDEN_TYPE = Symbol.for('react.legacy_hidden'); var REACT_TRACING_MARKER_TYPE = Symbol.for('react.tracing_marker'); -// Re-export dynamic flags from the www version. -var dynamicFeatureFlags = require('ReactFeatureFlags'); - -var enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext; - // On WWW, true is used for a new modern build. - var REACT_CLIENT_REFERENCE = Symbol.for('react.client.reference'); function isValidElementType(type) { if (typeof type === 'string' || typeof type === 'function') { diff --git a/compiled/facebook-www/ReactIs-prod.classic.js b/compiled/facebook-www/ReactIs-prod.classic.js index 3bdbcbdb23936..67298f1b7b0f9 100644 --- a/compiled/facebook-www/ReactIs-prod.classic.js +++ b/compiled/facebook-www/ReactIs-prod.classic.js @@ -11,7 +11,11 @@ */ "use strict"; -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -29,16 +33,12 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === typeof object && null !== object) { var $$typeof = object.$$typeof; switch ($$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: switch (((object = object.type), object)) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: @@ -73,7 +73,7 @@ exports.ContextConsumer = enableRenderableContext ? REACT_CONSUMER_TYPE : REACT_CONTEXT_TYPE; exports.ContextProvider = ContextProvider; -exports.Element = REACT_ELEMENT_TYPE; +exports.Element = REACT_LEGACY_ELEMENT_TYPE; exports.ForwardRef = REACT_FORWARD_REF_TYPE; exports.Fragment = REACT_FRAGMENT_TYPE; exports.Lazy = REACT_LAZY_TYPE; @@ -97,7 +97,7 @@ exports.isElement = function (object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); }; exports.isForwardRef = function (object) { diff --git a/compiled/facebook-www/ReactIs-prod.modern.js b/compiled/facebook-www/ReactIs-prod.modern.js index 3bdbcbdb23936..67298f1b7b0f9 100644 --- a/compiled/facebook-www/ReactIs-prod.modern.js +++ b/compiled/facebook-www/ReactIs-prod.modern.js @@ -11,7 +11,11 @@ */ "use strict"; -var REACT_ELEMENT_TYPE = Symbol.for("react.element"), +var dynamicFeatureFlags = require("ReactFeatureFlags"), + enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, + enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, + enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -29,16 +33,12 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"), REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"), - dynamicFeatureFlags = require("ReactFeatureFlags"), - enableDebugTracing = dynamicFeatureFlags.enableDebugTracing, - enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing, - enableRenderableContext = dynamicFeatureFlags.enableRenderableContext, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); function typeOf(object) { if ("object" === typeof object && null !== object) { var $$typeof = object.$$typeof; switch ($$typeof) { - case REACT_ELEMENT_TYPE: + case REACT_LEGACY_ELEMENT_TYPE: switch (((object = object.type), object)) { case REACT_FRAGMENT_TYPE: case REACT_PROFILER_TYPE: @@ -73,7 +73,7 @@ exports.ContextConsumer = enableRenderableContext ? REACT_CONSUMER_TYPE : REACT_CONTEXT_TYPE; exports.ContextProvider = ContextProvider; -exports.Element = REACT_ELEMENT_TYPE; +exports.Element = REACT_LEGACY_ELEMENT_TYPE; exports.ForwardRef = REACT_FORWARD_REF_TYPE; exports.Fragment = REACT_FRAGMENT_TYPE; exports.Lazy = REACT_LAZY_TYPE; @@ -97,7 +97,7 @@ exports.isElement = function (object) { return ( "object" === typeof object && null !== object && - object.$$typeof === REACT_ELEMENT_TYPE + object.$$typeof === REACT_LEGACY_ELEMENT_TYPE ); }; exports.isForwardRef = function (object) { diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 5b3b22d3eabd9..0a266b702550f 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -159,11 +159,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -6801,7 +6802,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -28639,7 +28644,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-classic-43b5b0ab'; +var ReactVersion = '19.0.0-www-classic-7d7660cc'; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index c5d6c97546544..1790f5daa128b 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -159,11 +159,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -6592,7 +6593,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -27905,7 +27910,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-modern-50d6f514'; +var ReactVersion = '19.0.0-www-modern-53ab3601'; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index 4271fa163f72f..684d3b443e2a4 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -1619,6 +1619,8 @@ module.exports = function ($$$config) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -11506,7 +11508,8 @@ module.exports = function ($$$config) { disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE, REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -12632,7 +12635,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-classic-1c6ccd17" + reconcilerVersion: "19.0.0-www-classic-fca253b5" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 7031ff2f0827d..5500418c9368e 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -1479,6 +1479,8 @@ module.exports = function ($$$config) { workInProgress.ref = returnFiber; } function throwOnInvalidObjectType(returnFiber, newChild) { + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) + throw Error(formatProdErrorMessage(525)); returnFiber = Object.prototype.toString.call(newChild); throw Error( formatProdErrorMessage( @@ -11036,7 +11038,8 @@ module.exports = function ($$$config) { disableDefaultPropsExceptForClasses = dynamicFeatureFlags.disableDefaultPropsExceptForClasses, enableNoCloningMemoCache = dynamicFeatureFlags.enableNoCloningMemoCache, - REACT_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), + REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE, REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), @@ -12149,7 +12152,7 @@ module.exports = function ($$$config) { scheduleRoot: null, setRefreshHandler: null, getCurrentFiber: null, - reconcilerVersion: "19.0.0-www-modern-41c33f0e" + reconcilerVersion: "19.0.0-www-modern-0b51321e" }; if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) devToolsConfig = !1; diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 43ca3a4fa08ed..1b1f6317e1aef 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -164,11 +164,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -5427,7 +5428,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -23101,7 +23106,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-classic-ad742ce9'; +var ReactVersion = '19.0.0-www-classic-05ee09c7'; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 465523c8983d9..adb178f9acd16 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -164,11 +164,12 @@ var HostHoistable = 26; var HostSingleton = 27; var IncompleteFunctionComponent = 28; -// ATTENTION // When adding new symbols to this file, // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols' // The Symbol used to tag the ReactElement-like types. -var REACT_ELEMENT_TYPE = Symbol.for('react.element'); + +var REACT_LEGACY_ELEMENT_TYPE = Symbol.for('react.element'); +var REACT_ELEMENT_TYPE = REACT_LEGACY_ELEMENT_TYPE; var REACT_PORTAL_TYPE = Symbol.for('react.portal'); var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'); var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'); @@ -5427,7 +5428,11 @@ function coerceRef(returnFiber, current, workInProgress, element) { } function throwOnInvalidObjectType(returnFiber, newChild) { - // $FlowFixMe[method-unbinding] + if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) { + throw new Error('A React Element from an older version of React was rendered. ' + 'This is not supported. It can happen if:\n' + '- Multiple copies of the "react" package is used.\n' + '- A library pre-bundled an old copy of "react" or "react/jsx-runtime".\n' + '- A compiler tries to "inline" JSX instead of using the runtime.'); + } // $FlowFixMe[method-unbinding] + + var childString = Object.prototype.toString.call(newChild); throw new Error("Objects are not valid as a React child (found: " + (childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.'); } @@ -23101,7 +23106,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition return root; } -var ReactVersion = '19.0.0-www-modern-ad742ce9'; +var ReactVersion = '19.0.0-www-modern-05ee09c7'; /* * The `'' + value` pattern (used in perf-sensitive code) throws for Symbol