Skip to content

Commit 55a73e5

Browse files
committed
Set enableViewTransition to dynamic for www (facebook#32306)
Unblocks internal experimentation DiffTrain build for [32b4114](facebook@32b4114)
1 parent 44b064d commit 55a73e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+28648
-11678
lines changed

compiled/facebook-www/JSXDEVRuntime-dev.classic.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ __DEV__ &&
5959
case REACT_SUSPENSE_LIST_TYPE:
6060
return "SuspenseList";
6161
case REACT_VIEW_TRANSITION_TYPE:
62+
if (enableViewTransition) return "ViewTransition";
6263
case REACT_TRACING_MARKER_TYPE:
6364
if (enableTransitionTracing) return "TracingMarker";
6465
}
@@ -363,6 +364,9 @@ __DEV__ &&
363364
return describeBuiltInComponentFrame("Suspense");
364365
case REACT_SUSPENSE_LIST_TYPE:
365366
return describeBuiltInComponentFrame("SuspenseList");
367+
case REACT_VIEW_TRANSITION_TYPE:
368+
if (enableViewTransition)
369+
return describeBuiltInComponentFrame("ViewTransition");
366370
}
367371
if ("object" === typeof type)
368372
switch (type.$$typeof) {
@@ -506,6 +510,7 @@ __DEV__ &&
506510
type === REACT_OFFSCREEN_TYPE ||
507511
type === REACT_SCOPE_TYPE ||
508512
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
513+
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
509514
("object" === typeof type &&
510515
null !== type &&
511516
(type.$$typeof === REACT_LAZY_TYPE ||
@@ -709,7 +714,8 @@ __DEV__ &&
709714
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
710715
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
711716
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
712-
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
717+
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
718+
enableViewTransition = dynamicFeatureFlags.enableViewTransition;
713719
dynamicFeatureFlags = Symbol.for("react.element");
714720
var REACT_ELEMENT_TYPE = renameElementSymbol
715721
? Symbol.for("react.transitional.element")

compiled/facebook-www/JSXDEVRuntime-dev.modern.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ __DEV__ &&
5959
case REACT_SUSPENSE_LIST_TYPE:
6060
return "SuspenseList";
6161
case REACT_VIEW_TRANSITION_TYPE:
62+
if (enableViewTransition) return "ViewTransition";
6263
case REACT_TRACING_MARKER_TYPE:
6364
if (enableTransitionTracing) return "TracingMarker";
6465
}
@@ -363,6 +364,9 @@ __DEV__ &&
363364
return describeBuiltInComponentFrame("Suspense");
364365
case REACT_SUSPENSE_LIST_TYPE:
365366
return describeBuiltInComponentFrame("SuspenseList");
367+
case REACT_VIEW_TRANSITION_TYPE:
368+
if (enableViewTransition)
369+
return describeBuiltInComponentFrame("ViewTransition");
366370
}
367371
if ("object" === typeof type)
368372
switch (type.$$typeof) {
@@ -506,6 +510,7 @@ __DEV__ &&
506510
type === REACT_OFFSCREEN_TYPE ||
507511
type === REACT_SCOPE_TYPE ||
508512
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
513+
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
509514
("object" === typeof type &&
510515
null !== type &&
511516
(type.$$typeof === REACT_LAZY_TYPE ||
@@ -709,7 +714,8 @@ __DEV__ &&
709714
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
710715
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
711716
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
712-
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
717+
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
718+
enableViewTransition = dynamicFeatureFlags.enableViewTransition;
713719
dynamicFeatureFlags = Symbol.for("react.element");
714720
var REACT_ELEMENT_TYPE = renameElementSymbol
715721
? Symbol.for("react.transitional.element")

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
152bfe3769f87e29c8d68cb87fdb608d2483b7f1
1+
32b411496b92455cede3b286eb37c8b183989051
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
152bfe3769f87e29c8d68cb87fdb608d2483b7f1
1+
32b411496b92455cede3b286eb37c8b183989051

compiled/facebook-www/React-dev.classic.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ __DEV__ &&
145145
case REACT_SUSPENSE_LIST_TYPE:
146146
return "SuspenseList";
147147
case REACT_VIEW_TRANSITION_TYPE:
148+
if (enableViewTransition) return "ViewTransition";
148149
case REACT_TRACING_MARKER_TYPE:
149150
if (enableTransitionTracing) return "TracingMarker";
150151
}
@@ -202,6 +203,7 @@ __DEV__ &&
202203
type === REACT_OFFSCREEN_TYPE ||
203204
type === REACT_SCOPE_TYPE ||
204205
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
206+
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
205207
("object" === typeof type &&
206208
null !== type &&
207209
(type.$$typeof === REACT_LAZY_TYPE ||
@@ -451,6 +453,9 @@ __DEV__ &&
451453
return describeBuiltInComponentFrame("Suspense");
452454
case REACT_SUSPENSE_LIST_TYPE:
453455
return describeBuiltInComponentFrame("SuspenseList");
456+
case REACT_VIEW_TRANSITION_TYPE:
457+
if (enableViewTransition)
458+
return describeBuiltInComponentFrame("ViewTransition");
454459
}
455460
if ("object" === typeof type)
456461
switch (type.$$typeof) {
@@ -1125,6 +1130,7 @@ __DEV__ &&
11251130
dynamicFeatureFlags.enableUseResourceEffectHook,
11261131
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
11271132
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
1133+
enableViewTransition = dynamicFeatureFlags.enableViewTransition,
11281134
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
11291135
REACT_ELEMENT_TYPE = renameElementSymbol
11301136
? Symbol.for("react.transitional.element")
@@ -1877,6 +1883,7 @@ __DEV__ &&
18771883
exports.unstable_Scope = REACT_SCOPE_TYPE;
18781884
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
18791885
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
1886+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
18801887
exports.unstable_getCacheForType = function (resourceType) {
18811888
var dispatcher = ReactSharedInternals.A;
18821889
return dispatcher
@@ -1958,7 +1965,7 @@ __DEV__ &&
19581965
exports.useTransition = function () {
19591966
return resolveDispatcher().useTransition();
19601967
};
1961-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
1968+
exports.version = "19.1.0-www-classic-32b41149-20250204";
19621969
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19631970
"function" ===
19641971
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ __DEV__ &&
145145
case REACT_SUSPENSE_LIST_TYPE:
146146
return "SuspenseList";
147147
case REACT_VIEW_TRANSITION_TYPE:
148+
if (enableViewTransition) return "ViewTransition";
148149
case REACT_TRACING_MARKER_TYPE:
149150
if (enableTransitionTracing) return "TracingMarker";
150151
}
@@ -202,6 +203,7 @@ __DEV__ &&
202203
type === REACT_OFFSCREEN_TYPE ||
203204
type === REACT_SCOPE_TYPE ||
204205
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
206+
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
205207
("object" === typeof type &&
206208
null !== type &&
207209
(type.$$typeof === REACT_LAZY_TYPE ||
@@ -451,6 +453,9 @@ __DEV__ &&
451453
return describeBuiltInComponentFrame("Suspense");
452454
case REACT_SUSPENSE_LIST_TYPE:
453455
return describeBuiltInComponentFrame("SuspenseList");
456+
case REACT_VIEW_TRANSITION_TYPE:
457+
if (enableViewTransition)
458+
return describeBuiltInComponentFrame("ViewTransition");
454459
}
455460
if ("object" === typeof type)
456461
switch (type.$$typeof) {
@@ -1125,6 +1130,7 @@ __DEV__ &&
11251130
dynamicFeatureFlags.enableUseResourceEffectHook,
11261131
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
11271132
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
1133+
enableViewTransition = dynamicFeatureFlags.enableViewTransition,
11281134
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
11291135
REACT_ELEMENT_TYPE = renameElementSymbol
11301136
? Symbol.for("react.transitional.element")
@@ -1877,6 +1883,7 @@ __DEV__ &&
18771883
exports.unstable_Scope = REACT_SCOPE_TYPE;
18781884
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
18791885
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
1886+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
18801887
exports.unstable_getCacheForType = function (resourceType) {
18811888
var dispatcher = ReactSharedInternals.A;
18821889
return dispatcher
@@ -1958,7 +1965,7 @@ __DEV__ &&
19581965
exports.useTransition = function () {
19591966
return resolveDispatcher().useTransition();
19601967
};
1961-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
1968+
exports.version = "19.1.0-www-modern-32b41149-20250204";
19621969
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19631970
"function" ===
19641971
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
3838
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
3939
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
4040
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
41+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
4142
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
4243
function getIteratorFn(maybeIterable) {
4344
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -562,6 +563,7 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
562563
exports.unstable_Scope = REACT_SCOPE_TYPE;
563564
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
564565
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
566+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
565567
exports.unstable_getCacheForType = function (resourceType) {
566568
var dispatcher = ReactSharedInternals.A;
567569
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -630,4 +632,4 @@ exports.useSyncExternalStore = function (
630632
exports.useTransition = function () {
631633
return ReactSharedInternals.H.useTransition();
632634
};
633-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
635+
exports.version = "19.1.0-www-classic-32b41149-20250204";

compiled/facebook-www/React-prod.modern.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
3838
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
3939
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
4040
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
41+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
4142
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
4243
function getIteratorFn(maybeIterable) {
4344
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -562,6 +563,7 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
562563
exports.unstable_Scope = REACT_SCOPE_TYPE;
563564
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
564565
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
566+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
565567
exports.unstable_getCacheForType = function (resourceType) {
566568
var dispatcher = ReactSharedInternals.A;
567569
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -630,4 +632,4 @@ exports.useSyncExternalStore = function (
630632
exports.useTransition = function () {
631633
return ReactSharedInternals.H.useTransition();
632634
};
633-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
635+
exports.version = "19.1.0-www-modern-32b41149-20250204";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
4242
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
4343
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
4444
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
45+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
4546
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
4647
function getIteratorFn(maybeIterable) {
4748
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -566,6 +567,7 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
566567
exports.unstable_Scope = REACT_SCOPE_TYPE;
567568
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
568569
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
570+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
569571
exports.unstable_getCacheForType = function (resourceType) {
570572
var dispatcher = ReactSharedInternals.A;
571573
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -634,7 +636,7 @@ exports.useSyncExternalStore = function (
634636
exports.useTransition = function () {
635637
return ReactSharedInternals.H.useTransition();
636638
};
637-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
639+
exports.version = "19.1.0-www-classic-32b41149-20250204";
638640
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639641
"function" ===
640642
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
4242
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
4343
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
4444
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
45+
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
4546
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
4647
function getIteratorFn(maybeIterable) {
4748
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -566,6 +567,7 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
566567
exports.unstable_Scope = REACT_SCOPE_TYPE;
567568
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
568569
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
570+
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
569571
exports.unstable_getCacheForType = function (resourceType) {
570572
var dispatcher = ReactSharedInternals.A;
571573
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -634,7 +636,7 @@ exports.useSyncExternalStore = function (
634636
exports.useTransition = function () {
635637
return ReactSharedInternals.H.useTransition();
636638
};
637-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
639+
exports.version = "19.1.0-www-modern-32b41149-20250204";
638640
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639641
"function" ===
640642
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)