react-router 7.6.3 → 7.7.0-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 (64) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/development/browser-BSrXyLft.d.mts +157 -0
  3. package/dist/development/chunk-P37AORTA.js +21 -0
  4. package/dist/development/{chunk-QMGIS6GS.mjs → chunk-PUMRC5B5.mjs} +1473 -3024
  5. package/dist/development/chunk-PY5DBM7W.mjs +2695 -0
  6. package/dist/development/chunk-X5ZUQHCD.js +10021 -0
  7. package/dist/development/components-IaVqGBuO.d.mts +816 -0
  8. package/dist/development/dom-export.d.mts +4 -2
  9. package/dist/development/dom-export.js +57 -76
  10. package/dist/development/dom-export.mjs +11 -8
  11. package/dist/development/index-react-server-client-DOK8MfYF.d.mts +1360 -0
  12. package/dist/development/{lib-B33EY9A0.d.mts → index-react-server-client-LrDNRnlX.d.ts} +39 -5
  13. package/dist/development/index-react-server-client.d.mts +4 -0
  14. package/dist/development/index-react-server-client.d.ts +3 -0
  15. package/dist/development/index-react-server-client.js +54 -0
  16. package/dist/development/index-react-server-client.mjs +53 -0
  17. package/dist/development/index-react-server.d.mts +1863 -0
  18. package/dist/development/index-react-server.d.ts +1863 -0
  19. package/dist/development/index-react-server.js +3196 -0
  20. package/dist/development/index-react-server.mjs +3083 -0
  21. package/dist/development/index.d.mts +33 -47
  22. package/dist/development/index.d.ts +195 -2190
  23. package/dist/development/index.js +2596 -11444
  24. package/dist/development/index.mjs +33 -18
  25. package/dist/development/lib/types/internal.d.mts +2 -2
  26. package/dist/development/lib/types/internal.d.ts +2 -1
  27. package/dist/development/lib/types/internal.js +2 -20
  28. package/dist/development/lib/types/internal.mjs +1 -1
  29. package/dist/{production/register-DeIo2iHO.d.mts → development/register-DiOIlEq5.d.mts} +1 -1
  30. package/dist/development/{register-DeIo2iHO.d.mts → register-DiOIlEq5.d.ts} +1 -1
  31. package/dist/development/{route-data-D7Xbr_Ww.d.mts → route-data-7aXBQ4I3.d.ts} +26 -15
  32. package/dist/{production/route-data-D7Xbr_Ww.d.mts → development/route-data-DAw7Esur.d.mts} +16 -5
  33. package/dist/production/browser-BSrXyLft.d.mts +157 -0
  34. package/dist/production/{chunk-S4Z2UWCU.mjs → chunk-5AMJKWMN.mjs} +1473 -3024
  35. package/dist/production/chunk-KWWBKJDT.mjs +2695 -0
  36. package/dist/production/chunk-LKVDO7TU.js +10021 -0
  37. package/dist/production/chunk-P37AORTA.js +21 -0
  38. package/dist/production/components-IaVqGBuO.d.mts +816 -0
  39. package/dist/production/dom-export.d.mts +4 -2
  40. package/dist/production/dom-export.js +57 -76
  41. package/dist/production/dom-export.mjs +11 -8
  42. package/dist/production/index-react-server-client-DOK8MfYF.d.mts +1360 -0
  43. package/dist/production/{lib-B33EY9A0.d.mts → index-react-server-client-LrDNRnlX.d.ts} +39 -5
  44. package/dist/production/index-react-server-client.d.mts +4 -0
  45. package/dist/production/index-react-server-client.d.ts +3 -0
  46. package/dist/production/index-react-server-client.js +54 -0
  47. package/dist/production/index-react-server-client.mjs +53 -0
  48. package/dist/production/index-react-server.d.mts +1863 -0
  49. package/dist/production/index-react-server.d.ts +1863 -0
  50. package/dist/production/index-react-server.js +3196 -0
  51. package/dist/production/index-react-server.mjs +3083 -0
  52. package/dist/production/index.d.mts +33 -47
  53. package/dist/production/index.d.ts +195 -2190
  54. package/dist/production/index.js +2596 -11444
  55. package/dist/production/index.mjs +33 -18
  56. package/dist/production/lib/types/internal.d.mts +2 -2
  57. package/dist/production/lib/types/internal.d.ts +2 -1
  58. package/dist/production/lib/types/internal.js +2 -20
  59. package/dist/production/lib/types/internal.mjs +1 -1
  60. package/dist/production/register-DiOIlEq5.d.mts +24 -0
  61. package/dist/production/register-DiOIlEq5.d.ts +24 -0
  62. package/dist/production/{register-COAKzST_.d.ts → route-data-7aXBQ4I3.d.ts} +26 -38
  63. package/dist/{development/register-COAKzST_.d.ts → production/route-data-DAw7Esur.d.mts} +16 -28
  64. package/package.json +56 -11
