diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js index 211a1ee5b0c04..b53d085d8b92c 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.classic.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.classic.js @@ -509,8 +509,8 @@ __DEV__ && componentName = this.props.ref; return void 0 !== componentName ? componentName : null; } - function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; + function ReactElement(type, key, self, source, owner, props) { + self = props.ref; type = { $$typeof: REACT_ELEMENT_TYPE, type: type, @@ -518,7 +518,7 @@ __DEV__ && props: props, _owner: owner }; - null !== (void 0 !== _ref ? _ref : null) + null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", { enumerable: !1, get: elementRefGetterWithDeprecationWarning @@ -644,8 +644,8 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self)); if ( (!enableFastJSXWithoutStringRefs && "ref" in config) || @@ -669,20 +669,13 @@ __DEV__ && (maybeKey[_propName2] = config[_propName2]); } children && - ((_propName2 = + defineKeyPropWarningGetter( + maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type), - children && defineKeyPropWarningGetter(maybeKey, _propName2)); - return ReactElement( - type, - children, - null, - self, - source, - getOwner(), - maybeKey - ); + : type + ); + return ReactElement(type, children, self, source, getOwner(), maybeKey); } function validateChildKeys(node, parentType) { if ( diff --git a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js index a0f1fb98c3629..fcf0c21e96b09 100644 --- a/compiled/facebook-www/JSXDEVRuntime-dev.modern.js +++ b/compiled/facebook-www/JSXDEVRuntime-dev.modern.js @@ -506,8 +506,8 @@ __DEV__ && componentName = this.props.ref; return void 0 !== componentName ? componentName : null; } - function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; + function ReactElement(type, key, self, source, owner, props) { + self = props.ref; type = { $$typeof: REACT_ELEMENT_TYPE, type: type, @@ -515,7 +515,7 @@ __DEV__ && props: props, _owner: owner }; - null !== (void 0 !== _ref ? _ref : null) + null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", { enumerable: !1, get: elementRefGetterWithDeprecationWarning @@ -641,8 +641,8 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self)); if ( (!enableFastJSXWithoutStringRefs && "ref" in config) || @@ -666,20 +666,13 @@ __DEV__ && (maybeKey[_propName2] = config[_propName2]); } children && - ((_propName2 = + defineKeyPropWarningGetter( + maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type), - children && defineKeyPropWarningGetter(maybeKey, _propName2)); - return ReactElement( - type, - children, - null, - self, - source, - getOwner(), - maybeKey - ); + : type + ); + return ReactElement(type, children, self, source, getOwner(), maybeKey); } function validateChildKeys(node, parentType) { if ( diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index 3aa8be83a4c25..8bd586966f4a7 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -ea3ac586693014e882655728fc8396ecb1d6cf6e +07aa494432e97f63fca9faf2fad6f76fead31063 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index 3aa8be83a4c25..8bd586966f4a7 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -ea3ac586693014e882655728fc8396ecb1d6cf6e +07aa494432e97f63fca9faf2fad6f76fead31063 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index d1a7795c6db93..2e76822795015 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -596,8 +596,8 @@ __DEV__ && componentName = this.props.ref; return void 0 !== componentName ? componentName : null; } - function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; + function ReactElement(type, key, self, source, owner, props) { + self = props.ref; type = { $$typeof: REACT_ELEMENT_TYPE, type: type, @@ -605,7 +605,7 @@ __DEV__ && props: props, _owner: owner }; - null !== (void 0 !== _ref ? _ref : null) + null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", { enumerable: !1, get: elementRefGetterWithDeprecationWarning @@ -706,8 +706,8 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self)); if ( (!enableFastJSXWithoutStringRefs && "ref" in config) || @@ -731,26 +731,18 @@ __DEV__ && (maybeKey[_propName2] = config[_propName2]); } children && - ((_propName2 = + defineKeyPropWarningGetter( + maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type), - children && defineKeyPropWarningGetter(maybeKey, _propName2)); - return ReactElement( - type, - children, - null, - self, - source, - getOwner(), - maybeKey - ); + : type + ); + return ReactElement(type, children, self, source, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { newKey = ReactElement( oldElement.type, newKey, - null, void 0, void 0, oldElement._owner, @@ -1601,15 +1593,7 @@ __DEV__ && for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - props = ReactElement( - element.type, - key, - null, - void 0, - void 0, - owner, - props - ); + props = ReactElement(element.type, key, void 0, void 0, owner, props); for (key = 2; key < arguments.length; key++) validateChildKeys(arguments[key], props.type); return props; @@ -1716,6 +1700,7 @@ __DEV__ && i ); } + var propName; i = {}; typeString = null; if (null != config) @@ -1726,8 +1711,8 @@ __DEV__ && warn( "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" )), - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, config.__self)), hasValidKey(config) && (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), @@ -1754,22 +1739,14 @@ __DEV__ && if (type && type.defaultProps) for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === i[propName] && (i[propName] = childrenLength[propName]); - if (typeString) { - var propName = + typeString && + defineKeyPropWarningGetter( + i, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type; - typeString && defineKeyPropWarningGetter(i, propName); - } - return ReactElement( - type, - typeString, - null, - void 0, - void 0, - getOwner(), - i - ); + : type + ); + return ReactElement(type, typeString, void 0, void 0, getOwner(), i); }; exports.createRef = function () { var refObject = { current: null }; @@ -2021,7 +1998,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index 90e2e668af525..99f72a86de531 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -593,8 +593,8 @@ __DEV__ && componentName = this.props.ref; return void 0 !== componentName ? componentName : null; } - function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; + function ReactElement(type, key, self, source, owner, props) { + self = props.ref; type = { $$typeof: REACT_ELEMENT_TYPE, type: type, @@ -602,7 +602,7 @@ __DEV__ && props: props, _owner: owner }; - null !== (void 0 !== _ref ? _ref : null) + null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", { enumerable: !1, get: elementRefGetterWithDeprecationWarning @@ -703,8 +703,8 @@ __DEV__ && (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey)); hasValidKey(config) && (checkKeyStringCoercion(config.key), (children = "" + config.key)); - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self)); if ( (!enableFastJSXWithoutStringRefs && "ref" in config) || @@ -728,26 +728,18 @@ __DEV__ && (maybeKey[_propName2] = config[_propName2]); } children && - ((_propName2 = + defineKeyPropWarningGetter( + maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type), - children && defineKeyPropWarningGetter(maybeKey, _propName2)); - return ReactElement( - type, - children, - null, - self, - source, - getOwner(), - maybeKey - ); + : type + ); + return ReactElement(type, children, self, source, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { newKey = ReactElement( oldElement.type, newKey, - null, void 0, void 0, oldElement._owner, @@ -1581,15 +1573,7 @@ __DEV__ && for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - props = ReactElement( - element.type, - key, - null, - void 0, - void 0, - owner, - props - ); + props = ReactElement(element.type, key, void 0, void 0, owner, props); for (key = 2; key < arguments.length; key++) validateChildKeys(arguments[key], props.type); return props; @@ -1696,6 +1680,7 @@ __DEV__ && i ); } + var propName; i = {}; typeString = null; if (null != config) @@ -1706,8 +1691,8 @@ __DEV__ && warn( "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform" )), - hasValidRef(config) && - (disableStringRefs || + disableStringRefs || + (hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, config.__self)), hasValidKey(config) && (checkKeyStringCoercion(config.key), (typeString = "" + config.key)), @@ -1734,22 +1719,14 @@ __DEV__ && if (type && type.defaultProps) for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === i[propName] && (i[propName] = childrenLength[propName]); - if (typeString) { - var propName = + typeString && + defineKeyPropWarningGetter( + i, "function" === typeof type ? type.displayName || type.name || "Unknown" - : type; - typeString && defineKeyPropWarningGetter(i, propName); - } - return ReactElement( - type, - typeString, - null, - void 0, - void 0, - getOwner(), - i - ); + : type + ); + return ReactElement(type, typeString, void 0, void 0, getOwner(), i); }; exports.createRef = function () { var refObject = { current: null }; @@ -2001,7 +1978,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index dbc5ff223aba0..6bbc73db6c273 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -230,22 +230,22 @@ function getOwner() { } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); -function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; - _ref = void 0 !== _ref ? _ref : null; +function ReactElement(type, key, self, source, owner, props) { + self = props.ref; + self = void 0 !== self ? self : null; return disableStringRefs ? { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props } : { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props, _owner: owner }; @@ -272,13 +272,12 @@ function jsxProd(type, config, maybeKey) { void 0 === maybeKey[propName$1] && (maybeKey[propName$1] = config[propName$1]); } - return ReactElement(type, key, null, void 0, void 0, getOwner(), maybeKey); + return ReactElement(type, key, void 0, void 0, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { return ReactElement( oldElement.type, newKey, - null, void 0, void 0, disableStringRefs ? void 0 : oldElement._owner, @@ -646,7 +645,7 @@ exports.cloneElement = function (element, config, children) { for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - return ReactElement(element.type, key, null, void 0, void 0, owner, props); + return ReactElement(element.type, key, void 0, void 0, owner, props); }; exports.createContext = function (defaultValue) { defaultValue = { @@ -694,7 +693,7 @@ exports.createElement = function (type, config, children) { for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === props[propName] && (props[propName] = childrenLength[propName]); - return ReactElement(type, key, null, void 0, void 0, getOwner(), props); + return ReactElement(type, key, void 0, void 0, getOwner(), props); }; exports.createRef = function () { return { current: null }; @@ -824,4 +823,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index 0ff3cc551045b..90df4b7f04ba0 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -226,22 +226,22 @@ function getOwner() { } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); -function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; - _ref = void 0 !== _ref ? _ref : null; +function ReactElement(type, key, self, source, owner, props) { + self = props.ref; + self = void 0 !== self ? self : null; return disableStringRefs ? { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props } : { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props, _owner: owner }; @@ -268,13 +268,12 @@ function jsxProd(type, config, maybeKey) { void 0 === maybeKey[propName$1] && (maybeKey[propName$1] = config[propName$1]); } - return ReactElement(type, key, null, void 0, void 0, getOwner(), maybeKey); + return ReactElement(type, key, void 0, void 0, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { return ReactElement( oldElement.type, newKey, - null, void 0, void 0, disableStringRefs ? void 0 : oldElement._owner, @@ -642,7 +641,7 @@ exports.cloneElement = function (element, config, children) { for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - return ReactElement(element.type, key, null, void 0, void 0, owner, props); + return ReactElement(element.type, key, void 0, void 0, owner, props); }; exports.createContext = function (defaultValue) { defaultValue = { @@ -690,7 +689,7 @@ exports.createElement = function (type, config, children) { for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === props[propName] && (props[propName] = childrenLength[propName]); - return ReactElement(type, key, null, void 0, void 0, getOwner(), props); + return ReactElement(type, key, void 0, void 0, getOwner(), props); }; exports.createRef = function () { return { current: null }; @@ -820,4 +819,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 4f15ebafbe385..e96e4a8f42ae0 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -234,22 +234,22 @@ function getOwner() { } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); -function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; - _ref = void 0 !== _ref ? _ref : null; +function ReactElement(type, key, self, source, owner, props) { + self = props.ref; + self = void 0 !== self ? self : null; return disableStringRefs ? { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props } : { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props, _owner: owner }; @@ -276,13 +276,12 @@ function jsxProd(type, config, maybeKey) { void 0 === maybeKey[propName$1] && (maybeKey[propName$1] = config[propName$1]); } - return ReactElement(type, key, null, void 0, void 0, getOwner(), maybeKey); + return ReactElement(type, key, void 0, void 0, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { return ReactElement( oldElement.type, newKey, - null, void 0, void 0, disableStringRefs ? void 0 : oldElement._owner, @@ -650,7 +649,7 @@ exports.cloneElement = function (element, config, children) { for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - return ReactElement(element.type, key, null, void 0, void 0, owner, props); + return ReactElement(element.type, key, void 0, void 0, owner, props); }; exports.createContext = function (defaultValue) { defaultValue = { @@ -698,7 +697,7 @@ exports.createElement = function (type, config, children) { for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === props[propName] && (props[propName] = childrenLength[propName]); - return ReactElement(type, key, null, void 0, void 0, getOwner(), props); + return ReactElement(type, key, void 0, void 0, getOwner(), props); }; exports.createRef = function () { return { current: null }; @@ -828,7 +827,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; "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 5b51cf2f2ea86..9cd5308131d16 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -230,22 +230,22 @@ function getOwner() { } var didWarnAboutStringRefs; enableLogStringRefsProd && (didWarnAboutStringRefs = {}); -function ReactElement(type, key, _ref, self, source, owner, props) { - _ref = props.ref; - _ref = void 0 !== _ref ? _ref : null; +function ReactElement(type, key, self, source, owner, props) { + self = props.ref; + self = void 0 !== self ? self : null; return disableStringRefs ? { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props } : { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key, - ref: _ref, + ref: self, props: props, _owner: owner }; @@ -272,13 +272,12 @@ function jsxProd(type, config, maybeKey) { void 0 === maybeKey[propName$1] && (maybeKey[propName$1] = config[propName$1]); } - return ReactElement(type, key, null, void 0, void 0, getOwner(), maybeKey); + return ReactElement(type, key, void 0, void 0, getOwner(), maybeKey); } function cloneAndReplaceKey(oldElement, newKey) { return ReactElement( oldElement.type, newKey, - null, void 0, void 0, disableStringRefs ? void 0 : oldElement._owner, @@ -646,7 +645,7 @@ exports.cloneElement = function (element, config, children) { for (var i = 0; i < propName; i++) defaultProps[i] = arguments[i + 2]; props.children = defaultProps; } - return ReactElement(element.type, key, null, void 0, void 0, owner, props); + return ReactElement(element.type, key, void 0, void 0, owner, props); }; exports.createContext = function (defaultValue) { defaultValue = { @@ -694,7 +693,7 @@ exports.createElement = function (type, config, children) { for (propName in ((childrenLength = type.defaultProps), childrenLength)) void 0 === props[propName] && (props[propName] = childrenLength[propName]); - return ReactElement(type, key, null, void 0, void 0, getOwner(), props); + return ReactElement(type, key, void 0, void 0, getOwner(), props); }; exports.createRef = function () { return { current: null }; @@ -824,7 +823,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; "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 39e79d7eea98f..ca57bf92dc2b8 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -2848,9 +2848,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2999,18 +2999,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -3075,7 +3075,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3582,80 +3582,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3683,12 +3675,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3697,13 +3689,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3734,18 +3726,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3753,7 +3746,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3762,7 +3755,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3801,22 +3794,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -17063,11 +17053,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -17101,7 +17091,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 59aeda622b775..d772a0055fc60 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -2733,9 +2733,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2884,18 +2884,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2960,7 +2960,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3467,80 +3467,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3568,12 +3560,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3582,13 +3574,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3619,18 +3611,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3638,7 +3631,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3647,7 +3640,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3686,22 +3679,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -16506,11 +16496,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -16544,7 +16534,7 @@ __DEV__ && exports.Shape = Shape; exports.Surface = Surface; exports.Text = Text; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 804aa040f71ee..fa233b156bd7a 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -1777,9 +1777,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -1879,12 +1879,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -1892,9 +1892,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -1955,7 +1955,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2294,52 +2294,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -2348,15 +2350,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -2368,12 +2370,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -2382,19 +2381,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -2411,10 +2406,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -2444,17 +2438,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -10870,13 +10860,13 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1468 = { bundleType: 0, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1469 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10902,4 +10892,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index 0763416fe7136..0dba65a0ce05f 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -1616,9 +1616,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -1718,12 +1718,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -1731,9 +1731,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -1794,7 +1794,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2133,52 +2133,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -2187,15 +2189,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -2207,12 +2209,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -2221,19 +2220,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -2250,10 +2245,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -2283,17 +2277,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -10381,13 +10371,13 @@ var slice = Array.prototype.slice, })(React.Component); var internals$jscomp$inline_1461 = { bundleType: 0, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-art", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: function () { return null; }, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1462 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10413,4 +10403,4 @@ exports.RadialGradient = RadialGradient; exports.Shape = TYPES.SHAPE; exports.Surface = Surface; exports.Text = Text; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index b2cf94bc25f1e..a9eaccae08515 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -4602,9 +4602,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -4753,18 +4753,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -4829,7 +4829,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -5344,80 +5344,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -5445,12 +5437,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -5459,13 +5451,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -5496,18 +5488,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -5515,7 +5508,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -5524,7 +5517,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -5563,22 +5556,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -27821,11 +27811,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-ea3ac586-20241031" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-07aa4944-20241104" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-ea3ac586-20241031\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-07aa4944-20241104\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27869,11 +27859,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28526,7 +28516,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 062a61f74c498..e6c4fcb2d24af 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -4469,9 +4469,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -4620,18 +4620,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -4696,7 +4696,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -5211,80 +5211,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -5312,12 +5304,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -5326,13 +5318,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -5363,18 +5355,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -5382,7 +5375,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -5391,7 +5384,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -5430,22 +5423,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -26935,11 +26925,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-ea3ac586-20241031" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-07aa4944-20241104" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-ea3ac586-20241031\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-07aa4944-20241104\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -26982,11 +26972,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -27591,7 +27581,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index ecd63070c0785..8f65a029855bf 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -2538,9 +2538,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2640,12 +2640,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2653,9 +2653,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2716,7 +2716,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -3063,52 +3063,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -3117,15 +3119,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -3137,12 +3139,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3151,19 +3150,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3180,10 +3175,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3213,17 +3207,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -17457,14 +17447,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version; if ( - "19.0.0-www-classic-ea3ac586-20241031" !== + "19.0.0-www-classic-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1774 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1774, - "19.0.0-www-classic-ea3ac586-20241031" + "19.0.0-www-classic-07aa4944-20241104" ) ); function flushSyncFromReconciler(fn) { @@ -17509,11 +17499,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2288 = { bundleType: 0, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2289 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17969,4 +17959,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index b4ece09f2ac7e..0f314e5d8c462 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -2381,9 +2381,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2483,12 +2483,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2496,9 +2496,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2559,7 +2559,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2906,52 +2906,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -2960,15 +2962,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -2980,12 +2982,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -2994,19 +2993,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3023,10 +3018,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3056,17 +3050,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -16825,14 +16815,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version; if ( - "19.0.0-www-modern-ea3ac586-20241031" !== + "19.0.0-www-modern-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1745 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1745, - "19.0.0-www-modern-ea3ac586-20241031" + "19.0.0-www-modern-07aa4944-20241104" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -16850,11 +16840,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2280 = { bundleType: 0, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2281 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17217,4 +17207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index ba508182274ce..787da26f9677c 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -2706,9 +2706,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2808,12 +2808,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2821,9 +2821,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2884,7 +2884,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -3231,52 +3231,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -3285,15 +3287,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -3305,12 +3307,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3319,19 +3318,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3348,10 +3343,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3381,17 +3375,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -18182,14 +18172,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version; if ( - "19.0.0-www-classic-ea3ac586-20241031" !== + "19.0.0-www-classic-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1867 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1867, - "19.0.0-www-classic-ea3ac586-20241031" + "19.0.0-www-classic-07aa4944-20241104" ) ); function flushSyncFromReconciler(fn) { @@ -18234,11 +18224,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_1874 = { bundleType: 0, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; enableSchedulingProfiler && ((internals$jscomp$inline_1874.getLaneLabelMap = getLaneLabelMap), @@ -18697,7 +18687,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; "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 9850fb183c80f..750f4e12eb4b1 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -2549,9 +2549,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2651,12 +2651,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2664,9 +2664,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2727,7 +2727,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -3074,52 +3074,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -3128,15 +3130,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -3148,12 +3150,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3162,19 +3161,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3191,10 +3186,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3224,17 +3218,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -17533,14 +17523,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1838 = React.version; if ( - "19.0.0-www-modern-ea3ac586-20241031" !== + "19.0.0-www-modern-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1838 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1838, - "19.0.0-www-modern-ea3ac586-20241031" + "19.0.0-www-modern-07aa4944-20241104" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17558,11 +17548,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_1840 = { bundleType: 0, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; enableSchedulingProfiler && ((internals$jscomp$inline_1840.getLaneLabelMap = getLaneLabelMap), @@ -17928,7 +17918,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; "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 a266696281edd..19f9d5118c13c 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -5750,8 +5750,8 @@ __DEV__ && key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key, keyPath = [task.keyPath, name, keyOrIndex]; @@ -8991,5 +8991,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index b00c62001dfc3..874605d4a4e6f 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -5581,8 +5581,8 @@ __DEV__ && key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key, keyPath = [task.keyPath, name, keyOrIndex]; @@ -8809,5 +8809,5 @@ __DEV__ && 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 0490e597a202e..71d8904419915 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -4486,8 +4486,8 @@ function retryNode(request, task) { key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key; key = [task.keyPath, name, keyOrIndex]; @@ -5914,4 +5914,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-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index 83d8939034f09..f3924c599a526 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -4407,8 +4407,8 @@ function retryNode(request, task) { key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key; key = [task.keyPath, name, keyOrIndex]; @@ -5826,4 +5826,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-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index 7320e065ad72c..1578a4ae29791 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -5317,8 +5317,8 @@ __DEV__ && key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key, keyPath = [task.keyPath, name, keyOrIndex]; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js index 510e9dd17a0c2..ba44a55c89b8a 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-prod.modern.js @@ -4248,8 +4248,8 @@ function retryNode(request, task) { key = node.key, props = node.props; node = props.ref; - var ref = void 0 !== node ? node : null; - var name = getComponentNameFromType(type), + var ref = void 0 !== node ? node : null, + name = getComponentNameFromType(type), keyOrIndex = null == key ? (-1 === childIndex ? 0 : childIndex) : key; key = [task.keyPath, name, keyOrIndex]; diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index b3fad38261233..08bcbc0a08f9d 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -4643,9 +4643,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -4794,18 +4794,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -4870,7 +4870,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -5385,80 +5385,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -5486,12 +5478,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -5500,13 +5492,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -5537,18 +5529,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -5556,7 +5549,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -5565,7 +5558,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -5604,22 +5597,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -28155,11 +28145,11 @@ __DEV__ && : flushSyncErrorInBuildsThatSupportLegacyMode; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-classic-ea3ac586-20241031" !== isomorphicReactPackageVersion) + if ("19.0.0-www-classic-07aa4944-20241104" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-classic-ea3ac586-20241031\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-classic-07aa4944-20241104\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28203,11 +28193,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29026,5 +29016,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 8628a4c813684..e2a711ed58139 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -4510,9 +4510,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -4661,18 +4661,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -4737,7 +4737,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -5252,80 +5252,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -5353,12 +5345,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -5367,13 +5359,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -5404,18 +5396,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -5423,7 +5416,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -5432,7 +5425,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -5471,22 +5464,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -27269,11 +27259,11 @@ __DEV__ && return_targetInst = null; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-www-modern-ea3ac586-20241031" !== isomorphicReactPackageVersion) + if ("19.0.0-www-modern-07aa4944-20241104" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-www-modern-ea3ac586-20241031\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-www-modern-07aa4944-20241104\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -27316,11 +27306,11 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28091,5 +28081,5 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index b3791aead4eec..a39bec4d455e2 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -2624,9 +2624,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2726,12 +2726,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2739,9 +2739,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2802,7 +2802,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -3149,52 +3149,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -3203,15 +3205,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -3223,12 +3225,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3237,19 +3236,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3266,10 +3261,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3299,17 +3293,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -17786,14 +17776,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1804 = React.version; if ( - "19.0.0-www-classic-ea3ac586-20241031" !== + "19.0.0-www-classic-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1804 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1804, - "19.0.0-www-classic-ea3ac586-20241031" + "19.0.0-www-classic-07aa4944-20241104" ) ); function flushSyncFromReconciler(fn) { @@ -17838,11 +17828,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2323 = { bundleType: 0, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2324 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -18449,4 +18439,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-classic-ea3ac586-20241031"; +exports.version = "19.0.0-www-classic-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 639b806f9bf81..c5adf0280f0aa 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -2467,9 +2467,9 @@ function unwrapThenable(thenable) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } -function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; +function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2569,12 +2569,12 @@ function createChildReconciler(shouldTrackSideEffects) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -2582,9 +2582,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2645,7 +2645,7 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2992,52 +2992,54 @@ function createChildReconciler(shouldTrackSideEffects) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -3046,15 +3048,15 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -3066,12 +3068,9 @@ function createChildReconciler(shouldTrackSideEffects) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( - currentFirstChild, - newChild.children || [] - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.children || []); + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3080,19 +3079,15 @@ function createChildReconciler(shouldTrackSideEffects) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -3109,10 +3104,9 @@ function createChildReconciler(shouldTrackSideEffects) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) - throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -3142,17 +3136,13 @@ function createChildReconciler(shouldTrackSideEffects) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -17154,14 +17144,14 @@ function getCrossOriginStringAs(as, input) { } var isomorphicReactPackageVersion$jscomp$inline_1775 = React.version; if ( - "19.0.0-www-modern-ea3ac586-20241031" !== + "19.0.0-www-modern-07aa4944-20241104" !== isomorphicReactPackageVersion$jscomp$inline_1775 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_1775, - "19.0.0-www-modern-ea3ac586-20241031" + "19.0.0-www-modern-07aa4944-20241104" ) ); Internals.findDOMNode = function (componentOrElement) { @@ -17179,11 +17169,11 @@ Internals.Events = [ ]; var internals$jscomp$inline_2315 = { bundleType: 0, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2316 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17697,4 +17687,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-www-modern-ea3ac586-20241031"; +exports.version = "19.0.0-www-modern-07aa4944-20241104"; diff --git a/compiled/facebook-www/ReactReconciler-dev.classic.js b/compiled/facebook-www/ReactReconciler-dev.classic.js index 377636ba9f21d..e2a669ec4ea04 100644 --- a/compiled/facebook-www/ReactReconciler-dev.classic.js +++ b/compiled/facebook-www/ReactReconciler-dev.classic.js @@ -2974,9 +2974,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -3125,18 +3125,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -3201,7 +3201,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3716,80 +3716,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3817,12 +3809,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3831,13 +3823,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3868,18 +3860,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3887,7 +3880,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3896,7 +3889,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3935,22 +3928,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -19269,7 +19259,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-dev.modern.js b/compiled/facebook-www/ReactReconciler-dev.modern.js index 704dfa2daa870..35496d7a600ee 100644 --- a/compiled/facebook-www/ReactReconciler-dev.modern.js +++ b/compiled/facebook-www/ReactReconciler-dev.modern.js @@ -2873,9 +2873,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -3024,18 +3024,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -3100,7 +3100,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3615,80 +3615,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3716,12 +3708,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3730,13 +3722,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3767,18 +3759,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3786,7 +3779,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3795,7 +3788,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3834,22 +3827,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -18660,7 +18650,7 @@ __DEV__ && rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.classic.js b/compiled/facebook-www/ReactReconciler-prod.classic.js index c5bbdcf46ab3b..7043d3527c518 100644 --- a/compiled/facebook-www/ReactReconciler-prod.classic.js +++ b/compiled/facebook-www/ReactReconciler-prod.classic.js @@ -1686,9 +1686,9 @@ module.exports = function ($$$config) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -1789,12 +1789,12 @@ module.exports = function ($$$config) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -1802,9 +1802,9 @@ module.exports = function ($$$config) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -1865,7 +1865,7 @@ module.exports = function ($$$config) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2222,52 +2222,54 @@ module.exports = function ($$$config) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -2276,15 +2278,15 @@ module.exports = function ($$$config) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -2296,12 +2298,12 @@ module.exports = function ($$$config) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, newChild.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -2310,19 +2312,15 @@ module.exports = function ($$$config) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -2339,10 +2337,10 @@ module.exports = function ($$$config) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -2372,17 +2370,13 @@ module.exports = function ($$$config) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -12896,7 +12890,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactReconciler-prod.modern.js b/compiled/facebook-www/ReactReconciler-prod.modern.js index 506eb94e66b78..df9a1883230ff 100644 --- a/compiled/facebook-www/ReactReconciler-prod.modern.js +++ b/compiled/facebook-www/ReactReconciler-prod.modern.js @@ -1545,9 +1545,9 @@ module.exports = function ($$$config) { null === thenableState$1 && (thenableState$1 = []); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -1648,12 +1648,12 @@ module.exports = function ($$$config) { resolveLazy(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + current ); - lanes = createFiberFromTypeAndProps( + current = createFiberFromTypeAndProps( element.type, element.key, element.props, @@ -1661,9 +1661,9 @@ module.exports = function ($$$config) { returnFiber.mode, lanes ); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - return lanes; + coerceRef(current, element); + current.return = returnFiber; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -1724,7 +1724,7 @@ module.exports = function ($$$config) { returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), lanes ); @@ -2081,52 +2081,54 @@ module.exports = function ($$$config) { switch (newChild.$$typeof) { case REACT_ELEMENT_TYPE: a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber( + currentFirstChild, newChild.props.children ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } } else if ( - child.elementType === key || + currentFirstChild.elementType === key || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - resolveLazy(key) === child.type) + resolveLazy(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef(returnFiber, child, currentFirstChild, newChild); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling + ); + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromTypeAndProps( newChild.type, newChild.key, @@ -2135,15 +2137,15 @@ module.exports = function ($$$config) { returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = lanes)); } return placeSingleChild(returnFiber); case REACT_PORTAL_TYPE: a: { - for (child = newChild.key; null !== currentFirstChild; ) { - if (currentFirstChild.key === child) + for (key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) if ( 4 === currentFirstChild.tag && currentFirstChild.stateNode.containerInfo === @@ -2155,12 +2157,12 @@ module.exports = function ($$$config) { returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, newChild.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -2169,19 +2171,15 @@ module.exports = function ($$$config) { else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( - newChild, - returnFiber.mode, - lanes - ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes = createFiberFromPortal(newChild, returnFiber.mode, lanes); + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: return ( - (child = newChild._init), - (newChild = child(newChild._payload)), + (key = newChild._init), + (newChild = key(newChild._payload)), reconcileChildFibersImpl( returnFiber, currentFirstChild, @@ -2198,10 +2196,10 @@ module.exports = function ($$$config) { lanes ); if (getIteratorFn(newChild)) { - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error(formatProdErrorMessage(150)); - newChild = child.call(newChild); + newChild = key.call(newChild); return reconcileChildrenIterator( returnFiber, currentFirstChild, @@ -2231,17 +2229,13 @@ module.exports = function ($$$config) { ? ((newChild = "" + newChild), null !== currentFirstChild && 6 === currentFirstChild.tag ? (deleteRemainingChildren(returnFiber, currentFirstChild.sibling), - (currentFirstChild = useFiber(currentFirstChild, newChild)), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, newChild)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( - newChild, - returnFiber.mode, - lanes - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)), + (lanes = createFiberFromText(newChild, returnFiber.mode, lanes)), + (lanes.return = returnFiber), + (returnFiber = lanes)), placeSingleChild(returnFiber)) : deleteRemainingChildren(returnFiber, currentFirstChild); } @@ -12386,7 +12380,7 @@ module.exports = function ($$$config) { rendererPackageName: rendererPackageName, currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; null !== extraDevToolsConfig && (internals.rendererConfig = extraDevToolsConfig); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index b5c5e5b82432d..30ffc75c22d64 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -2519,9 +2519,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2670,18 +2670,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2746,7 +2746,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3253,80 +3253,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3354,12 +3346,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3368,13 +3360,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3405,18 +3397,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3424,7 +3417,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3433,7 +3426,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3472,22 +3465,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -14955,11 +14945,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-classic-ea3ac586-20241031", + version: "19.0.0-www-classic-07aa4944-20241104", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-classic-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-classic-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15094,5 +15084,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-classic-ea3ac586-20241031"; + exports.version = "19.0.0-www-classic-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 8083fea9b6f9f..f2f170397dca5 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -2519,9 +2519,9 @@ __DEV__ && null === thenableState$1 && (thenableState$1 = createThenableState()); return trackUsedThenable(thenableState$1, thenable, index); } - function coerceRef(returnFiber, current, workInProgress, element) { - returnFiber = element.props.ref; - workInProgress.ref = void 0 !== returnFiber ? returnFiber : null; + function coerceRef(workInProgress, element) { + element = element.props.ref; + workInProgress.ref = void 0 !== element ? element : null; } function throwOnInvalidObjectType(returnFiber, newChild) { if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) @@ -2670,18 +2670,18 @@ __DEV__ && callLazyInitInDEV(elementType) === current.type)) ) return ( - (lanes = useFiber(current, element.props)), - coerceRef(returnFiber, current, lanes, element), - (lanes.return = returnFiber), - (lanes._debugOwner = element._owner), - (lanes._debugInfo = currentDebugInfo), - lanes + (current = useFiber(current, element.props)), + coerceRef(current, element), + (current.return = returnFiber), + (current._debugOwner = element._owner), + (current._debugInfo = currentDebugInfo), + current ); - lanes = createFiberFromElement(element, returnFiber.mode, lanes); - coerceRef(returnFiber, current, lanes, element); - lanes.return = returnFiber; - lanes._debugInfo = currentDebugInfo; - return lanes; + current = createFiberFromElement(element, returnFiber.mode, lanes); + coerceRef(current, element); + current.return = returnFiber; + current._debugInfo = currentDebugInfo; + return current; } function updatePortal(returnFiber, current, portal, lanes) { if ( @@ -2746,7 +2746,7 @@ __DEV__ && returnFiber.mode, lanes )), - coerceRef(returnFiber, null, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (returnFiber = pushDebugInfo(newChild._debugInfo)), (lanes._debugInfo = currentDebugInfo), @@ -3253,80 +3253,72 @@ __DEV__ && case REACT_ELEMENT_TYPE: var prevDebugInfo = pushDebugInfo(newChild._debugInfo); a: { - for ( - var key = newChild.key, child = currentFirstChild; - null !== child; - - ) { - if (child.key === key) { + for (var key = newChild.key; null !== currentFirstChild; ) { + if (currentFirstChild.key === key) { key = newChild.type; if (key === REACT_FRAGMENT_TYPE) { - if (7 === child.tag) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber( - child, - newChild.props.children + if (7 === currentFirstChild.tag) { + deleteRemainingChildren( + returnFiber, + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - validateFragmentProps( - newChild, + lanes = useFiber( currentFirstChild, - returnFiber + newChild.props.children ); - returnFiber = currentFirstChild; + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + validateFragmentProps(newChild, lanes, returnFiber); + returnFiber = lanes; break a; } } else if ( - child.elementType === key || - isCompatibleFamilyForHotReloading(child, newChild) || + currentFirstChild.elementType === key || + isCompatibleFamilyForHotReloading( + currentFirstChild, + newChild + ) || ("object" === typeof key && null !== key && key.$$typeof === REACT_LAZY_TYPE && - callLazyInitInDEV(key) === child.type) + callLazyInitInDEV(key) === currentFirstChild.type) ) { - deleteRemainingChildren(returnFiber, child.sibling); - currentFirstChild = useFiber(child, newChild.props); - coerceRef( + deleteRemainingChildren( returnFiber, - child, - currentFirstChild, - newChild + currentFirstChild.sibling ); - currentFirstChild.return = returnFiber; - currentFirstChild._debugOwner = newChild._owner; - currentFirstChild._debugInfo = currentDebugInfo; - returnFiber = currentFirstChild; + lanes = useFiber(currentFirstChild, newChild.props); + coerceRef(lanes, newChild); + lanes.return = returnFiber; + lanes._debugOwner = newChild._owner; + lanes._debugInfo = currentDebugInfo; + returnFiber = lanes; break a; } - deleteRemainingChildren(returnFiber, child); + deleteRemainingChildren(returnFiber, currentFirstChild); break; - } else deleteChild(returnFiber, child); - child = child.sibling; + } else deleteChild(returnFiber, currentFirstChild); + currentFirstChild = currentFirstChild.sibling; } newChild.type === REACT_FRAGMENT_TYPE - ? ((currentFirstChild = createFiberFromFragment( + ? ((lanes = createFiberFromFragment( newChild.props.children, returnFiber.mode, lanes, newChild.key )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - validateFragmentProps( - newChild, - currentFirstChild, - returnFiber - ), - (returnFiber = currentFirstChild)) + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + validateFragmentProps(newChild, lanes, returnFiber), + (returnFiber = lanes)) : ((lanes = createFiberFromElement( newChild, returnFiber.mode, lanes )), - coerceRef(returnFiber, currentFirstChild, lanes, newChild), + coerceRef(lanes, newChild), (lanes.return = returnFiber), (lanes._debugInfo = currentDebugInfo), (returnFiber = lanes)); @@ -3354,12 +3346,12 @@ __DEV__ && returnFiber, currentFirstChild.sibling ); - currentFirstChild = useFiber( + lanes = useFiber( currentFirstChild, prevDebugInfo.children || [] ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; break a; } else { deleteRemainingChildren(returnFiber, currentFirstChild); @@ -3368,13 +3360,13 @@ __DEV__ && else deleteChild(returnFiber, currentFirstChild); currentFirstChild = currentFirstChild.sibling; } - currentFirstChild = createFiberFromPortal( + lanes = createFiberFromPortal( prevDebugInfo, returnFiber.mode, lanes ); - currentFirstChild.return = returnFiber; - returnFiber = currentFirstChild; + lanes.return = returnFiber; + returnFiber = lanes; } return placeSingleChild(returnFiber); case REACT_LAZY_TYPE: @@ -3405,18 +3397,19 @@ __DEV__ && ); if (getIteratorFn(newChild)) { prevDebugInfo = pushDebugInfo(newChild._debugInfo); - child = getIteratorFn(newChild); - if ("function" !== typeof child) + key = getIteratorFn(newChild); + if ("function" !== typeof key) throw Error( "An object is not an iterable. This error is likely caused by a bug in React. Please file an issue." ); - key = child.call(newChild); - if (key === newChild) { + var newChildren = key.call(newChild); + if (newChildren === newChild) { if ( 0 !== returnFiber.tag || "[object GeneratorFunction]" !== Object.prototype.toString.call(returnFiber.type) || - "[object Generator]" !== Object.prototype.toString.call(key) + "[object Generator]" !== + Object.prototype.toString.call(newChildren) ) didWarnAboutGenerators || error$jscomp$0( @@ -3424,7 +3417,7 @@ __DEV__ && ), (didWarnAboutGenerators = !0); } else - newChild.entries !== child || + newChild.entries !== key || didWarnAboutMaps || (error$jscomp$0( "Using Maps as children is not supported. Use an array of keyed ReactElements instead." @@ -3433,7 +3426,7 @@ __DEV__ && returnFiber = reconcileChildrenIterator( returnFiber, currentFirstChild, - key, + newChildren, lanes ); currentDebugInfo = prevDebugInfo; @@ -3472,22 +3465,19 @@ __DEV__ && returnFiber, currentFirstChild.sibling ), - (currentFirstChild = useFiber( - currentFirstChild, - prevDebugInfo - )), - (currentFirstChild.return = returnFiber), - (returnFiber = currentFirstChild)) + (lanes = useFiber(currentFirstChild, prevDebugInfo)), + (lanes.return = returnFiber), + (returnFiber = lanes)) : (deleteRemainingChildren(returnFiber, currentFirstChild), - (currentFirstChild = createFiberFromText( + (lanes = createFiberFromText( prevDebugInfo, returnFiber.mode, lanes )), - (currentFirstChild.return = returnFiber), - (currentFirstChild._debugOwner = returnFiber), - (currentFirstChild._debugInfo = currentDebugInfo), - (returnFiber = currentFirstChild)), + (lanes.return = returnFiber), + (lanes._debugOwner = returnFiber), + (lanes._debugInfo = currentDebugInfo), + (returnFiber = lanes)), placeSingleChild(returnFiber) ); "function" === typeof newChild && @@ -14955,11 +14945,11 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.0.0-www-modern-ea3ac586-20241031", + version: "19.0.0-www-modern-07aa4944-20241104", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getInstanceFromNode, - reconcilerVersion: "19.0.0-www-modern-ea3ac586-20241031" + reconcilerVersion: "19.0.0-www-modern-07aa4944-20241104" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15094,5 +15084,5 @@ __DEV__ && exports.unstable_batchedUpdates = function (fn, a) { return fn(a); }; - exports.version = "19.0.0-www-modern-ea3ac586-20241031"; + exports.version = "19.0.0-www-modern-07aa4944-20241104"; })(); diff --git a/compiled/facebook-www/VERSION_CLASSIC b/compiled/facebook-www/VERSION_CLASSIC index eca9b5ee3578a..7e0ef99197028 100644 --- a/compiled/facebook-www/VERSION_CLASSIC +++ b/compiled/facebook-www/VERSION_CLASSIC @@ -1 +1 @@ -19.0.0-www-classic-ea3ac586-20241031 \ No newline at end of file +19.0.0-www-classic-07aa4944-20241104 \ No newline at end of file diff --git a/compiled/facebook-www/VERSION_MODERN b/compiled/facebook-www/VERSION_MODERN index ee77af6d53af4..7a6a2596402fd 100644 --- a/compiled/facebook-www/VERSION_MODERN +++ b/compiled/facebook-www/VERSION_MODERN @@ -1 +1 @@ -19.0.0-www-modern-ea3ac586-20241031 \ No newline at end of file +19.0.0-www-modern-07aa4944-20241104 \ No newline at end of file diff --git a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js index 096df7d3cb773..5f2a55870324d 100644 --- a/compiled/facebook-www/__test_utils__/ReactAllWarnings.js +++ b/compiled/facebook-www/__test_utils__/ReactAllWarnings.js @@ -60,7 +60,6 @@ export default [ "%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.", "%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.", "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", - "%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", "%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", "%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", "%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", @@ -164,7 +163,6 @@ export default [ "Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.", "Failed to serialize an action for progressive enhancement:\n%s", "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.", - "Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s", "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.", "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n <%s>{%s}", "Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.\n root.render(%s)", @@ -183,7 +181,6 @@ export default [ "Invalid DOM property `%s`. Did you mean `%s`?", "Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", "Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props", - "Invalid attribute `ref` supplied to `React.Fragment`.", "Invalid attribute name: `%s`", "Invalid event handler property `%s`. Did you mean `%s`?", "Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",