@@ -28,6 +28,7 @@ import {
28
28
ElementTypeSuspenseList ,
29
29
ElementTypeTracingMarker ,
30
30
ElementTypeViewTransition ,
31
+ ElementTypeActivity ,
31
32
ElementTypeVirtual ,
32
33
StrictMode ,
33
34
} from 'react-devtools-shared/src/frontend/types' ;
@@ -385,6 +386,7 @@ export function getInternalReactConstants(version: string): {
385
386
YieldComponent : - 1 , // Removed
386
387
Throw : 29 ,
387
388
ViewTransitionComponent : 30 , // Experimental
389
+ ActivityComponent : 31 ,
388
390
} ;
389
391
} else if ( gte ( version , '17.0.0-alpha' ) ) {
390
392
ReactTypeOfWork = {
@@ -421,6 +423,7 @@ export function getInternalReactConstants(version: string): {
421
423
YieldComponent : - 1 , // Removed
422
424
Throw : - 1 , // Doesn't exist yet
423
425
ViewTransitionComponent : - 1 , // Doesn't exist yet
426
+ ActivityComponent : - 1 , // Doesn't exist yet
424
427
} ;
425
428
} else if ( gte ( version , '16.6.0-beta.0' ) ) {
426
429
ReactTypeOfWork = {
@@ -457,6 +460,7 @@ export function getInternalReactConstants(version: string): {
457
460
YieldComponent : - 1 , // Removed
458
461
Throw : - 1 , // Doesn't exist yet
459
462
ViewTransitionComponent : - 1 , // Doesn't exist yet
463
+ ActivityComponent : - 1 , // Doesn't exist yet
460
464
} ;
461
465
} else if ( gte ( version , '16.4.3-alpha' ) ) {
462
466
ReactTypeOfWork = {
@@ -493,6 +497,7 @@ export function getInternalReactConstants(version: string): {
493
497
YieldComponent : - 1 , // Removed
494
498
Throw : - 1 , // Doesn't exist yet
495
499
ViewTransitionComponent : - 1 , // Doesn't exist yet
500
+ ActivityComponent : - 1 , // Doesn't exist yet
496
501
} ;
497
502
} else {
498
503
ReactTypeOfWork = {
@@ -529,6 +534,7 @@ export function getInternalReactConstants(version: string): {
529
534
YieldComponent : 9 ,
530
535
Throw : - 1 , // Doesn't exist yet
531
536
ViewTransitionComponent : - 1 , // Doesn't exist yet
537
+ ActivityComponent : - 1 , // Doesn't exist yet
532
538
} ;
533
539
}
534
540
// **********************************************************
@@ -572,6 +578,7 @@ export function getInternalReactConstants(version: string): {
572
578
TracingMarkerComponent,
573
579
Throw,
574
580
ViewTransitionComponent,
581
+ ActivityComponent,
575
582
} = ReactTypeOfWork ;
576
583
577
584
function resolveFiberType ( type : any ) : $FlowFixMe {
@@ -622,6 +629,8 @@ export function getInternalReactConstants(version: string): {
622
629
}
623
630
624
631
switch ( tag ) {
632
+ case ActivityComponent :
633
+ return 'Activity' ;
625
634
case CacheComponent :
626
635
return 'Cache' ;
627
636
case ClassComponent :
@@ -892,6 +901,7 @@ export function attach(
892
901
StrictModeBits ,
893
902
} = getInternalReactConstants ( version ) ;
894
903
const {
904
+ ActivityComponent ,
895
905
CacheComponent ,
896
906
ClassComponent ,
897
907
ContextConsumer ,
@@ -1565,6 +1575,8 @@ export function attach(
1565
1575
const { type , tag } = fiber ;
1566
1576
1567
1577
switch ( tag ) {
1578
+ case ActivityComponent :
1579
+ return ElementTypeActivity ;
1568
1580
case ClassComponent :
1569
1581
case IncompleteClassComponent :
1570
1582
return ElementTypeClass ;
0 commit comments