@@ -105,41 +105,13 @@ function printWarning(level, format, args) {
105
105
// Re-export dynamic flags from the www version.
106
106
var dynamicFeatureFlags = require ( "ReactFeatureFlags" ) ;
107
107
108
- var disableInputAttributeSyncing =
109
- dynamicFeatureFlags . disableInputAttributeSyncing ,
110
- enableTrustedTypesIntegration =
111
- dynamicFeatureFlags . enableTrustedTypesIntegration ,
112
- disableSchedulerTimeoutBasedOnReactExpirationTime =
113
- dynamicFeatureFlags . disableSchedulerTimeoutBasedOnReactExpirationTime ,
114
- replayFailedUnitOfWorkWithInvokeGuardedCallback =
115
- dynamicFeatureFlags . replayFailedUnitOfWorkWithInvokeGuardedCallback ,
116
- enableFilterEmptyStringAttributesDOM =
117
- dynamicFeatureFlags . enableFilterEmptyStringAttributesDOM ,
118
- enableLegacyFBSupport = dynamicFeatureFlags . enableLegacyFBSupport ,
119
- deferRenderPhaseUpdateToNextBatch =
120
- dynamicFeatureFlags . deferRenderPhaseUpdateToNextBatch ,
121
- enableDebugTracing = dynamicFeatureFlags . enableDebugTracing ,
122
- skipUnmountedBoundaries = dynamicFeatureFlags . skipUnmountedBoundaries ,
123
- enableUseRefAccessWarning = dynamicFeatureFlags . enableUseRefAccessWarning ,
108
+ var enableDebugTracing = dynamicFeatureFlags . enableDebugTracing ,
124
109
disableNativeComponentFrames =
125
110
dynamicFeatureFlags . disableNativeComponentFrames ,
126
- disableSchedulerTimeoutInWorkLoop =
127
- dynamicFeatureFlags . disableSchedulerTimeoutInWorkLoop ,
128
- enableLazyContextPropagation =
129
- dynamicFeatureFlags . enableLazyContextPropagation ,
130
- enableSyncDefaultUpdates = dynamicFeatureFlags . enableSyncDefaultUpdates ,
131
- enableUnifiedSyncLane = dynamicFeatureFlags . enableUnifiedSyncLane ,
132
- enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay =
133
- dynamicFeatureFlags . enableCapturePhaseSelectiveHydrationWithoutDiscreteEventReplay ,
134
- enableTransitionTracing = dynamicFeatureFlags . enableTransitionTracing ,
135
- enableCustomElementPropertySupport =
136
- dynamicFeatureFlags . enableCustomElementPropertySupport ; // On WWW, false is used for a new modern build.
137
- var enableProfilerNestedUpdateScheduledHook =
138
- dynamicFeatureFlags . enableProfilerNestedUpdateScheduledHook ;
139
-
140
- var enableSchedulingProfiler = dynamicFeatureFlags . enableSchedulingProfiler ; // Note: we'll want to remove this when we to userland implementation.
111
+ enableTransitionTracing = dynamicFeatureFlags . enableTransitionTracing ;
112
+ // On WWW, false is used for a new modern build.
141
113
142
- var REACT_CLIENT_REFERENCE = Symbol . for ( "react.client.reference" ) ;
114
+ var REACT_CLIENT_REFERENCE$1 = Symbol . for ( "react.client.reference" ) ;
143
115
function isValidElementType ( type ) {
144
116
if ( typeof type === "string" || typeof type === "function" ) {
145
117
return true ;
@@ -171,7 +143,7 @@ function isValidElementType(type) {
171
143
// types supported by any Flight configuration anywhere since
172
144
// we don't know which Flight build this will end up being used
173
145
// with.
174
- type . $$typeof === REACT_CLIENT_REFERENCE ||
146
+ type . $$typeof === REACT_CLIENT_REFERENCE$1 ||
175
147
type . getModuleId !== undefined
176
148
) {
177
149
return true ;
@@ -649,9 +621,9 @@ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
649
621
var hasOwnProperty = Object . prototype . hasOwnProperty ;
650
622
651
623
var loggedTypeFailures = { } ;
652
- var ReactDebugCurrentFrame = ReactSharedInternals . ReactDebugCurrentFrame ;
624
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals . ReactDebugCurrentFrame ;
653
625
654
- function setCurrentlyValidatingElement ( element ) {
626
+ function setCurrentlyValidatingElement$1 ( element ) {
655
627
{
656
628
if ( element ) {
657
629
var owner = element . _owner ;
@@ -660,9 +632,9 @@ function setCurrentlyValidatingElement(element) {
660
632
element . _source ,
661
633
owner ? owner . type : null
662
634
) ;
663
- ReactDebugCurrentFrame . setExtraStackFrame ( stack ) ;
635
+ ReactDebugCurrentFrame$1 . setExtraStackFrame ( stack ) ;
664
636
} else {
665
- ReactDebugCurrentFrame . setExtraStackFrame ( null ) ;
637
+ ReactDebugCurrentFrame$1 . setExtraStackFrame ( null ) ;
666
638
}
667
639
}
668
640
}
@@ -712,7 +684,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
712
684
}
713
685
714
686
if ( error$1 && ! ( error$1 instanceof Error ) ) {
715
- setCurrentlyValidatingElement ( element ) ;
687
+ setCurrentlyValidatingElement$1 ( element ) ;
716
688
717
689
error (
718
690
"%s: type specification of %s" +
@@ -727,7 +699,7 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
727
699
typeof error$1
728
700
) ;
729
701
730
- setCurrentlyValidatingElement ( null ) ;
702
+ setCurrentlyValidatingElement$1 ( null ) ;
731
703
}
732
704
733
705
if (
@@ -737,11 +709,11 @@ function checkPropTypes(typeSpecs, values, location, componentName, element) {
737
709
// Only monitor this failure once because there tends to be a lot of the
738
710
// same error.
739
711
loggedTypeFailures [ error$1 . message ] = true ;
740
- setCurrentlyValidatingElement ( element ) ;
712
+ setCurrentlyValidatingElement$1 ( element ) ;
741
713
742
714
error ( "Failed %s type: %s" , location , error$1 . message ) ;
743
715
744
- setCurrentlyValidatingElement ( null ) ;
716
+ setCurrentlyValidatingElement$1 ( null ) ;
745
717
}
746
718
}
747
719
}
@@ -828,7 +800,7 @@ function checkKeyStringCoercion(value) {
828
800
}
829
801
}
830
802
831
- var ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ;
803
+ var ReactCurrentOwner$1 = ReactSharedInternals . ReactCurrentOwner ;
832
804
var RESERVED_PROPS = {
833
805
key : true ,
834
806
ref : true ,
@@ -875,12 +847,12 @@ function warnIfStringRefCannotBeAutoConverted(config, self) {
875
847
{
876
848
if (
877
849
typeof config . ref === "string" &&
878
- ReactCurrentOwner . current &&
850
+ ReactCurrentOwner$1 . current &&
879
851
self &&
880
- ReactCurrentOwner . current . stateNode !== self
852
+ ReactCurrentOwner$1 . current . stateNode !== self
881
853
) {
882
854
var componentName = getComponentNameFromType (
883
- ReactCurrentOwner . current . type
855
+ ReactCurrentOwner$1 . current . type
884
856
) ;
885
857
886
858
if ( ! didWarnAboutStringRefs [ componentName ] ) {
@@ -891,7 +863,7 @@ function warnIfStringRefCannotBeAutoConverted(config, self) {
891
863
"We ask you to manually fix this case by using useRef() or createRef() instead. " +
892
864
"Learn more about using refs safely here: " +
893
865
"https://reactjs.org/link/strict-mode-string-ref" ,
894
- getComponentNameFromType ( ReactCurrentOwner . current . type ) ,
866
+ getComponentNameFromType ( ReactCurrentOwner$1 . current . type ) ,
895
867
config . ref
896
868
) ;
897
869
@@ -1029,7 +1001,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) {
1029
1001
* @param {string } key
1030
1002
*/
1031
1003
1032
- function jsxDEV ( type , config , maybeKey , source , self ) {
1004
+ function jsxDEV$1 ( type , config , maybeKey , source , self ) {
1033
1005
{
1034
1006
var propName ; // Reserved names are extracted
1035
1007
@@ -1103,17 +1075,17 @@ function jsxDEV(type, config, maybeKey, source, self) {
1103
1075
ref ,
1104
1076
self ,
1105
1077
source ,
1106
- ReactCurrentOwner . current ,
1078
+ ReactCurrentOwner$1 . current ,
1107
1079
props
1108
1080
) ;
1109
1081
}
1110
1082
}
1111
1083
1112
- var ReactCurrentOwner$1 = ReactSharedInternals . ReactCurrentOwner ;
1113
- var ReactDebugCurrentFrame$1 = ReactSharedInternals . ReactDebugCurrentFrame ;
1114
- var REACT_CLIENT_REFERENCE$1 = Symbol . for ( "react.client.reference" ) ;
1084
+ var ReactCurrentOwner = ReactSharedInternals . ReactCurrentOwner ;
1085
+ var ReactDebugCurrentFrame = ReactSharedInternals . ReactDebugCurrentFrame ;
1086
+ var REACT_CLIENT_REFERENCE = Symbol . for ( "react.client.reference" ) ;
1115
1087
1116
- function setCurrentlyValidatingElement$1 ( element ) {
1088
+ function setCurrentlyValidatingElement ( element ) {
1117
1089
{
1118
1090
if ( element ) {
1119
1091
var owner = element . _owner ;
@@ -1122,9 +1094,9 @@ function setCurrentlyValidatingElement$1(element) {
1122
1094
element . _source ,
1123
1095
owner ? owner . type : null
1124
1096
) ;
1125
- ReactDebugCurrentFrame$1 . setExtraStackFrame ( stack ) ;
1097
+ ReactDebugCurrentFrame . setExtraStackFrame ( stack ) ;
1126
1098
} else {
1127
- ReactDebugCurrentFrame$1 . setExtraStackFrame ( null ) ;
1099
+ ReactDebugCurrentFrame . setExtraStackFrame ( null ) ;
1128
1100
}
1129
1101
}
1130
1102
}
@@ -1154,8 +1126,8 @@ function isValidElement(object) {
1154
1126
1155
1127
function getDeclarationErrorAddendum ( ) {
1156
1128
{
1157
- if ( ReactCurrentOwner$1 . current ) {
1158
- var name = getComponentNameFromType ( ReactCurrentOwner$1 . current . type ) ;
1129
+ if ( ReactCurrentOwner . current ) {
1130
+ var name = getComponentNameFromType ( ReactCurrentOwner . current . type ) ;
1159
1131
1160
1132
if ( name ) {
1161
1133
return "\n\nCheck the render method of `" + name + "`." ;
@@ -1238,7 +1210,7 @@ function validateExplicitKey(element, parentType) {
1238
1210
if (
1239
1211
element &&
1240
1212
element . _owner &&
1241
- element . _owner !== ReactCurrentOwner$1 . current
1213
+ element . _owner !== ReactCurrentOwner . current
1242
1214
) {
1243
1215
// Give the component that originally created this child.
1244
1216
childOwner =
@@ -1247,7 +1219,7 @@ function validateExplicitKey(element, parentType) {
1247
1219
"." ;
1248
1220
}
1249
1221
1250
- setCurrentlyValidatingElement$1 ( element ) ;
1222
+ setCurrentlyValidatingElement ( element ) ;
1251
1223
1252
1224
error (
1253
1225
'Each child in a list should have a unique "key" prop.' +
@@ -1256,7 +1228,7 @@ function validateExplicitKey(element, parentType) {
1256
1228
childOwner
1257
1229
) ;
1258
1230
1259
- setCurrentlyValidatingElement$1 ( null ) ;
1231
+ setCurrentlyValidatingElement ( null ) ;
1260
1232
}
1261
1233
}
1262
1234
/**
@@ -1275,7 +1247,7 @@ function validateChildKeys(node, parentType) {
1275
1247
return ;
1276
1248
}
1277
1249
1278
- if ( node . $$typeof === REACT_CLIENT_REFERENCE$1 ) ;
1250
+ if ( node . $$typeof === REACT_CLIENT_REFERENCE ) ;
1279
1251
else if ( isArray ( node ) ) {
1280
1252
for ( var i = 0 ; i < node . length ; i ++ ) {
1281
1253
var child = node [ i ] ;
@@ -1324,7 +1296,7 @@ function validatePropTypes(element) {
1324
1296
return ;
1325
1297
}
1326
1298
1327
- if ( type . $$typeof === REACT_CLIENT_REFERENCE$1 ) {
1299
+ if ( type . $$typeof === REACT_CLIENT_REFERENCE ) {
1328
1300
return ;
1329
1301
}
1330
1302
@@ -1382,25 +1354,25 @@ function validateFragmentProps(fragment) {
1382
1354
var key = keys [ i ] ;
1383
1355
1384
1356
if ( key !== "children" && key !== "key" ) {
1385
- setCurrentlyValidatingElement$1 ( fragment ) ;
1357
+ setCurrentlyValidatingElement ( fragment ) ;
1386
1358
1387
1359
error (
1388
1360
"Invalid prop `%s` supplied to `React.Fragment`. " +
1389
1361
"React.Fragment can only have `key` and `children` props." ,
1390
1362
key
1391
1363
) ;
1392
1364
1393
- setCurrentlyValidatingElement$1 ( null ) ;
1365
+ setCurrentlyValidatingElement ( null ) ;
1394
1366
break ;
1395
1367
}
1396
1368
}
1397
1369
1398
1370
if ( fragment . ref !== null ) {
1399
- setCurrentlyValidatingElement$1 ( fragment ) ;
1371
+ setCurrentlyValidatingElement ( fragment ) ;
1400
1372
1401
1373
error ( "Invalid attribute `ref` supplied to `React.Fragment`." ) ;
1402
1374
1403
- setCurrentlyValidatingElement$1 ( null ) ;
1375
+ setCurrentlyValidatingElement ( null ) ;
1404
1376
}
1405
1377
}
1406
1378
}
@@ -1457,7 +1429,7 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1457
1429
) ;
1458
1430
}
1459
1431
1460
- var element = jsxDEV ( type , props , key , source , self ) ; // The result can be nullish if a mock or a custom function is used.
1432
+ var element = jsxDEV$1 ( type , props , key , source , self ) ; // The result can be nullish if a mock or a custom function is used.
1461
1433
// TODO: Drop this when these are no longer allowed as the type argument.
1462
1434
1463
1435
if ( element == null ) {
@@ -1535,10 +1507,10 @@ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1535
1507
}
1536
1508
} // These two functions exist to still get child warnings in dev
1537
1509
1538
- var jsxDEV$1 = jsxWithValidation ;
1510
+ var jsxDEV = jsxWithValidation ;
1539
1511
1540
1512
exports . Fragment = REACT_FRAGMENT_TYPE ;
1541
- exports . jsxDEV = jsxDEV$1 ;
1513
+ exports . jsxDEV = jsxDEV ;
1542
1514
1543
1515
} ) ( ) ;
1544
1516
}
0 commit comments