@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,340 +0,0 @@
1
- /**
2
- * @license React
3
- * react-dom.react-server.development.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
- "production" !== process.env.NODE_ENV &&
13
- (function () {
14
- function noop() {}
15
- function getCrossOriginStringAs(as, input) {
16
- if ("font" === as) return "";
17
- if ("string" === typeof input)
18
- return "use-credentials" === input ? input : "";
19
- }
20
- function getValueDescriptorExpectingObjectForWarning(thing) {
21
- return null === thing
22
- ? "`null`"
23
- : void 0 === thing
24
- ? "`undefined`"
25
- : "" === thing
26
- ? "an empty string"
27
- : 'something with type "' + typeof thing + '"';
28
- }
29
- function getValueDescriptorExpectingEnumForWarning(thing) {
30
- return null === thing
31
- ? "`null`"
32
- : void 0 === thing
33
- ? "`undefined`"
34
- : "" === thing
35
- ? "an empty string"
36
- : "string" === typeof thing
37
- ? JSON.stringify(thing)
38
- : "number" === typeof thing
39
- ? "`" + thing + "`"
40
- : 'something with type "' + typeof thing + '"';
41
- }
42
- var React = require("react"),
43
- Internals = {
44
- d: {
45
- f: noop,
46
- r: function () {
47
- throw Error(
48
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
49
- );
50
- },
51
- D: noop,
52
- C: noop,
53
- L: noop,
54
- m: noop,
55
- X: noop,
56
- S: noop,
57
- M: noop
58
- },
59
- p: 0,
60
- findDOMNode: null
61
- };
62
- if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
63
- throw Error(
64
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
65
- );
66
- ("function" === typeof Map &&
67
- null != Map.prototype &&
68
- "function" === typeof Map.prototype.forEach &&
69
- "function" === typeof Set &&
70
- null != Set.prototype &&
71
- "function" === typeof Set.prototype.clear &&
72
- "function" === typeof Set.prototype.forEach) ||
73
- console.error(
74
- "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
75
- );
76
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
77
- Internals;
78
- exports.preconnect = function (href, options) {
79
- "string" === typeof href && href
80
- ? null != options && "object" !== typeof options
81
- ? console.error(
82
- "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
83
- getValueDescriptorExpectingEnumForWarning(options)
84
- )
85
- : null != options &&
86
- "string" !== typeof options.crossOrigin &&
87
- console.error(
88
- "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
89
- getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
90
- )
91
- : console.error(
92
- "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
93
- getValueDescriptorExpectingObjectForWarning(href)
94
- );
95
- "string" === typeof href &&
96
- (options
97
- ? ((options = options.crossOrigin),
98
- (options =
99
- "string" === typeof options
100
- ? "use-credentials" === options
101
- ? options
102
- : ""
103
- : void 0))
104
- : (options = null),
105
- Internals.d.C(href, options));
106
- };
107
- exports.prefetchDNS = function (href) {
108
- if ("string" !== typeof href || !href)
109
- console.error(
110
- "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
111
- getValueDescriptorExpectingObjectForWarning(href)
112
- );
113
- else if (1 < arguments.length) {
114
- var options = arguments[1];
115
- "object" === typeof options && options.hasOwnProperty("crossOrigin")
116
- ? console.error(
117
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
118
- getValueDescriptorExpectingEnumForWarning(options)
119
- )
120
- : console.error(
121
- "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
122
- getValueDescriptorExpectingEnumForWarning(options)
123
- );
124
- }
125
- "string" === typeof href && Internals.d.D(href);
126
- };
127
- exports.preinit = function (href, options) {
128
- "string" === typeof href && href
129
- ? null == options || "object" !== typeof options
130
- ? console.error(
131
- "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
132
- getValueDescriptorExpectingEnumForWarning(options)
133
- )
134
- : "style" !== options.as &&
135
- "script" !== options.as &&
136
- console.error(
137
- 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
138
- getValueDescriptorExpectingEnumForWarning(options.as)
139
- )
140
- : console.error(
141
- "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
142
- getValueDescriptorExpectingObjectForWarning(href)
143
- );
144
- if (
145
- "string" === typeof href &&
146
- options &&
147
- "string" === typeof options.as
148
- ) {
149
- var as = options.as,
150
- crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
151
- integrity =
152
- "string" === typeof options.integrity ? options.integrity : void 0,
153
- fetchPriority =
154
- "string" === typeof options.fetchPriority
155
- ? options.fetchPriority
156
- : void 0;
157
- "style" === as
158
- ? Internals.d.S(
159
- href,
160
- "string" === typeof options.precedence
161
- ? options.precedence
162
- : void 0,
163
- {
164
- crossOrigin: crossOrigin,
165
- integrity: integrity,
166
- fetchPriority: fetchPriority
167
- }
168
- )
169
- : "script" === as &&
170
- Internals.d.X(href, {
171
- crossOrigin: crossOrigin,
172
- integrity: integrity,
173
- fetchPriority: fetchPriority,
174
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
175
- });
176
- }
177
- };
178
- exports.preinitModule = function (href, options) {
179
- var encountered = "";
180
- ("string" === typeof href && href) ||
181
- (encountered +=
182
- " The `href` argument encountered was " +
183
- getValueDescriptorExpectingObjectForWarning(href) +
184
- ".");
185
- void 0 !== options && "object" !== typeof options
186
- ? (encountered +=
187
- " The `options` argument encountered was " +
188
- getValueDescriptorExpectingObjectForWarning(options) +
189
- ".")
190
- : options &&
191
- "as" in options &&
192
- "script" !== options.as &&
193
- (encountered +=
194
- " The `as` option encountered was " +
195
- getValueDescriptorExpectingEnumForWarning(options.as) +
196
- ".");
197
- if (encountered)
198
- console.error(
199
- "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
200
- encountered
201
- );
202
- else
203
- switch (
204
- ((encountered =
205
- options && "string" === typeof options.as ? options.as : "script"),
206
- encountered)
207
- ) {
208
- case "script":
209
- break;
210
- default:
211
- (encountered =
212
- getValueDescriptorExpectingEnumForWarning(encountered)),
213
- console.error(
214
- 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
215
- encountered,
216
- href
217
- );
218
- }
219
- if ("string" === typeof href)
220
- if ("object" === typeof options && null !== options) {
221
- if (null == options.as || "script" === options.as)
222
- (encountered = getCrossOriginStringAs(
223
- options.as,
224
- options.crossOrigin
225
- )),
226
- Internals.d.M(href, {
227
- crossOrigin: encountered,
228
- integrity:
229
- "string" === typeof options.integrity
230
- ? options.integrity
231
- : void 0,
232
- nonce:
233
- "string" === typeof options.nonce ? options.nonce : void 0
234
- });
235
- } else null == options && Internals.d.M(href);
236
- };
237
- exports.preload = function (href, options) {
238
- var encountered = "";
239
- ("string" === typeof href && href) ||
240
- (encountered +=
241
- " The `href` argument encountered was " +
242
- getValueDescriptorExpectingObjectForWarning(href) +
243
- ".");
244
- null == options || "object" !== typeof options
245
- ? (encountered +=
246
- " The `options` argument encountered was " +
247
- getValueDescriptorExpectingObjectForWarning(options) +
248
- ".")
249
- : ("string" === typeof options.as && options.as) ||
250
- (encountered +=
251
- " The `as` option encountered was " +
252
- getValueDescriptorExpectingObjectForWarning(options.as) +
253
- ".");
254
- encountered &&
255
- console.error(
256
- 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
257
- encountered
258
- );
259
- if (
260
- "string" === typeof href &&
261
- "object" === typeof options &&
262
- null !== options &&
263
- "string" === typeof options.as
264
- ) {
265
- encountered = options.as;
266
- var crossOrigin = getCrossOriginStringAs(
267
- encountered,
268
- options.crossOrigin
269
- );
270
- Internals.d.L(href, encountered, {
271
- crossOrigin: crossOrigin,
272
- integrity:
273
- "string" === typeof options.integrity ? options.integrity : void 0,
274
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
275
- type: "string" === typeof options.type ? options.type : void 0,
276
- fetchPriority:
277
- "string" === typeof options.fetchPriority
278
- ? options.fetchPriority
279
- : void 0,
280
- referrerPolicy:
281
- "string" === typeof options.referrerPolicy
282
- ? options.referrerPolicy
283
- : void 0,
284
- imageSrcSet:
285
- "string" === typeof options.imageSrcSet
286
- ? options.imageSrcSet
287
- : void 0,
288
- imageSizes:
289
- "string" === typeof options.imageSizes
290
- ? options.imageSizes
291
- : void 0,
292
- media: "string" === typeof options.media ? options.media : void 0
293
- });
294
- }
295
- };
296
- exports.preloadModule = function (href, options) {
297
- var encountered = "";
298
- ("string" === typeof href && href) ||
299
- (encountered +=
300
- " The `href` argument encountered was " +
301
- getValueDescriptorExpectingObjectForWarning(href) +
302
- ".");
303
- void 0 !== options && "object" !== typeof options
304
- ? (encountered +=
305
- " The `options` argument encountered was " +
306
- getValueDescriptorExpectingObjectForWarning(options) +
307
- ".")
308
- : options &&
309
- "as" in options &&
310
- "string" !== typeof options.as &&
311
- (encountered +=
312
- " The `as` option encountered was " +
313
- getValueDescriptorExpectingObjectForWarning(options.as) +
314
- ".");
315
- encountered &&
316
- console.error(
317
- 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
318
- encountered
319
- );
320
- "string" === typeof href &&
321
- (options
322
- ? ((encountered = getCrossOriginStringAs(
323
- options.as,
324
- options.crossOrigin
325
- )),
326
- Internals.d.m(href, {
327
- as:
328
- "string" === typeof options.as && "script" !== options.as
329
- ? options.as
330
- : void 0,
331
- crossOrigin: encountered,
332
- integrity:
333
- "string" === typeof options.integrity
334
- ? options.integrity
335
- : void 0
336
- }))
337
- : Internals.d.m(href));
338
- };
339
- exports.version = "19.2.0-canary-5252281c-20250408";
340
- })();
@@ -1,152 +0,0 @@
1
- /**
2
- * @license React
3
- * react-dom.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 React = require("react");
13
- function noop() {}
14
- var Internals = {
15
- d: {
16
- f: noop,
17
- r: function () {
18
- throw Error(
19
- "Invalid form element. requestFormReset must be passed a form that was rendered by React."
20
- );
21
- },
22
- D: noop,
23
- C: noop,
24
- L: noop,
25
- m: noop,
26
- X: noop,
27
- S: noop,
28
- M: noop
29
- },
30
- p: 0,
31
- findDOMNode: null
32
- };
33
- if (!React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE)
34
- throw Error(
35
- 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
36
- );
37
- function getCrossOriginStringAs(as, input) {
38
- if ("font" === as) return "";
39
- if ("string" === typeof input)
40
- return "use-credentials" === input ? input : "";
41
- }
42
- exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
43
- Internals;
44
- exports.preconnect = function (href, options) {
45
- "string" === typeof href &&
46
- (options
47
- ? ((options = options.crossOrigin),
48
- (options =
49
- "string" === typeof options
50
- ? "use-credentials" === options
51
- ? options
52
- : ""
53
- : void 0))
54
- : (options = null),
55
- Internals.d.C(href, options));
56
- };
57
- exports.prefetchDNS = function (href) {
58
- "string" === typeof href && Internals.d.D(href);
59
- };
60
- exports.preinit = function (href, options) {
61
- if ("string" === typeof href && options && "string" === typeof options.as) {
62
- var as = options.as,
63
- crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
64
- integrity =
65
- "string" === typeof options.integrity ? options.integrity : void 0,
66
- fetchPriority =
67
- "string" === typeof options.fetchPriority
68
- ? options.fetchPriority
69
- : void 0;
70
- "style" === as
71
- ? Internals.d.S(
72
- href,
73
- "string" === typeof options.precedence ? options.precedence : void 0,
74
- {
75
- crossOrigin: crossOrigin,
76
- integrity: integrity,
77
- fetchPriority: fetchPriority
78
- }
79
- )
80
- : "script" === as &&
81
- Internals.d.X(href, {
82
- crossOrigin: crossOrigin,
83
- integrity: integrity,
84
- fetchPriority: fetchPriority,
85
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
86
- });
87
- }
88
- };
89
- exports.preinitModule = function (href, options) {
90
- if ("string" === typeof href)
91
- if ("object" === typeof options && null !== options) {
92
- if (null == options.as || "script" === options.as) {
93
- var crossOrigin = getCrossOriginStringAs(
94
- options.as,
95
- options.crossOrigin
96
- );
97
- Internals.d.M(href, {
98
- crossOrigin: crossOrigin,
99
- integrity:
100
- "string" === typeof options.integrity ? options.integrity : void 0,
101
- nonce: "string" === typeof options.nonce ? options.nonce : void 0
102
- });
103
- }
104
- } else null == options && Internals.d.M(href);
105
- };
106
- exports.preload = function (href, options) {
107
- if (
108
- "string" === typeof href &&
109
- "object" === typeof options &&
110
- null !== options &&
111
- "string" === typeof options.as
112
- ) {
113
- var as = options.as,
114
- crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
115
- Internals.d.L(href, as, {
116
- crossOrigin: crossOrigin,
117
- integrity:
118
- "string" === typeof options.integrity ? options.integrity : void 0,
119
- nonce: "string" === typeof options.nonce ? options.nonce : void 0,
120
- type: "string" === typeof options.type ? options.type : void 0,
121
- fetchPriority:
122
- "string" === typeof options.fetchPriority
123
- ? options.fetchPriority
124
- : void 0,
125
- referrerPolicy:
126
- "string" === typeof options.referrerPolicy
127
- ? options.referrerPolicy
128
- : void 0,
129
- imageSrcSet:
130
- "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
131
- imageSizes:
132
- "string" === typeof options.imageSizes ? options.imageSizes : void 0,
133
- media: "string" === typeof options.media ? options.media : void 0
134
- });
135
- }
136
- };
137
- exports.preloadModule = function (href, options) {
138
- if ("string" === typeof href)
139
- if (options) {
140
- var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
141
- Internals.d.m(href, {
142
- as:
143
- "string" === typeof options.as && "script" !== options.as
144
- ? options.as
145
- : void 0,
146
- crossOrigin: crossOrigin,
147
- integrity:
148
- "string" === typeof options.integrity ? options.integrity : void 0
149
- });
150
- } else Internals.d.m(href);
151
- };
152
- exports.version = "19.2.0-canary-5252281c-20250408";
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- function checkDCE() {
4
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5
- if (
6
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8
- ) {
9
- return;
10
- }
11
- if (process.env.NODE_ENV !== 'production') {
12
- // This branch is unreachable because this function is only called
13
- // in production, but the condition is true only in development.
14
- // Therefore if the branch is still here, dead code elimination wasn't
15
- // properly applied.
16
- // Don't change the message. React DevTools relies on it. Also make sure
17
- // this message doesn't occur elsewhere in this function, or it will cause
18
- // a false positive.
19
- throw new Error('^_^');
20
- }
21
- try {
22
- // Verify that the code above has been dead code eliminated (DCE'd).
23
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24
- } catch (err) {
25
- // DevTools shouldn't crash React, no matter what.
26
- // We should still report in case we break this code.
27
- console.error(err);
28
- }
29
- }
30
-
31
- if (process.env.NODE_ENV === 'production') {
32
- // DCE check should happen before ReactDOM bundle executes so that
33
- // DevTools can report bad minification during injection.
34
- checkDCE();
35
- module.exports = require('./cjs/react-dom-client.production.js');
36
- } else {
37
- module.exports = require('./cjs/react-dom-client.development.js');
38
- }
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- throw new Error(
4
- 'react-dom/client is not supported in React Server Components.'
5
- );
@@ -1,38 +0,0 @@
1
- 'use strict';
2
-
3
- function checkDCE() {
4
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
5
- if (
6
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
7
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
8
- ) {
9
- return;
10
- }
11
- if (process.env.NODE_ENV !== 'production') {
12
- // This branch is unreachable because this function is only called
13
- // in production, but the condition is true only in development.
14
- // Therefore if the branch is still here, dead code elimination wasn't
15
- // properly applied.
16
- // Don't change the message. React DevTools relies on it. Also make sure
17
- // this message doesn't occur elsewhere in this function, or it will cause
18
- // a false positive.
19
- throw new Error('^_^');
20
- }
21
- try {
22
- // Verify that the code above has been dead code eliminated (DCE'd).
23
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
24
- } catch (err) {
25
- // DevTools shouldn't crash React, no matter what.
26
- // We should still report in case we break this code.
27
- console.error(err);
28
- }
29
- }
30
-
31
- if (process.env.NODE_ENV === 'production') {
32
- // DCE check should happen before ReactDOM bundle executes so that
33
- // DevTools can report bad minification during injection.
34
- checkDCE();
35
- module.exports = require('./cjs/react-dom.production.js');
36
- } else {
37
- module.exports = require('./cjs/react-dom.development.js');
38
- }