react 19.0.0-rc-4d577fd2-20241104 → 19.0.0-rc-66855b96-20241106
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 +8 -23
- package/cjs/react-jsx-dev-runtime.react-server.development.js +8 -23
- package/cjs/react-jsx-runtime.development.js +8 -23
- package/cjs/react-jsx-runtime.react-server.development.js +8 -23
- package/cjs/react.development.js +36 -43
- package/cjs/react.production.js +6 -7
- package/cjs/react.react-server.development.js +36 -43
- package/cjs/react.react-server.production.js +6 -7
- package/package.json +1 -1
@@ -348,13 +348,6 @@
|
|
348
348
|
var dispatcher = ReactSharedInternals.A;
|
349
349
|
return null === dispatcher ? null : dispatcher.getOwner();
|
350
350
|
}
|
351
|
-
function hasValidRef(config) {
|
352
|
-
if (hasOwnProperty.call(config, "ref")) {
|
353
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
354
|
-
if (getter && getter.isReactWarning) return !1;
|
355
|
-
}
|
356
|
-
return void 0 !== config.ref;
|
357
|
-
}
|
358
351
|
function hasValidKey(config) {
|
359
352
|
if (hasOwnProperty.call(config, "key")) {
|
360
353
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -387,8 +380,8 @@
|
|
387
380
|
componentName = this.props.ref;
|
388
381
|
return void 0 !== componentName ? componentName : null;
|
389
382
|
}
|
390
|
-
function ReactElement(type, key,
|
391
|
-
|
383
|
+
function ReactElement(type, key, self, source, owner, props) {
|
384
|
+
self = props.ref;
|
392
385
|
type = {
|
393
386
|
$$typeof: REACT_ELEMENT_TYPE,
|
394
387
|
type: type,
|
@@ -396,7 +389,7 @@
|
|
396
389
|
props: props,
|
397
390
|
_owner: owner
|
398
391
|
};
|
399
|
-
null !== (void 0 !==
|
392
|
+
null !== (void 0 !== self ? self : null)
|
400
393
|
? Object.defineProperty(type, "ref", {
|
401
394
|
enumerable: !1,
|
402
395
|
get: elementRefGetterWithDeprecationWarning
|
@@ -515,27 +508,19 @@
|
|
515
508
|
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
516
509
|
hasValidKey(config) &&
|
517
510
|
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
518
|
-
hasValidRef(config);
|
519
511
|
if ("key" in config) {
|
520
512
|
maybeKey = {};
|
521
513
|
for (var propName in config)
|
522
514
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
523
515
|
} else maybeKey = config;
|
524
516
|
children &&
|
525
|
-
(
|
517
|
+
defineKeyPropWarningGetter(
|
518
|
+
maybeKey,
|
526
519
|
"function" === typeof type
|
527
520
|
? type.displayName || type.name || "Unknown"
|
528
|
-
: type
|
529
|
-
|
530
|
-
return ReactElement(
|
531
|
-
type,
|
532
|
-
children,
|
533
|
-
null,
|
534
|
-
self,
|
535
|
-
source,
|
536
|
-
getOwner(),
|
537
|
-
maybeKey
|
538
|
-
);
|
521
|
+
: type
|
522
|
+
);
|
523
|
+
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
539
524
|
}
|
540
525
|
function validateChildKeys(node, parentType) {
|
541
526
|
if (
|
@@ -348,13 +348,6 @@
|
|
348
348
|
var dispatcher = ReactSharedInternalsServer.A;
|
349
349
|
return null === dispatcher ? null : dispatcher.getOwner();
|
350
350
|
}
|
351
|
-
function hasValidRef(config) {
|
352
|
-
if (hasOwnProperty.call(config, "ref")) {
|
353
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
354
|
-
if (getter && getter.isReactWarning) return !1;
|
355
|
-
}
|
356
|
-
return void 0 !== config.ref;
|
357
|
-
}
|
358
351
|
function hasValidKey(config) {
|
359
352
|
if (hasOwnProperty.call(config, "key")) {
|
360
353
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -387,8 +380,8 @@
|
|
387
380
|
componentName = this.props.ref;
|
388
381
|
return void 0 !== componentName ? componentName : null;
|
389
382
|
}
|
390
|
-
function ReactElement(type, key,
|
391
|
-
|
383
|
+
function ReactElement(type, key, self, source, owner, props) {
|
384
|
+
self = props.ref;
|
392
385
|
type = {
|
393
386
|
$$typeof: REACT_ELEMENT_TYPE,
|
394
387
|
type: type,
|
@@ -396,7 +389,7 @@
|
|
396
389
|
props: props,
|
397
390
|
_owner: owner
|
398
391
|
};
|
399
|
-
null !== (void 0 !==
|
392
|
+
null !== (void 0 !== self ? self : null)
|
400
393
|
? Object.defineProperty(type, "ref", {
|
401
394
|
enumerable: !1,
|
402
395
|
get: elementRefGetterWithDeprecationWarning
|
@@ -515,27 +508,19 @@
|
|
515
508
|
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
516
509
|
hasValidKey(config) &&
|
517
510
|
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
518
|
-
hasValidRef(config);
|
519
511
|
if ("key" in config) {
|
520
512
|
maybeKey = {};
|
521
513
|
for (var propName in config)
|
522
514
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
523
515
|
} else maybeKey = config;
|
524
516
|
children &&
|
525
|
-
(
|
517
|
+
defineKeyPropWarningGetter(
|
518
|
+
maybeKey,
|
526
519
|
"function" === typeof type
|
527
520
|
? type.displayName || type.name || "Unknown"
|
528
|
-
: type
|
529
|
-
|
530
|
-
return ReactElement(
|
531
|
-
type,
|
532
|
-
children,
|
533
|
-
null,
|
534
|
-
self,
|
535
|
-
source,
|
536
|
-
getOwner(),
|
537
|
-
maybeKey
|
538
|
-
);
|
521
|
+
: type
|
522
|
+
);
|
523
|
+
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
539
524
|
}
|
540
525
|
function validateChildKeys(node, parentType) {
|
541
526
|
if (
|
@@ -348,13 +348,6 @@
|
|
348
348
|
var dispatcher = ReactSharedInternals.A;
|
349
349
|
return null === dispatcher ? null : dispatcher.getOwner();
|
350
350
|
}
|
351
|
-
function hasValidRef(config) {
|
352
|
-
if (hasOwnProperty.call(config, "ref")) {
|
353
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
354
|
-
if (getter && getter.isReactWarning) return !1;
|
355
|
-
}
|
356
|
-
return void 0 !== config.ref;
|
357
|
-
}
|
358
351
|
function hasValidKey(config) {
|
359
352
|
if (hasOwnProperty.call(config, "key")) {
|
360
353
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -387,8 +380,8 @@
|
|
387
380
|
componentName = this.props.ref;
|
388
381
|
return void 0 !== componentName ? componentName : null;
|
389
382
|
}
|
390
|
-
function ReactElement(type, key,
|
391
|
-
|
383
|
+
function ReactElement(type, key, self, source, owner, props) {
|
384
|
+
self = props.ref;
|
392
385
|
type = {
|
393
386
|
$$typeof: REACT_ELEMENT_TYPE,
|
394
387
|
type: type,
|
@@ -396,7 +389,7 @@
|
|
396
389
|
props: props,
|
397
390
|
_owner: owner
|
398
391
|
};
|
399
|
-
null !== (void 0 !==
|
392
|
+
null !== (void 0 !== self ? self : null)
|
400
393
|
? Object.defineProperty(type, "ref", {
|
401
394
|
enumerable: !1,
|
402
395
|
get: elementRefGetterWithDeprecationWarning
|
@@ -515,27 +508,19 @@
|
|
515
508
|
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
516
509
|
hasValidKey(config) &&
|
517
510
|
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
518
|
-
hasValidRef(config);
|
519
511
|
if ("key" in config) {
|
520
512
|
maybeKey = {};
|
521
513
|
for (var propName in config)
|
522
514
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
523
515
|
} else maybeKey = config;
|
524
516
|
children &&
|
525
|
-
(
|
517
|
+
defineKeyPropWarningGetter(
|
518
|
+
maybeKey,
|
526
519
|
"function" === typeof type
|
527
520
|
? type.displayName || type.name || "Unknown"
|
528
|
-
: type
|
529
|
-
|
530
|
-
return ReactElement(
|
531
|
-
type,
|
532
|
-
children,
|
533
|
-
null,
|
534
|
-
self,
|
535
|
-
source,
|
536
|
-
getOwner(),
|
537
|
-
maybeKey
|
538
|
-
);
|
521
|
+
: type
|
522
|
+
);
|
523
|
+
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
539
524
|
}
|
540
525
|
function validateChildKeys(node, parentType) {
|
541
526
|
if (
|
@@ -348,13 +348,6 @@
|
|
348
348
|
var dispatcher = ReactSharedInternalsServer.A;
|
349
349
|
return null === dispatcher ? null : dispatcher.getOwner();
|
350
350
|
}
|
351
|
-
function hasValidRef(config) {
|
352
|
-
if (hasOwnProperty.call(config, "ref")) {
|
353
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
354
|
-
if (getter && getter.isReactWarning) return !1;
|
355
|
-
}
|
356
|
-
return void 0 !== config.ref;
|
357
|
-
}
|
358
351
|
function hasValidKey(config) {
|
359
352
|
if (hasOwnProperty.call(config, "key")) {
|
360
353
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -387,8 +380,8 @@
|
|
387
380
|
componentName = this.props.ref;
|
388
381
|
return void 0 !== componentName ? componentName : null;
|
389
382
|
}
|
390
|
-
function ReactElement(type, key,
|
391
|
-
|
383
|
+
function ReactElement(type, key, self, source, owner, props) {
|
384
|
+
self = props.ref;
|
392
385
|
type = {
|
393
386
|
$$typeof: REACT_ELEMENT_TYPE,
|
394
387
|
type: type,
|
@@ -396,7 +389,7 @@
|
|
396
389
|
props: props,
|
397
390
|
_owner: owner
|
398
391
|
};
|
399
|
-
null !== (void 0 !==
|
392
|
+
null !== (void 0 !== self ? self : null)
|
400
393
|
? Object.defineProperty(type, "ref", {
|
401
394
|
enumerable: !1,
|
402
395
|
get: elementRefGetterWithDeprecationWarning
|
@@ -515,27 +508,19 @@
|
|
515
508
|
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
516
509
|
hasValidKey(config) &&
|
517
510
|
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
518
|
-
hasValidRef(config);
|
519
511
|
if ("key" in config) {
|
520
512
|
maybeKey = {};
|
521
513
|
for (var propName in config)
|
522
514
|
"key" !== propName && (maybeKey[propName] = config[propName]);
|
523
515
|
} else maybeKey = config;
|
524
516
|
children &&
|
525
|
-
(
|
517
|
+
defineKeyPropWarningGetter(
|
518
|
+
maybeKey,
|
526
519
|
"function" === typeof type
|
527
520
|
? type.displayName || type.name || "Unknown"
|
528
|
-
: type
|
529
|
-
|
530
|
-
return ReactElement(
|
531
|
-
type,
|
532
|
-
children,
|
533
|
-
null,
|
534
|
-
self,
|
535
|
-
source,
|
536
|
-
getOwner(),
|
537
|
-
maybeKey
|
538
|
-
);
|
521
|
+
: type
|
522
|
+
);
|
523
|
+
return ReactElement(type, children, self, source, getOwner(), maybeKey);
|
539
524
|
}
|
540
525
|
function validateChildKeys(node, parentType) {
|
541
526
|
if (
|
package/cjs/react.development.js
CHANGED
@@ -415,13 +415,6 @@
|
|
415
415
|
var dispatcher = ReactSharedInternals.A;
|
416
416
|
return null === dispatcher ? null : dispatcher.getOwner();
|
417
417
|
}
|
418
|
-
function hasValidRef(config) {
|
419
|
-
if (hasOwnProperty.call(config, "ref")) {
|
420
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
421
|
-
if (getter && getter.isReactWarning) return !1;
|
422
|
-
}
|
423
|
-
return void 0 !== config.ref;
|
424
|
-
}
|
425
418
|
function hasValidKey(config) {
|
426
419
|
if (hasOwnProperty.call(config, "key")) {
|
427
420
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -454,8 +447,8 @@
|
|
454
447
|
componentName = this.props.ref;
|
455
448
|
return void 0 !== componentName ? componentName : null;
|
456
449
|
}
|
457
|
-
function ReactElement(type, key,
|
458
|
-
|
450
|
+
function ReactElement(type, key, self, source, owner, props) {
|
451
|
+
self = props.ref;
|
459
452
|
type = {
|
460
453
|
$$typeof: REACT_ELEMENT_TYPE,
|
461
454
|
type: type,
|
@@ -463,7 +456,7 @@
|
|
463
456
|
props: props,
|
464
457
|
_owner: owner
|
465
458
|
};
|
466
|
-
null !== (void 0 !==
|
459
|
+
null !== (void 0 !== self ? self : null)
|
467
460
|
? Object.defineProperty(type, "ref", {
|
468
461
|
enumerable: !1,
|
469
462
|
get: elementRefGetterWithDeprecationWarning
|
@@ -489,7 +482,6 @@
|
|
489
482
|
newKey = ReactElement(
|
490
483
|
oldElement.type,
|
491
484
|
newKey,
|
492
|
-
null,
|
493
485
|
void 0,
|
494
486
|
void 0,
|
495
487
|
oldElement._owner,
|
@@ -1204,33 +1196,42 @@
|
|
1204
1196
|
var props = assign({}, element.props),
|
1205
1197
|
key = element.key,
|
1206
1198
|
owner = element._owner;
|
1207
|
-
if (null != config)
|
1208
|
-
|
1199
|
+
if (null != config) {
|
1200
|
+
var JSCompiler_inline_result;
|
1201
|
+
a: {
|
1202
|
+
if (
|
1203
|
+
hasOwnProperty.call(config, "ref") &&
|
1204
|
+
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
1205
|
+
config,
|
1206
|
+
"ref"
|
1207
|
+
).get) &&
|
1208
|
+
JSCompiler_inline_result.isReactWarning
|
1209
|
+
) {
|
1210
|
+
JSCompiler_inline_result = !1;
|
1211
|
+
break a;
|
1212
|
+
}
|
1213
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
1214
|
+
}
|
1215
|
+
JSCompiler_inline_result && (owner = getOwner());
|
1209
1216
|
hasValidKey(config) &&
|
1210
|
-
(checkKeyStringCoercion(config.key), (key = "" + config.key))
|
1211
|
-
config)
|
1217
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
1218
|
+
for (propName in config)
|
1212
1219
|
!hasOwnProperty.call(config, propName) ||
|
1213
1220
|
"key" === propName ||
|
1214
1221
|
"__self" === propName ||
|
1215
1222
|
"__source" === propName ||
|
1216
1223
|
("ref" === propName && void 0 === config.ref) ||
|
1217
1224
|
(props[propName] = config[propName]);
|
1225
|
+
}
|
1218
1226
|
var propName = arguments.length - 2;
|
1219
1227
|
if (1 === propName) props.children = children;
|
1220
1228
|
else if (1 < propName) {
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1229
|
+
JSCompiler_inline_result = Array(propName);
|
1230
|
+
for (var i = 0; i < propName; i++)
|
1231
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
1232
|
+
props.children = JSCompiler_inline_result;
|
1224
1233
|
}
|
1225
|
-
props = ReactElement(
|
1226
|
-
element.type,
|
1227
|
-
key,
|
1228
|
-
null,
|
1229
|
-
void 0,
|
1230
|
-
void 0,
|
1231
|
-
owner,
|
1232
|
-
props
|
1233
|
-
);
|
1234
|
+
props = ReactElement(element.type, key, void 0, void 0, owner, props);
|
1234
1235
|
for (key = 2; key < arguments.length; key++)
|
1235
1236
|
validateChildKeys(arguments[key], props.type);
|
1236
1237
|
return props;
|
@@ -1285,6 +1286,7 @@
|
|
1285
1286
|
i
|
1286
1287
|
);
|
1287
1288
|
}
|
1289
|
+
var propName;
|
1288
1290
|
i = {};
|
1289
1291
|
typeString = null;
|
1290
1292
|
if (null != config)
|
@@ -1295,7 +1297,6 @@
|
|
1295
1297
|
console.warn(
|
1296
1298
|
"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"
|
1297
1299
|
)),
|
1298
|
-
hasValidRef(config),
|
1299
1300
|
hasValidKey(config) &&
|
1300
1301
|
(checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
|
1301
1302
|
config))
|
@@ -1319,22 +1320,14 @@
|
|
1319
1320
|
if (type && type.defaultProps)
|
1320
1321
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
1321
1322
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
1322
|
-
|
1323
|
-
|
1323
|
+
typeString &&
|
1324
|
+
defineKeyPropWarningGetter(
|
1325
|
+
i,
|
1324
1326
|
"function" === typeof type
|
1325
1327
|
? type.displayName || type.name || "Unknown"
|
1326
|
-
: type
|
1327
|
-
|
1328
|
-
|
1329
|
-
return ReactElement(
|
1330
|
-
type,
|
1331
|
-
typeString,
|
1332
|
-
null,
|
1333
|
-
void 0,
|
1334
|
-
void 0,
|
1335
|
-
getOwner(),
|
1336
|
-
i
|
1337
|
-
);
|
1328
|
+
: type
|
1329
|
+
);
|
1330
|
+
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
1338
1331
|
};
|
1339
1332
|
exports.createRef = function () {
|
1340
1333
|
var refObject = { current: null };
|
@@ -1520,7 +1513,7 @@
|
|
1520
1513
|
exports.useTransition = function () {
|
1521
1514
|
return resolveDispatcher().useTransition();
|
1522
1515
|
};
|
1523
|
-
exports.version = "19.0.0-rc-
|
1516
|
+
exports.version = "19.0.0-rc-66855b96-20241106";
|
1524
1517
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
1525
1518
|
"function" ===
|
1526
1519
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
package/cjs/react.production.js
CHANGED
@@ -74,13 +74,13 @@ pureComponentPrototype.isPureReactComponent = !0;
|
|
74
74
|
var isArrayImpl = Array.isArray,
|
75
75
|
ReactSharedInternals = { H: null, A: null, T: null, S: null },
|
76
76
|
hasOwnProperty = Object.prototype.hasOwnProperty;
|
77
|
-
function ReactElement(type, key,
|
78
|
-
|
77
|
+
function ReactElement(type, key, self, source, owner, props) {
|
78
|
+
self = props.ref;
|
79
79
|
return {
|
80
80
|
$$typeof: REACT_ELEMENT_TYPE,
|
81
81
|
type: type,
|
82
82
|
key: key,
|
83
|
-
ref: void 0 !==
|
83
|
+
ref: void 0 !== self ? self : null,
|
84
84
|
props: props
|
85
85
|
};
|
86
86
|
}
|
@@ -88,7 +88,6 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
88
88
|
return ReactElement(
|
89
89
|
oldElement.type,
|
90
90
|
newKey,
|
91
|
-
null,
|
92
91
|
void 0,
|
93
92
|
void 0,
|
94
93
|
void 0,
|
@@ -391,7 +390,7 @@ exports.cloneElement = function (element, config, children) {
|
|
391
390
|
childArray[i] = arguments[i + 2];
|
392
391
|
props.children = childArray;
|
393
392
|
}
|
394
|
-
return ReactElement(element.type, key,
|
393
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
395
394
|
};
|
396
395
|
exports.createContext = function (defaultValue) {
|
397
396
|
defaultValue = {
|
@@ -431,7 +430,7 @@ exports.createElement = function (type, config, children) {
|
|
431
430
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
432
431
|
void 0 === props[propName] &&
|
433
432
|
(props[propName] = childrenLength[propName]);
|
434
|
-
return ReactElement(type, key,
|
433
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
435
434
|
};
|
436
435
|
exports.createRef = function () {
|
437
436
|
return { current: null };
|
@@ -536,4 +535,4 @@ exports.useSyncExternalStore = function (
|
|
536
535
|
exports.useTransition = function () {
|
537
536
|
return ReactSharedInternals.H.useTransition();
|
538
537
|
};
|
539
|
-
exports.version = "19.0.0-rc-
|
538
|
+
exports.version = "19.0.0-rc-66855b96-20241106";
|
@@ -377,13 +377,6 @@
|
|
377
377
|
var dispatcher = ReactSharedInternals.A;
|
378
378
|
return null === dispatcher ? null : dispatcher.getOwner();
|
379
379
|
}
|
380
|
-
function hasValidRef(config) {
|
381
|
-
if (hasOwnProperty.call(config, "ref")) {
|
382
|
-
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
383
|
-
if (getter && getter.isReactWarning) return !1;
|
384
|
-
}
|
385
|
-
return void 0 !== config.ref;
|
386
|
-
}
|
387
380
|
function hasValidKey(config) {
|
388
381
|
if (hasOwnProperty.call(config, "key")) {
|
389
382
|
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
@@ -416,8 +409,8 @@
|
|
416
409
|
componentName = this.props.ref;
|
417
410
|
return void 0 !== componentName ? componentName : null;
|
418
411
|
}
|
419
|
-
function ReactElement(type, key,
|
420
|
-
|
412
|
+
function ReactElement(type, key, self, source, owner, props) {
|
413
|
+
self = props.ref;
|
421
414
|
type = {
|
422
415
|
$$typeof: REACT_ELEMENT_TYPE,
|
423
416
|
type: type,
|
@@ -425,7 +418,7 @@
|
|
425
418
|
props: props,
|
426
419
|
_owner: owner
|
427
420
|
};
|
428
|
-
null !== (void 0 !==
|
421
|
+
null !== (void 0 !== self ? self : null)
|
429
422
|
? Object.defineProperty(type, "ref", {
|
430
423
|
enumerable: !1,
|
431
424
|
get: elementRefGetterWithDeprecationWarning
|
@@ -451,7 +444,6 @@
|
|
451
444
|
newKey = ReactElement(
|
452
445
|
oldElement.type,
|
453
446
|
newKey,
|
454
|
-
null,
|
455
447
|
void 0,
|
456
448
|
void 0,
|
457
449
|
oldElement._owner,
|
@@ -906,33 +898,42 @@
|
|
906
898
|
var props = assign({}, element.props),
|
907
899
|
key = element.key,
|
908
900
|
owner = element._owner;
|
909
|
-
if (null != config)
|
910
|
-
|
901
|
+
if (null != config) {
|
902
|
+
var JSCompiler_inline_result;
|
903
|
+
a: {
|
904
|
+
if (
|
905
|
+
hasOwnProperty.call(config, "ref") &&
|
906
|
+
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
907
|
+
config,
|
908
|
+
"ref"
|
909
|
+
).get) &&
|
910
|
+
JSCompiler_inline_result.isReactWarning
|
911
|
+
) {
|
912
|
+
JSCompiler_inline_result = !1;
|
913
|
+
break a;
|
914
|
+
}
|
915
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
916
|
+
}
|
917
|
+
JSCompiler_inline_result && (owner = getOwner());
|
911
918
|
hasValidKey(config) &&
|
912
|
-
(checkKeyStringCoercion(config.key), (key = "" + config.key))
|
913
|
-
config)
|
919
|
+
(checkKeyStringCoercion(config.key), (key = "" + config.key));
|
920
|
+
for (propName in config)
|
914
921
|
!hasOwnProperty.call(config, propName) ||
|
915
922
|
"key" === propName ||
|
916
923
|
"__self" === propName ||
|
917
924
|
"__source" === propName ||
|
918
925
|
("ref" === propName && void 0 === config.ref) ||
|
919
926
|
(props[propName] = config[propName]);
|
927
|
+
}
|
920
928
|
var propName = arguments.length - 2;
|
921
929
|
if (1 === propName) props.children = children;
|
922
930
|
else if (1 < propName) {
|
923
|
-
|
924
|
-
|
925
|
-
|
931
|
+
JSCompiler_inline_result = Array(propName);
|
932
|
+
for (var i = 0; i < propName; i++)
|
933
|
+
JSCompiler_inline_result[i] = arguments[i + 2];
|
934
|
+
props.children = JSCompiler_inline_result;
|
926
935
|
}
|
927
|
-
props = ReactElement(
|
928
|
-
element.type,
|
929
|
-
key,
|
930
|
-
null,
|
931
|
-
void 0,
|
932
|
-
void 0,
|
933
|
-
owner,
|
934
|
-
props
|
935
|
-
);
|
936
|
+
props = ReactElement(element.type, key, void 0, void 0, owner, props);
|
936
937
|
for (key = 2; key < arguments.length; key++)
|
937
938
|
validateChildKeys(arguments[key], props.type);
|
938
939
|
return props;
|
@@ -969,6 +970,7 @@
|
|
969
970
|
i
|
970
971
|
);
|
971
972
|
}
|
973
|
+
var propName;
|
972
974
|
i = {};
|
973
975
|
typeString = null;
|
974
976
|
if (null != config)
|
@@ -979,7 +981,6 @@
|
|
979
981
|
console.warn(
|
980
982
|
"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"
|
981
983
|
)),
|
982
|
-
hasValidRef(config),
|
983
984
|
hasValidKey(config) &&
|
984
985
|
(checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
|
985
986
|
config))
|
@@ -1003,22 +1004,14 @@
|
|
1003
1004
|
if (type && type.defaultProps)
|
1004
1005
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
1005
1006
|
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
1006
|
-
|
1007
|
-
|
1007
|
+
typeString &&
|
1008
|
+
defineKeyPropWarningGetter(
|
1009
|
+
i,
|
1008
1010
|
"function" === typeof type
|
1009
1011
|
? type.displayName || type.name || "Unknown"
|
1010
|
-
: type
|
1011
|
-
|
1012
|
-
|
1013
|
-
return ReactElement(
|
1014
|
-
type,
|
1015
|
-
typeString,
|
1016
|
-
null,
|
1017
|
-
void 0,
|
1018
|
-
void 0,
|
1019
|
-
getOwner(),
|
1020
|
-
i
|
1021
|
-
);
|
1012
|
+
: type
|
1013
|
+
);
|
1014
|
+
return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
|
1022
1015
|
};
|
1023
1016
|
exports.createRef = function () {
|
1024
1017
|
var refObject = { current: null };
|
@@ -1117,5 +1110,5 @@
|
|
1117
1110
|
exports.useMemo = function (create, deps) {
|
1118
1111
|
return resolveDispatcher().useMemo(create, deps);
|
1119
1112
|
};
|
1120
|
-
exports.version = "19.0.0-rc-
|
1113
|
+
exports.version = "19.0.0-rc-66855b96-20241106";
|
1121
1114
|
})();
|
@@ -45,13 +45,13 @@ function getIteratorFn(maybeIterable) {
|
|
45
45
|
}
|
46
46
|
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
47
47
|
assign = Object.assign;
|
48
|
-
function ReactElement(type, key,
|
49
|
-
|
48
|
+
function ReactElement(type, key, self, source, owner, props) {
|
49
|
+
self = props.ref;
|
50
50
|
return {
|
51
51
|
$$typeof: REACT_ELEMENT_TYPE,
|
52
52
|
type: type,
|
53
53
|
key: key,
|
54
|
-
ref: void 0 !==
|
54
|
+
ref: void 0 !== self ? self : null,
|
55
55
|
props: props
|
56
56
|
};
|
57
57
|
}
|
@@ -59,7 +59,6 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
59
59
|
return ReactElement(
|
60
60
|
oldElement.type,
|
61
61
|
newKey,
|
62
|
-
null,
|
63
62
|
void 0,
|
64
63
|
void 0,
|
65
64
|
void 0,
|
@@ -364,7 +363,7 @@ exports.cloneElement = function (element, config, children) {
|
|
364
363
|
childArray[i] = arguments[i + 2];
|
365
364
|
props.children = childArray;
|
366
365
|
}
|
367
|
-
return ReactElement(element.type, key,
|
366
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props);
|
368
367
|
};
|
369
368
|
exports.createElement = function (type, config, children) {
|
370
369
|
var propName,
|
@@ -388,7 +387,7 @@ exports.createElement = function (type, config, children) {
|
|
388
387
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
389
388
|
void 0 === props[propName] &&
|
390
389
|
(props[propName] = childrenLength[propName]);
|
391
|
-
return ReactElement(type, key,
|
390
|
+
return ReactElement(type, key, void 0, void 0, null, props);
|
392
391
|
};
|
393
392
|
exports.createRef = function () {
|
394
393
|
return { current: null };
|
@@ -424,4 +423,4 @@ exports.useId = function () {
|
|
424
423
|
exports.useMemo = function (create, deps) {
|
425
424
|
return ReactSharedInternals.H.useMemo(create, deps);
|
426
425
|
};
|
427
|
-
exports.version = "19.0.0-rc-
|
426
|
+
exports.version = "19.0.0-rc-66855b96-20241106";
|