react-dom 19.2.0-canary-b94603b9-20250513 → 19.2.0-canary-4a45ba92-20250515

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.
@@ -2387,7 +2387,36 @@ function registerSimpleEvent(domEventName, reactName) {
2387
2387
  topLevelEventsToReactNames.set(domEventName, reactName);
2388
2388
  registerTwoPhaseEvent(reactName, [domEventName]);
2389
2389
  }
2390
- var concurrentQueues = [],
2390
+ var reportGlobalError =
2391
+ "function" === typeof reportError
2392
+ ? reportError
2393
+ : function (error) {
2394
+ if (
2395
+ "object" === typeof window &&
2396
+ "function" === typeof window.ErrorEvent
2397
+ ) {
2398
+ var event = new window.ErrorEvent("error", {
2399
+ bubbles: !0,
2400
+ cancelable: !0,
2401
+ message:
2402
+ "object" === typeof error &&
2403
+ null !== error &&
2404
+ "string" === typeof error.message
2405
+ ? String(error.message)
2406
+ : String(error),
2407
+ error: error
2408
+ });
2409
+ if (!window.dispatchEvent(event)) return;
2410
+ } else if (
2411
+ "object" === typeof process &&
2412
+ "function" === typeof process.emit
2413
+ ) {
2414
+ process.emit("uncaughtException", error);
2415
+ return;
2416
+ }
2417
+ console.error(error);
2418
+ },
2419
+ concurrentQueues = [],
2391
2420
  concurrentQueuesIndex = 0,
2392
2421
  concurrentlyUpdatedLanes = 0;
2393
2422
  function finishQueueingConcurrentUpdates() {
@@ -5969,35 +5998,6 @@ function resolveClassComponentProps(Component, baseProps) {
5969
5998
  }
5970
5999
  return newProps;
5971
6000
  }
5972
- var reportGlobalError =
5973
- "function" === typeof reportError
5974
- ? reportError
5975
- : function (error) {
5976
- if (
5977
- "object" === typeof window &&
5978
- "function" === typeof window.ErrorEvent
5979
- ) {
5980
- var event = new window.ErrorEvent("error", {
5981
- bubbles: !0,
5982
- cancelable: !0,
5983
- message:
5984
- "object" === typeof error &&
5985
- null !== error &&
5986
- "string" === typeof error.message
5987
- ? String(error.message)
5988
- : String(error),
5989
- error: error
5990
- });
5991
- if (!window.dispatchEvent(event)) return;
5992
- } else if (
5993
- "object" === typeof process &&
5994
- "function" === typeof process.emit
5995
- ) {
5996
- process.emit("uncaughtException", error);
5997
- return;
5998
- }
5999
- console.error(error);
6000
- };
6001
6001
  function defaultOnUncaughtError(error) {
6002
6002
  reportGlobalError(error);
6003
6003
  }
