@expo/cli 54.1.0-canary-20251013-623c5a6 → 54.1.0-canary-20251023-4c86f95

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.
Files changed (121) hide show
  1. package/build/bin/cli +1 -1
  2. package/build/src/export/embed/exportEmbedAsync.js +43 -3
  3. package/build/src/export/embed/exportEmbedAsync.js.map +1 -1
  4. package/build/src/export/embed/resolveOptions.js.map +1 -1
  5. package/build/src/export/index.js +2 -1
  6. package/build/src/export/index.js.map +1 -1
  7. package/build/src/export/resolveOptions.js +1 -1
  8. package/build/src/export/resolveOptions.js.map +1 -1
  9. package/build/src/start/server/metro/MetroBundlerDevServer.js +29 -9
  10. package/build/src/start/server/metro/MetroBundlerDevServer.js.map +1 -1
  11. package/build/src/start/server/metro/MetroTerminalReporter.js +2 -4
  12. package/build/src/start/server/metro/MetroTerminalReporter.js.map +1 -1
  13. package/build/src/start/server/metro/createServerRouteMiddleware.js.map +1 -1
  14. package/build/src/start/server/metro/externals.js +0 -11
  15. package/build/src/start/server/metro/externals.js.map +1 -1
  16. package/build/src/start/server/metro/fetchRouterManifest.js +1 -1
  17. package/build/src/start/server/metro/fetchRouterManifest.js.map +1 -1
  18. package/build/src/start/server/metro/getCssModulesFromBundler.js.map +1 -1
  19. package/build/src/start/server/metro/instantiateMetro.js +14 -10
  20. package/build/src/start/server/metro/instantiateMetro.js.map +1 -1
  21. package/build/src/start/server/metro/log-box/LogBoxLog.js +11 -7
  22. package/build/src/start/server/metro/log-box/LogBoxLog.js.map +1 -1
  23. package/build/src/start/server/metro/log-box/LogBoxSymbolication.js.map +1 -1
  24. package/build/src/start/server/metro/metroErrorInterface.js +14 -43
  25. package/build/src/start/server/metro/metroErrorInterface.js.map +1 -1
  26. package/build/src/start/server/metro/withMetroMultiPlatform.js +55 -43
  27. package/build/src/start/server/metro/withMetroMultiPlatform.js.map +1 -1
  28. package/build/src/start/server/middleware/metroOptions.js.map +1 -1
  29. package/build/src/start/server/serverLogLikeMetro.js +1 -1
  30. package/build/src/start/server/serverLogLikeMetro.js.map +1 -1
  31. package/build/src/utils/env.js +6 -0
  32. package/build/src/utils/env.js.map +1 -1
  33. package/build/src/utils/telemetry/clients/FetchClient.js +1 -1
  34. package/build/src/utils/telemetry/utils/context.js +1 -1
  35. package/package.json +20 -18
  36. package/static/canary/react-is/cjs/react-is.development.js +0 -133
  37. package/static/canary/react-is/cjs/react-is.production.js +0 -130
  38. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-dev.js +0 -16820
  39. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-prod.js +0 -10552
  40. package/static/canary/react-native/Libraries/Renderer/implementations/ReactFabric-profiling.js +0 -11255
  41. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-dev.js +0 -17064
  42. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-prod.js +0 -10742
  43. package/static/canary/react-native/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.js +0 -11450
  44. package/static/canary/scheduler/cjs/scheduler-unstable_mock.development.js +0 -414
  45. package/static/canary/scheduler/cjs/scheduler-unstable_mock.production.js +0 -406
  46. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.development.js +0 -150
  47. package/static/canary/scheduler/cjs/scheduler-unstable_post_task.production.js +0 -140
  48. package/static/canary/scheduler/cjs/scheduler.development.js +0 -364
  49. package/static/canary/scheduler/cjs/scheduler.native.development.js +0 -350
  50. package/static/canary/scheduler/cjs/scheduler.native.production.js +0 -330
  51. package/static/canary/scheduler/cjs/scheduler.production.js +0 -340
  52. package/static/canary-full/node_modules/react/LICENSE +0 -21
  53. package/static/canary-full/node_modules/react/README.md +0 -37
  54. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.development.js +0 -24
  55. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.production.js +0 -16
  56. package/static/canary-full/node_modules/react/cjs/react-compiler-runtime.profiling.js +0 -16
  57. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.development.js +0 -349
  58. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.production.js +0 -14
  59. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.profiling.js +0 -14
  60. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.development.js +0 -385
  61. package/static/canary-full/node_modules/react/cjs/react-jsx-dev-runtime.react-server.production.js +0 -40
  62. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.development.js +0 -358
  63. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.production.js +0 -34
  64. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.profiling.js +0 -34
  65. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.development.js +0 -385
  66. package/static/canary-full/node_modules/react/cjs/react-jsx-runtime.react-server.production.js +0 -40
  67. package/static/canary-full/node_modules/react/cjs/react.development.js +0 -1250
  68. package/static/canary-full/node_modules/react/cjs/react.production.js +0 -544
  69. package/static/canary-full/node_modules/react/cjs/react.react-server.development.js +0 -815
  70. package/static/canary-full/node_modules/react/cjs/react.react-server.production.js +0 -429
  71. package/static/canary-full/node_modules/react/compiler-runtime.js +0 -14
  72. package/static/canary-full/node_modules/react/index.js +0 -7
  73. package/static/canary-full/node_modules/react/jsx-dev-runtime.js +0 -7
  74. package/static/canary-full/node_modules/react/jsx-dev-runtime.react-server.js +0 -7
  75. package/static/canary-full/node_modules/react/jsx-runtime.js +0 -7
  76. package/static/canary-full/node_modules/react/jsx-runtime.react-server.js +0 -7
  77. package/static/canary-full/node_modules/react/package.json +0 -51
  78. package/static/canary-full/node_modules/react/react.react-server.js +0 -7
  79. package/static/canary-full/node_modules/react-dom/LICENSE +0 -21
  80. package/static/canary-full/node_modules/react-dom/README.md +0 -60
  81. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.development.js +0 -25089
  82. package/static/canary-full/node_modules/react-dom/cjs/react-dom-client.production.js +0 -15426
  83. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.development.js +0 -25476
  84. package/static/canary-full/node_modules/react-dom/cjs/react-dom-profiling.profiling.js +0 -16296
  85. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -9035
  86. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.js +0 -5892
  87. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.development.js +0 -9035
  88. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server-legacy.node.production.js +0 -5972
  89. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -9424
  90. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.browser.production.js +0 -6384
  91. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.development.js +0 -8739
  92. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.bun.production.js +0 -5967
  93. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.development.js +0 -9443
  94. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.edge.production.js +0 -6477
  95. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.development.js +0 -9317
  96. package/static/canary-full/node_modules/react-dom/cjs/react-dom-server.node.production.js +0 -6372
  97. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.development.js +0 -24
  98. package/static/canary-full/node_modules/react-dom/cjs/react-dom-test-utils.production.js +0 -21
  99. package/static/canary-full/node_modules/react-dom/cjs/react-dom.development.js +0 -424
  100. package/static/canary-full/node_modules/react-dom/cjs/react-dom.production.js +0 -210
  101. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.development.js +0 -340
  102. package/static/canary-full/node_modules/react-dom/cjs/react-dom.react-server.production.js +0 -152
  103. package/static/canary-full/node_modules/react-dom/client.js +0 -38
  104. package/static/canary-full/node_modules/react-dom/client.react-server.js +0 -5
  105. package/static/canary-full/node_modules/react-dom/index.js +0 -38
  106. package/static/canary-full/node_modules/react-dom/package.json +0 -117
  107. package/static/canary-full/node_modules/react-dom/profiling.js +0 -38
  108. package/static/canary-full/node_modules/react-dom/profiling.react-server.js +0 -5
  109. package/static/canary-full/node_modules/react-dom/react-dom.react-server.js +0 -7
  110. package/static/canary-full/node_modules/react-dom/server.browser.js +0 -18
  111. package/static/canary-full/node_modules/react-dom/server.bun.js +0 -19
  112. package/static/canary-full/node_modules/react-dom/server.edge.js +0 -19
  113. package/static/canary-full/node_modules/react-dom/server.js +0 -3
  114. package/static/canary-full/node_modules/react-dom/server.node.js +0 -18
  115. package/static/canary-full/node_modules/react-dom/server.react-server.js +0 -5
  116. package/static/canary-full/node_modules/react-dom/static.browser.js +0 -12
  117. package/static/canary-full/node_modules/react-dom/static.edge.js +0 -12
  118. package/static/canary-full/node_modules/react-dom/static.js +0 -3
  119. package/static/canary-full/node_modules/react-dom/static.node.js +0 -12
  120. package/static/canary-full/node_modules/react-dom/static.react-server.js +0 -5
  121. package/static/canary-full/node_modules/react-dom/test-utils.js +0 -7
