react-router 0.0.0-experimental-e5dac68cb → 0.0.0-experimental-7a7fadb20
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/dist/development/browser-DYcG-QSM.d.mts +141 -0
- package/dist/development/chunk-4PKQ3FOF.js +9993 -0
- package/dist/development/chunk-6INYUTQB.mjs +2652 -0
- package/dist/development/chunk-6XDF4OYY.mjs +2991 -0
- package/dist/development/{chunk-USQXBNSR.mjs → chunk-AKAWRHPI.mjs} +758 -3325
- package/dist/development/chunk-E2PM7G4R.js +21 -0
- package/dist/development/chunk-VYGMX5VG.js +3027 -0
- package/dist/development/components-CwtESh53.d.mts +816 -0
- package/dist/development/dom-export.d.mts +3 -2
- package/dist/development/dom-export.js +52 -72
- package/dist/development/dom-export.mjs +6 -4
- package/dist/development/index-react-server-client-CzKQ01cq.d.mts +1360 -0
- package/dist/development/{browser-Bh26Omrk.d.mts → index-react-server-client-unV28389.d.ts} +35 -91
- 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 +1853 -0
- package/dist/development/index-react-server.d.ts +1853 -0
- package/dist/development/index-react-server.js +143 -0
- package/dist/development/index-react-server.mjs +2 -0
- package/dist/development/index.d.mts +14 -45
- package/dist/development/index.d.ts +72 -2189
- package/dist/development/index.js +469 -10355
- package/dist/development/index.mjs +26 -24
- 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-C8_wxpLo.d.mts → route-data-Csr8hE3v.d.mts} +1 -1
- package/dist/{production/route-data-C8_wxpLo.d.mts → development/route-data-x_b_BLCv.d.ts} +11 -11
- package/dist/development/rsc-export.d.mts +4 -1851
- package/dist/development/rsc-export.d.ts +4 -1851
- package/dist/development/rsc-export.js +60 -3028
- package/dist/development/rsc-export.mjs +1 -2998
- package/dist/production/browser-DYcG-QSM.d.mts +141 -0
- package/dist/production/chunk-3N2A6GWE.mjs +2652 -0
- package/dist/production/chunk-6XDF4OYY.mjs +2991 -0
- package/dist/production/{chunk-SB3D2OAU.mjs → chunk-C3BEU4Q6.mjs} +758 -3325
- package/dist/production/chunk-E2PM7G4R.js +21 -0
- package/dist/production/chunk-OLHXXGX4.js +9993 -0
- package/dist/production/chunk-VYGMX5VG.js +3027 -0
- package/dist/production/components-CwtESh53.d.mts +816 -0
- package/dist/production/dom-export.d.mts +3 -2
- package/dist/production/dom-export.js +52 -72
- package/dist/production/dom-export.mjs +6 -4
- package/dist/production/index-react-server-client-CzKQ01cq.d.mts +1360 -0
- package/dist/production/{browser-Bh26Omrk.d.mts → index-react-server-client-unV28389.d.ts} +35 -91
- 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 +1853 -0
- package/dist/production/index-react-server.d.ts +1853 -0
- package/dist/production/index-react-server.js +143 -0
- package/dist/production/index-react-server.mjs +2 -0
- package/dist/production/index.d.mts +14 -45
- package/dist/production/index.d.ts +72 -2189
- package/dist/production/index.js +469 -10355
- package/dist/production/index.mjs +26 -24
- 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-BEmY26MO.d.ts → route-data-Csr8hE3v.d.mts} +1 -24
- package/dist/{development/register-BEmY26MO.d.ts → production/route-data-x_b_BLCv.d.ts} +11 -34
- package/dist/production/rsc-export.d.mts +4 -1851
- package/dist/production/rsc-export.d.ts +4 -1851
- package/dist/production/rsc-export.js +60 -3028
- package/dist/production/rsc-export.mjs +1 -2998
- package/package.json +20 -24
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-7a7fadb20
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9,6 +9,29 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
"use client";
|
|
12
|
+
import {
|
|
13
|
+
RSCDefaultRootErrorBoundary,
|
|
14
|
+
RSCHydratedRouter,
|
|
15
|
+
RSCStaticRouter,
|
|
16
|
+
ServerMode,
|
|
17
|
+
ServerRouter,
|
|
18
|
+
createCallServer,
|
|
19
|
+
createCookie,
|
|
20
|
+
createCookieSessionStorage,
|
|
21
|
+
createMemorySessionStorage,
|
|
22
|
+
createRequestHandler,
|
|
23
|
+
createRoutesStub,
|
|
24
|
+
createSession,
|
|
25
|
+
createSessionStorage,
|
|
26
|
+
deserializeErrors,
|
|
27
|
+
getHydrationData,
|
|
28
|
+
getServerStream,
|
|
29
|
+
href,
|
|
30
|
+
isCookie,
|
|
31
|
+
isSession,
|
|
32
|
+
routeRSCServerRequest,
|
|
33
|
+
setDevServerHooks
|
|
34
|
+
} from "./chunk-3N2A6GWE.mjs";
|
|
12
35
|
import {
|
|
13
36
|
Action,
|
|
14
37
|
Await,
|
|
@@ -34,9 +57,6 @@ import {
|
|
|
34
57
|
NavigationContext,
|
|
35
58
|
Outlet,
|
|
36
59
|
PrefetchPageLinks,
|
|
37
|
-
RSCDefaultRootErrorBoundary,
|
|
38
|
-
RSCHydratedRouter,
|
|
39
|
-
RSCStaticRouter,
|
|
40
60
|
RemixErrorBoundary,
|
|
41
61
|
Route,
|
|
42
62
|
RouteContext,
|
|
@@ -45,47 +65,31 @@ import {
|
|
|
45
65
|
Routes,
|
|
46
66
|
Scripts,
|
|
47
67
|
ScrollRestoration,
|
|
48
|
-
ServerMode,
|
|
49
|
-
ServerRouter,
|
|
50
68
|
SingleFetchRedirectSymbol,
|
|
51
69
|
StaticRouter,
|
|
52
70
|
StaticRouterProvider,
|
|
53
71
|
ViewTransitionContext,
|
|
54
72
|
createBrowserHistory,
|
|
55
73
|
createBrowserRouter,
|
|
56
|
-
createCallServer,
|
|
57
74
|
createClientRoutes,
|
|
58
75
|
createClientRoutesWithHMRRevalidationOptOut,
|
|
59
|
-
createCookie,
|
|
60
|
-
createCookieSessionStorage,
|
|
61
76
|
createHashRouter,
|
|
62
77
|
createMemoryRouter,
|
|
63
|
-
createMemorySessionStorage,
|
|
64
78
|
createPath,
|
|
65
|
-
createRequestHandler,
|
|
66
79
|
createRouter,
|
|
67
80
|
createRoutesFromChildren,
|
|
68
81
|
createRoutesFromElements,
|
|
69
|
-
createRoutesStub,
|
|
70
82
|
createSearchParams,
|
|
71
|
-
|
|
72
|
-
createSessionStorage,
|
|
73
|
-
createStaticHandler,
|
|
83
|
+
createStaticHandler2 as createStaticHandler,
|
|
74
84
|
createStaticRouter,
|
|
75
85
|
data,
|
|
76
86
|
decodeViaTurboStream,
|
|
77
|
-
deserializeErrors,
|
|
78
87
|
generatePath,
|
|
79
|
-
getHydrationData,
|
|
80
88
|
getPatchRoutesOnNavigationFunction,
|
|
81
|
-
getServerStream,
|
|
82
89
|
getTurboStreamSingleFetchDataStrategy,
|
|
83
|
-
href,
|
|
84
90
|
hydrationRouteProperties,
|
|
85
91
|
invariant,
|
|
86
|
-
isCookie,
|
|
87
92
|
isRouteErrorResponse,
|
|
88
|
-
isSession,
|
|
89
93
|
mapRouteProperties,
|
|
90
94
|
matchPath,
|
|
91
95
|
matchRoutes,
|
|
@@ -95,8 +99,6 @@ import {
|
|
|
95
99
|
renderMatches,
|
|
96
100
|
replace,
|
|
97
101
|
resolvePath,
|
|
98
|
-
routeRSCServerRequest,
|
|
99
|
-
setDevServerHooks,
|
|
100
102
|
shouldHydrateRouteLoader,
|
|
101
103
|
unstable_RouterContextProvider,
|
|
102
104
|
unstable_createContext,
|
|
@@ -135,7 +137,7 @@ import {
|
|
|
135
137
|
withComponentProps,
|
|
136
138
|
withErrorBoundaryProps,
|
|
137
139
|
withHydrateFallbackProps
|
|
138
|
-
} from "./chunk-
|
|
140
|
+
} from "./chunk-C3BEU4Q6.mjs";
|
|
139
141
|
export {
|
|
140
142
|
Await,
|
|
141
143
|
BrowserRouter,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { v as RouteModule, w as LinkDescriptor, L as Location, x as Pretty, y as MetaDescriptor, G as GetLoaderData, z as ServerDataFunctionArgs, E as unstable_MiddlewareNextFunction, J as ClientDataFunctionArgs, K as ServerDataFrom, O as Normalize, Q as GetActionData } from '../../route-data-Csr8hE3v.mjs';
|
|
2
|
+
import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { R as RouteModule, L as LinkDescriptor, a as Location, P as Pretty, M as MetaDescriptor, G as GetLoaderData, S as ServerDataFunctionArgs, u as unstable_MiddlewareNextFunction, C as ClientDataFunctionArgs, b as ServerDataFrom, N as Normalize, c as GetActionData } from '../../route-data-x_b_BLCv.js';
|
|
2
|
+
import { R as RouteFiles, P as Pages } from '../../register-DiOIlEq5.js';
|
|
2
3
|
import 'react';
|
|
3
4
|
|
|
4
5
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
1
|
+
"use strict";/**
|
|
2
|
+
* react-router v0.0.0-experimental-7a7fadb20
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,21 +8,3 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
-
"use strict";
|
|
12
|
-
var __defProp = Object.defineProperty;
|
|
13
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
14
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
15
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
-
for (let key of __getOwnPropNames(from))
|
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
-
}
|
|
22
|
-
return to;
|
|
23
|
-
};
|
|
24
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
|
-
|
|
26
|
-
// lib/types/internal.ts
|
|
27
|
-
var internal_exports = {};
|
|
28
|
-
module.exports = __toCommonJS(internal_exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
3
|
+
* React Router should handle this for you via type generation.
|
|
4
|
+
*
|
|
5
|
+
* For more on declaration merging and module augmentation, see https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation .
|
|
6
|
+
*/
|
|
7
|
+
interface Register {
|
|
8
|
+
}
|
|
9
|
+
type AnyParams = Record<string, string | undefined>;
|
|
10
|
+
type AnyPages = Record<string, {
|
|
11
|
+
params: AnyParams;
|
|
12
|
+
}>;
|
|
13
|
+
type Pages = Register extends {
|
|
14
|
+
pages: infer Registered extends AnyPages;
|
|
15
|
+
} ? Registered : AnyPages;
|
|
16
|
+
type AnyRouteFiles = Record<string, {
|
|
17
|
+
id: string;
|
|
18
|
+
page: string;
|
|
19
|
+
}>;
|
|
20
|
+
type RouteFiles = Register extends {
|
|
21
|
+
routeFiles: infer Registered extends AnyRouteFiles;
|
|
22
|
+
} ? Registered : AnyRouteFiles;
|
|
23
|
+
|
|
24
|
+
export type { Pages as P, RouteFiles as R, Register as a };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
3
|
+
* React Router should handle this for you via type generation.
|
|
4
|
+
*
|
|
5
|
+
* For more on declaration merging and module augmentation, see https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation .
|
|
6
|
+
*/
|
|
7
|
+
interface Register {
|
|
8
|
+
}
|
|
9
|
+
type AnyParams = Record<string, string | undefined>;
|
|
10
|
+
type AnyPages = Record<string, {
|
|
11
|
+
params: AnyParams;
|
|
12
|
+
}>;
|
|
13
|
+
type Pages = Register extends {
|
|
14
|
+
pages: infer Registered extends AnyPages;
|
|
15
|
+
} ? Registered : AnyPages;
|
|
16
|
+
type AnyRouteFiles = Record<string, {
|
|
17
|
+
id: string;
|
|
18
|
+
page: string;
|
|
19
|
+
}>;
|
|
20
|
+
type RouteFiles = Register extends {
|
|
21
|
+
routeFiles: infer Registered extends AnyRouteFiles;
|
|
22
|
+
} ? Registered : AnyRouteFiles;
|
|
23
|
+
|
|
24
|
+
export type { Pages as P, RouteFiles as R, Register as a };
|
|
@@ -1867,27 +1867,4 @@ type _DataActionData<ServerActionData, ClientActionData> = Awaited<[
|
|
|
1867
1867
|
IsDefined<ClientActionData>
|
|
1868
1868
|
] extends [true, true] ? ServerActionData | ClientActionData : IsDefined<ClientActionData> extends true ? ClientActionData : IsDefined<ServerActionData> extends true ? ServerActionData : undefined>;
|
|
1869
1869
|
|
|
1870
|
-
|
|
1871
|
-
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
1872
|
-
* React Router should handle this for you via type generation.
|
|
1873
|
-
*
|
|
1874
|
-
* For more on declaration merging and module augmentation, see https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation .
|
|
1875
|
-
*/
|
|
1876
|
-
interface Register {
|
|
1877
|
-
}
|
|
1878
|
-
type AnyParams = Record<string, string | undefined>;
|
|
1879
|
-
type AnyPages = Record<string, {
|
|
1880
|
-
params: AnyParams;
|
|
1881
|
-
}>;
|
|
1882
|
-
type Pages = Register extends {
|
|
1883
|
-
pages: infer Registered extends AnyPages;
|
|
1884
|
-
} ? Registered : AnyPages;
|
|
1885
|
-
type AnyRouteFiles = Record<string, {
|
|
1886
|
-
id: string;
|
|
1887
|
-
page: string;
|
|
1888
|
-
}>;
|
|
1889
|
-
type RouteFiles = Register extends {
|
|
1890
|
-
routeFiles: infer Registered extends AnyRouteFiles;
|
|
1891
|
-
} ? Registered : AnyRouteFiles;
|
|
1892
|
-
|
|
1893
|
-
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type IndexRouteObject as I, type GetScrollRestorationKeyFunction as J, type Fetcher as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type CreateStaticHandlerOptions as O, type ParamParseKey as P, type StaticHandler as Q, type RouteManifest as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type LoaderFunction as V, type ActionFunction as W, type MetaFunction as X, type LinksFunction as Y, type unstable_InitialContext as Z, type Pages as _, type ActionFunctionArgs as a, type unstable_MiddlewareNextFunction as a$, type ClientActionFunction as a0, type ShouldRevalidateFunction as a1, type RouterState as a2, type GetScrollPositionFunction as a3, type NavigationStates as a4, type RouterSubscriber as a5, type RouterNavigateOptions as a6, type RouterFetchOptions as a7, type RevalidationState as a8, type DataStrategyFunctionArgs as a9, type PatchRoutesOnNavigationFunctionArgs as aA, type ClientActionFunctionArgs as aB, type ClientLoaderFunctionArgs as aC, type HeadersArgs as aD, type HeadersFunction as aE, type MetaArgs as aF, type MetaDescriptor as aG, type HtmlLinkDescriptor as aH, type LinkDescriptor as aI, type Future as aJ, type unstable_SerializesTo as aK, type Register as aL, createBrowserHistory as aM, invariant as aN, createRouter as aO, ErrorResponseImpl as aP, DataRouterContext as aQ, DataRouterStateContext as aR, FetchersContext as aS, LocationContext as aT, NavigationContext as aU, RouteContext as aV, ViewTransitionContext as aW, type RouteModule as aX, type Pretty as aY, type GetLoaderData as aZ, type ServerDataFunctionArgs as a_, type DataStrategyMatch as aa, type DataStrategyResult as ab, DataWithResponseInit as ac, type ErrorResponse as ad, type FormMethod as ae, type unstable_MiddlewareFunction as af, type PathParam as ag, type RedirectFunction as ah, type unstable_RouterContext as ai, type ShouldRevalidateFunctionArgs as aj, unstable_createContext as ak, createPath as al, parsePath as am, IDLE_NAVIGATION as an, IDLE_FETCHER as ao, IDLE_BLOCKER as ap, data as aq, generatePath as ar, isRouteErrorResponse as as, matchPath as at, matchRoutes as au, redirect as av, redirectDocument as aw, replace as ax, resolvePath as ay, type DataRouteMatch as az, type RouteModules as b, type ClientDataFunctionArgs as b0, type ServerDataFrom as b1, type RouteFiles as b2, type Normalize as b3, type GetActionData as b4, type StaticHandlerContext as c, type Router as d, type DataStrategyFunction as e, type Blocker as f, type SerializeFrom as g, type RelativeRoutingType as h, type Location as i, type Path as j, type PathPattern as k, type PathMatch as l, type Navigation as m, Action as n, type Params as o, type RouteObject as p, type LazyRouteFunction as q, type NonIndexRouteObject as r, type RouterInit as s, type InitialEntry as t, unstable_RouterContextProvider as u, type PatchRoutesOnNavigationFunction as v, type Navigator as w, type RouteMatch as x, type HTMLFormMethod as y, type FormEncType as z };
|
|
1870
|
+
export { type DataRouteObject as $, Action as A, type BlockerFunction as B, type ClientActionFunction as C, type DataStrategyFunction as D, type unstable_MiddlewareNextFunction as E, type FutureConfig as F, type GetLoaderData as G, type HydrationState as H, type InitialEntry as I, type ClientDataFunctionArgs as J, type ServerDataFrom as K, type Location as L, type MetaFunction as M, type NavigateOptions as N, type Normalize as O, type ParamParseKey as P, type GetActionData as Q, type RouterInit as R, type SerializeFrom as S, type To as T, type UIMatch as U, type RouteModules as V, type unstable_InitialContext as W, type MiddlewareEnabled as X, type AppLoadContext as Y, type Equal as Z, type RouterState as _, type Blocker as a, type ServerRouteModule as a$, type StaticHandler as a0, type GetScrollPositionFunction as a1, type GetScrollRestorationKeyFunction as a2, type StaticHandlerContext as a3, type Fetcher as a4, type NavigationStates as a5, type RouterSubscriber as a6, type RouterNavigateOptions as a7, type RouterFetchOptions as a8, type RevalidationState as a9, matchRoutes as aA, redirect as aB, redirectDocument as aC, replace as aD, resolvePath as aE, type DataRouteMatch as aF, type PatchRoutesOnNavigationFunctionArgs as aG, type ClientActionFunctionArgs as aH, type ClientLoaderFunctionArgs as aI, type HeadersArgs as aJ, type MetaArgs as aK, type PageLinkDescriptor as aL, type HtmlLinkDescriptor as aM, type Future as aN, type unstable_SerializesTo as aO, createBrowserHistory as aP, invariant as aQ, createRouter as aR, ErrorResponseImpl as aS, DataRouterContext as aT, DataRouterStateContext as aU, FetchersContext as aV, LocationContext as aW, NavigationContext as aX, RouteContext as aY, ViewTransitionContext as aZ, type RouteManifest as a_, type ActionFunctionArgs as aa, type DataStrategyFunctionArgs as ab, type DataStrategyMatch as ac, type DataStrategyResult as ad, DataWithResponseInit as ae, type ErrorResponse as af, type FormEncType as ag, type FormMethod as ah, type HTMLFormMethod as ai, type LoaderFunctionArgs as aj, type unstable_MiddlewareFunction as ak, type PathParam as al, type RedirectFunction as am, type unstable_RouterContext as an, type ShouldRevalidateFunctionArgs as ao, unstable_createContext as ap, unstable_RouterContextProvider as aq, createPath as ar, parsePath as as, IDLE_NAVIGATION as at, IDLE_FETCHER as au, IDLE_BLOCKER as av, data as aw, generatePath as ax, isRouteErrorResponse as ay, matchPath as az, type RelativeRoutingType as b, type History as b0, type CreateStaticHandlerOptions as b1, type Path as c, type PathPattern as d, type PathMatch as e, type Navigation as f, type Params as g, type Router as h, type RouteObject as i, type NonIndexRouteObject as j, type LazyRouteFunction as k, type IndexRouteObject as l, type Navigator as m, type PatchRoutesOnNavigationFunction as n, type RouteMatch as o, type ActionFunction as p, type ClientLoaderFunction as q, type HeadersFunction as r, type LinksFunction as s, type LoaderFunction as t, type ShouldRevalidateFunction as u, type RouteModule as v, type LinkDescriptor as w, type Pretty as x, type MetaDescriptor as y, type ServerDataFunctionArgs as z };
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ComponentType, ReactElement } from 'react';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An augmentable interface users can modify in their app-code to opt into
|
|
6
|
+
* future-flag-specific types
|
|
7
|
+
*/
|
|
8
|
+
interface Future {
|
|
9
|
+
}
|
|
10
|
+
type MiddlewareEnabled = Future extends {
|
|
11
|
+
unstable_middleware: infer T extends boolean;
|
|
12
|
+
} ? T : false;
|
|
13
|
+
|
|
4
14
|
/**
|
|
5
15
|
* Actions represent the type of change to a location value.
|
|
6
16
|
*/
|
|
@@ -206,16 +216,6 @@ type UrlHistoryOptions = {
|
|
|
206
216
|
v5Compat?: boolean;
|
|
207
217
|
};
|
|
208
218
|
|
|
209
|
-
/**
|
|
210
|
-
* An augmentable interface users can modify in their app-code to opt into
|
|
211
|
-
* future-flag-specific types
|
|
212
|
-
*/
|
|
213
|
-
interface Future {
|
|
214
|
-
}
|
|
215
|
-
type MiddlewareEnabled = Future extends {
|
|
216
|
-
unstable_middleware: infer T extends boolean;
|
|
217
|
-
} ? T : false;
|
|
218
|
-
|
|
219
219
|
type MaybePromise<T> = T | Promise<T>;
|
|
220
220
|
/**
|
|
221
221
|
* Map of routeId -> data returned from a loader/action/error
|
|
@@ -1867,27 +1867,4 @@ type _DataActionData<ServerActionData, ClientActionData> = Awaited<[
|
|
|
1867
1867
|
IsDefined<ClientActionData>
|
|
1868
1868
|
] extends [true, true] ? ServerActionData | ClientActionData : IsDefined<ClientActionData> extends true ? ClientActionData : IsDefined<ServerActionData> extends true ? ServerActionData : undefined>;
|
|
1869
1869
|
|
|
1870
|
-
|
|
1871
|
-
* Apps can use this interface to "register" app-wide types for React Router via interface declaration merging and module augmentation.
|
|
1872
|
-
* React Router should handle this for you via type generation.
|
|
1873
|
-
*
|
|
1874
|
-
* For more on declaration merging and module augmentation, see https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation .
|
|
1875
|
-
*/
|
|
1876
|
-
interface Register {
|
|
1877
|
-
}
|
|
1878
|
-
type AnyParams = Record<string, string | undefined>;
|
|
1879
|
-
type AnyPages = Record<string, {
|
|
1880
|
-
params: AnyParams;
|
|
1881
|
-
}>;
|
|
1882
|
-
type Pages = Register extends {
|
|
1883
|
-
pages: infer Registered extends AnyPages;
|
|
1884
|
-
} ? Registered : AnyPages;
|
|
1885
|
-
type AnyRouteFiles = Record<string, {
|
|
1886
|
-
id: string;
|
|
1887
|
-
page: string;
|
|
1888
|
-
}>;
|
|
1889
|
-
type RouteFiles = Register extends {
|
|
1890
|
-
routeFiles: infer Registered extends AnyRouteFiles;
|
|
1891
|
-
} ? Registered : AnyRouteFiles;
|
|
1892
|
-
|
|
1893
|
-
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type IndexRouteObject as I, type GetScrollRestorationKeyFunction as J, type Fetcher as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type CreateStaticHandlerOptions as O, type ParamParseKey as P, type StaticHandler as Q, type RouteManifest as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type LoaderFunction as V, type ActionFunction as W, type MetaFunction as X, type LinksFunction as Y, type unstable_InitialContext as Z, type Pages as _, type ActionFunctionArgs as a, type unstable_MiddlewareNextFunction as a$, type ClientActionFunction as a0, type ShouldRevalidateFunction as a1, type RouterState as a2, type GetScrollPositionFunction as a3, type NavigationStates as a4, type RouterSubscriber as a5, type RouterNavigateOptions as a6, type RouterFetchOptions as a7, type RevalidationState as a8, type DataStrategyFunctionArgs as a9, type PatchRoutesOnNavigationFunctionArgs as aA, type ClientActionFunctionArgs as aB, type ClientLoaderFunctionArgs as aC, type HeadersArgs as aD, type HeadersFunction as aE, type MetaArgs as aF, type MetaDescriptor as aG, type HtmlLinkDescriptor as aH, type LinkDescriptor as aI, type Future as aJ, type unstable_SerializesTo as aK, type Register as aL, createBrowserHistory as aM, invariant as aN, createRouter as aO, ErrorResponseImpl as aP, DataRouterContext as aQ, DataRouterStateContext as aR, FetchersContext as aS, LocationContext as aT, NavigationContext as aU, RouteContext as aV, ViewTransitionContext as aW, type RouteModule as aX, type Pretty as aY, type GetLoaderData as aZ, type ServerDataFunctionArgs as a_, type DataStrategyMatch as aa, type DataStrategyResult as ab, DataWithResponseInit as ac, type ErrorResponse as ad, type FormMethod as ae, type unstable_MiddlewareFunction as af, type PathParam as ag, type RedirectFunction as ah, type unstable_RouterContext as ai, type ShouldRevalidateFunctionArgs as aj, unstable_createContext as ak, createPath as al, parsePath as am, IDLE_NAVIGATION as an, IDLE_FETCHER as ao, IDLE_BLOCKER as ap, data as aq, generatePath as ar, isRouteErrorResponse as as, matchPath as at, matchRoutes as au, redirect as av, redirectDocument as aw, replace as ax, resolvePath as ay, type DataRouteMatch as az, type RouteModules as b, type ClientDataFunctionArgs as b0, type ServerDataFrom as b1, type RouteFiles as b2, type Normalize as b3, type GetActionData as b4, type StaticHandlerContext as c, type Router as d, type DataStrategyFunction as e, type Blocker as f, type SerializeFrom as g, type RelativeRoutingType as h, type Location as i, type Path as j, type PathPattern as k, type PathMatch as l, type Navigation as m, Action as n, type Params as o, type RouteObject as p, type LazyRouteFunction as q, type NonIndexRouteObject as r, type RouterInit as s, type InitialEntry as t, unstable_RouterContextProvider as u, type PatchRoutesOnNavigationFunction as v, type Navigator as w, type RouteMatch as x, type HTMLFormMethod as y, type FormEncType as z };
|
|
1870
|
+
export { type DataStrategyFunctionArgs as $, type ActionFunction as A, type StaticHandlerContext as B, type ClientDataFunctionArgs as C, type DataStrategyFunction as D, type Equal as E, type Fetcher as F, type GetLoaderData as G, type HydrationState as H, type InitialEntry as I, type Navigation as J, type NavigationStates as K, type LinkDescriptor as L, type MetaDescriptor as M, type Normalize as N, type RelativeRoutingType as O, type Pretty as P, type Blocker as Q, type RouteModule as R, type ServerDataFunctionArgs as S, type To as T, type BlockerFunction as U, type RouterInit as V, type RouterSubscriber as W, type RouterNavigateOptions as X, type RouterFetchOptions as Y, type RevalidationState as Z, type ActionFunctionArgs as _, type Location as a, type FutureConfig as a$, type DataStrategyMatch as a0, type DataStrategyResult as a1, DataWithResponseInit as a2, type ErrorResponse as a3, type FormEncType as a4, type FormMethod as a5, type HTMLFormMethod as a6, type LazyRouteFunction as a7, type LoaderFunctionArgs as a8, type unstable_MiddlewareFunction as a9, type NavigateOptions as aA, type Navigator as aB, type PatchRoutesOnNavigationFunctionArgs as aC, type RouteMatch as aD, type RouteObject as aE, type ClientActionFunctionArgs as aF, type ClientLoaderFunctionArgs as aG, type HeadersArgs as aH, type MetaArgs as aI, type PageLinkDescriptor as aJ, type HtmlLinkDescriptor as aK, type Future as aL, type unstable_SerializesTo as aM, createBrowserHistory as aN, invariant as aO, createRouter as aP, ErrorResponseImpl as aQ, DataRouterContext as aR, DataRouterStateContext as aS, FetchersContext as aT, LocationContext as aU, NavigationContext as aV, RouteContext as aW, ViewTransitionContext as aX, type RouteManifest as aY, type ServerRouteModule as aZ, type SerializeFrom as a_, type ParamParseKey as aa, type PathMatch as ab, type PathParam as ac, type PathPattern as ad, type RedirectFunction as ae, type unstable_RouterContext as af, type ShouldRevalidateFunctionArgs as ag, type UIMatch as ah, unstable_createContext as ai, unstable_RouterContextProvider as aj, Action as ak, createPath as al, parsePath as am, IDLE_NAVIGATION as an, IDLE_FETCHER as ao, IDLE_BLOCKER as ap, data as aq, generatePath as ar, isRouteErrorResponse as as, matchPath as at, matchRoutes as au, redirect as av, redirectDocument as aw, replace as ax, resolvePath as ay, type DataRouteMatch as az, type ServerDataFrom as b, type History as b0, type CreateStaticHandlerOptions as b1, type GetActionData as c, type Router as d, type RouteModules as e, type IndexRouteObject as f, type LoaderFunction as g, type MetaFunction as h, type LinksFunction as i, type NonIndexRouteObject as j, type unstable_InitialContext as k, type MiddlewareEnabled as l, type AppLoadContext as m, type ClientActionFunction as n, type ClientLoaderFunction as o, type HeadersFunction as p, type ShouldRevalidateFunction as q, type Params as r, type RouterState as s, type PatchRoutesOnNavigationFunction as t, type unstable_MiddlewareNextFunction as u, type DataRouteObject as v, type Path as w, type StaticHandler as x, type GetScrollPositionFunction as y, type GetScrollRestorationKeyFunction as z };
|