From 30755244ec41ca337b3d51ec2aa1e07211b31b85 Mon Sep 17 00:00:00 2001 From: kassens Date: Mon, 9 Jan 2023 20:54:59 +0000 Subject: [PATCH] [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 [0b4f443020af386f2b48c47c074cb504ed672dc8](https://github.com/facebook/react/commit/0b4f443020af386f2b48c47c074cb504ed672dc8) [View git log for this commit](https://github.com/facebook/react/commits/0b4f443020af386f2b48c47c074cb504ed672dc8) --- compiled/facebook-www/REVISION | 2 +- compiled/facebook-www/REVISION_TRANSFORMS | 2 +- compiled/facebook-www/React-dev.classic.js | 6 ++-- compiled/facebook-www/React-dev.modern.js | 6 ++-- compiled/facebook-www/React-prod.classic.js | 2 +- compiled/facebook-www/React-prod.modern.js | 2 +- .../facebook-www/React-profiling.classic.js | 2 +- .../facebook-www/React-profiling.modern.js | 2 +- compiled/facebook-www/ReactART-dev.classic.js | 15 ++++---- compiled/facebook-www/ReactART-dev.modern.js | 15 ++++---- .../facebook-www/ReactART-prod.classic.js | 4 +-- compiled/facebook-www/ReactART-prod.modern.js | 4 +-- compiled/facebook-www/ReactDOM-dev.classic.js | 36 +++++++++++++------ compiled/facebook-www/ReactDOM-dev.modern.js | 36 +++++++++++++------ .../facebook-www/ReactDOM-prod.classic.js | 6 ++-- compiled/facebook-www/ReactDOM-prod.modern.js | 6 ++-- .../ReactDOM-profiling.classic.js | 6 ++-- .../facebook-www/ReactDOM-profiling.modern.js | 6 ++-- .../ReactDOMServer-dev.classic.js | 13 ++++--- .../facebook-www/ReactDOMServer-dev.modern.js | 13 ++++--- .../ReactDOMServer-prod.classic.js | 2 +- .../ReactDOMServer-prod.modern.js | 2 +- .../ReactDOMServerStreaming-dev.modern.js | 9 +++-- .../ReactDOMTesting-dev.classic.js | 36 +++++++++++++------ .../ReactDOMTesting-dev.modern.js | 34 ++++++++++++------ .../ReactDOMTesting-prod.classic.js | 6 ++-- .../ReactDOMTesting-prod.modern.js | 6 ++-- .../ReactFlightDOMRelayClient-dev.classic.js | 6 ++-- .../ReactFlightDOMRelayClient-dev.modern.js | 6 ++-- .../ReactFlightDOMRelayServer-dev.classic.js | 1 + .../ReactFlightDOMRelayServer-dev.modern.js | 1 + .../ReactTestRenderer-dev.classic.js | 23 ++++++------ .../ReactTestRenderer-dev.modern.js | 23 ++++++------ .../ReactTestUtils-dev.classic.js | 5 +++ .../facebook-www/ReactTestUtils-dev.modern.js | 5 +++ .../facebook-www/Scheduler-dev.classic.js | 1 + compiled/facebook-www/Scheduler-dev.modern.js | 1 + .../facebook-www/SchedulerMock-dev.classic.js | 1 + .../facebook-www/SchedulerMock-dev.modern.js | 1 + 39 files changed, 227 insertions(+), 126 deletions(-) diff --git a/compiled/facebook-www/REVISION b/compiled/facebook-www/REVISION index af3df7169d..f7330c33a2 100644 --- a/compiled/facebook-www/REVISION +++ b/compiled/facebook-www/REVISION @@ -1 +1 @@ -0b974418c9a56f6c560298560265dcf4b65784bc +0b4f443020af386f2b48c47c074cb504ed672dc8 diff --git a/compiled/facebook-www/REVISION_TRANSFORMS b/compiled/facebook-www/REVISION_TRANSFORMS index af3df7169d..f7330c33a2 100644 --- a/compiled/facebook-www/REVISION_TRANSFORMS +++ b/compiled/facebook-www/REVISION_TRANSFORMS @@ -1 +1 @@ -0b974418c9a56f6c560298560265dcf4b65784bc +0b4f443020af386f2b48c47c074cb504ed672dc8 diff --git a/compiled/facebook-www/React-dev.classic.js b/compiled/facebook-www/React-dev.classic.js index 4b0478e44e..331891adb3 100644 --- a/compiled/facebook-www/React-dev.classic.js +++ b/compiled/facebook-www/React-dev.classic.js @@ -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 " + diff --git a/compiled/facebook-www/React-dev.modern.js b/compiled/facebook-www/React-dev.modern.js index d060ca97ee..6afacdb58c 100644 --- a/compiled/facebook-www/React-dev.modern.js +++ b/compiled/facebook-www/React-dev.modern.js @@ -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 " + diff --git a/compiled/facebook-www/React-prod.classic.js b/compiled/facebook-www/React-prod.classic.js index a042a7fc37..a7ee2de394 100644 --- a/compiled/facebook-www/React-prod.classic.js +++ b/compiled/facebook-www/React-prod.classic.js @@ -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"; diff --git a/compiled/facebook-www/React-prod.modern.js b/compiled/facebook-www/React-prod.modern.js index a73171deda..c4fc3cabcd 100644 --- a/compiled/facebook-www/React-prod.modern.js +++ b/compiled/facebook-www/React-prod.modern.js @@ -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"; diff --git a/compiled/facebook-www/React-profiling.classic.js b/compiled/facebook-www/React-profiling.classic.js index 0bdc9be552..c15e7b6de9 100644 --- a/compiled/facebook-www/React-profiling.classic.js +++ b/compiled/facebook-www/React-profiling.classic.js @@ -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 ( diff --git a/compiled/facebook-www/React-profiling.modern.js b/compiled/facebook-www/React-profiling.modern.js index adf6dbfde6..09a726f190 100644 --- a/compiled/facebook-www/React-profiling.modern.js +++ b/compiled/facebook-www/React-profiling.modern.js @@ -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 ( diff --git a/compiled/facebook-www/ReactART-dev.classic.js b/compiled/facebook-www/ReactART-dev.classic.js index 54e4495b0c..3b9302031d 100644 --- a/compiled/facebook-www/ReactART-dev.classic.js +++ b/compiled/facebook-www/ReactART-dev.classic.js @@ -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, diff --git a/compiled/facebook-www/ReactART-dev.modern.js b/compiled/facebook-www/ReactART-dev.modern.js index 3e77a085fa..f05256c419 100644 --- a/compiled/facebook-www/ReactART-dev.modern.js +++ b/compiled/facebook-www/ReactART-dev.modern.js @@ -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, diff --git a/compiled/facebook-www/ReactART-prod.classic.js b/compiled/facebook-www/ReactART-prod.classic.js index 4c221910f8..a33e378d98 100644 --- a/compiled/facebook-www/ReactART-prod.classic.js +++ b/compiled/facebook-www/ReactART-prod.classic.js @@ -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__; diff --git a/compiled/facebook-www/ReactART-prod.modern.js b/compiled/facebook-www/ReactART-prod.modern.js index c3977bf447..bc60aba9ce 100644 --- a/compiled/facebook-www/ReactART-prod.modern.js +++ b/compiled/facebook-www/ReactART-prod.modern.js @@ -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__; diff --git a/compiled/facebook-www/ReactDOM-dev.classic.js b/compiled/facebook-www/ReactDOM-dev.classic.js index e3a1f76a99..a95238f311 100644 --- a/compiled/facebook-www/ReactDOM-dev.classic.js +++ b/compiled/facebook-www/ReactDOM-dev.classic.js @@ -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; diff --git a/compiled/facebook-www/ReactDOM-dev.modern.js b/compiled/facebook-www/ReactDOM-dev.modern.js index 5640650255..2391c93e08 100644 --- a/compiled/facebook-www/ReactDOM-dev.modern.js +++ b/compiled/facebook-www/ReactDOM-dev.modern.js @@ -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; diff --git a/compiled/facebook-www/ReactDOM-prod.classic.js b/compiled/facebook-www/ReactDOM-prod.classic.js index 09519f32fc..fe0417eb43 100644 --- a/compiled/facebook-www/ReactDOM-prod.classic.js +++ b/compiled/facebook-www/ReactDOM-prod.classic.js @@ -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"; diff --git a/compiled/facebook-www/ReactDOM-prod.modern.js b/compiled/facebook-www/ReactDOM-prod.modern.js index 39d194d353..237acb5b5b 100644 --- a/compiled/facebook-www/ReactDOM-prod.modern.js +++ b/compiled/facebook-www/ReactDOM-prod.modern.js @@ -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"; diff --git a/compiled/facebook-www/ReactDOM-profiling.classic.js b/compiled/facebook-www/ReactDOM-profiling.classic.js index 86f13bbb0f..85bef2e8f2 100644 --- a/compiled/facebook-www/ReactDOM-profiling.classic.js +++ b/compiled/facebook-www/ReactDOM-profiling.classic.js @@ -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 ( diff --git a/compiled/facebook-www/ReactDOM-profiling.modern.js b/compiled/facebook-www/ReactDOM-profiling.modern.js index 726aa06223..b10ef346b6 100644 --- a/compiled/facebook-www/ReactDOM-profiling.modern.js +++ b/compiled/facebook-www/ReactDOM-profiling.modern.js @@ -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 ( diff --git a/compiled/facebook-www/ReactDOMServer-dev.classic.js b/compiled/facebook-www/ReactDOMServer-dev.classic.js index 4a0528dd12..0329f369c3 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.classic.js +++ b/compiled/facebook-www/ReactDOMServer-dev.classic.js @@ -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; diff --git a/compiled/facebook-www/ReactDOMServer-dev.modern.js b/compiled/facebook-www/ReactDOMServer-dev.modern.js index d156ffd28a..adae1465ee 100644 --- a/compiled/facebook-www/ReactDOMServer-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServer-dev.modern.js @@ -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; diff --git a/compiled/facebook-www/ReactDOMServer-prod.classic.js b/compiled/facebook-www/ReactDOMServer-prod.classic.js index 1ac2a639ea..962aebc5e8 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.classic.js +++ b/compiled/facebook-www/ReactDOMServer-prod.classic.js @@ -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"; diff --git a/compiled/facebook-www/ReactDOMServer-prod.modern.js b/compiled/facebook-www/ReactDOMServer-prod.modern.js index ed5ab83fb0..b120d90c0b 100644 --- a/compiled/facebook-www/ReactDOMServer-prod.modern.js +++ b/compiled/facebook-www/ReactDOMServer-prod.modern.js @@ -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"; diff --git a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js index 34c8af546e..3f7ce27a2b 100644 --- a/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js +++ b/compiled/facebook-www/ReactDOMServerStreaming-dev.modern.js @@ -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) { { diff --git a/compiled/facebook-www/ReactDOMTesting-dev.classic.js b/compiled/facebook-www/ReactDOMTesting-dev.classic.js index d4d9a9fb0e..5b4898eb3c 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.classic.js @@ -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); diff --git a/compiled/facebook-www/ReactDOMTesting-dev.modern.js b/compiled/facebook-www/ReactDOMTesting-dev.modern.js index 53c6cd802d..8b1f7900eb 100644 --- a/compiled/facebook-www/ReactDOMTesting-dev.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-dev.modern.js @@ -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; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.classic.js b/compiled/facebook-www/ReactDOMTesting-prod.classic.js index 9b1afebef0..b69af51a18 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.classic.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.classic.js @@ -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"; diff --git a/compiled/facebook-www/ReactDOMTesting-prod.modern.js b/compiled/facebook-www/ReactDOMTesting-prod.modern.js index 65696ed4a9..6f55007786 100644 --- a/compiled/facebook-www/ReactDOMTesting-prod.modern.js +++ b/compiled/facebook-www/ReactDOMTesting-prod.modern.js @@ -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"; diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js index 8b682e7480..a71989a584 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.classic.js @@ -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; diff --git a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js index 8b682e7480..a71989a584 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayClient-dev.modern.js @@ -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; diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js index 3ceb5fedb1..58834286f7 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.classic.js @@ -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); } diff --git a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js index 2ced77b3a2..383cd6ad95 100644 --- a/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js +++ b/compiled/facebook-www/ReactFlightDOMRelayServer-dev.modern.js @@ -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); } diff --git a/compiled/facebook-www/ReactTestRenderer-dev.classic.js b/compiled/facebook-www/ReactTestRenderer-dev.classic.js index 9a9f047f27..e9fed4bc5a 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.classic.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.classic.js @@ -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 diff --git a/compiled/facebook-www/ReactTestRenderer-dev.modern.js b/compiled/facebook-www/ReactTestRenderer-dev.modern.js index 0bfb672e45..9a5ffa5bc4 100644 --- a/compiled/facebook-www/ReactTestRenderer-dev.modern.js +++ b/compiled/facebook-www/ReactTestRenderer-dev.modern.js @@ -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 diff --git a/compiled/facebook-www/ReactTestUtils-dev.classic.js b/compiled/facebook-www/ReactTestUtils-dev.classic.js index d89bae4769..f4a629910f 100644 --- a/compiled/facebook-www/ReactTestUtils-dev.classic.js +++ b/compiled/facebook-www/ReactTestUtils-dev.classic.js @@ -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; diff --git a/compiled/facebook-www/ReactTestUtils-dev.modern.js b/compiled/facebook-www/ReactTestUtils-dev.modern.js index 04a91ec992..5296bc52c9 100644 --- a/compiled/facebook-www/ReactTestUtils-dev.modern.js +++ b/compiled/facebook-www/ReactTestUtils-dev.modern.js @@ -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; diff --git a/compiled/facebook-www/Scheduler-dev.classic.js b/compiled/facebook-www/Scheduler-dev.classic.js index 2c2251cff8..77f7dc960a 100644 --- a/compiled/facebook-www/Scheduler-dev.classic.js +++ b/compiled/facebook-www/Scheduler-dev.classic.js @@ -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. diff --git a/compiled/facebook-www/Scheduler-dev.modern.js b/compiled/facebook-www/Scheduler-dev.modern.js index 2c2251cff8..77f7dc960a 100644 --- a/compiled/facebook-www/Scheduler-dev.modern.js +++ b/compiled/facebook-www/Scheduler-dev.modern.js @@ -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. diff --git a/compiled/facebook-www/SchedulerMock-dev.classic.js b/compiled/facebook-www/SchedulerMock-dev.classic.js index 9bf5767942..19167a1c70 100644 --- a/compiled/facebook-www/SchedulerMock-dev.classic.js +++ b/compiled/facebook-www/SchedulerMock-dev.classic.js @@ -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. diff --git a/compiled/facebook-www/SchedulerMock-dev.modern.js b/compiled/facebook-www/SchedulerMock-dev.modern.js index 9bf5767942..19167a1c70 100644 --- a/compiled/facebook-www/SchedulerMock-dev.modern.js +++ b/compiled/facebook-www/SchedulerMock-dev.modern.js @@ -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.