Skip to content

Commit 8102ec2

Browse files
author
22388o
committed
Export addTransitionType for www (facebook#32311)
need dis based api DiffTrain build for [ff62833](facebook@ff62833)
1 parent 0f0f8e9 commit 8102ec2

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

+28690
-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+
ff6283340a10bb72ad0fb16ca027606a9ea1e67c
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
152bfe3769f87e29c8d68cb87fdb608d2483b7f1
1+
ff6283340a10bb72ad0fb16ca027606a9ea1e67c

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

Lines changed: 15 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,14 @@ __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;
1887+
exports.unstable_addTransitionType = function (type) {
1888+
var pendingTransitionTypes = ReactSharedInternals.V;
1889+
null === pendingTransitionTypes
1890+
? (ReactSharedInternals.V = [type])
1891+
: -1 === pendingTransitionTypes.indexOf(type) &&
1892+
pendingTransitionTypes.push(type);
1893+
};
18801894
exports.unstable_getCacheForType = function (resourceType) {
18811895
var dispatcher = ReactSharedInternals.A;
18821896
return dispatcher
@@ -1958,7 +1972,7 @@ __DEV__ &&
19581972
exports.useTransition = function () {
19591973
return resolveDispatcher().useTransition();
19601974
};
1961-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
1975+
exports.version = "19.1.0-www-classic-ff628334-20250205";
19621976
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19631977
"function" ===
19641978
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 15 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,14 @@ __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;
1887+
exports.unstable_addTransitionType = function (type) {
1888+
var pendingTransitionTypes = ReactSharedInternals.V;
1889+
null === pendingTransitionTypes
1890+
? (ReactSharedInternals.V = [type])
1891+
: -1 === pendingTransitionTypes.indexOf(type) &&
1892+
pendingTransitionTypes.push(type);
1893+
};
18801894
exports.unstable_getCacheForType = function (resourceType) {
18811895
var dispatcher = ReactSharedInternals.A;
18821896
return dispatcher
@@ -1958,7 +1972,7 @@ __DEV__ &&
19581972
exports.useTransition = function () {
19591973
return resolveDispatcher().useTransition();
19601974
};
1961-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
1975+
exports.version = "19.1.0-www-modern-ff628334-20250205";
19621976
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19631977
"function" ===
19641978
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 10 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,14 @@ 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;
567+
exports.unstable_addTransitionType = function (type) {
568+
var pendingTransitionTypes = ReactSharedInternals.V;
569+
null === pendingTransitionTypes
570+
? (ReactSharedInternals.V = [type])
571+
: -1 === pendingTransitionTypes.indexOf(type) &&
572+
pendingTransitionTypes.push(type);
573+
};
565574
exports.unstable_getCacheForType = function (resourceType) {
566575
var dispatcher = ReactSharedInternals.A;
567576
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -630,4 +639,4 @@ exports.useSyncExternalStore = function (
630639
exports.useTransition = function () {
631640
return ReactSharedInternals.H.useTransition();
632641
};
633-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
642+
exports.version = "19.1.0-www-classic-ff628334-20250205";

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

Lines changed: 10 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,14 @@ 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;
567+
exports.unstable_addTransitionType = function (type) {
568+
var pendingTransitionTypes = ReactSharedInternals.V;
569+
null === pendingTransitionTypes
570+
? (ReactSharedInternals.V = [type])
571+
: -1 === pendingTransitionTypes.indexOf(type) &&
572+
pendingTransitionTypes.push(type);
573+
};
565574
exports.unstable_getCacheForType = function (resourceType) {
566575
var dispatcher = ReactSharedInternals.A;
567576
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -630,4 +639,4 @@ exports.useSyncExternalStore = function (
630639
exports.useTransition = function () {
631640
return ReactSharedInternals.H.useTransition();
632641
};
633-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
642+
exports.version = "19.1.0-www-modern-ff628334-20250205";

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

Lines changed: 10 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,14 @@ 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;
571+
exports.unstable_addTransitionType = function (type) {
572+
var pendingTransitionTypes = ReactSharedInternals.V;
573+
null === pendingTransitionTypes
574+
? (ReactSharedInternals.V = [type])
575+
: -1 === pendingTransitionTypes.indexOf(type) &&
576+
pendingTransitionTypes.push(type);
577+
};
569578
exports.unstable_getCacheForType = function (resourceType) {
570579
var dispatcher = ReactSharedInternals.A;
571580
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -634,7 +643,7 @@ exports.useSyncExternalStore = function (
634643
exports.useTransition = function () {
635644
return ReactSharedInternals.H.useTransition();
636645
};
637-
exports.version = "19.1.0-www-classic-152bfe37-20250131";
646+
exports.version = "19.1.0-www-classic-ff628334-20250205";
638647
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639648
"function" ===
640649
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 10 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,14 @@ 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;
571+
exports.unstable_addTransitionType = function (type) {
572+
var pendingTransitionTypes = ReactSharedInternals.V;
573+
null === pendingTransitionTypes
574+
? (ReactSharedInternals.V = [type])
575+
: -1 === pendingTransitionTypes.indexOf(type) &&
576+
pendingTransitionTypes.push(type);
577+
};
569578
exports.unstable_getCacheForType = function (resourceType) {
570579
var dispatcher = ReactSharedInternals.A;
571580
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
@@ -634,7 +643,7 @@ exports.useSyncExternalStore = function (
634643
exports.useTransition = function () {
635644
return ReactSharedInternals.H.useTransition();
636645
};
637-
exports.version = "19.1.0-www-modern-152bfe37-20250131";
646+
exports.version = "19.1.0-www-modern-ff628334-20250205";
638647
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639648
"function" ===
640649
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)