@@ -108,7 +108,7 @@ __DEV__ &&
108
108
case REACT_ACTIVITY_TYPE :
109
109
return "Activity" ;
110
110
case REACT_VIEW_TRANSITION_TYPE :
111
- return "ViewTransition" ;
111
+ if ( enableViewTransition ) return "ViewTransition" ;
112
112
case REACT_TRACING_MARKER_TYPE :
113
113
if ( enableTransitionTracing ) return "TracingMarker" ;
114
114
}
@@ -604,8 +604,9 @@ __DEV__ &&
604
604
function startTransition ( scope , options ) {
605
605
var prevTransition = ReactSharedInternals . T ,
606
606
currentTransition = { } ;
607
- currentTransition . types =
608
- null !== prevTransition ? prevTransition . types : null ;
607
+ enableViewTransition &&
608
+ ( currentTransition . types =
609
+ null !== prevTransition ? prevTransition . types : null ) ;
609
610
enableTransitionTracing &&
610
611
( ( currentTransition . name =
611
612
void 0 !== options && void 0 !== options . name ? options . name : null ) ,
@@ -646,18 +647,21 @@ __DEV__ &&
646
647
}
647
648
}
648
649
function addTransitionType ( type ) {
649
- var transition = ReactSharedInternals . T ;
650
- if ( null !== transition ) {
651
- var transitionTypes = transition . types ;
652
- null === transitionTypes
653
- ? ( transition . types = [ type ] )
654
- : - 1 === transitionTypes . indexOf ( type ) && transitionTypes . push ( type ) ;
655
- } else
656
- 0 === ReactSharedInternals . asyncTransitions &&
657
- console . error (
658
- "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
659
- ) ,
660
- startTransition ( addTransitionType . bind ( null , type ) ) ;
650
+ if ( enableViewTransition ) {
651
+ var transition = ReactSharedInternals . T ;
652
+ if ( null !== transition ) {
653
+ var transitionTypes = transition . types ;
654
+ null === transitionTypes
655
+ ? ( transition . types = [ type ] )
656
+ : - 1 === transitionTypes . indexOf ( type ) &&
657
+ transitionTypes . push ( type ) ;
658
+ } else
659
+ 0 === ReactSharedInternals . asyncTransitions &&
660
+ console . error (
661
+ "addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
662
+ ) ,
663
+ startTransition ( addTransitionType . bind ( null , type ) ) ;
664
+ }
661
665
}
662
666
function enqueueTask ( task ) {
663
667
if ( null === enqueueTaskImpl )
@@ -750,12 +754,13 @@ __DEV__ &&
750
754
disableDefaultPropsExceptForClasses =
751
755
dynamicFeatureFlags . disableDefaultPropsExceptForClasses ,
752
756
enableRenderableContext = dynamicFeatureFlags . enableRenderableContext ,
753
- enableTransitionTracing = dynamicFeatureFlags . enableTransitionTracing ;
754
- dynamicFeatureFlags = dynamicFeatureFlags . renameElementSymbol ;
755
- var REACT_LEGACY_ELEMENT_TYPE = Symbol . for ( "react.element" ) ,
756
- REACT_ELEMENT_TYPE = dynamicFeatureFlags
757
+ enableTransitionTracing = dynamicFeatureFlags . enableTransitionTracing ,
758
+ renameElementSymbol = dynamicFeatureFlags . renameElementSymbol ,
759
+ enableViewTransition = dynamicFeatureFlags . enableViewTransition ;
760
+ dynamicFeatureFlags = Symbol . for ( "react.element" ) ;
761
+ var REACT_ELEMENT_TYPE = renameElementSymbol
757
762
? Symbol . for ( "react.transitional.element" )
758
- : REACT_LEGACY_ELEMENT_TYPE ,
763
+ : dynamicFeatureFlags ,
759
764
REACT_PORTAL_TYPE = Symbol . for ( "react.portal" ) ,
760
765
REACT_FRAGMENT_TYPE = Symbol . for ( "react.fragment" ) ,
761
766
REACT_STRICT_MODE_TYPE = Symbol . for ( "react.strict_mode" ) ,
@@ -768,9 +773,9 @@ __DEV__ &&
768
773
REACT_SUSPENSE_LIST_TYPE = Symbol . for ( "react.suspense_list" ) ,
769
774
REACT_MEMO_TYPE = Symbol . for ( "react.memo" ) ,
770
775
REACT_LAZY_TYPE = Symbol . for ( "react.lazy" ) ;
771
- dynamicFeatureFlags = Symbol . for ( "react.scope" ) ;
776
+ renameElementSymbol = Symbol . for ( "react.scope" ) ;
772
777
var REACT_ACTIVITY_TYPE = Symbol . for ( "react.activity" ) ;
773
- REACT_LEGACY_ELEMENT_TYPE = Symbol . for ( "react.legacy_hidden" ) ;
778
+ dynamicFeatureFlags = Symbol . for ( "react.legacy_hidden" ) ;
774
779
var REACT_TRACING_MARKER_TYPE = Symbol . for ( "react.tracing_marker" ) ,
775
780
REACT_VIEW_TRANSITION_TYPE = Symbol . for ( "react.view_transition" ) ,
776
781
MAYBE_ITERATOR_SYMBOL = Symbol . iterator ,
@@ -1433,8 +1438,8 @@ __DEV__ &&
1433
1438
} ;
1434
1439
exports . startTransition = startTransition ;
1435
1440
exports . unstable_Activity = REACT_ACTIVITY_TYPE ;
1436
- exports . unstable_LegacyHidden = REACT_LEGACY_ELEMENT_TYPE ;
1437
- exports . unstable_Scope = dynamicFeatureFlags ;
1441
+ exports . unstable_LegacyHidden = dynamicFeatureFlags ;
1442
+ exports . unstable_Scope = renameElementSymbol ;
1438
1443
exports . unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE ;
1439
1444
exports . unstable_TracingMarker = REACT_TRACING_MARKER_TYPE ;
1440
1445
exports . unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE ;
@@ -1532,7 +1537,7 @@ __DEV__ &&
1532
1537
exports . useTransition = function ( ) {
1533
1538
return resolveDispatcher ( ) . useTransition ( ) ;
1534
1539
} ;
1535
- exports . version = "19.2.0-www-classic-f9ae0a4c -20250527" ;
1540
+ exports . version = "19.2.0-www-classic-283f87f0 -20250527" ;
1536
1541
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1537
1542
"function" ===
1538
1543
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ . registerInternalModuleStop &&
0 commit comments