@vxrn/react-native-prebuilt 1.27.1 → 2.0.0-beta.45.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,39 +5,32 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __export = (target, all) => {
8
- for (var name in all) __defProp(target, name, {
9
- get: all[name],
10
- enumerable: true
11
- });
8
+ for (var name in all) __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true
11
+ });
12
12
  };
13
13
  var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
- get: () => from[key],
17
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
- });
19
- }
20
- return to;
14
+ if (from && typeof from === "object" || typeof from === "function") {
15
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
16
+ get: () => from[key],
17
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
18
+ });
19
+ }
20
+ return to;
21
21
  };
22
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
- // If the importer is in node compatibility mode or this is not an ESM
24
- // file that has been converted to a CommonJS file using a Babel-
25
- // compatible transform (i.e. "__esModule" has not been set), then set
26
- // "default" to the CommonJS "module.exports" for node compatibility.
27
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
28
- value: mod,
29
- enumerable: true
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
23
+ value: mod,
24
+ enumerable: true
30
25
  }) : target, mod));
31
- var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
32
- value: true
33
- }), mod);
26
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
34
27
  var index_exports = {};
35
28
  __export(index_exports, {
36
- RExports: () => RExports,
37
- RNExportNames: () => RNExportNames,
38
- buildReact: () => buildReact,
39
- buildReactJSX: () => buildReactJSX,
40
- buildReactNative: () => buildReactNative
29
+ RExports: () => RExports,
30
+ RNExportNames: () => RNExportNames,
31
+ buildReact: () => buildReact,
32
+ buildReactJSX: () => buildReactJSX,
33
+ buildReactNative: () => buildReactNative
41
34
  });
42
35
  module.exports = __toCommonJS(index_exports);
43
36
  var import_utils = require("@vxrn/utils");
@@ -48,176 +41,190 @@ var import_promises = require("node:fs/promises");
48
41
  var import_node_module = require("node:module");
49
42
  const import_meta = {};
50
43
  const requireResolve = "url" in import_meta ? (0, import_node_module.createRequire)(import_meta.url).resolve : require.resolve;
