react 19.0.0-rc.0 → 19.0.0
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-compiler-runtime.development.js +13 -84
- package/cjs/react-jsx-dev-runtime.development.js +618 -1226
- package/cjs/react-jsx-dev-runtime.react-server.development.js +628 -1261
- package/cjs/react-jsx-runtime.development.js +614 -1244
- package/cjs/react-jsx-runtime.react-server.development.js +628 -1261
- package/cjs/react.development.js +1472 -2759
- package/cjs/react.production.js +8 -9
- package/cjs/react.react-server.development.js +1059 -2133
- package/cjs/react.react-server.production.js +7 -60
- package/package.json +1 -1
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 };
|
@@ -456,13 +455,13 @@ exports.memo = function (type, compare) {
|
|
456
455
|
};
|
457
456
|
exports.startTransition = function (scope) {
|
458
457
|
var prevTransition = ReactSharedInternals.T,
|
459
|
-
|
460
|
-
ReactSharedInternals.T =
|
458
|
+
currentTransition = {};
|
459
|
+
ReactSharedInternals.T = currentTransition;
|
461
460
|
try {
|
462
461
|
var returnValue = scope(),
|
463
462
|
onStartTransitionFinish = ReactSharedInternals.S;
|
464
463
|
null !== onStartTransitionFinish &&
|
465
|
-
onStartTransitionFinish(
|
464
|
+
onStartTransitionFinish(currentTransition, returnValue);
|
466
465
|
"object" === typeof returnValue &&
|
467
466
|
null !== returnValue &&
|
468
467
|
"function" === typeof returnValue.then &&
|