react-router 7.14.0 → 7.14.2
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 +63 -24
- package/dist/development/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
- package/dist/development/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
- package/dist/development/{chunk-QFMPRPBF.mjs → chunk-EVOBXE3Y.mjs} +45 -19
- package/dist/development/{chunk-WAVMRYR2.js → chunk-PZFPF4X7.js} +7 -7
- package/dist/{production/chunk-X5LK27NZ.mjs → development/chunk-YQSHRJWW.mjs} +3 -3
- package/dist/{production/chunk-FPT5DLVJ.js → development/chunk-YZKCRDTN.js} +99 -99
- package/dist/development/{chunk-IK6APEEG.js → chunk-ZZNWZ5Q3.js} +82 -56
- package/dist/{production/context-phCt_zmH.d.mts → development/context-DGGUoDIu.d.mts} +1 -1
- package/dist/development/dom-export.d.mts +4 -4
- package/dist/development/dom-export.d.ts +4 -4
- package/dist/development/dom-export.js +27 -27
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
- package/dist/{production/index-react-server-client-BwWaHAr3.d.mts → development/index-react-server-client-BjhKIe3u.d.mts} +2 -2
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -3
- 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 +6 -0
- package/dist/development/index-react-server.d.ts +6 -0
- package/dist/development/index-react-server.js +9 -6
- package/dist/development/index-react-server.mjs +9 -6
- package/dist/development/index.d.mts +11 -11
- package/dist/development/index.d.ts +11 -11
- package/dist/development/index.js +96 -96
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-BYr6ff5D.d.ts → development/instrumentation-g0dG8UL0.d.ts} +1 -1
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
- package/dist/development/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
- package/dist/development/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
- package/dist/development/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
- package/dist/production/{browser-C9Ar1yxG.d.ts → browser-C-UvoYvi.d.ts} +2 -2
- package/dist/production/{browser-vtIR1Kpe.d.mts → browser-I6n6wVSO.d.mts} +2 -2
- package/dist/{development/chunk-2UH5WJXA.mjs → production/chunk-2WLZNCK5.mjs} +3 -3
- package/dist/production/{chunk-HZQGQD2X.mjs → chunk-LK6U7ULH.mjs} +45 -19
- package/dist/production/{chunk-355DUZMC.js → chunk-PQL4HLVQ.js} +7 -7
- package/dist/{development/chunk-NXTEWSJO.js → production/chunk-UJQ4OJF4.js} +99 -99
- package/dist/production/{chunk-4TJ7T2OQ.js → chunk-X5SKXJ4A.js} +82 -56
- package/dist/{development/context-phCt_zmH.d.mts → production/context-DGGUoDIu.d.mts} +1 -1
- package/dist/production/dom-export.d.mts +4 -4
- package/dist/production/dom-export.d.ts +4 -4
- package/dist/production/dom-export.js +27 -27
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/{index-react-server-client-luDbagNU.d.ts → index-react-server-client-BBd0A0TL.d.ts} +2 -2
- package/dist/{development/index-react-server-client-BwWaHAr3.d.mts → production/index-react-server-client-BjhKIe3u.d.mts} +2 -2
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -3
- 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 +6 -0
- package/dist/production/index-react-server.d.ts +6 -0
- package/dist/production/index-react-server.js +9 -6
- package/dist/production/index-react-server.mjs +9 -6
- package/dist/production/index.d.mts +11 -11
- package/dist/production/index.d.ts +11 -11
- package/dist/production/index.js +96 -96
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-BYr6ff5D.d.ts → production/instrumentation-g0dG8UL0.d.ts} +1 -1
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{register-CTxsJBKQ.d.mts → register-D9d2sMQ7.d.mts} +1 -1
- package/dist/production/{register-CkcGwv27.d.ts → register-DcBltf5q.d.ts} +1 -1
- package/dist/production/{routeModules-CA7kSxJJ.d.ts → routeModules-7rtk67cd.d.ts} +32 -11
- package/dist/production/{routeModules-BRrCYrSL.d.mts → routeModules-BW4a8k3I.d.mts} +32 -11
- 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.14.
|
|
2
|
+
* react-router v7.14.2
|
|
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 _chunkPZFPF4X7js = require('./chunk-PZFPF4X7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -33,7 +33,7 @@ var _chunkWAVMRYR2js = require('./chunk-WAVMRYR2.js');
|
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkZZNWZ5Q3js = require('./chunk-ZZNWZ5Q3.js');
|
|
37
37
|
|
|
38
38
|
// lib/dom-export/dom-router-provider.tsx
|
|
39
39
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -213,7 +213,7 @@ function HydratedRouter(props) {
|
|
|
213
213
|
}, []);
|
|
214
214
|
React2.useEffect(() => {
|
|
215
215
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
216
|
-
document.querySelectorAll(`[${
|
|
216
|
+
document.querySelectorAll(`[${_chunkZZNWZ5Q3js.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
217
217
|
}
|
|
218
218
|
}, [criticalCss]);
|
|
219
219
|
let [location2, setLocation] = React2.useState(router.state.location);
|
|
@@ -392,7 +392,7 @@ function createRouterFromPayload({
|
|
|
392
392
|
};
|
|
393
393
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
394
394
|
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
|
|
395
|
-
|
|
395
|
+
_chunkPZFPF4X7js.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
|
|
396
396
|
let routes = payload.matches.reduceRight((previous, match) => {
|
|
397
397
|
const route = createRouteFromServerManifest(
|
|
398
398
|
match,
|
|
@@ -406,12 +406,12 @@ function createRouterFromPayload({
|
|
|
406
406
|
return [route];
|
|
407
407
|
}, []);
|
|
408
408
|
let applyPatchesPromise;
|
|
409
|
-
globalVar.__reactRouterDataRouter =
|
|
409
|
+
globalVar.__reactRouterDataRouter = _chunkZZNWZ5Q3js.createRouter.call(void 0, {
|
|
410
410
|
routes,
|
|
411
411
|
getContext,
|
|
412
412
|
basename: payload.basename,
|
|
413
|
-
history:
|
|
414
|
-
hydrationData:
|
|
413
|
+
history: _chunkZZNWZ5Q3js.createBrowserHistory.call(void 0, ),
|
|
414
|
+
hydrationData: _chunkPZFPF4X7js.getHydrationData.call(void 0, {
|
|
415
415
|
state: {
|
|
416
416
|
loaderData: payload.loaderData,
|
|
417
417
|
actionData: payload.actionData,
|
|
@@ -420,7 +420,7 @@ function createRouterFromPayload({
|
|
|
420
420
|
routes,
|
|
421
421
|
getRouteInfo: (routeId) => {
|
|
422
422
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
423
|
-
|
|
423
|
+
_chunkZZNWZ5Q3js.invariant.call(void 0, match, "Route not found in payload");
|
|
424
424
|
return {
|
|
425
425
|
clientLoader: match.clientLoader,
|
|
426
426
|
hasLoader: match.hasLoader,
|
|
@@ -535,9 +535,9 @@ function createRouterFromPayload({
|
|
|
535
535
|
routeModules: globalVar.__reactRouterRouteModules
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
var renderedRoutesContext =
|
|
538
|
+
var renderedRoutesContext = _chunkZZNWZ5Q3js.createContext.call(void 0, );
|
|
539
539
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
540
|
-
let dataStrategy =
|
|
540
|
+
let dataStrategy = _chunkZZNWZ5Q3js.getSingleFetchDataStrategyImpl.call(void 0,
|
|
541
541
|
getRouter,
|
|
542
542
|
(match) => {
|
|
543
543
|
let M = match;
|
|
@@ -595,20 +595,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
595
595
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
596
596
|
return async (args, basename, trailingSlashAware, targetRoutes) => {
|
|
597
597
|
let { request, context } = args;
|
|
598
|
-
let url =
|
|
598
|
+
let url = _chunkZZNWZ5Q3js.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
|
|
599
599
|
if (request.method === "GET") {
|
|
600
|
-
url =
|
|
600
|
+
url = _chunkZZNWZ5Q3js.stripIndexParam.call(void 0, url);
|
|
601
601
|
if (targetRoutes) {
|
|
602
602
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
let res = await fetchImplementation(
|
|
606
|
-
new Request(url, await
|
|
606
|
+
new Request(url, await _chunkZZNWZ5Q3js.createRequestInit.call(void 0, request))
|
|
607
607
|
);
|
|
608
608
|
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
609
|
-
throw new (0,
|
|
609
|
+
throw new (0, _chunkZZNWZ5Q3js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
_chunkZZNWZ5Q3js.invariant.call(void 0, res.body, "No response body to decode");
|
|
612
612
|
try {
|
|
613
613
|
const payload = await createFromReadableStream(res.body, {
|
|
614
614
|
temporaryReferences: void 0
|
|
@@ -632,7 +632,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
632
632
|
}
|
|
633
633
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
634
634
|
let results = { routes: {} };
|
|
635
|
-
const dataKey =
|
|
635
|
+
const dataKey = _chunkZZNWZ5Q3js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
636
636
|
for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
|
|
637
637
|
results.routes[routeId] = { data };
|
|
638
638
|
}
|
|
@@ -665,7 +665,7 @@ function RSCHydratedRouter({
|
|
|
665
665
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
666
666
|
);
|
|
667
667
|
React3.useEffect(() => {
|
|
668
|
-
|
|
668
|
+
_chunkZZNWZ5Q3js.setIsHydrated.call(void 0, );
|
|
669
669
|
}, []);
|
|
670
670
|
React3.useLayoutEffect(() => {
|
|
671
671
|
const globalVar = window;
|
|
@@ -774,8 +774,8 @@ function RSCHydratedRouter({
|
|
|
774
774
|
},
|
|
775
775
|
routeModules
|
|
776
776
|
};
|
|
777
|
-
return /* @__PURE__ */ React3.createElement(
|
|
778
|
-
|
|
777
|
+
return /* @__PURE__ */ React3.createElement(_chunkZZNWZ5Q3js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkPZFPF4X7js.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkZZNWZ5Q3js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
778
|
+
_chunkZZNWZ5Q3js.RouterProvider,
|
|
779
779
|
{
|
|
780
780
|
router: transitionEnabledRouter,
|
|
781
781
|
flushSync: ReactDOM2.flushSync
|
|
@@ -791,8 +791,8 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
791
791
|
// the server loader flow regardless of whether the client loader calls
|
|
792
792
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
793
793
|
match.hasComponent && !match.element;
|
|
794
|
-
|
|
795
|
-
|
|
794
|
+
_chunkZZNWZ5Q3js.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
795
|
+
_chunkPZFPF4X7js.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
|
|
796
796
|
let dataRoute = {
|
|
797
797
|
id: match.id,
|
|
798
798
|
element: match.element,
|
|
@@ -842,7 +842,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
842
842
|
return await callSingleFetch(singleFetch);
|
|
843
843
|
}
|
|
844
844
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
845
|
-
throw
|
|
845
|
+
throw _chunkZZNWZ5Q3js.noActionDefinedError.call(void 0, "action", match.id);
|
|
846
846
|
},
|
|
847
847
|
path: match.path,
|
|
848
848
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -855,7 +855,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
855
855
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
856
856
|
};
|
|
857
857
|
if (typeof dataRoute.loader === "function") {
|
|
858
|
-
dataRoute.loader.hydrate =
|
|
858
|
+
dataRoute.loader.hydrate = _chunkZZNWZ5Q3js.shouldHydrateRouteLoader.call(void 0,
|
|
859
859
|
match.id,
|
|
860
860
|
match.clientLoader,
|
|
861
861
|
match.hasLoader,
|
|
@@ -865,7 +865,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
865
865
|
return dataRoute;
|
|
866
866
|
}
|
|
867
867
|
function callSingleFetch(singleFetch) {
|
|
868
|
-
|
|
868
|
+
_chunkZZNWZ5Q3js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
869
869
|
return singleFetch();
|
|
870
870
|
}
|
|
871
871
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -873,7 +873,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
873
873
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
874
874
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
875
875
|
console.error(msg);
|
|
876
|
-
throw new (0,
|
|
876
|
+
throw new (0, _chunkZZNWZ5Q3js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -946,7 +946,7 @@ function isExternalLocation(location2) {
|
|
|
946
946
|
}
|
|
947
947
|
function hasInvalidProtocol(location2) {
|
|
948
948
|
try {
|
|
949
|
-
return
|
|
949
|
+
return _chunkZZNWZ5Q3js.invalidProtocols.includes(new URL(location2).protocol);
|
|
950
950
|
} catch (e2) {
|
|
951
951
|
return false;
|
|
952
952
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.14.
|
|
2
|
+
* react-router v7.14.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
deserializeErrors,
|
|
15
15
|
getHydrationData,
|
|
16
16
|
populateRSCRouteModules
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YQSHRJWW.mjs";
|
|
18
18
|
import {
|
|
19
19
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
20
20
|
ErrorResponseImpl,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
singleFetchUrl,
|
|
44
44
|
stripIndexParam,
|
|
45
45
|
useFogOFWarDiscovery
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-EVOBXE3Y.mjs";
|
|
47
47
|
|
|
48
48
|
// lib/dom-export/dom-router-provider.tsx
|
|
49
49
|
import * as React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HydrationState, f as StaticHandlerContext, l as unstable_ServerInstrumentation, c as RelativeRoutingType, a as Router$1, d as RouterState, R as RouterInit, t as FutureConfig$1, u as unstable_ClientInstrumentation, e as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, C as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-
|
|
1
|
+
import { H as HydrationState, f as StaticHandlerContext, l as unstable_ServerInstrumentation, c as RelativeRoutingType, a as Router$1, d as RouterState, R as RouterInit, t as FutureConfig$1, u as unstable_ClientInstrumentation, e as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, C as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-g0dG8UL0.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { aC as RouteManifest, J as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, aD as ServerRouteModule, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, q as LoaderFunctionArgs, _ as ActionFunctionArgs, aE as TrackedPromise, f as History, T as To, L as Location, i as Action, aa as RouteMatch, W as InitialEntry, Y as NonIndexRouteObject, a5 as LazyRouteFunction, X as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, o as HTMLFormMethod, F as FormEncType, at as PageLinkDescriptor, K as SerializeFrom } from './routeModules-
|
|
3
|
+
import { aC as RouteManifest, J as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, aD as ServerRouteModule, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, q as LoaderFunctionArgs, _ as ActionFunctionArgs, aE as TrackedPromise, f as History, T as To, L as Location, i as Action, aa as RouteMatch, W as InitialEntry, Y as NonIndexRouteObject, a5 as LazyRouteFunction, X as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, o as HTMLFormMethod, F as FormEncType, at as PageLinkDescriptor, K as SerializeFrom } from './routeModules-7rtk67cd.js';
|
|
4
4
|
|
|
5
5
|
interface Route$1 {
|
|
6
6
|
index?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { H as HydrationState, h as StaticHandlerContext, n as unstable_ServerInstrumentation, d as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, u as unstable_ClientInstrumentation, N as NavigateOptions, F as Fetcher, b as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-
|
|
1
|
+
import { H as HydrationState, h as StaticHandlerContext, n as unstable_ServerInstrumentation, d as RelativeRoutingType, g as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, u as unstable_ClientInstrumentation, N as NavigateOptions, F as Fetcher, b as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-DGGUoDIu.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { aD as RouteManifest, X as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, aE as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a1 as ActionFunctionArgs, m as HTMLFormMethod, n as FormEncType, au as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, Y as SerializeFrom, L as Location } from './routeModules-
|
|
3
|
+
import { aD as RouteManifest, X as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, aE as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a1 as ActionFunctionArgs, m as HTMLFormMethod, n as FormEncType, au as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, Y as SerializeFrom, L as Location } from './routeModules-BW4a8k3I.mjs';
|
|
4
4
|
|
|
5
5
|
interface Route {
|
|
6
6
|
index?: boolean;
|
|
@@ -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-
|
|
3
|
-
import './routeModules-
|
|
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-DGGUoDIu.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-BjhKIe3u.mjs';
|
|
3
|
+
import './routeModules-BW4a8k3I.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-
|
|
3
|
-
import './routeModules-
|
|
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-BBd0A0TL.js';
|
|
2
|
+
import './instrumentation-g0dG8UL0.js';
|
|
3
|
+
import './routeModules-7rtk67cd.js';
|
|
4
4
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v7.14.
|
|
2
|
+
* react-router v7.14.2
|
|
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 _chunkYZKCRDTNjs = require('./chunk-YZKCRDTN.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ var _chunkNXTEWSJOjs = require('./chunk-NXTEWSJO.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkZZNWZ5Q3js = require('./chunk-ZZNWZ5Q3.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkIK6APEEGjs = require('./chunk-IK6APEEG.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkYZKCRDTNjs.BrowserRouter; exports.Form = _chunkYZKCRDTNjs.Form; exports.HashRouter = _chunkYZKCRDTNjs.HashRouter; exports.Link = _chunkYZKCRDTNjs.Link; exports.Links = _chunkZZNWZ5Q3js.Links; exports.MemoryRouter = _chunkZZNWZ5Q3js.MemoryRouter; exports.Meta = _chunkZZNWZ5Q3js.Meta; exports.NavLink = _chunkYZKCRDTNjs.NavLink; exports.Navigate = _chunkZZNWZ5Q3js.Navigate; exports.Outlet = _chunkZZNWZ5Q3js.Outlet; exports.Route = _chunkZZNWZ5Q3js.Route; exports.Router = _chunkZZNWZ5Q3js.Router; exports.RouterProvider = _chunkZZNWZ5Q3js.RouterProvider; exports.Routes = _chunkZZNWZ5Q3js.Routes; exports.ScrollRestoration = _chunkYZKCRDTNjs.ScrollRestoration; exports.StaticRouter = _chunkYZKCRDTNjs.StaticRouter; exports.StaticRouterProvider = _chunkYZKCRDTNjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkZZNWZ5Q3js.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkZZNWZ5Q3js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkZZNWZ5Q3js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkZZNWZ5Q3js.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkYZKCRDTNjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.14.
|
|
2
|
+
* react-router v7.14.2
|
|
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-EVOBXE3Y.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -878,6 +878,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
|
|
|
878
878
|
* Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
|
|
879
879
|
* header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
|
|
880
880
|
*
|
|
881
|
+
* This utility accepts absolute URLs and can navigate to external domains, so
|
|
882
|
+
* the application should validate any user-supplied inputs to redirects.
|
|
883
|
+
*
|
|
881
884
|
* @example
|
|
882
885
|
* import { redirect } from "react-router";
|
|
883
886
|
*
|
|
@@ -907,6 +910,9 @@ declare const redirect$1: RedirectFunction;
|
|
|
907
910
|
* and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
|
|
908
911
|
* header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
|
|
909
912
|
*
|
|
913
|
+
* This utility accepts absolute URLs and can navigate to external domains, so
|
|
914
|
+
* the application should validate any user-supplied inputs to redirects.
|
|
915
|
+
*
|
|
910
916
|
* ```tsx filename=routes/logout.tsx
|
|
911
917
|
* import { redirectDocument } from "react-router";
|
|
912
918
|
*
|
|
@@ -878,6 +878,9 @@ type RedirectFunction = (url: string, init?: number | ResponseInit) => Response;
|
|
|
878
878
|
* Sets the status code and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
|
|
879
879
|
* header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
|
|
880
880
|
*
|
|
881
|
+
* This utility accepts absolute URLs and can navigate to external domains, so
|
|
882
|
+
* the application should validate any user-supplied inputs to redirects.
|
|
883
|
+
*
|
|
881
884
|
* @example
|
|
882
885
|
* import { redirect } from "react-router";
|
|
883
886
|
*
|
|
@@ -907,6 +910,9 @@ declare const redirect$1: RedirectFunction;
|
|
|
907
910
|
* and the [`Location`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Location)
|
|
908
911
|
* header. Defaults to [`302 Found`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/302).
|
|
909
912
|
*
|
|
913
|
+
* This utility accepts absolute URLs and can navigate to external domains, so
|
|
914
|
+
* the application should validate any user-supplied inputs to redirects.
|
|
915
|
+
*
|
|
910
916
|
* ```tsx filename=routes/logout.tsx
|
|
911
917
|
* import { redirectDocument } from "react-router";
|
|
912
918
|
*
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v7.14.
|
|
30
|
+
* react-router v7.14.2
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -728,7 +728,7 @@ function resolvePath(to, fromPathname = "/") {
|
|
|
728
728
|
} = typeof to === "string" ? parsePath(to) : to;
|
|
729
729
|
let pathname;
|
|
730
730
|
if (toPathname) {
|
|
731
|
-
toPathname = toPathname
|
|
731
|
+
toPathname = removeDoubleSlashes(toPathname);
|
|
732
732
|
if (toPathname.startsWith("/")) {
|
|
733
733
|
pathname = resolvePathname(toPathname.substring(1), "/");
|
|
734
734
|
} else {
|
|
@@ -744,7 +744,7 @@ function resolvePath(to, fromPathname = "/") {
|
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
746
|
function resolvePathname(relativePath, fromPathname) {
|
|
747
|
-
let segments = fromPathname
|
|
747
|
+
let segments = removeTrailingSlash(fromPathname).split("/");
|
|
748
748
|
let relativeSegments = relativePath.split("/");
|
|
749
749
|
relativeSegments.forEach((segment) => {
|
|
750
750
|
if (segment === "..") {
|
|
@@ -815,8 +815,10 @@ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative = fal
|
|
|
815
815
|
}
|
|
816
816
|
return path;
|
|
817
817
|
}
|
|
818
|
-
var
|
|
819
|
-
var
|
|
818
|
+
var removeDoubleSlashes = (path) => path.replace(/\/\/+/g, "/");
|
|
819
|
+
var joinPaths = (paths) => removeDoubleSlashes(paths.join("/"));
|
|
820
|
+
var removeTrailingSlash = (path) => path.replace(/\/+$/, "");
|
|
821
|
+
var normalizePathname = (pathname) => removeTrailingSlash(pathname).replace(/^\/*/, "/");
|
|
820
822
|
var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
|
|
821
823
|
var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
|
|
822
824
|
var DataWithResponseInit = class {
|
|
@@ -870,7 +872,8 @@ function isRouteErrorResponse(error) {
|
|
|
870
872
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
871
873
|
}
|
|
872
874
|
function getRoutePattern(matches) {
|
|
873
|
-
|
|
875
|
+
let parts = matches.map((m) => m.route.path).filter(Boolean);
|
|
876
|
+
return joinPaths(parts) || "/";
|
|
874
877
|
}
|
|
875
878
|
|
|
876
879
|
// lib/router/router.ts
|
|
@@ -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.14.
|
|
9
|
+
* react-router v7.14.2
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -707,7 +707,7 @@ function resolvePath(to, fromPathname = "/") {
|
|
|
707
707
|
} = typeof to === "string" ? parsePath(to) : to;
|
|
708
708
|
let pathname;
|
|
709
709
|
if (toPathname) {
|
|
710
|
-
toPathname = toPathname
|
|
710
|
+
toPathname = removeDoubleSlashes(toPathname);
|
|
711
711
|
if (toPathname.startsWith("/")) {
|
|
712
712
|
pathname = resolvePathname(toPathname.substring(1), "/");
|
|
713
713
|
} else {
|
|
@@ -723,7 +723,7 @@ function resolvePath(to, fromPathname = "/") {
|
|
|
723
723
|
};
|
|
724
724
|
}
|
|
725
725
|
function resolvePathname(relativePath, fromPathname) {
|
|
726
|
-
let segments = fromPathname
|
|
726
|
+
let segments = removeTrailingSlash(fromPathname).split("/");
|
|
727
727
|
let relativeSegments = relativePath.split("/");
|
|
728
728
|
relativeSegments.forEach((segment) => {
|
|
729
729
|
if (segment === "..") {
|
|
@@ -794,8 +794,10 @@ function resolveTo(toArg, routePathnames, locationPathname, isPathRelative = fal
|
|
|
794
794
|
}
|
|
795
795
|
return path;
|
|
796
796
|
}
|
|
797
|
-
var
|
|
798
|
-
var
|
|
797
|
+
var removeDoubleSlashes = (path) => path.replace(/\/\/+/g, "/");
|
|
798
|
+
var joinPaths = (paths) => removeDoubleSlashes(paths.join("/"));
|
|
799
|
+
var removeTrailingSlash = (path) => path.replace(/\/+$/, "");
|
|
800
|
+
var normalizePathname = (pathname) => removeTrailingSlash(pathname).replace(/^\/*/, "/");
|
|
799
801
|
var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
|
|
800
802
|
var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
|
|
801
803
|
var DataWithResponseInit = class {
|
|
@@ -849,7 +851,8 @@ function isRouteErrorResponse(error) {
|
|
|
849
851
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
850
852
|
}
|
|
851
853
|
function getRoutePattern(matches) {
|
|
852
|
-
|
|
854
|
+
let parts = matches.map((m) => m.route.path).filter(Boolean);
|
|
855
|
+
return joinPaths(parts) || "/";
|
|
853
856
|
}
|
|
854
857
|
|
|
855
858
|
// lib/router/router.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { X as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, Y as SerializeFrom, L as Location, Z as
|
|
2
|
-
export { a1 as ActionFunctionArgs, a2 as BaseRouteObject, C as ClientActionFunction, aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, w as DataRouteMatch, a3 as DataStrategyFunctionArgs, a4 as DataStrategyMatch, D as DataStrategyResult, a6 as ErrorResponse, n as FormEncType, a7 as FormMethod, aw as Future, m as HTMLFormMethod, as as HeadersArgs, H as HeadersFunction, av as HtmlLinkDescriptor, O as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, at as MetaArgs, g as MetaDescriptor, a8 as MiddlewareFunction, au as PageLinkDescriptor, a9 as PatchRoutesOnNavigationFunctionArgs, aa as PathParam, ab as RedirectFunction, V as RouteMatch, ac as RouterContext, S as ShouldRevalidateFunction, ad as ShouldRevalidateFunctionArgs, a5 as UNSAFE_DataWithResponseInit, aC as UNSAFE_ErrorResponseImpl, az as UNSAFE_createBrowserHistory, aA as UNSAFE_createHashHistory, ay as UNSAFE_createMemoryHistory, aB as UNSAFE_invariant, ae as createContext, af as createPath, ah as data, ai as generatePath, aj as isRouteErrorResponse, ak as matchPath, al as matchRoutes, ag as parsePath, am as redirect, an as redirectDocument, ao as replace, ap as resolvePath, ax as unstable_SerializesTo } from './routeModules-
|
|
3
|
-
import { b as Router, N as NavigateOptions, B as BlockerFunction, c as Blocker, d as RelativeRoutingType, e as Navigation, H as HydrationState, f as RouterState } from './context-
|
|
4
|
-
export { K as Await, w as AwaitProps, C as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, g as GetScrollRestorationKeyFunction, t as IDLE_BLOCKER, s as IDLE_FETCHER, I as IDLE_NAVIGATION, x as IndexRouteProps, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, i as NavigationStates, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, m as RevalidationState, V as Route, D as RouteProps, W as Router, l as RouterFetchOptions, R as RouterInit, k as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, j as RouterSubscriber, Y as Routes, J as RoutesProps, 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, u as unstable_ClientInstrumentation, o as unstable_InstrumentRequestHandlerFunction, q as unstable_InstrumentRouteFunction, p as unstable_InstrumentRouterFunction, r as unstable_InstrumentationHandlerResult, n as unstable_ServerInstrumentation } from './context-
|
|
1
|
+
import { X as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, Y as SerializeFrom, L as Location, Z as PathPattern, _ as PathMatch, $ as ParamParseKey, U as UIMatch, v as Action, P as Params, I as Path, r as RouteObject, G as GetLoaderData, l as GetActionData, J as InitialEntry, Q as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, K as NonIndexRouteObject, a0 as Equal, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, a as ClientLoaderFunction } from './routeModules-BW4a8k3I.mjs';
|
|
2
|
+
export { a1 as ActionFunctionArgs, a2 as BaseRouteObject, C as ClientActionFunction, aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, w as DataRouteMatch, a3 as DataStrategyFunctionArgs, a4 as DataStrategyMatch, D as DataStrategyResult, a6 as ErrorResponse, n as FormEncType, a7 as FormMethod, aw as Future, m as HTMLFormMethod, as as HeadersArgs, H as HeadersFunction, av as HtmlLinkDescriptor, O as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, at as MetaArgs, g as MetaDescriptor, a8 as MiddlewareFunction, au as PageLinkDescriptor, a9 as PatchRoutesOnNavigationFunctionArgs, aa as PathParam, ab as RedirectFunction, V as RouteMatch, ac as RouterContext, S as ShouldRevalidateFunction, ad as ShouldRevalidateFunctionArgs, a5 as UNSAFE_DataWithResponseInit, aC as UNSAFE_ErrorResponseImpl, az as UNSAFE_createBrowserHistory, aA as UNSAFE_createHashHistory, ay as UNSAFE_createMemoryHistory, aB as UNSAFE_invariant, ae as createContext, af as createPath, ah as data, ai as generatePath, aj as isRouteErrorResponse, ak as matchPath, al as matchRoutes, ag as parsePath, am as redirect, an as redirectDocument, ao as replace, ap as resolvePath, ax as unstable_SerializesTo } from './routeModules-BW4a8k3I.mjs';
|
|
3
|
+
import { b as Router, N as NavigateOptions, B as BlockerFunction, c as Blocker, d as RelativeRoutingType, e as Navigation, H as HydrationState, f as RouterState } from './context-DGGUoDIu.mjs';
|
|
4
|
+
export { K as Await, w as AwaitProps, C as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, g as GetScrollRestorationKeyFunction, t as IDLE_BLOCKER, s as IDLE_FETCHER, I as IDLE_NAVIGATION, x as IndexRouteProps, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, i as NavigationStates, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, m as RevalidationState, V as Route, D as RouteProps, W as Router, l as RouterFetchOptions, R as RouterInit, k as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, j as RouterSubscriber, Y as Routes, J as RoutesProps, 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, u as unstable_ClientInstrumentation, o as unstable_InstrumentRequestHandlerFunction, q as unstable_InstrumentRouteFunction, p as unstable_InstrumentRouterFunction, r as unstable_InstrumentationHandlerResult, n as unstable_ServerInstrumentation } from './context-DGGUoDIu.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { ReactElement } from 'react';
|
|
7
|
-
import { a as RouteModules$1, P as Pages } from './register-
|
|
8
|
-
export { b as Register } from './register-
|
|
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-
|
|
7
|
+
import { a as RouteModules$1, P as Pages } from './register-D9d2sMQ7.mjs';
|
|
8
|
+
export { b as Register } from './register-D9d2sMQ7.mjs';
|
|
9
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-BjhKIe3u.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-BjhKIe3u.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-I6n6wVSO.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-I6n6wVSO.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;
|
|
@@ -113,7 +113,7 @@ declare function useNavigationType(): Action;
|
|
|
113
113
|
* @param pattern The pattern to match against the current {@link Location}
|
|
114
114
|
* @returns The path match object if the pattern matches, `null` otherwise
|
|
115
115
|
*/
|
|
116
|
-
declare function useMatch<
|
|
116
|
+
declare function useMatch<Path extends string>(pattern: PathPattern<Path> | Path): PathMatch<ParamParseKey<Path>> | null;
|
|
117
117
|
/**
|
|
118
118
|
* The interface for the `navigate` function returned from {@link useNavigate}.
|
|
119
119
|
*/
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { J as RouteModules, l as DataStrategyFunction, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, T as To, K as SerializeFrom, L as Location, O as
|
|
2
|
-
export { _ as ActionFunctionArgs, $ as BaseRouteObject, C as ClientActionFunction, ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, D as DataRouteMatch, a0 as DataStrategyFunctionArgs, a1 as DataStrategyMatch, B as DataStrategyResult, a3 as ErrorResponse, F as FormEncType, a4 as FormMethod, av as Future, o as HTMLFormMethod, ar as HeadersArgs, H as HeadersFunction, au as HtmlLinkDescriptor, a5 as LazyRouteFunction, t as LinkDescriptor, q as LoaderFunctionArgs, as as MetaArgs, w as MetaDescriptor, a6 as MiddlewareFunction, at as PageLinkDescriptor, a7 as PatchRoutesOnNavigationFunctionArgs, a8 as PathParam, a9 as RedirectFunction, aa as RouteMatch, ab as RouterContext, S as ShouldRevalidateFunction, ac as ShouldRevalidateFunctionArgs, a2 as UNSAFE_DataWithResponseInit, aB as UNSAFE_ErrorResponseImpl, ay as UNSAFE_createBrowserHistory, az as UNSAFE_createHashHistory, ax as UNSAFE_createMemoryHistory, aA as UNSAFE_invariant, ad as createContext, ae as createPath, ag as data, ah as generatePath, ai as isRouteErrorResponse, aj as matchPath, ak as matchRoutes, af as parsePath, al as redirect, am as redirectDocument, an as replace, ao as resolvePath, aw as unstable_SerializesTo } from './routeModules-
|
|
3
|
-
import { a as Router, B as BlockerFunction, b as Blocker, c as RelativeRoutingType, N as Navigation, H as HydrationState, d as RouterState } from './instrumentation-
|
|
4
|
-
export { F as Fetcher, G as GetScrollPositionFunction, e as GetScrollRestorationKeyFunction, r as IDLE_BLOCKER, q as IDLE_FETCHER, I as IDLE_NAVIGATION, g as NavigationStates, k as RevalidationState, j as RouterFetchOptions, R as RouterInit, i as RouterNavigateOptions, h as RouterSubscriber, S as StaticHandler, f as StaticHandlerContext, s as UNSAFE_createRouter, u as unstable_ClientInstrumentation, m as unstable_InstrumentRequestHandlerFunction, o as unstable_InstrumentRouteFunction, n as unstable_InstrumentRouterFunction, p as unstable_InstrumentationHandlerResult, l as unstable_ServerInstrumentation } 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-
|
|
1
|
+
import { J as RouteModules, l as DataStrategyFunction, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, T as To, K as SerializeFrom, L as Location, O as PathPattern, Q as PathMatch, V as ParamParseKey, U as UIMatch, i as Action, P as Params, p as Path, e as RouteObject, G as GetLoaderData, I as GetActionData, W as InitialEntry, X as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, Y as NonIndexRouteObject, Z as Equal, m as PatchRoutesOnNavigationFunction, n as DataRouteObject, a as ClientLoaderFunction } from './routeModules-7rtk67cd.js';
|
|
2
|
+
export { _ as ActionFunctionArgs, $ as BaseRouteObject, C as ClientActionFunction, ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, D as DataRouteMatch, a0 as DataStrategyFunctionArgs, a1 as DataStrategyMatch, B as DataStrategyResult, a3 as ErrorResponse, F as FormEncType, a4 as FormMethod, av as Future, o as HTMLFormMethod, ar as HeadersArgs, H as HeadersFunction, au as HtmlLinkDescriptor, a5 as LazyRouteFunction, t as LinkDescriptor, q as LoaderFunctionArgs, as as MetaArgs, w as MetaDescriptor, a6 as MiddlewareFunction, at as PageLinkDescriptor, a7 as PatchRoutesOnNavigationFunctionArgs, a8 as PathParam, a9 as RedirectFunction, aa as RouteMatch, ab as RouterContext, S as ShouldRevalidateFunction, ac as ShouldRevalidateFunctionArgs, a2 as UNSAFE_DataWithResponseInit, aB as UNSAFE_ErrorResponseImpl, ay as UNSAFE_createBrowserHistory, az as UNSAFE_createHashHistory, ax as UNSAFE_createMemoryHistory, aA as UNSAFE_invariant, ad as createContext, ae as createPath, ag as data, ah as generatePath, ai as isRouteErrorResponse, aj as matchPath, ak as matchRoutes, af as parsePath, al as redirect, am as redirectDocument, an as replace, ao as resolvePath, aw as unstable_SerializesTo } from './routeModules-7rtk67cd.js';
|
|
3
|
+
import { a as Router, B as BlockerFunction, b as Blocker, c as RelativeRoutingType, N as Navigation, H as HydrationState, d as RouterState } from './instrumentation-g0dG8UL0.js';
|
|
4
|
+
export { F as Fetcher, G as GetScrollPositionFunction, e as GetScrollRestorationKeyFunction, r as IDLE_BLOCKER, q as IDLE_FETCHER, I as IDLE_NAVIGATION, g as NavigationStates, k as RevalidationState, j as RouterFetchOptions, R as RouterInit, i as RouterNavigateOptions, h as RouterSubscriber, S as StaticHandler, f as StaticHandlerContext, s as UNSAFE_createRouter, u as unstable_ClientInstrumentation, m as unstable_InstrumentRequestHandlerFunction, o as unstable_InstrumentRouteFunction, n as unstable_InstrumentRouterFunction, p as unstable_InstrumentationHandlerResult, l as unstable_ServerInstrumentation } from './instrumentation-g0dG8UL0.js';
|
|
5
|
+
import { A as AssetsManifest, S as ServerBuild, N as NavigateOptions, E as EntryContext, F as FutureConfig } from './index-react-server-client-BBd0A0TL.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-BBd0A0TL.js';
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import React__default, { ReactElement } from 'react';
|
|
9
|
-
import { a as RouteModules$1, P as Pages } from './register-
|
|
10
|
-
export { b as Register } from './register-
|
|
9
|
+
import { a as RouteModules$1, P as Pages } from './register-DcBltf5q.js';
|
|
10
|
+
export { b as Register } from './register-DcBltf5q.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-C-UvoYvi.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-C-UvoYvi.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;
|
|
@@ -113,7 +113,7 @@ declare function useNavigationType(): Action;
|
|
|
113
113
|
* @param pattern The pattern to match against the current {@link Location}
|
|
114
114
|
* @returns The path match object if the pattern matches, `null` otherwise
|
|
115
115
|
*/
|
|
116
|
-
declare function useMatch<
|
|
116
|
+
declare function useMatch<Path extends string>(pattern: PathPattern<Path> | Path): PathMatch<ParamParseKey<Path>> | null;
|
|
117
117
|
/**
|
|
118
118
|
* The interface for the `navigate` function returned from {@link useNavigate}.
|
|
119
119
|
*/
|