51
- const external = ["react", "react/jsx-runtime", "react/jsx-dev-runtime"];
44
+ const external = [
45
+ "react",
46
+ "react/jsx-runtime",
47
+ "react/jsx-dev-runtime"
48
+ ];
52
49
  async function buildReactJSX(options = {}) {
53
- const isProd = options.define?.["__DEV__"] === "false";
54
- return (0, import_esbuild.build)({
55
- bundle: true,
56
- entryPoints: [requireResolve("react/jsx-dev-runtime")],
57
- format: "cjs",
58
- target: "node16",
59
- jsx: "transform",
60
- jsxFactory: "react",
61
- allowOverwrite: true,
62
- platform: "node",
63
- define: {
64
- __DEV__: "true",
65
- "process.env.NODE_ENV": `"development"`
66
- },
67
- external,
68
- logLevel: "warning",
69
- ...options
70
- }).then(async () => {
71
- const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
72
- const outCode = `
50
+ const isProd = options.define?.["__DEV__"] === "false";
51
+ return (0, import_esbuild.build)({
52
+ bundle: true,
53
+ entryPoints: [requireResolve("react/jsx-dev-runtime")],
54
+ format: "cjs",
55
+ target: "node16",
56
+ jsx: "transform",
57
+ jsxFactory: "react",
58
+ allowOverwrite: true,
59
+ platform: "node",
60
+ define: {
61
+ __DEV__: "true",
62
+ "process.env.NODE_ENV": `"development"`
63
+ },
64
+ external,
65
+ logLevel: "warning",
66
+ ...options
67
+ }).then(async () => {
68
+ const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
69
+ const outCode = `
73
70
  const run = () => {
74
- ${(0, import_utils.mustReplace)(bundled, [...(isProd ? [{
75
- // react 18 and 19 (18 has _min)
76
- find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
77
- replace: `return require_react_jsx_runtime_production$1();`
78
- }] : [{
79
- find: `module.exports = require_react_jsx_dev_runtime_development();`,
80
- replace: `return require_react_jsx_dev_runtime_development();`
81
- }]), {
82
- find: `process.env.VXRN_REACT_19`,
83
- replace: "false",
84
- optional: true
85
- }, {
86
- find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
87
- optional: true,
88
- replace: ``
89
- }])}
71
+ ${(0, import_utils.mustReplace)(bundled, [
72
+ ...isProd ? [{
73
+ find: /module\.exports = require_react_jsx_runtime_production([a-z_]*)\(\);/,
74
+ replace: `return require_react_jsx_runtime_production$1();`
75
+ }] : [{
76
+ find: `module.exports = require_react_jsx_dev_runtime_development();`,
77
+ replace: `return require_react_jsx_dev_runtime_development();`
78
+ }],
79
+ {
80
+ find: `process.env.VXRN_REACT_19`,
81
+ replace: "false",
82
+ optional: true
83
+ },
84
+ {
85
+ find: `Object.assign(exports, eval("require('@vxrn/vendor/react-jsx-19')"));`,
86
+ optional: true,
87
+ replace: ``
88
+ }
89
+ ])}
90
90
  }
91
91
  const __mod__ = run()
92
- ${["jsx", "jsxs", "jsxDEV", "Fragment"].map(n => `export const ${n} = __mod__.${n} || __mod__.jsx || ${(() => {
93
- if (n === "jsxs") {
94
- return "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }";
95
- }
96
- return "__mod__.jsxDEV";
97
- })()}`).join("\n")}
92
+ ${[
93
+ "jsx",
94
+ "jsxs",
95
+ "jsxDEV",
96
+ "Fragment"
97
+ ].map((n) => `export const ${n} = __mod__.${n} || __mod__.jsx || ${(() => {
98
+ if (n === "jsxs") {
99
+ return "function (type, props, key) { return __mod__.jsxDEV(type, props, key, true) }";
100
+ }
101
+ return "__mod__.jsxDEV";
102
+ })()}`).join("\n")}
98
103
  `;
99
- await import_fs_extra.default.writeFile(options.outfile, outCode);
100
- });
104
+ await import_fs_extra.default.writeFile(options.outfile, outCode);
105
+ });
101
106
  }
102
107
  async function buildReact(options = {}) {
103
- const isProd = options.define?.["__DEV__"] === "false";
104
- return (0, import_esbuild.build)({
105
- bundle: true,
106
- entryPoints: [requireResolve("react")],
107
- format: "cjs",
108
- target: "node16",
109
- jsx: "transform",
110
- jsxFactory: "react",
111
- allowOverwrite: true,
112
- platform: "node",
113
- define: {
114
- __DEV__: "true",
115
- "process.env.NODE_ENV": `"development"`
116
- },
117
- logLevel: "warning",
118
- external,
119
- ...options
120
- }).then(async () => {
121
- const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
122
- const outCode = `
108
+ const isProd = options.define?.["__DEV__"] === "false";
109
+ return (0, import_esbuild.build)({
110
+ bundle: true,
111
+ entryPoints: [requireResolve("react")],
112
+ format: "cjs",
113
+ target: "node16",
114
+ jsx: "transform",
115
+ jsxFactory: "react",
116
+ allowOverwrite: true,
117
+ platform: "node",
118
+ define: {
119
+ __DEV__: "true",
120
+ "process.env.NODE_ENV": `"development"`
121
+ },
122
+ logLevel: "warning",
123
+ external,
124
+ ...options
125
+ }).then(async () => {
126
+ const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
127
+ const outCode = `
123
128
  const run = () => {
124
- ${(0, import_utils.mustReplace)(bundled, [isProd ? {
125
- find: /module\.exports = require_react_production([a-z_]*)\(\);/,
126
- replace: "return require_react_production$1();"
127
- } : {
128
- find: /module\.exports = require_react_development([a-z_]*)\(\);/,
129
- replace: "return require_react_development$1();"
130
- }, {
131
- find: `process.env.VXRN_REACT_19`,
132
- optional: true,
133
- replace: "false"
134
- }, {
135
- find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
136
- optional: true,
137
- replace: ``
138
- }])}
129
+ ${(0, import_utils.mustReplace)(bundled, [
130
+ isProd ? {
131
+ find: /module\.exports = require_react_production([a-z_]*)\(\);/,
132
+ replace: "return require_react_production$1();"
133
+ } : {
134
+ find: /module\.exports = require_react_development([a-z_]*)\(\);/,
135
+ replace: "return require_react_development$1();"
136
+ },
137
+ {
138
+ find: `process.env.VXRN_REACT_19`,
139
+ optional: true,
140
+ replace: "false"
141
+ },
142
+ {
143
+ find: `Object.assign(exports, eval("require('@vxrn/vendor/react-19')"));`,
144
+ optional: true,
145
+ replace: ``
146
+ }
147
+ ])}
139
148
  }
140
149
  const __mod__ = run()
141
- ${RExports.map(n => `export const ${n} = __mod__.${n}`).join("\n")}
150
+ ${RExports.map((n) => `export const ${n} = __mod__.${n}`).join("\n")}
142
151
  export default __mod__
143
152
  `;
144
- await import_fs_extra.default.writeFile(options.outfile, outCode);
145
- });
153
+ await import_fs_extra.default.writeFile(options.outfile, outCode);
154
+ });
146
155
  }
