react-dom 19.2.0-canary-b94603b9-20250513 → 19.2.0-canary-d85f86cf-20250514

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.
@@ -2305,7 +2305,36 @@ function registerSimpleEvent(domEventName, reactName) {
2305
2305
  topLevelEventsToReactNames.set(domEventName, reactName);
2306
2306
  registerTwoPhaseEvent(reactName, [domEventName]);
2307
2307
  }
2308
- var concurrentQueues = [],
2308
+ var reportGlobalError =
2309
+ "function" === typeof reportError
2310
+ ? reportError
2311
+ : function (error) {
2312
+ if (
2313
+ "object" === typeof window &&
2314
+ "function" === typeof window.ErrorEvent
2315
+ ) {
2316
+ var event = new window.ErrorEvent("error", {
2317
+ bubbles: !0,
2318
+ cancelable: !0,
2319
+ message:
2320
+ "object" === typeof error &&
2321
+ null !== error &&
2322
+ "string" === typeof error.message
2323
+ ? String(error.message)
2324
+ : String(error),
2325
+ error: error
2326
+ });
2327
+ if (!window.dispatchEvent(event)) return;
2328
+ } else if (
2329
+ "object" === typeof process &&
2330
+ "function" === typeof process.emit
2331
+ ) {
2332
+ process.emit("uncaughtException", error);
2333
+ return;
2334
+ }
2335
+ console.error(error);
2336
+ },
2337
+ concurrentQueues = [],
2309
2338
  concurrentQueuesIndex = 0,
2310
2339
  concurrentlyUpdatedLanes = 0;
2311
2340
  function finishQueueingConcurrentUpdates() {
@@ -5802,35 +5831,6 @@ function resolveClassComponentProps(Component, baseProps) {
5802
5831
  }
5803
5832
  return newProps;
5804
5833
  }
5805
- var reportGlobalError =
5806
- "function" === typeof reportError
5807
- ? reportError
5808
- : function (error) {
5809
- if (
5810
- "object" === typeof window &&
5811
- "function" === typeof window.ErrorEvent
5812
- ) {
5813
- var event = new window.ErrorEvent("error", {
5814
- bubbles: !0,
5815
- cancelable: !0,
5816
- message:
5817
- "object" === typeof error &&
5818
- null !== error &&
5819
- "string" === typeof error.message
5820
- ? String(error.message)
5821
- : String(error),
5822
- error: error
5823
- });
5824
- if (!window.dispatchEvent(event)) return;
5825
- } else if (
5826
- "object" === typeof process &&
5827
- "function" === typeof process.emit
5828
- ) {
5829
- process.emit("uncaughtException", error);
5830
- return;
5831
- }
5832
- console.error(error);
5833
- };
5834
5834
  function defaultOnUncaughtError(error) {
5835
5835
  reportGlobalError(error);
5836
5836
  }
