|
| 1 | +/** |
| 2 | + * Copyright (c) Facebook, Inc. and its 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 | +import {addUserTimingListener} from 'shared/ReactFeatureFlags'; |
| 11 | +import {isEnabled} from './src/events/ReactDOMEventListener'; |
| 12 | +import {getClosestInstanceFromNode} from './src/client/ReactDOMComponentTree'; |
| 13 | + |
| 14 | +import {__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED} from './src/client/ReactDOM'; |
| 15 | + |
| 16 | +// For classic WWW builds, include a few internals that are already in use. |
| 17 | +Object.assign((__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: any), { |
| 18 | + ReactBrowserEventEmitter: { |
| 19 | + isEnabled, |
| 20 | + }, |
| 21 | + ReactDOMComponentTree: { |
| 22 | + getClosestInstanceFromNode, |
| 23 | + }, |
| 24 | + // Perf experiment |
| 25 | + addUserTimingListener, |
| 26 | +}); |
| 27 | + |
| 28 | +export { |
| 29 | + createPortal, |
| 30 | + unstable_batchedUpdates, |
| 31 | + flushSync, |
| 32 | + __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, |
| 33 | + version, |
| 34 | + findDOMNode, |
| 35 | + hydrate, |
| 36 | + render, |
| 37 | + unmountComponentAtNode, |
| 38 | + createRoot, |
| 39 | + createBlockingRoot, |
| 40 | + unstable_discreteUpdates, |
| 41 | + unstable_flushDiscreteUpdates, |
| 42 | + unstable_flushControlled, |
| 43 | + unstable_scheduleHydration, |
| 44 | + unstable_renderSubtreeIntoContainer, |
| 45 | + unstable_createPortal, |
| 46 | +} from './src/client/ReactDOM'; |
0 commit comments