@@ -596,16 +596,16 @@ __DEV__ &&
596596 componentName = this . props . ref ;
597597 return void 0 !== componentName ? componentName : null ;
598598 }
599- function ReactElement ( type , key , _ref , self , source , owner , props ) {
600- _ref = props . ref ;
599+ function ReactElement ( type , key , self , source , owner , props ) {
600+ self = props . ref ;
601601 type = {
602602 $$typeof : REACT_ELEMENT_TYPE ,
603603 type : type ,
604604 key : key ,
605605 props : props ,
606606 _owner : owner
607607 } ;
608- null !== ( void 0 !== _ref ? _ref : null )
608+ null !== ( void 0 !== self ? self : null )
609609 ? Object . defineProperty ( type , "ref" , {
610610 enumerable : ! 1 ,
611611 get : elementRefGetterWithDeprecationWarning
@@ -706,8 +706,8 @@ __DEV__ &&
706706 ( checkKeyStringCoercion ( maybeKey ) , ( children = "" + maybeKey ) ) ;
707707 hasValidKey ( config ) &&
708708 ( checkKeyStringCoercion ( config . key ) , ( children = "" + config . key ) ) ;
709- hasValidRef ( config ) &&
710- ( disableStringRefs ||
709+ disableStringRefs ||
710+ ( hasValidRef ( config ) &&
711711 warnIfStringRefCannotBeAutoConverted ( config , self ) ) ;
712712 if (
713713 ( ! enableFastJSXWithoutStringRefs && "ref" in config ) ||
@@ -731,26 +731,18 @@ __DEV__ &&
731731 ( maybeKey [ _propName2 ] = config [ _propName2 ] ) ;
732732 }
733733 children &&
734- ( ( _propName2 =
734+ defineKeyPropWarningGetter (
735+ maybeKey ,
735736 "function" === typeof type
736737 ? type . displayName || type . name || "Unknown"
737- : type ) ,
738- children && defineKeyPropWarningGetter ( maybeKey , _propName2 ) ) ;
739- return ReactElement (
740- type ,
741- children ,
742- null ,
743- self ,
744- source ,
745- getOwner ( ) ,
746- maybeKey
747- ) ;
738+ : type
739+ ) ;
740+ return ReactElement ( type , children , self , source , getOwner ( ) , maybeKey ) ;
748741 }
749742 function cloneAndReplaceKey ( oldElement , newKey ) {
750743 newKey = ReactElement (
751744 oldElement . type ,
752745 newKey ,
753- null ,
754746 void 0 ,
755747 void 0 ,
756748 oldElement . _owner ,
@@ -1601,15 +1593,7 @@ __DEV__ &&
16011593 for ( var i = 0 ; i < propName ; i ++ ) defaultProps [ i ] = arguments [ i + 2 ] ;
16021594 props . children = defaultProps ;
16031595 }
1604- props = ReactElement (
1605- element . type ,
1606- key ,
1607- null ,
1608- void 0 ,
1609- void 0 ,
1610- owner ,
1611- props
1612- ) ;
1596+ props = ReactElement ( element . type , key , void 0 , void 0 , owner , props ) ;
16131597 for ( key = 2 ; key < arguments . length ; key ++ )
16141598 validateChildKeys ( arguments [ key ] , props . type ) ;
16151599 return props ;
@@ -1716,6 +1700,7 @@ __DEV__ &&
17161700 i
17171701 ) ;
17181702 }
1703+ var propName ;
17191704 i = { } ;
17201705 typeString = null ;
17211706 if ( null != config )
@@ -1726,8 +1711,8 @@ __DEV__ &&
17261711 warn (
17271712 "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"
17281713 ) ) ,
1729- hasValidRef ( config ) &&
1730- ( disableStringRefs ||
1714+ disableStringRefs ||
1715+ ( hasValidRef ( config ) &&
17311716 warnIfStringRefCannotBeAutoConverted ( config , config . __self ) ) ,
17321717 hasValidKey ( config ) &&
17331718 ( checkKeyStringCoercion ( config . key ) , ( typeString = "" + config . key ) ) ,
@@ -1754,22 +1739,14 @@ __DEV__ &&
17541739 if ( type && type . defaultProps )
17551740 for ( propName in ( ( childrenLength = type . defaultProps ) , childrenLength ) )
17561741 void 0 === i [ propName ] && ( i [ propName ] = childrenLength [ propName ] ) ;
1757- if ( typeString ) {
1758- var propName =
1742+ typeString &&
1743+ defineKeyPropWarningGetter (
1744+ i ,
17591745 "function" === typeof type
17601746 ? type . displayName || type . name || "Unknown"
1761- : type ;
1762- typeString && defineKeyPropWarningGetter ( i , propName ) ;
1763- }
1764- return ReactElement (
1765- type ,
1766- typeString ,
1767- null ,
1768- void 0 ,
1769- void 0 ,
1770- getOwner ( ) ,
1771- i
1772- ) ;
1747+ : type
1748+ ) ;
1749+ return ReactElement ( type , typeString , void 0 , void 0 , getOwner ( ) , i ) ;
17731750 } ;
17741751 exports . createRef = function ( ) {
17751752 var refObject = { current : null } ;
@@ -2021,7 +1998,7 @@ __DEV__ &&
20211998 exports . useTransition = function ( ) {
20221999 return resolveDispatcher ( ) . useTransition ( ) ;
20232000 } ;
2024- exports . version = "19.0.0-www-classic-ea3ac586-20241031 " ;
2001+ exports . version = "19.0.0-www-classic-07aa4944-20241104 " ;
20252002 "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20262003 "function" ===
20272004 typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments