react-router 7.18.5 → 7.18.7

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/development/{browser-7x6a6gQP.d.ts → browser-QWJf_b8Q.d.ts} +2 -2
  3. package/dist/development/{browser-CiGxXXOl.d.mts → browser-yuOIt-hO.d.mts} +2 -2
  4. package/dist/development/{chunk-NDF5KBLP.js → chunk-6VUODQWR.js} +109 -104
  5. package/dist/development/{chunk-2ZBLYC7V.js → chunk-EYW3HBBI.js} +116 -66
  6. package/dist/development/{chunk-IFHLIXZW.js → chunk-FLL7MJ4N.js} +7 -7
  7. package/dist/development/{chunk-JAHXRPFV.mjs → chunk-IXMWVLYF.mjs} +14 -5
  8. package/dist/development/{chunk-6KYCQHYJ.mjs → chunk-Z7SQORRT.mjs} +118 -64
  9. package/dist/{production/context-BlYKn1tE.d.mts → development/context-BbKau8k8.d.mts} +1 -1
  10. package/dist/development/{data-DEjBmEfD.d.mts → data-BfpvlkTw.d.mts} +2 -0
  11. package/dist/{production/data-CjO11-hU.d.ts → development/data-DNyB6ouY.d.ts} +2 -0
  12. package/dist/development/dom-export.d.mts +3 -3
  13. package/dist/development/dom-export.d.ts +3 -3
  14. package/dist/development/dom-export.js +38 -36
  15. package/dist/development/dom-export.mjs +7 -5
  16. package/dist/development/{index-react-server-client-KK-TR-t7.d.mts → index-react-server-client-DF1LPF_n.d.mts} +2 -2
  17. package/dist/{production/index-react-server-client-BaaZU3sM.d.ts → development/index-react-server-client-DxC4rwQS.d.ts} +2 -2
  18. package/dist/development/index-react-server-client.d.mts +3 -3
  19. package/dist/development/index-react-server-client.d.ts +3 -3
  20. package/dist/development/index-react-server-client.js +4 -4
  21. package/dist/development/index-react-server-client.mjs +2 -2
  22. package/dist/development/index-react-server.js +130 -59
  23. package/dist/development/index-react-server.mjs +130 -59
  24. package/dist/development/index.d.mts +11 -11
  25. package/dist/development/index.d.ts +11 -11
  26. package/dist/development/index.js +111 -102
  27. package/dist/development/index.mjs +3 -3
  28. package/dist/{production/instrumentation-CPkMwccd.d.ts → development/instrumentation-z0GQ7yJ2.d.ts} +1 -1
  29. package/dist/development/lib/types/internal.d.mts +2 -2
  30. package/dist/development/lib/types/internal.d.ts +2 -2
  31. package/dist/development/lib/types/internal.js +1 -1
  32. package/dist/development/lib/types/internal.mjs +1 -1
  33. package/dist/development/{register-CmkRspdl.d.mts → register-B8pHflrz.d.mts} +1 -1
  34. package/dist/development/{register-roq_0qYo.d.ts → register-Dnr_kGGI.d.ts} +1 -1
  35. package/dist/production/{browser-7x6a6gQP.d.ts → browser-QWJf_b8Q.d.ts} +2 -2
  36. package/dist/production/{browser-CiGxXXOl.d.mts → browser-yuOIt-hO.d.mts} +2 -2
  37. package/dist/production/{chunk-75HN637G.js → chunk-6AFDAMLF.js} +109 -104
  38. package/dist/production/{chunk-IAM5GYT3.mjs → chunk-D2GT6IUW.mjs} +14 -5
  39. package/dist/production/{chunk-HNBICOIU.js → chunk-JAAIXHP6.js} +116 -66
  40. package/dist/production/{chunk-7RTFRKQW.mjs → chunk-OCNYVWSN.mjs} +118 -64
  41. package/dist/production/{chunk-K3NA4NUH.js → chunk-RFC7P4DG.js} +7 -7
  42. package/dist/{development/context-BlYKn1tE.d.mts → production/context-BbKau8k8.d.mts} +1 -1
  43. package/dist/production/{data-DEjBmEfD.d.mts → data-BfpvlkTw.d.mts} +2 -0
  44. package/dist/{development/data-CjO11-hU.d.ts → production/data-DNyB6ouY.d.ts} +2 -0
  45. package/dist/production/dom-export.d.mts +3 -3
  46. package/dist/production/dom-export.d.ts +3 -3
  47. package/dist/production/dom-export.js +38 -36
  48. package/dist/production/dom-export.mjs +7 -5
  49. package/dist/production/{index-react-server-client-KK-TR-t7.d.mts → index-react-server-client-DF1LPF_n.d.mts} +2 -2
  50. package/dist/{development/index-react-server-client-BaaZU3sM.d.ts → production/index-react-server-client-DxC4rwQS.d.ts} +2 -2
  51. package/dist/production/index-react-server-client.d.mts +3 -3
  52. package/dist/production/index-react-server-client.d.ts +3 -3
  53. package/dist/production/index-react-server-client.js +4 -4
  54. package/dist/production/index-react-server-client.mjs +2 -2
  55. package/dist/production/index-react-server.js +130 -59
  56. package/dist/production/index-react-server.mjs +130 -59
  57. package/dist/production/index.d.mts +11 -11
  58. package/dist/production/index.d.ts +11 -11
  59. package/dist/production/index.js +111 -102
  60. package/dist/production/index.mjs +3 -3
  61. package/dist/{development/instrumentation-CPkMwccd.d.ts → production/instrumentation-z0GQ7yJ2.d.ts} +1 -1
  62. package/dist/production/lib/types/internal.d.mts +2 -2
  63. package/dist/production/lib/types/internal.d.ts +2 -2
  64. package/dist/production/lib/types/internal.js +1 -1
  65. package/dist/production/lib/types/internal.mjs +1 -1
  66. package/dist/production/{register-CmkRspdl.d.mts → register-B8pHflrz.d.mts} +1 -1
  67. package/dist/production/{register-roq_0qYo.d.ts → register-Dnr_kGGI.d.ts} +1 -1
  68. package/package.json +5 -1
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
2
- * react-router v7.18.5
2
+ * react-router v7.18.7
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -13,7 +13,7 @@
13
13
 
14
14
 
15
15
 
16
- var _chunkK3NA4NUHjs = require('./chunk-K3NA4NUH.js');
16
+ var _chunkRFC7P4DGjs = require('./chunk-RFC7P4DG.js');
17
17
 
18
18
 
19
19
 
@@ -38,7 +38,7 @@ var _chunkK3NA4NUHjs = require('./chunk-K3NA4NUH.js');
38
38
 
39
39
 
40
40
 
41
- var _chunkHNBICOIUjs = require('./chunk-HNBICOIU.js');
41
+ var _chunkJAAIXHP6js = require('./chunk-JAAIXHP6.js');
42
42
 
43
43
  // lib/dom-export/dom-router-provider.tsx
44
44
  var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
@@ -209,12 +209,14 @@ function HydratedRouter(props) {
209
209
  );
210
210
  React2.useEffect(() => {
211
211
  if (process.env.NODE_ENV === "development") {
212
- setCriticalCss(void 0);
212
+ React2.startTransition(() => {
213
+ setCriticalCss(void 0);
214
+ });
213
215
  }
214
216
  }, []);
215
217
  React2.useEffect(() => {
216
218
  if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
217
- document.querySelectorAll(`[${_chunkHNBICOIUjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
219
+ document.querySelectorAll(`[${_chunkJAAIXHP6js.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
218
220
  }
219
221
  }, [criticalCss]);
220
222
  let [location2, setLocation] = React2.useState(router.state.location);
@@ -308,14 +310,14 @@ function createCallServer({
308
310
  Promise.resolve(payloadPromise).then(async (payload) => {
309
311
  if (payload.type === "redirect") {
310
312
  let location2 = normalizeRedirectLocation(payload.location);
311
- _chunkHNBICOIUjs.validateNavigationTarget.call(void 0,
313
+ _chunkJAAIXHP6js.validateNavigationTarget.call(void 0,
312
314
  payload.location,
313
315
  location2,
314
316
  new URL(window.location.href),
315
317
  "allow-explicit"
316
318
  );
317
319
  if (payload.reload || isExternalLocation(location2)) {
318
- if (_chunkHNBICOIUjs.hasInvalidProtocol.call(void 0, location2)) {
320
+ if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, location2)) {
319
321
  throw new Error("Invalid redirect location");
320
322
  }
321
323
  window.location.href = location2;
@@ -335,14 +337,14 @@ function createCallServer({
335
337
  if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {
336
338
  if (rerender.type === "redirect") {
337
339
  let location2 = normalizeRedirectLocation(rerender.location);
338
- _chunkHNBICOIUjs.validateNavigationTarget.call(void 0,
340
+ _chunkJAAIXHP6js.validateNavigationTarget.call(void 0,
339
341
  rerender.location,
340
342
  location2,
341
343
  new URL(window.location.href),
342
344
  "allow-explicit"
343
345
  );
344
346
  if (rerender.reload || isExternalLocation(location2)) {
345
- if (_chunkHNBICOIUjs.hasInvalidProtocol.call(void 0, location2)) {
347
+ if (_chunkJAAIXHP6js.hasInvalidProtocol.call(void 0, location2)) {
346
348
  throw new Error("Invalid redirect location");
347
349
  }
348
350
  window.location.href = location2;
@@ -407,7 +409,7 @@ function createRouterFromPayload({
407
409
  };
408
410
  if (payload.type !== "render") throw new Error("Invalid payload type");
409
411
  globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
410
- _chunkK3NA4NUHjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
412
+ _chunkRFC7P4DGjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
411
413
  let routes = payload.matches.reduceRight((previous, match) => {
412
414
  const route = createRouteFromServerManifest(
413
415
  match,
@@ -421,12 +423,12 @@ function createRouterFromPayload({
421
423
  return [route];
422
424
  }, []);
423
425
  let applyPatchesPromise;
424
- globalVar.__reactRouterDataRouter = _chunkHNBICOIUjs.createRouter.call(void 0, {
426
+ globalVar.__reactRouterDataRouter = _chunkJAAIXHP6js.createRouter.call(void 0, {
425
427
  routes,
426
428
  getContext,
427
429
  basename: payload.basename,
428
- history: _chunkHNBICOIUjs.createBrowserHistory.call(void 0, ),
429
- hydrationData: _chunkK3NA4NUHjs.getHydrationData.call(void 0, {
430
+ history: _chunkJAAIXHP6js.createBrowserHistory.call(void 0, ),
431
+ hydrationData: _chunkRFC7P4DGjs.getHydrationData.call(void 0, {
430
432
  state: {
431
433
  loaderData: payload.loaderData,
432
434
  actionData: payload.actionData,
@@ -435,7 +437,7 @@ function createRouterFromPayload({
435
437
  routes,
436
438
  getRouteInfo: (routeId) => {
437
439
  let match = payload.matches.find((m) => m.id === routeId);
438
- _chunkHNBICOIUjs.invariant.call(void 0, match, "Route not found in payload");
440
+ _chunkJAAIXHP6js.invariant.call(void 0, match, "Route not found in payload");
439
441
  return {
440
442
  clientLoader: match.clientLoader,
441
443
  hasLoader: match.hasLoader,
@@ -550,9 +552,9 @@ function createRouterFromPayload({
550
552
  routeModules: globalVar.__reactRouterRouteModules
551
553
  };
552
554
  }
553
- var renderedRoutesContext = _chunkHNBICOIUjs.createContext.call(void 0, );
555
+ var renderedRoutesContext = _chunkJAAIXHP6js.createContext.call(void 0, );
554
556
  function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
555
- let dataStrategy = _chunkHNBICOIUjs.getSingleFetchDataStrategyImpl.call(void 0,
557
+ let dataStrategy = _chunkJAAIXHP6js.getSingleFetchDataStrategyImpl.call(void 0,
556
558
  getRouter,
557
559
  (match) => {
558
560
  let M = match;
@@ -609,20 +611,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
609
611
  function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
610
612
  return async (args, basename, trailingSlashAware, targetRoutes) => {
611
613
  let { request, context } = args;
612
- let url = _chunkHNBICOIUjs.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
614
+ let url = _chunkJAAIXHP6js.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
613
615
  if (request.method === "GET") {
614
- url = _chunkHNBICOIUjs.stripIndexParam.call(void 0, url);
616
+ url = _chunkJAAIXHP6js.stripIndexParam.call(void 0, url);
615
617
  if (targetRoutes) {
616
618
  url.searchParams.set("_routes", targetRoutes.join(","));
617
619
  }
618
620
  }
619
621
  let res = await fetchImplementation(
620
- new Request(url, await _chunkHNBICOIUjs.createRequestInit.call(void 0, request))
622
+ new Request(url, await _chunkJAAIXHP6js.createRequestInit.call(void 0, request))
621
623
  );
622
624
  if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
623
- throw new (0, _chunkHNBICOIUjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
625
+ throw new (0, _chunkJAAIXHP6js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
624
626
  }
625
- _chunkHNBICOIUjs.invariant.call(void 0, res.body, "No response body to decode");
627
+ _chunkJAAIXHP6js.invariant.call(void 0, res.body, "No response body to decode");
626
628
  try {
627
629
  const payload = await createFromReadableStream(res.body, {
628
630
  temporaryReferences: void 0
@@ -646,7 +648,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
646
648
  }
647
649
  context.get(renderedRoutesContext).push(...payload.matches);
648
650
  let results = { routes: {} };
649
- const dataKey = _chunkHNBICOIUjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
651
+ const dataKey = _chunkJAAIXHP6js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
650
652
  for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
651
653
  results.routes[routeId] = { data };
652
654
  }
@@ -679,7 +681,7 @@ function RSCHydratedRouter({
679
681
  [createFromReadableStream, payload, fetchImplementation, getContext]
680
682
  );
681
683
  React3.useEffect(() => {
682
- _chunkHNBICOIUjs.setIsHydrated.call(void 0, );
684
+ _chunkJAAIXHP6js.setIsHydrated.call(void 0, );
683
685
  }, []);
684
686
  React3.useLayoutEffect(() => {
685
687
  const globalVar = window;
@@ -787,8 +789,8 @@ function RSCHydratedRouter({
787
789
  },
788
790
  routeModules
789
791
  };
790
- return /* @__PURE__ */ React3.createElement(_chunkHNBICOIUjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkK3NA4NUHjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkHNBICOIUjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
791
- _chunkHNBICOIUjs.RouterProvider,
792
+ return /* @__PURE__ */ React3.createElement(_chunkJAAIXHP6js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkRFC7P4DGjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkJAAIXHP6js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
793
+ _chunkJAAIXHP6js.RouterProvider,
792
794
  {
793
795
  router: transitionEnabledRouter,
794
796
  flushSync: ReactDOM2.flushSync
@@ -804,8 +806,8 @@ function createRouteFromServerManifest(match, payload) {
804
806
  // the server loader flow regardless of whether the client loader calls
805
807
  // `serverLoader` or not, otherwise we'll have nothing to render.
806
808
  match.hasComponent && !match.element;
807
- _chunkHNBICOIUjs.invariant.call(void 0, window.__reactRouterRouteModules);
808
- _chunkK3NA4NUHjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
809
+ _chunkJAAIXHP6js.invariant.call(void 0, window.__reactRouterRouteModules);
810
+ _chunkRFC7P4DGjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
809
811
  let dataRoute = {
810
812
  id: match.id,
811
813
  element: match.element,
@@ -853,7 +855,7 @@ function createRouteFromServerManifest(match, payload) {
853
855
  return await callSingleFetch(singleFetch);
854
856
  }
855
857
  }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
856
- throw _chunkHNBICOIUjs.noActionDefinedError.call(void 0, "action", match.id);
858
+ throw _chunkJAAIXHP6js.noActionDefinedError.call(void 0, "action", match.id);
857
859
  },
858
860
  path: match.path,
859
861
  shouldRevalidate: match.shouldRevalidate,
@@ -865,7 +867,7 @@ function createRouteFromServerManifest(match, payload) {
865
867
  hasClientAction: match.clientAction != null
866
868
  };
867
869
  if (typeof dataRoute.loader === "function") {
868
- dataRoute.loader.hydrate = _chunkHNBICOIUjs.shouldHydrateRouteLoader.call(void 0,
870
+ dataRoute.loader.hydrate = _chunkJAAIXHP6js.shouldHydrateRouteLoader.call(void 0,
869
871
  match.id,
870
872
  match.clientLoader,
871
873
  match.hasLoader,
@@ -875,7 +877,7 @@ function createRouteFromServerManifest(match, payload) {
875
877
  return dataRoute;
876
878
  }
877
879
  function callSingleFetch(singleFetch) {
878
- _chunkHNBICOIUjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
880
+ _chunkJAAIXHP6js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
879
881
  return singleFetch();
880
882
  }
881
883
  function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
@@ -883,7 +885,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
883
885
  let fn = type === "action" ? "serverAction()" : "serverLoader()";
884
886
  let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
885
887
  console.error(msg);
886
- throw new (0, _chunkHNBICOIUjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
888
+ throw new (0, _chunkJAAIXHP6js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
887
889
  }
888
890
  }
889
891
  var nextPaths = /* @__PURE__ */ new Set();
@@ -906,12 +908,12 @@ function getManifestUrl(paths) {
906
908
  return url;
907
909
  }
908
910
  async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {
909
- paths = _chunkHNBICOIUjs.getPathsWithAncestors.call(void 0, paths);
911
+ paths = _chunkJAAIXHP6js.getPathsWithAncestors.call(void 0, paths);
910
912
  let url = getManifestUrl(paths);
911
913
  if (url == null) {
912
914
  return;
913
915
  }
914
- if (url.toString().length > _chunkHNBICOIUjs.URL_LIMIT) {
916
+ if (url.toString().length > _chunkJAAIXHP6js.URL_LIMIT) {
915
917
  nextPaths.clear();
916
918
  return;
917
919
  }
@@ -925,7 +927,6 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
925
927
  if (payload.type !== "manifest") {
926
928
  throw new Error("Failed to patch routes");
927
929
  }
928
- paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
929
930
  let patches = await payload.patches;
930
931
  React3.startTransition(() => {
931
932
  patches.forEach((p) => {
@@ -935,6 +936,7 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
935
936
  );
936
937
  });
937
938
  });
939
+ paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
938
940
  }
939
941
  function addToFifoQueue(path, queue) {
940
942
  if (queue.size >= discoveredPathsMaxSize) {
@@ -955,8 +957,8 @@ function isExternalLocation(location2) {
955
957
  return newLocation.origin !== window.location.origin;
956
958
  }
957
959
  function normalizeRedirectLocation(location2) {
958
- if (_chunkHNBICOIUjs.PROTOCOL_RELATIVE_URL_REGEX.test(location2)) {
959
- let path = _chunkHNBICOIUjs.resolvePath.call(void 0, location2);
960
+ if (_chunkJAAIXHP6js.PROTOCOL_RELATIVE_URL_REGEX.test(location2)) {
961
+ let path = _chunkJAAIXHP6js.resolvePath.call(void 0, location2);
960
962
  return path.pathname + path.search + path.hash;
961
963
  }
962
964
  return location2;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.18.5
2
+ * react-router v7.18.7
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -13,7 +13,7 @@ import {
13
13
  RSCRouterGlobalErrorBoundary,
14
14
  getHydrationData,
15
15
  populateRSCRouteModules
16
- } from "./chunk-IAM5GYT3.mjs";
16
+ } from "./chunk-D2GT6IUW.mjs";
17
17
  import {
18
18
  CRITICAL_CSS_DATA_ATTRIBUTE,
19
19
  ErrorResponseImpl,
@@ -47,7 +47,7 @@ import {
47
47
  stripIndexParam,
48
48
  useFogOFWarDiscovery,
49
49
  validateNavigationTarget
50
- } from "./chunk-7RTFRKQW.mjs";
50
+ } from "./chunk-OCNYVWSN.mjs";
51
51
 
52
52
  // lib/dom-export/dom-router-provider.tsx
53
53
  import * as React from "react";
@@ -201,7 +201,9 @@ function HydratedRouter(props) {
201
201
  );
202
202
  React2.useEffect(() => {
203
203
  if (process.env.NODE_ENV === "development") {
204
- setCriticalCss(void 0);
204
+ React2.startTransition(() => {
205
+ setCriticalCss(void 0);
206
+ });
205
207
  }
206
208
  }, []);
207
209
  React2.useEffect(() => {
@@ -917,7 +919,6 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
917
919
  if (payload.type !== "manifest") {
918
920
  throw new Error("Failed to patch routes");
919
921
  }
920
- paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
921
922
  let patches = await payload.patches;
922
923
  React3.startTransition(() => {
923
924
  patches.forEach((p) => {
@@ -927,6 +928,7 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
927
928
  );
928
929
  });
929
930
  });
931
+ paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
930
932
  }
931
933
  function addToFifoQueue(path, queue) {
932
934
  if (queue.size >= discoveredPathsMaxSize) {
@@ -1,6 +1,6 @@
1
- import { o as ServerInstrumentation, H as HydrationState, h as StaticHandlerContext, f as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-BlYKn1tE.mjs';
1
+ import { o as ServerInstrumentation, H as HydrationState, h as StaticHandlerContext, f as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-BbKau8k8.mjs';
2
2
  import * as React from 'react';
3
- import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-DEjBmEfD.mjs';
3
+ import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-BfpvlkTw.mjs';
4
4
 
5
5
  type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
6
6
  interface ServerRoute extends Route {
@@ -1,6 +1,6 @@
1
- import { l as ServerInstrumentation, H as HydrationState, e as StaticHandlerContext, c as RelativeRoutingType, a as Router$1, g as RouterState, R as RouterInit, t as FutureConfig$1, C as ClientInstrumentation, d as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, u as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-CPkMwccd.js';
1
+ import { l as ServerInstrumentation, H as HydrationState, e as StaticHandlerContext, c as RelativeRoutingType, a as Router$1, g as RouterState, R as RouterInit, t as FutureConfig$1, C as ClientInstrumentation, d as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, u as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-z0GQ7yJ2.js';
2
2
  import * as React from 'react';
3
- import { p as RouteManifest, aE as ServerRouteModule, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, s as LoaderFunctionArgs, a0 as ActionFunctionArgs, O as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, o as RouteBranch, aF as TrackedPromise, f as History, T as To, L as Location, i as Action, ac as RouteMatch, Y as InitialEntry, _ as NonIndexRouteObject, a7 as LazyRouteFunction, Z as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, q as HTMLFormMethod, F as FormEncType, av as PageLinkDescriptor, Q as SerializeFrom } from './data-CjO11-hU.js';
3
+ import { p as RouteManifest, aE as ServerRouteModule, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, s as LoaderFunctionArgs, a0 as ActionFunctionArgs, O as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, o as RouteBranch, aF as TrackedPromise, f as History, T as To, L as Location, i as Action, ac as RouteMatch, Y as InitialEntry, _ as NonIndexRouteObject, a7 as LazyRouteFunction, Z as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, q as HTMLFormMethod, F as FormEncType, av as PageLinkDescriptor, Q as SerializeFrom } from './data-DNyB6ouY.js';
4
4
 
5
5
  type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
6
6
  interface ServerRoute extends Route$1 {
@@ -1,4 +1,4 @@
1
- export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BlYKn1tE.mjs';
2
- export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-KK-TR-t7.mjs';
3
- import './data-DEjBmEfD.mjs';
1
+ export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BbKau8k8.mjs';
2
+ export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DF1LPF_n.mjs';
3
+ import './data-BfpvlkTw.mjs';
4
4
  import 'react';
@@ -1,4 +1,4 @@
1
- export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-BaaZU3sM.js';
2
- import './instrumentation-CPkMwccd.js';
3
- import './data-CjO11-hU.js';
1
+ export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-DxC4rwQS.js';
2
+ import './instrumentation-z0GQ7yJ2.js';
3
+ import './data-DNyB6ouY.js';
4
4
  import 'react';
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
- * react-router v7.18.5
2
+ * react-router v7.18.7
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunk75HN637Gjs = require('./chunk-75HN637G.js');
22
+ var _chunk6AFDAMLFjs = require('./chunk-6AFDAMLF.js');
23
23
 
24
24
 
25
25
 
@@ -34,7 +34,7 @@ var _chunk75HN637Gjs = require('./chunk-75HN637G.js');
34
34
 
35
35
 
36
36
 
37
- var _chunkHNBICOIUjs = require('./chunk-HNBICOIU.js');
37
+ var _chunkJAAIXHP6js = require('./chunk-JAAIXHP6.js');
38
38
 
39
39
 
40
40
 
@@ -58,4 +58,4 @@ var _chunkHNBICOIUjs = require('./chunk-HNBICOIU.js');
58
58
 
59
59
 
60
60
 
61
- exports.BrowserRouter = _chunk75HN637Gjs.BrowserRouter; exports.Form = _chunk75HN637Gjs.Form; exports.HashRouter = _chunk75HN637Gjs.HashRouter; exports.Link = _chunk75HN637Gjs.Link; exports.Links = _chunkHNBICOIUjs.Links; exports.MemoryRouter = _chunkHNBICOIUjs.MemoryRouter; exports.Meta = _chunkHNBICOIUjs.Meta; exports.NavLink = _chunk75HN637Gjs.NavLink; exports.Navigate = _chunkHNBICOIUjs.Navigate; exports.Outlet = _chunkHNBICOIUjs.Outlet; exports.Route = _chunkHNBICOIUjs.Route; exports.Router = _chunkHNBICOIUjs.Router; exports.RouterProvider = _chunkHNBICOIUjs.RouterProvider; exports.Routes = _chunkHNBICOIUjs.Routes; exports.ScrollRestoration = _chunk75HN637Gjs.ScrollRestoration; exports.StaticRouter = _chunk75HN637Gjs.StaticRouter; exports.StaticRouterProvider = _chunk75HN637Gjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkHNBICOIUjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkHNBICOIUjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkHNBICOIUjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkHNBICOIUjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk75HN637Gjs.HistoryRouter;
61
+ exports.BrowserRouter = _chunk6AFDAMLFjs.BrowserRouter; exports.Form = _chunk6AFDAMLFjs.Form; exports.HashRouter = _chunk6AFDAMLFjs.HashRouter; exports.Link = _chunk6AFDAMLFjs.Link; exports.Links = _chunkJAAIXHP6js.Links; exports.MemoryRouter = _chunkJAAIXHP6js.MemoryRouter; exports.Meta = _chunkJAAIXHP6js.Meta; exports.NavLink = _chunk6AFDAMLFjs.NavLink; exports.Navigate = _chunkJAAIXHP6js.Navigate; exports.Outlet = _chunkJAAIXHP6js.Outlet; exports.Route = _chunkJAAIXHP6js.Route; exports.Router = _chunkJAAIXHP6js.Router; exports.RouterProvider = _chunkJAAIXHP6js.RouterProvider; exports.Routes = _chunkJAAIXHP6js.Routes; exports.ScrollRestoration = _chunk6AFDAMLFjs.ScrollRestoration; exports.StaticRouter = _chunk6AFDAMLFjs.StaticRouter; exports.StaticRouterProvider = _chunk6AFDAMLFjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkJAAIXHP6js.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkJAAIXHP6js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkJAAIXHP6js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkJAAIXHP6js.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunk6AFDAMLFjs.HistoryRouter;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.18.5
2
+ * react-router v7.18.7
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -32,7 +32,7 @@ import {
32
32
  WithComponentProps,
33
33
  WithErrorBoundaryProps,
34
34
  WithHydrateFallbackProps
35
- } from "./chunk-7RTFRKQW.mjs";
35
+ } from "./chunk-OCNYVWSN.mjs";
36
36
  export {
37
37
  BrowserRouter,
38
38
  Form,