@@ -10515,13 +10515,11 @@ var DefaultAsyncDispatcher = {
10515
10515
  nestedUpdateCount = 0,
10516
10516
  rootWithNestedUpdates = null;
10517
10517
  function requestUpdateLane() {
10518
- if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
10519
- return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
10520
- if (null !== ReactSharedInternals.T) {
10521
- var actionScopeLane = currentEntangledLane;
10522
- return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane();
10523
- }
10524
- return resolveUpdatePriority();
10518
+ return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes
10519
+ ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes
10520
+ : null !== ReactSharedInternals.T
10521
+ ? requestTransitionLane()
10522
+ : resolveUpdatePriority();
10525
10523
  }
10526
10524
  function requestDeferredLane() {
10527
10525
  0 === workInProgressDeferredLane &&
@@ -11825,9 +11823,8 @@ function processRootScheduleInMicrotask() {
11825
11823
  mightHavePendingSyncWork = didScheduleMicrotask = !1;
11826
11824
  var syncTransitionLanes = 0;
11827
11825
  0 !== currentEventTransitionLane &&
11828
- (shouldAttemptEagerTransition() &&
11829
- (syncTransitionLanes = currentEventTransitionLane),
11830
- (currentEventTransitionLane = 0));
11826
+ shouldAttemptEagerTransition() &&
11827
+ (syncTransitionLanes = currentEventTransitionLane);
11831
11828
  for (
11832
11829
  var currentTime = now(), prev = null, root = firstScheduledRoot;
11833
11830
  null !== root;
@@ -11847,6 +11844,7 @@ function processRootScheduleInMicrotask() {
11847
11844
  }
11848
11845
  (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus) ||
11849
11846
  flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);
11847
+ 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
11850
11848
  }
11851
11849
  function scheduleTaskForRootDuringMicrotask(root, currentTime) {
11852
11850
  for (
@@ -11954,8 +11952,11 @@ function scheduleImmediateRootScheduleTask() {
11954
11952
  });
11955
11953
  }
11956
11954
  function requestTransitionLane() {
11957
- 0 === currentEventTransitionLane &&
11958
- (currentEventTransitionLane = claimNextTransitionLane());
11955
+ if (0 === currentEventTransitionLane) {
11956
+ var actionScopeLane = currentEntangledLane;
11957
+ currentEventTransitionLane =
11958
+ 0 !== actionScopeLane ? actionScopeLane : claimNextTransitionLane();
11959
+ }
11959
11960
  return currentEventTransitionLane;
11960
11961
  }
11961
11962
  function coerceFormActionProp(actionProp) {
@@ -12053,20 +12054,20 @@ function extractEvents$1(
12053
12054
  }
12054
12055
  }
12055
12056
  for (
12056
- var i$jscomp$inline_1590 = 0;
12057
- i$jscomp$inline_1590 < simpleEventPluginEvents.length;
12058
- i$jscomp$inline_1590++
12057
+ var i$jscomp$inline_1591 = 0;
12058
+ i$jscomp$inline_1591 < simpleEventPluginEvents.length;
12059
+ i$jscomp$inline_1591++
12059
12060
  ) {
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);
12061
+ var eventName$jscomp$inline_1592 =
12062
+ simpleEventPluginEvents[i$jscomp$inline_1591],
12063
+ domEventName$jscomp$inline_1593 =
12064
+ eventName$jscomp$inline_1592.toLowerCase(),
12065
+ capitalizedEvent$jscomp$inline_1594 =
12066
+ eventName$jscomp$inline_1592[0].toUpperCase() +
12067
+ eventName$jscomp$inline_1592.slice(1);
12067
12068
  registerSimpleEvent(
12068
- domEventName$jscomp$inline_1592,
12069
- "on" + capitalizedEvent$jscomp$inline_1593
12069
+ domEventName$jscomp$inline_1593,
12070
+ "on" + capitalizedEvent$jscomp$inline_1594
12070
12071
  );
12071
12072
  }
12072
12073
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -15597,7 +15598,50 @@ function retryIfBlockedOn(unblocked) {
15597
15598
  }
15598
15599
  }
15599
15600
  function defaultOnDefaultTransitionIndicator() {
15600
- return function () {};
15601
+ function handleNavigate(event) {
15602
+ event.canIntercept &&
15603
+ "react-transition" === event.info &&
15604
+ event.intercept({
15605
+ handler: function () {
15606
+ return new Promise(function (resolve) {
15607
+ return (pendingResolve = resolve);
15608
+ });
15609
+ },
15610
+ focusReset: "manual",
15611
+ scroll: "manual"
15612
+ });
15613
+ }
15614
+ function handleNavigateComplete() {
15615
+ null !== pendingResolve && (pendingResolve(), (pendingResolve = null));
15616
+ isCancelled || startFakeNavigation();
15617
+ }
15618
+ function startFakeNavigation() {
15619
+ if (!isCancelled && !navigation.transition) {
15620
+ var currentEntry = navigation.currentEntry;
15621
+ currentEntry &&
15622
+ null != currentEntry.url &&
15623
+ navigation.navigate(currentEntry.url, {
15624
+ state: currentEntry.getState(),
15625
+ info: "react-transition",
15626
+ history: "replace"
15627
+ });
15628
+ }
15629
+ }
15630
+ if ("object" === typeof navigation) {
15631
+ var isCancelled = !1,
15632
+ pendingResolve = null;
15633
+ navigation.addEventListener("navigate", handleNavigate);
15634
+ navigation.addEventListener("navigatesuccess", handleNavigateComplete);
15635
+ navigation.addEventListener("navigateerror", handleNavigateComplete);
15636
+ setTimeout(startFakeNavigation, 100);
15637
+ return function () {
15638
+ isCancelled = !0;
15639
+ navigation.removeEventListener("navigate", handleNavigate);
15640
+ navigation.removeEventListener("navigatesuccess", handleNavigateComplete);
15641
+ navigation.removeEventListener("navigateerror", handleNavigateComplete);
15642
+ null !== pendingResolve && (pendingResolve(), (pendingResolve = null));
15643
+ };
15644
+ }
15601
15645
  }
