react-dom 19.2.0-canary-b9cfa0d3-20250505 → 19.2.0-canary-0ff1d13b-20250507

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.
@@ -1018,13 +1018,11 @@ function isCheckable(elem) {
1018
1018
  ("checkbox" === type || "radio" === type)
1019
1019
  );
1020
1020
  }
1021
- function trackValueOnNode(node) {
1022
- var valueField = isCheckable(node) ? "checked" : "value",
1023
- descriptor = Object.getOwnPropertyDescriptor(
1024
- node.constructor.prototype,
1025
- valueField
1026
- ),
1027
- currentValue = "" + node[valueField];
1021
+ function trackValueOnNode(node, valueField, currentValue) {
1022
+ var descriptor = Object.getOwnPropertyDescriptor(
1023
+ node.constructor.prototype,
1024
+ valueField
1025
+ );
1028
1026
  if (
1029
1027
  !node.hasOwnProperty(valueField) &&
1030
1028
  "undefined" !== typeof descriptor &&
@@ -1061,7 +1059,14 @@ function trackValueOnNode(node) {
1061
1059
  }
1062
1060
  }
1063
1061
  function track(node) {
1064
- node._valueTracker || (node._valueTracker = trackValueOnNode(node));
1062
+ if (!node._valueTracker) {
1063
+ var valueField = isCheckable(node) ? "checked" : "value";
1064
+ node._valueTracker = trackValueOnNode(
1065
+ node,
1066
+ valueField,
1067
+ "" + node[valueField]
1068
+ );
1069
+ }
1065
1070
  }
1066
1071
  function updateValueIfChanged(node) {
1067
1072
  if (!node) return !1;
@@ -1161,8 +1166,10 @@ function initInput(
1161
1166
  ("submit" !== type && "reset" !== type) ||
1162
1167
  (void 0 !== value && null !== value)
1163
1168
  )
1164
- )
1169
+ ) {
1170
+ track(element);
1165
1171
  return;
1172
+ }
1166
1173
  defaultValue =
1167
1174
  null != defaultValue ? "" + getToStringValue(defaultValue) : "";
1168
1175
  value = null != value ? "" + getToStringValue(value) : defaultValue;
@@ -1179,6 +1186,7 @@ function initInput(
1179
1186
  "symbol" !== typeof name &&
1180
1187
  "boolean" !== typeof name &&
1181
1188
  (element.name = name);
1189
+ track(element);
1182
1190
  }
1183
1191
  function setDefaultValue(node, type, value) {
1184
1192
  ("number" === type && getActiveElement(node.ownerDocument) === node) ||
@@ -1242,6 +1250,7 @@ function initTextarea(element, value, defaultValue, children) {
1242
1250
  "" !== children &&
1243
1251
  null !== children &&
1244
1252
  (element.value = children);
1253
+ track(element);
1245
1254
  }
1246
1255
  function setTextContent(node, text) {
1247
1256
  if (text) {
@@ -2035,19 +2044,19 @@ function getTargetInstForChangeEvent(domEventName, targetInst) {
2035
2044
  }
2036
2045
  var isInputEventSupported = !1;
2037
2046
  if (canUseDOM) {
2038
- var JSCompiler_inline_result$jscomp$293;
2047
+ var JSCompiler_inline_result$jscomp$294;
2039
2048
  if (canUseDOM) {
2040
- var isSupported$jscomp$inline_433 = "oninput" in document;
2041
- if (!isSupported$jscomp$inline_433) {
2042
- var element$jscomp$inline_434 = document.createElement("div");
2043
- element$jscomp$inline_434.setAttribute("oninput", "return;");
2044
- isSupported$jscomp$inline_433 =
2045
- "function" === typeof element$jscomp$inline_434.oninput;
2049
+ var isSupported$jscomp$inline_434 = "oninput" in document;
2050
+ if (!isSupported$jscomp$inline_434) {
2051
+ var element$jscomp$inline_435 = document.createElement("div");
2052
+ element$jscomp$inline_435.setAttribute("oninput", "return;");
2053
+ isSupported$jscomp$inline_434 =
2054
+ "function" === typeof element$jscomp$inline_435.oninput;
2046
2055
  }
2047
- JSCompiler_inline_result$jscomp$293 = isSupported$jscomp$inline_433;
2048
- } else JSCompiler_inline_result$jscomp$293 = !1;
2056
+ JSCompiler_inline_result$jscomp$294 = isSupported$jscomp$inline_434;
2057
+ } else JSCompiler_inline_result$jscomp$294 = !1;
2049
2058
  isInputEventSupported =
2050
- JSCompiler_inline_result$jscomp$293 &&
2059
+ JSCompiler_inline_result$jscomp$294 &&
2051
2060
  (!document.documentMode || 9 < document.documentMode);
2052
2061
  }
2053
2062
  function stopWatchingForValueChange() {
@@ -2295,25 +2304,6 @@ function registerSimpleEvent(domEventName, reactName) {
2295
2304
  topLevelEventsToReactNames.set(domEventName, reactName);
2296
2305
  registerTwoPhaseEvent(reactName, [domEventName]);
2297
2306
  }
2298
- var CapturedStacks = new WeakMap();
2299
- function createCapturedValueAtFiber(value, source) {
2300
- if ("object" === typeof value && null !== value) {
2301
- var existing = CapturedStacks.get(value);
2302
- if (void 0 !== existing) return existing;
2303
- source = {
2304
- value: value,
2305
- source: source,
2306
- stack: getStackByFiberInDevAndProd(source)
2307
- };
2308
- CapturedStacks.set(value, source);
2309
- return source;
2310
- }
2311
- return {
2312
- value: value,
2313
- source: source,
2314
- stack: getStackByFiberInDevAndProd(source)
2315
- };
2316
- }
2317
2307
  var concurrentQueues = [],
2318
2308
  concurrentQueuesIndex = 0,
2319
2309
  concurrentlyUpdatedLanes = 0;
@@ -2619,6 +2609,25 @@ function createFiberFromPortal(portal, mode, lanes) {
2619
2609
  };
2620
2610
  return mode;
2621
2611
  }
2612
+ var CapturedStacks = new WeakMap();
2613
+ function createCapturedValueAtFiber(value, source) {
2614
+ if ("object" === typeof value && null !== value) {
2615
+ var existing = CapturedStacks.get(value);
2616
+ if (void 0 !== existing) return existing;
2617
+ source = {
2618
+ value: value,
2619
+ source: source,
2620
+ stack: getStackByFiberInDevAndProd(source)
2621
+ };
2622
+ CapturedStacks.set(value, source);
2623
+ return source;
2624
+ }
2625
+ return {
2626
+ value: value,
2627
+ source: source,
2628
+ stack: getStackByFiberInDevAndProd(source)
2629
+ };
2630
+ }
2622
2631
  var forkStack = [],
2623
2632
  forkStackIndex = 0,
2624
2633
  treeForkProvider = null,
@@ -2753,15 +2762,13 @@ function prepareToHydrateHostInstance(fiber) {
2753
2762
  props.name,
2754
2763
  !0
2755
2764
  );
2756
- track(instance);
2757
2765
  break;
2758
2766
  case "select":
2759
2767
  listenToNonDelegatedEvent("invalid", instance);
2760
2768
  break;
2761
2769
  case "textarea":
2762
2770
  listenToNonDelegatedEvent("invalid", instance),
2763
- initTextarea(instance, props.value, props.defaultValue, props.children),
2764
- track(instance);
2771
+ initTextarea(instance, props.value, props.defaultValue, props.children);
2765
2772
  }
2766
2773
  type = props.children;
2767
2774
  ("string" !== typeof type &&
@@ -12046,20 +12053,20 @@ function extractEvents$1(
12046
12053
  }
12047
12054
  }
12048
12055
  for (
12049
- var i$jscomp$inline_1573 = 0;
12050
- i$jscomp$inline_1573 < simpleEventPluginEvents.length;
12051
- i$jscomp$inline_1573++
12056
+ var i$jscomp$inline_1590 = 0;
12057
+ i$jscomp$inline_1590 < simpleEventPluginEvents.length;
12058
+ i$jscomp$inline_1590++
12052
12059
  ) {
12053
- var eventName$jscomp$inline_1574 =
12054
- simpleEventPluginEvents[i$jscomp$inline_1573],
12055
- domEventName$jscomp$inline_1575 =
12056
- eventName$jscomp$inline_1574.toLowerCase(),
12057
- capitalizedEvent$jscomp$inline_1576 =
12058
- eventName$jscomp$inline_1574[0].toUpperCase() +
12059
- eventName$jscomp$inline_1574.slice(1);
12060
+ var eventName$jscomp$inline_1591 =
12061
+ simpleEventPluginEvents[i$jscomp$inline_1590],
12062
+ domEventName$jscomp$inline_1592 =
12063
+ eventName$jscomp$inline_1591.toLowerCase(),
12064
+ capitalizedEvent$jscomp$inline_1593 =
12065
+ eventName$jscomp$inline_1591[0].toUpperCase() +
12066
+ eventName$jscomp$inline_1591.slice(1);
12060
12067
  registerSimpleEvent(
12061
- domEventName$jscomp$inline_1575,
12062
- "on" + capitalizedEvent$jscomp$inline_1576
12068
+ domEventName$jscomp$inline_1592,
12069
+ "on" + capitalizedEvent$jscomp$inline_1593
12063
12070
  );
12064
12071
  }
12065
12072
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -12509,36 +12516,34 @@ function dispatchEventForPluginEventSystem(
12509
12516
  accumulateTargetOnly = _instance;
12510
12517
  if (SyntheticEventCtor && reactEventType)
12511
12518
  b: {
12512
- inCapturePhase = SyntheticEventCtor;
12513
- reactEventName = reactEventType;
12514
- instance = 0;
12515
- for (
12516
- lastHostComponent = inCapturePhase;
12517
- lastHostComponent;
12518
- lastHostComponent = getParent(lastHostComponent)
12519
- )
12520
- instance++;
12519
+ inCapturePhase = getParent;
12520
+ reactEventName = SyntheticEventCtor;
12521
+ instance = reactEventType;
12521
12522
  lastHostComponent = 0;
12522
12523
  for (
12523
12524
  _instance = reactEventName;
12524
12525
  _instance;
12525
- _instance = getParent(_instance)
12526
+ _instance = inCapturePhase(_instance)
12526
12527
  )
12527
12528
  lastHostComponent++;
12528
- for (; 0 < instance - lastHostComponent; )
12529
- (inCapturePhase = getParent(inCapturePhase)), instance--;
12530
- for (; 0 < lastHostComponent - instance; )
12531
- (reactEventName = getParent(reactEventName)),
12529
+ _instance = 0;
12530
+ for (var tempB = instance; tempB; tempB = inCapturePhase(tempB))
12531
+ _instance++;
12532
+ for (; 0 < lastHostComponent - _instance; )
12533
+ (reactEventName = inCapturePhase(reactEventName)),
12532
12534
  lastHostComponent--;
12533
- for (; instance--; ) {
12535
+ for (; 0 < _instance - lastHostComponent; )
12536
+ (instance = inCapturePhase(instance)), _instance--;
12537
+ for (; lastHostComponent--; ) {
12534
12538
  if (
12535
- inCapturePhase === reactEventName ||
12536
- (null !== reactEventName &&
12537
- inCapturePhase === reactEventName.alternate)
12538
- )
12539
+ reactEventName === instance ||
12540
+ (null !== instance && reactEventName === instance.alternate)
12541
+ ) {
12542
+ inCapturePhase = reactEventName;
12539
12543
  break b;
12540
- inCapturePhase = getParent(inCapturePhase);
12541
- reactEventName = getParent(reactEventName);
12544
+ }
12545
+ reactEventName = inCapturePhase(reactEventName);
12546
+ instance = inCapturePhase(instance);
12542
12547
  }
12543
12548
  inCapturePhase = null;
12544
12549
  }
@@ -13276,7 +13281,6 @@ function setInitialProperties(domElement, tag, props) {
13276
13281
  hasSrcSet,
13277
13282
  !1
13278
13283
  );
13279
- track(domElement);
13280
13284
  return;
13281
13285
  case "select":
13282
13286
  listenToNonDelegatedEvent("invalid", domElement);
@@ -13330,7 +13334,6 @@ function setInitialProperties(domElement, tag, props) {
13330
13334
  setProp(domElement, tag, propValue, defaultValue, props, null);
13331
13335
  }
13332
13336
  initTextarea(domElement, hasSrc, hasSrcSet, propKey);
13333
- track(domElement);
13334
13337
  return;
13335
13338
  case "option":
13336
13339
  for (checked in props)
@@ -15633,16 +15636,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15633
15636
  0 === i && attemptExplicitHydrationTarget(target);
15634
15637
  }
15635
15638
  };
15636
- var isomorphicReactPackageVersion$jscomp$inline_1829 = React.version;
15639
+ var isomorphicReactPackageVersion$jscomp$inline_1847 = React.version;
15637
15640
  if (
15638
- "19.2.0-canary-b9cfa0d3-20250505" !==
15639
- isomorphicReactPackageVersion$jscomp$inline_1829
15641
+ "19.2.0-canary-0ff1d13b-20250507" !==
15642
+ isomorphicReactPackageVersion$jscomp$inline_1847
15640
15643
  )
15641
15644
  throw Error(
15642
15645
  formatProdErrorMessage(
15643
15646
  527,
15644
- isomorphicReactPackageVersion$jscomp$inline_1829,
15645
- "19.2.0-canary-b9cfa0d3-20250505"
15647
+ isomorphicReactPackageVersion$jscomp$inline_1847,
15648
+ "19.2.0-canary-0ff1d13b-20250507"
15646
15649
  )
15647
15650
  );
15648
15651
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15662,24 +15665,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15662
15665
  null === componentOrElement ? null : componentOrElement.stateNode;
15663
15666
  return componentOrElement;
15664
15667
  };
15665
- var internals$jscomp$inline_2318 = {
15668
+ var internals$jscomp$inline_2340 = {
15666
15669
  bundleType: 0,
15667
- version: "19.2.0-canary-b9cfa0d3-20250505",
15670
+ version: "19.2.0-canary-0ff1d13b-20250507",
15668
15671
  rendererPackageName: "react-dom",
15669
15672
  currentDispatcherRef: ReactSharedInternals,
15670
- reconcilerVersion: "19.2.0-canary-b9cfa0d3-20250505"
15673
+ reconcilerVersion: "19.2.0-canary-0ff1d13b-20250507"
15671
15674
  };
15672
15675
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15673
- var hook$jscomp$inline_2319 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15676
+ var hook$jscomp$inline_2341 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15674
15677
  if (
15675
- !hook$jscomp$inline_2319.isDisabled &&
15676
- hook$jscomp$inline_2319.supportsFiber
15678
+ !hook$jscomp$inline_2341.isDisabled &&
15679
+ hook$jscomp$inline_2341.supportsFiber
15677
15680
  )
15678
15681
  try {
15679
- (rendererID = hook$jscomp$inline_2319.inject(
15680
- internals$jscomp$inline_2318
15682
+ (rendererID = hook$jscomp$inline_2341.inject(
15683
+ internals$jscomp$inline_2340
15681
15684
  )),
15682
- (injectedHook = hook$jscomp$inline_2319);
15685
+ (injectedHook = hook$jscomp$inline_2341);
15683
15686
  } catch (err) {}
15684
15687
  }
15685
15688
  exports.createRoot = function (container, options) {
@@ -15771,4 +15774,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15771
15774
  listenToAllSupportedEvents(container);
15772
15775
  return new ReactDOMHydrationRoot(initialChildren);
15773
15776
  };
15774
- exports.version = "19.2.0-canary-b9cfa0d3-20250505";
15777
+ exports.version = "19.2.0-canary-0ff1d13b-20250507";