Rename HostConfig files to FiberConfig to clarify they are configs fo… (#26592)
part of https://github.com/facebook/react/pull/26571 merging separately to improve tracking of files renames in git Rename HostConfig files to FiberConfig to clarify they are configs for Fiber and not Fizz/Flight. This better conforms to the naming used in Flight and now Fizz of `ReactFlightServerConfig` and `ReactFizzConfig`
Josh Story committed
Apr 10, 2023 at 14:58 UTC
b55d31955982851284bb437a5187a6c56e366539
74 files changed
+167
-167
packages/react-art/src/ReactFiberConfigART.js
renamed
+7
-7
@@ -238,13 +238,13 @@ function applyTextProps(instance, props, prevProps = {}) {
238
}
239
}
240
241
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoPersistence';
242
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoHydration';
243
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoScopes';
244
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoTestSelectors';
245
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMicrotasks';
246
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoResources';
247
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoSingletons';
241
+export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence';
242
+export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';
243
+export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes';
244
+export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors';
245
+export * from 'react-reconciler/src/ReactFiberConfigWithNoMicrotasks';
246
+export * from 'react-reconciler/src/ReactFiberConfigWithNoResources';
247
+export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
248
249
export function appendInitialChild(parentInstance, child) {
250
if (typeof child === 'string') {
packages/react-dom-bindings/src/client/ReactDOMComponentTree.js
+2
-2
@@ -21,7 +21,7 @@ import type {
21
Props,
22
HoistableRoot,
23
RootResources,
24
-} from './ReactDOMHostConfig';
24
+} from './ReactFiberConfigDOM';
25
26
import {
27
HostComponent,
@@ -32,7 +32,7 @@ import {
32
SuspenseComponent,
33
} from 'react-reconciler/src/ReactWorkTags';
34
35
-import {getParentSuspenseInstance} from './ReactDOMHostConfig';
35
+import {getParentSuspenseInstance} from './ReactFiberConfigDOM';
36
37
import {
38
enableScopeAPI,
packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js
renamed
+1
-1
@@ -179,7 +179,7 @@ const STYLE = 'style';
179
let eventsEnabled: ?boolean = null;
180
let selectionInformation: null | SelectionInformation = null;
181
182
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoPersistence';
182
+export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence';
183
184
function getOwnerDocumentFromRootContainer(
185
rootContainerElement: Element | Document | DocumentFragment,
packages/react-dom-bindings/src/events/ReactDOMEventListener.js
+1
-1
@@ -10,7 +10,7 @@
10
import type {EventPriority} from 'react-reconciler/src/ReactEventPriorities';
11
import type {AnyNativeEvent} from '../events/PluginModuleType';
12
import type {Fiber, FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
13
-import type {Container, SuspenseInstance} from '../client/ReactDOMHostConfig';
13
+import type {Container, SuspenseInstance} from '../client/ReactFiberConfigDOM';
14
import type {DOMEventName} from '../events/DOMEventNames';
15
16
import {
packages/react-dom-bindings/src/events/ReactDOMEventReplaying.js
+1
-1
@@ -8,7 +8,7 @@
8
*/
9
10
import type {AnyNativeEvent} from '../events/PluginModuleType';
11
-import type {Container, SuspenseInstance} from '../client/ReactDOMHostConfig';
11
+import type {Container, SuspenseInstance} from '../client/ReactFiberConfigDOM';
12
import type {DOMEventName} from '../events/DOMEventNames';
13
import type {EventSystemFlags} from './EventSystemFlags';
14
import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
packages/react-dom-bindings/src/events/getListener.js
+1
-1
@@ -7,7 +7,7 @@
7
*/
8
9
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
10
-import type {Props} from '../client/ReactDOMHostConfig';
10
+import type {Props} from '../client/ReactFiberConfigDOM';
11
12
import {getFiberCurrentPropsFromNode} from '../client/ReactDOMComponentTree';
13
packages/react-dom-bindings/src/events/plugins/ChangeEventPlugin.js
+1
-1
@@ -6,7 +6,7 @@
6
*
7
* @flow
8
*/
9
-import type {TextInstance, Instance} from '../../client/ReactDOMHostConfig';
9
+import type {TextInstance, Instance} from '../../client/ReactFiberConfigDOM';
10
import type {AnyNativeEvent} from '../PluginModuleType';
11
import type {DOMEventName} from '../DOMEventNames';
12
import type {DispatchQueue} from '../DOMPluginEventSystem';
packages/react-dom-bindings/src/server/fizz-instruction-set/ReactDOMFizzInstructionSetShared.js
+1
-1
@@ -63,7 +63,7 @@ export function completeBoundary(suspenseBoundaryID, contentID, errorDigest) {
63
if (!errorDigest) {
64
// Clear all the existing children. This is complicated because
65
// there can be embedded Suspense boundaries in the fallback.
66
- // This is similar to clearSuspenseBoundary in ReactDOMHostConfig.
66
+ // This is similar to clearSuspenseBoundary in ReactFiberConfigDOM.
67
// TODO: We could avoid this if we never emitted suspense boundaries in fallback trees.
68
// They never hydrate anyway. However, currently we support incrementally loading the fallback.
69
const parentInstance = suspenseNode.parentNode;
packages/react-dom/src/client/ReactDOM.js
+1
-1
@@ -11,7 +11,7 @@ import type {ReactNodeList} from 'shared/ReactTypes';
11
import type {
12
Container,
13
PublicInstance,
14
-} from 'react-dom-bindings/src/client/ReactDOMHostConfig';
14
+} from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
15
import type {
16
RootType,
17
HydrateRootOptions,
packages/react-dom/src/client/ReactDOMLegacy.js
+2
-2
@@ -10,11 +10,11 @@
10
import type {
11
Container,
12
PublicInstance,
13
-} from 'react-dom-bindings/src/client/ReactDOMHostConfig';
13
+} from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
14
import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
15
import type {ReactNodeList} from 'shared/ReactTypes';
16
17
-import {clearContainer} from 'react-dom-bindings/src/client/ReactDOMHostConfig';
17
+import {clearContainer} from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
18
import {
19
getInstanceFromNode,
20
isContainerMarkedAsRoot,
packages/react-dom/src/client/ReactDOMRoot.js
+1
-1
@@ -15,7 +15,7 @@ import type {
15
16
import ReactDOMSharedInternals from '../ReactDOMSharedInternals';
17
const {Dispatcher} = ReactDOMSharedInternals;
18
-import {ReactDOMClientDispatcher} from 'react-dom-bindings/src/client/ReactDOMHostConfig';
18
+import {ReactDOMClientDispatcher} from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
19
import {queueExplicitHydrationTarget} from 'react-dom-bindings/src/events/ReactDOMEventReplaying';
20
import {REACT_ELEMENT_TYPE} from 'shared/ReactSymbols';
21
import {
packages/react-native-renderer/src/ReactFabric.js
+1
-1
@@ -40,7 +40,7 @@ import {
40
sendAccessibilityEvent,
41
getNodeFromInternalInstanceHandle,
42
} from './ReactNativePublicCompat';
43
-import {getPublicInstanceFromInternalInstanceHandle} from './ReactFabricHostConfig';
43
+import {getPublicInstanceFromInternalInstanceHandle} from './ReactFiberConfigFabric';
44
45
// $FlowFixMe[missing-local-annot]
46
function onRecoverableError(error) {
packages/react-native-renderer/src/ReactFabricComponentTree.js
+2
-2
@@ -12,9 +12,9 @@ import type {
12
Instance,
13
Props,
14
TextInstance,
15
-} from './ReactFabricHostConfig';
15
+} from './ReactFiberConfigFabric';
16
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
17
-import {getPublicInstance} from './ReactFabricHostConfig';
17
+import {getPublicInstance} from './ReactFiberConfigFabric';
18
19
// `node` is typed incorrectly here. The proper type should be `PublicInstance`.
20
// This is ok in DOM because they types are interchangeable, but in React Native
packages/react-native-renderer/src/ReactFabricEventEmitter.js
+1
-1
@@ -29,7 +29,7 @@ import getListener from './ReactNativeGetListener';
29
import {runEventsInBatch} from './legacy-events/EventBatching';
30
31
import {RawEventEmitter} from 'react-native/Libraries/ReactPrivate/ReactNativePrivateInterface';
32
-import {getPublicInstance} from './ReactFabricHostConfig';
32
+import {getPublicInstance} from './ReactFiberConfigFabric';
33
34
export {getListener, registrationNameModules as registrationNames};
35
packages/react-native-renderer/src/ReactFiberConfigFabric.js
renamed
+7
-7
@@ -108,13 +108,13 @@ if (registerEventHandler) {
108
registerEventHandler(dispatchEvent);
109
}
110
111
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMutation';
112
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoHydration';
113
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoScopes';
114
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoTestSelectors';
115
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMicrotasks';
116
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoResources';
117
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoSingletons';
111
+export * from 'react-reconciler/src/ReactFiberConfigWithNoMutation';
112
+export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';
113
+export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes';
114
+export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors';
115
+export * from 'react-reconciler/src/ReactFiberConfigWithNoMicrotasks';
116
+export * from 'react-reconciler/src/ReactFiberConfigWithNoResources';
117
+export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
118
119
export function appendInitialChild(
120
parentInstance: Instance,
packages/react-native-renderer/src/ReactFiberConfigNative.js
renamed
+7
-7
@@ -84,13 +84,13 @@ function recursivelyUncacheFiberNode(node: Instance | TextInstance) {
84
}
85
}
86
87
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoPersistence';
88
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoHydration';
89
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoScopes';
90
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoTestSelectors';
91
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMicrotasks';
92
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoResources';
93
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoSingletons';
87
+export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence';
88
+export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';
89
+export * from 'react-reconciler/src/ReactFiberConfigWithNoScopes';
90
+export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors';
91
+export * from 'react-reconciler/src/ReactFiberConfigWithNoMicrotasks';
92
+export * from 'react-reconciler/src/ReactFiberConfigWithNoResources';
93
+export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
94
95
export function appendInitialChild(
96
parentInstance: Instance,
packages/react-native-renderer/src/ReactNativeFiberHostComponent.js
+1
-1
@@ -16,7 +16,7 @@ import type {
16
INativeMethods,
17
ViewConfig,
18
} from './ReactNativeTypes';
19
-import type {Instance} from './ReactNativeHostConfig';
19
+import type {Instance} from './ReactFiberConfigNative';
20
21
// Modules provided by RN:
22
import {
packages/react-reconciler/README.md
+7
-7
@@ -51,15 +51,15 @@ const HostConfig = {
51
* **[Building a simple custom renderer to DOM](https://medium.com/@agent_hunt/hello-world-custom-react-renderer-9a95b7cd04bc)**
52
* **[Building a simple custom renderer to native](https://medium.com/@agent_hunt/introduction-to-react-native-renderers-aka-react-native-is-the-java-and-react-native-renderers-are-828a0022f433)**
53
54
-The full list of supported methods [can be found here](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberHostConfig.custom.js). For their signatures, we recommend looking at specific examples below.
54
+The full list of supported methods [can be found here](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberConfig.custom.js). For their signatures, we recommend looking at specific examples below.
55
56
The React repository includes several renderers. Each of them has its own host config.
57
58
The examples in the React repository are declared a bit differently than a third-party renderer would be. In particular, the `HostConfig` object mentioned above is never explicitly declared, and instead is a *module* in our code. However, its exports correspond directly to properties on a `HostConfig` object you'd need to declare in your code:
59
60
-* [React ART](https://github.com/facebook/react/blob/main/packages/react-art/src/ReactART.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-art/src/ReactARTHostConfig.js)
61
-* [React DOM](https://github.com/facebook/react/blob/main/packages/react-dom/src/client/ReactDOM.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-dom-bindings/src/client/ReactDOMHostConfig.js)
62
-* [React Native](https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactNativeRenderer.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactNativeHostConfig.js)
60
+* [React ART](https://github.com/facebook/react/blob/main/packages/react-art/src/ReactART.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-art/src/ReactFiberConfigART.js)
61
+* [React DOM](https://github.com/facebook/react/blob/main/packages/react-dom/src/client/ReactDOM.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-dom-bindings/src/client/ReactFiberConfigDOM.js)
62
+* [React Native](https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactNativeRenderer.js) and its [host config](https://github.com/facebook/react/blob/main/packages/react-native-renderer/src/ReactFiberConfigNative.js)
63
64
If these links break please file an issue and we’ll fix them. They intentionally link to the latest versions since the API is still evolving. If you have more questions please file an issue and we’ll try to help!
65
@@ -240,7 +240,7 @@ The constant you return depends on which event, if any, is being handled right n
240
241
* **Other events / No active event:** In all other cases, return `DefaultEventPriority`. This tells React that this event is considered background work, and interactive events will be prioritized over it.
242
243
-You can consult the `getCurrentEventPriority()` implementation in `ReactDOMHostConfig.js` for a reference implementation.
243
+You can consult the `getCurrentEventPriority()` implementation in `ReactFiberConfigDOM.js` for a reference implementation.
244
245
### Mutation Methods
246
@@ -328,10 +328,10 @@ This method should mutate the `container` root node and remove all children from
328
329
### Persistence Methods
330
331
-If you use the persistent mode instead of the mutation mode, you would still need the "Core Methods". However, instead of the Mutation Methods above you will implement a different set of methods that performs cloning nodes and replacing them at the root level. You can find a list of them in the "Persistence" section [listed in this file](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberHostConfig.custom.js). File an issue if you need help.
331
+If you use the persistent mode instead of the mutation mode, you would still need the "Core Methods". However, instead of the Mutation Methods above you will implement a different set of methods that performs cloning nodes and replacing them at the root level. You can find a list of them in the "Persistence" section [listed in this file](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberConfig.custom.js). File an issue if you need help.
332
333
### Hydration Methods
334
335
You can optionally implement hydration to "attach" to the existing tree during the initial render instead of creating it from scratch. For example, the DOM renderer uses this to attach to an HTML markup.
336
337
-To support hydration, you need to declare `supportsHydration: true` and then implement the methods in the "Hydration" section [listed in this file](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberHostConfig.custom.js). File an issue if you need help.
337
+To support hydration, you need to declare `supportsHydration: true` and then implement the methods in the "Hydration" section [listed in this file](https://github.com/facebook/react/blob/main/packages/react-reconciler/src/forks/ReactFiberConfig.custom.js). File an issue if you need help.
packages/react-reconciler/src/ReactFiber.js
+2
-2
@@ -14,7 +14,7 @@ import type {RootTag} from './ReactRootTags';
14
import type {WorkTag} from './ReactWorkTags';
15
import type {TypeOfMode} from './ReactTypeOfMode';
16
import type {Lanes} from './ReactFiberLane';
17
-import type {SuspenseInstance} from './ReactFiberHostConfig';
17
+import type {SuspenseInstance} from './ReactFiberConfig';
18
import type {
19
OffscreenProps,
20
OffscreenInstance,
@@ -26,7 +26,7 @@ import {
26
supportsSingletons,
27
isHostHoistableType,
28
isHostSingletonType,
29
-} from './ReactFiberHostConfig';
29
+} from './ReactFiberConfig';
30
import {
31
createRootStrictEffectsByDefault,
32
enableCache,
packages/react-reconciler/src/ReactFiberAct.js
+1
-1
@@ -11,7 +11,7 @@ import type {Fiber} from './ReactFiber';
11
12
import ReactSharedInternals from 'shared/ReactSharedInternals';
13
14
-import {warnsIfNotActing} from './ReactFiberHostConfig';
14
+import {warnsIfNotActing} from './ReactFiberConfig';
15
16
const {ReactCurrentActQueue} = ReactSharedInternals;
17
packages/react-reconciler/src/ReactFiberBeginWork.js
+2
-2
@@ -168,8 +168,8 @@ import {
168
isPrimaryRenderer,
169
getResource,
170
createHoistableInstance,
171
-} from './ReactFiberHostConfig';
172
-import type {SuspenseInstance} from './ReactFiberHostConfig';
171
+} from './ReactFiberConfig';
172
+import type {SuspenseInstance} from './ReactFiberConfig';
173
import {shouldError, shouldSuspend} from './ReactFiberReconciler';
174
import {
175
pushHostContext,
packages/react-reconciler/src/ReactFiberCommitWork.js
+2
-2
@@ -15,7 +15,7 @@ import type {
15
ChildSet,
16
UpdatePayload,
17
HoistableRoot,
18
-} from './ReactFiberHostConfig';
18
+} from './ReactFiberConfig';
19
import type {Fiber, FiberRoot} from './ReactInternalTypes';
20
import type {Lanes} from './ReactFiberLane';
21
import {NoTimestamp, SyncLane} from './ReactFiberLane';
@@ -162,7 +162,7 @@ import {
162
prepareToCommitHoistables,
163
suspendInstance,
164
suspendResource,
165
-} from './ReactFiberHostConfig';
165
+} from './ReactFiberConfig';
166
import {
167
captureCommitPhaseError,
168
resolveRetryWakeable,
packages/react-reconciler/src/ReactFiberCompleteWork.js
+2
-2
@@ -18,7 +18,7 @@ import type {
18
Container,
19
ChildSet,
20
Resource,
21
-} from './ReactFiberHostConfig';
21
+} from './ReactFiberConfig';
22
import type {
23
SuspenseState,
24
SuspenseListRenderState,
@@ -115,7 +115,7 @@ import {
115
mayResourceSuspendCommit,
116
preloadInstance,
117
preloadResource,
118
-} from './ReactFiberHostConfig';
118
+} from './ReactFiberConfig';
119
import {
120
getRootHostContainer,
121
popHostContext,
packages/react-reconciler/src/ReactFiberConfig.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoHydration.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoMicrotasks.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoMutation.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoPersistence.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoResources.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoScopes.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoSingletons.js
renamed
packages/react-reconciler/src/ReactFiberConfigWithNoTestSelectors.js
renamed
packages/react-reconciler/src/ReactFiberHostContext.js
+2
-2
@@ -9,9 +9,9 @@
9
10
import type {Fiber} from './ReactInternalTypes';
11
import type {StackCursor} from './ReactFiberStack';
12
-import type {Container, HostContext} from './ReactFiberHostConfig';
12
+import type {Container, HostContext} from './ReactFiberConfig';
13
14
-import {getChildHostContext, getRootHostContext} from './ReactFiberHostConfig';
14
+import {getChildHostContext, getRootHostContext} from './ReactFiberConfig';
15
import {createCursor, push, pop} from './ReactFiberStack';
16
17
const contextStackCursor: StackCursor<HostContext | null> = createCursor(null);
packages/react-reconciler/src/ReactFiberHotReloading.js
+2
-2
@@ -11,7 +11,7 @@
11
12
import type {ReactElement} from 'shared/ReactElementType';
13
import type {Fiber, FiberRoot} from './ReactInternalTypes';
14
-import type {Instance} from './ReactFiberHostConfig';
14
+import type {Instance} from './ReactFiberConfig';
15
import type {ReactNodeList} from 'shared/ReactTypes';
16
17
import {enableHostSingletons, enableFloat} from 'shared/ReactFeatureFlags';
@@ -41,7 +41,7 @@ import {
41
REACT_MEMO_TYPE,
42
REACT_LAZY_TYPE,
43
} from 'shared/ReactSymbols';
44
-import {supportsSingletons} from './ReactFiberHostConfig';
44
+import {supportsSingletons} from './ReactFiberConfig';
45
46
export type Family = {
47
current: any,
packages/react-reconciler/src/ReactFiberHydrationContext.js
+2
-2
@@ -16,7 +16,7 @@ import type {
16
SuspenseInstance,
17
Container,
18
HostContext,
19
-} from './ReactFiberHostConfig';
19
+} from './ReactFiberConfig';
20
import type {SuspenseState} from './ReactFiberSuspenseComponent';
21
import type {TreeContext} from './ReactFiberTreeContext';
22
import type {CapturedValue} from './ReactCapturedValue';
@@ -81,7 +81,7 @@ import {
81
canHydrateSuspenseInstance,
82
isHydratableType,
83
isHydratableText,
84
-} from './ReactFiberHostConfig';
84
+} from './ReactFiberConfig';
85
import {OffscreenLane} from './ReactFiberLane';
86
import {
87
getSuspendedTreeContext,
packages/react-reconciler/src/ReactFiberNewContext.js
+1
-1
@@ -17,7 +17,7 @@ import type {StackCursor} from './ReactFiberStack';
17
import type {Lanes} from './ReactFiberLane';
18
import type {SharedQueue} from './ReactFiberClassUpdateQueue';
19
20
-import {isPrimaryRenderer} from './ReactFiberHostConfig';
20
+import {isPrimaryRenderer} from './ReactFiberConfig';
21
import {createCursor, push, pop} from './ReactFiberStack';
22
import {
23
ContextProvider,
packages/react-reconciler/src/ReactFiberReconciler.js
+2
-2
@@ -20,7 +20,7 @@ import type {
20
Container,
21
PublicInstance,
22
RendererInspectionConfig,
23
-} from './ReactFiberHostConfig';
23
+} from './ReactFiberConfig';
24
import type {ReactNodeList} from 'shared/ReactTypes';
25
import type {Lane} from './ReactFiberLane';
26
import type {SuspenseState} from './ReactFiberSuspenseComponent';
@@ -41,7 +41,7 @@ import getComponentNameFromFiber from 'react-reconciler/src/getComponentNameFrom
41
import isArray from 'shared/isArray';
42
import {enableSchedulingProfiler} from 'shared/ReactFeatureFlags';
43
import ReactSharedInternals from 'shared/ReactSharedInternals';
44
-import {getPublicInstance} from './ReactFiberHostConfig';
44
+import {getPublicInstance} from './ReactFiberConfig';
45
import {
46
findCurrentUnmaskedContext,
47
processChildContext,
packages/react-reconciler/src/ReactFiberRoot.js
+2
-2
@@ -15,9 +15,9 @@ import type {
15
} from './ReactInternalTypes';
16
import type {RootTag} from './ReactRootTags';
17
import type {Cache} from './ReactFiberCacheComponent';
18
-import type {Container} from './ReactFiberHostConfig';
18
+import type {Container} from './ReactFiberConfig';
19
20
-import {noTimeout, supportsHydration} from './ReactFiberHostConfig';
20
+import {noTimeout, supportsHydration} from './ReactFiberConfig';
21
import {createHostRootFiber} from './ReactFiber';
22
import {
23
NoLane,
packages/react-reconciler/src/ReactFiberRootScheduler.js
+1
-1
@@ -49,7 +49,7 @@ import {
49
IdleEventPriority,
50
lanesToEventPriority,
51
} from './ReactEventPriorities';
52
-import {supportsMicrotasks, scheduleMicrotask} from './ReactFiberHostConfig';
52
+import {supportsMicrotasks, scheduleMicrotask} from './ReactFiberConfig';
53
54
import ReactSharedInternals from 'shared/ReactSharedInternals';
55
const {ReactCurrentActQueue} = ReactSharedInternals;
packages/react-reconciler/src/ReactFiberScope.js
+1
-1
@@ -18,7 +18,7 @@ import {
18
getPublicInstance,
19
getInstanceFromNode,
20
getInstanceFromScope,
21
-} from './ReactFiberHostConfig';
21
+} from './ReactFiberConfig';
22
import {isFiberSuspenseAndTimedOut} from './ReactFiberTreeReflection';
23
24
import {HostComponent, ScopeComponent, ContextProvider} from './ReactWorkTags';
packages/react-reconciler/src/ReactFiberSuspenseComponent.js
+2
-2
@@ -9,7 +9,7 @@
9
10
import type {ReactNodeList, Wakeable} from 'shared/ReactTypes';
11
import type {Fiber} from './ReactInternalTypes';
12
-import type {SuspenseInstance} from './ReactFiberHostConfig';
12
+import type {SuspenseInstance} from './ReactFiberConfig';
13
import type {Lane} from './ReactFiberLane';
14
import type {TreeContext} from './ReactFiberTreeContext';
15
@@ -18,7 +18,7 @@ import {NoFlags, DidCapture} from './ReactFiberFlags';
18
import {
19
isSuspenseInstancePending,
20
isSuspenseInstanceFallback,
21
-} from './ReactFiberHostConfig';
21
+} from './ReactFiberConfig';
22
23
export type SuspenseProps = {
24
children?: ReactNodeList,
packages/react-reconciler/src/ReactFiberTransition.js
+1
-1
@@ -13,7 +13,7 @@ import type {Cache, SpawnedCachePool} from './ReactFiberCacheComponent';
13
import type {Transition} from './ReactFiberTracingMarkerComponent';
14
15
import {enableCache, enableTransitionTracing} from 'shared/ReactFeatureFlags';
16
-import {isPrimaryRenderer} from './ReactFiberHostConfig';
16
+import {isPrimaryRenderer} from './ReactFiberConfig';
17
import {createCursor, push, pop} from './ReactFiberStack';
18
import {
19
getWorkInProgressRoot,
packages/react-reconciler/src/ReactFiberTreeReflection.js
+1
-1
@@ -8,7 +8,7 @@
8
*/
9
10
import type {Fiber} from './ReactInternalTypes';
11
-import type {Container, SuspenseInstance} from './ReactFiberHostConfig';
11
+import type {Container, SuspenseInstance} from './ReactFiberConfig';
12
import type {SuspenseState} from './ReactFiberSuspenseComponent';
13
14
import {get as getInstance} from 'shared/ReactInstanceMap';
packages/react-reconciler/src/ReactFiberWorkLoop.js
+1
-1
@@ -77,7 +77,7 @@ import {
77
startSuspendingCommit,
78
waitForCommitToBeReady,
79
preloadInstance,
80
-} from './ReactFiberHostConfig';
80
+} from './ReactFiberConfig';
81
82
import {
83
createWorkInProgress,
packages/react-reconciler/src/ReactInternalTypes.js
+1
-1
@@ -29,7 +29,7 @@ import type {
29
TimeoutHandle,
30
NoTimeout,
31
SuspenseInstance,
32
-} from './ReactFiberHostConfig';
32
+} from './ReactFiberConfig';
33
import type {Cache} from './ReactFiberCacheComponent';
34
import type {
35
TracingMarkerInstance,
packages/react-reconciler/src/ReactMutableSource.js
+1
-1
@@ -10,7 +10,7 @@
10
import type {MutableSource, MutableSourceVersion} from 'shared/ReactTypes';
11
import type {FiberRoot} from './ReactInternalTypes';
12
13
-import {isPrimaryRenderer} from './ReactFiberHostConfig';
13
+import {isPrimaryRenderer} from './ReactFiberConfig';
14
15
// Work in progress version numbers only apply to a single render,
16
// and should be reset before starting a new render.
packages/react-reconciler/src/ReactPostPaintCallback.js
+1
-1
@@ -6,7 +6,7 @@
6
*
7
* @flow
8
*/
9
-import {requestPostPaintCallback} from './ReactFiberHostConfig';
9
+import {requestPostPaintCallback} from './ReactFiberConfig';
10
11
let postPaintCallbackScheduled = false;
12
let callbacks: Array<any | ((endTime: number) => void)> = [];
packages/react-reconciler/src/ReactTestSelectors.js
+2
-2
@@ -8,7 +8,7 @@
8
*/
9
10
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
11
-import type {Instance} from './ReactFiberHostConfig';
11
+import type {Instance} from './ReactFiberConfig';
12
13
import {
14
HostComponent,
@@ -27,7 +27,7 @@ import {
27
setFocusIfFocusable,
28
setupIntersectionObserver,
29
supportsTestSelectors,
30
-} from './ReactFiberHostConfig';
30
+} from './ReactFiberConfig';
31
32
let COMPONENT_TYPE: symbol | number = 0b000;
33
let HAS_PSEUDO_CLASS_TYPE: symbol | number = 0b001;
packages/react-reconciler/src/forks/ReactFiberConfig.art.js
renamed
+1
-1
@@ -7,4 +7,4 @@
7
* @flow
8
*/
9
10
-export * from 'react-art/src/ReactARTHostConfig';
10
+export * from 'react-art/src/ReactFiberConfigART';
packages/react-reconciler/src/forks/ReactFiberConfig.custom.js
renamed
packages/react-reconciler/src/forks/ReactFiberConfig.dom-browser.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-bun.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-edge-webpack.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-legacy.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-node-webpack.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-node.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.dom-relay.js
new
+10
@@ -0,0 +1,10 @@
1
+/**
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
+
10
+export * from 'react-dom-bindings/src/client/ReactFiberConfigDOM';
packages/react-reconciler/src/forks/ReactFiberConfig.fabric.js
renamed
+1
-1
@@ -7,4 +7,4 @@
7
* @flow
8
*/
9
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
10
+export * from 'react-native-renderer/src/ReactFiberConfigFabric';
packages/react-reconciler/src/forks/ReactFiberConfig.native-relay.js
renamed
+1
-1
@@ -7,4 +7,4 @@
7
* @flow
8
*/
9
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
10
+export * from 'react-native-renderer/src/ReactFiberConfigFabric';
packages/react-reconciler/src/forks/ReactFiberConfig.native.js
renamed
+1
-1
@@ -7,4 +7,4 @@
7
* @flow
8
*/
9
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
10
+export * from 'react-native-renderer/src/ReactFiberConfigNative';
packages/react-reconciler/src/forks/ReactFiberConfig.test.js
renamed
+1
-1
@@ -7,4 +7,4 @@
7
* @flow
8
*/
9
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
10
+export * from 'react-test-renderer/src/ReactFiberConfigTestHost';
packages/react-reconciler/src/forks/ReactFiberHostConfig.dom-node-webpack.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.dom-node.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.dom-relay.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-dom-bindings/src/client/ReactDOMHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.fabric.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-native-renderer/src/ReactFabricHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.native-relay.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-native-renderer/src/ReactFabricHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.native.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-native-renderer/src/ReactNativeHostConfig';
packages/react-reconciler/src/forks/ReactFiberHostConfig.test.js
deleted
-10
@@ -1,10 +0,0 @@
1
-/**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow
8
- */
9
-
10
-export * from 'react-test-renderer/src/ReactTestHostConfig';
packages/react-refresh/src/ReactFreshRuntime.js
+1
-1
@@ -7,7 +7,7 @@
7
* @flow
8
*/
9
10
-import type {Instance} from 'react-reconciler/src/ReactFiberHostConfig';
10
+import type {Instance} from 'react-reconciler/src/ReactFiberConfig';
11
import type {FiberRoot} from 'react-reconciler/src/ReactInternalTypes';
12
import type {
13
Family,
packages/react-test-renderer/src/ReactFiberConfigTestHost.js
renamed
+6
-6
@@ -42,12 +42,12 @@ export type EventResponder = any;
42
43
export type RendererInspectionConfig = $ReadOnly<{}>;
44
45
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoPersistence';
46
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoHydration';
47
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoTestSelectors';
48
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoMicrotasks';
49
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoResources';
50
-export * from 'react-reconciler/src/ReactFiberHostConfigWithNoSingletons';
45
+export * from 'react-reconciler/src/ReactFiberConfigWithNoPersistence';
46
+export * from 'react-reconciler/src/ReactFiberConfigWithNoHydration';
47
+export * from 'react-reconciler/src/ReactFiberConfigWithNoTestSelectors';
48
+export * from 'react-reconciler/src/ReactFiberConfigWithNoMicrotasks';
49
+export * from 'react-reconciler/src/ReactFiberConfigWithNoResources';
50
+export * from 'react-reconciler/src/ReactFiberConfigWithNoSingletons';
51
52
const NO_CONTEXT = {};
53
const UPDATE_SIGNAL = {};
packages/react-test-renderer/src/ReactTestRenderer.js
+2
-2
@@ -12,7 +12,7 @@ import type {
12
PublicInstance,
13
Instance,
14
TextInstance,
15
-} from './ReactTestHostConfig';
15
+} from './ReactFiberConfigTestHost';
16
17
import * as React from 'react';
18
import * as Scheduler from 'scheduler/unstable_mock';
@@ -50,7 +50,7 @@ import getComponentNameFromType from 'shared/getComponentNameFromType';
50
import ReactVersion from 'shared/ReactVersion';
51
import {checkPropStringCoercion} from 'shared/CheckStringCoercion';
52
53
-import {getPublicInstance} from './ReactTestHostConfig';
53
+import {getPublicInstance} from './ReactFiberConfigTestHost';
54
import {ConcurrentRoot, LegacyRoot} from 'react-reconciler/src/ReactRootTags';
55
import {allowConcurrentByDefault} from 'shared/ReactFeatureFlags';
56
scripts/flow/createFlowConfigs.js
+1
-1
@@ -51,7 +51,7 @@ function writeConfig(renderer, rendererInfo, isServerSupported) {
51
.replace(
52
'%REACT_RENDERER_FLOW_OPTIONS%',
53
`
54
-module.name_mapper='ReactFiberHostConfig$$' -> 'forks/ReactFiberHostConfig.${renderer}'
54
+module.name_mapper='ReactFiberConfig$$' -> 'forks/ReactFiberConfig.${renderer}'
55
module.name_mapper='ReactServerStreamConfig$$' -> 'forks/ReactServerStreamConfig.${serverRenderer}'
56
module.name_mapper='ReactFizzConfig$$' -> 'forks/ReactFizzConfig.${serverRenderer}'
57
module.name_mapper='ReactFlightServerConfig$$' -> 'forks/ReactFlightServerConfig.${serverRenderer}'
scripts/jest/setupHostConfigs.js
+2
-2
@@ -60,7 +60,7 @@ jest.mock('react/react.shared-subset', () => {
60
61
// When testing the custom renderer code path through `react-reconciler`,
62
// turn the export into a function, and use the argument as host config.
63
-const shimHostConfigPath = 'react-reconciler/src/ReactFiberHostConfig';
63
+const shimHostConfigPath = 'react-reconciler/src/ReactFiberConfig';
64
jest.mock('react-reconciler', () => {
65
return config => {
66
jest.mock(shimHostConfigPath, () => config);
@@ -104,7 +104,7 @@ jest.mock('react-client/flight', () => {
104
});
105
106
const configPaths = [
107
- 'react-reconciler/src/ReactFiberHostConfig',
107
+ 'react-reconciler/src/ReactFiberConfig',
108
'react-client/src/ReactFlightClientConfig',
109
'react-server/src/ReactServerStreamConfig',
110
'react-server/src/ReactFizzConfig',
scripts/rollup/forks.js
+3
-3
@@ -246,7 +246,7 @@ const forks = Object.freeze({
246
}
247
},
248
249
- './packages/react-reconciler/src/ReactFiberHostConfig.js': (
249
+ './packages/react-reconciler/src/ReactFiberConfig.js': (
250
bundleType,
251
entry,
252
dependencies,
@@ -261,11 +261,11 @@ const forks = Object.freeze({
261
// eslint-disable-next-line no-for-of-loops/no-for-of-loops
262
for (let rendererInfo of inlinedHostConfigs) {
263
if (rendererInfo.entryPoints.indexOf(entry) !== -1) {
264
- return `./packages/react-reconciler/src/forks/ReactFiberHostConfig.${rendererInfo.shortName}.js`;
264
+ return `./packages/react-reconciler/src/forks/ReactFiberConfig.${rendererInfo.shortName}.js`;
265
}
266
}
267
throw new Error(
268
- 'Expected ReactFiberHostConfig to always be replaced with a shim, but ' +
268
+ 'Expected ReactFiberConfig to always be replaced with a shim, but ' +
269
`found no mention of "${entry}" entry point in ./scripts/shared/inlinedHostConfigs.js. ` +
270
'Did you mean to add it there to associate it with a specific renderer?'
271
);