react-router 0.0.0-experimental-23decd7bc → 0.0.0-experimental-1d8f3ee
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-CmIT056Z.d.mts → browser-Dy-ESm-r.d.mts} +1 -1
- package/dist/development/chunk-DUZSUZPY.js +42 -0
- package/dist/development/{chunk-GJVCYY62.mjs → chunk-LCKD6EHG.mjs} +29 -51
- package/dist/development/{chunk-H2M6MMUH.js → chunk-PACOJA5V.js} +34 -56
- package/dist/development/{chunk-3E3CD4NY.mjs → chunk-RCYOOFMP.mjs} +64 -10
- package/dist/development/{chunk-I3MHZ4NU.js → chunk-XDNTV7B4.js} +1 -1
- package/dist/development/{components-CwtESh53.d.mts → components-Yh5Jx3In.d.mts} +1 -1
- package/dist/development/dom-export.d.mts +8 -3
- package/dist/development/dom-export.d.ts +6 -0
- package/dist/development/dom-export.js +16 -6
- package/dist/development/dom-export.mjs +14 -6
- package/dist/{production/index-react-server-client-unV28389.d.ts → development/index-react-server-client-BM01za3r.d.ts} +3 -29
- package/dist/{production/index-react-server-client-CzKQ01cq.d.mts → development/index-react-server-client-CdDCHn2r.d.mts} +4 -30
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -2
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +1 -1
- package/dist/development/index-react-server.d.ts +1 -1
- package/dist/development/index-react-server.js +2 -2
- package/dist/development/index-react-server.mjs +2 -2
- package/dist/development/index.d.mts +15 -11
- package/dist/development/index.d.ts +11 -7
- package/dist/development/index.js +129 -103
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.d.mts +1 -1
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/route-data-Csr8hE3v.d.mts → development/route-data-DJcKSHWq.d.mts} +30 -2
- package/dist/{production/route-data-x_b_BLCv.d.ts → development/routeModules-C82B1sOz.d.ts} +193 -165
- package/dist/production/{browser-CmIT056Z.d.mts → browser-Dy-ESm-r.d.mts} +1 -1
- package/dist/production/chunk-DUZSUZPY.js +42 -0
- package/dist/production/{chunk-7TUGB72O.js → chunk-F3UQRILU.js} +34 -56
- package/dist/production/{chunk-XNTCWHOK.mjs → chunk-FDXAKVCT.mjs} +64 -10
- package/dist/production/{chunk-YWCG2M57.mjs → chunk-VJ4SUXKA.mjs} +29 -51
- package/dist/production/{chunk-I3MHZ4NU.js → chunk-XDNTV7B4.js} +1 -1
- package/dist/production/{components-CwtESh53.d.mts → components-Yh5Jx3In.d.mts} +1 -1
- package/dist/production/dom-export.d.mts +8 -3
- package/dist/production/dom-export.d.ts +6 -0
- package/dist/production/dom-export.js +16 -6
- package/dist/production/dom-export.mjs +14 -6
- package/dist/{development/index-react-server-client-unV28389.d.ts → production/index-react-server-client-BM01za3r.d.ts} +3 -29
- package/dist/{development/index-react-server-client-CzKQ01cq.d.mts → production/index-react-server-client-CdDCHn2r.d.mts} +4 -30
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -2
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +1 -1
- package/dist/production/index-react-server.d.ts +1 -1
- package/dist/production/index-react-server.js +2 -2
- package/dist/production/index-react-server.mjs +2 -2
- package/dist/production/index.d.mts +15 -11
- package/dist/production/index.d.ts +11 -7
- package/dist/production/index.js +129 -103
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.d.mts +1 -1
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/route-data-x_b_BLCv.d.ts → production/route-data-DJcKSHWq.d.mts} +40 -12
- package/dist/{development/route-data-Csr8hE3v.d.mts → production/routeModules-C82B1sOz.d.ts} +183 -155
- package/package.json +6 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RouterProviderProps as RouterProviderProps$1, RouterInit } from 'react-router';
|
|
3
|
+
import { L as LoadRouteModuleFunction } from './routeModules-C82B1sOz.js';
|
|
3
4
|
|
|
4
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
5
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -10,6 +11,11 @@ interface HydratedRouterProps {
|
|
|
10
11
|
* to `clientLoader`/`clientActon` functions
|
|
11
12
|
*/
|
|
12
13
|
unstable_getContext?: RouterInit["unstable_getContext"];
|
|
14
|
+
/**
|
|
15
|
+
* Optional function to take control over how route modules are loaded into
|
|
16
|
+
* the browser. Primarily for use by bundler plugins.
|
|
17
|
+
*/
|
|
18
|
+
loadRouteModule?: LoadRouteModuleFunction;
|
|
13
19
|
}
|
|
14
20
|
/**
|
|
15
21
|
* Framework-mode router component to be used in `entry.client.tsx` to hydrate a
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
"use client";
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
var _chunkDUZSUZPYjs = require('./chunk-DUZSUZPY.js');
|
|
15
|
+
require('./chunk-XDNTV7B4.js');
|
|
13
16
|
|
|
14
17
|
// lib/dom-export/dom-router-provider.tsx
|
|
15
18
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -65,6 +68,7 @@ function initSsrInfo() {
|
|
|
65
68
|
}
|
|
66
69
|
}
|
|
67
70
|
function createHydratedRouter({
|
|
71
|
+
loadRouteModule = _chunkDUZSUZPYjs.defaultLoadRouteModule,
|
|
68
72
|
unstable_getContext
|
|
69
73
|
}) {
|
|
70
74
|
initSsrInfo();
|
|
@@ -96,7 +100,8 @@ function createHydratedRouter({
|
|
|
96
100
|
ssrInfo.routeModules,
|
|
97
101
|
ssrInfo.context.state,
|
|
98
102
|
ssrInfo.context.ssr,
|
|
99
|
-
ssrInfo.context.isSpaMode
|
|
103
|
+
ssrInfo.context.isSpaMode,
|
|
104
|
+
loadRouteModule
|
|
100
105
|
);
|
|
101
106
|
let hydrationData = void 0;
|
|
102
107
|
if (ssrInfo.context.isSpaMode) {
|
|
@@ -149,7 +154,8 @@ function createHydratedRouter({
|
|
|
149
154
|
ssrInfo.context.ssr,
|
|
150
155
|
ssrInfo.context.routeDiscovery,
|
|
151
156
|
ssrInfo.context.isSpaMode,
|
|
152
|
-
ssrInfo.context.basename
|
|
157
|
+
ssrInfo.context.basename,
|
|
158
|
+
loadRouteModule
|
|
153
159
|
)
|
|
154
160
|
});
|
|
155
161
|
ssrInfo.router = router2;
|
|
@@ -163,8 +169,10 @@ function createHydratedRouter({
|
|
|
163
169
|
return router2;
|
|
164
170
|
}
|
|
165
171
|
function HydratedRouter(props) {
|
|
172
|
+
let loadRouteModule = _nullishCoalesce(props.loadRouteModule, () => ( _chunkDUZSUZPYjs.defaultLoadRouteModule));
|
|
166
173
|
if (!router) {
|
|
167
174
|
router = createHydratedRouter({
|
|
175
|
+
loadRouteModule,
|
|
168
176
|
unstable_getContext: props.unstable_getContext
|
|
169
177
|
});
|
|
170
178
|
}
|
|
@@ -199,7 +207,8 @@ function HydratedRouter(props) {
|
|
|
199
207
|
ssrInfo.routeModules,
|
|
200
208
|
ssrInfo.context.ssr,
|
|
201
209
|
ssrInfo.context.routeDiscovery,
|
|
202
|
-
ssrInfo.context.isSpaMode
|
|
210
|
+
ssrInfo.context.isSpaMode,
|
|
211
|
+
loadRouteModule
|
|
203
212
|
);
|
|
204
213
|
return (
|
|
205
214
|
// This fragment is important to ensure we match the <ServerRouter> JSX
|
|
@@ -214,6 +223,7 @@ function HydratedRouter(props) {
|
|
|
214
223
|
criticalCss,
|
|
215
224
|
ssr: ssrInfo.context.ssr,
|
|
216
225
|
isSpaMode: ssrInfo.context.isSpaMode,
|
|
226
|
+
loadRouteModule,
|
|
217
227
|
routeDiscovery: ssrInfo.context.routeDiscovery
|
|
218
228
|
}
|
|
219
229
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
*/
|
|
11
11
|
"use client";
|
|
12
12
|
import {
|
|
13
|
+
defaultLoadRouteModule,
|
|
13
14
|
deserializeErrors,
|
|
14
15
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FDXAKVCT.mjs";
|
|
16
17
|
import {
|
|
17
18
|
FrameworkContext,
|
|
18
19
|
RemixErrorBoundary,
|
|
@@ -28,7 +29,7 @@ import {
|
|
|
28
29
|
invariant,
|
|
29
30
|
mapRouteProperties,
|
|
30
31
|
useFogOFWarDiscovery
|
|
31
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VJ4SUXKA.mjs";
|
|
32
33
|
|
|
33
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
34
35
|
import * as React from "react";
|
|
@@ -66,6 +67,7 @@ function initSsrInfo() {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
function createHydratedRouter({
|
|
70
|
+
loadRouteModule = defaultLoadRouteModule,
|
|
69
71
|
unstable_getContext
|
|
70
72
|
}) {
|
|
71
73
|
initSsrInfo();
|
|
@@ -97,7 +99,8 @@ function createHydratedRouter({
|
|
|
97
99
|
ssrInfo.routeModules,
|
|
98
100
|
ssrInfo.context.state,
|
|
99
101
|
ssrInfo.context.ssr,
|
|
100
|
-
ssrInfo.context.isSpaMode
|
|
102
|
+
ssrInfo.context.isSpaMode,
|
|
103
|
+
loadRouteModule
|
|
101
104
|
);
|
|
102
105
|
let hydrationData = void 0;
|
|
103
106
|
if (ssrInfo.context.isSpaMode) {
|
|
@@ -150,7 +153,8 @@ function createHydratedRouter({
|
|
|
150
153
|
ssrInfo.context.ssr,
|
|
151
154
|
ssrInfo.context.routeDiscovery,
|
|
152
155
|
ssrInfo.context.isSpaMode,
|
|
153
|
-
ssrInfo.context.basename
|
|
156
|
+
ssrInfo.context.basename,
|
|
157
|
+
loadRouteModule
|
|
154
158
|
)
|
|
155
159
|
});
|
|
156
160
|
ssrInfo.router = router2;
|
|
@@ -164,8 +168,10 @@ function createHydratedRouter({
|
|
|
164
168
|
return router2;
|
|
165
169
|
}
|
|
166
170
|
function HydratedRouter(props) {
|
|
171
|
+
let loadRouteModule = props.loadRouteModule ?? defaultLoadRouteModule;
|
|
167
172
|
if (!router) {
|
|
168
173
|
router = createHydratedRouter({
|
|
174
|
+
loadRouteModule,
|
|
169
175
|
unstable_getContext: props.unstable_getContext
|
|
170
176
|
});
|
|
171
177
|
}
|
|
@@ -200,7 +206,8 @@ function HydratedRouter(props) {
|
|
|
200
206
|
ssrInfo.routeModules,
|
|
201
207
|
ssrInfo.context.ssr,
|
|
202
208
|
ssrInfo.context.routeDiscovery,
|
|
203
|
-
ssrInfo.context.isSpaMode
|
|
209
|
+
ssrInfo.context.isSpaMode,
|
|
210
|
+
loadRouteModule
|
|
204
211
|
);
|
|
205
212
|
return (
|
|
206
213
|
// This fragment is important to ensure we match the <ServerRouter> JSX
|
|
@@ -215,6 +222,7 @@ function HydratedRouter(props) {
|
|
|
215
222
|
criticalCss,
|
|
216
223
|
ssr: ssrInfo.context.ssr,
|
|
217
224
|
isSpaMode: ssrInfo.context.isSpaMode,
|
|
225
|
+
loadRouteModule,
|
|
218
226
|
routeDiscovery: ssrInfo.context.routeDiscovery
|
|
219
227
|
}
|
|
220
228
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b0 as RouteManifest, b1 as Route$1, b2 as ServerRouteModule, m as MiddlewareEnabled, ak as unstable_RouterContextProvider, n as AppLoadContext, a9 as LoaderFunctionArgs, $ as ActionFunctionArgs, b3 as EntryRoute, f as RouteModules, L as LoadRouteModuleFunction, F as StaticHandlerContext, T as To, aB as NavigateOptions, V as BlockerFunction, U as Blocker, b4 as SerializeFrom, Q as RelativeRoutingType, b as Location, ab as ParamParseKey, x as Path, ae as PathPattern, ac as PathMatch, ai as UIMatch, K as Navigation, al as Action, s as Params, e as Router$1, aF as RouteObject, I as InitialEntry, k as NonIndexRouteObject, a8 as LazyRouteFunction, g as IndexRouteObject, aC as Navigator, W as RouterInit, b5 as FutureConfig$1, H as HydrationState, D as DataStrategyFunction, v as PatchRoutesOnNavigationFunction, aE as RouteMatch, a7 as HTMLFormMethod, a5 as FormEncType, aK as PageLinkDescriptor, b6 as History, B as GetScrollRestorationKeyFunction, J as Fetcher, b7 as CreateStaticHandlerOptions$1, y as StaticHandler } from './routeModules-C82B1sOz.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -67,6 +67,7 @@ interface FrameworkContextObject {
|
|
|
67
67
|
future: FutureConfig;
|
|
68
68
|
ssr: boolean;
|
|
69
69
|
isSpaMode: boolean;
|
|
70
|
+
loadRouteModule: LoadRouteModuleFunction;
|
|
70
71
|
routeDiscovery: ServerBuild["routeDiscovery"];
|
|
71
72
|
serializeError?(error: Error): SerializedError;
|
|
72
73
|
renderMeta?: {
|
|
@@ -107,33 +108,6 @@ interface AssetsManifest {
|
|
|
107
108
|
sri?: Record<string, string> | true;
|
|
108
109
|
}
|
|
109
110
|
|
|
110
|
-
interface Route$1 {
|
|
111
|
-
index?: boolean;
|
|
112
|
-
caseSensitive?: boolean;
|
|
113
|
-
id: string;
|
|
114
|
-
parentId?: string;
|
|
115
|
-
path?: string;
|
|
116
|
-
}
|
|
117
|
-
interface EntryRoute extends Route$1 {
|
|
118
|
-
hasAction: boolean;
|
|
119
|
-
hasLoader: boolean;
|
|
120
|
-
hasClientAction: boolean;
|
|
121
|
-
hasClientLoader: boolean;
|
|
122
|
-
hasClientMiddleware: boolean;
|
|
123
|
-
hasErrorBoundary: boolean;
|
|
124
|
-
imports?: string[];
|
|
125
|
-
css?: string[];
|
|
126
|
-
module: string;
|
|
127
|
-
clientActionModule: string | undefined;
|
|
128
|
-
clientLoaderModule: string | undefined;
|
|
129
|
-
clientMiddlewareModule: string | undefined;
|
|
130
|
-
hydrateFallbackModule: string | undefined;
|
|
131
|
-
parentId?: string;
|
|
132
|
-
}
|
|
133
|
-
declare function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation: Set<string>, manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState, ssr: boolean, isSpaMode: boolean): DataRouteObject[];
|
|
134
|
-
declare function createClientRoutes(manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState | null, ssr: boolean, isSpaMode: boolean, parentId?: string, routesByParentId?: Record<string, Omit<EntryRoute, "children">[]>, needsRevalidation?: Set<string>): DataRouteObject[];
|
|
135
|
-
declare function shouldHydrateRouteLoader(routeId: string, clientLoader: ClientLoaderFunction | undefined, hasLoader: boolean, isSpaMode: boolean): boolean;
|
|
136
|
-
|
|
137
111
|
/**
|
|
138
112
|
Resolves a URL against the current location.
|
|
139
113
|
|
|
@@ -2168,4 +2142,4 @@ declare function createStaticRouter(routes: RouteObject[], context: StaticHandle
|
|
|
2168
2142
|
future?: Partial<FutureConfig$1>;
|
|
2169
2143
|
}): Router$1;
|
|
2170
2144
|
|
|
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,
|
|
2145
|
+
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, useScrollRestoration as aW, 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 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import './components-
|
|
1
|
+
import './components-Yh5Jx3In.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { b2 as RouteManifest, b3 as Route, b4 as ServerRouteModule, Y as MiddlewareEnabled, ar as unstable_RouterContextProvider, Z as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, b5 as EntryRoute, W as RouteModules, L as LoadRouteModuleFunction, a4 as StaticHandlerContext, aj as HTMLFormMethod, ah as FormEncType, b as RelativeRoutingType, aM as PageLinkDescriptor, T as To, b6 as History, a3 as GetScrollRestorationKeyFunction, R as RouterInit, F as FutureConfig$1, H as HydrationState, D as DataStrategyFunction, o as PatchRoutesOnNavigationFunction, N as NavigateOptions, a5 as Fetcher, j as RouteObject, i as Router, S as SerializeFrom, B as BlockerFunction, c as Location, b7 as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './route-data-DJcKSHWq.mjs';
|
|
4
4
|
|
|
5
5
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
6
6
|
interface ServerRoute extends Route {
|
|
@@ -68,6 +68,7 @@ interface FrameworkContextObject {
|
|
|
68
68
|
future: FutureConfig;
|
|
69
69
|
ssr: boolean;
|
|
70
70
|
isSpaMode: boolean;
|
|
71
|
+
loadRouteModule: LoadRouteModuleFunction;
|
|
71
72
|
routeDiscovery: ServerBuild["routeDiscovery"];
|
|
72
73
|
serializeError?(error: Error): SerializedError;
|
|
73
74
|
renderMeta?: {
|
|
@@ -108,33 +109,6 @@ interface AssetsManifest {
|
|
|
108
109
|
sri?: Record<string, string> | true;
|
|
109
110
|
}
|
|
110
111
|
|
|
111
|
-
interface Route {
|
|
112
|
-
index?: boolean;
|
|
113
|
-
caseSensitive?: boolean;
|
|
114
|
-
id: string;
|
|
115
|
-
parentId?: string;
|
|
116
|
-
path?: string;
|
|
117
|
-
}
|
|
118
|
-
interface EntryRoute extends Route {
|
|
119
|
-
hasAction: boolean;
|
|
120
|
-
hasLoader: boolean;
|
|
121
|
-
hasClientAction: boolean;
|
|
122
|
-
hasClientLoader: boolean;
|
|
123
|
-
hasClientMiddleware: boolean;
|
|
124
|
-
hasErrorBoundary: boolean;
|
|
125
|
-
imports?: string[];
|
|
126
|
-
css?: string[];
|
|
127
|
-
module: string;
|
|
128
|
-
clientActionModule: string | undefined;
|
|
129
|
-
clientLoaderModule: string | undefined;
|
|
130
|
-
clientMiddlewareModule: string | undefined;
|
|
131
|
-
hydrateFallbackModule: string | undefined;
|
|
132
|
-
parentId?: string;
|
|
133
|
-
}
|
|
134
|
-
declare function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation: Set<string>, manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState, ssr: boolean, isSpaMode: boolean): DataRouteObject[];
|
|
135
|
-
declare function createClientRoutes(manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState | null, ssr: boolean, isSpaMode: boolean, parentId?: string, routesByParentId?: Record<string, Omit<EntryRoute, "children">[]>, needsRevalidation?: Set<string>): DataRouteObject[];
|
|
136
|
-
declare function shouldHydrateRouteLoader(routeId: string, clientLoader: ClientLoaderFunction | undefined, hasLoader: boolean, isSpaMode: boolean): boolean;
|
|
137
|
-
|
|
138
112
|
type ParamKeyValuePair = [string, string];
|
|
139
113
|
type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
|
140
114
|
/**
|
|
@@ -1357,4 +1331,4 @@ declare function createStaticRouter(routes: RouteObject[], context: StaticHandle
|
|
|
1357
1331
|
future?: Partial<FutureConfig$1>;
|
|
1358
1332
|
}): Router;
|
|
1359
1333
|
|
|
1360
|
-
export { type HandleDataRequestFunction as $, type AssetsManifest as A, type BrowserRouterProps as B, useViewTransitionState as C, type DOMRouterOpts as D, type EntryContext as E, type FutureConfig as F, type FetcherSubmitOptions as G, type HashRouterProps as H, type SubmitOptions as I, type SubmitTarget as J, createSearchParams as K, type LinkProps as L, type StaticRouterProps as M, type NavLinkProps as N, type StaticRouterProviderProps as O, type ParamKeyValuePair as P, createStaticHandler as Q, createStaticRouter as R, type ServerBuild as S, StaticRouter as T, type URLSearchParamsInit as U, StaticRouterProvider as V, Meta as W, Links as X, Scripts as Y, PrefetchPageLinks as Z, type ScriptsProps as _, type HistoryRouterProps as a, type HandleDocumentRequestFunction as a0, type HandleErrorFunction as a1, type ServerEntryModule as a2, FrameworkContext as a3,
|
|
1334
|
+
export { type HandleDataRequestFunction as $, type AssetsManifest as A, type BrowserRouterProps as B, useViewTransitionState as C, type DOMRouterOpts as D, type EntryContext as E, type FutureConfig as F, type FetcherSubmitOptions as G, type HashRouterProps as H, type SubmitOptions as I, type SubmitTarget as J, createSearchParams as K, type LinkProps as L, type StaticRouterProps as M, type NavLinkProps as N, type StaticRouterProviderProps as O, type ParamKeyValuePair as P, createStaticHandler as Q, createStaticRouter as R, type ServerBuild as S, StaticRouter as T, type URLSearchParamsInit as U, StaticRouterProvider as V, Meta as W, Links as X, Scripts as Y, PrefetchPageLinks as Z, type ScriptsProps as _, type HistoryRouterProps as a, type HandleDocumentRequestFunction as a0, type HandleErrorFunction as a1, type ServerEntryModule as a2, FrameworkContext as a3, useScrollRestoration as a4, type NavLinkRenderProps as b, type FetcherFormProps as c, type FormProps as d, type ScrollRestorationProps as e, type SetURLSearchParams as f, type SubmitFunction as g, type FetcherSubmitFunction as h, type FetcherWithComponents as i, createBrowserRouter as j, createHashRouter as k, BrowserRouter as l, HashRouter as m, Link as n, HistoryRouter as o, NavLink as p, Form as q, ScrollRestoration as r, useSearchParams as s, useSubmit as t, useLinkClickHandler as u, useFormAction as v, useFetcher as w, useFetchers as x, useBeforeUnload as y, usePrompt as z };
|
|
@@ -1,4 +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-
|
|
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-
|
|
3
|
-
import './route-data-
|
|
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-Yh5Jx3In.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-CdDCHn2r.mjs';
|
|
3
|
+
import './route-data-DJcKSHWq.mjs';
|
|
4
4
|
import 'react';
|
|
@@ -1,3 +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-
|
|
2
|
-
import './
|
|
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-BM01za3r.js';
|
|
2
|
+
import './routeModules-C82B1sOz.js';
|
|
3
3
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
33
|
-
require('./chunk-
|
|
32
|
+
var _chunkF3UQRILUjs = require('./chunk-F3UQRILU.js');
|
|
33
|
+
require('./chunk-XDNTV7B4.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
@@ -51,4 +51,4 @@ require('./chunk-I3MHZ4NU.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
exports.Await =
|
|
54
|
+
exports.Await = _chunkF3UQRILUjs.Await; exports.BrowserRouter = _chunkF3UQRILUjs.BrowserRouter; exports.Form = _chunkF3UQRILUjs.Form; exports.HashRouter = _chunkF3UQRILUjs.HashRouter; exports.Link = _chunkF3UQRILUjs.Link; exports.Links = _chunkF3UQRILUjs.Links; exports.MemoryRouter = _chunkF3UQRILUjs.MemoryRouter; exports.Meta = _chunkF3UQRILUjs.Meta; exports.NavLink = _chunkF3UQRILUjs.NavLink; exports.Navigate = _chunkF3UQRILUjs.Navigate; exports.Outlet = _chunkF3UQRILUjs.Outlet; exports.Route = _chunkF3UQRILUjs.Route; exports.Router = _chunkF3UQRILUjs.Router; exports.RouterProvider = _chunkF3UQRILUjs.RouterProvider; exports.Routes = _chunkF3UQRILUjs.Routes; exports.ScrollRestoration = _chunkF3UQRILUjs.ScrollRestoration; exports.StaticRouter = _chunkF3UQRILUjs.StaticRouter; exports.StaticRouterProvider = _chunkF3UQRILUjs.StaticRouterProvider; exports.unstable_HistoryRouter = _chunkF3UQRILUjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
ScrollRestoration,
|
|
30
30
|
StaticRouter,
|
|
31
31
|
StaticRouterProvider
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VJ4SUXKA.mjs";
|
|
33
33
|
export {
|
|
34
34
|
Await,
|
|
35
35
|
BrowserRouter,
|
|
@@ -819,7 +819,7 @@ interface RouterState {
|
|
|
819
819
|
/**
|
|
820
820
|
* Current scroll position we should start at for a new view
|
|
821
821
|
* - number -> scroll position to restore to
|
|
822
|
-
* - false -> do not restore scroll at all (used during submissions)
|
|
822
|
+
* - false -> do not restore scroll at all (used during submissions/revalidations)
|
|
823
823
|
* - null -> don't have a saved position, scroll to hash or top of page
|
|
824
824
|
*/
|
|
825
825
|
restoreScrollPosition: number | false | null;
|
|
@@ -819,7 +819,7 @@ interface RouterState {
|
|
|
819
819
|
/**
|
|
820
820
|
* Current scroll position we should start at for a new view
|
|
821
821
|
* - number -> scroll position to restore to
|
|
822
|
-
* - false -> do not restore scroll at all (used during submissions)
|
|
822
|
+
* - false -> do not restore scroll at all (used during submissions/revalidations)
|
|
823
823
|
* - null -> don't have a saved position, scroll to hash or top of page
|
|
824
824
|
*/
|
|
825
825
|
restoreScrollPosition: number | false | null;
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v0.0.0-experimental-
|
|
30
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -63,7 +63,7 @@ function createKey() {
|
|
|
63
63
|
}
|
|
64
64
|
function createLocation(current, to, state = null, key) {
|
|
65
65
|
let location = {
|
|
66
|
-
pathname:
|
|
66
|
+
pathname: typeof current === "string" ? current : current.pathname,
|
|
67
67
|
search: "",
|
|
68
68
|
hash: "",
|
|
69
69
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -5,7 +5,7 @@ export { Await, BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta
|
|
|
5
5
|
import { serialize, parse } from 'cookie';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* react-router v0.0.0-experimental-
|
|
8
|
+
* react-router v0.0.0-experimental-1d8f3ee
|
|
9
9
|
*
|
|
10
10
|
* Copyright (c) Remix Software Inc.
|
|
11
11
|
*
|
|
@@ -41,7 +41,7 @@ function createKey() {
|
|
|
41
41
|
}
|
|
42
42
|
function createLocation(current, to, state = null, key) {
|
|
43
43
|
let location = {
|
|
44
|
-
pathname:
|
|
44
|
+
pathname: typeof current === "string" ? current : current.pathname,
|
|
45
45
|
search: "",
|
|
46
46
|
hash: "",
|
|
47
47
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { a as RouteComponentType, H as HydrateFallbackType, E as ErrorBoundaryType } from './components-
|
|
4
|
-
export { f as Await, A as AwaitProps, I as IndexRouteProps, L as LayoutRouteProps, g as MemoryRouter, M as MemoryRouterOpts, b as MemoryRouterProps, h as Navigate, q as NavigateFunction, N as NavigateProps, i as Outlet, O as OutletProps, P as PathRouteProps, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, X as UNSAFE_hydrationRouteProperties, Y as UNSAFE_mapRouteProperties, Z as UNSAFE_withComponentProps, $ as UNSAFE_withErrorBoundaryProps, _ as UNSAFE_withHydrateFallbackProps, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, r as renderMatches, s as useActionData, t as useAsyncError, v as useAsyncValue, u as useBlocker, w as useHref, x as useInRouterContext, y as useLoaderData, z as useLocation, B as useMatch, C as useMatches, D as useNavigate, F as useNavigation, G as useNavigationType, J as useOutlet, K as useOutletContext, Q as useParams, S as useResolvedPath, T as useRevalidator, U as useRouteError, V as useRouteLoaderData, W as useRoutes } from './components-
|
|
5
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-
|
|
6
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, $ as HandleDataRequestFunction, a0 as HandleDocumentRequestFunction, a1 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, Z as PrefetchPageLinks, Y as Scripts, _ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a2 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a3 as UNSAFE_FrameworkContext, a4 as
|
|
1
|
+
import { i as Router, W as RouteModules, D as DataStrategyFunction, I as InitialEntry, H as HydrationState, L as LoadRouteModuleFunction, m as IndexRouteObject, u as LoaderFunction, q as ActionFunction, M as MetaFunction, t as LinksFunction, k as NonIndexRouteObject, X as unstable_InitialContext, Y as MiddlewareEnabled, Z as AppLoadContext, _ as Equal, $ as RouterState, c as Location, o as PatchRoutesOnNavigationFunction, a0 as DataRouteObject, r as ClientLoaderFunction, d as Path } from './route-data-DJcKSHWq.mjs';
|
|
2
|
+
export { ab as ActionFunctionArgs, a as Blocker, B as BlockerFunction, C as ClientActionFunction, aI as ClientActionFunctionArgs, aJ as ClientLoaderFunctionArgs, aG as DataRouteMatch, ac as DataStrategyFunctionArgs, ad as DataStrategyMatch, ae as DataStrategyResult, ag as ErrorResponse, a5 as Fetcher, ah as FormEncType, ai as FormMethod, aO as Future, a2 as GetScrollPositionFunction, a3 as GetScrollRestorationKeyFunction, aj as HTMLFormMethod, aK as HeadersArgs, s as HeadersFunction, aN as HtmlLinkDescriptor, aw as IDLE_BLOCKER, av as IDLE_FETCHER, au as IDLE_NAVIGATION, l as LazyRouteFunction, x as LinkDescriptor, ak as LoaderFunctionArgs, aL as MetaArgs, z as MetaDescriptor, N as NavigateOptions, g as Navigation, a6 as NavigationStates, A as NavigationType, n as Navigator, aM as PageLinkDescriptor, P as ParamParseKey, h as Params, aH as PatchRoutesOnNavigationFunctionArgs, f as PathMatch, am as PathParam, e as PathPattern, an as RedirectFunction, b as RelativeRoutingType, aa as RevalidationState, p as RouteMatch, j as RouteObject, a9 as RouterFetchOptions, R as RouterInit, a8 as RouterNavigateOptions, a7 as RouterSubscriber, v as ShouldRevalidateFunction, ap as ShouldRevalidateFunctionArgs, a1 as StaticHandler, a4 as StaticHandlerContext, T as To, U as UIMatch, aU as UNSAFE_DataRouterContext, aV as UNSAFE_DataRouterStateContext, af as UNSAFE_DataWithResponseInit, aT as UNSAFE_ErrorResponseImpl, aW as UNSAFE_FetchersContext, aX as UNSAFE_LocationContext, aY as UNSAFE_NavigationContext, aZ as UNSAFE_RouteContext, a_ as UNSAFE_ViewTransitionContext, aQ as UNSAFE_createBrowserHistory, a$ as UNSAFE_createClientRoutes, b0 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aS as UNSAFE_createRouter, aR as UNSAFE_invariant, b1 as UNSAFE_shouldHydrateRouteLoader, as as createPath, ax as data, ay as generatePath, az as isRouteErrorResponse, aA as matchPath, aB as matchRoutes, at as parsePath, aC as redirect, aD as redirectDocument, aE as replace, aF as resolvePath, al as unstable_MiddlewareFunction, ao as unstable_RouterContext, ar as unstable_RouterContextProvider, aP as unstable_SerializesTo, aq as unstable_createContext } from './route-data-DJcKSHWq.mjs';
|
|
3
|
+
import { a as RouteComponentType, H as HydrateFallbackType, E as ErrorBoundaryType } from './components-Yh5Jx3In.mjs';
|
|
4
|
+
export { f as Await, A as AwaitProps, I as IndexRouteProps, L as LayoutRouteProps, g as MemoryRouter, M as MemoryRouterOpts, b as MemoryRouterProps, h as Navigate, q as NavigateFunction, N as NavigateProps, i as Outlet, O as OutletProps, P as PathRouteProps, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, X as UNSAFE_hydrationRouteProperties, Y as UNSAFE_mapRouteProperties, Z as UNSAFE_withComponentProps, $ as UNSAFE_withErrorBoundaryProps, _ as UNSAFE_withHydrateFallbackProps, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, r as renderMatches, s as useActionData, t as useAsyncError, v as useAsyncValue, u as useBlocker, w as useHref, x as useInRouterContext, y as useLoaderData, z as useLocation, B as useMatch, C as useMatches, D as useNavigate, F as useNavigation, G as useNavigationType, J as useOutlet, K as useOutletContext, Q as useParams, S as useResolvedPath, T as useRevalidator, U as useRouteError, V as useRouteLoaderData, W as useRoutes } from './components-Yh5Jx3In.mjs';
|
|
5
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-CdDCHn2r.mjs';
|
|
6
|
+
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, $ as HandleDataRequestFunction, a0 as HandleDocumentRequestFunction, a1 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, Z as PrefetchPageLinks, Y as Scripts, _ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a2 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a3 as UNSAFE_FrameworkContext, a4 as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-CdDCHn2r.mjs';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import React__default, { ReactElement } from 'react';
|
|
9
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
10
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
11
|
import { P as Pages } from './register-DiOIlEq5.mjs';
|
|
12
12
|
export { a as Register } from './register-DiOIlEq5.mjs';
|
|
13
|
-
import { R as RSCPayload, m as matchRSCServerRequest } from './browser-
|
|
14
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, b as unstable_DecodeFormStateFunction, d as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, a as unstable_RSCHydratedRouter, e as unstable_RSCManifestPayload, f as unstable_RSCMatch, h as unstable_RSCRenderPayload, l as unstable_RSCRouteConfig, k as unstable_RSCRouteConfigEntry, i as unstable_RSCRouteManifest, j as unstable_RSCRouteMatch, c as unstable_createCallServer, g as unstable_getRSCStream } from './browser-
|
|
13
|
+
import { R as RSCPayload, m as matchRSCServerRequest } from './browser-Dy-ESm-r.mjs';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, b as unstable_DecodeFormStateFunction, d as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, a as unstable_RSCHydratedRouter, e as unstable_RSCManifestPayload, f as unstable_RSCMatch, h as unstable_RSCRenderPayload, l as unstable_RSCRouteConfig, k as unstable_RSCRouteConfigEntry, i as unstable_RSCRouteManifest, j as unstable_RSCRouteMatch, c as unstable_createCallServer, g as unstable_getRSCStream } from './browser-Dy-ESm-r.mjs';
|
|
15
15
|
import 'node:async_hooks';
|
|
16
16
|
|
|
17
17
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
@@ -87,11 +87,15 @@ interface RoutesTestStubProps {
|
|
|
87
87
|
* Future flags mimicking the settings in react-router.config.ts
|
|
88
88
|
*/
|
|
89
89
|
future?: Partial<FutureConfig>;
|
|
90
|
+
/**
|
|
91
|
+
* LoadRouteModuleFunction to use in the test
|
|
92
|
+
*/
|
|
93
|
+
loadRouteModule?: LoadRouteModuleFunction;
|
|
90
94
|
}
|
|
91
95
|
/**
|
|
92
96
|
* @category Utils
|
|
93
97
|
*/
|
|
94
|
-
declare function createRoutesStub(routes: StubRouteObject[], unstable_getContext?: () => unstable_InitialContext): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;
|
|
98
|
+
declare function createRoutesStub(routes: StubRouteObject[], unstable_getContext?: () => unstable_InitialContext): ({ initialEntries, initialIndex, hydrationData, future, loadRouteModule, }: RoutesTestStubProps) => React.JSX.Element;
|
|
95
99
|
|
|
96
100
|
interface CookieSignatureOptions {
|
|
97
101
|
/**
|
|
@@ -390,8 +394,8 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
390
394
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
391
395
|
}
|
|
392
396
|
|
|
393
|
-
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
394
|
-
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
|
|
397
|
+
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined, loadRouteModule: LoadRouteModuleFunction): PatchRoutesOnNavigationFunction | undefined;
|
|
398
|
+
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, loadRouteModule: LoadRouteModuleFunction): void;
|
|
395
399
|
|
|
396
400
|
declare function getHydrationData(state: {
|
|
397
401
|
loaderData?: Router["state"]["loaderData"];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, R as RouteComponentType, H as HydrateFallbackType, a as ErrorBoundaryType, S as ServerBuild } from './index-react-server-client-
|
|
4
|
-
export { h as Await, b as AwaitProps, af as BrowserRouter, $ as BrowserRouterProps, a0 as DOMRouterOpts, a6 as FetcherFormProps, ab as FetcherSubmitFunction, av as FetcherSubmitOptions, ac as FetcherWithComponents, ak as Form, a7 as FormProps, aM as HandleDataRequestFunction, aN as HandleDocumentRequestFunction, aO as HandleErrorFunction, ag as HashRouter, a1 as HashRouterProps, a2 as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, ah as Link, a3 as LinkProps, aI as Links, i as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, aH as Meta, aj as NavLink, a4 as NavLinkProps, a5 as NavLinkRenderProps, j as Navigate, t as NavigateFunction, N as NavigateProps, k as Outlet, O as OutletProps, aw as ParamKeyValuePair, P as PathRouteProps, aK as PrefetchPageLinks, l as Route, d as RouteProps, m as Router, e as RouterProps, n as RouterProvider, f as RouterProviderProps, o as Routes, g as RoutesProps, aJ as Scripts, aL as ScriptsProps, al as ScrollRestoration, a8 as ScrollRestorationProps, aP as ServerEntryModule, a9 as SetURLSearchParams, aF as StaticRouter, aB as StaticRouterProps, aG as StaticRouterProvider, aC as StaticRouterProviderProps, aa as SubmitFunction, ax as SubmitOptions, az as SubmitTarget, aV as UNSAFE_FrameworkContext,
|
|
1
|
+
import { e as Router, f as RouteModules, D as DataStrategyFunction, I as InitialEntry, H as HydrationState, L as LoadRouteModuleFunction, g as IndexRouteObject, h as LoaderFunction, A as ActionFunction, i as MetaFunction, j as LinksFunction, k as NonIndexRouteObject, l as unstable_InitialContext, m as MiddlewareEnabled, n as AppLoadContext, E as Equal, o as ClientActionFunction, p as ClientLoaderFunction, q as HeadersFunction, r as ShouldRevalidateFunction, b as Location, s as Params, t as RouterState, v as PatchRoutesOnNavigationFunction, w as DataRouteObject, x as Path } from './routeModules-C82B1sOz.js';
|
|
2
|
+
export { $ as ActionFunctionArgs, U as Blocker, V as BlockerFunction, aG as ClientActionFunctionArgs, aH as ClientLoaderFunctionArgs, aA as DataRouteMatch, a0 as DataStrategyFunctionArgs, a1 as DataStrategyMatch, a2 as DataStrategyResult, a4 as ErrorResponse, J as Fetcher, a5 as FormEncType, a6 as FormMethod, aM as Future, z as GetScrollPositionFunction, B as GetScrollRestorationKeyFunction, a7 as HTMLFormMethod, aI as HeadersArgs, aL as HtmlLinkDescriptor, aq as IDLE_BLOCKER, ap as IDLE_FETCHER, ao as IDLE_NAVIGATION, a8 as LazyRouteFunction, a as LinkDescriptor, a9 as LoaderFunctionArgs, aJ as MetaArgs, M as MetaDescriptor, aB as NavigateOptions, K as Navigation, O as NavigationStates, al as NavigationType, aC as Navigator, aK as PageLinkDescriptor, ab as ParamParseKey, aD as PatchRoutesOnNavigationFunctionArgs, ac as PathMatch, ad as PathParam, ae as PathPattern, af as RedirectFunction, Q as RelativeRoutingType, _ as RevalidationState, aE as RouteMatch, aF as RouteObject, Z as RouterFetchOptions, W as RouterInit, Y as RouterNavigateOptions, X as RouterSubscriber, ah as ShouldRevalidateFunctionArgs, y as StaticHandler, F as StaticHandlerContext, T as To, ai as UIMatch, aS as UNSAFE_DataRouterContext, aT as UNSAFE_DataRouterStateContext, a3 as UNSAFE_DataWithResponseInit, aR as UNSAFE_ErrorResponseImpl, aU as UNSAFE_FetchersContext, aV as UNSAFE_LocationContext, aW as UNSAFE_NavigationContext, aX as UNSAFE_RouteContext, aY as UNSAFE_ViewTransitionContext, aO as UNSAFE_createBrowserHistory, aZ as UNSAFE_createClientRoutes, a_ as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aQ as UNSAFE_createRouter, aP as UNSAFE_invariant, a$ as UNSAFE_shouldHydrateRouteLoader, am as createPath, ar as data, as as generatePath, at as isRouteErrorResponse, au as matchPath, av as matchRoutes, an as parsePath, aw as redirect, ax as redirectDocument, ay as replace, az as resolvePath, aa as unstable_MiddlewareFunction, ag as unstable_RouterContext, ak as unstable_RouterContextProvider, aN as unstable_SerializesTo, aj as unstable_createContext } from './routeModules-C82B1sOz.js';
|
|
3
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, R as RouteComponentType, H as HydrateFallbackType, a as ErrorBoundaryType, S as ServerBuild } from './index-react-server-client-BM01za3r.js';
|
|
4
|
+
export { h as Await, b as AwaitProps, af as BrowserRouter, $ as BrowserRouterProps, a0 as DOMRouterOpts, a6 as FetcherFormProps, ab as FetcherSubmitFunction, av as FetcherSubmitOptions, ac as FetcherWithComponents, ak as Form, a7 as FormProps, aM as HandleDataRequestFunction, aN as HandleDocumentRequestFunction, aO as HandleErrorFunction, ag as HashRouter, a1 as HashRouterProps, a2 as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, ah as Link, a3 as LinkProps, aI as Links, i as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, aH as Meta, aj as NavLink, a4 as NavLinkProps, a5 as NavLinkRenderProps, j as Navigate, t as NavigateFunction, N as NavigateProps, k as Outlet, O as OutletProps, aw as ParamKeyValuePair, P as PathRouteProps, aK as PrefetchPageLinks, l as Route, d as RouteProps, m as Router, e as RouterProps, n as RouterProvider, f as RouterProviderProps, o as Routes, g as RoutesProps, aJ as Scripts, aL as ScriptsProps, al as ScrollRestoration, a8 as ScrollRestorationProps, aP as ServerEntryModule, a9 as SetURLSearchParams, aF as StaticRouter, aB as StaticRouterProps, aG as StaticRouterProvider, aC as StaticRouterProviderProps, aa as SubmitFunction, ax as SubmitOptions, az as SubmitTarget, aV as UNSAFE_FrameworkContext, aQ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_mapRouteProperties, aW as UNSAFE_useScrollRestoration, aS as UNSAFE_withComponentProps, aU as UNSAFE_withErrorBoundaryProps, aT as UNSAFE_withHydrateFallbackProps, ay as URLSearchParamsInit, ad as createBrowserRouter, ae as createHashRouter, p as createMemoryRouter, q as createRoutesFromChildren, r as createRoutesFromElements, aA as createSearchParams, aD as createStaticHandler, aE as createStaticRouter, s as renderMatches, ai as unstable_HistoryRouter, at as unstable_usePrompt, v as useActionData, w as useAsyncError, x as useAsyncValue, as as useBeforeUnload, u as useBlocker, aq as useFetcher, ar as useFetchers, ap as useFormAction, y as useHref, z as useInRouterContext, am as useLinkClickHandler, B as useLoaderData, C as useLocation, D as useMatch, G as useMatches, J as useNavigate, K as useNavigation, Q as useNavigationType, T as useOutlet, U as useOutletContext, V as useParams, W as useResolvedPath, X as useRevalidator, Y as useRouteError, Z as useRouteLoaderData, _ as useRoutes, an as useSearchParams, ao as useSubmit, au as useViewTransitionState } from './index-react-server-client-BM01za3r.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -83,11 +83,15 @@ interface RoutesTestStubProps {
|
|
|
83
83
|
* Future flags mimicking the settings in react-router.config.ts
|
|
84
84
|
*/
|
|
85
85
|
future?: Partial<FutureConfig>;
|
|
86
|
+
/**
|
|
87
|
+
* LoadRouteModuleFunction to use in the test
|
|
88
|
+
*/
|
|
89
|
+
loadRouteModule?: LoadRouteModuleFunction;
|
|
86
90
|
}
|
|
87
91
|
/**
|
|
88
92
|
* @category Utils
|
|
89
93
|
*/
|
|
90
|
-
declare function createRoutesStub(routes: StubRouteObject[], unstable_getContext?: () => unstable_InitialContext): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;
|
|
94
|
+
declare function createRoutesStub(routes: StubRouteObject[], unstable_getContext?: () => unstable_InitialContext): ({ initialEntries, initialIndex, hydrationData, future, loadRouteModule, }: RoutesTestStubProps) => React.JSX.Element;
|
|
91
95
|
|
|
92
96
|
interface CookieSignatureOptions {
|
|
93
97
|
/**
|
|
@@ -535,8 +539,8 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
535
539
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
536
540
|
}
|
|
537
541
|
|
|
538
|
-
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
539
|
-
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
|
|
542
|
+
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined, loadRouteModule: LoadRouteModuleFunction): PatchRoutesOnNavigationFunction | undefined;
|
|
543
|
+
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, loadRouteModule: LoadRouteModuleFunction): void;
|
|
540
544
|
|
|
541
545
|
declare function getHydrationData(state: {
|
|
542
546
|
loaderData?: Router["state"]["loaderData"];
|