react-router 7.18.3 → 7.18.5
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 +14 -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-7SIULPXI.js → chunk-2ZBLYC7V.js} +35 -4
- package/dist/development/{chunk-BV7QT456.mjs → chunk-6KYCQHYJ.mjs} +35 -4
- package/dist/development/{chunk-QPXIKN46.js → chunk-IFHLIXZW.js} +7 -7
- package/dist/development/{chunk-HT4INDD5.mjs → chunk-JAHXRPFV.mjs} +16 -6
- package/dist/development/{chunk-YRTY65LJ.js → chunk-NDF5KBLP.js} +103 -103
- 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 +34 -34
- package/dist/development/dom-export.mjs +3 -3
- package/dist/{production/index-react-server-client-BjY-eKuf.d.ts → development/index-react-server-client-BaaZU3sM.d.ts} +1 -1
- package/dist/{production/index-react-server-client-K63fpMH4.d.mts → development/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 +38 -15
- package/dist/development/index-react-server.mjs +38 -15
- package/dist/development/index.d.mts +6 -6
- package/dist/development/index.d.ts +6 -6
- package/dist/development/index.js +102 -92
- 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-LNBCQR6O.js → chunk-75HN637G.js} +103 -103
- package/dist/production/{chunk-EFMJ2SG4.mjs → chunk-7RTFRKQW.mjs} +35 -4
- package/dist/production/{chunk-6XRGXNVQ.js → chunk-HNBICOIU.js} +35 -4
- package/dist/production/{chunk-UODOIDHR.mjs → chunk-IAM5GYT3.mjs} +16 -6
- package/dist/production/{chunk-SJHDA7OG.js → chunk-K3NA4NUH.js} +7 -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 +34 -34
- package/dist/production/dom-export.mjs +3 -3
- package/dist/{development/index-react-server-client-BjY-eKuf.d.ts → production/index-react-server-client-BaaZU3sM.d.ts} +1 -1
- package/dist/{development/index-react-server-client-K63fpMH4.d.mts → production/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 +38 -15
- package/dist/production/index-react-server.mjs +38 -15
- package/dist/production/index.d.mts +6 -6
- package/dist/production/index.d.ts +6 -6
- package/dist/production/index.js +102 -92
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
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 v7.18.
|
|
2
|
+
* react-router v7.18.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkIFHLIXZWjs = require('./chunk-IFHLIXZW.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -38,7 +38,7 @@ var _chunkQPXIKN46js = require('./chunk-QPXIKN46.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk2ZBLYC7Vjs = require('./chunk-2ZBLYC7V.js');
|
|
42
42
|
|
|
43
43
|
// lib/dom-export/dom-router-provider.tsx
|
|
44
44
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -214,7 +214,7 @@ function HydratedRouter(props) {
|
|
|
214
214
|
}, []);
|
|
215
215
|
React2.useEffect(() => {
|
|
216
216
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
217
|
-
document.querySelectorAll(`[${
|
|
217
|
+
document.querySelectorAll(`[${_chunk2ZBLYC7Vjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
218
218
|
}
|
|
219
219
|
}, [criticalCss]);
|
|
220
220
|
let [location2, setLocation] = React2.useState(router.state.location);
|
|
@@ -308,14 +308,14 @@ function createCallServer({
|
|
|
308
308
|
Promise.resolve(payloadPromise).then(async (payload) => {
|
|
309
309
|
if (payload.type === "redirect") {
|
|
310
310
|
let location2 = normalizeRedirectLocation(payload.location);
|
|
311
|
-
|
|
311
|
+
_chunk2ZBLYC7Vjs.validateNavigationTarget.call(void 0,
|
|
312
312
|
payload.location,
|
|
313
313
|
location2,
|
|
314
314
|
new URL(window.location.href),
|
|
315
315
|
"allow-explicit"
|
|
316
316
|
);
|
|
317
317
|
if (payload.reload || isExternalLocation(location2)) {
|
|
318
|
-
if (
|
|
318
|
+
if (_chunk2ZBLYC7Vjs.hasInvalidProtocol.call(void 0, location2)) {
|
|
319
319
|
throw new Error("Invalid redirect location");
|
|
320
320
|
}
|
|
321
321
|
window.location.href = location2;
|
|
@@ -335,14 +335,14 @@ function createCallServer({
|
|
|
335
335
|
if (rerender && landedActionId < actionId && globalVar.__routerActionID <= actionId) {
|
|
336
336
|
if (rerender.type === "redirect") {
|
|
337
337
|
let location2 = normalizeRedirectLocation(rerender.location);
|
|
338
|
-
|
|
338
|
+
_chunk2ZBLYC7Vjs.validateNavigationTarget.call(void 0,
|
|
339
339
|
rerender.location,
|
|
340
340
|
location2,
|
|
341
341
|
new URL(window.location.href),
|
|
342
342
|
"allow-explicit"
|
|
343
343
|
);
|
|
344
344
|
if (rerender.reload || isExternalLocation(location2)) {
|
|
345
|
-
if (
|
|
345
|
+
if (_chunk2ZBLYC7Vjs.hasInvalidProtocol.call(void 0, location2)) {
|
|
346
346
|
throw new Error("Invalid redirect location");
|
|
347
347
|
}
|
|
348
348
|
window.location.href = location2;
|
|
@@ -407,7 +407,7 @@ function createRouterFromPayload({
|
|
|
407
407
|
};
|
|
408
408
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
409
409
|
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
|
|
410
|
-
|
|
410
|
+
_chunkIFHLIXZWjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
|
|
411
411
|
let routes = payload.matches.reduceRight((previous, match) => {
|
|
412
412
|
const route = createRouteFromServerManifest(
|
|
413
413
|
match,
|
|
@@ -421,12 +421,12 @@ function createRouterFromPayload({
|
|
|
421
421
|
return [route];
|
|
422
422
|
}, []);
|
|
423
423
|
let applyPatchesPromise;
|
|
424
|
-
globalVar.__reactRouterDataRouter =
|
|
424
|
+
globalVar.__reactRouterDataRouter = _chunk2ZBLYC7Vjs.createRouter.call(void 0, {
|
|
425
425
|
routes,
|
|
426
426
|
getContext,
|
|
427
427
|
basename: payload.basename,
|
|
428
|
-
history:
|
|
429
|
-
hydrationData:
|
|
428
|
+
history: _chunk2ZBLYC7Vjs.createBrowserHistory.call(void 0, ),
|
|
429
|
+
hydrationData: _chunkIFHLIXZWjs.getHydrationData.call(void 0, {
|
|
430
430
|
state: {
|
|
431
431
|
loaderData: payload.loaderData,
|
|
432
432
|
actionData: payload.actionData,
|
|
@@ -435,7 +435,7 @@ function createRouterFromPayload({
|
|
|
435
435
|
routes,
|
|
436
436
|
getRouteInfo: (routeId) => {
|
|
437
437
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
438
|
-
|
|
438
|
+
_chunk2ZBLYC7Vjs.invariant.call(void 0, match, "Route not found in payload");
|
|
439
439
|
return {
|
|
440
440
|
clientLoader: match.clientLoader,
|
|
441
441
|
hasLoader: match.hasLoader,
|
|
@@ -550,9 +550,9 @@ function createRouterFromPayload({
|
|
|
550
550
|
routeModules: globalVar.__reactRouterRouteModules
|
|
551
551
|
};
|
|
552
552
|
}
|
|
553
|
-
var renderedRoutesContext =
|
|
553
|
+
var renderedRoutesContext = _chunk2ZBLYC7Vjs.createContext.call(void 0, );
|
|
554
554
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
555
|
-
let dataStrategy =
|
|
555
|
+
let dataStrategy = _chunk2ZBLYC7Vjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
556
556
|
getRouter,
|
|
557
557
|
(match) => {
|
|
558
558
|
let M = match;
|
|
@@ -609,20 +609,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
609
609
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
610
610
|
return async (args, basename, trailingSlashAware, targetRoutes) => {
|
|
611
611
|
let { request, context } = args;
|
|
612
|
-
let url =
|
|
612
|
+
let url = _chunk2ZBLYC7Vjs.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
|
|
613
613
|
if (request.method === "GET") {
|
|
614
|
-
url =
|
|
614
|
+
url = _chunk2ZBLYC7Vjs.stripIndexParam.call(void 0, url);
|
|
615
615
|
if (targetRoutes) {
|
|
616
616
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
617
617
|
}
|
|
618
618
|
}
|
|
619
619
|
let res = await fetchImplementation(
|
|
620
|
-
new Request(url, await
|
|
620
|
+
new Request(url, await _chunk2ZBLYC7Vjs.createRequestInit.call(void 0, request))
|
|
621
621
|
);
|
|
622
622
|
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
623
|
-
throw new (0,
|
|
623
|
+
throw new (0, _chunk2ZBLYC7Vjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
_chunk2ZBLYC7Vjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
626
626
|
try {
|
|
627
627
|
const payload = await createFromReadableStream(res.body, {
|
|
628
628
|
temporaryReferences: void 0
|
|
@@ -646,7 +646,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
646
646
|
}
|
|
647
647
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
648
648
|
let results = { routes: {} };
|
|
649
|
-
const dataKey =
|
|
649
|
+
const dataKey = _chunk2ZBLYC7Vjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
650
650
|
for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
|
|
651
651
|
results.routes[routeId] = { data };
|
|
652
652
|
}
|
|
@@ -679,7 +679,7 @@ function RSCHydratedRouter({
|
|
|
679
679
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
680
680
|
);
|
|
681
681
|
React3.useEffect(() => {
|
|
682
|
-
|
|
682
|
+
_chunk2ZBLYC7Vjs.setIsHydrated.call(void 0, );
|
|
683
683
|
}, []);
|
|
684
684
|
React3.useLayoutEffect(() => {
|
|
685
685
|
const globalVar = window;
|
|
@@ -787,8 +787,8 @@ function RSCHydratedRouter({
|
|
|
787
787
|
},
|
|
788
788
|
routeModules
|
|
789
789
|
};
|
|
790
|
-
return /* @__PURE__ */ React3.createElement(
|
|
791
|
-
|
|
790
|
+
return /* @__PURE__ */ React3.createElement(_chunk2ZBLYC7Vjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkIFHLIXZWjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunk2ZBLYC7Vjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
791
|
+
_chunk2ZBLYC7Vjs.RouterProvider,
|
|
792
792
|
{
|
|
793
793
|
router: transitionEnabledRouter,
|
|
794
794
|
flushSync: ReactDOM2.flushSync
|
|
@@ -804,8 +804,8 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
804
804
|
// the server loader flow regardless of whether the client loader calls
|
|
805
805
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
806
806
|
match.hasComponent && !match.element;
|
|
807
|
-
|
|
808
|
-
|
|
807
|
+
_chunk2ZBLYC7Vjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
808
|
+
_chunkIFHLIXZWjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
|
|
809
809
|
let dataRoute = {
|
|
810
810
|
id: match.id,
|
|
811
811
|
element: match.element,
|
|
@@ -853,7 +853,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
853
853
|
return await callSingleFetch(singleFetch);
|
|
854
854
|
}
|
|
855
855
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
856
|
-
throw
|
|
856
|
+
throw _chunk2ZBLYC7Vjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
857
857
|
},
|
|
858
858
|
path: match.path,
|
|
859
859
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -865,7 +865,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
865
865
|
hasClientAction: match.clientAction != null
|
|
866
866
|
};
|
|
867
867
|
if (typeof dataRoute.loader === "function") {
|
|
868
|
-
dataRoute.loader.hydrate =
|
|
868
|
+
dataRoute.loader.hydrate = _chunk2ZBLYC7Vjs.shouldHydrateRouteLoader.call(void 0,
|
|
869
869
|
match.id,
|
|
870
870
|
match.clientLoader,
|
|
871
871
|
match.hasLoader,
|
|
@@ -875,7 +875,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
875
875
|
return dataRoute;
|
|
876
876
|
}
|
|
877
877
|
function callSingleFetch(singleFetch) {
|
|
878
|
-
|
|
878
|
+
_chunk2ZBLYC7Vjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
879
879
|
return singleFetch();
|
|
880
880
|
}
|
|
881
881
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -883,7 +883,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
883
883
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
884
884
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
885
885
|
console.error(msg);
|
|
886
|
-
throw new (0,
|
|
886
|
+
throw new (0, _chunk2ZBLYC7Vjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
887
887
|
}
|
|
888
888
|
}
|
|
889
889
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -906,12 +906,12 @@ function getManifestUrl(paths) {
|
|
|
906
906
|
return url;
|
|
907
907
|
}
|
|
908
908
|
async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fetchImplementation, signal) {
|
|
909
|
-
paths =
|
|
909
|
+
paths = _chunk2ZBLYC7Vjs.getPathsWithAncestors.call(void 0, paths);
|
|
910
910
|
let url = getManifestUrl(paths);
|
|
911
911
|
if (url == null) {
|
|
912
912
|
return;
|
|
913
913
|
}
|
|
914
|
-
if (url.toString().length >
|
|
914
|
+
if (url.toString().length > _chunk2ZBLYC7Vjs.URL_LIMIT) {
|
|
915
915
|
nextPaths.clear();
|
|
916
916
|
return;
|
|
917
917
|
}
|
|
@@ -955,8 +955,8 @@ function isExternalLocation(location2) {
|
|
|
955
955
|
return newLocation.origin !== window.location.origin;
|
|
956
956
|
}
|
|
957
957
|
function normalizeRedirectLocation(location2) {
|
|
958
|
-
if (
|
|
959
|
-
let path =
|
|
958
|
+
if (_chunk2ZBLYC7Vjs.PROTOCOL_RELATIVE_URL_REGEX.test(location2)) {
|
|
959
|
+
let path = _chunk2ZBLYC7Vjs.resolvePath.call(void 0, location2);
|
|
960
960
|
return path.pathname + path.search + path.hash;
|
|
961
961
|
}
|
|
962
962
|
return location2;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.18.
|
|
2
|
+
* react-router v7.18.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
RSCRouterGlobalErrorBoundary,
|
|
14
14
|
getHydrationData,
|
|
15
15
|
populateRSCRouteModules
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-JAHXRPFV.mjs";
|
|
17
17
|
import {
|
|
18
18
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
19
19
|
ErrorResponseImpl,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
stripIndexParam,
|
|
48
48
|
useFogOFWarDiscovery,
|
|
49
49
|
validateNavigationTarget
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6KYCQHYJ.mjs";
|
|
51
51
|
|
|
52
52
|
// lib/dom-export/dom-router-provider.tsx
|
|
53
53
|
import * as React from "react";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as ServerInstrumentation, H as HydrationState, e as StaticHandlerContext, c as RelativeRoutingType, a as Router$1, g as RouterState, R as RouterInit, t as FutureConfig$1, C as ClientInstrumentation, d as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, u as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-
|
|
1
|
+
import { l as ServerInstrumentation, H as HydrationState, e as StaticHandlerContext, c as RelativeRoutingType, a as Router$1, g as RouterState, R as RouterInit, t as FutureConfig$1, C as ClientInstrumentation, d as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, u as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-CPkMwccd.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { p as RouteManifest, aE as ServerRouteModule, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, s as LoaderFunctionArgs, a0 as ActionFunctionArgs, O as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, o as RouteBranch, aF as TrackedPromise, f as History, T as To, L as Location, i as Action, ac as RouteMatch, Y as InitialEntry, _ as NonIndexRouteObject, a7 as LazyRouteFunction, Z as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, q as HTMLFormMethod, F as FormEncType, av as PageLinkDescriptor, Q as SerializeFrom } from './data-CjO11-hU.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as ServerInstrumentation, H as HydrationState, h as StaticHandlerContext, f as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-
|
|
1
|
+
import { o as ServerInstrumentation, H as HydrationState, h as StaticHandlerContext, f as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-BlYKn1tE.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-DEjBmEfD.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-
|
|
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-
|
|
1
|
+
export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-BlYKn1tE.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-KK-TR-t7.mjs';
|
|
3
3
|
import './data-DEjBmEfD.mjs';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-
|
|
2
|
-
import './instrumentation-
|
|
1
|
+
export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-BaaZU3sM.js';
|
|
2
|
+
import './instrumentation-CPkMwccd.js';
|
|
3
3
|
import './data-CjO11-hU.js';
|
|
4
4
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v7.18.
|
|
2
|
+
* react-router v7.18.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkNDF5KBLPjs = require('./chunk-NDF5KBLP.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ var _chunkYRTY65LJjs = require('./chunk-YRTY65LJ.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunk2ZBLYC7Vjs = require('./chunk-2ZBLYC7V.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunk7SIULPXIjs = require('./chunk-7SIULPXI.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkNDF5KBLPjs.BrowserRouter; exports.Form = _chunkNDF5KBLPjs.Form; exports.HashRouter = _chunkNDF5KBLPjs.HashRouter; exports.Link = _chunkNDF5KBLPjs.Link; exports.Links = _chunk2ZBLYC7Vjs.Links; exports.MemoryRouter = _chunk2ZBLYC7Vjs.MemoryRouter; exports.Meta = _chunk2ZBLYC7Vjs.Meta; exports.NavLink = _chunkNDF5KBLPjs.NavLink; exports.Navigate = _chunk2ZBLYC7Vjs.Navigate; exports.Outlet = _chunk2ZBLYC7Vjs.Outlet; exports.Route = _chunk2ZBLYC7Vjs.Route; exports.Router = _chunk2ZBLYC7Vjs.Router; exports.RouterProvider = _chunk2ZBLYC7Vjs.RouterProvider; exports.Routes = _chunk2ZBLYC7Vjs.Routes; exports.ScrollRestoration = _chunkNDF5KBLPjs.ScrollRestoration; exports.StaticRouter = _chunkNDF5KBLPjs.StaticRouter; exports.StaticRouterProvider = _chunkNDF5KBLPjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunk2ZBLYC7Vjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunk2ZBLYC7Vjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunk2ZBLYC7Vjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunk2ZBLYC7Vjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkNDF5KBLPjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.18.
|
|
2
|
+
* react-router v7.18.5
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
WithComponentProps,
|
|
33
33
|
WithErrorBoundaryProps,
|
|
34
34
|
WithHydrateFallbackProps
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6KYCQHYJ.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -1461,6 +1461,8 @@ interface StaticHandler {
|
|
|
1461
1461
|
* The set of data routes managed by this handler
|
|
1462
1462
|
*/
|
|
1463
1463
|
dataRoutes: DataRouteObject[];
|
|
1464
|
+
/** @private Estimated route metadata visits per regex match. */
|
|
1465
|
+
readonly _matchCost?: number;
|
|
1464
1466
|
/**
|
|
1465
1467
|
* @private
|
|
1466
1468
|
* PRIVATE - DO NOT USE
|
|
@@ -1461,6 +1461,8 @@ interface StaticHandler {
|
|
|
1461
1461
|
* The set of data routes managed by this handler
|
|
1462
1462
|
*/
|
|
1463
1463
|
dataRoutes: DataRouteObject[];
|
|
1464
|
+
/** @private Estimated route metadata visits per regex match. */
|
|
1465
|
+
readonly _matchCost?: number;
|
|
1464
1466
|
/**
|
|
1465
1467
|
* @private
|
|
1466
1468
|
* PRIVATE - DO NOT USE
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v7.18.
|
|
30
|
+
* react-router v7.18.5
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -966,6 +966,10 @@ function createStaticHandler(routes, opts) {
|
|
|
966
966
|
manifest
|
|
967
967
|
);
|
|
968
968
|
let routeBranches = flattenAndRankRoutes(dataRoutes);
|
|
969
|
+
let matchCost = routeBranches.reduce(
|
|
970
|
+
(total, branch) => total + branch.routesMeta.length,
|
|
971
|
+
0
|
|
972
|
+
);
|
|
969
973
|
async function query(request, {
|
|
970
974
|
requestContext,
|
|
971
975
|
filterMatchesToLoad,
|
|
@@ -1585,6 +1589,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1585
1589
|
}
|
|
1586
1590
|
return {
|
|
1587
1591
|
dataRoutes,
|
|
1592
|
+
_matchCost: matchCost,
|
|
1588
1593
|
_internalRouteBranches: routeBranches,
|
|
1589
1594
|
query,
|
|
1590
1595
|
queryRoute
|
|
@@ -2565,6 +2570,13 @@ function getPathsWithAncestors(paths) {
|
|
|
2565
2570
|
});
|
|
2566
2571
|
return Array.from(result);
|
|
2567
2572
|
}
|
|
2573
|
+
var MANIFEST_MATCH_COST_LIMIT = 5e4;
|
|
2574
|
+
var MANIFEST_MATCH_COST_SEGMENT_THRESHOLD = 10;
|
|
2575
|
+
function shouldUseInitialRouteDiscovery(pathname, matchCost = 0) {
|
|
2576
|
+
let segmentCount = pathname.split("/").length - 1;
|
|
2577
|
+
let ancestorCount = Math.max(segmentCount - 1, 0);
|
|
2578
|
+
return ancestorCount * pathname.length + 1 > URL_LIMIT || segmentCount > MANIFEST_MATCH_COST_SEGMENT_THRESHOLD && segmentCount * matchCost > MANIFEST_MATCH_COST_LIMIT;
|
|
2579
|
+
}
|
|
2568
2580
|
|
|
2569
2581
|
// lib/actions.ts
|
|
2570
2582
|
function throwIfPotentialCSRFAttack(request, allowedActionOrigins) {
|
|
@@ -3130,7 +3142,8 @@ async function generateRenderResponse(request, routes, basename, isDataRequest,
|
|
|
3130
3142
|
temporaryReferences,
|
|
3131
3143
|
skipRevalidation,
|
|
3132
3144
|
ctx.redirect?.headers,
|
|
3133
|
-
routeDiscovery
|
|
3145
|
+
routeDiscovery,
|
|
3146
|
+
staticHandler._matchCost
|
|
3134
3147
|
);
|
|
3135
3148
|
}
|
|
3136
3149
|
})
|
|
@@ -3180,7 +3193,7 @@ function generateRedirectResponse(response, actionResult, basename, isDataReques
|
|
|
3180
3193
|
{ temporaryReferences, onError: defaultOnError }
|
|
3181
3194
|
);
|
|
3182
3195
|
}
|
|
3183
|
-
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery) {
|
|
3196
|
+
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery, matchCost) {
|
|
3184
3197
|
statusCode = staticContext.statusCode ?? statusCode;
|
|
3185
3198
|
if (staticContext.errors) {
|
|
3186
3199
|
staticContext.errors = Object.fromEntries(
|
|
@@ -3222,7 +3235,8 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3222
3235
|
routeIdsToLoad,
|
|
3223
3236
|
isDataRequest,
|
|
3224
3237
|
staticContext,
|
|
3225
|
-
routeDiscovery
|
|
3238
|
+
routeDiscovery,
|
|
3239
|
+
matchCost
|
|
3226
3240
|
);
|
|
3227
3241
|
let payload;
|
|
3228
3242
|
if (actionResult) {
|
|
@@ -3249,7 +3263,7 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3249
3263
|
{ temporaryReferences, onError: defaultOnError }
|
|
3250
3264
|
);
|
|
3251
3265
|
}
|
|
3252
|
-
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery) {
|
|
3266
|
+
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery, matchCost) {
|
|
3253
3267
|
let deepestRenderedRouteIdx = staticContext.matches.length - 1;
|
|
3254
3268
|
let parentIds = {};
|
|
3255
3269
|
staticContext.matches.forEach((m, i) => {
|
|
@@ -3273,18 +3287,27 @@ async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToL
|
|
|
3273
3287
|
});
|
|
3274
3288
|
})
|
|
3275
3289
|
);
|
|
3276
|
-
let
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3290
|
+
let pathname = staticContext.location.pathname;
|
|
3291
|
+
let useInitialRouteDiscovery = routeDiscovery?.mode === "initial" && !isDataRequest || shouldUseInitialRouteDiscovery(pathname, matchCost);
|
|
3292
|
+
let patches;
|
|
3293
|
+
if (useInitialRouteDiscovery) {
|
|
3294
|
+
patches = getAllRoutePatches(routes).then(
|
|
3295
|
+
(patches2) => patches2.filter(
|
|
3296
|
+
(patch) => !staticContext.matches.some((m) => m.route.id === patch.id)
|
|
3297
|
+
)
|
|
3298
|
+
);
|
|
3299
|
+
} else {
|
|
3300
|
+
patches = getAdditionalRoutePatches(
|
|
3301
|
+
// The full pathname is last and its matches are already in the payload.
|
|
3302
|
+
getPathsWithAncestors([pathname]).slice(0, -1),
|
|
3303
|
+
routes,
|
|
3304
|
+
basename,
|
|
3305
|
+
staticContext.matches.map((m) => m.route.id)
|
|
3306
|
+
);
|
|
3307
|
+
}
|
|
3286
3308
|
return {
|
|
3287
3309
|
...baseRenderPayload,
|
|
3310
|
+
routeDiscovery: useInitialRouteDiscovery ? { mode: "initial" } : baseRenderPayload.routeDiscovery,
|
|
3288
3311
|
matches: await matchesPromise,
|
|
3289
3312
|
patches
|
|
3290
3313
|
};
|
|
@@ -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.5
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -945,6 +945,10 @@ function createStaticHandler(routes, opts) {
|
|
|
945
945
|
manifest
|
|
946
946
|
);
|
|
947
947
|
let routeBranches = flattenAndRankRoutes(dataRoutes);
|
|
948
|
+
let matchCost = routeBranches.reduce(
|
|
949
|
+
(total, branch) => total + branch.routesMeta.length,
|
|
950
|
+
0
|
|
951
|
+
);
|
|
948
952
|
async function query(request, {
|
|
949
953
|
requestContext,
|
|
950
954
|
filterMatchesToLoad,
|
|
@@ -1564,6 +1568,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1564
1568
|
}
|
|
1565
1569
|
return {
|
|
1566
1570
|
dataRoutes,
|
|
1571
|
+
_matchCost: matchCost,
|
|
1567
1572
|
_internalRouteBranches: routeBranches,
|
|
1568
1573
|
query,
|
|
1569
1574
|
queryRoute
|
|
@@ -2544,6 +2549,13 @@ function getPathsWithAncestors(paths) {
|
|
|
2544
2549
|
});
|
|
2545
2550
|
return Array.from(result);
|
|
2546
2551
|
}
|
|
2552
|
+
var MANIFEST_MATCH_COST_LIMIT = 5e4;
|
|
2553
|
+
var MANIFEST_MATCH_COST_SEGMENT_THRESHOLD = 10;
|
|
2554
|
+
function shouldUseInitialRouteDiscovery(pathname, matchCost = 0) {
|
|
2555
|
+
let segmentCount = pathname.split("/").length - 1;
|
|
2556
|
+
let ancestorCount = Math.max(segmentCount - 1, 0);
|
|
2557
|
+
return ancestorCount * pathname.length + 1 > URL_LIMIT || segmentCount > MANIFEST_MATCH_COST_SEGMENT_THRESHOLD && segmentCount * matchCost > MANIFEST_MATCH_COST_LIMIT;
|
|
2558
|
+
}
|
|
2547
2559
|
|
|
2548
2560
|
// lib/actions.ts
|
|
2549
2561
|
function throwIfPotentialCSRFAttack(request, allowedActionOrigins) {
|
|
@@ -3109,7 +3121,8 @@ async function generateRenderResponse(request, routes, basename, isDataRequest,
|
|
|
3109
3121
|
temporaryReferences,
|
|
3110
3122
|
skipRevalidation,
|
|
3111
3123
|
ctx.redirect?.headers,
|
|
3112
|
-
routeDiscovery
|
|
3124
|
+
routeDiscovery,
|
|
3125
|
+
staticHandler._matchCost
|
|
3113
3126
|
);
|
|
3114
3127
|
}
|
|
3115
3128
|
})
|
|
@@ -3159,7 +3172,7 @@ function generateRedirectResponse(response, actionResult, basename, isDataReques
|
|
|
3159
3172
|
{ temporaryReferences, onError: defaultOnError }
|
|
3160
3173
|
);
|
|
3161
3174
|
}
|
|
3162
|
-
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery) {
|
|
3175
|
+
async function generateStaticContextResponse(routes, basename, generateResponse, statusCode, routeIdsToLoad, isDataRequest, isSubmission, actionResult, formState, staticContext, temporaryReferences, skipRevalidation, sideEffectRedirectHeaders, routeDiscovery, matchCost) {
|
|
3163
3176
|
statusCode = staticContext.statusCode ?? statusCode;
|
|
3164
3177
|
if (staticContext.errors) {
|
|
3165
3178
|
staticContext.errors = Object.fromEntries(
|
|
@@ -3201,7 +3214,8 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3201
3214
|
routeIdsToLoad,
|
|
3202
3215
|
isDataRequest,
|
|
3203
3216
|
staticContext,
|
|
3204
|
-
routeDiscovery
|
|
3217
|
+
routeDiscovery,
|
|
3218
|
+
matchCost
|
|
3205
3219
|
);
|
|
3206
3220
|
let payload;
|
|
3207
3221
|
if (actionResult) {
|
|
@@ -3228,7 +3242,7 @@ async function generateStaticContextResponse(routes, basename, generateResponse,
|
|
|
3228
3242
|
{ temporaryReferences, onError: defaultOnError }
|
|
3229
3243
|
);
|
|
3230
3244
|
}
|
|
3231
|
-
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery) {
|
|
3245
|
+
async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToLoad, isDataRequest, staticContext, routeDiscovery, matchCost) {
|
|
3232
3246
|
let deepestRenderedRouteIdx = staticContext.matches.length - 1;
|
|
3233
3247
|
let parentIds = {};
|
|
3234
3248
|
staticContext.matches.forEach((m, i) => {
|
|
@@ -3252,18 +3266,27 @@ async function getRenderPayload(baseRenderPayload, routes, basename, routeIdsToL
|
|
|
3252
3266
|
});
|
|
3253
3267
|
})
|
|
3254
3268
|
);
|
|
3255
|
-
let
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3269
|
+
let pathname = staticContext.location.pathname;
|
|
3270
|
+
let useInitialRouteDiscovery = routeDiscovery?.mode === "initial" && !isDataRequest || shouldUseInitialRouteDiscovery(pathname, matchCost);
|
|
3271
|
+
let patches;
|
|
3272
|
+
if (useInitialRouteDiscovery) {
|
|
3273
|
+
patches = getAllRoutePatches(routes).then(
|
|
3274
|
+
(patches2) => patches2.filter(
|
|
3275
|
+
(patch) => !staticContext.matches.some((m) => m.route.id === patch.id)
|
|
3276
|
+
)
|
|
3277
|
+
);
|
|
3278
|
+
} else {
|
|
3279
|
+
patches = getAdditionalRoutePatches(
|
|
3280
|
+
// The full pathname is last and its matches are already in the payload.
|
|
3281
|
+
getPathsWithAncestors([pathname]).slice(0, -1),
|
|
3282
|
+
routes,
|
|
3283
|
+
basename,
|
|
3284
|
+
staticContext.matches.map((m) => m.route.id)
|
|
3285
|
+
);
|
|
3286
|
+
}
|
|
3265
3287
|
return {
|
|
3266
3288
|
...baseRenderPayload,
|
|
3289
|
+
routeDiscovery: useInitialRouteDiscovery ? { mode: "initial" } : baseRenderPayload.routeDiscovery,
|
|
3267
3290
|
matches: await matchesPromise,
|
|
3268
3291
|
patches
|
|
3269
3292
|
};
|
|
@@ -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;
|