15602
15646
  function ReactDOMRoot(internalRoot) {
15603
15647
  this._internalRoot = internalRoot;
@@ -15639,16 +15683,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
15639
15683
  0 === i && attemptExplicitHydrationTarget(target);
15640
15684
  }
15641
15685
  };
15642
- var isomorphicReactPackageVersion$jscomp$inline_1849 = React.version;
15686
+ var isomorphicReactPackageVersion$jscomp$inline_1851 = React.version;
15643
15687
  if (
15644
- "19.2.0-canary-b94603b9-20250513" !==
15645
- isomorphicReactPackageVersion$jscomp$inline_1849
15688
+ "19.2.0-canary-d85f86cf-20250514" !==
15689
+ isomorphicReactPackageVersion$jscomp$inline_1851
15646
15690
  )
15647
15691
  throw Error(
15648
15692
  formatProdErrorMessage(
15649
15693
  527,
15650
- isomorphicReactPackageVersion$jscomp$inline_1849,
15651
- "19.2.0-canary-b94603b9-20250513"
15694
+ isomorphicReactPackageVersion$jscomp$inline_1851,
15695
+ "19.2.0-canary-d85f86cf-20250514"
15652
15696
  )
15653
15697
  );
15654
15698
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -15668,24 +15712,24 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
15668
15712
  null === componentOrElement ? null : componentOrElement.stateNode;
15669
15713
  return componentOrElement;
15670
15714
  };
15671
- var internals$jscomp$inline_2342 = {
15715
+ var internals$jscomp$inline_2344 = {
15672
15716
  bundleType: 0,
15673
- version: "19.2.0-canary-b94603b9-20250513",
15717
+ version: "19.2.0-canary-d85f86cf-20250514",
15674
15718
  rendererPackageName: "react-dom",
15675
15719
  currentDispatcherRef: ReactSharedInternals,
15676
- reconcilerVersion: "19.2.0-canary-b94603b9-20250513"
15720
+ reconcilerVersion: "19.2.0-canary-d85f86cf-20250514"
15677
15721
  };
15678
15722
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
15679
- var hook$jscomp$inline_2343 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15723
+ var hook$jscomp$inline_2345 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
15680
15724
  if (
15681
- !hook$jscomp$inline_2343.isDisabled &&
15682
- hook$jscomp$inline_2343.supportsFiber
15725
+ !hook$jscomp$inline_2345.isDisabled &&
15726
+ hook$jscomp$inline_2345.supportsFiber
15683
15727
  )
15684
15728
  try {
15685
- (rendererID = hook$jscomp$inline_2343.inject(
15686
- internals$jscomp$inline_2342
15729
+ (rendererID = hook$jscomp$inline_2345.inject(
15730
+ internals$jscomp$inline_2344
15687
15731
  )),
15688
- (injectedHook = hook$jscomp$inline_2343);
15732
+ (injectedHook = hook$jscomp$inline_2345);
15689
15733
  } catch (err) {}
15690
15734
  }
15691
15735
  exports.createRoot = function (container, options) {
@@ -15771,4 +15815,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
15771
15815
  listenToAllSupportedEvents(container);
15772
15816
  return new ReactDOMHydrationRoot(initialChildren);
15773
15817
  };
15774
- exports.version = "19.2.0-canary-b94603b9-20250513";
15818
+ exports.version = "19.2.0-canary-d85f86cf-20250514";