Skip to content

Commit

Permalink
Export addTransitionType for www (facebook#32311)
Browse files Browse the repository at this point in the history
need dis based api

DiffTrain build for [ff62833](facebook@ff62833)
  • Loading branch information
22388o committed Feb 6, 2025
1 parent 0f0f8e9 commit 8102ec2
Show file tree
Hide file tree
Showing 42 changed files with 28,690 additions and 11,678 deletions.
8 changes: 7 additions & 1 deletion compiled/facebook-www/JSXDEVRuntime-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ __DEV__ &&
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition) return "ViewTransition";
case REACT_TRACING_MARKER_TYPE:
if (enableTransitionTracing) return "TracingMarker";
}
Expand Down Expand Up @@ -363,6 +364,9 @@ __DEV__ &&
return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE:
return describeBuiltInComponentFrame("SuspenseList");
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition)
return describeBuiltInComponentFrame("ViewTransition");
}
if ("object" === typeof type)
switch (type.$$typeof) {
Expand Down Expand Up @@ -506,6 +510,7 @@ __DEV__ &&
type === REACT_OFFSCREEN_TYPE ||
type === REACT_SCOPE_TYPE ||
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
("object" === typeof type &&
null !== type &&
(type.$$typeof === REACT_LAZY_TYPE ||
Expand Down Expand Up @@ -709,7 +714,8 @@ __DEV__ &&
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
enableViewTransition = dynamicFeatureFlags.enableViewTransition;
dynamicFeatureFlags = Symbol.for("react.element");
var REACT_ELEMENT_TYPE = renameElementSymbol
? Symbol.for("react.transitional.element")
Expand Down
8 changes: 7 additions & 1 deletion compiled/facebook-www/JSXDEVRuntime-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ __DEV__ &&
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition) return "ViewTransition";
case REACT_TRACING_MARKER_TYPE:
if (enableTransitionTracing) return "TracingMarker";
}
Expand Down Expand Up @@ -363,6 +364,9 @@ __DEV__ &&
return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE:
return describeBuiltInComponentFrame("SuspenseList");
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition)
return describeBuiltInComponentFrame("ViewTransition");
}
if ("object" === typeof type)
switch (type.$$typeof) {
Expand Down Expand Up @@ -506,6 +510,7 @@ __DEV__ &&
type === REACT_OFFSCREEN_TYPE ||
type === REACT_SCOPE_TYPE ||
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
("object" === typeof type &&
null !== type &&
(type.$$typeof === REACT_LAZY_TYPE ||
Expand Down Expand Up @@ -709,7 +714,8 @@ __DEV__ &&
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks;
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
enableViewTransition = dynamicFeatureFlags.enableViewTransition;
dynamicFeatureFlags = Symbol.for("react.element");
var REACT_ELEMENT_TYPE = renameElementSymbol
? Symbol.for("react.transitional.element")
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
152bfe3769f87e29c8d68cb87fdb608d2483b7f1
ff6283340a10bb72ad0fb16ca027606a9ea1e67c
2 changes: 1 addition & 1 deletion compiled/facebook-www/REVISION_TRANSFORMS
Original file line number Diff line number Diff line change
@@ -1 +1 @@
152bfe3769f87e29c8d68cb87fdb608d2483b7f1
ff6283340a10bb72ad0fb16ca027606a9ea1e67c
16 changes: 15 additions & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ __DEV__ &&
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition) return "ViewTransition";
case REACT_TRACING_MARKER_TYPE:
if (enableTransitionTracing) return "TracingMarker";
}
Expand Down Expand Up @@ -202,6 +203,7 @@ __DEV__ &&
type === REACT_OFFSCREEN_TYPE ||
type === REACT_SCOPE_TYPE ||
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
("object" === typeof type &&
null !== type &&
(type.$$typeof === REACT_LAZY_TYPE ||
Expand Down Expand Up @@ -451,6 +453,9 @@ __DEV__ &&
return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE:
return describeBuiltInComponentFrame("SuspenseList");
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition)
return describeBuiltInComponentFrame("ViewTransition");
}
if ("object" === typeof type)
switch (type.$$typeof) {
Expand Down Expand Up @@ -1125,6 +1130,7 @@ __DEV__ &&
dynamicFeatureFlags.enableUseResourceEffectHook,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
enableViewTransition = dynamicFeatureFlags.enableViewTransition,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_ELEMENT_TYPE = renameElementSymbol
? Symbol.for("react.transitional.element")
Expand Down Expand Up @@ -1877,6 +1883,14 @@ __DEV__ &&
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher
Expand Down Expand Up @@ -1958,7 +1972,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-classic-152bfe37-20250131";
exports.version = "19.1.0-www-classic-ff628334-20250205";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
16 changes: 15 additions & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ __DEV__ &&
case REACT_SUSPENSE_LIST_TYPE:
return "SuspenseList";
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition) return "ViewTransition";
case REACT_TRACING_MARKER_TYPE:
if (enableTransitionTracing) return "TracingMarker";
}
Expand Down Expand Up @@ -202,6 +203,7 @@ __DEV__ &&
type === REACT_OFFSCREEN_TYPE ||
type === REACT_SCOPE_TYPE ||
(enableTransitionTracing && type === REACT_TRACING_MARKER_TYPE) ||
(enableViewTransition && type === REACT_VIEW_TRANSITION_TYPE) ||
("object" === typeof type &&
null !== type &&
(type.$$typeof === REACT_LAZY_TYPE ||
Expand Down Expand Up @@ -451,6 +453,9 @@ __DEV__ &&
return describeBuiltInComponentFrame("Suspense");
case REACT_SUSPENSE_LIST_TYPE:
return describeBuiltInComponentFrame("SuspenseList");
case REACT_VIEW_TRANSITION_TYPE:
if (enableViewTransition)
return describeBuiltInComponentFrame("ViewTransition");
}
if ("object" === typeof type)
switch (type.$$typeof) {
Expand Down Expand Up @@ -1125,6 +1130,7 @@ __DEV__ &&
dynamicFeatureFlags.enableUseResourceEffectHook,
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
enableOwnerStacks = dynamicFeatureFlags.enableOwnerStacks,
enableViewTransition = dynamicFeatureFlags.enableViewTransition,
REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"),
REACT_ELEMENT_TYPE = renameElementSymbol
? Symbol.for("react.transitional.element")
Expand Down Expand Up @@ -1877,6 +1883,14 @@ __DEV__ &&
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher
Expand Down Expand Up @@ -1958,7 +1972,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.1.0-www-modern-152bfe37-20250131";
exports.version = "19.1.0-www-modern-ff628334-20250205";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
11 changes: 10 additions & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
function getIteratorFn(maybeIterable) {
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
Expand Down Expand Up @@ -562,6 +563,14 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
Expand Down Expand Up @@ -630,4 +639,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-152bfe37-20250131";
exports.version = "19.1.0-www-classic-ff628334-20250205";
11 changes: 10 additions & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
function getIteratorFn(maybeIterable) {
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
Expand Down Expand Up @@ -562,6 +563,14 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
Expand Down Expand Up @@ -630,4 +639,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-152bfe37-20250131";
exports.version = "19.1.0-www-modern-ff628334-20250205";
11 changes: 10 additions & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
function getIteratorFn(maybeIterable) {
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
Expand Down Expand Up @@ -566,6 +567,14 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
Expand Down Expand Up @@ -634,7 +643,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-classic-152bfe37-20250131";
exports.version = "19.1.0-www-classic-ff628334-20250205";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
11 changes: 10 additions & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
REACT_TRACING_MARKER_TYPE = Symbol.for("react.tracing_marker"),
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"),
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
function getIteratorFn(maybeIterable) {
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
Expand Down Expand Up @@ -566,6 +567,14 @@ exports.unstable_LegacyHidden = REACT_LEGACY_HIDDEN_TYPE;
exports.unstable_Scope = REACT_SCOPE_TYPE;
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE;
exports.unstable_TracingMarker = REACT_TRACING_MARKER_TYPE;
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE;
exports.unstable_addTransitionType = function (type) {
var pendingTransitionTypes = ReactSharedInternals.V;
null === pendingTransitionTypes
? (ReactSharedInternals.V = [type])
: -1 === pendingTransitionTypes.indexOf(type) &&
pendingTransitionTypes.push(type);
};
exports.unstable_getCacheForType = function (resourceType) {
var dispatcher = ReactSharedInternals.A;
return dispatcher ? dispatcher.getCacheForType(resourceType) : resourceType();
Expand Down Expand Up @@ -634,7 +643,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.1.0-www-modern-152bfe37-20250131";
exports.version = "19.1.0-www-modern-ff628334-20250205";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
Expand Down
Loading

0 comments on commit 8102ec2

Please sign in to comment.