react-router 7.5.1 → 7.5.3-pre.0

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 (36) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/development/{chunk-LSOULM7L.mjs → chunk-MKZGATSN.mjs} +114 -38
  3. package/dist/development/dom-export.d.mts +2 -2
  4. package/dist/development/dom-export.d.ts +2 -2
  5. package/dist/development/dom-export.js +99 -64
  6. package/dist/development/dom-export.mjs +17 -41
  7. package/dist/{production/fog-of-war-CyHis97d.d.mts → development/fog-of-war-BLArG-qZ.d.ts} +2 -2
  8. package/dist/development/{fog-of-war-D4x86-Xc.d.ts → fog-of-war-D2zsXvum.d.mts} +2 -2
  9. package/dist/development/index.d.mts +19 -16
  10. package/dist/development/index.d.ts +19 -16
  11. package/dist/development/index.js +115 -38
  12. package/dist/development/index.mjs +6 -4
  13. package/dist/development/lib/types/route-module.d.mts +1 -1
  14. package/dist/development/lib/types/route-module.d.ts +1 -1
  15. package/dist/development/lib/types/route-module.js +1 -1
  16. package/dist/development/lib/types/route-module.mjs +1 -1
  17. package/dist/development/{route-data-OcOrqK13.d.ts → route-data-C12CLHiN.d.mts} +1 -1
  18. package/dist/{production/route-data-OcOrqK13.d.mts → development/route-data-C12CLHiN.d.ts} +1 -1
  19. package/dist/production/{chunk-SAWFLE7G.mjs → chunk-ZGZJR6R3.mjs} +114 -38
  20. package/dist/production/dom-export.d.mts +2 -2
  21. package/dist/production/dom-export.d.ts +2 -2
  22. package/dist/production/dom-export.js +99 -64
  23. package/dist/production/dom-export.mjs +17 -41
  24. package/dist/{development/fog-of-war-CyHis97d.d.mts → production/fog-of-war-BLArG-qZ.d.ts} +2 -2
  25. package/dist/production/{fog-of-war-D4x86-Xc.d.ts → fog-of-war-D2zsXvum.d.mts} +2 -2
  26. package/dist/production/index.d.mts +19 -16
  27. package/dist/production/index.d.ts +19 -16
  28. package/dist/production/index.js +115 -38
  29. package/dist/production/index.mjs +6 -4
  30. package/dist/production/lib/types/route-module.d.mts +1 -1
  31. package/dist/production/lib/types/route-module.d.ts +1 -1
  32. package/dist/production/lib/types/route-module.js +1 -1
  33. package/dist/production/lib/types/route-module.mjs +1 -1
  34. package/dist/production/{route-data-OcOrqK13.d.ts → route-data-C12CLHiN.d.mts} +1 -1
  35. package/dist/{development/route-data-OcOrqK13.d.mts → production/route-data-C12CLHiN.d.ts} +1 -1
  36. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { a as Router, D as DataStrategyFunction, b as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, c as RelativeRoutingType, d as Location, e as Action, P as ParamParseKey, f as Path, g as PathPattern, h as PathMatch, N as NavigateOptions, i as Params$1, j as RouteObject, k as Navigation, l as RevalidationState, U as UIMatch, m as SerializeFrom, B as BlockerFunction, n as Blocker, o as StaticHandlerContext, p as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, q as unstable_InitialContext, r as IndexRouteObject, s as LoaderFunction, t as ActionFunction, v as MetaFunction, w as LinksFunction, x as NonIndexRouteObject, E as Equal, y as RouterState } from './route-data-OcOrqK13.js';
