react-router 0.0.0-experimental-b588f7e → 0.0.0-experimental-23decd7bc
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 +28 -0
- package/dist/development/browser-CmIT056Z.d.mts +154 -0
- package/dist/development/chunk-3E3CD4NY.mjs +2669 -0
- package/dist/development/{chunk-3HOZPCHX.mjs → chunk-GJVCYY62.mjs} +1445 -3021
- package/dist/development/chunk-H2M6MMUH.js +10007 -0
- package/dist/development/chunk-I3MHZ4NU.js +21 -0
- package/dist/development/components-CwtESh53.d.mts +816 -0
- package/dist/development/dom-export.d.mts +4 -2
- package/dist/development/dom-export.js +53 -72
- package/dist/development/dom-export.mjs +7 -4
- package/dist/development/index-react-server-client-CzKQ01cq.d.mts +1360 -0
- package/dist/development/{lib-oW7CoPA6.d.mts → index-react-server-client-unV28389.d.ts} +39 -39
- 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 +1861 -0
- package/dist/development/index-react-server.d.ts +1861 -0
- package/dist/development/index-react-server.js +3137 -0
- package/dist/development/index-react-server.mjs +3025 -0
- package/dist/development/index.d.mts +32 -46
- package/dist/development/index.d.ts +191 -2223
- package/dist/development/index.js +2577 -11464
- package/dist/development/index.mjs +33 -22
- package/dist/development/lib/types/internal.d.mts +8 -72
- package/dist/development/lib/types/internal.d.ts +8 -71
- 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-ByAYLHuM.d.mts → route-data-Csr8hE3v.d.mts} +80 -3
- package/dist/{production/register-DCE0tH5m.d.ts → development/route-data-x_b_BLCv.d.ts} +90 -36
- package/dist/production/browser-CmIT056Z.d.mts +154 -0
- package/dist/production/chunk-7TUGB72O.js +10007 -0
- package/dist/production/chunk-I3MHZ4NU.js +21 -0
- package/dist/production/chunk-XNTCWHOK.mjs +2669 -0
- package/dist/production/{chunk-UROK22QK.mjs → chunk-YWCG2M57.mjs} +1445 -3021
- package/dist/production/components-CwtESh53.d.mts +816 -0
- package/dist/production/dom-export.d.mts +4 -2
- package/dist/production/dom-export.js +53 -72
- package/dist/production/dom-export.mjs +7 -4
- package/dist/production/index-react-server-client-CzKQ01cq.d.mts +1360 -0
- package/dist/production/{lib-oW7CoPA6.d.mts → index-react-server-client-unV28389.d.ts} +39 -39
- 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 +1861 -0
- package/dist/production/index-react-server.d.ts +1861 -0
- package/dist/production/index-react-server.js +3137 -0
- package/dist/production/index-react-server.mjs +3025 -0
- package/dist/production/index.d.mts +32 -46
- package/dist/production/index.d.ts +191 -2223
- package/dist/production/index.js +2577 -11464
- package/dist/production/index.mjs +33 -22
- package/dist/production/lib/types/internal.d.mts +8 -72
- package/dist/production/lib/types/internal.d.ts +8 -71
- 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/{development/register-DCE0tH5m.d.ts → production/route-data-Csr8hE3v.d.mts} +80 -26
- package/dist/production/{route-data-ByAYLHuM.d.mts → route-data-x_b_BLCv.d.ts} +90 -13
- package/package.json +49 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aY as RouteManifest, aZ as ServerRouteModule, l as MiddlewareEnabled, aj as unstable_RouterContextProvider, m as AppLoadContext, a8 as LoaderFunctionArgs, _ as ActionFunctionArgs, e as RouteModules, B as StaticHandlerContext, H as HydrationState, v as DataRouteObject, o as ClientLoaderFunction, T as To, aA as NavigateOptions, U as BlockerFunction, Q as Blocker, a_ as SerializeFrom, O as RelativeRoutingType, a as Location, aa as ParamParseKey, w as Path, ad as PathPattern, ab as PathMatch, ah as UIMatch, J as Navigation, ak as Action, r as Params, d as Router$1, aE as RouteObject, I as InitialEntry, j as NonIndexRouteObject, a7 as LazyRouteFunction, f as IndexRouteObject, aB as Navigator, V as RouterInit, a$ as FutureConfig$1, D as DataStrategyFunction, t as PatchRoutesOnNavigationFunction, aD as RouteMatch, a6 as HTMLFormMethod, a4 as FormEncType, aJ as PageLinkDescriptor, b0 as History, z as GetScrollRestorationKeyFunction, F as Fetcher, b1 as CreateStaticHandlerOptions$1, x as StaticHandler } from './route-data-x_b_BLCv.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -311,13 +311,6 @@ declare function useResolvedPath(to: To, { relative }?: {
|
|
|
311
311
|
@category Hooks
|
|
312
312
|
*/
|
|
313
313
|
declare function useRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null;
|
|
314
|
-
/**
|
|
315
|
-
* Returns the element of the route that matched the current location using
|
|
316
|
-
* absolute path matching, prepared with the correct context to render the
|
|
317
|
-
* remainder of the route tree. Route elements in the tree must render an
|
|
318
|
-
* `<Outlet>` to render their child route's element.
|
|
319
|
-
*/
|
|
320
|
-
declare function useAbsoluteRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null;
|
|
321
314
|
/**
|
|
322
315
|
Returns the current navigation, defaulting to an "idle" navigation when no navigation is in progress. You can use this to render pending UI (like a global spinner) or read FormData from a form navigation.
|
|
323
316
|
|
|
@@ -753,33 +746,6 @@ interface RoutesProps {
|
|
|
753
746
|
@category Components
|
|
754
747
|
*/
|
|
755
748
|
declare function Routes({ children, location, }: RoutesProps): React.ReactElement | null;
|
|
756
|
-
interface AbsoluteRoutesProps extends RoutesProps {
|
|
757
|
-
}
|
|
758
|
-
/**
|
|
759
|
-
* An alternate implementation of `<Routes>` that expects absolute paths even
|
|
760
|
-
* when used as descendant routes. Note that these routes do not participate in
|
|
761
|
-
* data loading, actions, code splitting, or any other route module features.
|
|
762
|
-
*
|
|
763
|
-
* ```tsx
|
|
764
|
-
* import { unstable_AbsoluteRoutes as AbsoluteRoutes, Route } from "react-router"
|
|
765
|
-
*
|
|
766
|
-
* <AbsoluteRoutes>
|
|
767
|
-
* <Route path="/dashboard/*" element={<Dashboard />} />
|
|
768
|
-
* </AbsoluteRoutes>
|
|
769
|
-
*
|
|
770
|
-
* function Dashboard() {
|
|
771
|
-
* return (
|
|
772
|
-
* <AbsoluteRoutes>
|
|
773
|
-
* <Route path="/dashboard/settings" element={<Settings />} />
|
|
774
|
-
* <Route path="/dashboard/users" element={<Users />} />
|
|
775
|
-
* </AbsoluteRoutes>
|
|
776
|
-
* );
|
|
777
|
-
* }
|
|
778
|
-
* ```
|
|
779
|
-
*
|
|
780
|
-
* @category Components
|
|
781
|
-
*/
|
|
782
|
-
declare function AbsoluteRoutes({ children, location, }: AbsoluteRoutesProps): React.ReactElement | null;
|
|
783
749
|
interface AwaitResolveRenderFunction<Resolve = any> {
|
|
784
750
|
(data: Awaited<Resolve>): React.ReactNode;
|
|
785
751
|
}
|
|
@@ -1193,9 +1159,6 @@ type ScriptsProps = Omit<React.HTMLProps<HTMLScriptElement>, "children" | "async
|
|
|
1193
1159
|
*/
|
|
1194
1160
|
declare function Scripts(props: ScriptsProps): React.JSX.Element | null;
|
|
1195
1161
|
|
|
1196
|
-
declare global {
|
|
1197
|
-
const REACT_ROUTER_VERSION: string;
|
|
1198
|
-
}
|
|
1199
1162
|
/**
|
|
1200
1163
|
* @category Routers
|
|
1201
1164
|
*/
|
|
@@ -2168,4 +2131,41 @@ declare function useViewTransitionState(to: To, opts?: {
|
|
|
2168
2131
|
relative?: RelativeRoutingType;
|
|
2169
2132
|
}): boolean;
|
|
2170
2133
|
|
|
2171
|
-
|
|
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-CwtESh53.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-CzKQ01cq.mjs';
|
|
3
|
+
import './route-data-Csr8hE3v.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-unV28389.js';
|
|
2
|
+
import './route-data-x_b_BLCv.js';
|
|
3
|
+
import 'react';
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
+
* react-router v0.0.0-experimental-23decd7bc
|
|
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 _chunkH2M6MMUHjs = require('./chunk-H2M6MMUH.js');
|
|
33
|
+
require('./chunk-I3MHZ4NU.js');
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
exports.Await = _chunkH2M6MMUHjs.Await; exports.BrowserRouter = _chunkH2M6MMUHjs.BrowserRouter; exports.Form = _chunkH2M6MMUHjs.Form; exports.HashRouter = _chunkH2M6MMUHjs.HashRouter; exports.Link = _chunkH2M6MMUHjs.Link; exports.Links = _chunkH2M6MMUHjs.Links; exports.MemoryRouter = _chunkH2M6MMUHjs.MemoryRouter; exports.Meta = _chunkH2M6MMUHjs.Meta; exports.NavLink = _chunkH2M6MMUHjs.NavLink; exports.Navigate = _chunkH2M6MMUHjs.Navigate; exports.Outlet = _chunkH2M6MMUHjs.Outlet; exports.Route = _chunkH2M6MMUHjs.Route; exports.Router = _chunkH2M6MMUHjs.Router; exports.RouterProvider = _chunkH2M6MMUHjs.RouterProvider; exports.Routes = _chunkH2M6MMUHjs.Routes; exports.ScrollRestoration = _chunkH2M6MMUHjs.ScrollRestoration; exports.StaticRouter = _chunkH2M6MMUHjs.StaticRouter; exports.StaticRouterProvider = _chunkH2M6MMUHjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkH2M6MMUHjs.HistoryRouter;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* react-router v0.0.0-experimental-23decd7bc
|
|
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-GJVCYY62.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
|
+
};
|