@vxrn/vendor 1.1.345 → 1.1.347
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.
- package/package.json +2 -1
- package/react/cjs/react-compiler-runtime.development.js +1 -18
- package/react/cjs/react-jsx-dev-runtime.development.js +127 -144
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +128 -145
- package/react/cjs/react-jsx-runtime.development.js +127 -144
- package/react/cjs/react-jsx-runtime.react-server.development.js +128 -145
- package/react/cjs/react.development.js +204 -230
- package/react/cjs/react.production.js +9 -10
- package/react/cjs/react.react-server.development.js +172 -199
- package/react/cjs/react.react-server.production.js +6 -7
- package/react/package.json +2 -2
- package/react-dom/cjs/react-dom-client.development.js +6107 -5750
- package/react-dom/cjs/react-dom-client.production.js +2295 -1924
- package/react-dom/cjs/react-dom-profiling.development.js +6134 -5777
- package/react-dom/cjs/react-dom-profiling.profiling.js +2572 -2247
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +891 -761
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +1244 -1040
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +887 -761
- package/react-dom/cjs/react-dom-server.browser.development.js +1380 -1060
- package/react-dom/cjs/react-dom-server.browser.production.js +999 -749
- package/react-dom/cjs/react-dom-server.bun.development.js +1241 -1032
- package/react-dom/cjs/react-dom-server.bun.production.js +886 -754
- package/react-dom/cjs/react-dom-server.edge.development.js +1393 -1069
- package/react-dom/cjs/react-dom-server.edge.production.js +1007 -758
- package/react-dom/cjs/react-dom-server.node.development.js +1624 -1254
- package/react-dom/cjs/react-dom-server.node.production.js +1242 -953
- package/react-dom/cjs/react-dom-test-utils.development.js +1 -20
- package/react-dom/cjs/react-dom.development.js +34 -50
- package/react-dom/cjs/react-dom.production.js +4 -3
- package/react-dom/cjs/react-dom.react-server.development.js +48 -66
- package/react-dom/cjs/react-dom.react-server.production.js +6 -8
- package/react-dom/package.json +3 -3
- package/react-dom/static.browser.js +1 -0
- package/react-dom/static.edge.js +1 -0
- package/react-dom/static.node.js +1 -0
|
@@ -11,31 +11,12 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
-
function error(format) {
|
|
15
|
-
for (
|
|
16
|
-
var _len2 = arguments.length,
|
|
17
|
-
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
18
|
-
_key2 = 1;
|
|
19
|
-
_key2 < _len2;
|
|
20
|
-
_key2++
|
|
21
|
-
)
|
|
22
|
-
args[_key2 - 1] = arguments[_key2];
|
|
23
|
-
_len2 = format;
|
|
24
|
-
_key2 = Error("react-stack-top-frame");
|
|
25
|
-
ReactSharedInternals.getCurrentStack &&
|
|
26
|
-
((_key2 = ReactSharedInternals.getCurrentStack(_key2)),
|
|
27
|
-
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
|
|
28
|
-
args.unshift(_len2);
|
|
29
|
-
Function.prototype.apply.call(console.error, console, args);
|
|
30
|
-
}
|
|
31
14
|
var React = require("react"),
|
|
32
|
-
ReactSharedInternals =
|
|
33
|
-
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
34
15
|
didWarnAboutUsingAct = !1;
|
|
35
16
|
exports.act = function (callback) {
|
|
36
17
|
!1 === didWarnAboutUsingAct &&
|
|
37
18
|
((didWarnAboutUsingAct = !0),
|
|
38
|
-
error(
|
|
19
|
+
console.error(
|
|
39
20
|
"`ReactDOMTestUtils.act` is deprecated in favor of `React.act`. Import `act` from `react` instead of `react-dom/test-utils`. See https://react.dev/warnings/react-dom-test-utils for more info."
|
|
40
21
|
));
|
|
41
22
|
return React.act(callback);
|
|
@@ -11,23 +11,6 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
-
function error(format) {
|
|
15
|
-
for (
|
|
16
|
-
var _len2 = arguments.length,
|
|
17
|
-
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
18
|
-
_key2 = 1;
|
|
19
|
-
_key2 < _len2;
|
|
20
|
-
_key2++
|
|
21
|
-
)
|
|
22
|
-
args[_key2 - 1] = arguments[_key2];
|
|
23
|
-
_len2 = format;
|
|
24
|
-
_key2 = Error("react-stack-top-frame");
|
|
25
|
-
ReactSharedInternals.getCurrentStack &&
|
|
26
|
-
((_key2 = ReactSharedInternals.getCurrentStack(_key2)),
|
|
27
|
-
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
|
|
28
|
-
args.unshift(_len2);
|
|
29
|
-
Function.prototype.apply.call(console.error, console, args);
|
|
30
|
-
}
|
|
31
14
|
function noop() {}
|
|
32
15
|
function testStringCoercion(value) {
|
|
33
16
|
return "" + value;
|
|
@@ -42,7 +25,7 @@
|
|
|
42
25
|
JSCompiler_inline_result = !0;
|
|
43
26
|
}
|
|
44
27
|
JSCompiler_inline_result &&
|
|
45
|
-
(error(
|
|
28
|
+
(console.error(
|
|
46
29
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
47
30
|
("function" === typeof Symbol &&
|
|
48
31
|
Symbol.toStringTag &&
|
|
@@ -68,28 +51,28 @@
|
|
|
68
51
|
return null === thing
|
|
69
52
|
? "`null`"
|
|
70
53
|
: void 0 === thing
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
54
|
+
? "`undefined`"
|
|
55
|
+
: "" === thing
|
|
56
|
+
? "an empty string"
|
|
57
|
+
: 'something with type "' + typeof thing + '"';
|
|
75
58
|
}
|
|
76
59
|
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
77
60
|
return null === thing
|
|
78
61
|
? "`null`"
|
|
79
62
|
: void 0 === thing
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
63
|
+
? "`undefined`"
|
|
64
|
+
: "" === thing
|
|
65
|
+
? "an empty string"
|
|
66
|
+
: "string" === typeof thing
|
|
67
|
+
? JSON.stringify(thing)
|
|
68
|
+
: "number" === typeof thing
|
|
69
|
+
? "`" + thing + "`"
|
|
70
|
+
: 'something with type "' + typeof thing + '"';
|
|
88
71
|
}
|
|
89
72
|
function resolveDispatcher() {
|
|
90
73
|
var dispatcher = ReactSharedInternals.H;
|
|
91
74
|
null === dispatcher &&
|
|
92
|
-
error(
|
|
75
|
+
console.error(
|
|
93
76
|
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
94
77
|
);
|
|
95
78
|
return dispatcher;
|
|
@@ -98,8 +81,7 @@
|
|
|
98
81
|
"function" ===
|
|
99
82
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
|
|
100
83
|
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
101
|
-
var
|
|
102
|
-
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
84
|
+
var React = require("react"),
|
|
103
85
|
Internals = {
|
|
104
86
|
d: {
|
|
105
87
|
f: noop,
|
|
@@ -119,7 +101,9 @@
|
|
|
119
101
|
p: 0,
|
|
120
102
|
findDOMNode: null
|
|
121
103
|
},
|
|
122
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal")
|
|
104
|
+
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
105
|
+
ReactSharedInternals =
|
|
106
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
123
107
|
("function" === typeof Map &&
|
|
124
108
|
null != Map.prototype &&
|
|
125
109
|
"function" === typeof Map.prototype.forEach &&
|
|
@@ -127,7 +111,7 @@
|
|
|
127
111
|
null != Set.prototype &&
|
|
128
112
|
"function" === typeof Set.prototype.clear &&
|
|
129
113
|
"function" === typeof Set.prototype.forEach) ||
|
|
130
|
-
error(
|
|
114
|
+
console.error(
|
|
131
115
|
"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"
|
|
132
116
|
);
|
|
133
117
|
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
@@ -154,7 +138,7 @@
|
|
|
154
138
|
(ReactSharedInternals.T = previousTransition),
|
|
155
139
|
(Internals.p = previousUpdatePriority),
|
|
156
140
|
Internals.d.f() &&
|
|
157
|
-
error(
|
|
141
|
+
console.error(
|
|
158
142
|
"flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."
|
|
159
143
|
);
|
|
160
144
|
}
|
|
@@ -162,17 +146,17 @@
|
|
|
162
146
|
exports.preconnect = function (href, options) {
|
|
163
147
|
"string" === typeof href && href
|
|
164
148
|
? null != options && "object" !== typeof options
|
|
165
|
-
? error(
|
|
149
|
+
? console.error(
|
|
166
150
|
"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.",
|
|
167
151
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
168
152
|
)
|
|
169
153
|
: null != options &&
|
|
170
154
|
"string" !== typeof options.crossOrigin &&
|
|
171
|
-
error(
|
|
155
|
+
console.error(
|
|
172
156
|
"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.",
|
|
173
157
|
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
174
158
|
)
|
|
175
|
-
: error(
|
|
159
|
+
: console.error(
|
|
176
160
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
177
161
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
178
162
|
);
|
|
@@ -190,18 +174,18 @@
|
|
|
190
174
|
};
|
|
191
175
|
exports.prefetchDNS = function (href) {
|
|
192
176
|
if ("string" !== typeof href || !href)
|
|
193
|
-
error(
|
|
177
|
+
console.error(
|
|
194
178
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
195
179
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
196
180
|
);
|
|
197
181
|
else if (1 < arguments.length) {
|
|
198
182
|
var options = arguments[1];
|
|
199
183
|
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
200
|
-
? error(
|
|
184
|
+
? console.error(
|
|
201
185
|
"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`.",
|
|
202
186
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
203
187
|
)
|
|
204
|
-
: error(
|
|
188
|
+
: console.error(
|
|
205
189
|
"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`.",
|
|
206
190
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
207
191
|
);
|
|
@@ -211,17 +195,17 @@
|
|
|
211
195
|
exports.preinit = function (href, options) {
|
|
212
196
|
"string" === typeof href && href
|
|
213
197
|
? null == options || "object" !== typeof options
|
|
214
|
-
? error(
|
|
198
|
+
? console.error(
|
|
215
199
|
"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.",
|
|
216
200
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
217
201
|
)
|
|
218
202
|
: "style" !== options.as &&
|
|
219
203
|
"script" !== options.as &&
|
|
220
|
-
error(
|
|
204
|
+
console.error(
|
|
221
205
|
'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".',
|
|
222
206
|
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
223
207
|
)
|
|
224
|
-
: error(
|
|
208
|
+
: console.error(
|
|
225
209
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
226
210
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
227
211
|
);
|
|
@@ -279,7 +263,7 @@
|
|
|
279
263
|
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
280
264
|
".");
|
|
281
265
|
if (encountered)
|
|
282
|
-
error(
|
|
266
|
+
console.error(
|
|
283
267
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
284
268
|
encountered
|
|
285
269
|
);
|
|
@@ -294,7 +278,7 @@
|
|
|
294
278
|
default:
|
|
295
279
|
(encountered =
|
|
296
280
|
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
297
|
-
error(
|
|
281
|
+
console.error(
|
|
298
282
|
'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)',
|
|
299
283
|
encountered,
|
|
300
284
|
href
|
|
@@ -336,7 +320,7 @@
|
|
|
336
320
|
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
337
321
|
".");
|
|
338
322
|
encountered &&
|
|
339
|
-
error(
|
|
323
|
+
console.error(
|
|
340
324
|
'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',
|
|
341
325
|
encountered
|
|
342
326
|
);
|
|
@@ -397,7 +381,7 @@
|
|
|
397
381
|
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
398
382
|
".");
|
|
399
383
|
encountered &&
|
|
400
|
-
error(
|
|
384
|
+
console.error(
|
|
401
385
|
'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',
|
|
402
386
|
encountered
|
|
403
387
|
);
|
|
@@ -432,7 +416,7 @@
|
|
|
432
416
|
exports.useFormStatus = function () {
|
|
433
417
|
return resolveDispatcher().useHostTransitionStatus();
|
|
434
418
|
};
|
|
435
|
-
exports.version = "19.0.0
|
|
419
|
+
exports.version = "19.0.0";
|
|
436
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
|
437
421
|
"function" ===
|
|
438
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
|
+
var React = require("react");
|
|
12
13
|
function formatProdErrorMessage(code) {
|
|
13
14
|
var url = "https://react.dev/errors/" + code;
|
|
14
15
|
if (1 < arguments.length) {
|
|
@@ -24,8 +25,6 @@ function formatProdErrorMessage(code) {
|
|
|
24
25
|
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
25
26
|
);
|
|
26
27
|
}
|
|
27
|
-
var ReactSharedInternals =
|
|
28
|
-
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
29
28
|
function noop() {}
|
|
30
29
|
var Internals = {
|
|
31
30
|
d: {
|
|
@@ -56,6 +55,8 @@ function createPortal$1(children, containerInfo, implementation) {
|
|
|
56
55
|
implementation: implementation
|
|
57
56
|
};
|
|
58
57
|
}
|
|
58
|
+
var ReactSharedInternals =
|
|
59
|
+
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
59
60
|
function getCrossOriginStringAs(as, input) {
|
|
60
61
|
if ("font" === as) return "";
|
|
61
62
|
if ("string" === typeof input)
|
|
@@ -206,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
|
206
207
|
exports.useFormStatus = function () {
|
|
207
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
208
209
|
};
|
|
209
|
-
exports.version = "19.0.0
|
|
210
|
+
exports.version = "19.0.0";
|
|
@@ -11,23 +11,6 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
-
function error(format) {
|
|
15
|
-
for (
|
|
16
|
-
var _len2 = arguments.length,
|
|
17
|
-
args = Array(1 < _len2 ? _len2 - 1 : 0),
|
|
18
|
-
_key2 = 1;
|
|
19
|
-
_key2 < _len2;
|
|
20
|
-
_key2++
|
|
21
|
-
)
|
|
22
|
-
args[_key2 - 1] = arguments[_key2];
|
|
23
|
-
_len2 = format;
|
|
24
|
-
_key2 = Error("react-stack-top-frame");
|
|
25
|
-
ReactSharedInternalsServer.getCurrentStack &&
|
|
26
|
-
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
|
|
27
|
-
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
|
|
28
|
-
args.unshift(_len2);
|
|
29
|
-
Function.prototype.apply.call(console.error, console, args);
|
|
30
|
-
}
|
|
31
14
|
function noop() {}
|
|
32
15
|
function getCrossOriginStringAs(as, input) {
|
|
33
16
|
if ("font" === as) return "";
|
|
@@ -38,49 +21,48 @@
|
|
|
38
21
|
return null === thing
|
|
39
22
|
? "`null`"
|
|
40
23
|
: void 0 === thing
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
24
|
+
? "`undefined`"
|
|
25
|
+
: "" === thing
|
|
26
|
+
? "an empty string"
|
|
27
|
+
: 'something with type "' + typeof thing + '"';
|
|
45
28
|
}
|
|
46
29
|
function getValueDescriptorExpectingEnumForWarning(thing) {
|
|
47
30
|
return null === thing
|
|
48
31
|
? "`null`"
|
|
49
32
|
: void 0 === thing
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
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 + '"';
|
|
58
41
|
}
|
|
59
|
-
var
|
|
60
|
-
|
|
61
|
-
|
|
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)
|
|
62
63
|
throw Error(
|
|
63
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.'
|
|
64
65
|
);
|
|
65
|
-
var Internals = {
|
|
66
|
-
d: {
|
|
67
|
-
f: noop,
|
|
68
|
-
r: function () {
|
|
69
|
-
throw Error(
|
|
70
|
-
"Invalid form element. requestFormReset must be passed a form that was rendered by React."
|
|
71
|
-
);
|
|
72
|
-
},
|
|
73
|
-
D: noop,
|
|
74
|
-
C: noop,
|
|
75
|
-
L: noop,
|
|
76
|
-
m: noop,
|
|
77
|
-
X: noop,
|
|
78
|
-
S: noop,
|
|
79
|
-
M: noop
|
|
80
|
-
},
|
|
81
|
-
p: 0,
|
|
82
|
-
findDOMNode: null
|
|
83
|
-
};
|
|
84
66
|
("function" === typeof Map &&
|
|
85
67
|
null != Map.prototype &&
|
|
86
68
|
"function" === typeof Map.prototype.forEach &&
|
|
@@ -88,7 +70,7 @@
|
|
|
88
70
|
null != Set.prototype &&
|
|
89
71
|
"function" === typeof Set.prototype.clear &&
|
|
90
72
|
"function" === typeof Set.prototype.forEach) ||
|
|
91
|
-
error(
|
|
73
|
+
console.error(
|
|
92
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"
|
|
93
75
|
);
|
|
94
76
|
exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
@@ -96,17 +78,17 @@
|
|
|
96
78
|
exports.preconnect = function (href, options) {
|
|
97
79
|
"string" === typeof href && href
|
|
98
80
|
? null != options && "object" !== typeof options
|
|
99
|
-
? error(
|
|
81
|
+
? console.error(
|
|
100
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.",
|
|
101
83
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
102
84
|
)
|
|
103
85
|
: null != options &&
|
|
104
86
|
"string" !== typeof options.crossOrigin &&
|
|
105
|
-
error(
|
|
87
|
+
console.error(
|
|
106
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.",
|
|
107
89
|
getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
|
|
108
90
|
)
|
|
109
|
-
: error(
|
|
91
|
+
: console.error(
|
|
110
92
|
"ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
111
93
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
112
94
|
);
|
|
@@ -124,18 +106,18 @@
|
|
|
124
106
|
};
|
|
125
107
|
exports.prefetchDNS = function (href) {
|
|
126
108
|
if ("string" !== typeof href || !href)
|
|
127
|
-
error(
|
|
109
|
+
console.error(
|
|
128
110
|
"ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
129
111
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
130
112
|
);
|
|
131
113
|
else if (1 < arguments.length) {
|
|
132
114
|
var options = arguments[1];
|
|
133
115
|
"object" === typeof options && options.hasOwnProperty("crossOrigin")
|
|
134
|
-
? error(
|
|
116
|
+
? console.error(
|
|
135
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`.",
|
|
136
118
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
137
119
|
)
|
|
138
|
-
: error(
|
|
120
|
+
: console.error(
|
|
139
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`.",
|
|
140
122
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
141
123
|
);
|
|
@@ -145,17 +127,17 @@
|
|
|
145
127
|
exports.preinit = function (href, options) {
|
|
146
128
|
"string" === typeof href && href
|
|
147
129
|
? null == options || "object" !== typeof options
|
|
148
|
-
? error(
|
|
130
|
+
? console.error(
|
|
149
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.",
|
|
150
132
|
getValueDescriptorExpectingEnumForWarning(options)
|
|
151
133
|
)
|
|
152
134
|
: "style" !== options.as &&
|
|
153
135
|
"script" !== options.as &&
|
|
154
|
-
error(
|
|
136
|
+
console.error(
|
|
155
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".',
|
|
156
138
|
getValueDescriptorExpectingEnumForWarning(options.as)
|
|
157
139
|
)
|
|
158
|
-
: error(
|
|
140
|
+
: console.error(
|
|
159
141
|
"ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
|
|
160
142
|
getValueDescriptorExpectingObjectForWarning(href)
|
|
161
143
|
);
|
|
@@ -213,7 +195,7 @@
|
|
|
213
195
|
getValueDescriptorExpectingEnumForWarning(options.as) +
|
|
214
196
|
".");
|
|
215
197
|
if (encountered)
|
|
216
|
-
error(
|
|
198
|
+
console.error(
|
|
217
199
|
"ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
|
|
218
200
|
encountered
|
|
219
201
|
);
|
|
@@ -228,7 +210,7 @@
|
|
|
228
210
|
default:
|
|
229
211
|
(encountered =
|
|
230
212
|
getValueDescriptorExpectingEnumForWarning(encountered)),
|
|
231
|
-
error(
|
|
213
|
+
console.error(
|
|
232
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)',
|
|
233
215
|
encountered,
|
|
234
216
|
href
|
|
@@ -270,7 +252,7 @@
|
|
|
270
252
|
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
271
253
|
".");
|
|
272
254
|
encountered &&
|
|
273
|
-
error(
|
|
255
|
+
console.error(
|
|
274
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',
|
|
275
257
|
encountered
|
|
276
258
|
);
|
|
@@ -331,7 +313,7 @@
|
|
|
331
313
|
getValueDescriptorExpectingObjectForWarning(options.as) +
|
|
332
314
|
".");
|
|
333
315
|
encountered &&
|
|
334
|
-
error(
|
|
316
|
+
console.error(
|
|
335
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',
|
|
336
318
|
encountered
|
|
337
319
|
);
|
|
@@ -354,5 +336,5 @@
|
|
|
354
336
|
}))
|
|
355
337
|
: Internals.d.m(href));
|
|
356
338
|
};
|
|
357
|
-
exports.version = "19.0.0
|
|
339
|
+
exports.version = "19.0.0";
|
|
358
340
|
})();
|
|
@@ -9,13 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
|
-
|
|
13
|
-
!require("react")
|
|
14
|
-
.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
|
|
15
|
-
)
|
|
16
|
-
throw Error(
|
|
17
|
-
'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.'
|
|
18
|
-
);
|
|
12
|
+
var React = require("react");
|
|
19
13
|
function noop() {}
|
|
20
14
|
var Internals = {
|
|
21
15
|
d: {
|
|
@@ -36,6 +30,10 @@ var Internals = {
|
|
|
36
30
|
p: 0,
|
|
37
31
|
findDOMNode: null
|
|
38
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
|
+
);
|
|
39
37
|
function getCrossOriginStringAs(as, input) {
|
|
40
38
|
if ("font" === as) return "";
|
|
41
39
|
if ("string" === typeof input)
|
|
@@ -151,4 +149,4 @@ exports.preloadModule = function (href, options) {
|
|
|
151
149
|
});
|
|
152
150
|
} else Internals.d.m(href);
|
|
153
151
|
};
|
|
154
|
-
exports.version = "19.0.0
|
|
152
|
+
exports.version = "19.0.0";
|
package/react-dom/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dom",
|
|
3
|
-
"version": "19.0.0
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"description": "React package for working with the DOM.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://react.dev/",
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"scheduler": "0.25.0
|
|
20
|
+
"scheduler": "^0.25.0"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"react": "19.0.0
|
|
23
|
+
"react": "^19.0.0"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
"LICENSE",
|
package/react-dom/static.edge.js
CHANGED
package/react-dom/static.node.js
CHANGED