react-router 7.18.4 → 7.18.6
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 +21 -0
- package/dist/development/{browser-eq4RgLsD.d.ts → browser-7x6a6gQP.d.ts} +1 -1
- package/dist/development/{browser-BR5QG7ZC.d.mts → browser-CiGxXXOl.d.mts} +1 -1
- package/dist/development/{chunk-LVPI3KDG.js → chunk-3QTLHDUO.js} +7 -7
- package/dist/{production/chunk-G2MPF4YY.mjs → development/chunk-E2PF4K4Z.mjs} +25 -7
- package/dist/development/{chunk-HQO5H5CC.js → chunk-QM7ETCUK.js} +109 -104
- package/dist/development/{chunk-GR4NQCSD.js → chunk-S47XUPN5.js} +133 -66
- package/dist/development/{chunk-OB3PAWPO.mjs → chunk-YDNE64FV.mjs} +135 -64
- package/dist/{production/context-nqAapj74.d.mts → development/context-BlYKn1tE.d.mts} +2 -0
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +37 -35
- package/dist/development/dom-export.mjs +6 -4
- package/dist/development/{index-react-server-client-BjY-eKuf.d.ts → index-react-server-client-BaaZU3sM.d.ts} +1 -1
- package/dist/development/{index-react-server-client-K63fpMH4.d.mts → index-react-server-client-KK-TR-t7.d.mts} +1 -1
- package/dist/development/index-react-server-client.d.mts +2 -2
- 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 +2 -0
- package/dist/development/index-react-server.d.ts +2 -0
- package/dist/development/index-react-server.js +109 -17
- package/dist/development/index-react-server.mjs +109 -17
- package/dist/development/index.d.mts +7 -7
- package/dist/development/index.d.ts +7 -7
- package/dist/development/index.js +121 -103
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-B7w3_Eo9.d.ts → development/instrumentation-CPkMwccd.d.ts} +2 -0
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{browser-eq4RgLsD.d.ts → browser-7x6a6gQP.d.ts} +1 -1
- package/dist/production/{browser-BR5QG7ZC.d.mts → browser-CiGxXXOl.d.mts} +1 -1
- package/dist/production/{chunk-AOOKMWND.js → chunk-2WUBOUFU.js} +109 -104
- package/dist/production/{chunk-QURBR4FZ.js → chunk-3IBQ4CTZ.js} +7 -7
- package/dist/production/{chunk-YNGRUB6F.js → chunk-AC65NKOP.js} +133 -66
- package/dist/production/{chunk-Q34X6AWR.mjs → chunk-HEAXLYUI.mjs} +135 -64
- package/dist/{development/chunk-H4DAEOV7.mjs → production/chunk-JRCXCPLA.mjs} +25 -7
- package/dist/{development/context-nqAapj74.d.mts → production/context-BlYKn1tE.d.mts} +2 -0
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +37 -35
- package/dist/production/dom-export.mjs +6 -4
- package/dist/production/{index-react-server-client-BjY-eKuf.d.ts → index-react-server-client-BaaZU3sM.d.ts} +1 -1
- package/dist/production/{index-react-server-client-K63fpMH4.d.mts → index-react-server-client-KK-TR-t7.d.mts} +1 -1
- package/dist/production/index-react-server-client.d.mts +2 -2
- 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 +2 -0
- package/dist/production/index-react-server.d.ts +2 -0
- package/dist/production/index-react-server.js +109 -17
- package/dist/production/index-react-server.mjs +109 -17
- package/dist/production/index.d.mts +7 -7
- package/dist/production/index.d.ts +7 -7
- package/dist/production/index.js +121 -103
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-B7w3_Eo9.d.ts → production/instrumentation-CPkMwccd.d.ts} +2 -0
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export { BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLi
|
|
|
6
6
|
import { serialize, parse } from 'cookie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* react-router v7.18.
|
|
9
|
+
* react-router v7.18.6
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -272,6 +272,53 @@ function isPlainObject(thing) {
|
|
|
272
272
|
return proto === Object.prototype || proto === null || Object.getOwnPropertyNames(proto).sort().join("\0") === objectProtoNames;
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
+
// lib/router/navigation.ts
|
|
276
|
+
var DEFAULT_NAVIGATION_URL = new URL("http://localhost");
|
|
277
|
+
function isSameOrigin(a, b) {
|
|
278
|
+
return a.origin === b.origin && (a.origin !== "null" || a.protocol === b.protocol && a.host === b.host);
|
|
279
|
+
}
|
|
280
|
+
function isExplicitUrl(destination, target) {
|
|
281
|
+
if (destination.startsWith("//")) {
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
let protocol = target.protocol.toLowerCase();
|
|
285
|
+
if (!destination.toLowerCase().startsWith(protocol)) {
|
|
286
|
+
return false;
|
|
287
|
+
}
|
|
288
|
+
return target.host === "" || destination.slice(protocol.length).startsWith("//");
|
|
289
|
+
}
|
|
290
|
+
function validateDocumentNavigationTarget(destination) {
|
|
291
|
+
let normalized = destination.replace(/[\t\n\r]/g, "");
|
|
292
|
+
let start = 0;
|
|
293
|
+
while (normalized.charCodeAt(start) <= 32) start++;
|
|
294
|
+
normalized = normalized.slice(start);
|
|
295
|
+
if (!ABSOLUTE_URL_REGEX.test(normalized)) return;
|
|
296
|
+
let target;
|
|
297
|
+
try {
|
|
298
|
+
target = new URL(destination, DEFAULT_NAVIGATION_URL);
|
|
299
|
+
} catch {
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
if (!isExplicitUrl(destination, target)) {
|
|
303
|
+
throw new Error("External navigation is not allowed");
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function validateNavigationTarget(original, resolved, currentUrl, externalPolicy) {
|
|
307
|
+
let originalUrl = null;
|
|
308
|
+
try {
|
|
309
|
+
originalUrl = original == null ? null : new URL(original, currentUrl);
|
|
310
|
+
} catch {
|
|
311
|
+
}
|
|
312
|
+
let resolvedUrl = new URL(resolved, currentUrl);
|
|
313
|
+
originalUrl != null && !isSameOrigin(originalUrl, currentUrl);
|
|
314
|
+
let resolvedIsExternal = !isSameOrigin(resolvedUrl, currentUrl);
|
|
315
|
+
if (resolvedIsExternal) {
|
|
316
|
+
if (originalUrl == null || !isExplicitUrl(original, originalUrl) || !isSameOrigin(originalUrl, resolvedUrl)) {
|
|
317
|
+
throw new Error("External navigation is not allowed");
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
275
322
|
// lib/router/utils.ts
|
|
276
323
|
function createContext(defaultValue) {
|
|
277
324
|
return { defaultValue };
|
|
@@ -853,6 +900,7 @@ function data(data2, init) {
|
|
|
853
900
|
);
|
|
854
901
|
}
|
|
855
902
|
var redirect = (url, init = 302) => {
|
|
903
|
+
validateDocumentNavigationTarget(url);
|
|
856
904
|
let responseInit = init;
|
|
857
905
|
if (typeof responseInit === "number") {
|
|
858
906
|
responseInit = { status: responseInit };
|
|
@@ -945,6 +993,10 @@ function createStaticHandler(routes, opts) {
|
|
|
945
993
|
manifest
|
|
946
994
|
);
|
|
947
995
|
let routeBranches = flattenAndRankRoutes(dataRoutes);
|
|
996
|
+
let matchCost = routeBranches.reduce(
|
|
997
|
+
(total, branch) => total + branch.routesMeta.length,
|
|
998
|
+
0
|
|
999
|
+
);
|
|
948
1000
|
async function query(request, {
|
|
949
1001
|
requestContext,
|
|
950
1002
|
filterMatchesToLoad,
|
|
@@ -1564,6 +1616,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1564
1616
|
}
|
|
1565
1617
|
return {
|
|
1566
1618
|
dataRoutes,
|
|
1619
|
+
_matchCost: matchCost,
|
|
1567
1620
|
_internalRouteBranches: routeBranches,
|
|
1568
1621
|
query,
|
|
1569
1622
|
queryRoute
|
|
@@ -2201,6 +2254,10 @@ function normalizeRelativeRoutingRedirectResponse(response, request, routeId, ma
|
|
|
2201
2254
|
location,
|
|
2202
2255
|
"Redirects returned/thrown from loaders/actions must have a Location header"
|
|
2203
2256
|
);
|
|
2257
|
+
validateNavigationTarget(
|
|
2258
|
+
location,
|
|
2259
|
+
location,
|
|
2260
|
+
new URL(request.url));
|
|
2204
2261
|
if (!isAbsoluteUrl(location)) {
|
|
2205
2262
|
let trimmedMatches = matches.slice(
|
|
2206
2263
|
0,
|
|
@@ -2544,6 +2601,13 @@ function getPathsWithAncestors(paths) {
|
|
|
2544
2601
|
});
|
|
2545
2602
|
return Array.from(result);
|
|
2546
2603
|
}
|
|
2604
|
+
var MANIFEST_MATCH_COST_LIMIT = 5e4;
|
|
2605
|
+
var MANIFEST_MATCH_COST_SEGMENT_THRESHOLD = 10;
|
|
2606
|
+
function shouldUseInitialRouteDiscovery(pathname, matchCost = 0) {
|
|
2607
|
+
let segmentCount = pathname.split("/").length - 1;
|
|
2608
|
+
let ancestorCount = Math.max(segmentCount - 1, 0);
|
|
2609
|
+
return ancestorCount * pathname.length + 1 > URL_LIMIT || segmentCount > MANIFEST_MATCH_COST_SEGMENT_THRESHOLD && segmentCount * matchCost > MANIFEST_MATCH_COST_LIMIT;
|
|
2610
|
+
}
|
|
2547
2611
|
|
|
2548
2612
|
// lib/actions.ts
|
|
2549
2613
|
function throwIfPotentialCSRFAttack(request, allowedActionOrigins) {
|
|
@@ -2768,7 +2832,7 @@ async function matchRSCServerRequest({
|
|
|
2768
2832
|
}
|
|
2769
2833
|
const leafMatch = matches?.[matches.length - 1];
|
|
2770
2834
|
if (!isDataRequest && leafMatch && !leafMatch.route.Component && !leafMatch.route.ErrorBoundary) {
|
|
2771
|
-
|
|
2835
|
+
let response2 = await generateResourceResponse(
|
|
2772
2836
|
routerRequest,
|
|
2773
2837
|
routes,
|
|
2774
2838
|
basename,
|
|
@@ -2776,6 +2840,7 @@ async function matchRSCServerRequest({
|
|
|
2776
2840
|
requestContext,
|
|
2777
2841
|
onError
|
|
2778
2842
|
);
|
|
2843
|
+
return normalizeResourceResponse(request, response2);
|
|
2779
2844
|
}
|
|
2780
2845
|
let response = await generateRenderResponse(
|
|
2781
2846
|
routerRequest,
|
|
@@ -2796,6 +2861,20 @@ async function matchRSCServerRequest({
|
|
|
2796
2861
|
response.headers.set("X-Remix-Response", "yes");
|
|
2797
2862
|
return response;
|
|
2798
2863
|
}
|
|
2864
|
+
function normalizeResourceResponse(request, response) {
|
|
2865
|
+
if (request.method === "HEAD") {
|
|
2866
|
+
response.body?.cancel().catch(() => {
|
|
2867
|
+
});
|
|
2868
|
+
let headers = new Headers(response.headers);
|
|
2869
|
+
headers.set("React-Router-Resource", "true");
|
|
2870
|
+
return new Response(null, {
|
|
2871
|
+
status: response.status,
|
|
2872
|
+
statusText: response.statusText,
|
|
2873
|
+
headers
|
|
2874
|
+
});
|
|
2875
|
+
}
|
|
2876
|
+
return response;
|
|
2877
|
+
}
|
|
2799
2878
|
async function generateManifestResponse(routes, basename, request, generateResponse, temporaryReferences, routeDiscovery) {
|
|
2800
2879
|
let url = new URL(request.url);
|
|
2801
2880
|
if (url.toString().length > URL_LIMIT) {
|
|
@@ -3109,7 +3188,8 @@ async function generateRenderResponse(request, routes, basename, isDataRequest,
|
|
|
3109
3188
|
temporaryReferences,
|
|
3110
3189
|
skipRevalidation,
|
|
3111
3190
|
ctx.redirect?.headers,
|
|
3112
|
-
routeDiscovery
|
|
3191
|
+
routeDiscovery,
|
|
3192
|
+
staticHandler._matchCost
|
|
3113
3193
|
);
|
|
3114
3194
|
}
|
|
3115
3195
|
})
|
|
@@ -3159,7 +3239,7 @@ function generateRedirectResponse(response, actionResult, basename, isDataReques
|
|
|
3159
3239
|
{ temporaryReferences, onError: defaultOnError }
|
|
3160
3240
|
);
|
|
3161
3241
|
}
|
|
3162
|
-
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery) {
|
|
3242
|
+
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery, matchCost) {
|
|
3163
3243
|
statusCode = staticContext.statusCode ?? statusCode;
|
|
3164
3244
|
if (staticContext.errors) {
|
|
3165
3245
|
staticContext.errors = Object.fromEntries(
|
|
@@ -3201,7 +3281,8 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3201
3281
|
routeIdsToLoad,
|
|
3202
3282
|
isDataRequest,
|
|
3203
3283
|
staticContext,
|
|
3204
|
-
routeDiscovery
|
|
3284
|
+
routeDiscovery,
|
|
3285
|
+
matchCost
|
|
3205
3286
|
);
|
|
3206
3287
|
let payload;
|
|
3207
3288
|
if (actionResult) {
|
|
@@ -3228,7 +3309,7 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3228
3309
|
{ temporaryReferences, onError: defaultOnError }
|
|
3229
3310
|
);
|
|
3230
3311
|
}
|
|
3231
|
-
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery) {
|
|
3312
|
+
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery, matchCost) {
|
|
3232
3313
|
let deepestRenderedRouteIdx = staticContext.matches.length - 1;
|
|
3233
3314
|
let parentIds = {};
|
|
3234
3315
|
staticContext.matches.forEach((m, i) => {
|
|
@@ -3252,18 +3333,27 @@ async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToL
|
|
|
3252
3333
|
});
|
|
3253
3334
|
})
|
|
3254
3335
|
);
|
|
3255
|
-
let
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3336
|
+
let pathname = staticContext.location.pathname;
|
|
3337
|
+
let useInitialRouteDiscovery = routeDiscovery?.mode === "initial" && !isDataRequest || shouldUseInitialRouteDiscovery(pathname, matchCost);
|
|
3338
|
+
let patches;
|
|
3339
|
+
if (useInitialRouteDiscovery) {
|
|
3340
|
+
patches = getAllRoutePatches(routes).then(
|
|
3341
|
+
(patches2) => patches2.filter(
|
|
3342
|
+
(patch) => !staticContext.matches.some((m) => m.route.id === patch.id)
|
|
3343
|
+
)
|
|
3344
|
+
);
|
|
3345
|
+
} else {
|
|
3346
|
+
patches = getAdditionalRoutePatches(
|
|
3347
|
+
// The full pathname is last and its matches are already in the payload.
|
|
3348
|
+
getPathsWithAncestors([pathname]).slice(0, -1),
|
|
3349
|
+
routes,
|
|
3350
|
+
basename,
|
|
3351
|
+
staticContext.matches.map((m) => m.route.id)
|
|
3352
|
+
);
|
|
3353
|
+
}
|
|
3265
3354
|
return {
|
|
3266
3355
|
...baseRenderPayload,
|
|
3356
|
+
routeDiscovery: useInitialRouteDiscovery ? { mode: "initial" } : baseRenderPayload.routeDiscovery,
|
|
3267
3357
|
matches: await matchesPromise,
|
|
3268
3358
|
patches
|
|
3269
3359
|
};
|
|
@@ -3491,7 +3581,9 @@ function href(path, ...args) {
|
|
|
3491
3581
|
result += "/" + value;
|
|
3492
3582
|
}
|
|
3493
3583
|
}
|
|
3494
|
-
|
|
3584
|
+
result = result.replace(/^[\\/]{2,}/, "/") || "/";
|
|
3585
|
+
validateDocumentNavigationTarget(result);
|
|
3586
|
+
return result;
|
|
3495
3587
|
}
|
|
3496
3588
|
function trimTrailingSplat(path) {
|
|
3497
3589
|
let i = path.length - 1;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Z as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, L as Location, P as Params, U as UIMatch, v as Action, _ as SerializeFrom, $ as PathPattern, a0 as PathMatch, a1 as ParamParseKey, K as Path, r as RouteObject, G as GetLoaderData, l as GetActionData, O as InitialEntry, W as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, Q as NonIndexRouteObject, a2 as Equal, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, a as ClientLoaderFunction } from './data-DEjBmEfD.mjs';
|
|
2
2
|
export { a3 as ActionFunctionArgs, a4 as BaseRouteObject, C as ClientActionFunction, as as ClientActionFunctionArgs, at as ClientLoaderFunctionArgs, w as DataRouteMatch, a5 as DataStrategyFunctionArgs, a6 as DataStrategyMatch, D as DataStrategyResult, a8 as ErrorResponse, n as FormEncType, a9 as FormMethod, ay as Future, m as HTMLFormMethod, au as HeadersArgs, H as HeadersFunction, ax as HtmlLinkDescriptor, V as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, av as MetaArgs, g as MetaDescriptor, aa as MiddlewareFunction, aw as PageLinkDescriptor, ab as PatchRoutesOnNavigationFunctionArgs, ac as PathParam, ad as RedirectFunction, X as RouteMatch, ae as RouterContext, S as ShouldRevalidateFunction, af as ShouldRevalidateFunctionArgs, a7 as UNSAFE_DataWithResponseInit, aE as UNSAFE_ErrorResponseImpl, aB as UNSAFE_createBrowserHistory, aC as UNSAFE_createHashHistory, aA as UNSAFE_createMemoryHistory, aD as UNSAFE_invariant, ag as createContext, ah as createPath, aj as data, ak as generatePath, al as isRouteErrorResponse, am as matchPath, an as matchRoutes, ai as parsePath, ao as redirect, ap as redirectDocument, aq as replace, ar as resolvePath, az as unstable_SerializesTo } from './data-DEjBmEfD.mjs';
|
|
3
|
-
import { c as Router, N as NavigateOptions, d as NavigationStates, B as BlockerFunction, e as Blocker, f as RelativeRoutingType, H as HydrationState } from './context-
|
|
4
|
-
export { K as Await, w as AwaitProps, C as ClientInstrumentation, b as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, g as GetScrollRestorationKeyFunction, u as IDLE_BLOCKER, t as IDLE_FETCHER, s as IDLE_NAVIGATION, x as IndexRouteProps, I as InstrumentRequestHandlerFunction, q as InstrumentRouteFunction, p as InstrumentRouterFunction, r as InstrumentationHandlerResult, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, i as Navigation, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, n as RevalidationState, V as Route, D as RouteProps, W as Router, m as RouterFetchOptions, R as RouterInit, l as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, j as RouterState, k as RouterSubscriber, Y as Routes, J as RoutesProps, o as ServerInstrumentation, S as StaticHandler, h as StaticHandlerContext, A as UNSAFE_AwaitContextProvider, a2 as UNSAFE_DataRouterContext, a3 as UNSAFE_DataRouterStateContext, a4 as UNSAFE_FetchersContext, a5 as UNSAFE_LocationContext, a6 as UNSAFE_NavigationContext, a7 as UNSAFE_RouteContext, a8 as UNSAFE_ViewTransitionContext, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps, a1 as UNSAFE_createRouter, a9 as UNSAFE_hydrationRouteProperties, aa as UNSAFE_mapRouteProperties, ac as UNSAFE_withComponentProps, ag as UNSAFE_withErrorBoundaryProps, ae as UNSAFE_withHydrateFallbackProps, Z as createMemoryRouter, _ as createRoutesFromChildren, $ as createRoutesFromElements, a0 as renderMatches } from './context-
|
|
3
|
+
import { c as Router, N as NavigateOptions, d as NavigationStates, B as BlockerFunction, e as Blocker, f as RelativeRoutingType, H as HydrationState } from './context-BlYKn1tE.mjs';
|
|
4
|
+
export { K as Await, w as AwaitProps, C as ClientInstrumentation, b as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, g as GetScrollRestorationKeyFunction, u as IDLE_BLOCKER, t as IDLE_FETCHER, s as IDLE_NAVIGATION, x as IndexRouteProps, I as InstrumentRequestHandlerFunction, q as InstrumentRouteFunction, p as InstrumentRouterFunction, r as InstrumentationHandlerResult, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, i as Navigation, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, n as RevalidationState, V as Route, D as RouteProps, W as Router, m as RouterFetchOptions, R as RouterInit, l as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, j as RouterState, k as RouterSubscriber, Y as Routes, J as RoutesProps, o as ServerInstrumentation, S as StaticHandler, h as StaticHandlerContext, A as UNSAFE_AwaitContextProvider, a2 as UNSAFE_DataRouterContext, a3 as UNSAFE_DataRouterStateContext, a4 as UNSAFE_FetchersContext, a5 as UNSAFE_LocationContext, a6 as UNSAFE_NavigationContext, a7 as UNSAFE_RouteContext, a8 as UNSAFE_ViewTransitionContext, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps, a1 as UNSAFE_createRouter, a9 as UNSAFE_hydrationRouteProperties, aa as UNSAFE_mapRouteProperties, ac as UNSAFE_withComponentProps, ag as UNSAFE_withErrorBoundaryProps, ae as UNSAFE_withHydrateFallbackProps, Z as createMemoryRouter, _ as createRoutesFromChildren, $ as createRoutesFromElements, a0 as renderMatches } from './context-BlYKn1tE.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { ReactElement } from 'react';
|
|
7
7
|
import { a as RouteModules$1, P as Pages } from './register-CmkRspdl.mjs';
|
|
8
8
|
export { b as Register } from './register-CmkRspdl.mjs';
|
|
9
|
-
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-
|
|
10
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 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, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa 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-
|
|
9
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-KK-TR-t7.mjs';
|
|
10
|
+
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 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, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa 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-KK-TR-t7.mjs';
|
|
11
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
12
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
13
|
-
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-
|
|
14
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-
|
|
13
|
+
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-CiGxXXOl.mjs';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-CiGxXXOl.mjs';
|
|
15
15
|
|
|
16
16
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
17
17
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined, trailingSlashAware: boolean): DataStrategyFunction;
|
|
@@ -1445,7 +1445,7 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1445
1445
|
error: Error | null;
|
|
1446
1446
|
location: Location<any>;
|
|
1447
1447
|
};
|
|
1448
|
-
render(): string | number | boolean |
|
|
1448
|
+
render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
1451
|
declare function getPatchRoutesOnNavigationFunction(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { O as RouteModules, l as DataStrategyFunction, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, T as To, L as Location, P as Params, U as UIMatch, i as Action, Q as SerializeFrom, V as PathPattern, W as PathMatch, X as ParamParseKey, r as Path, e as RouteObject, G as GetLoaderData, K as GetActionData, Y as InitialEntry, Z as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, _ as NonIndexRouteObject, $ as Equal, m as PatchRoutesOnNavigationFunction, n as DataRouteObject, a as ClientLoaderFunction } from './data-CjO11-hU.js';
|
|
2
2
|
export { a0 as ActionFunctionArgs, a1 as BaseRouteObject, C as ClientActionFunction, ar as ClientActionFunctionArgs, as as ClientLoaderFunctionArgs, D as DataRouteMatch, a2 as DataStrategyFunctionArgs, a3 as DataStrategyMatch, I as DataStrategyResult, a5 as ErrorResponse, F as FormEncType, a6 as FormMethod, ax as Future, q as HTMLFormMethod, at as HeadersArgs, H as HeadersFunction, aw as HtmlLinkDescriptor, a7 as LazyRouteFunction, v as LinkDescriptor, s as LoaderFunctionArgs, au as MetaArgs, y as MetaDescriptor, a8 as MiddlewareFunction, av as PageLinkDescriptor, a9 as PatchRoutesOnNavigationFunctionArgs, aa as PathParam, ab as RedirectFunction, ac as RouteMatch, ad as RouterContext, S as ShouldRevalidateFunction, ae as ShouldRevalidateFunctionArgs, a4 as UNSAFE_DataWithResponseInit, aD as UNSAFE_ErrorResponseImpl, aA as UNSAFE_createBrowserHistory, aB as UNSAFE_createHashHistory, az as UNSAFE_createMemoryHistory, aC as UNSAFE_invariant, af as createContext, ag as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ah as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, ay as unstable_SerializesTo } from './data-CjO11-hU.js';
|
|
3
|
-
import { a as Router, N as NavigationStates, B as BlockerFunction, b as Blocker, c as RelativeRoutingType, H as HydrationState } from './instrumentation-
|
|
4
|
-
export { C as ClientInstrumentation, F as Fetcher, G as GetScrollPositionFunction, d as GetScrollRestorationKeyFunction, r as IDLE_BLOCKER, q as IDLE_FETCHER, p as IDLE_NAVIGATION, I as InstrumentRequestHandlerFunction, n as InstrumentRouteFunction, m as InstrumentRouterFunction, o as InstrumentationHandlerResult, f as Navigation, k as RevalidationState, j as RouterFetchOptions, R as RouterInit, i as RouterNavigateOptions, g as RouterState, h as RouterSubscriber, l as ServerInstrumentation, S as StaticHandler, e as StaticHandlerContext, s as UNSAFE_createRouter } from './instrumentation-
|
|
5
|
-
import { A as AssetsManifest, S as ServerBuild, N as NavigateOptions, E as EntryContext, F as FutureConfig } from './index-react-server-client-
|
|
6
|
-
export { i as Await, c as AwaitProps, W as BrowserRouter, B as BrowserRouterProps, C as ClientOnErrorFunction, D as DOMRouterOpts, at as DiscoverBehavior, y as FetcherFormProps, Q as FetcherSubmitFunction, aa as FetcherSubmitOptions, T as FetcherWithComponents, $ as Form, z as FormProps, au as HandleDataRequestFunction, av as HandleDocumentRequestFunction, aw as HandleErrorFunction, X as HashRouter, H as HashRouterProps, u as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Y as Link, v as LinkProps, an as Links, aq as LinksProps, j as MemoryRouter, M as MemoryRouterOpts, d as MemoryRouterProps, am as Meta, _ as NavLink, w as NavLinkProps, x as NavLinkRenderProps, k as Navigate, e as NavigateProps, a as Navigator, l as Outlet, O as OutletProps, ab as ParamKeyValuePair, P as PathRouteProps, as as PrefetchBehavior, ap as PrefetchPageLinks, m as Route, R as RouteProps, n as Router, f as RouterProps, o as RouterProvider, g as RouterProviderProps, p as Routes, h as RoutesProps, ao as Scripts, ar as ScriptsProps, a0 as ScrollRestoration, G as ScrollRestorationProps, ax as ServerEntryModule, J as SetURLSearchParams, ak as StaticRouter, ag as StaticRouterProps, al as StaticRouterProvider, ah as StaticRouterProviderProps, K as SubmitFunction, ac as SubmitOptions, ae as SubmitTarget, b as UNSAFE_AwaitContextProvider, ay as UNSAFE_DataRouterContext, az as UNSAFE_DataRouterStateContext, aA as UNSAFE_FetchersContext, aN as UNSAFE_FrameworkContext, aB as UNSAFE_LocationContext, aC as UNSAFE_NavigationContext, aD as UNSAFE_RouteContext, aE as UNSAFE_ViewTransitionContext, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, aO as UNSAFE_createClientRoutes, aP as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aF as UNSAFE_hydrationRouteProperties, aG as UNSAFE_mapRouteProperties, aQ as UNSAFE_shouldHydrateRouteLoader, aR as UNSAFE_useScrollRestoration, aI as UNSAFE_withComponentProps, aM as UNSAFE_withErrorBoundaryProps, aK as UNSAFE_withHydrateFallbackProps, ad as URLSearchParamsInit, U as createBrowserRouter, V as createHashRouter, q as createMemoryRouter, r as createRoutesFromChildren, s as createRoutesFromElements, af as createSearchParams, ai as createStaticHandler, aj as createStaticRouter, t as renderMatches, Z as unstable_HistoryRouter, a8 as unstable_usePrompt, a7 as useBeforeUnload, a5 as useFetcher, a6 as useFetchers, a4 as useFormAction, a1 as useLinkClickHandler, a2 as useSearchParams, a3 as useSubmit, a9 as useViewTransitionState } from './index-react-server-client-
|
|
3
|
+
import { a as Router, N as NavigationStates, B as BlockerFunction, b as Blocker, c as RelativeRoutingType, H as HydrationState } from './instrumentation-CPkMwccd.js';
|
|
4
|
+
export { C as ClientInstrumentation, F as Fetcher, G as GetScrollPositionFunction, d as GetScrollRestorationKeyFunction, r as IDLE_BLOCKER, q as IDLE_FETCHER, p as IDLE_NAVIGATION, I as InstrumentRequestHandlerFunction, n as InstrumentRouteFunction, m as InstrumentRouterFunction, o as InstrumentationHandlerResult, f as Navigation, k as RevalidationState, j as RouterFetchOptions, R as RouterInit, i as RouterNavigateOptions, g as RouterState, h as RouterSubscriber, l as ServerInstrumentation, S as StaticHandler, e as StaticHandlerContext, s as UNSAFE_createRouter } from './instrumentation-CPkMwccd.js';
|
|
5
|
+
import { A as AssetsManifest, S as ServerBuild, N as NavigateOptions, E as EntryContext, F as FutureConfig } from './index-react-server-client-BaaZU3sM.js';
|
|
6
|
+
export { i as Await, c as AwaitProps, W as BrowserRouter, B as BrowserRouterProps, C as ClientOnErrorFunction, D as DOMRouterOpts, at as DiscoverBehavior, y as FetcherFormProps, Q as FetcherSubmitFunction, aa as FetcherSubmitOptions, T as FetcherWithComponents, $ as Form, z as FormProps, au as HandleDataRequestFunction, av as HandleDocumentRequestFunction, aw as HandleErrorFunction, X as HashRouter, H as HashRouterProps, u as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Y as Link, v as LinkProps, an as Links, aq as LinksProps, j as MemoryRouter, M as MemoryRouterOpts, d as MemoryRouterProps, am as Meta, _ as NavLink, w as NavLinkProps, x as NavLinkRenderProps, k as Navigate, e as NavigateProps, a as Navigator, l as Outlet, O as OutletProps, ab as ParamKeyValuePair, P as PathRouteProps, as as PrefetchBehavior, ap as PrefetchPageLinks, m as Route, R as RouteProps, n as Router, f as RouterProps, o as RouterProvider, g as RouterProviderProps, p as Routes, h as RoutesProps, ao as Scripts, ar as ScriptsProps, a0 as ScrollRestoration, G as ScrollRestorationProps, ax as ServerEntryModule, J as SetURLSearchParams, ak as StaticRouter, ag as StaticRouterProps, al as StaticRouterProvider, ah as StaticRouterProviderProps, K as SubmitFunction, ac as SubmitOptions, ae as SubmitTarget, b as UNSAFE_AwaitContextProvider, ay as UNSAFE_DataRouterContext, az as UNSAFE_DataRouterStateContext, aA as UNSAFE_FetchersContext, aN as UNSAFE_FrameworkContext, aB as UNSAFE_LocationContext, aC as UNSAFE_NavigationContext, aD as UNSAFE_RouteContext, aE as UNSAFE_ViewTransitionContext, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, aO as UNSAFE_createClientRoutes, aP as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aF as UNSAFE_hydrationRouteProperties, aG as UNSAFE_mapRouteProperties, aQ as UNSAFE_shouldHydrateRouteLoader, aR as UNSAFE_useScrollRestoration, aI as UNSAFE_withComponentProps, aM as UNSAFE_withErrorBoundaryProps, aK as UNSAFE_withHydrateFallbackProps, ad as URLSearchParamsInit, U as createBrowserRouter, V as createHashRouter, q as createMemoryRouter, r as createRoutesFromChildren, s as createRoutesFromElements, af as createSearchParams, ai as createStaticHandler, aj as createStaticRouter, t as renderMatches, Z as unstable_HistoryRouter, a8 as unstable_usePrompt, a7 as useBeforeUnload, a5 as useFetcher, a6 as useFetchers, a4 as useFormAction, a1 as useLinkClickHandler, a2 as useSearchParams, a3 as useSubmit, a9 as useViewTransitionState } from './index-react-server-client-BaaZU3sM.js';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import React__default, { ReactElement } from 'react';
|
|
9
9
|
import { a as RouteModules$1, P as Pages } from './register-roq_0qYo.js';
|
|
10
10
|
export { b as Register } from './register-roq_0qYo.js';
|
|
11
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
12
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
13
|
-
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-
|
|
14
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-
|
|
13
|
+
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-7x6a6gQP.js';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-7x6a6gQP.js';
|
|
15
15
|
|
|
16
16
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
17
17
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined, trailingSlashAware: boolean): DataStrategyFunction;
|
|
@@ -1445,7 +1445,7 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1445
1445
|
error: Error | null;
|
|
1446
1446
|
location: Location<any>;
|
|
1447
1447
|
};
|
|
1448
|
-
render(): string | number | boolean |
|
|
1448
|
+
render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode> | null | undefined;
|
|
1449
1449
|
}
|
|
1450
1450
|
|
|
1451
1451
|
declare function getPatchRoutesOnNavigationFunction(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|