@@ -11056,13 +11056,11 @@ var DefaultAsyncDispatcher = {
11056
11056
  nestedUpdateCount = 0,
11057
11057
  rootWithNestedUpdates = null;
11058
11058
  function requestUpdateLane() {
11059
- if (0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes)
11060
- return workInProgressRootRenderLanes & -workInProgressRootRenderLanes;
11061
- if (null !== ReactSharedInternals.T) {
11062
- var actionScopeLane = currentEntangledLane;
11063
- return 0 !== actionScopeLane ? actionScopeLane : requestTransitionLane();
11064
- }
11065
- return resolveUpdatePriority();
11059
+ return 0 !== (executionContext & 2) && 0 !== workInProgressRootRenderLanes
11060
+ ? workInProgressRootRenderLanes & -workInProgressRootRenderLanes
11061
+ : null !== ReactSharedInternals.T
11062
+ ? requestTransitionLane()
11063
+ : resolveUpdatePriority();
11066
11064
  }
11067
11065
  function requestDeferredLane() {
11068
11066
  0 === workInProgressDeferredLane &&
@@ -12504,9 +12502,8 @@ function processRootScheduleInMicrotask() {
12504
12502
  mightHavePendingSyncWork = didScheduleMicrotask = !1;
12505
12503
  var syncTransitionLanes = 0;
12506
12504
  0 !== currentEventTransitionLane &&
12507
- (shouldAttemptEagerTransition() &&
12508
- (syncTransitionLanes = currentEventTransitionLane),
12509
- (currentEventTransitionLane = 0));
12505
+ shouldAttemptEagerTransition() &&
12506
+ (syncTransitionLanes = currentEventTransitionLane);
12510
12507
  for (
12511
12508
  var currentTime = now$1(), prev = null, root = firstScheduledRoot;
12512
12509
  null !== root;
@@ -12526,6 +12523,7 @@ function processRootScheduleInMicrotask() {
12526
12523
  }
12527
12524
  (0 !== pendingEffectsStatus && 5 !== pendingEffectsStatus) ||
12528
12525
  flushSyncWorkAcrossRoots_impl(syncTransitionLanes, !1);
12526
+ 0 !== currentEventTransitionLane && (currentEventTransitionLane = 0);
12529
12527
  }
12530
12528
  function scheduleTaskForRootDuringMicrotask(root, currentTime) {
12531
12529
  for (
@@ -12636,8 +12634,11 @@ function scheduleImmediateRootScheduleTask() {
12636
12634
  });
12637
12635
  }
12638
12636
  function requestTransitionLane() {
12639
- 0 === currentEventTransitionLane &&
12640
- (currentEventTransitionLane = claimNextTransitionLane());
12637
+ if (0 === currentEventTransitionLane) {
12638
+ var actionScopeLane = currentEntangledLane;
12639
+ currentEventTransitionLane =
12640
+ 0 !== actionScopeLane ? actionScopeLane : claimNextTransitionLane();
12641
+ }
12641
12642
  return currentEventTransitionLane;
12642
12643
  }
12643
12644
  function coerceFormActionProp(actionProp) {
@@ -12735,20 +12736,20 @@ function extractEvents$1(
12735
12736
  }
12736
12737
  }
12737
12738
  for (
12738
- var i$jscomp$inline_1692 = 0;
12739
- i$jscomp$inline_1692 < simpleEventPluginEvents.length;
12740
- i$jscomp$inline_1692++
12739
+ var i$jscomp$inline_1693 = 0;
12740
+ i$jscomp$inline_1693 < simpleEventPluginEvents.length;
12741
+ i$jscomp$inline_1693++
12741
12742
  ) {
12742
- var eventName$jscomp$inline_1693 =
12743
- simpleEventPluginEvents[i$jscomp$inline_1692],
12744
- domEventName$jscomp$inline_1694 =
12745
- eventName$jscomp$inline_1693.toLowerCase(),
12746
- capitalizedEvent$jscomp$inline_1695 =
12747
- eventName$jscomp$inline_1693[0].toUpperCase() +
12748
- eventName$jscomp$inline_1693.slice(1);
12743
+ var eventName$jscomp$inline_1694 =
12744
+ simpleEventPluginEvents[i$jscomp$inline_1693],
12745
+ domEventName$jscomp$inline_1695 =
12746
+ eventName$jscomp$inline_1694.toLowerCase(),
12747
+ capitalizedEvent$jscomp$inline_1696 =
12748
+ eventName$jscomp$inline_1694[0].toUpperCase() +
12749
+ eventName$jscomp$inline_1694.slice(1);
12749
12750
  registerSimpleEvent(
12750
- domEventName$jscomp$inline_1694,
12751
- "on" + capitalizedEvent$jscomp$inline_1695
12751
+ domEventName$jscomp$inline_1695,
12752
+ "on" + capitalizedEvent$jscomp$inline_1696
12752
12753
  );
12753
12754
  }
12754
12755
  registerSimpleEvent(ANIMATION_END, "onAnimationEnd");
@@ -16298,7 +16299,50 @@ function retryIfBlockedOn(unblocked) {
16298
16299
  }
16299
16300
  }
16300
16301
  function defaultOnDefaultTransitionIndicator() {
16301
- return function () {};
16302
+ function handleNavigate(event) {
16303
+ event.canIntercept &&
16304
+ "react-transition" === event.info &&
16305
+ event.intercept({
16306
+ handler: function () {
16307
+ return new Promise(function (resolve) {
16308
+ return (pendingResolve = resolve);
16309
+ });
16310
+ },
16311
+ focusReset: "manual",
16312
+ scroll: "manual"
16313
+ });
16314
+ }
16315
+ function handleNavigateComplete() {
16316
+ null !== pendingResolve && (pendingResolve(), (pendingResolve = null));
16317
+ isCancelled || startFakeNavigation();
16318
+ }
16319
+ function startFakeNavigation() {
16320
+ if (!isCancelled && !navigation.transition) {
16321
+ var currentEntry = navigation.currentEntry;
16322
+ currentEntry &&
16323
+ null != currentEntry.url &&
16324
+ navigation.navigate(currentEntry.url, {
16325
+ state: currentEntry.getState(),
16326
+ info: "react-transition",
16327
+ history: "replace"
16328
+ });
16329
+ }
16330
+ }
16331
+ if ("object" === typeof navigation) {
16332
+ var isCancelled = !1,
16333
+ pendingResolve = null;
16334
+ navigation.addEventListener("navigate", handleNavigate);
16335
+ navigation.addEventListener("navigatesuccess", handleNavigateComplete);
16336
+ navigation.addEventListener("navigateerror", handleNavigateComplete);
16337
+ setTimeout(startFakeNavigation, 100);
16338
+ return function () {
16339
+ isCancelled = !0;
16340
+ navigation.removeEventListener("navigate", handleNavigate);
16341
+ navigation.removeEventListener("navigatesuccess", handleNavigateComplete);
16342
+ navigation.removeEventListener("navigateerror", handleNavigateComplete);
16343
+ null !== pendingResolve && (pendingResolve(), (pendingResolve = null));
16344
+ };
16345
+ }
16302
16346
  }
16303
16347
  function ReactDOMRoot(internalRoot) {
16304
16348
  this._internalRoot = internalRoot;
@@ -16340,16 +16384,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
16340
16384
  0 === i && attemptExplicitHydrationTarget(target);
16341
16385
  }
16342
16386
  };
16343
- var isomorphicReactPackageVersion$jscomp$inline_1953 = React.version;
16387
+ var isomorphicReactPackageVersion$jscomp$inline_1955 = React.version;
16344
16388
  if (
16345
- "19.2.0-canary-b94603b9-20250513" !==
16346
- isomorphicReactPackageVersion$jscomp$inline_1953
16389
+ "19.2.0-canary-4a45ba92-20250515" !==
16390
+ isomorphicReactPackageVersion$jscomp$inline_1955
16347
16391
  )
16348
16392
  throw Error(
16349
16393
  formatProdErrorMessage(
16350
16394
  527,
16351
- isomorphicReactPackageVersion$jscomp$inline_1953,
16352
- "19.2.0-canary-b94603b9-20250513"
16395
+ isomorphicReactPackageVersion$jscomp$inline_1955,
16396
+ "19.2.0-canary-4a45ba92-20250515"
16353
16397
  )
16354
16398
  );
16355
16399
  ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -16369,12 +16413,12 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
16369
16413
  null === componentOrElement ? null : componentOrElement.stateNode;
16370
16414
  return componentOrElement;
16371
16415
  };