2
- export { au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunction, ax as ClientLoaderFunctionArgs, ao as DataRouteMatch, ap as DataRouteObject, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, J as Fetcher, $ as FormEncType, a0 as FormMethod, aF as Future, G as GetScrollPositionFunction, z as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, aA as MetaArgs, aB as MetaDescriptor, K as NavigationStates, aq as Navigator, aC as PageLinkDescriptor, ar as PatchRoutesOnNavigationFunction, as as PatchRoutesOnNavigationFunctionArgs, a4 as PathParam, a5 as RedirectFunction, at as RouteMatch, V as RouterFetchOptions, R as RouterInit, Q as RouterNavigateOptions, O as RouterSubscriber, a7 as ShouldRevalidateFunction, a8 as ShouldRevalidateFunctionArgs, aL as UNSAFE_DataRouterContext, aM as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aK as UNSAFE_ErrorResponseImpl, aN as UNSAFE_FetchersContext, aO as UNSAFE_LocationContext, aP as UNSAFE_NavigationContext, aQ as UNSAFE_RouteContext, aS as UNSAFE_RouteModules, aR as UNSAFE_ViewTransitionContext, aH as UNSAFE_createBrowserHistory, aJ as UNSAFE_createRouter, aI as UNSAFE_invariant, aa as createPath, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, am as replace, an as resolvePath, a3 as unstable_MiddlewareFunction, a6 as unstable_RouterContext, aG as unstable_SerializesTo, a9 as unstable_createContext } from './route-data-OcOrqK13.js';
3
- import { a as Route, A as AssetsManifest, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-D4x86-Xc.js';
4
- export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, ak as UNSAFE_FrameworkContext, an as UNSAFE_createClientRoutes, ao as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, al as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_hydrationRouteProperties, aj as UNSAFE_mapRouteProperties, ap as UNSAFE_shouldHydrateRouteLoader, am as UNSAFE_useFogOFWarDiscovery, aq as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-D4x86-Xc.js';
1
+ import { a as Router, b as RouteModules, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, w as MetaFunction, x as LinksFunction, y as NonIndexRouteObject, E as Equal, z as RouterState, G as DataRouteObject, J as ClientLoaderFunction } from './route-data-C12CLHiN.js';
2
+ export { aw as ClientActionFunction, ax as ClientActionFunctionArgs, ay as ClientLoaderFunctionArgs, ar as DataRouteMatch, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, Q as Fetcher, a2 as FormEncType, a3 as FormMethod, aG as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HeadersArgs, aA as HeadersFunction, aE as HtmlLinkDescriptor, ah as IDLE_BLOCKER, ag as IDLE_FETCHER, af as IDLE_NAVIGATION, a5 as LazyRouteFunction, aF as LinkDescriptor, aB as MetaArgs, aC as MetaDescriptor, V as NavigationStates, as as Navigator, aD as PageLinkDescriptor, at as PatchRoutesOnNavigationFunction, au as PatchRoutesOnNavigationFunctionArgs, a7 as PathParam, a8 as RedirectFunction, av as RouteMatch, Y as RouterFetchOptions, R as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, aa as ShouldRevalidateFunction, ab as ShouldRevalidateFunctionArgs, aM as UNSAFE_DataRouterContext, aN as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aL as UNSAFE_ErrorResponseImpl, aO as UNSAFE_FetchersContext, aP as UNSAFE_LocationContext, aQ as UNSAFE_NavigationContext, aR as UNSAFE_RouteContext, aS as UNSAFE_ViewTransitionContext, aI as UNSAFE_createBrowserHistory, aK as UNSAFE_createRouter, aJ as UNSAFE_invariant, ad as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ae as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, a6 as unstable_MiddlewareFunction, a9 as unstable_RouterContext, aH as unstable_SerializesTo, ac as unstable_createContext } from './route-data-C12CLHiN.js';
3
+ import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-BLArG-qZ.js';
4
+ export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, ak as UNSAFE_FrameworkContext, an as UNSAFE_createClientRoutes, ao as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, al as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_hydrationRouteProperties, aj as UNSAFE_mapRouteProperties, ap as UNSAFE_shouldHydrateRouteLoader, am as UNSAFE_useFogOFWarDiscovery, aq as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-BLArG-qZ.js';
5
5
  import * as React from 'react';
6
6
  import { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
@@ -9,12 +9,7 @@ export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerialize
9
9
  import { A as AppLoadContext } from './data-CQbyyGzl.js';
10
10
 
11
11
  declare const SingleFetchRedirectSymbol: unique symbol;
12
- type GetRouteInfoFunction = (routeId: string) => {
13
- hasLoader: boolean;
14
- hasClientLoader: boolean;
15
- hasShouldRevalidate: boolean | undefined;
16
- };
17
- declare function getSingleFetchDataStrategy(getRouter: () => Router, getRouteInfo: GetRouteInfoFunction, ssr: boolean, basename: string | undefined): DataStrategyFunction;
12
+ declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
18
13
  declare function decodeViaTurboStream(body: ReadableStream<Uint8Array>, global: Window | typeof globalThis): Promise<{
19
14
  done: Promise<undefined>;
20
15
  value: unknown;
@@ -620,7 +615,7 @@ interface SessionData {
620
615
  /**
621
616
  * Session persists data across HTTP requests.
622
617
  *
623
- * @see https://remix.run/utils/sessions#session-api
618
+ * @see https://reactrouter.com/explanation/sessions-and-cookies#sessions
624
619
  */
625
620
  interface Session<Data = SessionData, FlashData = Data> {
626
621
  /**
@@ -670,15 +665,13 @@ type CreateSessionFunction = <Data = SessionData, FlashData = Data>(initialData?
670
665
  *
671
666
  * Note: This function is typically not invoked directly by application code.
672
667
  * Instead, use a `SessionStorage` object's `getSession` method.
673
- *
674
- * @see https://remix.run/utils/sessions#createsession
675
668
  */
676
669
  declare const createSession: CreateSessionFunction;
677
670
  type IsSessionFunction = (object: any) => object is Session;
678
671
  /**
679
- * Returns true if an object is a Remix session.
672
+ * Returns true if an object is a React Router session.
680
673
  *
681
- * @see https://remix.run/utils/sessions#issession
674
+ * @see https://reactrouter.com/api/utils/isSession
682
675
  */
683
676
  declare const isSession: IsSessionFunction;
684
677
  /**
@@ -842,4 +835,14 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
842
835
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
843
836
  }
844
837
 
845
- export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params$1 as Params, Path, PathMatch, PathPattern, type Register, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, unstable_InitialContext, unstable_RouterContextProvider, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
838
+ declare function getHydrationData(state: {
839
+ loaderData?: Router["state"]["loaderData"];
840
+ actionData?: Router["state"]["actionData"];
841
+ errors?: Router["state"]["errors"];
842
+ }, routes: DataRouteObject[], getRouteInfo: (routeId: string) => {
843
+ clientLoader: ClientLoaderFunction | undefined;
844
+ hasLoader: boolean;
845
+ hasHydrateFallback: boolean;
846
+ }, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
847
+
848
+ export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params$1 as Params, Path, PathMatch, PathPattern, type Register, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, unstable_InitialContext, unstable_RouterContextProvider, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1
2
+ * react-router v7.5.3-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -89,8 +89,9 @@ __export(react_router_exports, {
89
89
  UNSAFE_createRouter: () => createRouter,
90
90
  UNSAFE_decodeViaTurboStream: () => decodeViaTurboStream,
91
91
  UNSAFE_deserializeErrors: () => deserializeErrors2,
92
+ UNSAFE_getHydrationData: () => getHydrationData,
92
93
  UNSAFE_getPatchRoutesOnNavigationFunction: () => getPatchRoutesOnNavigationFunction,
93
- UNSAFE_getSingleFetchDataStrategy: () => getSingleFetchDataStrategy,
94
+ UNSAFE_getTurboStreamSingleFetchDataStrategy: () => getTurboStreamSingleFetchDataStrategy,
94
95
  UNSAFE_hydrationRouteProperties: () => hydrationRouteProperties,
95
96
  UNSAFE_invariant: () => invariant,
96
97
  UNSAFE_mapRouteProperties: () => mapRouteProperties,
@@ -1739,7 +1740,11 @@ function createRouter(init) {
1739
1740
  }
1740
1741
  return {
1741
1742
  matches,
1742
- pendingActionResult: [boundaryMatch.route.id, result]
1743
+ pendingActionResult: [
1744
+ boundaryMatch.route.id,
1745
+ result,
1746
+ actionMatch.route.id
1747
+ ]
1743
1748
  };
1744
1749
  }
1745
1750
  return {
@@ -4510,7 +4515,9 @@ function processRouteLoaderData(matches, results, pendingActionResult, isStaticH
4510
4515
  });
4511
4516
  if (pendingError !== void 0 && pendingActionResult) {
4512
4517
  errors = { [pendingActionResult[0]]: pendingError };
4513
- loaderData[pendingActionResult[0]] = void 0;
4518
+ if (pendingActionResult[2]) {
4519
+ loaderData[pendingActionResult[2]] = void 0;
4520
+ }
4514
4521
  }
4515
4522
  return {
4516
4523
  loaderData,
@@ -6461,6 +6468,7 @@ async function createRequestInit(request) {
6461
6468
 
6462
6469
  // lib/dom/ssr/single-fetch.tsx
6463
6470
  var SingleFetchRedirectSymbol = Symbol("SingleFetchRedirect");
6471
+ var SINGLE_FETCH_REDIRECT_STATUS = 202;
6464
6472
  var NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([100, 101, 204, 205]);
6465
6473
  function StreamTransfer({
6466
6474
  context,
@@ -6528,10 +6536,19 @@ function StreamTransfer({
6528
6536
  )));
6529
6537
  }
6530
6538
  }
6531
- function getSingleFetchDataStrategy(getRouter, getRouteInfo, ssr, basename) {
6539
+ function getTurboStreamSingleFetchDataStrategy(getRouter, manifest, routeModules, ssr, basename) {
6532
6540
  let dataStrategy = getSingleFetchDataStrategyImpl(
6533
6541
  getRouter,
6534
- getRouteInfo,
6542
+ (match) => {
6543
+ let manifestRoute = manifest.routes[match.route.id];
6544
+ invariant2(manifestRoute, "Route not found in manifest");
6545
+ let routeModule = routeModules[match.route.id];
6546
+ return {
6547
+ hasLoader: manifestRoute.hasLoader,
6548
+ hasClientLoader: manifestRoute.hasClientLoader,
6549
+ hasShouldRevalidate: Boolean(routeModule?.shouldRevalidate)
6550
+ };
6551
+ },
6535
6552
  fetchAndDecodeViaTurboStream,
6536
6553
  ssr,
6537
6554
  basename
@@ -6546,7 +6563,7 @@ function getSingleFetchDataStrategyImpl(getRouter, getRouteInfo, fetchAndDecode,
6546
6563
  return singleFetchActionStrategy(args, fetchAndDecode, basename);
6547
6564
  }
6548
6565
  let foundRevalidatingServerLoader = matches.some((m) => {
6549
- let { hasLoader, hasClientLoader } = getRouteInfo(m.route.id);
6566
+ let { hasLoader, hasClientLoader } = getRouteInfo(m);
6550
6567
  return m.unstable_shouldCallHandler() && hasLoader && !hasClientLoader;
6551
6568
  });
6552
6569
  if (!ssr && !foundRevalidatingServerLoader) {
@@ -6598,7 +6615,7 @@ async function nonSsrStrategy(args, getRouteInfo, fetchAndDecode, basename) {
6598
6615
  matchesToLoad.map(
6599
6616
  (m) => m.resolve(async (handler) => {
6600
6617
  try {
6601
- let { hasClientLoader } = getRouteInfo(m.route.id);
6618
+ let { hasClientLoader } = getRouteInfo(m);
6602
6619
  let routeId = m.route.id;
6603
6620
  let result = hasClientLoader ? await handler(async () => {
6604
6621
  let { data: data2 } = await fetchAndDecode(args, basename, [routeId]);
@@ -6624,7 +6641,7 @@ async function singleFetchLoaderNavigationStrategy(args, router, getRouteInfo, f
6624
6641
  async (m, i) => m.resolve(async (handler) => {
6625
6642
  routeDfds[i].resolve();
6626
6643
  let routeId = m.route.id;
6627
- let { hasLoader, hasClientLoader, hasShouldRevalidate } = getRouteInfo(routeId);
6644
+ let { hasLoader, hasClientLoader, hasShouldRevalidate } = getRouteInfo(m);
6628
6645
  let defaultShouldRevalidate = !m.unstable_shouldRevalidateArgs || m.unstable_shouldRevalidateArgs.actionStatus == null || m.unstable_shouldRevalidateArgs.actionStatus < 400;
6629
6646
  let shouldCall = m.unstable_shouldCallHandler(defaultShouldRevalidate);
6630
6647
  if (!shouldCall) {
@@ -6664,8 +6681,9 @@ async function singleFetchLoaderNavigationStrategy(args, router, getRouteInfo, f
6664
6681
  )
6665
6682
  );
6666
6683
  await Promise.all(routeDfds.map((d) => d.promise));
6667
- if ((!router.state.initialized || routesParams.size === 0) && !window.__reactRouterHdrActive) {
6668
- singleFetchDfd.resolve({});
6684
+ let isInitialLoad = !router.state.initialized && router.state.navigation.state === "idle";
6685
+ if ((isInitialLoad || routesParams.size === 0) && !window.__reactRouterHdrActive) {
6686
+ singleFetchDfd.resolve({ routes: {} });
6669
6687
  } else {
6670
6688
  let targetRoutes = ssr && foundOptOutRoute && routesParams.size > 0 ? [...routesParams.keys()] : void 0;
6671
6689
  try {
@@ -6733,6 +6751,20 @@ async function fetchAndDecodeViaTurboStream(args, basename, targetRoutes) {
6733
6751
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
6734
6752
  throw new ErrorResponseImpl(404, "Not Found", true);
6735
6753
  }
6754
+ if (res.status === 204 && res.headers.has("X-Remix-Redirect")) {
6755
+ return {
6756
+ status: SINGLE_FETCH_REDIRECT_STATUS,
6757
+ data: {
6758
+ redirect: {
6759
+ redirect: res.headers.get("X-Remix-Redirect"),
6760
+ status: Number(res.headers.get("X-Remix-Status") || "302"),
6761
+ revalidate: res.headers.get("X-Remix-Revalidate") === "true",
6762
+ reload: res.headers.get("X-Remix-Reload-Document") === "true",
6763
+ replace: res.headers.get("X-Remix-Replace") === "true"
6764
+ }
6765
+ }
6766
+ };
6767
+ }
6736
6768
  if (NO_BODY_STATUS_CODES.has(res.status)) {
6737
6769
  let routes = {};
6738
6770
  if (targetRoutes && request.method !== "GET") {
@@ -7183,8 +7215,9 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
7183
7215
  }
7184
7216
  };
7185
7217
  dataRoute.loader.hydrate = shouldHydrateRouteLoader(
7186
- route,
7187
- routeModule,
7218
+ route.id,
7219
+ routeModule.clientLoader,
7220
+ route.hasLoader,
7188
7221
  isSpaMode
7189
7222
  );
7190
7223
  dataRoute.action = ({ request, params, context }, singleFetch) => {
@@ -7382,8 +7415,8 @@ function getRouteModuleComponent(routeModule) {
7382
7415
  return routeModule.default;
7383
7416
  }
7384
7417
  }
7385
- function shouldHydrateRouteLoader(route, routeModule, isSpaMode) {
7386
- return isSpaMode && route.id !== "root" || routeModule.clientLoader != null && (routeModule.clientLoader.hydrate === true || route.hasLoader !== true);
7418
+ function shouldHydrateRouteLoader(routeId, clientLoader, hasLoader, isSpaMode) {
7419
+ return isSpaMode && routeId !== "root" || clientLoader != null && (clientLoader.hydrate === true || hasLoader !== true);
7387
7420
  }
7388
7421
 
7389
7422
  // lib/dom/ssr/fog-of-war.ts
@@ -8065,7 +8098,7 @@ function mergeRefs(...refs) {
8065
8098
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8066
8099
  try {
8067
8100
  if (isBrowser) {
8068
- window.__reactRouterVersion = "7.5.1";
8101
+ window.__reactRouterVersion = "7.5.3-pre.0";
8069
8102
  }
8070
8103
  } catch (e) {
8071
8104
  }
@@ -9168,7 +9201,12 @@ function ServerRouter({
9168
9201
  let routeId = match.route.id;
9169
9202
  let route = routeModules[routeId];
9170
9203
  let manifestRoute = context.manifest.routes[routeId];
9171
- if (route && manifestRoute && shouldHydrateRouteLoader(manifestRoute, route, context.isSpaMode) && (route.HydrateFallback || !manifestRoute.hasLoader)) {
9204
+ if (route && manifestRoute && shouldHydrateRouteLoader(
9205
+ routeId,
9206
+ route.clientLoader,
9207
+ manifestRoute.hasLoader,
9208
+ context.isSpaMode
9209
+ ) && (route.HydrateFallback || !manifestRoute.hasLoader)) {
9172
9210
  delete context.staticHandlerContext.loaderData[routeId];
9173
9211
  }
9174
9212
  }
@@ -9637,6 +9675,26 @@ function invariant3(value, message) {
9637
9675
  }
9638
9676
  }
9639
9677
 
9678
+ // lib/server-runtime/dev.ts
9679
+ var globalDevServerHooksKey = "__reactRouterDevServerHooks";
9680
+ function setDevServerHooks(devServerHooks) {
9681
+ globalThis[globalDevServerHooksKey] = devServerHooks;
9682
+ }
9683
+ function getDevServerHooks() {
9684
+ return globalThis[globalDevServerHooksKey];
9685
+ }
9686
+ function getBuildTimeHeader(request, headerName) {
9687
+ if (typeof process !== "undefined") {
9688
+ try {
9689
+ if (process.env?.IS_RR_BUILD_REQUEST === "yes") {
9690
+ return request.headers.get(headerName);
9691
+ }
9692
+ } catch (e) {
9693
+ }
9694
+ }
9695
+ return null;
9696
+ }
9697
+
9640
9698
  // lib/server-runtime/routes.ts
9641
9699
  function groupRoutesByParentId2(manifest) {
9642
9700
  let routes = {};
@@ -9668,10 +9726,11 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
9668
9726
  // Need to use RR's version in the param typed here to permit the optional
9669
9727
  // context even though we know it'll always be provided in remix
9670
9728
  loader: route.module.loader ? async (args) => {
9671
- if (args.request.headers.has("X-React-Router-Prerender-Data")) {
9672
- const preRenderedData = args.request.headers.get(
9673
- "X-React-Router-Prerender-Data"
9674
- );
9729
+ let preRenderedData = getBuildTimeHeader(
9730
+ args.request,
9731
+ "X-React-Router-Prerender-Data"
9732
+ );
9733
+ if (preRenderedData != null) {
9675
9734
  let encoded = preRenderedData ? decodeURI(preRenderedData) : preRenderedData;
9676
9735
  invariant3(encoded, "Missing prerendered data for route");
9677
9736
  let uint8array = new TextEncoder().encode(encoded);
@@ -9746,15 +9805,6 @@ function createServerHandoffString(serverHandoff) {
9746
9805
  return escapeHtml2(JSON.stringify(serverHandoff));
9747
9806
  }
9748
9807
 
9749
- // lib/server-runtime/dev.ts
9750
- var globalDevServerHooksKey = "__reactRouterDevServerHooks";
9751
- function setDevServerHooks(devServerHooks) {
9752
- globalThis[globalDevServerHooksKey] = devServerHooks;
9753
- }
9754
- function getDevServerHooks() {
9755
- return globalThis[globalDevServerHooksKey];
9756
- }
9757
-
9758
9808
  // lib/server-runtime/single-fetch.ts
9759
9809
  var import_turbo_stream2 = require("turbo-stream");
9760
9810
 
@@ -9825,7 +9875,6 @@ function prependCookies(parentHeaders, childHeaders) {
9825
9875
  }
9826
9876
 
9827
9877
  // lib/server-runtime/single-fetch.ts
9828
- var SINGLE_FETCH_REDIRECT_STATUS = 202;
9829
9878
  var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
9830
9879
  ...NO_BODY_STATUS_CODES,
9831
9880
  304
@@ -10164,9 +10213,10 @@ Error: ${e instanceof Error ? e.toString() : e}`
10164
10213
  if (stripBasename(normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
10165
10214
  normalizedPath = normalizedPath.slice(0, -1);
10166
10215
  }
10216
+ let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
10167
10217
  if (!_build.ssr) {
10168
10218
  if (_build.prerender.length === 0) {
10169
- request.headers.set("X-React-Router-SPA-Mode", "yes");
10219
+ isSpaMode = true;
10170
10220
  } else if (!_build.prerender.includes(normalizedPath) && !_build.prerender.includes(normalizedPath + "/")) {
10171
10221
  if (url.pathname.endsWith(".data")) {
10172
10222
  errorHandler(
@@ -10186,7 +10236,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
10186
10236
  statusText: "Not Found"
10187
10237
  });
10188
10238
  } else {
10189
- request.headers.set("X-React-Router-SPA-Mode", "yes");
10239
+ isSpaMode = true;
10190
10240
  }
10191
10241
  }
10192
10242
  }
@@ -10255,7 +10305,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
10255
10305
  );
10256
10306
  }
10257
10307
  }
10258
- } else if (!request.headers.has("X-React-Router-SPA-Mode") && matches && matches[matches.length - 1].route.module.default == null && matches[matches.length - 1].route.module.ErrorBoundary == null) {
10308
+ } else if (!isSpaMode && matches && matches[matches.length - 1].route.module.default == null && matches[matches.length - 1].route.module.ErrorBoundary == null) {
10259
10309
  response = await handleResourceRequest(
10260
10310
  serverMode,
10261
10311
  _build,
@@ -10280,6 +10330,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
10280
10330
  request,
10281
10331
  loadContext,
10282
10332
  handleError,
10333
+ isSpaMode,
10283
10334
  criticalCss
10284
10335
  );
10285
10336
  }
@@ -10355,8 +10406,7 @@ async function handleSingleFetchRequest(serverMode, build, staticHandler, reques
10355
10406
  );
10356
10407
  return response;
10357
10408
  }
10358
- async function handleDocumentRequest(serverMode, build, staticHandler, request, loadContext, handleError, criticalCss) {
10359
- let isSpaMode = request.headers.has("X-React-Router-SPA-Mode");
10409
+ async function handleDocumentRequest(serverMode, build, staticHandler, request, loadContext, handleError, isSpaMode, criticalCss) {
10360
10410
  try {
10361
10411
  let response = await staticHandler.query(request, {
10362
10412
  requestContext: loadContext,
@@ -10629,7 +10679,7 @@ function createSessionStorage({
10629
10679
  function warnOnceAboutSigningSessionCookie(cookie) {
10630
10680
  warnOnce(
10631
10681
  cookie.isSigned,
10632
- `The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://remix.run/utils/cookies#signing-cookies for more information.`
10682
+ `The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
10633
10683
  );
10634
10684
  }
10635
10685
 
@@ -10745,6 +10795,32 @@ function deserializeErrors2(errors) {
10745
10795
  }
10746
10796
  return serialized;
10747
10797
  }
10798
+
10799
+ // lib/dom/ssr/hydration.tsx
10800
+ function getHydrationData(state, routes, getRouteInfo, location, basename, isSpaMode) {
10801
+ let hydrationData = {
10802
+ ...state,
10803
+ loaderData: { ...state.loaderData }
10804
+ };
10805
+ let initialMatches = matchRoutes(routes, location, basename);
10806
+ if (initialMatches) {
10807
+ for (let match of initialMatches) {
10808
+ let routeId = match.route.id;
10809
+ let routeInfo = getRouteInfo(routeId);
10810
+ if (shouldHydrateRouteLoader(
10811
+ routeId,
10812
+ routeInfo.clientLoader,
10813
+ routeInfo.hasLoader,
10814
+ isSpaMode
10815
+ ) && (routeInfo.hasHydrateFallback || !routeInfo.hasLoader)) {
10816
+ delete hydrationData.loaderData[routeId];
10817
+ } else if (!routeInfo.hasLoader) {
10818
+ hydrationData.loaderData[routeId] = null;
10819
+ }
10820
+ }
10821
+ }
10822
+ return hydrationData;
10823
+ }
10748
10824
  // Annotate the CommonJS export names for ESM import in node:
10749
10825
  0 && (module.exports = {
10750
10826
  Await,
@@ -10790,8 +10866,9 @@ function deserializeErrors2(errors) {
10790
10866
  UNSAFE_createRouter,
10791
10867
  UNSAFE_decodeViaTurboStream,
10792
10868
  UNSAFE_deserializeErrors,
10869
+ UNSAFE_getHydrationData,
10793
10870
  UNSAFE_getPatchRoutesOnNavigationFunction,
10794
- UNSAFE_getSingleFetchDataStrategy,
10871
+ UNSAFE_getTurboStreamSingleFetchDataStrategy,
10795
10872
  UNSAFE_hydrationRouteProperties,
10796
10873
  UNSAFE_invariant,
10797
10874
  UNSAFE_mapRouteProperties,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1
2
+ * react-router v7.5.3-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -71,8 +71,9 @@ import {
71
71
  decodeViaTurboStream,
72
72
  deserializeErrors,
73
73
  generatePath,
74
+ getHydrationData,
74
75
  getPatchRoutesOnNavigationFunction,
75
- getSingleFetchDataStrategy,
76
+ getTurboStreamSingleFetchDataStrategy,
76
77
  href,
77
78
  hydrationRouteProperties,
78
79
  invariant,
@@ -124,7 +125,7 @@ import {
124
125
  useSearchParams,
125
126
  useSubmit,
126
127
  useViewTransitionState
127
- } from "./chunk-SAWFLE7G.mjs";
128
+ } from "./chunk-ZGZJR6R3.mjs";
128
129
  export {
129
130
  Await,
130
131
  BrowserRouter,
@@ -169,8 +170,9 @@ export {
169
170
  createRouter as UNSAFE_createRouter,
170
171
  decodeViaTurboStream as UNSAFE_decodeViaTurboStream,
171
172
  deserializeErrors as UNSAFE_deserializeErrors,
173
+ getHydrationData as UNSAFE_getHydrationData,
172
174
  getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction,
173
- getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy,
175
+ getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy,
174
176
  hydrationRouteProperties as UNSAFE_hydrationRouteProperties,
175
177
  invariant as UNSAFE_invariant,
176
178
  mapRouteProperties as UNSAFE_mapRouteProperties,
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aV as ServerDataFrom, aW as ClientDataFrom, aX as Func, aY as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aZ as Pretty } from '../../route-data-OcOrqK13.mjs';
1
+ import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.mjs';
2
2
  import { A as AppLoadContext } from '../../data-CQbyyGzl.mjs';
3
3
  import 'react';
4
4
 
@@ -1,4 +1,4 @@
1
- import { aE as LinkDescriptor, aB as MetaDescriptor, aV as ServerDataFrom, aW as ClientDataFrom, aX as Func, aY as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aZ as Pretty } from '../../route-data-OcOrqK13.js';
1
+ import { aF as LinkDescriptor, aC as MetaDescriptor, aU as ServerDataFrom, aV as ClientDataFrom, aW as Func, aX as unstable_MiddlewareNextFunction, E as Equal, u as unstable_RouterContextProvider, M as MiddlewareEnabled, aY as Pretty } from '../../route-data-C12CLHiN.js';
2
2
  import { A as AppLoadContext } from '../../data-CQbyyGzl.js';
3
3
  import 'react';
4
4
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1
2
+ * react-router v7.5.3-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v7.5.1
2
+ * react-router v7.5.3-pre.0
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1736,4 +1736,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1736
1736
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1737
1737
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1738
1738
 
1739
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type Router as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type Future as aF, type unstable_SerializesTo as aG, createBrowserHistory as aH, invariant as aI, createRouter as aJ, ErrorResponseImpl as aK, DataRouterContext as aL, DataRouterStateContext as aM, FetchersContext as aN, LocationContext as aO, NavigationContext as aP, RouteContext as aQ, ViewTransitionContext as aR, type RouteModules as aS, type RouteModule as aT, type History as aU, type ServerDataFrom as aV, type ClientDataFrom as aW, type Func as aX, type unstable_MiddlewareNextFunction as aY, type Pretty as aZ, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type RouteManifest as b, type RelativeRoutingType as c, type Location as d, Action as e, type Path as f, type PathPattern as g, type PathMatch as h, type Params as i, type RouteObject as j, type Navigation as k, type RevalidationState as l, type SerializeFrom as m, type Blocker as n, type StaticHandlerContext as o, type StaticHandler as p, type unstable_InitialContext as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, unstable_RouterContextProvider as u, type MetaFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1739
+ export { type DataStrategyResult as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type DataRouteObject as G, type HydrationState as H, type InitialEntry as I, type ClientLoaderFunction as J, type GetScrollPositionFunction as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type GetScrollRestorationKeyFunction as O, type ParamParseKey as P, type Fetcher as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type NavigationStates as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type DataStrategyFunctionArgs as Z, type DataStrategyMatch as _, type Router as a, DataWithResponseInit as a0, type ErrorResponse as a1, type FormEncType as a2, type FormMethod as a3, type HTMLFormMethod as a4, type LazyRouteFunction as a5, type unstable_MiddlewareFunction as a6, type PathParam as a7, type RedirectFunction as a8, type unstable_RouterContext as a9, type HeadersFunction as aA, type MetaArgs as aB, type MetaDescriptor as aC, type PageLinkDescriptor as aD, type HtmlLinkDescriptor as aE, type LinkDescriptor as aF, type Future as aG, type unstable_SerializesTo as aH, createBrowserHistory as aI, invariant as aJ, createRouter as aK, ErrorResponseImpl as aL, DataRouterContext as aM, DataRouterStateContext as aN, FetchersContext as aO, LocationContext as aP, NavigationContext as aQ, RouteContext as aR, ViewTransitionContext as aS, type History as aT, type ServerDataFrom as aU, type ClientDataFrom as aV, type Func as aW, type unstable_MiddlewareNextFunction as aX, type Pretty as aY, type ShouldRevalidateFunction as aa, type ShouldRevalidateFunctionArgs as ab, unstable_createContext as ac, createPath as ad, parsePath as ae, IDLE_NAVIGATION as af, IDLE_FETCHER as ag, IDLE_BLOCKER as ah, data as ai, generatePath as aj, isRouteErrorResponse as ak, matchPath as al, matchRoutes as am, redirect as an, redirectDocument as ao, replace as ap, resolvePath as aq, type DataRouteMatch as ar, type Navigator as as, type PatchRoutesOnNavigationFunction as at, type PatchRoutesOnNavigationFunctionArgs as au, type RouteMatch as av, type ClientActionFunction as aw, type ClientActionFunctionArgs as ax, type ClientLoaderFunctionArgs as ay, type HeadersArgs as az, type RouteModules as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type MetaFunction as w, type LinksFunction as x, type NonIndexRouteObject as y, type RouterState as z };
@@ -1736,4 +1736,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
1736
1736
  type ClientDataFrom<T> = ClientData<DataFrom<T>>;
1737
1737
  type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
1738
1738
 
1739
- export { type FormEncType as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type Fetcher as J, type NavigationStates as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type RouterSubscriber as O, type ParamParseKey as P, type RouterNavigateOptions as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type RouterFetchOptions as V, type DataStrategyFunctionArgs as W, type DataStrategyMatch as X, type DataStrategyResult as Y, DataWithResponseInit as Z, type ErrorResponse as _, type Router as a, type FormMethod as a0, type HTMLFormMethod as a1, type LazyRouteFunction as a2, type unstable_MiddlewareFunction as a3, type PathParam as a4, type RedirectFunction as a5, type unstable_RouterContext as a6, type ShouldRevalidateFunction as a7, type ShouldRevalidateFunctionArgs as a8, unstable_createContext as a9, type MetaArgs as aA, type MetaDescriptor as aB, type PageLinkDescriptor as aC, type HtmlLinkDescriptor as aD, type LinkDescriptor as aE, type Future as aF, type unstable_SerializesTo as aG, createBrowserHistory as aH, invariant as aI, createRouter as aJ, ErrorResponseImpl as aK, DataRouterContext as aL, DataRouterStateContext as aM, FetchersContext as aN, LocationContext as aO, NavigationContext as aP, RouteContext as aQ, ViewTransitionContext as aR, type RouteModules as aS, type RouteModule as aT, type History as aU, type ServerDataFrom as aV, type ClientDataFrom as aW, type Func as aX, type unstable_MiddlewareNextFunction as aY, type Pretty as aZ, createPath as aa, parsePath as ab, IDLE_NAVIGATION as ac, IDLE_FETCHER as ad, IDLE_BLOCKER as ae, data as af, generatePath as ag, isRouteErrorResponse as ah, matchPath as ai, matchRoutes as aj, redirect as ak, redirectDocument as al, replace as am, resolvePath as an, type DataRouteMatch as ao, type DataRouteObject as ap, type Navigator as aq, type PatchRoutesOnNavigationFunction as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunction as aw, type ClientLoaderFunctionArgs as ax, type HeadersArgs as ay, type HeadersFunction as az, type RouteManifest as b, type RelativeRoutingType as c, type Location as d, Action as e, type Path as f, type PathPattern as g, type PathMatch as h, type Params as i, type RouteObject as j, type Navigation as k, type RevalidationState as l, type SerializeFrom as m, type Blocker as n, type StaticHandlerContext as o, type StaticHandler as p, type unstable_InitialContext as q, type IndexRouteObject as r, type LoaderFunction as s, type ActionFunction as t, unstable_RouterContextProvider as u, type MetaFunction as v, type LinksFunction as w, type NonIndexRouteObject as x, type RouterState as y, type GetScrollRestorationKeyFunction as z };
1739
+ export { type DataStrategyResult as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type DataRouteObject as G, type HydrationState as H, type InitialEntry as I, type ClientLoaderFunction as J, type GetScrollPositionFunction as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type GetScrollRestorationKeyFunction as O, type ParamParseKey as P, type Fetcher as Q, type RouterInit as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type NavigationStates as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type DataStrategyFunctionArgs as Z, type DataStrategyMatch as _, type Router as a, DataWithResponseInit as a0, type ErrorResponse as a1, type FormEncType as a2, type FormMethod as a3, type HTMLFormMethod as a4, type LazyRouteFunction as a5, type unstable_MiddlewareFunction as a6, type PathParam as a7, type RedirectFunction as a8, type unstable_RouterContext as a9, type HeadersFunction as aA, type MetaArgs as aB, type MetaDescriptor as aC, type PageLinkDescriptor as aD, type HtmlLinkDescriptor as aE, type LinkDescriptor as aF, type Future as aG, type unstable_SerializesTo as aH, createBrowserHistory as aI, invariant as aJ, createRouter as aK, ErrorResponseImpl as aL, DataRouterContext as aM, DataRouterStateContext as aN, FetchersContext as aO, LocationContext as aP, NavigationContext as aQ, RouteContext as aR, ViewTransitionContext as aS, type History as aT, type ServerDataFrom as aU, type ClientDataFrom as aV, type Func as aW, type unstable_MiddlewareNextFunction as aX, type Pretty as aY, type ShouldRevalidateFunction as aa, type ShouldRevalidateFunctionArgs as ab, unstable_createContext as ac, createPath as ad, parsePath as ae, IDLE_NAVIGATION as af, IDLE_FETCHER as ag, IDLE_BLOCKER as ah, data as ai, generatePath as aj, isRouteErrorResponse as ak, matchPath as al, matchRoutes as am, redirect as an, redirectDocument as ao, replace as ap, resolvePath as aq, type DataRouteMatch as ar, type Navigator as as, type PatchRoutesOnNavigationFunction as at, type PatchRoutesOnNavigationFunctionArgs as au, type RouteMatch as av, type ClientActionFunction as aw, type ClientActionFunctionArgs as ax, type ClientLoaderFunctionArgs as ay, type HeadersArgs as az, type RouteModules as b, type RouteManifest as c, type RelativeRoutingType as d, type Location as e, Action as f, type Path as g, type PathPattern as h, type PathMatch as i, type Params as j, type RouteObject as k, type Navigation as l, type RevalidationState as m, type SerializeFrom as n, type Blocker as o, type StaticHandlerContext as p, type StaticHandler as q, type unstable_InitialContext as r, type IndexRouteObject as s, type LoaderFunction as t, unstable_RouterContextProvider as u, type ActionFunction as v, type MetaFunction as w, type LinksFunction as x, type NonIndexRouteObject as y, type RouterState as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-router",
3
- "version": "7.5.1",
3
+ "version": "7.5.3-pre.0",
4
4
  "description": "Declarative routing for React",
5
5
  "keywords": [
6
6
  "react",