147
- async function buildReactNative(options = {}, {
148
- platform
149
- }) {
150
- return (0, import_esbuild.build)({
151
- bundle: true,
152
- entryPoints: [requireResolve("react-native")],
153
- format: "cjs",
154
- target: "node20",
155
- allowOverwrite: true,
156
- platform: "node",
157
- external,
158
- loader: {
159
- ".png": "dataurl",
160
- ".jpg": "dataurl",
161
- ".jpeg": "dataurl",
162
- ".gif": "dataurl"
163
- },
164
- define: {
165
- __DEV__: "true",
166
- "process.env.NODE_ENV": `"development"`
167
- },
168
- logLevel: "warning",
169
- resolveExtensions: [`.${platform}.js`, ".native.js", ".js", ".jsx", ".json", ".mjs"],
170
- ...options,
171
- plugins: [{
172
- name: "remove-flow",
173
- setup(build2) {
174
- build2.onResolve({
175
- filter: /HMRClient/
176
- }, async input => {
177
- const path = requireResolve("@vxrn/vite-native-hmr");
178
- const possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
179
- if (import_fs_extra.default.pathExistsSync(possibleEsmPath)) {
180
- return {
181
- path: possibleEsmPath
182
- };
183
- }
184
- return {
185
- path
186
- };
187
- });
188
- build2.onLoad({
189
- filter: /.*\.js$/
190
- }, async input => {
191
- if (!input.path.includes("react-native") && !input.path.includes(`vite-native-hmr`)) {
192
- return;
193
- }
194
- const code = await (0, import_promises.readFile)(input.path, "utf-8");
195
- let outagain = await (0, import_vite_flow.transformFlowBabel)(code, {
196
- development: true,
197
- path: input.path
198
- });
199
- if (input.path.endsWith("react-native/index.js")) {
200
- outagain = outagain.replace(/module\.exports *= *{/, `
156
+ async function buildReactNative(options = {}, { platform }) {
157
+ return (0, import_esbuild.build)({
158
+ bundle: true,
159
+ entryPoints: [requireResolve("react-native")],
160
+ format: "cjs",
161
+ target: "node20",
162
+ allowOverwrite: true,
163
+ platform: "node",
164
+ external,
165
+ loader: {
166
+ ".png": "dataurl",
167
+ ".jpg": "dataurl",
168
+ ".jpeg": "dataurl",
169
+ ".gif": "dataurl"
170
+ },
171
+ define: {
172
+ __DEV__: "true",
173
+ "process.env.NODE_ENV": `"development"`
174
+ },
175
+ logLevel: "warning",
176
+ resolveExtensions: [
177
+ `.${platform}.js`,
178
+ ".native.js",
179
+ ".js",
180
+ ".jsx",
181
+ ".json",
182
+ ".mjs"
183
+ ],
184
+ ...options,
185
+ plugins: [{
186
+ name: "remove-flow",
187
+ setup(build2) {
188
+ build2.onResolve({ filter: /HMRClient/ }, async (input) => {
189
+ const path = requireResolve("@vxrn/vite-native-hmr");
190
+ const possibleEsmPath = path.replace("/cjs/index.cjs", "/esm/index.native.js");
191
+ if (import_fs_extra.default.pathExistsSync(possibleEsmPath)) {
192
+ return { path: possibleEsmPath };
193
+ }
194
+ return { path };
195
+ });
196
+ build2.onLoad({ filter: /.*\.js$/ }, async (input) => {
197
+ if (!input.path.includes("react-native") && !input.path.includes(`vite-native-hmr`)) {
198
+ return;
199
+ }
200
+ const code = await (0, import_promises.readFile)(input.path, "utf-8");
201
+ let outagain = await (0, import_vite_flow.transformFlowBabel)(code, {
202
+ development: true,
203
+ path: input.path
204
+ });
205
+ if (input.path.endsWith("react-native/index.js")) {
206
+ outagain = outagain.replace(/module\.exports *= *{/, `
201
207
  module.exports = {
202
208
  get _vxrnInternalReactNativeVersionDoNotUse() {
203
209
  return require("./Libraries/Core/ReactNativeVersion").default;
204
210
  },
205
211
  `.trim());
206
- }
207
- return {
208
- contents: outagain,
209
- loader: "jsx"
210
- };
211
- });
212
- }
213
- }]
214
- }).then(async () => {
215
- const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
216
- const outCode = `
212
+ }
213
+ return {
214
+ contents: outagain,
215
+ loader: "jsx"
216
+ };
217
+ });
218
+ }
219
+ }]
220
+ }).then(async () => {
221
+ const bundled = await (0, import_promises.readFile)(options.outfile, "utf-8");
222
+ const outCode = `
217
223
  const run = () => {
218
- ${(0, import_utils.mustReplace)(bundled, [{
219
- find: esbuildCommonJSFunction,
220
- replace: `
224
+ ${(0, import_utils.mustReplace)(bundled, [
225
+ {
226
+ find: esbuildCommonJSFunction,
227
+ replace: `
221
228
  // replaced commonjs function to allow importing internals
222
229
  var __commonJS = function __commonJS(cb, mod) {
223
230
  var path = __getOwnPropNames(cb)[0];
@@ -253,29 +260,31 @@ var __commonJS = function __commonJS(cb, mod) {
253
260
  return __require;
254
261
  };
255
262
  `
256
- }, {
257
- find: /module\.exports = require_(react_native|index)\(\);/,
258
- replace: [`const rn = require_$1();`, `rn.AssetRegistry = require_registry();`, `require_ReactFabric();`,
259
- // This is react-native/Libraries/Renderer/shims/ReactFabric.js, we call it here to ensure shims are initialized since we won't lazy load React Native components. See the NOTE below.
260
- `if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }`,
261
- // Since we're accessing the RefreshRuntime directly via `__cachedModules` directly in the RN bundle, we need to ensure it's loaded in time. Note that calling `require_react_refresh_runtime_development()`, `require_setUpReactRefresh()` or `require_setUpDeveloperTools()` directly won't work.
262
- `return rn;`].join("\n")
263
- },
264
- // improve error logs a lot including stack of original error
265
- {
266
- find: `originalMessage = e.message || "";`,
267
- replace: `originalMessage = "" + (e.stack || "");`
268
- }])}
263
+ },
264
+ {
265
+ find: /module\.exports = require_(react_native|index)\(\);/,
266
+ replace: [
267
+ `const rn = require_$1();`,
268
+ `rn.AssetRegistry = require_registry();`,
269
+ `require_ReactFabric();`,
270
+ `if (typeof require_InitializeCore === 'function') { require_InitializeCore(); }`,
271
+ `return rn;`
272
+ ].join("\n")
273
+ },
274
+ {
275
+ find: `originalMessage = e.message || "";`,
276
+ replace: `originalMessage = "" + (e.stack || "");`
277
+ }
278
+ ])}
269
279
  }
270
280
  const RN = run()
271
281
 
272
- export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';${ /* NOTE: The `REACT_NATIVE_ESM_MANUAL_EXPORTS_*` vars here are used by other tools to replace exports in this section with a CJS `module.export` which supports dynamic loaded lazy exports, if CJS can be used - such as in a React Native bundle. */
273
- ""}
274
- ${RNExportNames.map(n => `export const ${n} = RN.${n}`).join("\n")}
282
+ export const REACT_NATIVE_ESM_MANUAL_EXPORTS_START = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_START';${""}
283
+ ${RNExportNames.map((n) => `export const ${n} = RN.${n}`).join("\n")}
275
284
  export const REACT_NATIVE_ESM_MANUAL_EXPORTS_END = 'REACT_NATIVE_ESM_MANUAL_EXPORTS_END';