@@ -1,429 +0,0 @@
1
- /**
2
- * @license React
3
- * react.react-server.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */
10
-
11
- "use strict";
12
- var ReactSharedInternals = { H: null, A: null };
13
- function formatProdErrorMessage(code) {
14
- var url = "https://react.dev/errors/" + code;
15
- if (1 < arguments.length) {
16
- url += "?args[]=" + encodeURIComponent(arguments[1]);
17
- for (var i = 2; i < arguments.length; i++)
18
- url += "&args[]=" + encodeURIComponent(arguments[i]);
19
- }
20
- return (
21
- "Minified React error #" +
22
- code +
23
- "; visit " +
24
- url +
25
- " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
26
- );
27
- }
28
- var isArrayImpl = Array.isArray,
29
- REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
30
- REACT_PORTAL_TYPE = Symbol.for("react.portal"),
31
- REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
32
- REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
33
- REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
34
- REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
35
- REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
36
- REACT_MEMO_TYPE = Symbol.for("react.memo"),
37
- REACT_LAZY_TYPE = Symbol.for("react.lazy"),
38
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
39
- function getIteratorFn(maybeIterable) {
40
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
41
- maybeIterable =
42
- (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
43
- maybeIterable["@@iterator"];
44
- return "function" === typeof maybeIterable ? maybeIterable : null;
45
- }
46
- var hasOwnProperty = Object.prototype.hasOwnProperty,
47
- assign = Object.assign;
48
- function ReactElement(type, key, self, source, owner, props) {
49
- self = props.ref;
50
- return {
51
- $$typeof: REACT_ELEMENT_TYPE,
52
- type: type,
53
- key: key,
54
- ref: void 0 !== self ? self : null,
55
- props: props
56
- };
57
- }
58
- function cloneAndReplaceKey(oldElement, newKey) {
59
- return ReactElement(
60
- oldElement.type,
61
- newKey,
62
- void 0,
63
- void 0,
64
- void 0,
65
- oldElement.props
66
- );
67
- }
68
- function isValidElement(object) {
69
- return (
70
- "object" === typeof object &&
71
- null !== object &&
72
- object.$$typeof === REACT_ELEMENT_TYPE
73
- );
74
- }
75
- function escape(key) {
76
- var escaperLookup = { "=": "=0", ":": "=2" };
77
- return (
78
- "$" +
79
- key.replace(/[=:]/g, function (match) {
80
- return escaperLookup[match];
81
- })
82
- );
83
- }
84
- var userProvidedKeyEscapeRegex = /\/+/g;
85
- function getElementKey(element, index) {
86
- return "object" === typeof element && null !== element && null != element.key
87
- ? escape("" + element.key)
88
- : index.toString(36);
89
- }
90
- function noop() {}
91
- function resolveThenable(thenable) {
92
- switch (thenable.status) {
93
- case "fulfilled":
94
- return thenable.value;
95
- case "rejected":
96
- throw thenable.reason;
97
- default:
98
- switch (
99
- ("string" === typeof thenable.status
100
- ? thenable.then(noop, noop)
101
- : ((thenable.status = "pending"),
102
- thenable.then(
103
- function (fulfilledValue) {
104
- "pending" === thenable.status &&
105
- ((thenable.status = "fulfilled"),
106
- (thenable.value = fulfilledValue));
107
- },
108
- function (error) {
109
- "pending" === thenable.status &&
110
- ((thenable.status = "rejected"), (thenable.reason = error));
111
- }
112
- )),
113
- thenable.status)
114
- ) {
115
- case "fulfilled":
116
- return thenable.value;
117
- case "rejected":
118
- throw thenable.reason;
119
- }
120
- }
121
- throw thenable;
122
- }
123
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
124
- var type = typeof children;
125
- if ("undefined" === type || "boolean" === type) children = null;
126
- var invokeCallback = !1;
127
- if (null === children) invokeCallback = !0;
128
- else
129
- switch (type) {
130
- case "bigint":
131
- case "string":
132
- case "number":
133
- invokeCallback = !0;
134
- break;
135
- case "object":
136
- switch (children.$$typeof) {
137
- case REACT_ELEMENT_TYPE:
138
- case REACT_PORTAL_TYPE:
139
- invokeCallback = !0;
140
- break;
141
- case REACT_LAZY_TYPE:
142
- return (
143
- (invokeCallback = children._init),
144
- mapIntoArray(
145
- invokeCallback(children._payload),
146
- array,
147
- escapedPrefix,
148
- nameSoFar,
149
- callback
150
- )
151
- );
152
- }
153
- }
154
- if (invokeCallback)
155
- return (
156
- (callback = callback(children)),
157
- (invokeCallback =
158
- "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
159
- isArrayImpl(callback)
160
- ? ((escapedPrefix = ""),
161
- null != invokeCallback &&
162
- (escapedPrefix =
163
- invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
164
- mapIntoArray(callback, array, escapedPrefix, "", function (c) {
165
- return c;
166
- }))
167
- : null != callback &&
168
- (isValidElement(callback) &&
169
- (callback = cloneAndReplaceKey(
170
- callback,
171
- escapedPrefix +
172
- (null == callback.key ||
173
- (children && children.key === callback.key)
174
- ? ""
175
- : ("" + callback.key).replace(
176
- userProvidedKeyEscapeRegex,
177
- "$&/"
178
- ) + "/") +
179
- invokeCallback
180
- )),
181
- array.push(callback)),
182
- 1
183
- );
184
- invokeCallback = 0;
185
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
186
- if (isArrayImpl(children))
187
- for (var i = 0; i < children.length; i++)
188
- (nameSoFar = children[i]),
189
- (type = nextNamePrefix + getElementKey(nameSoFar, i)),
190
- (invokeCallback += mapIntoArray(
191
- nameSoFar,
192
- array,
193
- escapedPrefix,
194
- type,
195
- callback
196
- ));
197
- else if (((i = getIteratorFn(children)), "function" === typeof i))
198
- for (
199
- children = i.call(children), i = 0;
200
- !(nameSoFar = children.next()).done;
201
-
202
- )
203
- (nameSoFar = nameSoFar.value),
204
- (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
205
- (invokeCallback += mapIntoArray(
206
- nameSoFar,
207
- array,
208
- escapedPrefix,
209
- type,
210
- callback
211
- ));
212
- else if ("object" === type) {
213
- if ("function" === typeof children.then)
214
- return mapIntoArray(
215
- resolveThenable(children),
216
- array,
217
- escapedPrefix,
218
- nameSoFar,
219
- callback
220
- );
221
- array = String(children);
222
- throw Error(
223
- formatProdErrorMessage(
224
- 31,
225
- "[object Object]" === array
226
- ? "object with keys {" + Object.keys(children).join(", ") + "}"
227
- : array
228
- )
229
- );
230
- }
231
- return invokeCallback;
232
- }
233
- function mapChildren(children, func, context) {
234
- if (null == children) return children;
235
- var result = [],
236
- count = 0;
237
- mapIntoArray(children, result, "", "", function (child) {
238
- return func.call(context, child, count++);
239
- });
240
- return result;
241
- }
242
- function lazyInitializer(payload) {
243
- if (-1 === payload._status) {
244
- var ctor = payload._result;
245
- ctor = ctor();
246
- ctor.then(
247
- function (moduleObject) {
248
- if (0 === payload._status || -1 === payload._status)
249
- (payload._status = 1), (payload._result = moduleObject);
250
- },
251
- function (error) {
252
- if (0 === payload._status || -1 === payload._status)
253
- (payload._status = 2), (payload._result = error);
254
- }
255
- );
256
- -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
257
- }
258
- if (1 === payload._status) return payload._result.default;
259
- throw payload._result;
260
- }
261
- function createCacheRoot() {
262
- return new WeakMap();
263
- }
264
- function createCacheNode() {
265
- return { s: 0, v: void 0, o: null, p: null };
266
- }
267
- exports.Children = {
268
- map: mapChildren,
269
- forEach: function (children, forEachFunc, forEachContext) {
270
- mapChildren(
271
- children,
272
- function () {
273
- forEachFunc.apply(this, arguments);
274
- },
275
- forEachContext
276
- );
277
- },
278
- count: function (children) {
279
- var n = 0;
280
- mapChildren(children, function () {
281
- n++;
282
- });
283
- return n;
284
- },
285
- toArray: function (children) {
286
- return (
287
- mapChildren(children, function (child) {
288
- return child;
289
- }) || []
290
- );
291
- },
292
- only: function (children) {
293
- if (!isValidElement(children)) throw Error(formatProdErrorMessage(143));
294
- return children;
295
- }
296
- };
297
- exports.Fragment = REACT_FRAGMENT_TYPE;
298
- exports.Profiler = REACT_PROFILER_TYPE;
299
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
300
- exports.Suspense = REACT_SUSPENSE_TYPE;
301
- exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
302
- ReactSharedInternals;
303
- exports.cache = function (fn) {
304
- return function () {
305
- var dispatcher = ReactSharedInternals.A;
306
- if (!dispatcher) return fn.apply(null, arguments);
307
- var fnMap = dispatcher.getCacheForType(createCacheRoot);
308
- dispatcher = fnMap.get(fn);
309
- void 0 === dispatcher &&
310
- ((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher));
311
- fnMap = 0;
312
- for (var l = arguments.length; fnMap < l; fnMap++) {
313
- var arg = arguments[fnMap];
314
- if (
315
- "function" === typeof arg ||
316
- ("object" === typeof arg && null !== arg)
317
- ) {
318
- var objectCache = dispatcher.o;
319
- null === objectCache && (dispatcher.o = objectCache = new WeakMap());
320
- dispatcher = objectCache.get(arg);
321
- void 0 === dispatcher &&
322
- ((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher));
323
- } else
324
- (objectCache = dispatcher.p),
325
- null === objectCache && (dispatcher.p = objectCache = new Map()),
326
- (dispatcher = objectCache.get(arg)),
327
- void 0 === dispatcher &&
328
- ((dispatcher = createCacheNode()),
329
- objectCache.set(arg, dispatcher));
330
- }
331
- if (1 === dispatcher.s) return dispatcher.v;
332
- if (2 === dispatcher.s) throw dispatcher.v;
333
- try {
334
- var result = fn.apply(null, arguments);
335
- fnMap = dispatcher;
336
- fnMap.s = 1;
337
- return (fnMap.v = result);
338
- } catch (error) {
339
- throw ((result = dispatcher), (result.s = 2), (result.v = error), error);
340
- }
341
- };
342
- };
343
- exports.captureOwnerStack = function () {
344
- return null;
345
- };
346
- exports.cloneElement = function (element, config, children) {
347
- if (null === element || void 0 === element)
348
- throw Error(formatProdErrorMessage(267, element));
349
- var props = assign({}, element.props),
350
- key = element.key,
351
- owner = void 0;
352
- if (null != config)
353
- for (propName in (void 0 !== config.ref && (owner = void 0),
354
- void 0 !== config.key && (key = "" + config.key),
355
- config))
356
- !hasOwnProperty.call(config, propName) ||
357
- "key" === propName ||
358
- "__self" === propName ||
359
- "__source" === propName ||
360
- ("ref" === propName && void 0 === config.ref) ||
361
- (props[propName] = config[propName]);
362
- var propName = arguments.length - 2;
363
- if (1 === propName) props.children = children;
364
- else if (1 < propName) {
365
- for (var childArray = Array(propName), i = 0; i < propName; i++)
366
- childArray[i] = arguments[i + 2];
367
- props.children = childArray;
368
- }
369
- return ReactElement(element.type, key, void 0, void 0, owner, props);
370
- };
371
- exports.createElement = function (type, config, children) {
372
- var propName,
373
- props = {},
374
- key = null;
375
- if (null != config)
376
- for (propName in (void 0 !== config.key && (key = "" + config.key), config))
377
- hasOwnProperty.call(config, propName) &&
378
- "key" !== propName &&
379
- "__self" !== propName &&
380
- "__source" !== propName &&
381
- (props[propName] = config[propName]);
382
- var childrenLength = arguments.length - 2;
383
- if (1 === childrenLength) props.children = children;
384
- else if (1 < childrenLength) {
385
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
386
- childArray[i] = arguments[i + 2];
387
- props.children = childArray;
388
- }
389
- if (type && type.defaultProps)
390
- for (propName in ((childrenLength = type.defaultProps), childrenLength))
391
- void 0 === props[propName] &&
392
- (props[propName] = childrenLength[propName]);
393
- return ReactElement(type, key, void 0, void 0, null, props);
394
- };
395
- exports.createRef = function () {
396
- return { current: null };
397
- };
398
- exports.forwardRef = function (render) {
399
- return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
400
- };
401
- exports.isValidElement = isValidElement;
402
- exports.lazy = function (ctor) {
403
- return {
404
- $$typeof: REACT_LAZY_TYPE,
405
- _payload: { _status: -1, _result: ctor },
406
- _init: lazyInitializer
407
- };
408
- };
409
- exports.memo = function (type, compare) {
410
- return {
411
- $$typeof: REACT_MEMO_TYPE,
412
- type: type,
413
- compare: void 0 === compare ? null : compare
414
- };
415
- };
416
- exports.use = function (usable) {
417
- return ReactSharedInternals.H.use(usable);
418
- };
419
- exports.useCallback = function (callback, deps) {
420
- return ReactSharedInternals.H.useCallback(callback, deps);
421
- };
422
- exports.useDebugValue = function () {};
423
- exports.useId = function () {
424
- return ReactSharedInternals.H.useId();
425
- };
426
- exports.useMemo = function (create, deps) {
427
- return ReactSharedInternals.H.useMemo(create, deps);
428
- };
429
- exports.version = "19.2.0-canary-5252281c-20250408";
@@ -1,14 +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
-
8
- 'use strict';
9
-
10
- if (process.env.NODE_ENV === 'production') {
11
- module.exports = require('./cjs/react-compiler-runtime.production.js');
12
- } else {
13
- module.exports = require('./cjs/react-compiler-runtime.development.js');
14
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react.production.js');
5
- } else {
6
- module.exports = require('./cjs/react.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react-jsx-dev-runtime.production.js');
5
- } else {
6
- module.exports = require('./cjs/react-jsx-dev-runtime.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react-jsx-dev-runtime.react-server.production.js');
5
- } else {
6
- module.exports = require('./cjs/react-jsx-dev-runtime.react-server.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react-jsx-runtime.production.js');
5
- } else {
6
- module.exports = require('./cjs/react-jsx-runtime.development.js');
7
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react-jsx-runtime.react-server.production.js');
5
- } else {
6
- module.exports = require('./cjs/react-jsx-runtime.react-server.development.js');
7
- }
@@ -1,51 +0,0 @@
1
- {
2
- "name": "react",
3
- "description": "React is a JavaScript library for building user interfaces.",
4
- "keywords": [
5
- "react"
6
- ],
7
- "version": "19.2.0-canary-5252281c-20250408",
8
- "homepage": "https://react.dev/",
9
- "bugs": "https://github.com/facebook/react/issues",
10
- "license": "MIT",
11
- "files": [
12
- "LICENSE",
13
- "README.md",
14
- "index.js",
15
- "cjs/",
16
- "compiler-runtime.js",
17
- "jsx-runtime.js",
18
- "jsx-runtime.react-server.js",
19
- "jsx-dev-runtime.js",
20
- "jsx-dev-runtime.react-server.js",
21
- "react.react-server.js"
22
- ],
23
- "main": "index.js",
24
- "exports": {
25
- ".": {
26
- "react-server": "./react.react-server.js",
27
- "default": "./index.js"
28
- },
29
- "./package.json": "./package.json",
30
- "./jsx-runtime": {
31
- "react-server": "./jsx-runtime.react-server.js",
32
- "default": "./jsx-runtime.js"
33
- },
34
- "./jsx-dev-runtime": {
35
- "react-server": "./jsx-dev-runtime.react-server.js",
36
- "default": "./jsx-dev-runtime.js"
37
- },
38
- "./compiler-runtime": {
39
- "react-server": "./compiler-runtime.js",
40
- "default": "./compiler-runtime.js"
41
- }
42
- },
43
- "repository": {
44
- "type": "git",
45
- "url": "https://github.com/facebook/react.git",
46
- "directory": "packages/react"
47
- },
48
- "engines": {
49
- "node": ">=0.10.0"
50
- }
51
- }
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === 'production') {
4
- module.exports = require('./cjs/react.react-server.production.js');
5
- } else {
6
- module.exports = require('./cjs/react.react-server.development.js');
7
- }
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Meta Platforms, Inc. and affiliates.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,60 +0,0 @@
1
- # `react-dom`
2
-
3
- This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as `react` to npm.
4
-
5
- ## Installation
6
-
7
- ```sh
8
- npm install react react-dom
9
- ```
10
-
11
- ## Usage
12
-
13
- ### In the browser
14
-
15
- ```js
16
- import { createRoot } from 'react-dom/client';
17
-
18
- function App() {
19
- return <div>Hello World</div>;
20
- }
21
-
22
- const root = createRoot(document.getElementById('root'));
23
- root.render(<App />);
24
- ```
25
-
26
- ### On the server
27
-
28
- ```js
29
- import { renderToPipeableStream } from 'react-dom/server';
30
-
31
- function App() {
32
- return <div>Hello World</div>;
33
- }
34
-
35
- function handleRequest(res) {
36
- // ... in your server handler ...
37
- const stream = renderToPipeableStream(<App />, {
38
- onShellReady() {
39
- res.statusCode = 200;
40
- res.setHeader('Content-type', 'text/html');
41
- stream.pipe(res);
42
- },
43
- // ...
44
- });
45
- }
46
- ```
47
-
48
- ## API
49
-
50
- ### `react-dom`
51
-
52
- See https://react.dev/reference/react-dom
53
-
54
- ### `react-dom/client`
55
-
56
- See https://react.dev/reference/react-dom/client
57
-
58
- ### `react-dom/server`
59
-
60
- See https://react.dev/reference/react-dom/server