react 19.0.0-rc.0 → 19.0.0-rc.1

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.
@@ -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, _ref, self, source, owner, props) {
78
- _ref = props.ref;
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 !== _ref ? _ref : null,
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, null, void 0, void 0, owner, props);
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, null, void 0, void 0, null, props);
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
- transition = {};
460
- ReactSharedInternals.T = transition;
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(transition, returnValue);
464
+ onStartTransitionFinish(currentTransition, returnValue);
466
465
  "object" === typeof returnValue &&
467
466
  null !== returnValue &&
468
467
  "function" === typeof returnValue.then &&