276
285
  `;
277
- await import_fs_extra.default.writeFile(options.outfile, outCode);
278
- });
286
+ await import_fs_extra.default.writeFile(options.outfile, outCode);
287
+ });
279
288
  }
280
289
  const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __require() {
281
290
  try {
@@ -284,13 +293,128 @@ const esbuildCommonJSFunction = `var __commonJS = (cb, mod) => function __requir
284
293
  throw mod = 0, e;
285
294
  }
286
295
  };`;
287
- const RNExportNames = ["registerCallableModule", "AccessibilityInfo", "ActivityIndicator", "Button", "DrawerLayoutAndroid", "FlatList", "Image", "ImageBackground", "InputAccessoryView", "KeyboardAvoidingView", "Modal", "Pressable", "RefreshControl", "SafeAreaView", "ScrollView", "SectionList", "StatusBar", "Switch", "Text", "TextInput", "Touchable", "TouchableHighlight", "TouchableNativeFeedback", "TouchableOpacity", "TouchableWithoutFeedback", "View", "VirtualizedList", "VirtualizedSectionList", "ActionSheetIOS", "Alert", "Animated", "Appearance", "AppRegistry", "AppState", "BackHandler", "DeviceInfo", "DevSettings", "Dimensions", "Easing", "findNodeHandle", "I18nManager", "InteractionManager", "Keyboard", "LayoutAnimation", "Linking", "LogBox", "NativeDialogManagerAndroid", "NativeEventEmitter", "Networking", "PanResponder", "PermissionsAndroid", "PixelRatio", "Settings", "Share", "StyleSheet", "Systrace", "ToastAndroid", "TurboModuleRegistry", "UIManager", "unstable_batchedUpdates", "useAnimatedValue", "useAnimatedValueXY", "useAnimatedColor", "useColorScheme", "usePressability", "useWindowDimensions", "UTFSequence", "Vibration", "DeviceEventEmitter", "DynamicColorIOS", "EventEmitter", "NativeAppEventEmitter", "NativeModules", "Platform", "PlatformColor", "processColor", "requireNativeComponent", "RootTagContext", "AssetRegistry"
288
- // Normally not exported by React Native, but with a hack we make @react-native/assets-registry/registry available here.
296
+ const RNExportNames = [
297
+ "registerCallableModule",
298
+ "AccessibilityInfo",
299
+ "ActivityIndicator",
300
+ "Button",
301
+ "DrawerLayoutAndroid",
302
+ "FlatList",
303
+ "Image",
304
+ "ImageBackground",
305
+ "InputAccessoryView",
306
+ "KeyboardAvoidingView",
307
+ "Modal",
308
+ "Pressable",
309
+ "RefreshControl",
310
+ "SafeAreaView",
311
+ "ScrollView",
312
+ "SectionList",
313
+ "StatusBar",
314
+ "Switch",
315
+ "Text",
316
+ "TextInput",
317
+ "Touchable",
318
+ "TouchableHighlight",
319
+ "TouchableNativeFeedback",
320
+ "TouchableOpacity",
321
+ "TouchableWithoutFeedback",
322
+ "View",
323
+ "VirtualizedList",
324
+ "VirtualizedSectionList",
325
+ "ActionSheetIOS",
326
+ "Alert",
327
+ "Animated",
328
+ "Appearance",
329
+ "AppRegistry",
330
+ "AppState",
331
+ "BackHandler",
332
+ "DeviceInfo",
333
+ "DevSettings",
334
+ "Dimensions",
335
+ "Easing",
336
+ "findNodeHandle",
337
+ "I18nManager",
338
+ "InteractionManager",
339
+ "Keyboard",
340
+ "LayoutAnimation",
341
+ "Linking",
342
+ "LogBox",
343
+ "NativeDialogManagerAndroid",
344
+ "NativeEventEmitter",
345
+ "Networking",
346
+ "PanResponder",
347
+ "PermissionsAndroid",
348
+ "PixelRatio",
349
+ "Settings",
350
+ "Share",
351
+ "StyleSheet",
352
+ "Systrace",
353
+ "ToastAndroid",
354
+ "TurboModuleRegistry",
355
+ "UIManager",
356
+ "unstable_batchedUpdates",
357
+ "useAnimatedValue",
358
+ "useAnimatedValueXY",
359
+ "useAnimatedColor",
360
+ "useColorScheme",
361
+ "usePressability",
362
+ "useWindowDimensions",
363
+ "UTFSequence",
364
+ "Vibration",
365
+ "DeviceEventEmitter",
366
+ "DynamicColorIOS",
367
+ "EventEmitter",
368
+ "NativeAppEventEmitter",
369
+ "NativeModules",
370
+ "Platform",
371
+ "PlatformColor",
372
+ "processColor",
373
+ "requireNativeComponent",
374
+ "RootTagContext",
375
+ "AssetRegistry"
376
+ ];
377
+ const RExports = [
378
+ "Children",
379
+ "Component",
380
+ "Fragment",
381
+ "Profiler",
382
+ "PureComponent",
383
+ "StrictMode",
384
+ "Suspense",
385
+ "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
386
+ "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
387
+ "cloneElement",
388
+ "createContext",
389
+ "createElement",
390
+ "createFactory",
391
+ "createRef",
392
+ "forwardRef",
393
+ "isValidElement",
394
+ "lazy",
395
+ "memo",
396
+ "startTransition",
397
+ "unstable_act",
398
+ "useCallback",
399
+ "useContext",
400
+ "useDebugValue",
401
+ "useDeferredValue",
402
+ "useEffect",
403
+ "useId",
404
+ "useImperativeHandle",
405
+ "useInsertionEffect",
406
+ "useLayoutEffect",
407
+ "useMemo",
408
+ "useReducer",
409
+ "useRef",
410
+ "useState",
411
+ "useSyncExternalStore",
412
+ "useTransition",
413
+ "version",
414
+ "act",
415
+ "cache",
416
+ "unstable_useCacheRefresh",
417
+ "use",
418
+ "useActionState",
419
+ "useOptimistic"
289
420
  ];
290
- const RExports = ["Children", "Component", "Fragment", "Profiler", "PureComponent", "StrictMode", "Suspense", "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",
291
- // For React 18
292
- "__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE",
293
- // For React 19
294
- "cloneElement", "createContext", "createElement", "createFactory", "createRef", "forwardRef", "isValidElement", "lazy", "memo", "startTransition", "unstable_act", "useCallback", "useContext", "useDebugValue", "useDeferredValue", "useEffect", "useId", "useImperativeHandle", "useInsertionEffect", "useLayoutEffect", "useMemo", "useReducer", "useRef", "useState", "useSyncExternalStore", "useTransition", "version",
295
- // Added in React 19
296
- "act", "cache", "unstable_useCacheRefresh", "use", "useActionState", "useOptimistic"];