@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vxrn/vendor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.347",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
"./package.json": "./package.json",
|
|
10
10
|
"./react-19": "./react/index.js",
|
|
11
|
+
"./react-19-compiler-runtime": "./react/compiler-runtime.js",
|
|
11
12
|
"./react-19-prod": "./react/cjs/react.production.js",
|
|
12
13
|
"./react-jsx-dev-19": "./react/jsx-dev-runtime.js",
|
|
13
14
|
"./react-jsx-19": "./react/jsx-runtime.js",
|
|
@@ -11,29 +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 ReactSharedInternals =
|
|
32
15
|
require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
33
16
|
exports.c = function (size) {
|
|
34
17
|
var dispatcher = ReactSharedInternals.H;
|
|
35
18
|
null === dispatcher &&
|
|
36
|
-
error(
|
|
19
|
+
console.error(
|
|
37
20
|
"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."
|
|
38
21
|
);
|
|
39
22
|
return dispatcher.useMemoCache(size);
|
|
@@ -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 getComponentNameFromType(type) {
|
|
32
15
|
if (null == type) return null;
|
|
33
16
|
if ("function" === typeof type)
|
|
@@ -52,7 +35,7 @@
|
|
|
52
35
|
if ("object" === typeof type)
|
|
53
36
|
switch (
|
|
54
37
|
("number" === typeof type.tag &&
|
|
55
|
-
error(
|
|
38
|
+
console.error(
|
|
56
39
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
57
40
|
),
|
|
58
41
|
type.$$typeof)
|
|
@@ -94,20 +77,22 @@
|
|
|
94
77
|
} catch (e) {
|
|
95
78
|
JSCompiler_inline_result = !0;
|
|
96
79
|
}
|
|
97
|
-
if (JSCompiler_inline_result)
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
value.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
80
|
+
if (JSCompiler_inline_result) {
|
|
81
|
+
JSCompiler_inline_result = console;
|
|
82
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
83
|
+
var JSCompiler_inline_result$jscomp$0 =
|
|
84
|
+
("function" === typeof Symbol &&
|
|
85
|
+
Symbol.toStringTag &&
|
|
86
|
+
value[Symbol.toStringTag]) ||
|
|
87
|
+
value.constructor.name ||
|
|
88
|
+
"Object";
|
|
89
|
+
JSCompiler_temp_const.call(
|
|
90
|
+
JSCompiler_inline_result,
|
|
91
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
92
|
+
JSCompiler_inline_result$jscomp$0
|
|
110
93
|
);
|
|
94
|
+
return testStringCoercion(value);
|
|
95
|
+
}
|
|
111
96
|
}
|
|
112
97
|
function disabledLog() {}
|
|
113
98
|
function disableLogs() {
|
|
@@ -152,7 +137,7 @@
|
|
|
152
137
|
});
|
|
153
138
|
}
|
|
154
139
|
0 > disabledDepth &&
|
|
155
|
-
error(
|
|
140
|
+
console.error(
|
|
156
141
|
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
|
157
142
|
);
|
|
158
143
|
}
|
|
@@ -163,8 +148,14 @@
|
|
|
163
148
|
} catch (x) {
|
|
164
149
|
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
165
150
|
prefix = (match && match[1]) || "";
|
|
151
|
+
suffix =
|
|
152
|
+
-1 < x.stack.indexOf("\n at")
|
|
153
|
+
? " (<anonymous>)"
|
|
154
|
+
: -1 < x.stack.indexOf("@")
|
|
155
|
+
? "@unknown:0:0"
|
|
156
|
+
: "";
|
|
166
157
|
}
|
|
167
|
-
return "\n" + prefix + name;
|
|
158
|
+
return "\n" + prefix + name + suffix;
|
|
168
159
|
}
|
|
169
160
|
function describeNativeComponentFrame(fn, construct) {
|
|
170
161
|
if (!fn || reentry) return "";
|
|
@@ -177,64 +168,64 @@
|
|
|
177
168
|
previousDispatcher = ReactSharedInternals.H;
|
|
178
169
|
ReactSharedInternals.H = null;
|
|
179
170
|
disableLogs();
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
};
|
|
187
|
-
Object.defineProperty(Fake.prototype, "props", {
|
|
188
|
-
set: function () {
|
|
171
|
+
try {
|
|
172
|
+
var RunInRootFrame = {
|
|
173
|
+
DetermineComponentFrameRoot: function () {
|
|
174
|
+
try {
|
|
175
|
+
if (construct) {
|
|
176
|
+
var Fake = function () {
|
|
189
177
|
throw Error();
|
|
178
|
+
};
|
|
179
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
180
|
+
set: function () {
|
|
181
|
+
throw Error();
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
if ("object" === typeof Reflect && Reflect.construct) {
|
|
185
|
+
try {
|
|
186
|
+
Reflect.construct(Fake, []);
|
|
187
|
+
} catch (x) {
|
|
188
|
+
var control = x;
|
|
189
|
+
}
|
|
190
|
+
Reflect.construct(fn, [], Fake);
|
|
191
|
+
} else {
|
|
192
|
+
try {
|
|
193
|
+
Fake.call();
|
|
194
|
+
} catch (x$0) {
|
|
195
|
+
control = x$0;
|
|
196
|
+
}
|
|
197
|
+
fn.call(Fake.prototype);
|
|
190
198
|
}
|
|
191
|
-
});
|
|
192
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
|
193
|
-
try {
|
|
194
|
-
Reflect.construct(Fake, []);
|
|
195
|
-
} catch (x) {
|
|
196
|
-
var control = x;
|
|
197
|
-
}
|
|
198
|
-
Reflect.construct(fn, [], Fake);
|
|
199
199
|
} else {
|
|
200
200
|
try {
|
|
201
|
-
|
|
202
|
-
} catch (x$
|
|
203
|
-
control = x$
|
|
201
|
+
throw Error();
|
|
202
|
+
} catch (x$1) {
|
|
203
|
+
control = x$1;
|
|
204
204
|
}
|
|
205
|
-
fn
|
|
205
|
+
(Fake = fn()) &&
|
|
206
|
+
"function" === typeof Fake.catch &&
|
|
207
|
+
Fake.catch(function () {});
|
|
206
208
|
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
} catch (x$1) {
|
|
211
|
-
control = x$1;
|
|
212
|
-
}
|
|
213
|
-
(Fake = fn()) &&
|
|
214
|
-
"function" === typeof Fake.catch &&
|
|
215
|
-
Fake.catch(function () {});
|
|
209
|
+
} catch (sample) {
|
|
210
|
+
if (sample && control && "string" === typeof sample.stack)
|
|
211
|
+
return [sample.stack, control.stack];
|
|
216
212
|
}
|
|
217
|
-
|
|
218
|
-
if (sample && control && "string" === typeof sample.stack)
|
|
219
|
-
return [sample.stack, control.stack];
|
|
213
|
+
return [null, null];
|
|
220
214
|
}
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
"DetermineComponentFrameRoot";
|
|
226
|
-
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
227
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
|
228
|
-
"name"
|
|
229
|
-
);
|
|
230
|
-
namePropDescriptor &&
|
|
231
|
-
namePropDescriptor.configurable &&
|
|
232
|
-
Object.defineProperty(
|
|
215
|
+
};
|
|
216
|
+
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
|
217
|
+
"DetermineComponentFrameRoot";
|
|
218
|
+
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
|
233
219
|
RunInRootFrame.DetermineComponentFrameRoot,
|
|
234
|
-
"name"
|
|
235
|
-
{ value: "DetermineComponentFrameRoot" }
|
|
220
|
+
"name"
|
|
236
221
|
);
|
|
237
|
-
|
|
222
|
+
namePropDescriptor &&
|
|
223
|
+
namePropDescriptor.configurable &&
|
|
224
|
+
Object.defineProperty(
|
|
225
|
+
RunInRootFrame.DetermineComponentFrameRoot,
|
|
226
|
+
"name",
|
|
227
|
+
{ value: "DetermineComponentFrameRoot" }
|
|
228
|
+
);
|
|
238
229
|
var _RunInRootFrame$Deter =
|
|
239
230
|
RunInRootFrame.DetermineComponentFrameRoot(),
|
|
240
231
|
sampleStack = _RunInRootFrame$Deter[0],
|
|
@@ -243,54 +234,58 @@
|
|
|
243
234
|
var sampleLines = sampleStack.split("\n"),
|
|
244
235
|
controlLines = controlStack.split("\n");
|
|
245
236
|
for (
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
!sampleLines[
|
|
237
|
+
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
|
238
|
+
namePropDescriptor < sampleLines.length &&
|
|
239
|
+
!sampleLines[namePropDescriptor].includes(
|
|
249
240
|
"DetermineComponentFrameRoot"
|
|
250
241
|
);
|
|
251
242
|
|
|
252
243
|
)
|
|
253
|
-
|
|
244
|
+
namePropDescriptor++;
|
|
254
245
|
for (
|
|
255
246
|
;
|
|
256
|
-
|
|
257
|
-
!controlLines[
|
|
247
|
+
_RunInRootFrame$Deter < controlLines.length &&
|
|
248
|
+
!controlLines[_RunInRootFrame$Deter].includes(
|
|
249
|
+
"DetermineComponentFrameRoot"
|
|
250
|
+
);
|
|
258
251
|
|
|
259
252
|
)
|
|
260
|
-
|
|
253
|
+
_RunInRootFrame$Deter++;
|
|
261
254
|
if (
|
|
262
|
-
|
|
263
|
-
|
|
255
|
+
namePropDescriptor === sampleLines.length ||
|
|
256
|
+
_RunInRootFrame$Deter === controlLines.length
|
|
264
257
|
)
|
|
265
258
|
for (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
1 <=
|
|
269
|
-
0 <=
|
|
270
|
-
sampleLines[
|
|
259
|
+
namePropDescriptor = sampleLines.length - 1,
|
|
260
|
+
_RunInRootFrame$Deter = controlLines.length - 1;
|
|
261
|
+
1 <= namePropDescriptor &&
|
|
262
|
+
0 <= _RunInRootFrame$Deter &&
|
|
263
|
+
sampleLines[namePropDescriptor] !==
|
|
264
|
+
controlLines[_RunInRootFrame$Deter];
|
|
271
265
|
|
|
272
266
|
)
|
|
273
|
-
|
|
267
|
+
_RunInRootFrame$Deter--;
|
|
274
268
|
for (
|
|
275
269
|
;
|
|
276
|
-
1 <=
|
|
277
|
-
_RunInRootFrame$Deter
|
|
270
|
+
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
|
271
|
+
namePropDescriptor--, _RunInRootFrame$Deter--
|
|
278
272
|
)
|
|
279
273
|
if (
|
|
280
|
-
sampleLines[
|
|
274
|
+
sampleLines[namePropDescriptor] !==
|
|
275
|
+
controlLines[_RunInRootFrame$Deter]
|
|
281
276
|
) {
|
|
282
|
-
if (1 !==
|
|
277
|
+
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
|
283
278
|
do
|
|
284
279
|
if (
|
|
285
|
-
(
|
|
286
|
-
|
|
287
|
-
0 >
|
|
288
|
-
sampleLines[
|
|
289
|
-
controlLines[
|
|
280
|
+
(namePropDescriptor--,
|
|
281
|
+
_RunInRootFrame$Deter--,
|
|
282
|
+
0 > _RunInRootFrame$Deter ||
|
|
283
|
+
sampleLines[namePropDescriptor] !==
|
|
284
|
+
controlLines[_RunInRootFrame$Deter])
|
|
290
285
|
) {
|
|
291
286
|
var _frame =
|
|
292
287
|
"\n" +
|
|
293
|
-
sampleLines[
|
|
288
|
+
sampleLines[namePropDescriptor].replace(
|
|
294
289
|
" at new ",
|
|
295
290
|
" at "
|
|
296
291
|
);
|
|
@@ -301,7 +296,7 @@
|
|
|
301
296
|
componentFrameCache.set(fn, _frame);
|
|
302
297
|
return _frame;
|
|
303
298
|
}
|
|
304
|
-
while (1 <=
|
|
299
|
+
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
|
305
300
|
}
|
|
306
301
|
break;
|
|
307
302
|
}
|
|
@@ -353,13 +348,6 @@
|
|
|
353
348
|
var dispatcher = ReactSharedInternals.A;
|
|
354
349
|
return null === dispatcher ? null : dispatcher.getOwner();
|
|
355
350
|
}
|
|
356
|
-
function hasValidRef(config) {
|
|
357
|
-
if (hasOwnProperty.call(config, "ref")) {
|
|
358
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
359
|
-
if (getter && getter.isReactWarning) return !1;
|
|
360
|
-
}
|
|
361
|
-
return void 0 !== config.ref;
|
|
362
|
-
}
|
|
363
351
|
function hasValidKey(config) {
|
|
364
352
|
if (hasOwnProperty.call(config, "key")) {
|
|
365
353
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
@@ -371,7 +359,7 @@
|
|
|
371
359
|
function warnAboutAccessingKey() {
|
|
372
360
|
specialPropKeyWarningShown ||
|
|
373
361
|
((specialPropKeyWarningShown = !0),
|
|
374
|
-
error(
|
|
362
|
+
console.error(
|
|
375
363
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
376
364
|
displayName
|
|
377
365
|
));
|
|
@@ -386,14 +374,14 @@
|
|
|
386
374
|
var componentName = getComponentNameFromType(this.type);
|
|
387
375
|
didWarnAboutElementRef[componentName] ||
|
|
388
376
|
((didWarnAboutElementRef[componentName] = !0),
|
|
389
|
-
error(
|
|
377
|
+
console.error(
|
|
390
378
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
391
379
|
));
|
|
392
380
|
componentName = this.props.ref;
|
|
393
381
|
return void 0 !== componentName ? componentName : null;
|
|
394
382
|
}
|
|
395
|
-
function ReactElement(type, key,
|
|
396
|
-
|
|
383
|
+
function ReactElement(type, key, self, source, owner, props) {
|
|
384
|
+
self = props.ref;
|
|
397
385
|
type = {
|
|
398
386
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
399
387
|
type: type,
|
|
@@ -401,7 +389,7 @@
|
|
|
401
389
|
props: props,
|
|
402
390
|
_owner: owner
|
|
403
391
|
};
|
|
404
|
-
null !== (void 0 !==
|
|
392
|
+
null !== (void 0 !== self ? self : null)
|
|
405
393
|
? Object.defineProperty(type, "ref", {
|
|
406
394
|
enumerable: !1,
|
|
407
395
|
get: elementRefGetterWithDeprecationWarning
|
|
@@ -462,7 +450,7 @@
|
|
|
462
450
|
validateChildKeys(children[isStaticChildren], type);
|
|
463
451
|
Object.freeze && Object.freeze(children);
|
|
464
452
|
} else
|
|
465
|
-
error(
|
|
453
|
+
console.error(
|
|
466
454
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
467
455
|
);
|
|
468
456
|
else validateChildKeys(children, type);
|
|
@@ -479,14 +467,16 @@
|
|
|
479
467
|
null === type
|
|
480
468
|
? (isStaticChildren = "null")
|
|
481
469
|
: isArrayImpl(type)
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
470
|
+
? (isStaticChildren = "array")
|
|
471
|
+
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
|
472
|
+
? ((isStaticChildren =
|
|
473
|
+
"<" +
|
|
474
|
+
(getComponentNameFromType(type.type) || "Unknown") +
|
|
475
|
+
" />"),
|
|
476
|
+
(children =
|
|
477
|
+
" Did you accidentally export a JSX literal instead of a component?"))
|
|
478
|
+
: (isStaticChildren = typeof type);
|
|
479
|
+
console.error(
|
|
490
480
|
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
|
491
481
|
isStaticChildren,
|
|
492
482
|
children
|
|
@@ -504,7 +494,7 @@
|
|
|
504
494
|
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
505
495
|
((keys =
|
|
506
496
|
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
507
|
-
error(
|
|
497
|
+
console.error(
|
|
508
498
|
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
509
499
|
isStaticChildren,
|
|
510
500
|
children,
|
|
@@ -518,27 +508,19 @@
|
|
|
518
508
|
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
519
509
|
hasValidKey(config) &&
|
|
520
510
|
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
521
|
-
hasValidRef(config);
|
|
522
511
|
if ("key" in config) {
|
|
523
512
|
maybeKey = {};
|
|
524
513
|
for (var propName in config)
|
|
525
514
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
526
515
|
} else maybeKey = config;
|
|
527
516
|
children &&
|
|
528
|
-
(
|
|
517
|
+
defineKeyPropWarningGetter(
|
|
518
|
+
maybeKey,
|
|
529
519
|
"function" === typeof type
|
|
530
520
|
? type.displayName || type.name || "Unknown"
|
|
531
|
-
: type
|
|
532
|
-
|
|
533
|
-
return ReactElement(
|
|
534
|
-
type,
|
|
535
|
-
children,
|
|
536
|
-
null,
|
|
537
|
-
self,
|
|
538
|
-
source,
|
|
539
|
-
getOwner(),
|
|
540
|
-
maybeKey
|
|
541
|
-
);
|
|
521
|
+
: type
|
|
522
|
+
);
|
|
523
|
+
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
|
542
524
|
}
|
|
543
525
|
function validateChildKeys(node, parentType) {
|
|
544
526
|
if (
|
|
@@ -601,7 +583,7 @@
|
|
|
601
583
|
prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
|
|
602
584
|
return stack;
|
|
603
585
|
};
|
|
604
|
-
error(
|
|
586
|
+
console.error(
|
|
605
587
|
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
|
606
588
|
parentType,
|
|
607
589
|
childOwner
|
|
@@ -637,9 +619,9 @@
|
|
|
637
619
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
638
620
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
639
621
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
|
|
622
|
+
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
|
|
640
623
|
ReactSharedInternals =
|
|
641
624
|
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
642
|
-
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
|
|
643
625
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
644
626
|
assign = Object.assign,
|
|
645
627
|
REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
|
|
@@ -654,6 +636,7 @@
|
|
|
654
636
|
prevGroupEnd;
|
|
655
637
|
disabledLog.__reactDisabledLog = !0;
|
|
656
638
|
var prefix,
|
|
639
|
+
suffix,
|
|
657
640
|
reentry = !1;
|
|
658
641
|
var componentFrameCache = new (
|
|
659
642
|
"function" === typeof WeakMap ? WeakMap : Map
|