react 19.1.0-canary-f83903bf-20250212 → 19.1.0-canary-32b0cad8-20250213
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/cjs/react-jsx-dev-runtime.development.js +88 -418
- package/cjs/react-jsx-dev-runtime.react-server.development.js +108 -420
- package/cjs/react-jsx-runtime.development.js +98 -419
- package/cjs/react-jsx-runtime.react-server.development.js +108 -420
- package/cjs/react.development.js +99 -400
- package/cjs/react.production.js +1 -4
- package/cjs/react.react-server.development.js +97 -398
- package/cjs/react.react-server.production.js +4 -1
- package/package.json +1 -1
package/cjs/react.development.js
CHANGED
@@ -87,7 +87,7 @@
|
|
87
87
|
function getComponentNameFromType(type) {
|
88
88
|
if (null == type) return null;
|
89
89
|
if ("function" === typeof type)
|
90
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE$
|
90
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE$1
|
91
91
|
? null
|
92
92
|
: type.displayName || type.name || null;
|
93
93
|
if ("string" === typeof type) return type;
|
@@ -140,276 +140,20 @@
|
|
140
140
|
}
|
141
141
|
return null;
|
142
142
|
}
|
143
|
-
function
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
type ===
|
149
|
-
|
150
|
-
|
151
|
-
type === REACT_OFFSCREEN_TYPE ||
|
152
|
-
("object" === typeof type &&
|
153
|
-
null !== type &&
|
154
|
-
(type.$$typeof === REACT_LAZY_TYPE ||
|
155
|
-
type.$$typeof === REACT_MEMO_TYPE ||
|
156
|
-
type.$$typeof === REACT_CONTEXT_TYPE ||
|
157
|
-
type.$$typeof === REACT_CONSUMER_TYPE ||
|
158
|
-
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
159
|
-
type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
|
160
|
-
void 0 !== type.getModuleId))
|
161
|
-
? !0
|
162
|
-
: !1;
|
163
|
-
}
|
164
|
-
function disabledLog() {}
|
165
|
-
function disableLogs() {
|
166
|
-
if (0 === disabledDepth) {
|
167
|
-
prevLog = console.log;
|
168
|
-
prevInfo = console.info;
|
169
|
-
prevWarn = console.warn;
|
170
|
-
prevError = console.error;
|
171
|
-
prevGroup = console.group;
|
172
|
-
prevGroupCollapsed = console.groupCollapsed;
|
173
|
-
prevGroupEnd = console.groupEnd;
|
174
|
-
var props = {
|
175
|
-
configurable: !0,
|
176
|
-
enumerable: !0,
|
177
|
-
value: disabledLog,
|
178
|
-
writable: !0
|
179
|
-
};
|
180
|
-
Object.defineProperties(console, {
|
181
|
-
info: props,
|
182
|
-
log: props,
|
183
|
-
warn: props,
|
184
|
-
error: props,
|
185
|
-
group: props,
|
186
|
-
groupCollapsed: props,
|
187
|
-
groupEnd: props
|
188
|
-
});
|
189
|
-
}
|
190
|
-
disabledDepth++;
|
191
|
-
}
|
192
|
-
function reenableLogs() {
|
193
|
-
disabledDepth--;
|
194
|
-
if (0 === disabledDepth) {
|
195
|
-
var props = { configurable: !0, enumerable: !0, writable: !0 };
|
196
|
-
Object.defineProperties(console, {
|
197
|
-
log: assign({}, props, { value: prevLog }),
|
198
|
-
info: assign({}, props, { value: prevInfo }),
|
199
|
-
warn: assign({}, props, { value: prevWarn }),
|
200
|
-
error: assign({}, props, { value: prevError }),
|
201
|
-
group: assign({}, props, { value: prevGroup }),
|
202
|
-
groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
|
203
|
-
groupEnd: assign({}, props, { value: prevGroupEnd })
|
204
|
-
});
|
205
|
-
}
|
206
|
-
0 > disabledDepth &&
|
207
|
-
console.error(
|
208
|
-
"disabledDepth fell below zero. This is a bug in React. Please file an issue."
|
209
|
-
);
|
210
|
-
}
|
211
|
-
function describeBuiltInComponentFrame(name) {
|
212
|
-
if (void 0 === prefix)
|
213
|
-
try {
|
214
|
-
throw Error();
|
215
|
-
} catch (x) {
|
216
|
-
var match = x.stack.trim().match(/\n( *(at )?)/);
|
217
|
-
prefix = (match && match[1]) || "";
|
218
|
-
suffix =
|
219
|
-
-1 < x.stack.indexOf("\n at")
|
220
|
-
? " (<anonymous>)"
|
221
|
-
: -1 < x.stack.indexOf("@")
|
222
|
-
? "@unknown:0:0"
|
223
|
-
: "";
|
224
|
-
}
|
225
|
-
return "\n" + prefix + name + suffix;
|
226
|
-
}
|
227
|
-
function describeNativeComponentFrame(fn, construct) {
|
228
|
-
if (!fn || reentry) return "";
|
229
|
-
var frame = componentFrameCache.get(fn);
|
230
|
-
if (void 0 !== frame) return frame;
|
231
|
-
reentry = !0;
|
232
|
-
frame = Error.prepareStackTrace;
|
233
|
-
Error.prepareStackTrace = void 0;
|
234
|
-
var previousDispatcher = null;
|
235
|
-
previousDispatcher = ReactSharedInternals.H;
|
236
|
-
ReactSharedInternals.H = null;
|
237
|
-
disableLogs();
|
143
|
+
function getTaskName(type) {
|
144
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
145
|
+
if (
|
146
|
+
"object" === typeof type &&
|
147
|
+
null !== type &&
|
148
|
+
type.$$typeof === REACT_LAZY_TYPE
|
149
|
+
)
|
150
|
+
return "<...>";
|
238
151
|
try {
|
239
|
-
var
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
var Fake = function () {
|
244
|
-
throw Error();
|
245
|
-
};
|
246
|
-
Object.defineProperty(Fake.prototype, "props", {
|
247
|
-
set: function () {
|
248
|
-
throw Error();
|
249
|
-
}
|
250
|
-
});
|
251
|
-
if ("object" === typeof Reflect && Reflect.construct) {
|
252
|
-
try {
|
253
|
-
Reflect.construct(Fake, []);
|
254
|
-
} catch (x) {
|
255
|
-
var control = x;
|
256
|
-
}
|
257
|
-
Reflect.construct(fn, [], Fake);
|
258
|
-
} else {
|
259
|
-
try {
|
260
|
-
Fake.call();
|
261
|
-
} catch (x$0) {
|
262
|
-
control = x$0;
|
263
|
-
}
|
264
|
-
fn.call(Fake.prototype);
|
265
|
-
}
|
266
|
-
} else {
|
267
|
-
try {
|
268
|
-
throw Error();
|
269
|
-
} catch (x$1) {
|
270
|
-
control = x$1;
|
271
|
-
}
|
272
|
-
(Fake = fn()) &&
|
273
|
-
"function" === typeof Fake.catch &&
|
274
|
-
Fake.catch(function () {});
|
275
|
-
}
|
276
|
-
} catch (sample) {
|
277
|
-
if (sample && control && "string" === typeof sample.stack)
|
278
|
-
return [sample.stack, control.stack];
|
279
|
-
}
|
280
|
-
return [null, null];
|
281
|
-
}
|
282
|
-
};
|
283
|
-
RunInRootFrame.DetermineComponentFrameRoot.displayName =
|
284
|
-
"DetermineComponentFrameRoot";
|
285
|
-
var namePropDescriptor = Object.getOwnPropertyDescriptor(
|
286
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
287
|
-
"name"
|
288
|
-
);
|
289
|
-
namePropDescriptor &&
|
290
|
-
namePropDescriptor.configurable &&
|
291
|
-
Object.defineProperty(
|
292
|
-
RunInRootFrame.DetermineComponentFrameRoot,
|
293
|
-
"name",
|
294
|
-
{ value: "DetermineComponentFrameRoot" }
|
295
|
-
);
|
296
|
-
var _RunInRootFrame$Deter =
|
297
|
-
RunInRootFrame.DetermineComponentFrameRoot(),
|
298
|
-
sampleStack = _RunInRootFrame$Deter[0],
|
299
|
-
controlStack = _RunInRootFrame$Deter[1];
|
300
|
-
if (sampleStack && controlStack) {
|
301
|
-
var sampleLines = sampleStack.split("\n"),
|
302
|
-
controlLines = controlStack.split("\n");
|
303
|
-
for (
|
304
|
-
_RunInRootFrame$Deter = namePropDescriptor = 0;
|
305
|
-
namePropDescriptor < sampleLines.length &&
|
306
|
-
!sampleLines[namePropDescriptor].includes(
|
307
|
-
"DetermineComponentFrameRoot"
|
308
|
-
);
|
309
|
-
|
310
|
-
)
|
311
|
-
namePropDescriptor++;
|
312
|
-
for (
|
313
|
-
;
|
314
|
-
_RunInRootFrame$Deter < controlLines.length &&
|
315
|
-
!controlLines[_RunInRootFrame$Deter].includes(
|
316
|
-
"DetermineComponentFrameRoot"
|
317
|
-
);
|
318
|
-
|
319
|
-
)
|
320
|
-
_RunInRootFrame$Deter++;
|
321
|
-
if (
|
322
|
-
namePropDescriptor === sampleLines.length ||
|
323
|
-
_RunInRootFrame$Deter === controlLines.length
|
324
|
-
)
|
325
|
-
for (
|
326
|
-
namePropDescriptor = sampleLines.length - 1,
|
327
|
-
_RunInRootFrame$Deter = controlLines.length - 1;
|
328
|
-
1 <= namePropDescriptor &&
|
329
|
-
0 <= _RunInRootFrame$Deter &&
|
330
|
-
sampleLines[namePropDescriptor] !==
|
331
|
-
controlLines[_RunInRootFrame$Deter];
|
332
|
-
|
333
|
-
)
|
334
|
-
_RunInRootFrame$Deter--;
|
335
|
-
for (
|
336
|
-
;
|
337
|
-
1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
|
338
|
-
namePropDescriptor--, _RunInRootFrame$Deter--
|
339
|
-
)
|
340
|
-
if (
|
341
|
-
sampleLines[namePropDescriptor] !==
|
342
|
-
controlLines[_RunInRootFrame$Deter]
|
343
|
-
) {
|
344
|
-
if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
|
345
|
-
do
|
346
|
-
if (
|
347
|
-
(namePropDescriptor--,
|
348
|
-
_RunInRootFrame$Deter--,
|
349
|
-
0 > _RunInRootFrame$Deter ||
|
350
|
-
sampleLines[namePropDescriptor] !==
|
351
|
-
controlLines[_RunInRootFrame$Deter])
|
352
|
-
) {
|
353
|
-
var _frame =
|
354
|
-
"\n" +
|
355
|
-
sampleLines[namePropDescriptor].replace(
|
356
|
-
" at new ",
|
357
|
-
" at "
|
358
|
-
);
|
359
|
-
fn.displayName &&
|
360
|
-
_frame.includes("<anonymous>") &&
|
361
|
-
(_frame = _frame.replace("<anonymous>", fn.displayName));
|
362
|
-
"function" === typeof fn &&
|
363
|
-
componentFrameCache.set(fn, _frame);
|
364
|
-
return _frame;
|
365
|
-
}
|
366
|
-
while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
|
367
|
-
}
|
368
|
-
break;
|
369
|
-
}
|
370
|
-
}
|
371
|
-
} finally {
|
372
|
-
(reentry = !1),
|
373
|
-
(ReactSharedInternals.H = previousDispatcher),
|
374
|
-
reenableLogs(),
|
375
|
-
(Error.prepareStackTrace = frame);
|
376
|
-
}
|
377
|
-
sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
|
378
|
-
? describeBuiltInComponentFrame(sampleLines)
|
379
|
-
: "";
|
380
|
-
"function" === typeof fn && componentFrameCache.set(fn, sampleLines);
|
381
|
-
return sampleLines;
|
382
|
-
}
|
383
|
-
function describeUnknownElementTypeFrameInDEV(type) {
|
384
|
-
if (null == type) return "";
|
385
|
-
if ("function" === typeof type) {
|
386
|
-
var prototype = type.prototype;
|
387
|
-
return describeNativeComponentFrame(
|
388
|
-
type,
|
389
|
-
!(!prototype || !prototype.isReactComponent)
|
390
|
-
);
|
391
|
-
}
|
392
|
-
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
393
|
-
switch (type) {
|
394
|
-
case REACT_SUSPENSE_TYPE:
|
395
|
-
return describeBuiltInComponentFrame("Suspense");
|
396
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
397
|
-
return describeBuiltInComponentFrame("SuspenseList");
|
152
|
+
var name = getComponentNameFromType(type);
|
153
|
+
return name ? "<" + name + ">" : "<...>";
|
154
|
+
} catch (x) {
|
155
|
+
return "<...>";
|
398
156
|
}
|
399
|
-
if ("object" === typeof type)
|
400
|
-
switch (type.$$typeof) {
|
401
|
-
case REACT_FORWARD_REF_TYPE:
|
402
|
-
return describeNativeComponentFrame(type.render, !1);
|
403
|
-
case REACT_MEMO_TYPE:
|
404
|
-
return describeUnknownElementTypeFrameInDEV(type.type);
|
405
|
-
case REACT_LAZY_TYPE:
|
406
|
-
prototype = type._payload;
|
407
|
-
type = type._init;
|
408
|
-
try {
|
409
|
-
return describeUnknownElementTypeFrameInDEV(type(prototype));
|
410
|
-
} catch (x) {}
|
411
|
-
}
|
412
|
-
return "";
|
413
157
|
}
|
414
158
|
function getOwner() {
|
415
159
|
var dispatcher = ReactSharedInternals.A;
|
@@ -447,7 +191,16 @@
|
|
447
191
|
componentName = this.props.ref;
|
448
192
|
return void 0 !== componentName ? componentName : null;
|
449
193
|
}
|
450
|
-
function ReactElement(
|
194
|
+
function ReactElement(
|
195
|
+
type,
|
196
|
+
key,
|
197
|
+
self,
|
198
|
+
source,
|
199
|
+
owner,
|
200
|
+
props,
|
201
|
+
debugStack,
|
202
|
+
debugTask
|
203
|
+
) {
|
451
204
|
self = props.ref;
|
452
205
|
type = {
|
453
206
|
$$typeof: REACT_ELEMENT_TYPE,
|
@@ -475,6 +228,18 @@
|
|
475
228
|
writable: !0,
|
476
229
|
value: null
|
477
230
|
});
|
231
|
+
Object.defineProperty(type, "_debugStack", {
|
232
|
+
configurable: !1,
|
233
|
+
enumerable: !1,
|
234
|
+
writable: !0,
|
235
|
+
value: debugStack
|
236
|
+
});
|
237
|
+
Object.defineProperty(type, "_debugTask", {
|
238
|
+
configurable: !1,
|
239
|
+
enumerable: !1,
|
240
|
+
writable: !0,
|
241
|
+
value: debugTask
|
242
|
+
});
|
478
243
|
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
479
244
|
return type;
|
480
245
|
}
|
@@ -485,35 +250,14 @@
|
|
485
250
|
void 0,
|
486
251
|
void 0,
|
487
252
|
oldElement._owner,
|
488
|
-
oldElement.props
|
253
|
+
oldElement.props,
|
254
|
+
oldElement._debugStack,
|
255
|
+
oldElement._debugTask
|
489
256
|
);
|
490
257
|
oldElement._store &&
|
491
258
|
(newKey._store.validated = oldElement._store.validated);
|
492
259
|
return newKey;
|
493
260
|
}
|
494
|
-
function validateChildKeys(node, parentType) {
|
495
|
-
if (
|
496
|
-
"object" === typeof node &&
|
497
|
-
node &&
|
498
|
-
node.$$typeof !== REACT_CLIENT_REFERENCE
|
499
|
-
)
|
500
|
-
if (isArrayImpl(node))
|
501
|
-
for (var i = 0; i < node.length; i++) {
|
502
|
-
var child = node[i];
|
503
|
-
isValidElement(child) && validateExplicitKey(child, parentType);
|
504
|
-
}
|
505
|
-
else if (isValidElement(node))
|
506
|
-
node._store && (node._store.validated = 1);
|
507
|
-
else if (
|
508
|
-
((i = getIteratorFn(node)),
|
509
|
-
"function" === typeof i &&
|
510
|
-
i !== node.entries &&
|
511
|
-
((i = i.call(node)), i !== node))
|
512
|
-
)
|
513
|
-
for (; !(node = i.next()).done; )
|
514
|
-
isValidElement(node.value) &&
|
515
|
-
validateExplicitKey(node.value, parentType);
|
516
|
-
}
|
517
261
|
function isValidElement(object) {
|
518
262
|
return (
|
519
263
|
"object" === typeof object &&
|
@@ -521,52 +265,6 @@
|
|
521
265
|
object.$$typeof === REACT_ELEMENT_TYPE
|
522
266
|
);
|
523
267
|
}
|
524
|
-
function validateExplicitKey(element, parentType) {
|
525
|
-
if (
|
526
|
-
element._store &&
|
527
|
-
!element._store.validated &&
|
528
|
-
null == element.key &&
|
529
|
-
((element._store.validated = 1),
|
530
|
-
(parentType = getCurrentComponentErrorInfo(parentType)),
|
531
|
-
!ownerHasKeyUseWarning[parentType])
|
532
|
-
) {
|
533
|
-
ownerHasKeyUseWarning[parentType] = !0;
|
534
|
-
var childOwner = "";
|
535
|
-
element &&
|
536
|
-
null != element._owner &&
|
537
|
-
element._owner !== getOwner() &&
|
538
|
-
((childOwner = null),
|
539
|
-
"number" === typeof element._owner.tag
|
540
|
-
? (childOwner = getComponentNameFromType(element._owner.type))
|
541
|
-
: "string" === typeof element._owner.name &&
|
542
|
-
(childOwner = element._owner.name),
|
543
|
-
(childOwner = " It was passed a child from " + childOwner + "."));
|
544
|
-
var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
|
545
|
-
ReactSharedInternals.getCurrentStack = function () {
|
546
|
-
var stack = describeUnknownElementTypeFrameInDEV(element.type);
|
547
|
-
prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
|
548
|
-
return stack;
|
549
|
-
};
|
550
|
-
console.error(
|
551
|
-
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
|
552
|
-
parentType,
|
553
|
-
childOwner
|
554
|
-
);
|
555
|
-
ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
|
556
|
-
}
|
557
|
-
}
|
558
|
-
function getCurrentComponentErrorInfo(parentType) {
|
559
|
-
var info = "",
|
560
|
-
owner = getOwner();
|
561
|
-
owner &&
|
562
|
-
(owner = getComponentNameFromType(owner.type)) &&
|
563
|
-
(info = "\n\nCheck the render method of `" + owner + "`.");
|
564
|
-
info ||
|
565
|
-
((parentType = getComponentNameFromType(parentType)) &&
|
566
|
-
(info =
|
567
|
-
"\n\nCheck the top-level render call using <" + parentType + ">."));
|
568
|
-
return info;
|
569
|
-
}
|
570
268
|
function escape(key) {
|
571
269
|
var escaperLookup = { "=": "=0", ":": "=2" };
|
572
270
|
return (
|
@@ -951,7 +649,7 @@
|
|
951
649
|
assign(deprecatedAPIs, Component.prototype);
|
952
650
|
deprecatedAPIs.isPureReactComponent = !0;
|
953
651
|
var isArrayImpl = Array.isArray,
|
954
|
-
REACT_CLIENT_REFERENCE$
|
652
|
+
REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
|
955
653
|
ReactSharedInternals = {
|
956
654
|
H: null,
|
957
655
|
A: null,
|
@@ -966,28 +664,17 @@
|
|
966
664
|
getCurrentStack: null
|
967
665
|
},
|
968
666
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
969
|
-
REACT_CLIENT_REFERENCE
|
970
|
-
|
971
|
-
|
972
|
-
|
973
|
-
|
974
|
-
|
975
|
-
|
976
|
-
prevGroupCollapsed,
|
977
|
-
prevGroupEnd;
|
978
|
-
disabledLog.__reactDisabledLog = !0;
|
979
|
-
var prefix,
|
980
|
-
suffix,
|
981
|
-
reentry = !1;
|
982
|
-
var componentFrameCache = new (
|
983
|
-
"function" === typeof WeakMap ? WeakMap : Map
|
984
|
-
)();
|
985
|
-
var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
667
|
+
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
668
|
+
new ("function" === typeof WeakMap ? WeakMap : Map)();
|
669
|
+
var createTask = console.createTask
|
670
|
+
? console.createTask
|
671
|
+
: function () {
|
672
|
+
return null;
|
673
|
+
},
|
986
674
|
specialPropKeyWarningShown,
|
987
675
|
didWarnAboutOldJSXRuntime;
|
988
676
|
var didWarnAboutElementRef = {};
|
989
|
-
var
|
990
|
-
didWarnAboutMaps = !1,
|
677
|
+
var didWarnAboutMaps = !1,
|
991
678
|
userProvidedKeyEscapeRegex = /\/+/g,
|
992
679
|
reportGlobalError =
|
993
680
|
"function" === typeof reportError
|
@@ -1128,8 +815,8 @@
|
|
1128
815
|
reject
|
1129
816
|
);
|
1130
817
|
});
|
1131
|
-
} catch (error$
|
1132
|
-
ReactSharedInternals.thrownErrors.push(error$
|
818
|
+
} catch (error$0) {
|
819
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
1133
820
|
}
|
1134
821
|
if (0 < ReactSharedInternals.thrownErrors.length) {
|
1135
822
|
var _thrownError = aggregateErrors(
|
@@ -1195,6 +882,10 @@
|
|
1195
882
|
return fn.apply(null, arguments);
|
1196
883
|
};
|
1197
884
|
};
|
885
|
+
exports.captureOwnerStack = function () {
|
886
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
887
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
888
|
+
};
|
1198
889
|
exports.cloneElement = function (element, config, children) {
|
1199
890
|
if (null === element || void 0 === element)
|
1200
891
|
throw Error(
|
@@ -1240,9 +931,19 @@
|
|
1240
931
|
JSCompiler_inline_result[i] = arguments[i + 2];
|
1241
932
|
props.children = JSCompiler_inline_result;
|
1242
933
|
}
|
1243
|
-
props = ReactElement(
|
934
|
+
props = ReactElement(
|
935
|
+
element.type,
|
936
|
+
key,
|
937
|
+
void 0,
|
938
|
+
void 0,
|
939
|
+
owner,
|
940
|
+
props,
|
941
|
+
element._debugStack,
|
942
|
+
element._debugTask
|
943
|
+
);
|
1244
944
|
for (key = 2; key < arguments.length; key++)
|
1245
|
-
|
945
|
+
(owner = arguments[key]),
|
946
|
+
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
1246
947
|
return props;
|
1247
948
|
};
|
1248
949
|
exports.createContext = function (defaultValue) {
|
@@ -1264,40 +965,13 @@
|
|
1264
965
|
return defaultValue;
|
1265
966
|
};
|
1266
967
|
exports.createElement = function (type, config, children) {
|
1267
|
-
|
1268
|
-
|
1269
|
-
|
1270
|
-
else {
|
1271
|
-
i = "";
|
1272
|
-
if (
|
1273
|
-
void 0 === type ||
|
1274
|
-
("object" === typeof type &&
|
1275
|
-
null !== type &&
|
1276
|
-
0 === Object.keys(type).length)
|
1277
|
-
)
|
1278
|
-
i +=
|
1279
|
-
" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
1280
|
-
if (null === type) var typeString = "null";
|
1281
|
-
else
|
1282
|
-
isArrayImpl(type)
|
1283
|
-
? (typeString = "array")
|
1284
|
-
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
|
1285
|
-
? ((typeString =
|
1286
|
-
"<" +
|
1287
|
-
(getComponentNameFromType(type.type) || "Unknown") +
|
1288
|
-
" />"),
|
1289
|
-
(i =
|
1290
|
-
" Did you accidentally export a JSX literal instead of a component?"))
|
1291
|
-
: (typeString = typeof type);
|
1292
|
-
console.error(
|
1293
|
-
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
|
1294
|
-
typeString,
|
1295
|
-
i
|
1296
|
-
);
|
968
|
+
for (var i = 2; i < arguments.length; i++) {
|
969
|
+
var node = arguments[i];
|
970
|
+
isValidElement(node) && node._store && (node._store.validated = 1);
|
1297
971
|
}
|
1298
972
|
var propName;
|
1299
973
|
i = {};
|
1300
|
-
|
974
|
+
node = null;
|
1301
975
|
if (null != config)
|
1302
976
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
1303
977
|
!("__self" in config) ||
|
@@ -1307,7 +981,7 @@
|
|
1307
981
|
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
1308
982
|
)),
|
1309
983
|
hasValidKey(config) &&
|
1310
|
-
(checkKeyStringCoercion(config.key), (
|
984
|
+
(checkKeyStringCoercion(config.key), (node = "" + config.key)),
|
1311
985
|
config))
|
1312
986
|
hasOwnProperty.call(config, propName) &&
|
1313
987
|
"key" !== propName &&
|
@@ -1329,14 +1003,23 @@
|
|
1329
1003
|
if (type && type.defaultProps)
|
1330
1004
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
1331
1005
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
1332
|
-
|
1006
|
+
node &&
|
1333
1007
|
defineKeyPropWarningGetter(
|
1334
1008
|
i,
|
1335
1009
|
"function" === typeof type
|
1336
1010
|
? type.displayName || type.name || "Unknown"
|
1337
1011
|
: type
|
1338
1012
|
);
|
1339
|
-
return ReactElement(
|
1013
|
+
return ReactElement(
|
1014
|
+
type,
|
1015
|
+
node,
|
1016
|
+
void 0,
|
1017
|
+
void 0,
|
1018
|
+
getOwner(),
|
1019
|
+
i,
|
1020
|
+
Error("react-stack-top-frame"),
|
1021
|
+
createTask(getTaskName(type))
|
1022
|
+
);
|
1340
1023
|
};
|
1341
1024
|
exports.createRef = function () {
|
1342
1025
|
var refObject = { current: null };
|
@@ -1393,7 +1076,23 @@
|
|
1393
1076
|
};
|
1394
1077
|
};
|
1395
1078
|
exports.memo = function (type, compare) {
|
1396
|
-
|
1079
|
+
"string" === typeof type ||
|
1080
|
+
"function" === typeof type ||
|
1081
|
+
type === REACT_FRAGMENT_TYPE ||
|
1082
|
+
type === REACT_PROFILER_TYPE ||
|
1083
|
+
type === REACT_STRICT_MODE_TYPE ||
|
1084
|
+
type === REACT_SUSPENSE_TYPE ||
|
1085
|
+
type === REACT_SUSPENSE_LIST_TYPE ||
|
1086
|
+
type === REACT_OFFSCREEN_TYPE ||
|
1087
|
+
("object" === typeof type &&
|
1088
|
+
null !== type &&
|
1089
|
+
(type.$$typeof === REACT_LAZY_TYPE ||
|
1090
|
+
type.$$typeof === REACT_MEMO_TYPE ||
|
1091
|
+
type.$$typeof === REACT_CONTEXT_TYPE ||
|
1092
|
+
type.$$typeof === REACT_CONSUMER_TYPE ||
|
1093
|
+
type.$$typeof === REACT_FORWARD_REF_TYPE ||
|
1094
|
+
type.$$typeof === REACT_CLIENT_REFERENCE ||
|
1095
|
+
void 0 !== type.getModuleId)) ||
|
1397
1096
|
console.error(
|
1398
1097
|
"memo: The first argument must be a component. Instead received: %s",
|
1399
1098
|
null === type ? "null" : typeof type
|
@@ -1539,7 +1238,7 @@
|
|
1539
1238
|
exports.useTransition = function () {
|
1540
1239
|
return resolveDispatcher().useTransition();
|
1541
1240
|
};
|
1542
|
-
exports.version = "19.1.0-canary-
|
1241
|
+
exports.version = "19.1.0-canary-32b0cad8-20250213";
|
1543
1242
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1544
1243
|
"function" ===
|
1545
1244
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -363,9 +363,6 @@ exports.__COMPILER_RUNTIME = {
|
|
363
363
|
return ReactSharedInternals.H.useMemoCache(size);
|
364
364
|
}
|
365
365
|
};
|
366
|
-
exports.act = function () {
|
367
|
-
throw Error("act(...) is not supported in production builds of React.");
|
368
|
-
};
|
369
366
|
exports.cache = function (fn) {
|
370
367
|
return function () {
|
371
368
|
return fn.apply(null, arguments);
|
@@ -546,4 +543,4 @@ exports.useSyncExternalStore = function (
|
|
546
543
|
exports.useTransition = function () {
|
547
544
|
return ReactSharedInternals.H.useTransition();
|
548
545
|
};
|
549
|
-
exports.version = "19.1.0-canary-
|
546
|
+
exports.version = "19.1.0-canary-32b0cad8-20250213";
|