From 0fe762727c1c702fc6c51e8d9897564c99e663d1 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Tue, 23 Jan 2024 22:33:16 -0500 Subject: [PATCH] uwu --- .../react-dom/unstable_testing.classic.fb.js | 26 ++++++++++++++++++- .../unstable_testing.experimental.js | 24 ++++++++++++++++- .../react-dom/unstable_testing.modern.fb.js | 18 ++++++++++++- packages/react-dom/unstable_testing.stable.js | 22 +++++++++++++++- 4 files changed, 86 insertions(+), 4 deletions(-) diff --git a/packages/react-dom/unstable_testing.classic.fb.js b/packages/react-dom/unstable_testing.classic.fb.js index 2f623787958d3..6dd68f3669dc3 100644 --- a/packages/react-dom/unstable_testing.classic.fb.js +++ b/packages/react-dom/unstable_testing.classic.fb.js @@ -7,7 +7,31 @@ * @flow */ -export * from './index.classic.fb.js'; +export { + createPortal, + findDOMNode, + flushSync, + hydrate, + render, + unmountComponentAtNode, + unstable_batchedUpdates, + unstable_createEventHandle, + unstable_renderSubtreeIntoContainer, + unstable_runWithPriority, // DO NOT USE: Temporarily exposed to migrate off of Scheduler.runWithPriority. + useFormStatus, + useFormState, + prefetchDNS, + preconnect, + preload, + preloadModule, + preinit, + preinitModule, + version, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} from './index.classic.fb.js'; + +export {createRoot, hydrateRoot} from './client.js'; + export { createComponentSelector, createHasPseudoClassSelector, diff --git a/packages/react-dom/unstable_testing.experimental.js b/packages/react-dom/unstable_testing.experimental.js index 3ed081d85b9b1..b84561272bef3 100644 --- a/packages/react-dom/unstable_testing.experimental.js +++ b/packages/react-dom/unstable_testing.experimental.js @@ -7,7 +7,29 @@ * @flow */ -export * from './index.experimental.js'; +export { + createPortal, + findDOMNode, + flushSync, + hydrate, + render, + unmountComponentAtNode, + unstable_batchedUpdates, + unstable_renderSubtreeIntoContainer, + useFormStatus, + useFormState, + prefetchDNS, + preconnect, + preload, + preloadModule, + preinit, + preinitModule, + version, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} from './index.experimental.js'; + +export {createRoot, hydrateRoot} from './client.js'; + export { createComponentSelector, createHasPseudoClassSelector, diff --git a/packages/react-dom/unstable_testing.modern.fb.js b/packages/react-dom/unstable_testing.modern.fb.js index c0a0e45ad79ca..17e78ae012adc 100644 --- a/packages/react-dom/unstable_testing.modern.fb.js +++ b/packages/react-dom/unstable_testing.modern.fb.js @@ -7,7 +7,23 @@ * @flow */ -export * from './index.modern.fb.js'; +export { + createPortal, + flushSync, + unstable_batchedUpdates, + unstable_createEventHandle, + useFormStatus, + useFormState, + prefetchDNS, + preconnect, + preload, + preloadModule, + preinit, + preinitModule, + version, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} from './index.modern.fb.js'; +export {createRoot, hydrateRoot} from './client.js'; export { createComponentSelector, createHasPseudoClassSelector, diff --git a/packages/react-dom/unstable_testing.stable.js b/packages/react-dom/unstable_testing.stable.js index b983e17bef9bd..453e8b4fdece7 100644 --- a/packages/react-dom/unstable_testing.stable.js +++ b/packages/react-dom/unstable_testing.stable.js @@ -7,4 +7,24 @@ * @flow */ -export * from './index.stable.js'; +export { + createPortal, + findDOMNode, + flushSync, + hydrate, + render, + unmountComponentAtNode, + unstable_batchedUpdates, + unstable_renderSubtreeIntoContainer, + useFormStatus, + useFormState, + prefetchDNS, + preconnect, + preload, + preloadModule, + preinit, + preinitModule, + version, + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, +} from './index.stable.js'; +export {createRoot, hydrateRoot} from './client.js';