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.
- package/CHANGELOG.md +41 -0
- package/dist/development/browser-BSrXyLft.d.mts +157 -0
- package/dist/development/chunk-P37AORTA.js +21 -0
- package/dist/development/{chunk-QMGIS6GS.mjs → chunk-PUMRC5B5.mjs} +1473 -3024
- package/dist/development/chunk-PY5DBM7W.mjs +2695 -0
- package/dist/development/chunk-X5ZUQHCD.js +10021 -0
- package/dist/development/components-IaVqGBuO.d.mts +816 -0
- package/dist/development/dom-export.d.mts +4 -2
- package/dist/development/dom-export.js +57 -76
- package/dist/development/dom-export.mjs +11 -8
- package/dist/development/index-react-server-client-DOK8MfYF.d.mts +1360 -0
- package/dist/development/{lib-B33EY9A0.d.mts → index-react-server-client-LrDNRnlX.d.ts} +39 -5
- package/dist/development/index-react-server-client.d.mts +4 -0
- package/dist/development/index-react-server-client.d.ts +3 -0
- package/dist/development/index-react-server-client.js +54 -0
- package/dist/development/index-react-server-client.mjs +53 -0
- package/dist/development/index-react-server.d.mts +1863 -0
- package/dist/development/index-react-server.d.ts +1863 -0
- package/dist/development/index-react-server.js +3196 -0
- package/dist/development/index-react-server.mjs +3083 -0
- package/dist/development/index.d.mts +33 -47
- package/dist/development/index.d.ts +195 -2190
- package/dist/development/index.js +2596 -11444
- package/dist/development/index.mjs +33 -18
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -1
- package/dist/development/lib/types/internal.js +2 -20
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/register-DeIo2iHO.d.mts → development/register-DiOIlEq5.d.mts} +1 -1
- package/dist/development/{register-DeIo2iHO.d.mts → register-DiOIlEq5.d.ts} +1 -1
- package/dist/development/{route-data-D7Xbr_Ww.d.mts → route-data-7aXBQ4I3.d.ts} +26 -15
- package/dist/{production/route-data-D7Xbr_Ww.d.mts → development/route-data-DAw7Esur.d.mts} +16 -5
- package/dist/production/browser-BSrXyLft.d.mts +157 -0
- package/dist/production/{chunk-S4Z2UWCU.mjs → chunk-5AMJKWMN.mjs} +1473 -3024
- package/dist/production/chunk-KWWBKJDT.mjs +2695 -0
- package/dist/production/chunk-LKVDO7TU.js +10021 -0
- package/dist/production/chunk-P37AORTA.js +21 -0
- package/dist/production/components-IaVqGBuO.d.mts +816 -0
- package/dist/production/dom-export.d.mts +4 -2
- package/dist/production/dom-export.js +57 -76
- package/dist/production/dom-export.mjs +11 -8
- package/dist/production/index-react-server-client-DOK8MfYF.d.mts +1360 -0
- package/dist/production/{lib-B33EY9A0.d.mts → index-react-server-client-LrDNRnlX.d.ts} +39 -5
- package/dist/production/index-react-server-client.d.mts +4 -0
- package/dist/production/index-react-server-client.d.ts +3 -0
- package/dist/production/index-react-server-client.js +54 -0
- package/dist/production/index-react-server-client.mjs +53 -0
- package/dist/production/index-react-server.d.mts +1863 -0
- package/dist/production/index-react-server.d.ts +1863 -0
- package/dist/production/index-react-server.js +3196 -0
- package/dist/production/index-react-server.mjs +3083 -0
- package/dist/production/index.d.mts +33 -47
- package/dist/production/index.d.ts +195 -2190
- package/dist/production/index.js +2596 -11444
- package/dist/production/index.mjs +33 -18
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -1
- package/dist/production/lib/types/internal.js +2 -20
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/register-DiOIlEq5.d.mts +24 -0
- package/dist/production/register-DiOIlEq5.d.ts +24 -0
- package/dist/production/{register-COAKzST_.d.ts → route-data-7aXBQ4I3.d.ts} +26 -38
- package/dist/{development/register-COAKzST_.d.ts → production/route-data-DAw7Esur.d.mts} +16 -28
- package/package.json +56 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
-
|
|
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
|
+
};
|