@@ -1,4 +1,4 @@
1
- import { aR as RouteManifest, aS as ServerRouteModule, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, Y as LoaderFunctionArgs, y as ActionFunctionArgs, b as RouteModules, S as StaticHandlerContext, H as HydrationState, k as DataRouteObject, l as ClientLoaderFunction, T as To, aq as NavigateOptions, s as BlockerFunction, B as Blocker, aT as SerializeFrom, r as RelativeRoutingType, L as Location, _ as ParamParseKey, m as Path, a2 as PathPattern, a0 as PathMatch, a7 as UIMatch, p as Navigation, aa as Action, $ as Params, a as Router$1, c as RouteObject, e as IndexRouteObject, X as LazyRouteFunction, N as NonIndexRouteObject, R as RouterInit, F as FutureConfig$1, I as InitialEntry, D as DataStrategyFunction, P as PatchRoutesOnNavigationFunction, ar as Navigator, at as RouteMatch, W as HTMLFormMethod, U as FormEncType, aB as PageLinkDescriptor, aU as History, n as GetScrollRestorationKeyFunction, o as Fetcher } from './route-data-D7Xbr_Ww.mjs';
1
+ import { aY as RouteManifest, aZ as ServerRouteModule, m as MiddlewareEnabled, l as unstable_RouterContextProvider, k as AppLoadContext, a9 as LoaderFunctionArgs, $ as ActionFunctionArgs, e as RouteModules, J as StaticHandlerContext, H as HydrationState, x as DataRouteObject, p as ClientLoaderFunction, T as To, aA as NavigateOptions, W as BlockerFunction, V as Blocker, a_ as SerializeFrom, U as RelativeRoutingType, a as Location, ab as ParamParseKey, y as Path, ae as PathPattern, ac as PathMatch, ai as UIMatch, O as Navigation, ak as Action, s as Params, d as Router$1, aE as RouteObject, I as InitialEntry, j as NonIndexRouteObject, a8 as LazyRouteFunction, f as IndexRouteObject, aB as Navigator, t as RouterInit, a$ as FutureConfig$1, D as DataStrategyFunction, w as PatchRoutesOnNavigationFunction, aD as RouteMatch, a7 as HTMLFormMethod, a5 as FormEncType, aJ as PageLinkDescriptor, b0 as History, F as GetScrollRestorationKeyFunction, K as Fetcher, b1 as CreateStaticHandlerOptions$1, z as StaticHandler } from './route-data-7aXBQ4I3.js';
2
2
  import * as React from 'react';
3
3
 
4
4
  type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
@@ -1159,9 +1159,6 @@ type ScriptsProps = Omit<React.HTMLProps<HTMLScriptElement>, "children" | "async
1159
1159
  */
1160
1160
  declare function Scripts(props: ScriptsProps): React.JSX.Element | null;
1161
1161
 
1162
- declare global {
1163
- const REACT_ROUTER_VERSION: string;
1164
- }
1165
1162
  /**
1166
1163
  * @category Routers
1167
1164
  */
@@ -2134,4 +2131,41 @@ declare function useViewTransitionState(to: To, opts?: {
2134
2131
  relative?: RelativeRoutingType;
2135
2132
  }): boolean;
2136
2133
 
2137
- export { type BrowserRouterProps as $, type AssetsManifest as A, useLoaderData as B, useLocation as C, useMatch as D, type EntryContext as E, type FutureConfig as F, useMatches as G, type HydrateFallbackType as H, type IndexRouteProps as I, useNavigate as J, useNavigation as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, useNavigationType as Q, type RouterProviderProps as R, type ServerBuild as S, useOutlet as T, useOutletContext as U, useParams as V, useResolvedPath as W, useRevalidator as X, useRouteError as Y, useRouteLoaderData as Z, useRoutes as _, type RouteComponentType as a, type DOMRouterOpts as a0, type HashRouterProps as a1, type HistoryRouterProps as a2, type LinkProps as a3, type NavLinkProps as a4, type NavLinkRenderProps as a5, type FetcherFormProps as a6, type FormProps as a7, type ScrollRestorationProps as a8, type SetURLSearchParams as a9, createSearchParams as aA, Meta as aB, Links as aC, Scripts as aD, PrefetchPageLinks as aE, type ScriptsProps as aF, type HandleDataRequestFunction as aG, type HandleDocumentRequestFunction as aH, type HandleErrorFunction as aI, type ServerEntryModule as aJ, hydrationRouteProperties as aK, mapRouteProperties as aL, withComponentProps as aM, withHydrateFallbackProps as aN, withErrorBoundaryProps as aO, FrameworkContext as aP, createClientRoutes as aQ, createClientRoutesWithHMRRevalidationOptOut as aR, shouldHydrateRouteLoader as aS, useScrollRestoration as aT, type SubmitFunction as aa, type FetcherSubmitFunction as ab, type FetcherWithComponents as ac, createBrowserRouter as ad, createHashRouter as ae, BrowserRouter as af, HashRouter as ag, Link as ah, HistoryRouter as ai, NavLink as aj, Form as ak, ScrollRestoration as al, useLinkClickHandler as am, useSearchParams as an, useSubmit as ao, useFormAction as ap, useFetcher as aq, useFetchers as ar, useBeforeUnload as as, usePrompt as at, useViewTransitionState as au, type FetcherSubmitOptions as av, type ParamKeyValuePair as aw, type SubmitOptions as ax, type URLSearchParamsInit as ay, type SubmitTarget as az, type ErrorBoundaryType as b, type AwaitProps as c, type MemoryRouterProps as d, type RouteProps as e, type RouterProps as f, type RoutesProps as g, Await as h, MemoryRouter as i, Navigate as j, Outlet as k, Route as l, Router as m, RouterProvider as n, Routes as o, createMemoryRouter as p, createRoutesFromChildren as q, createRoutesFromElements as r, renderMatches as s, type NavigateFunction as t, useBlocker as u, useActionData as v, useAsyncError as w, useAsyncValue as x, useHref as y, useInRouterContext as z };
2134
+ interface StaticRouterProps {
2135
+ basename?: string;
2136
+ children?: React.ReactNode;
2137
+ location: Partial<Location> | string;
2138
+ }
2139
+ /**
2140
+ * A `<Router>` that may not navigate to any other location. This is useful
2141
+ * on the server where there is no stateful UI.
2142
+ *
2143
+ * @category Component Routers
2144
+ */
2145
+ declare function StaticRouter({ basename, children, location: locationProp, }: StaticRouterProps): React.JSX.Element;
2146
+ interface StaticRouterProviderProps {
2147
+ context: StaticHandlerContext;
2148
+ router: Router$1;
2149
+ hydrate?: boolean;
2150
+ nonce?: string;
2151
+ }
2152
+ /**
2153
+ * A Data Router that may not navigate to any other location. This is useful
2154
+ * on the server where there is no stateful UI.
2155
+ *
2156
+ * @category Component Routers
2157
+ */
2158
+ declare function StaticRouterProvider({ context, router, hydrate, nonce, }: StaticRouterProviderProps): React.JSX.Element;
2159
+ type CreateStaticHandlerOptions = Omit<CreateStaticHandlerOptions$1, "mapRouteProperties">;
2160
+ /**
2161
+ * @category Utils
2162
+ */
2163
+ declare function createStaticHandler(routes: RouteObject[], opts?: CreateStaticHandlerOptions): StaticHandler;
2164
+ /**
2165
+ * @category Data Routers
2166
+ */
2167
+ declare function createStaticRouter(routes: RouteObject[], context: StaticHandlerContext, opts?: {
2168
+ future?: Partial<FutureConfig$1>;
2169
+ }): Router$1;
2170
+
2171
+ export { type BrowserRouterProps as $, type AssetsManifest as A, useLoaderData as B, useLocation as C, useMatch as D, type EntryContext as E, type FutureConfig as F, useMatches as G, type HydrateFallbackType as H, type IndexRouteProps as I, useNavigate as J, useNavigation as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, useNavigationType as Q, type RouteComponentType as R, type ServerBuild as S, useOutlet as T, useOutletContext as U, useParams as V, useResolvedPath as W, useRevalidator as X, useRouteError as Y, useRouteLoaderData as Z, useRoutes as _, type ErrorBoundaryType as a, type DOMRouterOpts as a0, type HashRouterProps as a1, type HistoryRouterProps as a2, type LinkProps as a3, type NavLinkProps as a4, type NavLinkRenderProps as a5, type FetcherFormProps as a6, type FormProps as a7, type ScrollRestorationProps as a8, type SetURLSearchParams as a9, createSearchParams as aA, type StaticRouterProps as aB, type StaticRouterProviderProps as aC, createStaticHandler as aD, createStaticRouter as aE, StaticRouter as aF, StaticRouterProvider as aG, Meta as aH, Links as aI, Scripts as aJ, PrefetchPageLinks as aK, type ScriptsProps as aL, type HandleDataRequestFunction as aM, type HandleDocumentRequestFunction as aN, type HandleErrorFunction as aO, type ServerEntryModule as aP, hydrationRouteProperties as aQ, mapRouteProperties as aR, withComponentProps as aS, withHydrateFallbackProps as aT, withErrorBoundaryProps as aU, FrameworkContext as aV, createClientRoutes as aW, createClientRoutesWithHMRRevalidationOptOut as aX, shouldHydrateRouteLoader as aY, useScrollRestoration as aZ, type SubmitFunction as aa, type FetcherSubmitFunction as ab, type FetcherWithComponents as ac, createBrowserRouter as ad, createHashRouter as ae, BrowserRouter as af, HashRouter as ag, Link as ah, HistoryRouter as ai, NavLink as aj, Form as ak, ScrollRestoration as al, useLinkClickHandler as am, useSearchParams as an, useSubmit as ao, useFormAction as ap, useFetcher as aq, useFetchers as ar, useBeforeUnload as as, usePrompt as at, useViewTransitionState as au, type FetcherSubmitOptions as av, type ParamKeyValuePair as aw, type SubmitOptions as ax, type URLSearchParamsInit as ay, type SubmitTarget as az, type AwaitProps as b, type MemoryRouterProps as c, type RouteProps as d, type RouterProps as e, type RouterProviderProps as f, type RoutesProps as g, Await as h, MemoryRouter as i, Navigate as j, Outlet as k, Route as l, Router as m, RouterProvider as n, Routes as o, createMemoryRouter as p, createRoutesFromChildren as q, createRoutesFromElements as r, renderMatches as s, type NavigateFunction as t, useBlocker as u, useActionData as v, useAsyncError as w, useAsyncValue as x, useHref as y, useInRouterContext as z };
@@ -0,0 +1,4 @@
1
+ export { f as Await, g as MemoryRouter, h as Navigate, i as Outlet, j as Route, k as Router, l as RouterProvider, m as Routes } from './components-IaVqGBuO.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-DOK8MfYF.mjs';
3
+ import './route-data-DAw7Esur.mjs';
4
+ import 'react';
@@ -0,0 +1,3 @@
1
+ export { h as Await, af as BrowserRouter, ak as Form, ag as HashRouter, ah as Link, aI as Links, i as MemoryRouter, aH as Meta, aj as NavLink, j as Navigate, k as Outlet, l as Route, m as Router, n as RouterProvider, o as Routes, al as ScrollRestoration, aF as StaticRouter, aG as StaticRouterProvider, ai as unstable_HistoryRouter } from './index-react-server-client-LrDNRnlX.js';
2
+ import './route-data-7aXBQ4I3.js';
3
+ import 'react';
@@ -0,0 +1,54 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
2
+ * react-router v7.7.0-pre.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ "use client";
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+ var _chunkX5ZUQHCDjs = require('./chunk-X5ZUQHCD.js');
33
+ require('./chunk-P37AORTA.js');
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+ exports.Await = _chunkX5ZUQHCDjs.Await; exports.BrowserRouter = _chunkX5ZUQHCDjs.BrowserRouter; exports.Form = _chunkX5ZUQHCDjs.Form; exports.HashRouter = _chunkX5ZUQHCDjs.HashRouter; exports.Link = _chunkX5ZUQHCDjs.Link; exports.Links = _chunkX5ZUQHCDjs.Links; exports.MemoryRouter = _chunkX5ZUQHCDjs.MemoryRouter; exports.Meta = _chunkX5ZUQHCDjs.Meta; exports.NavLink = _chunkX5ZUQHCDjs.NavLink; exports.Navigate = _chunkX5ZUQHCDjs.Navigate; exports.Outlet = _chunkX5ZUQHCDjs.Outlet; exports.Route = _chunkX5ZUQHCDjs.Route; exports.Router = _chunkX5ZUQHCDjs.Router; exports.RouterProvider = _chunkX5ZUQHCDjs.RouterProvider; exports.Routes = _chunkX5ZUQHCDjs.Routes; exports.ScrollRestoration = _chunkX5ZUQHCDjs.ScrollRestoration; exports.StaticRouter = _chunkX5ZUQHCDjs.StaticRouter; exports.StaticRouterProvider = _chunkX5ZUQHCDjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkX5ZUQHCDjs.HistoryRouter;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * react-router v7.7.0-pre.0
3
+ *
4
+ * Copyright (c) Remix Software Inc.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE.md file in the root directory of this source tree.
8
+ *
9
+ * @license MIT
10
+ */
11
+ "use client";
12
+ import {
13
+ Await,
14
+ BrowserRouter,
15
+ Form,
16
+ HashRouter,
17
+ HistoryRouter,
18
+ Link,
19
+ Links,
20
+ MemoryRouter,
21
+ Meta,
22
+ NavLink,
23
+ Navigate,
24
+ Outlet,
25
+ Route,
26
+ Router,
27
+ RouterProvider,
28
+ Routes,
29
+ ScrollRestoration,
30
+ StaticRouter,
31
+ StaticRouterProvider
32
+ } from "./chunk-PUMRC5B5.mjs";
33
+ export {
34
+ Await,
35
+ BrowserRouter,
36
+ Form,
37
+ HashRouter,
38
+ Link,
39
+ Links,
40
+ MemoryRouter,
41
+ Meta,
42
+ NavLink,
43
+ Navigate,
44
+ Outlet,
45
+ Route,
46
+ Router,
47
+ RouterProvider,
48
+ Routes,
49
+ ScrollRestoration,
50
+ StaticRouter,
51
+ StaticRouterProvider,
52
+ HistoryRouter as unstable_HistoryRouter
53
+ };