16372
- var internals$jscomp$inline_1960 = {
16416
+ var internals$jscomp$inline_1962 = {
16373
16417
  bundleType: 0,
16374
- version: "19.2.0-canary-b94603b9-20250513",
16418
+ version: "19.2.0-canary-4a45ba92-20250515",
16375
16419
  rendererPackageName: "react-dom",
16376
16420
  currentDispatcherRef: ReactSharedInternals,
16377
- reconcilerVersion: "19.2.0-canary-b94603b9-20250513",
16421
+ reconcilerVersion: "19.2.0-canary-4a45ba92-20250515",
16378
16422
  getLaneLabelMap: function () {
16379
16423
  for (
16380
16424
  var map = new Map(), lane = 1, index$293 = 0;
@@ -16392,16 +16436,16 @@ var internals$jscomp$inline_1960 = {
16392
16436
  }
16393
16437
  };
16394
16438
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
16395
- var hook$jscomp$inline_2414 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16439
+ var hook$jscomp$inline_2416 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
16396
16440
  if (
16397
- !hook$jscomp$inline_2414.isDisabled &&
16398
- hook$jscomp$inline_2414.supportsFiber
16441
+ !hook$jscomp$inline_2416.isDisabled &&
16442
+ hook$jscomp$inline_2416.supportsFiber
16399
16443
  )
16400
16444
  try {
16401
- (rendererID = hook$jscomp$inline_2414.inject(
16402
- internals$jscomp$inline_1960
16445
+ (rendererID = hook$jscomp$inline_2416.inject(
16446
+ internals$jscomp$inline_1962
16403
16447
  )),
16404
- (injectedHook = hook$jscomp$inline_2414);
16448
+ (injectedHook = hook$jscomp$inline_2416);
16405
16449
  } catch (err) {}
16406
16450
  }
16407
16451
  function getCrossOriginStringAs(as, input) {
@@ -16647,7 +16691,7 @@ exports.useFormState = function (action, initialState, permalink) {
16647
16691
  exports.useFormStatus = function () {
16648
16692
  return ReactSharedInternals.H.useHostTransitionStatus();
16649
16693
  };
16650
- exports.version = "19.2.0-canary-b94603b9-20250513";
16694
+ exports.version = "19.2.0-canary-4a45ba92-20250515";
16651
16695
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
16652
16696
  "function" ===
16653
16697
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&