@@ -596,16 +596,16 @@ __DEV__ &&
596
596
componentName = this . props . ref ;
597
597
return void 0 !== componentName ? componentName : null ;
598
598
}
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 ;
601
601
type = {
602
602
$$typeof : REACT_ELEMENT_TYPE ,
603
603
type : type ,
604
604
key : key ,
605
605
props : props ,
606
606
_owner : owner
607
607
} ;
608
- null !== ( void 0 !== _ref ? _ref : null )
608
+ null !== ( void 0 !== self ? self : null )
609
609
? Object . defineProperty ( type , "ref" , {
610
610
enumerable : ! 1 ,
611
611
get : elementRefGetterWithDeprecationWarning
@@ -706,8 +706,8 @@ __DEV__ &&
706
706
( checkKeyStringCoercion ( maybeKey ) , ( children = "" + maybeKey ) ) ;
707
707
hasValidKey ( config ) &&
708
708
( checkKeyStringCoercion ( config . key ) , ( children = "" + config . key ) ) ;
709
- hasValidRef ( config ) &&
710
- ( disableStringRefs ||
709
+ disableStringRefs ||
710
+ ( hasValidRef ( config ) &&
711
711
warnIfStringRefCannotBeAutoConverted ( config , self ) ) ;
712
712
if (
713
713
( ! enableFastJSXWithoutStringRefs && "ref" in config ) ||
@@ -731,26 +731,18 @@ __DEV__ &&
731
731
( maybeKey [ _propName2 ] = config [ _propName2 ] ) ;
732
732
}
733
733
children &&
734
- ( ( _propName2 =
734
+ defineKeyPropWarningGetter (
735
+ maybeKey ,
735
736
"function" === typeof type
736
737
? 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 ) ;
748
741
}
749
742
function cloneAndReplaceKey ( oldElement , newKey ) {
750
743
newKey = ReactElement (
751
744
oldElement . type ,
752
745
newKey ,
753
- null ,
754
746
void 0 ,
755
747
void 0 ,
756
748
oldElement . _owner ,
@@ -1601,15 +1593,7 @@ __DEV__ &&
1601
1593
for ( var i = 0 ; i < propName ; i ++ ) defaultProps [ i ] = arguments [ i + 2 ] ;
1602
1594
props . children = defaultProps ;
1603
1595
}
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 ) ;
1613
1597
for ( key = 2 ; key < arguments . length ; key ++ )
1614
1598
validateChildKeys ( arguments [ key ] , props . type ) ;
1615
1599
return props ;
@@ -1716,6 +1700,7 @@ __DEV__ &&
1716
1700
i
1717
1701
) ;
1718
1702
}
1703
+ var propName ;
1719
1704
i = { } ;
1720
1705
typeString = null ;
1721
1706
if ( null != config )
@@ -1726,8 +1711,8 @@ __DEV__ &&
1726
1711
warn (
1727
1712
"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"
1728
1713
) ) ,
1729
- hasValidRef ( config ) &&
1730
- ( disableStringRefs ||
1714
+ disableStringRefs ||
1715
+ ( hasValidRef ( config ) &&
1731
1716
warnIfStringRefCannotBeAutoConverted ( config , config . __self ) ) ,
1732
1717
hasValidKey ( config ) &&
1733
1718
( checkKeyStringCoercion ( config . key ) , ( typeString = "" + config . key ) ) ,
@@ -1754,22 +1739,14 @@ __DEV__ &&
1754
1739
if ( type && type . defaultProps )
1755
1740
for ( propName in ( ( childrenLength = type . defaultProps ) , childrenLength ) )
1756
1741
void 0 === i [ propName ] && ( i [ propName ] = childrenLength [ propName ] ) ;
1757
- if ( typeString ) {
1758
- var propName =
1742
+ typeString &&
1743
+ defineKeyPropWarningGetter (
1744
+ i ,
1759
1745
"function" === typeof type
1760
1746
? 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 ) ;
1773
1750
} ;
1774
1751
exports . createRef = function ( ) {
1775
1752
var refObject = { current : null } ;
@@ -2021,7 +1998,7 @@ __DEV__ &&
2021
1998
exports . useTransition = function ( ) {
2022
1999
return resolveDispatcher ( ) . useTransition ( ) ;
2023
2000
} ;
2024
- exports . version = "19.0.0-www-classic-ea3ac586-20241031 " ;
2001
+ exports . version = "19.0.0-www-classic-07aa4944-20241104 " ;
2025
2002
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2026
2003
"function" ===
2027
2004
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments