react 19.1.0 → 19.2.3
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 +27 -38
- package/cjs/react-jsx-dev-runtime.react-server.development.js +29 -44
- package/cjs/react-jsx-runtime.development.js +28 -34
- package/cjs/react-jsx-runtime.react-server.development.js +29 -44
- package/cjs/react.development.js +125 -83
- package/cjs/react.production.js +88 -92
- package/cjs/react.react-server.development.js +93 -60
- package/cjs/react.react-server.production.js +16 -22
- package/package.json +1 -1
package/cjs/react.production.js
CHANGED
|
@@ -20,6 +20,7 @@ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
|
20
20
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
21
21
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
22
22
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
23
|
+
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
23
24
|
MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
24
25
|
function getIteratorFn(maybeIterable) {
|
|
25
26
|
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
@@ -71,28 +72,22 @@ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
|
|
|
71
72
|
pureComponentPrototype.constructor = PureComponent;
|
|
72
73
|
assign(pureComponentPrototype, Component.prototype);
|
|
73
74
|
pureComponentPrototype.isPureReactComponent = !0;
|
|
74
|
-
var isArrayImpl = Array.isArray
|
|
75
|
-
|
|
75
|
+
var isArrayImpl = Array.isArray;
|
|
76
|
+
function noop() {}
|
|
77
|
+
var ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
|
76
78
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
77
|
-
function ReactElement(type, key,
|
|
78
|
-
|
|
79
|
+
function ReactElement(type, key, props) {
|
|
80
|
+
var refProp = props.ref;
|
|
79
81
|
return {
|
|
80
82
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
81
83
|
type: type,
|
|
82
84
|
key: key,
|
|
83
|
-
ref: void 0 !==
|
|
85
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
84
86
|
props: props
|
|
85
87
|
};
|
|
86
88
|
}
|
|
87
89
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
88
|
-
return ReactElement(
|
|
89
|
-
oldElement.type,
|
|
90
|
-
newKey,
|
|
91
|
-
void 0,
|
|
92
|
-
void 0,
|
|
93
|
-
void 0,
|
|
94
|
-
oldElement.props
|
|
95
|
-
);
|
|
90
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
96
91
|
}
|
|
97
92
|
function isValidElement(object) {
|
|
98
93
|
return (
|
|
@@ -116,7 +111,6 @@ function getElementKey(element, index) {
|
|
|
116
111
|
? escape("" + element.key)
|
|
117
112
|
: index.toString(36);
|
|
118
113
|
}
|
|
119
|
-
function noop$1() {}
|
|
120
114
|
function resolveThenable(thenable) {
|
|
121
115
|
switch (thenable.status) {
|
|
122
116
|
case "fulfilled":
|
|
@@ -126,7 +120,7 @@ function resolveThenable(thenable) {
|
|
|
126
120
|
default:
|
|
127
121
|
switch (
|
|
128
122
|
("string" === typeof thenable.status
|
|
129
|
-
? thenable.then(noop
|
|
123
|
+
? thenable.then(noop, noop)
|
|
130
124
|
: ((thenable.status = "pending"),
|
|
131
125
|
thenable.then(
|
|
132
126
|
function (fulfilledValue) {
|
|
@@ -287,68 +281,69 @@ function lazyInitializer(payload) {
|
|
|
287
281
|
throw payload._result;
|
|
288
282
|
}
|
|
289
283
|
var reportGlobalError =
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
forEachContext
|
|
328
|
-
);
|
|
329
|
-
},
|
|
330
|
-
count: function (children) {
|
|
331
|
-
var n = 0;
|
|
332
|
-
mapChildren(children, function () {
|
|
333
|
-
n++;
|
|
334
|
-
});
|
|
335
|
-
return n;
|
|
336
|
-
},
|
|
337
|
-
toArray: function (children) {
|
|
338
|
-
return (
|
|
339
|
-
mapChildren(children, function (child) {
|
|
340
|
-
return child;
|
|
341
|
-
}) || []
|
|
342
|
-
);
|
|
343
|
-
},
|
|
344
|
-
only: function (children) {
|
|
345
|
-
if (!isValidElement(children))
|
|
346
|
-
throw Error(
|
|
347
|
-
"React.Children.only expected to receive a single React element child."
|
|
284
|
+
"function" === typeof reportError
|
|
285
|
+
? reportError
|
|
286
|
+
: function (error) {
|
|
287
|
+
if (
|
|
288
|
+
"object" === typeof window &&
|
|
289
|
+
"function" === typeof window.ErrorEvent
|
|
290
|
+
) {
|
|
291
|
+
var event = new window.ErrorEvent("error", {
|
|
292
|
+
bubbles: !0,
|
|
293
|
+
cancelable: !0,
|
|
294
|
+
message:
|
|
295
|
+
"object" === typeof error &&
|
|
296
|
+
null !== error &&
|
|
297
|
+
"string" === typeof error.message
|
|
298
|
+
? String(error.message)
|
|
299
|
+
: String(error),
|
|
300
|
+
error: error
|
|
301
|
+
});
|
|
302
|
+
if (!window.dispatchEvent(event)) return;
|
|
303
|
+
} else if (
|
|
304
|
+
"object" === typeof process &&
|
|
305
|
+
"function" === typeof process.emit
|
|
306
|
+
) {
|
|
307
|
+
process.emit("uncaughtException", error);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
console.error(error);
|
|
311
|
+
},
|
|
312
|
+
Children = {
|
|
313
|
+
map: mapChildren,
|
|
314
|
+
forEach: function (children, forEachFunc, forEachContext) {
|
|
315
|
+
mapChildren(
|
|
316
|
+
children,
|
|
317
|
+
function () {
|
|
318
|
+
forEachFunc.apply(this, arguments);
|
|
319
|
+
},
|
|
320
|
+
forEachContext
|
|
348
321
|
);
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
322
|
+
},
|
|
323
|
+
count: function (children) {
|
|
324
|
+
var n = 0;
|
|
325
|
+
mapChildren(children, function () {
|
|
326
|
+
n++;
|
|
327
|
+
});
|
|
328
|
+
return n;
|
|
329
|
+
},
|
|
330
|
+
toArray: function (children) {
|
|
331
|
+
return (
|
|
332
|
+
mapChildren(children, function (child) {
|
|
333
|
+
return child;
|
|
334
|
+
}) || []
|
|
335
|
+
);
|
|
336
|
+
},
|
|
337
|
+
only: function (children) {
|
|
338
|
+
if (!isValidElement(children))
|
|
339
|
+
throw Error(
|
|
340
|
+
"React.Children.only expected to receive a single React element child."
|
|
341
|
+
);
|
|
342
|
+
return children;
|
|
343
|
+
}
|
|
344
|
+
};
|
|
345
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
346
|
+
exports.Children = Children;
|
|
352
347
|
exports.Component = Component;
|
|
353
348
|
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
354
349
|
exports.Profiler = REACT_PROFILER_TYPE;
|
|
@@ -368,18 +363,18 @@ exports.cache = function (fn) {
|
|
|
368
363
|
return fn.apply(null, arguments);
|
|
369
364
|
};
|
|
370
365
|
};
|
|
366
|
+
exports.cacheSignal = function () {
|
|
367
|
+
return null;
|
|
368
|
+
};
|
|
371
369
|
exports.cloneElement = function (element, config, children) {
|
|
372
370
|
if (null === element || void 0 === element)
|
|
373
371
|
throw Error(
|
|
374
372
|
"The argument must be a React element, but you passed " + element + "."
|
|
375
373
|
);
|
|
376
374
|
var props = assign({}, element.props),
|
|
377
|
-
key = element.key
|
|
378
|
-
owner = void 0;
|
|
375
|
+
key = element.key;
|
|
379
376
|
if (null != config)
|
|
380
|
-
for (propName in (void 0 !== config.
|
|
381
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
382
|
-
config))
|
|
377
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
383
378
|
!hasOwnProperty.call(config, propName) ||
|
|
384
379
|
"key" === propName ||
|
|
385
380
|
"__self" === propName ||
|
|
@@ -393,7 +388,7 @@ exports.cloneElement = function (element, config, children) {
|
|
|
393
388
|
childArray[i] = arguments[i + 2];
|
|
394
389
|
props.children = childArray;
|
|
395
390
|
}
|
|
396
|
-
return ReactElement(element.type, key,
|
|
391
|
+
return ReactElement(element.type, key, props);
|
|
397
392
|
};
|
|
398
393
|
exports.createContext = function (defaultValue) {
|
|
399
394
|
defaultValue = {
|
|
@@ -433,7 +428,7 @@ exports.createElement = function (type, config, children) {
|
|
|
433
428
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
434
429
|
void 0 === props[propName] &&
|
|
435
430
|
(props[propName] = childrenLength[propName]);
|
|
436
|
-
return ReactElement(type, key,
|
|
431
|
+
return ReactElement(type, key, props);
|
|
437
432
|
};
|
|
438
433
|
exports.createRef = function () {
|
|
439
434
|
return { current: null };
|
|
@@ -472,7 +467,10 @@ exports.startTransition = function (scope) {
|
|
|
472
467
|
} catch (error) {
|
|
473
468
|
reportGlobalError(error);
|
|
474
469
|
} finally {
|
|
475
|
-
|
|
470
|
+
null !== prevTransition &&
|
|
471
|
+
null !== currentTransition.types &&
|
|
472
|
+
(prevTransition.types = currentTransition.types),
|
|
473
|
+
(ReactSharedInternals.T = prevTransition);
|
|
476
474
|
}
|
|
477
475
|
};
|
|
478
476
|
exports.unstable_useCacheRefresh = function () {
|
|
@@ -494,13 +492,11 @@ exports.useDebugValue = function () {};
|
|
|
494
492
|
exports.useDeferredValue = function (value, initialValue) {
|
|
495
493
|
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
496
494
|
};
|
|
497
|
-
exports.useEffect = function (create,
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
);
|
|
503
|
-
return dispatcher.useEffect(create, createDeps);
|
|
495
|
+
exports.useEffect = function (create, deps) {
|
|
496
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
497
|
+
};
|
|
498
|
+
exports.useEffectEvent = function (callback) {
|
|
499
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
504
500
|
};
|
|
505
501
|
exports.useId = function () {
|
|
506
502
|
return ReactSharedInternals.H.useId();
|
|
@@ -543,4 +539,4 @@ exports.useSyncExternalStore = function (
|
|
|
543
539
|
exports.useTransition = function () {
|
|
544
540
|
return ReactSharedInternals.H.useTransition();
|
|
545
541
|
};
|
|
546
|
-
exports.version = "19.
|
|
542
|
+
exports.version = "19.2.3";
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"use strict";
|
|
12
12
|
"production" !== process.env.NODE_ENV &&
|
|
13
13
|
(function () {
|
|
14
|
+
function noop() {}
|
|
14
15
|
function getIteratorFn(maybeIterable) {
|
|
15
16
|
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
16
17
|
return null;
|
|
@@ -78,7 +79,7 @@
|
|
|
78
79
|
case REACT_PORTAL_TYPE:
|
|
79
80
|
return "Portal";
|
|
80
81
|
case REACT_CONTEXT_TYPE:
|
|
81
|
-
return
|
|
82
|
+
return type.displayName || "Context";
|
|
82
83
|
case REACT_CONSUMER_TYPE:
|
|
83
84
|
return (type._context.displayName || "Context") + ".Consumer";
|
|
84
85
|
case REACT_FORWARD_REF_TYPE:
|
|
@@ -158,17 +159,8 @@
|
|
|
158
159
|
componentName = this.props.ref;
|
|
159
160
|
return void 0 !== componentName ? componentName : null;
|
|
160
161
|
}
|
|
161
|
-
function ReactElement(
|
|
162
|
-
|
|
163
|
-
key,
|
|
164
|
-
self,
|
|
165
|
-
source,
|
|
166
|
-
owner,
|
|
167
|
-
props,
|
|
168
|
-
debugStack,
|
|
169
|
-
debugTask
|
|
170
|
-
) {
|
|
171
|
-
self = props.ref;
|
|
162
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
163
|
+
var refProp = props.ref;
|
|
172
164
|
type = {
|
|
173
165
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
174
166
|
type: type,
|
|
@@ -176,7 +168,7 @@
|
|
|
176
168
|
props: props,
|
|
177
169
|
_owner: owner
|
|
178
170
|
};
|
|
179
|
-
null !== (void 0 !==
|
|
171
|
+
null !== (void 0 !== refProp ? refProp : null)
|
|
180
172
|
? Object.defineProperty(type, "ref", {
|
|
181
173
|
enumerable: !1,
|
|
182
174
|
get: elementRefGetterWithDeprecationWarning
|
|
@@ -214,10 +206,8 @@
|
|
|
214
206
|
newKey = ReactElement(
|
|
215
207
|
oldElement.type,
|
|
216
208
|
newKey,
|
|
217
|
-
void 0,
|
|
218
|
-
void 0,
|
|
219
|
-
oldElement._owner,
|
|
220
209
|
oldElement.props,
|
|
210
|
+
oldElement._owner,
|
|
221
211
|
oldElement._debugStack,
|
|
222
212
|
oldElement._debugTask
|
|
223
213
|
);
|
|
@@ -225,6 +215,18 @@
|
|
|
225
215
|
(newKey._store.validated = oldElement._store.validated);
|
|
226
216
|
return newKey;
|
|
227
217
|
}
|
|
218
|
+
function validateChildKeys(node) {
|
|
219
|
+
isValidElement(node)
|
|
220
|
+
? node._store && (node._store.validated = 1)
|
|
221
|
+
: "object" === typeof node &&
|
|
222
|
+
null !== node &&
|
|
223
|
+
node.$$typeof === REACT_LAZY_TYPE &&
|
|
224
|
+
("fulfilled" === node._payload.status
|
|
225
|
+
? isValidElement(node._payload.value) &&
|
|
226
|
+
node._payload.value._store &&
|
|
227
|
+
(node._payload.value._store.validated = 1)
|
|
228
|
+
: node._store && (node._store.validated = 1));
|
|
229
|
+
}
|
|
228
230
|
function isValidElement(object) {
|
|
229
231
|
return (
|
|
230
232
|
"object" === typeof object &&
|
|
@@ -248,7 +250,6 @@
|
|
|
248
250
|
? (checkKeyStringCoercion(element.key), escape("" + element.key))
|
|
249
251
|
: index.toString(36);
|
|
250
252
|
}
|
|
251
|
-
function noop() {}
|
|
252
253
|
function resolveThenable(thenable) {
|
|
253
254
|
switch (thenable.status) {
|
|
254
255
|
case "fulfilled":
|
|
@@ -428,35 +429,56 @@
|
|
|
428
429
|
}
|
|
429
430
|
function lazyInitializer(payload) {
|
|
430
431
|
if (-1 === payload._status) {
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
|
|
432
|
+
var ioInfo = payload._ioInfo;
|
|
433
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
434
|
+
ioInfo = payload._result;
|
|
435
|
+
var thenable = ioInfo();
|
|
436
|
+
thenable.then(
|
|
434
437
|
function (moduleObject) {
|
|
435
|
-
if (0 === payload._status || -1 === payload._status)
|
|
436
|
-
|
|
438
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
439
|
+
payload._status = 1;
|
|
440
|
+
payload._result = moduleObject;
|
|
441
|
+
var _ioInfo = payload._ioInfo;
|
|
442
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
443
|
+
void 0 === thenable.status &&
|
|
444
|
+
((thenable.status = "fulfilled"),
|
|
445
|
+
(thenable.value = moduleObject));
|
|
446
|
+
}
|
|
437
447
|
},
|
|
438
448
|
function (error) {
|
|
439
|
-
if (0 === payload._status || -1 === payload._status)
|
|
440
|
-
|
|
449
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
450
|
+
payload._status = 2;
|
|
451
|
+
payload._result = error;
|
|
452
|
+
var _ioInfo2 = payload._ioInfo;
|
|
453
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
454
|
+
void 0 === thenable.status &&
|
|
455
|
+
((thenable.status = "rejected"), (thenable.reason = error));
|
|
456
|
+
}
|
|
441
457
|
}
|
|
442
458
|
);
|
|
459
|
+
ioInfo = payload._ioInfo;
|
|
460
|
+
if (null != ioInfo) {
|
|
461
|
+
ioInfo.value = thenable;
|
|
462
|
+
var displayName = thenable.displayName;
|
|
463
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
464
|
+
}
|
|
443
465
|
-1 === payload._status &&
|
|
444
|
-
((payload._status = 0), (payload._result =
|
|
466
|
+
((payload._status = 0), (payload._result = thenable));
|
|
445
467
|
}
|
|
446
468
|
if (1 === payload._status)
|
|
447
469
|
return (
|
|
448
|
-
(
|
|
449
|
-
void 0 ===
|
|
470
|
+
(ioInfo = payload._result),
|
|
471
|
+
void 0 === ioInfo &&
|
|
450
472
|
console.error(
|
|
451
473
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
|
|
452
|
-
|
|
474
|
+
ioInfo
|
|
453
475
|
),
|
|
454
|
-
"default" in
|
|
476
|
+
"default" in ioInfo ||
|
|
455
477
|
console.error(
|
|
456
478
|
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
457
|
-
|
|
479
|
+
ioInfo
|
|
458
480
|
),
|
|
459
|
-
|
|
481
|
+
ioInfo.default
|
|
460
482
|
);
|
|
461
483
|
throw payload._result;
|
|
462
484
|
}
|
|
@@ -477,9 +499,8 @@
|
|
|
477
499
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
478
500
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
479
501
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
480
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler")
|
|
481
|
-
|
|
482
|
-
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
502
|
+
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
503
|
+
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
483
504
|
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
484
505
|
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
485
506
|
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
@@ -497,16 +518,18 @@
|
|
|
497
518
|
return null;
|
|
498
519
|
},
|
|
499
520
|
createFakeCallStack = {
|
|
500
|
-
|
|
521
|
+
react_stack_bottom_frame: function (callStackForError) {
|
|
501
522
|
return callStackForError();
|
|
502
523
|
}
|
|
503
524
|
},
|
|
504
525
|
specialPropKeyWarningShown,
|
|
505
526
|
didWarnAboutOldJSXRuntime;
|
|
506
527
|
var didWarnAboutElementRef = {};
|
|
507
|
-
var unknownOwnerDebugStack =
|
|
508
|
-
|
|
509
|
-
|
|
528
|
+
var unknownOwnerDebugStack =
|
|
529
|
+
createFakeCallStack.react_stack_bottom_frame.bind(
|
|
530
|
+
createFakeCallStack,
|
|
531
|
+
UnknownOwner
|
|
532
|
+
)();
|
|
510
533
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
511
534
|
var didWarnAboutMaps = !1,
|
|
512
535
|
userProvidedKeyEscapeRegex = /\/+/g;
|
|
@@ -593,6 +616,10 @@
|
|
|
593
616
|
}
|
|
594
617
|
};
|
|
595
618
|
};
|
|
619
|
+
exports.cacheSignal = function () {
|
|
620
|
+
var dispatcher = ReactSharedInternals.A;
|
|
621
|
+
return dispatcher ? dispatcher.cacheSignal() : null;
|
|
622
|
+
};
|
|
596
623
|
exports.captureOwnerStack = function () {
|
|
597
624
|
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
598
625
|
return null === getCurrentStack ? null : getCurrentStack();
|
|
@@ -645,25 +672,20 @@
|
|
|
645
672
|
props = ReactElement(
|
|
646
673
|
element.type,
|
|
647
674
|
key,
|
|
648
|
-
void 0,
|
|
649
|
-
void 0,
|
|
650
|
-
owner,
|
|
651
675
|
props,
|
|
676
|
+
owner,
|
|
652
677
|
element._debugStack,
|
|
653
678
|
element._debugTask
|
|
654
679
|
);
|
|
655
680
|
for (key = 2; key < arguments.length; key++)
|
|
656
|
-
(
|
|
657
|
-
isValidElement(owner) && owner._store && (owner._store.validated = 1);
|
|
681
|
+
validateChildKeys(arguments[key]);
|
|
658
682
|
return props;
|
|
659
683
|
};
|
|
660
684
|
exports.createElement = function (type, config, children) {
|
|
661
|
-
for (var i = 2; i < arguments.length; i++)
|
|
662
|
-
|
|
663
|
-
isValidElement(node) && node._store && (node._store.validated = 1);
|
|
664
|
-
}
|
|
685
|
+
for (var i = 2; i < arguments.length; i++)
|
|
686
|
+
validateChildKeys(arguments[i]);
|
|
665
687
|
i = {};
|
|
666
|
-
|
|
688
|
+
var key = null;
|
|
667
689
|
if (null != config)
|
|
668
690
|
for (propName in (didWarnAboutOldJSXRuntime ||
|
|
669
691
|
!("__self" in config) ||
|
|
@@ -673,7 +695,7 @@
|
|
|
673
695
|
"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"
|
|
674
696
|
)),
|
|
675
697
|
hasValidKey(config) &&
|
|
676
|
-
(checkKeyStringCoercion(config.key), (
|
|
698
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key)),
|
|
677
699
|
config))
|
|
678
700
|
hasOwnProperty.call(config, propName) &&
|
|
679
701
|
"key" !== propName &&
|
|
@@ -695,7 +717,7 @@
|
|
|
695
717
|
if (type && type.defaultProps)
|
|
696
718
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
697
719
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
698
|
-
|
|
720
|
+
key &&
|
|
699
721
|
defineKeyPropWarningGetter(
|
|
700
722
|
i,
|
|
701
723
|
"function" === typeof type
|
|
@@ -705,11 +727,9 @@
|
|
|
705
727
|
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
706
728
|
return ReactElement(
|
|
707
729
|
type,
|
|
708
|
-
|
|
709
|
-
void 0,
|
|
710
|
-
void 0,
|
|
711
|
-
getOwner(),
|
|
730
|
+
key,
|
|
712
731
|
i,
|
|
732
|
+
getOwner(),
|
|
713
733
|
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
714
734
|
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
715
735
|
);
|
|
@@ -762,11 +782,24 @@
|
|
|
762
782
|
};
|
|
763
783
|
exports.isValidElement = isValidElement;
|
|
764
784
|
exports.lazy = function (ctor) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
785
|
+
ctor = { _status: -1, _result: ctor };
|
|
786
|
+
var lazyType = {
|
|
787
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
788
|
+
_payload: ctor,
|
|
789
|
+
_init: lazyInitializer
|
|
790
|
+
},
|
|
791
|
+
ioInfo = {
|
|
792
|
+
name: "lazy",
|
|
793
|
+
start: -1,
|
|
794
|
+
end: -1,
|
|
795
|
+
value: null,
|
|
796
|
+
owner: null,
|
|
797
|
+
debugStack: Error("react-stack-top-frame"),
|
|
798
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
799
|
+
};
|
|
800
|
+
ctor._ioInfo = ioInfo;
|
|
801
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
802
|
+
return lazyType;
|
|
770
803
|
};
|
|
771
804
|
exports.memo = function (type, compare) {
|
|
772
805
|
null == type &&
|
|
@@ -811,5 +844,5 @@
|
|
|
811
844
|
exports.useMemo = function (create, deps) {
|
|
812
845
|
return resolveDispatcher().useMemo(create, deps);
|
|
813
846
|
};
|
|
814
|
-
exports.version = "19.
|
|
847
|
+
exports.version = "19.2.3";
|
|
815
848
|
})();
|
|
@@ -25,8 +25,9 @@ function formatProdErrorMessage(code) {
|
|
|
25
25
|
" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
|
|
26
26
|
);
|
|
27
27
|
}
|
|
28
|
-
var isArrayImpl = Array.isArray
|
|
29
|
-
|
|
28
|
+
var isArrayImpl = Array.isArray;
|
|
29
|
+
function noop() {}
|
|
30
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
30
31
|
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
31
32
|
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
32
33
|
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
@@ -45,25 +46,18 @@ function getIteratorFn(maybeIterable) {
|
|
|
45
46
|
}
|
|
46
47
|
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
47
48
|
assign = Object.assign;
|
|
48
|
-
function ReactElement(type, key,
|
|
49
|
-
|
|
49
|
+
function ReactElement(type, key, props) {
|
|
50
|
+
var refProp = props.ref;
|
|
50
51
|
return {
|
|
51
52
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
52
53
|
type: type,
|
|
53
54
|
key: key,
|
|
54
|
-
ref: void 0 !==
|
|
55
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
55
56
|
props: props
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
59
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
59
|
-
return ReactElement(
|
|
60
|
-
oldElement.type,
|
|
61
|
-
newKey,
|
|
62
|
-
void 0,
|
|
63
|
-
void 0,
|
|
64
|
-
void 0,
|
|
65
|
-
oldElement.props
|
|
66
|
-
);
|
|
60
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
67
61
|
}
|
|
68
62
|
function isValidElement(object) {
|
|
69
63
|
return (
|
|
@@ -87,7 +81,6 @@ function getElementKey(element, index) {
|
|
|
87
81
|
? escape("" + element.key)
|
|
88
82
|
: index.toString(36);
|
|
89
83
|
}
|
|
90
|
-
function noop() {}
|
|
91
84
|
function resolveThenable(thenable) {
|
|
92
85
|
switch (thenable.status) {
|
|
93
86
|
case "fulfilled":
|
|
@@ -340,6 +333,10 @@ exports.cache = function (fn) {
|
|
|
340
333
|
}
|
|
341
334
|
};
|
|
342
335
|
};
|
|
336
|
+
exports.cacheSignal = function () {
|
|
337
|
+
var dispatcher = ReactSharedInternals.A;
|
|
338
|
+
return dispatcher ? dispatcher.cacheSignal() : null;
|
|
339
|
+
};
|
|
343
340
|
exports.captureOwnerStack = function () {
|
|
344
341
|
return null;
|
|
345
342
|
};
|
|
@@ -347,12 +344,9 @@ exports.cloneElement = function (element, config, children) {
|
|
|
347
344
|
if (null === element || void 0 === element)
|
|
348
345
|
throw Error(formatProdErrorMessage(267, element));
|
|
349
346
|
var props = assign({}, element.props),
|
|
350
|
-
key = element.key
|
|
351
|
-
owner = void 0;
|
|
347
|
+
key = element.key;
|
|
352
348
|
if (null != config)
|
|
353
|
-
for (propName in (void 0 !== config.
|
|
354
|
-
void 0 !== config.key && (key = "" + config.key),
|
|
355
|
-
config))
|
|
349
|
+
for (propName in (void 0 !== config.key && (key = "" + config.key), config))
|
|
356
350
|
!hasOwnProperty.call(config, propName) ||
|
|
357
351
|
"key" === propName ||
|
|
358
352
|
"__self" === propName ||
|
|
@@ -366,7 +360,7 @@ exports.cloneElement = function (element, config, children) {
|
|
|
366
360
|
childArray[i] = arguments[i + 2];
|
|
367
361
|
props.children = childArray;
|
|
368
362
|
}
|
|
369
|
-
return ReactElement(element.type, key,
|
|
363
|
+
return ReactElement(element.type, key, props);
|
|
370
364
|
};
|
|
371
365
|
exports.createElement = function (type, config, children) {
|
|
372
366
|
var propName,
|
|
@@ -390,7 +384,7 @@ exports.createElement = function (type, config, children) {
|
|
|
390
384
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
391
385
|
void 0 === props[propName] &&
|
|
392
386
|
(props[propName] = childrenLength[propName]);
|
|
393
|
-
return ReactElement(type, key,
|
|
387
|
+
return ReactElement(type, key, props);
|
|
394
388
|
};
|
|
395
389
|
exports.createRef = function () {
|
|
396
390
|
return { current: null };
|
|
@@ -426,4 +420,4 @@ exports.useId = function () {
|
|
|
426
420
|
exports.useMemo = function (create, deps) {
|
|
427
421
|
return ReactSharedInternals.H.useMemo(create, deps);
|
|
428
422
|
};
|
|
429
|
-
exports.version = "19.
|
|
423
|
+
exports.version = "19.2.3";
|