[flow] enable enforce_local_inference_annotations (#25921)

This setting is an incremental path to the next Flow version enforcing
type annotations on most functions (except some inline callbacks).

Used
```
node_modules/.bin/flow codemod annotate-functions-and-classes --write .
```
to add a majority of the types with some hand cleanup when for large
inferred objects that should just be `Fiber` or weird constructs
including `any`.

Suppressed the remaining issues.

Builds on #25918

DiffTrain build for [0b4f443020](https://github.com/facebook/react/commit/0b4f443020af386f2b48c47c074cb504ed672dc8)
[View git log for this commit](https://github.com/facebook/react/commits/0b4f443020af386f2b48c47c074cb504ed672dc8)
This commit is contained in:
kassens
2023-01-09 20:54:59 +00:00
parent 31317708b8
commit 30755244ec
39 changed files with 227 additions and 126 deletions
+1 -1
View File
@@ -1 +1 @@
0b974418c9a56f6c560298560265dcf4b65784bc
0b4f443020af386f2b48c47c074cb504ed672dc8
+1 -1
View File
@@ -1 +1 @@
0b974418c9a56f6c560298560265dcf4b65784bc
0b4f443020af386f2b48c47c074cb504ed672dc8
+4 -2
View File
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
// ATTENTION
// When adding new symbols to this file,
@@ -1311,7 +1311,7 @@ function countChildren(children) {
function forEachChildren(children, forEachFunc, forEachContext) {
mapChildren(
children,
children, // $FlowFixMe[missing-this-annot]
function() {
forEachFunc.apply(this, arguments); // Don't return anything.
},
@@ -1582,6 +1582,7 @@ function lazy(ctor) {
get: function() {
return defaultProps;
},
// $FlowFixMe[missing-local-annot]
set: function(newDefaultProps) {
error(
"React.lazy(...): It is not supported to assign `defaultProps` to " +
@@ -1602,6 +1603,7 @@ function lazy(ctor) {
get: function() {
return propTypes;
},
// $FlowFixMe[missing-local-annot]
set: function(newPropTypes) {
error(
"React.lazy(...): It is not supported to assign `propTypes` to " +
+4 -2
View File
@@ -27,7 +27,7 @@ if (
}
"use strict";
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
// ATTENTION
// When adding new symbols to this file,
@@ -1311,7 +1311,7 @@ function countChildren(children) {
function forEachChildren(children, forEachFunc, forEachContext) {
mapChildren(
children,
children, // $FlowFixMe[missing-this-annot]
function() {
forEachFunc.apply(this, arguments); // Don't return anything.
},
@@ -1582,6 +1582,7 @@ function lazy(ctor) {
get: function() {
return defaultProps;
},
// $FlowFixMe[missing-local-annot]
set: function(newDefaultProps) {
error(
"React.lazy(...): It is not supported to assign `defaultProps` to " +
@@ -1602,6 +1603,7 @@ function lazy(ctor) {
get: function() {
return propTypes;
},
// $FlowFixMe[missing-local-annot]
set: function(newPropTypes) {
error(
"React.lazy(...): It is not supported to assign `propTypes` to " +
+1 -1
View File
@@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-0b974418c-20230106";
exports.version = "18.3.0-www-classic-0b4f44302-20230109";
+1 -1
View File
@@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-0b974418c-20230106";
exports.version = "18.3.0-www-modern-0b4f44302-20230109";
@@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-0b974418c-20230106";
exports.version = "18.3.0-www-classic-0b4f44302-20230109";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-0b974418c-20230106";
exports.version = "18.3.0-www-modern-0b4f44302-20230109";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -10963,6 +10963,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -11034,6 +11035,7 @@ var classComponentUpdater = {
markStateUpdateScheduled(fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -12176,6 +12178,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -16971,7 +16974,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -24054,8 +24057,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -24453,6 +24455,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -26212,7 +26215,7 @@ function restorePendingUpdaters(root, lanes) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -27479,7 +27482,7 @@ function assignFiberPropertiesInDEV(target, source) {
}
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
+9 -6
View File
@@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
var LegacyRoot = 0;
var ConcurrentRoot = 1;
@@ -10723,6 +10723,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -10794,6 +10795,7 @@ var classComponentUpdater = {
markStateUpdateScheduled(fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -11904,6 +11906,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -16679,7 +16682,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -23743,8 +23746,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -24142,6 +24144,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -25901,7 +25904,7 @@ function restorePendingUpdaters(root, lanes) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -27168,7 +27171,7 @@ function assignFiberPropertiesInDEV(target, source) {
}
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -9804,7 +9804,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-classic-0b974418c-20230106",
version: "18.3.0-www-classic-0b4f44302-20230109",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1319 = {
@@ -9835,7 +9835,7 @@ var internals$jscomp$inline_1319 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1320 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -9471,7 +9471,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-0b974418c-20230106",
version: "18.3.0-www-modern-0b4f44302-20230109",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1310 = {
@@ -9502,7 +9502,7 @@ var internals$jscomp$inline_1310 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1311 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
+25 -11
View File
@@ -1412,7 +1412,7 @@ function shouldRemoveAttribute(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -2628,9 +2628,12 @@ function trackValueOnNode(node) {
set = descriptor.set;
Object.defineProperty(node, valueField, {
configurable: true,
// $FlowFixMe[missing-this-annot]
get: function() {
return get.call(this);
},
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
set: function(value) {
{
checkFormFieldValueStringCoercion(value);
@@ -13117,6 +13120,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -13161,6 +13165,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -13177,6 +13182,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -13482,6 +13488,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -14153,7 +14161,7 @@ function registerEvents$1() {
]);
}
function createAndAccumulateChangeEvent(
function createAndAccumulateChangeEvent( // $FlowFixMe[missing-local-annot]
dispatchQueue,
inst,
nativeEvent,
@@ -14275,6 +14283,7 @@ function stopWatchingForValueChange() {
* (For IE <=9) Handles a propertychange event, sending a `change` event if
* the value of the active element has changed.
*/
// $FlowFixMe[missing-local-annot]
function handlePropertyChange(nativeEvent) {
if (nativeEvent.propertyName !== "value") {
@@ -15472,7 +15481,7 @@ function addTrappedEventListener(
// need support for such browsers.
if (enableLegacyFBSupport && isDeferredListenerForLegacyFBSupport) {
var originalListener = listener;
var originalListener = listener; // $FlowFixMe[missing-this-annot]
listener = function() {
removeEventListener(targetContainer, domEventName, unsubscribeListener);
@@ -25272,6 +25281,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -25343,6 +25353,7 @@ var classComponentUpdater = {
markStateUpdateScheduled(fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -26485,6 +26496,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -31594,7 +31606,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -38991,8 +39003,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -39467,6 +39478,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -41255,7 +41267,7 @@ function restorePendingUpdaters(root, lanes) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -42541,7 +42553,7 @@ function assignFiberPropertiesInDEV(target, source) {
}
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -42689,7 +42701,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
function createPortal(
children,
@@ -43390,11 +43402,12 @@ var defaultOnRecoverableError =
// In older browsers and test environments, fallback to console.error.
// eslint-disable-next-line react-internal/no-production-logging
console["error"](error);
};
}; // $FlowFixMe[missing-this-annot]
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
} // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(
children
@@ -43428,6 +43441,7 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = functio
updateContainer(children, root, null, null);
}; // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
{
@@ -43540,7 +43554,7 @@ function createRoot(container, options) {
listenToAllSupportedEvents(rootContainerElement); // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
return new ReactDOMRoot(root);
}
} // $FlowFixMe[missing-this-annot]
function ReactDOMHydrationRoot(internalRoot) {
this._internalRoot = internalRoot;
+25 -11
View File
@@ -577,7 +577,7 @@ function shouldRemoveAttribute(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -2115,9 +2115,12 @@ function trackValueOnNode(node) {
set = descriptor.set;
Object.defineProperty(node, valueField, {
configurable: true,
// $FlowFixMe[missing-this-annot]
get: function() {
return get.call(this);
},
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
set: function(value) {
{
checkFormFieldValueStringCoercion(value);
@@ -8361,6 +8364,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -8405,6 +8409,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -8421,6 +8426,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -8726,6 +8732,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -9397,7 +9405,7 @@ function registerEvents$1() {
]);
}
function createAndAccumulateChangeEvent(
function createAndAccumulateChangeEvent( // $FlowFixMe[missing-local-annot]
dispatchQueue,
inst,
nativeEvent,
@@ -9519,6 +9527,7 @@ function stopWatchingForValueChange() {
* (For IE <=9) Handles a propertychange event, sending a `change` event if
* the value of the active element has changed.
*/
// $FlowFixMe[missing-local-annot]
function handlePropertyChange(nativeEvent) {
if (nativeEvent.propertyName !== "value") {
@@ -11173,7 +11182,7 @@ function addTrappedEventListener(
// need support for such browsers.
if (enableLegacyFBSupport && isDeferredListenerForLegacyFBSupport) {
var originalListener = listener;
var originalListener = listener; // $FlowFixMe[missing-this-annot]
listener = function() {
removeEventListener(
@@ -25067,6 +25076,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -25138,6 +25148,7 @@ var classComponentUpdater = {
markStateUpdateScheduled(fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -26248,6 +26259,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -31337,7 +31349,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -38715,8 +38727,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -39191,6 +39202,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -40979,7 +40991,7 @@ function restorePendingUpdaters(root, lanes) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -42265,7 +42277,7 @@ function assignFiberPropertiesInDEV(target, source) {
}
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -42413,7 +42425,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
function createPortal(
children,
@@ -43017,11 +43029,12 @@ var defaultOnRecoverableError =
// In older browsers and test environments, fallback to console.error.
// eslint-disable-next-line react-internal/no-production-logging
console["error"](error);
};
}; // $FlowFixMe[missing-this-annot]
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
} // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(
children
@@ -43055,6 +43068,7 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = functio
updateContainer(children, root, null, null);
}; // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
{
@@ -43167,7 +43181,7 @@ function createRoot(container, options) {
listenToAllSupportedEvents(rootContainerElement); // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
return new ReactDOMRoot(root);
}
} // $FlowFixMe[missing-this-annot]
function ReactDOMHydrationRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -15554,7 +15554,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1751 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-0b974418c-20230106",
version: "18.3.0-www-classic-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2135 = {
@@ -15584,7 +15584,7 @@ var internals$jscomp$inline_2135 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2136 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15826,4 +15826,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
@@ -15115,7 +15115,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1719 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-0b974418c-20230106",
version: "18.3.0-www-modern-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2110 = {
@@ -15146,7 +15146,7 @@ var internals$jscomp$inline_2110 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2111 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -15334,4 +15334,4 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
@@ -16324,7 +16324,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1825 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-0b974418c-20230106",
version: "18.3.0-www-classic-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
(function(internals) {
@@ -16368,7 +16368,7 @@ var devToolsConfig$jscomp$inline_1825 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
});
assign(Internals, {
ReactBrowserEventEmitter: {
@@ -16597,7 +16597,7 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -15875,7 +15875,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1793 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-0b974418c-20230106",
version: "18.3.0-www-modern-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
(function(internals) {
@@ -15920,7 +15920,7 @@ var devToolsConfig$jscomp$inline_1793 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function(children, container) {
@@ -16095,7 +16095,7 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -352,7 +352,7 @@ function shouldRemoveAttributeWithWarning(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -6153,7 +6153,7 @@ function writeInitialResources(
as: "script",
integrity: integrity
});
}
} // $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
@@ -6267,6 +6267,7 @@ function writeInitialResources(
return r;
}
function writeImmediateResources(destination, resources, responseState) {
// $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
pushLinkImpl(target, resource.props, responseState);
@@ -7891,6 +7892,7 @@ var classComponentUpdater = {
isMounted: function(inst) {
return false;
},
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var internals = get(inst);
@@ -7917,6 +7919,7 @@ var classComponentUpdater = {
}
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var internals = get(inst);
@@ -10371,7 +10374,7 @@ function renderElement(request, task, prevThenableState, type, props, ref) {
"components) or a class/function (for composite components) " +
("but got: " + (type == null ? type : typeof type) + "." + info)
);
}
} // $FlowFixMe[missing-local-annot]
function validateIterable(iterable, iteratorFn) {
{
@@ -11525,6 +11528,7 @@ function renderToStringImpl(
var fatalError = null;
var result = "";
var destination = {
// $FlowFixMe[missing-local-annot]
push: function(chunk) {
if (chunk !== null) {
result += chunk;
@@ -11532,6 +11536,7 @@ function renderToStringImpl(
return true;
},
// $FlowFixMe[missing-local-annot]
destroy: function(error) {
didFatal = true;
fatalError = error;
@@ -19,7 +19,7 @@ if (__DEV__) {
var React = require("react");
var ReactDOM = require("react-dom");
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
// This refers to a WWW module.
var warningWWW = require("warning");
@@ -352,7 +352,7 @@ function shouldRemoveAttributeWithWarning(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -6178,7 +6178,7 @@ function writeInitialResources(
as: "script",
integrity: integrity
});
}
} // $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
@@ -6292,6 +6292,7 @@ function writeInitialResources(
return r;
}
function writeImmediateResources(destination, resources, responseState) {
// $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
pushLinkImpl(target, resource.props, responseState);
@@ -7685,6 +7686,7 @@ var classComponentUpdater = {
isMounted: function(inst) {
return false;
},
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var internals = get(inst);
@@ -7711,6 +7713,7 @@ var classComponentUpdater = {
}
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var internals = get(inst);
@@ -10146,7 +10149,7 @@ function renderElement(request, task, prevThenableState, type, props, ref) {
"components) or a class/function (for composite components) " +
("but got: " + (type == null ? type : typeof type) + "." + info)
);
}
} // $FlowFixMe[missing-local-annot]
function validateIterable(iterable, iteratorFn) {
{
@@ -11300,6 +11303,7 @@ function renderToStringImpl(
var fatalError = null;
var result = "";
var destination = {
// $FlowFixMe[missing-local-annot]
push: function(chunk) {
if (chunk !== null) {
result += chunk;
@@ -11307,6 +11311,7 @@ function renderToStringImpl(
return true;
},
// $FlowFixMe[missing-local-annot]
destroy: function(error) {
didFatal = true;
fatalError = error;
@@ -3633,4 +3633,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-classic-0b974418c-20230106";
exports.version = "18.3.0-www-classic-0b4f44302-20230109";
@@ -3546,4 +3546,4 @@ exports.renderToString = function(children, options) {
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
);
};
exports.version = "18.3.0-www-modern-0b974418c-20230106";
exports.version = "18.3.0-www-modern-0b4f44302-20230109";
@@ -349,7 +349,7 @@ function shouldRemoveAttributeWithWarning(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -6185,7 +6185,7 @@ function writeInitialResources(
as: "script",
integrity: integrity
});
}
} // $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
@@ -6299,6 +6299,7 @@ function writeInitialResources(
return r;
}
function writeImmediateResources(destination, resources, responseState) {
// $FlowFixMe[missing-local-annot]
function flushLinkResource(resource) {
if (!resource.flushed) {
pushLinkImpl(target, resource.props, responseState);
@@ -7582,6 +7583,7 @@ var classComponentUpdater = {
isMounted: function(inst) {
return false;
},
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var internals = get(inst);
@@ -7608,6 +7610,7 @@ var classComponentUpdater = {
}
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var internals = get(inst);
@@ -10039,7 +10042,7 @@ function renderElement(request, task, prevThenableState, type, props, ref) {
"components) or a class/function (for composite components) " +
("but got: " + (type == null ? type : typeof type) + "." + info)
);
}
} // $FlowFixMe[missing-local-annot]
function validateIterable(iterable, iteratorFn) {
{
@@ -1460,7 +1460,7 @@ function shouldRemoveAttribute(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -2671,9 +2671,12 @@ function trackValueOnNode(node) {
set = descriptor.set;
Object.defineProperty(node, valueField, {
configurable: true,
// $FlowFixMe[missing-this-annot]
get: function() {
return get.call(this);
},
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
set: function(value) {
{
checkFormFieldValueStringCoercion(value);
@@ -16035,6 +16038,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -16080,6 +16084,7 @@ var classComponentUpdater = {
entangleTransitions(root, fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -17174,6 +17179,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -21399,7 +21405,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -28111,8 +28117,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -28550,6 +28555,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -29956,7 +29962,7 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -31078,7 +31084,7 @@ function createFiberFromPortal(portal, mode, lanes) {
} // Used for stashing WIP properties to replay failed work in DEV.
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -31199,7 +31205,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
function createPortal(
children,
@@ -31874,11 +31880,12 @@ var defaultOnRecoverableError =
// In older browsers and test environments, fallback to console.error.
// eslint-disable-next-line react-internal/no-production-logging
console["error"](error);
};
}; // $FlowFixMe[missing-this-annot]
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
} // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(
children
@@ -31912,6 +31919,7 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = functio
updateContainer(children, root, null, null);
}; // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
{
@@ -32023,7 +32031,7 @@ function createRoot(container, options) {
listenToAllSupportedEvents(rootContainerElement); // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
return new ReactDOMRoot(root);
}
} // $FlowFixMe[missing-this-annot]
function ReactDOMHydrationRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -36868,6 +36876,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -36912,6 +36921,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -36928,6 +36938,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -37233,6 +37244,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -37904,7 +37917,7 @@ function registerEvents$1() {
]);
}
function createAndAccumulateChangeEvent(
function createAndAccumulateChangeEvent( // $FlowFixMe[missing-local-annot]
dispatchQueue,
inst,
nativeEvent,
@@ -38026,6 +38039,7 @@ function stopWatchingForValueChange() {
* (For IE <=9) Handles a propertychange event, sending a `change` event if
* the value of the active element has changed.
*/
// $FlowFixMe[missing-local-annot]
function handlePropertyChange(nativeEvent) {
if (nativeEvent.propertyName !== "value") {
@@ -39169,7 +39183,7 @@ function addTrappedEventListener(
// need support for such browsers.
if (isDeferredListenerForLegacyFBSupport) {
var originalListener = listener;
var originalListener = listener; // $FlowFixMe[missing-this-annot]
listener = function() {
removeEventListener(targetContainer, domEventName, unsubscribeListener);
@@ -637,7 +637,7 @@ function shouldRemoveAttribute(
}
function getPropertyInfo(name) {
return properties.hasOwnProperty(name) ? properties[name] : null;
}
} // $FlowFixMe[missing-this-annot]
function PropertyInfoRecord(
name,
@@ -2110,9 +2110,12 @@ function trackValueOnNode(node) {
set = descriptor.set;
Object.defineProperty(node, valueField, {
configurable: true,
// $FlowFixMe[missing-this-annot]
get: function() {
return get.call(this);
},
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
set: function(value) {
{
checkFormFieldValueStringCoercion(value);
@@ -7599,6 +7602,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -7643,6 +7647,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -7659,6 +7664,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -7964,6 +7970,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -8635,7 +8643,7 @@ function registerEvents$1() {
]);
}
function createAndAccumulateChangeEvent(
function createAndAccumulateChangeEvent( // $FlowFixMe[missing-local-annot]
dispatchQueue,
inst,
nativeEvent,
@@ -8757,6 +8765,7 @@ function stopWatchingForValueChange() {
* (For IE <=9) Handles a propertychange event, sending a `change` event if
* the value of the active element has changed.
*/
// $FlowFixMe[missing-local-annot]
function handlePropertyChange(nativeEvent) {
if (nativeEvent.propertyName !== "value") {
@@ -23522,6 +23531,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -23567,6 +23577,7 @@ var classComponentUpdater = {
entangleTransitions(root, fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -24629,6 +24640,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -28834,7 +28846,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -35413,8 +35425,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -35852,6 +35863,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -37258,7 +37270,7 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -38380,7 +38392,7 @@ function createFiberFromPortal(portal, mode, lanes) {
} // Used for stashing WIP properties to replay failed work in DEV.
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -38501,7 +38513,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
function createPortal(
children,
@@ -39079,11 +39091,12 @@ var defaultOnRecoverableError =
// In older browsers and test environments, fallback to console.error.
// eslint-disable-next-line react-internal/no-production-logging
console["error"](error);
};
}; // $FlowFixMe[missing-this-annot]
function ReactDOMRoot(internalRoot) {
this._internalRoot = internalRoot;
} // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = function(
children
@@ -39117,6 +39130,7 @@ ReactDOMHydrationRoot.prototype.render = ReactDOMRoot.prototype.render = functio
updateContainer(children, root, null, null);
}; // $FlowFixMe[prop-missing] found when upgrading Flow
// $FlowFixMe[missing-this-annot]
ReactDOMHydrationRoot.prototype.unmount = ReactDOMRoot.prototype.unmount = function() {
{
@@ -39228,7 +39242,7 @@ function createRoot(container, options) {
listenToAllSupportedEvents(rootContainerElement); // $FlowFixMe[invalid-constructor] Flow no longer supports calling new on functions
return new ReactDOMRoot(root);
}
} // $FlowFixMe[missing-this-annot]
function ReactDOMHydrationRoot(internalRoot) {
this._internalRoot = internalRoot;
@@ -11328,7 +11328,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1519 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-0b974418c-20230106",
version: "18.3.0-www-classic-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2048 = {
@@ -11358,7 +11358,7 @@ var internals$jscomp$inline_2048 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2049 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14847,4 +14847,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
@@ -13967,7 +13967,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1674 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-0b974418c-20230106",
version: "18.3.0-www-modern-0b4f44302-20230109",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2073 = {
@@ -13998,7 +13998,7 @@ var internals$jscomp$inline_2073 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-0b974418c-20230106"
reconcilerVersion: "18.3.0-next-0b4f44302-20230109"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2074 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14321,4 +14321,4 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-0b974418c-20230106";
exports.version = "18.3.0-next-0b4f44302-20230109";
@@ -29,7 +29,7 @@ function resolveModuleReference(bundlerConfig, moduleData) {
return ReactFlightDOMRelayClientIntegration.resolveModuleReference(
moduleData
);
}
} // $FlowFixMe[missing-local-annot]
function parseModelRecursively(response, parentObj, key, value) {
if (typeof value === "string") {
@@ -91,7 +91,7 @@ var BLOCKED = "blocked";
var RESOLVED_MODEL = "resolved_model";
var RESOLVED_MODULE = "resolved_module";
var INITIALIZED = "fulfilled";
var ERRORED = "rejected";
var ERRORED = "rejected"; // $FlowFixMe[missing-this-annot]
function Chunk(status, value, reason, response) {
this.status = status;
@@ -429,7 +429,7 @@ function createModelResolver(chunk, parentObject, key) {
deps: 1,
value: null
};
}
} // $FlowFixMe[missing-local-annot]
return function(value) {
parentObject[key] = value;
@@ -29,7 +29,7 @@ function resolveModuleReference(bundlerConfig, moduleData) {
return ReactFlightDOMRelayClientIntegration.resolveModuleReference(
moduleData
);
}
} // $FlowFixMe[missing-local-annot]
function parseModelRecursively(response, parentObj, key, value) {
if (typeof value === "string") {
@@ -91,7 +91,7 @@ var BLOCKED = "blocked";
var RESOLVED_MODEL = "resolved_model";
var RESOLVED_MODULE = "resolved_module";
var INITIALIZED = "fulfilled";
var ERRORED = "rejected";
var ERRORED = "rejected"; // $FlowFixMe[missing-this-annot]
function Chunk(status, value, reason, response) {
this.status = status;
@@ -429,7 +429,7 @@ function createModelResolver(chunk, parentObject, key) {
deps: 1,
value: null
};
}
} // $FlowFixMe[missing-local-annot]
return function(value) {
parentObject[key] = value;
@@ -1290,6 +1290,7 @@ function createRequest(
identifierPrefix: identifierPrefix || "",
identifierCount: 1,
onError: onError === undefined ? defaultErrorHandler : onError,
// $FlowFixMe[missing-this-annot]
toJSON: function(key, value) {
return resolveModelToJSON(request, this, key, value);
}
@@ -1294,6 +1294,7 @@ function createRequest(
identifierPrefix: identifierPrefix || "",
identifierCount: 1,
onError: onError === undefined ? defaultErrorHandler : onError,
// $FlowFixMe[missing-this-annot]
toJSON: function(key, value) {
return resolveModelToJSON(request, this, key, value);
}
@@ -9534,6 +9534,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -9579,6 +9580,7 @@ var classComponentUpdater = {
entangleTransitions(root, fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -10673,6 +10675,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -14613,7 +14616,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -20736,8 +20739,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -21131,6 +21133,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -22605,7 +22608,7 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -23776,7 +23779,7 @@ function createFiberFromPortal(portal, mode, lanes) {
} // Used for stashing WIP properties to replay failed work in DEV.
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -23898,7 +23901,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-classic-0b974418c-20230106";
var ReactVersion = "18.3.0-www-classic-0b4f44302-20230109";
// Might add PROFILE later.
@@ -24388,7 +24391,7 @@ function toJSON(inst) {
default:
throw new Error("Unexpected node type in toJSON: " + inst.tag);
}
}
} // $FlowFixMe[missing-local-annot]
function childrenToTree(node) {
if (!node) {
@@ -24404,7 +24407,7 @@ function childrenToTree(node) {
}
return flatten(children.map(toTree));
}
} // $FlowFixMe[missing-local-annot]
function nodeAndSiblingsArray(nodeWithSibling) {
var array = [];
@@ -24416,7 +24419,7 @@ function nodeAndSiblingsArray(nodeWithSibling) {
}
return array;
}
} // $FlowFixMe[missing-local-annot]
function flatten(arr) {
var result = [];
@@ -24769,7 +24772,7 @@ function propsMatch(props, filter) {
}
return true;
}
} // $FlowFixMe[missing-local-annot]
function onRecoverableError(error$1) {
// TODO: Expose onRecoverableError option to userspace
@@ -9534,6 +9534,7 @@ function applyDerivedStateFromProps(
var classComponentUpdater = {
isMounted: isMounted,
// $FlowFixMe[missing-local-annot]
enqueueSetState: function(inst, payload, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -9579,6 +9580,7 @@ var classComponentUpdater = {
entangleTransitions(root, fiber, lane);
}
},
// $FlowFixMe[missing-local-annot]
enqueueForceUpdate: function(inst, callback) {
var fiber = get(inst);
var eventTime = requestEventTime();
@@ -10673,6 +10675,7 @@ function createClassErrorUpdate(fiber, errorInfo, lane) {
var inst = fiber.stateNode;
if (inst !== null && typeof inst.componentDidCatch === "function") {
// $FlowFixMe[missing-this-annot]
update.callback = function callback() {
{
markFailedErrorBoundaryForHotReloading(fiber);
@@ -14613,7 +14616,7 @@ function readContext(context) {
var AbortControllerLocal =
typeof AbortController !== "undefined"
? AbortController
? AbortController // $FlowFixMe[missing-this-annot]
: function AbortControllerShim() {
var listeners = [];
var signal = (this.signal = {
@@ -20736,8 +20739,7 @@ function markRootSuspended$1(root, suspendedLanes) {
suspendedLanes = removeLanes(
suspendedLanes,
workInProgressRootInterleavedUpdatedLanes
); // $FlowFixMe[incompatible-call] found when upgrading Flow
);
markRootSuspended(root, suspendedLanes);
} // This is the entry point for synchronous tasks that don't go
// through Scheduler
@@ -21131,6 +21133,7 @@ function renderDidSuspendDelayIfPossible() {
// pinged or updated while we were rendering.
// TODO: Consider unwinding immediately, using the
// SuspendedOnHydration mechanism.
// $FlowFixMe[incompatible-call] need null check workInProgressRoot
markRootSuspended$1(workInProgressRoot, workInProgressRootRenderLanes);
}
}
@@ -22605,7 +22608,7 @@ function warnAboutRenderPhaseUpdatesInDEV(fiber) {
}
}
}
var fakeActCallbackNode = {};
var fakeActCallbackNode = {}; // $FlowFixMe[missing-local-annot]
function scheduleCallback$2(priorityLevel, callback) {
{
@@ -23776,7 +23779,7 @@ function createFiberFromPortal(portal, mode, lanes) {
} // Used for stashing WIP properties to replay failed work in DEV.
function FiberRootNode(
containerInfo,
containerInfo, // $FlowFixMe[missing-local-annot]
tag,
hydrate,
identifierPrefix,
@@ -23898,7 +23901,7 @@ function createFiberRoot(
return root;
}
var ReactVersion = "18.3.0-www-modern-0b974418c-20230106";
var ReactVersion = "18.3.0-www-modern-0b4f44302-20230109";
// Might add PROFILE later.
@@ -24388,7 +24391,7 @@ function toJSON(inst) {
default:
throw new Error("Unexpected node type in toJSON: " + inst.tag);
}
}
} // $FlowFixMe[missing-local-annot]
function childrenToTree(node) {
if (!node) {
@@ -24404,7 +24407,7 @@ function childrenToTree(node) {
}
return flatten(children.map(toTree));
}
} // $FlowFixMe[missing-local-annot]
function nodeAndSiblingsArray(nodeWithSibling) {
var array = [];
@@ -24416,7 +24419,7 @@ function nodeAndSiblingsArray(nodeWithSibling) {
}
return array;
}
} // $FlowFixMe[missing-local-annot]
function flatten(arr) {
var result = [];
@@ -24769,7 +24772,7 @@ function propsMatch(props, filter) {
}
return true;
}
} // $FlowFixMe[missing-local-annot]
function onRecoverableError(error$1) {
// TODO: Expose onRecoverableError option to userspace
@@ -421,6 +421,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -465,6 +466,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -481,6 +483,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -778,6 +781,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -421,6 +421,7 @@ function createSyntheticEvent(Interface) {
* normalizing browser quirks. Subclasses do not necessarily have to implement a
* DOM interface; custom application-specific events can also subclass this.
*/
// $FlowFixMe[missing-this-annot]
function SyntheticBaseEvent(
reactName,
reactEventType,
@@ -465,6 +466,7 @@ function createSyntheticEvent(Interface) {
} // $FlowFixMe[prop-missing] found when upgrading Flow
assign(SyntheticBaseEvent.prototype, {
// $FlowFixMe[missing-this-annot]
preventDefault: function() {
this.defaultPrevented = true;
var event = this.nativeEvent;
@@ -481,6 +483,7 @@ function createSyntheticEvent(Interface) {
this.isDefaultPrevented = functionThatReturnsTrue;
},
// $FlowFixMe[missing-this-annot]
stopPropagation: function() {
var event = this.nativeEvent;
@@ -778,6 +781,8 @@ var modifierKeyToProp = {
}; // Older browsers (Safari <= 10, iOS Safari <= 10.2) do not support
// getModifierState. If getModifierState is not supported, we map it to a set of
// modifier keys exposed by the event. In this case, Lock-keys are not supported.
// $FlowFixMe[missing-local-annot]
// $FlowFixMe[missing-this-annot]
function modifierStateGetter(keyArg) {
var syntheticEvent = this;
@@ -542,6 +542,7 @@ function unstable_next(eventHandler) {
function unstable_wrapCallback(callback) {
var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return]
// $FlowFixMe[missing-this-annot]
return function() {
// This is a fork of runWithPriority, inlined for performance.
@@ -542,6 +542,7 @@ function unstable_next(eventHandler) {
function unstable_wrapCallback(callback) {
var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return]
// $FlowFixMe[missing-this-annot]
return function() {
// This is a fork of runWithPriority, inlined for performance.
@@ -516,6 +516,7 @@ function unstable_next(eventHandler) {
function unstable_wrapCallback(callback) {
var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return]
// $FlowFixMe[missing-this-annot]
return function() {
// This is a fork of runWithPriority, inlined for performance.
@@ -516,6 +516,7 @@ function unstable_next(eventHandler) {
function unstable_wrapCallback(callback) {
var parentPriorityLevel = currentPriorityLevel; // $FlowFixMe[incompatible-return]
// $FlowFixMe[missing-this-annot]
return function() {
// This is a fork of runWithPriority, inlined for performance.