react-router 7.2.0-pre.0 → 7.2.0-pre.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 +57 -0
- package/dist/development/{chunk-HLU4BUUT.mjs → chunk-ULARE4JK.mjs} +58 -40
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +18 -19
- package/dist/development/dom-export.mjs +2 -2
- package/dist/{production/fog-of-war-Ax4Jg2xL.d.ts → development/fog-of-war-rn7nVSAv.d.ts} +1 -1
- package/dist/development/{fog-of-war-Cyo_TZuh.d.mts → fog-of-war-yKFj2vdd.d.mts} +1 -1
- package/dist/development/index.d.mts +37 -6
- package/dist/development/index.d.ts +37 -6
- package/dist/development/index.js +59 -40
- package/dist/development/index.mjs +4 -2
- package/dist/development/lib/types/route-module.d.mts +1 -1
- package/dist/development/lib/types/route-module.d.ts +1 -1
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/development/{route-data-DQbTMaUY.d.ts → route-data-CfLfC_Bh.d.mts} +1 -1
- package/dist/{production/route-data-DQbTMaUY.d.mts → development/route-data-CfLfC_Bh.d.ts} +1 -1
- package/dist/production/{chunk-IA3JXIZE.mjs → chunk-QRCLBIUO.mjs} +58 -40
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +18 -19
- package/dist/production/dom-export.mjs +2 -2
- package/dist/{development/fog-of-war-Ax4Jg2xL.d.ts → production/fog-of-war-rn7nVSAv.d.ts} +1 -1
- package/dist/production/{fog-of-war-Cyo_TZuh.d.mts → fog-of-war-yKFj2vdd.d.mts} +1 -1
- package/dist/production/index.d.mts +37 -6
- package/dist/production/index.d.ts +37 -6
- package/dist/production/index.js +59 -40
- package/dist/production/index.mjs +4 -2
- package/dist/production/lib/types/route-module.d.mts +1 -1
- package/dist/production/lib/types/route-module.d.ts +1 -1
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/production/{route-data-DQbTMaUY.d.ts → route-data-CfLfC_Bh.d.mts} +1 -1
- package/dist/{development/route-data-DQbTMaUY.d.mts → production/route-data-CfLfC_Bh.d.ts} +1 -1
- package/package.json +1 -1
package/dist/production/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.2.0-pre.
|
|
2
|
+
* react-router v7.2.0-pre.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -108,6 +108,7 @@ __export(react_router_exports, {
|
|
|
108
108
|
createStaticRouter: () => createStaticRouter,
|
|
109
109
|
data: () => data,
|
|
110
110
|
generatePath: () => generatePath,
|
|
111
|
+
href: () => href,
|
|
111
112
|
isCookie: () => isCookie,
|
|
112
113
|
isRouteErrorResponse: () => isRouteErrorResponse,
|
|
113
114
|
isSession: () => isSession,
|
|
@@ -299,13 +300,13 @@ function createHashHistory(options = {}) {
|
|
|
299
300
|
}
|
|
300
301
|
function createHashHref(window2, to) {
|
|
301
302
|
let base = window2.document.querySelector("base");
|
|
302
|
-
let
|
|
303
|
+
let href2 = "";
|
|
303
304
|
if (base && base.getAttribute("href")) {
|
|
304
305
|
let url = window2.location.href;
|
|
305
306
|
let hashIndex = url.indexOf("#");
|
|
306
|
-
|
|
307
|
+
href2 = hashIndex === -1 ? url : url.slice(0, hashIndex);
|
|
307
308
|
}
|
|
308
|
-
return
|
|
309
|
+
return href2 + "#" + (typeof to === "string" ? to : createPath(to));
|
|
309
310
|
}
|
|
310
311
|
function validateHashLocation(location, to) {
|
|
311
312
|
warning(
|
|
@@ -447,13 +448,13 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
447
448
|
}
|
|
448
449
|
function createURL(to) {
|
|
449
450
|
let base = window2.location.origin !== "null" ? window2.location.origin : window2.location.href;
|
|
450
|
-
let
|
|
451
|
-
|
|
451
|
+
let href2 = typeof to === "string" ? to : createPath(to);
|
|
452
|
+
href2 = href2.replace(/ $/, "%20");
|
|
452
453
|
invariant(
|
|
453
454
|
base,
|
|
454
|
-
`No window.location.(origin|href) available to create URL for href: ${
|
|
455
|
+
`No window.location.(origin|href) available to create URL for href: ${href2}`
|
|
455
456
|
);
|
|
456
|
-
return new URL(
|
|
457
|
+
return new URL(href2, base);
|
|
457
458
|
}
|
|
458
459
|
let history = {
|
|
459
460
|
get action() {
|
|
@@ -1855,7 +1856,7 @@ function createRouter(init) {
|
|
|
1855
1856
|
});
|
|
1856
1857
|
return new Map(state.fetchers);
|
|
1857
1858
|
}
|
|
1858
|
-
async function fetch2(key, routeId,
|
|
1859
|
+
async function fetch2(key, routeId, href2, opts) {
|
|
1859
1860
|
abortFetcher(key);
|
|
1860
1861
|
let flushSync = (opts && opts.flushSync) === true;
|
|
1861
1862
|
let routesToUse = inFlightDataRoutes || dataRoutes;
|
|
@@ -1863,7 +1864,7 @@ function createRouter(init) {
|
|
|
1863
1864
|
state.location,
|
|
1864
1865
|
state.matches,
|
|
1865
1866
|
basename,
|
|
1866
|
-
|
|
1867
|
+
href2,
|
|
1867
1868
|
routeId,
|
|
1868
1869
|
opts?.relative
|
|
1869
1870
|
);
|
|
@@ -5501,7 +5502,7 @@ function getKeyedLinksForMatches(matches, routeModules, manifest) {
|
|
|
5501
5502
|
let module2 = routeModules[match.route.id];
|
|
5502
5503
|
let route = manifest.routes[match.route.id];
|
|
5503
5504
|
return [
|
|
5504
|
-
route && route.css ? route.css.map((
|
|
5505
|
+
route && route.css ? route.css.map((href2) => ({ rel: "stylesheet", href: href2 })) : [],
|
|
5505
5506
|
module2?.links?.() || []
|
|
5506
5507
|
];
|
|
5507
5508
|
}).flat(2);
|
|
@@ -5510,7 +5511,7 @@ function getKeyedLinksForMatches(matches, routeModules, manifest) {
|
|
|
5510
5511
|
}
|
|
5511
5512
|
function getRouteCssDescriptors(route) {
|
|
5512
5513
|
if (!route.css) return [];
|
|
5513
|
-
return route.css.map((
|
|
5514
|
+
return route.css.map((href2) => ({ rel: "stylesheet", href: href2 }));
|
|
5514
5515
|
}
|
|
5515
5516
|
async function prefetchRouteCss(route) {
|
|
5516
5517
|
if (!route.css) return;
|
|
@@ -5815,10 +5816,10 @@ function getSingleFetchDataStrategy(manifest, routeModules, ssr, getRouter) {
|
|
|
5815
5816
|
return singleFetchActionStrategy(request, matches);
|
|
5816
5817
|
}
|
|
5817
5818
|
if (!ssr) {
|
|
5818
|
-
let
|
|
5819
|
-
(m) => m.route.id
|
|
5819
|
+
let foundRevalidatingServerLoader = matches.some(
|
|
5820
|
+
(m) => m.shouldLoad && manifest.routes[m.route.id]?.hasLoader && !manifest.routes[m.route.id]?.hasClientLoader
|
|
5820
5821
|
);
|
|
5821
|
-
if (!
|
|
5822
|
+
if (!foundRevalidatingServerLoader) {
|
|
5822
5823
|
let matchesToLoad = matches.filter((m) => m.shouldLoad);
|
|
5823
5824
|
let results = await Promise.all(matchesToLoad.map((m) => m.resolve()));
|
|
5824
5825
|
return results.reduce(
|
|
@@ -6313,13 +6314,7 @@ function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation, manifest
|
|
|
6313
6314
|
needsRevalidation
|
|
6314
6315
|
);
|
|
6315
6316
|
}
|
|
6316
|
-
function preventInvalidServerHandlerCall(type, route
|
|
6317
|
-
if (isSpaMode) {
|
|
6318
|
-
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
6319
|
-
let msg = `You cannot call ${fn} in SPA Mode (routeId: "${route.id}")`;
|
|
6320
|
-
console.error(msg);
|
|
6321
|
-
throw new ErrorResponseImpl(400, "Bad Request", new Error(msg), true);
|
|
6322
|
-
}
|
|
6317
|
+
function preventInvalidServerHandlerCall(type, route) {
|
|
6323
6318
|
if (type === "loader" && !route.hasLoader || type === "action" && !route.hasAction) {
|
|
6324
6319
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
6325
6320
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${route.id}")`;
|
|
@@ -6413,7 +6408,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6413
6408
|
request,
|
|
6414
6409
|
params,
|
|
6415
6410
|
async serverLoader() {
|
|
6416
|
-
preventInvalidServerHandlerCall("loader", route
|
|
6411
|
+
preventInvalidServerHandlerCall("loader", route);
|
|
6417
6412
|
if (isHydrationRequest) {
|
|
6418
6413
|
if (hasInitialData) {
|
|
6419
6414
|
return initialData;
|
|
@@ -6452,7 +6447,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6452
6447
|
request,
|
|
6453
6448
|
params,
|
|
6454
6449
|
async serverAction() {
|
|
6455
|
-
preventInvalidServerHandlerCall("action", route
|
|
6450
|
+
preventInvalidServerHandlerCall("action", route);
|
|
6456
6451
|
return fetchServerAction(singleFetch);
|
|
6457
6452
|
}
|
|
6458
6453
|
});
|
|
@@ -6474,7 +6469,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6474
6469
|
return clientLoader({
|
|
6475
6470
|
...args,
|
|
6476
6471
|
async serverLoader() {
|
|
6477
|
-
preventInvalidServerHandlerCall("loader", route
|
|
6472
|
+
preventInvalidServerHandlerCall("loader", route);
|
|
6478
6473
|
return fetchServerLoader(singleFetch);
|
|
6479
6474
|
}
|
|
6480
6475
|
});
|
|
@@ -6499,7 +6494,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6499
6494
|
return clientAction({
|
|
6500
6495
|
...args,
|
|
6501
6496
|
async serverAction() {
|
|
6502
|
-
preventInvalidServerHandlerCall("action", route
|
|
6497
|
+
preventInvalidServerHandlerCall("action", route);
|
|
6503
6498
|
return fetchServerAction(singleFetch);
|
|
6504
6499
|
}
|
|
6505
6500
|
});
|
|
@@ -6521,7 +6516,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6521
6516
|
lazyRoute.loader = (args, singleFetch) => clientLoader({
|
|
6522
6517
|
...args,
|
|
6523
6518
|
async serverLoader() {
|
|
6524
|
-
preventInvalidServerHandlerCall("loader", route
|
|
6519
|
+
preventInvalidServerHandlerCall("loader", route);
|
|
6525
6520
|
return fetchServerLoader(singleFetch);
|
|
6526
6521
|
}
|
|
6527
6522
|
});
|
|
@@ -6531,7 +6526,7 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
6531
6526
|
lazyRoute.action = (args, singleFetch) => clientAction({
|
|
6532
6527
|
...args,
|
|
6533
6528
|
async serverAction() {
|
|
6534
|
-
preventInvalidServerHandlerCall("action", route
|
|
6529
|
+
preventInvalidServerHandlerCall("action", route);
|
|
6535
6530
|
return fetchServerAction(singleFetch);
|
|
6536
6531
|
}
|
|
6537
6532
|
});
|
|
@@ -6576,8 +6571,13 @@ function getShouldRevalidateFunction(route, manifestRoute, ssr, needsRevalidatio
|
|
|
6576
6571
|
needsRevalidation
|
|
6577
6572
|
);
|
|
6578
6573
|
}
|
|
6579
|
-
if (!ssr && manifestRoute.
|
|
6580
|
-
|
|
6574
|
+
if (!ssr && manifestRoute.hasLoader && !manifestRoute.hasClientLoader) {
|
|
6575
|
+
if (route.shouldRevalidate) {
|
|
6576
|
+
let fn = route.shouldRevalidate;
|
|
6577
|
+
return (opts) => fn({ ...opts, defaultShouldRevalidate: false });
|
|
6578
|
+
} else {
|
|
6579
|
+
return () => false;
|
|
6580
|
+
}
|
|
6581
6581
|
}
|
|
6582
6582
|
if (ssr && route.shouldRevalidate) {
|
|
6583
6583
|
let fn = route.shouldRevalidate;
|
|
@@ -7013,7 +7013,7 @@ function PrefetchPageLinksImpl({
|
|
|
7013
7013
|
[newMatchesForAssets, manifest]
|
|
7014
7014
|
);
|
|
7015
7015
|
let keyedPrefetchLinks = useKeyedPrefetchLinks(newMatchesForAssets);
|
|
7016
|
-
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, dataHrefs.map((
|
|
7016
|
+
return /* @__PURE__ */ React9.createElement(React9.Fragment, null, dataHrefs.map((href2) => /* @__PURE__ */ React9.createElement("link", { key: href2, rel: "prefetch", as: "fetch", href: href2, ...linkProps })), moduleHrefs.map((href2) => /* @__PURE__ */ React9.createElement("link", { key: href2, rel: "modulepreload", href: href2, ...linkProps })), keyedPrefetchLinks.map(({ key, link }) => (
|
|
7017
7017
|
// these don't spread `linkProps` because they are full link descriptors
|
|
7018
7018
|
// already with their own props
|
|
7019
7019
|
/* @__PURE__ */ React9.createElement("link", { key, ...link })
|
|
@@ -7253,7 +7253,7 @@ function mergeRefs(...refs) {
|
|
|
7253
7253
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7254
7254
|
try {
|
|
7255
7255
|
if (isBrowser) {
|
|
7256
|
-
window.__reactRouterVersion = "7.2.0-pre.
|
|
7256
|
+
window.__reactRouterVersion = "7.2.0-pre.2";
|
|
7257
7257
|
}
|
|
7258
7258
|
} catch (e) {
|
|
7259
7259
|
}
|
|
@@ -7456,7 +7456,7 @@ var Link = React10.forwardRef(
|
|
|
7456
7456
|
}
|
|
7457
7457
|
}
|
|
7458
7458
|
}
|
|
7459
|
-
let
|
|
7459
|
+
let href2 = useHref(to, { relative });
|
|
7460
7460
|
let [shouldPrefetch, prefetchRef, prefetchHandlers] = usePrefetchBehavior(
|
|
7461
7461
|
prefetch,
|
|
7462
7462
|
rest
|
|
@@ -7482,7 +7482,7 @@ var Link = React10.forwardRef(
|
|
|
7482
7482
|
{
|
|
7483
7483
|
...rest,
|
|
7484
7484
|
...prefetchHandlers,
|
|
7485
|
-
href: absoluteHref ||
|
|
7485
|
+
href: absoluteHref || href2,
|
|
7486
7486
|
onClick: isExternal || reloadDocument ? onClick : handleClick,
|
|
7487
7487
|
ref: mergeRefs(forwardedRef, prefetchRef),
|
|
7488
7488
|
target,
|
|
@@ -7490,7 +7490,7 @@ var Link = React10.forwardRef(
|
|
|
7490
7490
|
}
|
|
7491
7491
|
)
|
|
7492
7492
|
);
|
|
7493
|
-
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, link, /* @__PURE__ */ React10.createElement(PrefetchPageLinks, { page:
|
|
7493
|
+
return shouldPrefetch && !isAbsolute ? /* @__PURE__ */ React10.createElement(React10.Fragment, null, link, /* @__PURE__ */ React10.createElement(PrefetchPageLinks, { page: href2 })) : link;
|
|
7494
7494
|
}
|
|
7495
7495
|
);
|
|
7496
7496
|
Link.displayName = "Link";
|
|
@@ -7846,9 +7846,9 @@ function useFetcher({
|
|
|
7846
7846
|
return () => router.deleteFetcher(fetcherKey);
|
|
7847
7847
|
}, [router, fetcherKey]);
|
|
7848
7848
|
let load = React10.useCallback(
|
|
7849
|
-
async (
|
|
7849
|
+
async (href2, opts) => {
|
|
7850
7850
|
invariant(routeId, "No routeId available for fetcher.load()");
|
|
7851
|
-
await router.fetch(fetcherKey, routeId,
|
|
7851
|
+
await router.fetch(fetcherKey, routeId, href2, opts);
|
|
7852
7852
|
},
|
|
7853
7853
|
[fetcherKey, routeId, router]
|
|
7854
7854
|
);
|
|
@@ -8305,9 +8305,9 @@ function createHref(to) {
|
|
|
8305
8305
|
return typeof to === "string" ? to : createPath(to);
|
|
8306
8306
|
}
|
|
8307
8307
|
function encodeLocation(to) {
|
|
8308
|
-
let
|
|
8309
|
-
|
|
8310
|
-
let encoded = ABSOLUTE_URL_REGEX3.test(
|
|
8308
|
+
let href2 = typeof to === "string" ? to : createPath(to);
|
|
8309
|
+
href2 = href2.replace(/ $/, "%20");
|
|
8310
|
+
let encoded = ABSOLUTE_URL_REGEX3.test(href2) ? new URL(href2) : new URL(href2, "http://localhost");
|
|
8311
8311
|
return {
|
|
8312
8312
|
pathname: encoded.pathname,
|
|
8313
8313
|
search: encoded.search,
|
|
@@ -9783,6 +9783,24 @@ function createMemorySessionStorage({ cookie } = {}) {
|
|
|
9783
9783
|
});
|
|
9784
9784
|
}
|
|
9785
9785
|
|
|
9786
|
+
// lib/href.ts
|
|
9787
|
+
function href(path, ...args) {
|
|
9788
|
+
let params = args[0];
|
|
9789
|
+
return path.split("/").map((segment) => {
|
|
9790
|
+
const match = segment.match(/^:([\w-]+)(\?)?/);
|
|
9791
|
+
if (!match) return segment;
|
|
9792
|
+
const param = match[1];
|
|
9793
|
+
const value = params ? params[param] : void 0;
|
|
9794
|
+
const isRequired = match[2] === void 0;
|
|
9795
|
+
if (isRequired && value === void 0) {
|
|
9796
|
+
throw Error(
|
|
9797
|
+
`Path '${path}' requires param '${param}' but it was not provided`
|
|
9798
|
+
);
|
|
9799
|
+
}
|
|
9800
|
+
return value;
|
|
9801
|
+
}).filter((segment) => segment !== void 0).join("/");
|
|
9802
|
+
}
|
|
9803
|
+
|
|
9786
9804
|
// lib/dom/ssr/errors.ts
|
|
9787
9805
|
function deserializeErrors2(errors) {
|
|
9788
9806
|
if (!errors) return null;
|
|
@@ -9889,6 +9907,7 @@ function deserializeErrors2(errors) {
|
|
|
9889
9907
|
createStaticRouter,
|
|
9890
9908
|
data,
|
|
9891
9909
|
generatePath,
|
|
9910
|
+
href,
|
|
9892
9911
|
isCookie,
|
|
9893
9912
|
isRouteErrorResponse,
|
|
9894
9913
|
isSession,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.2.0-pre.
|
|
2
|
+
* react-router v7.2.0-pre.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -73,6 +73,7 @@ import {
|
|
|
73
73
|
generatePath,
|
|
74
74
|
getPatchRoutesOnNavigationFunction,
|
|
75
75
|
getSingleFetchDataStrategy,
|
|
76
|
+
href,
|
|
76
77
|
invariant,
|
|
77
78
|
isCookie,
|
|
78
79
|
isRouteErrorResponse,
|
|
@@ -120,7 +121,7 @@ import {
|
|
|
120
121
|
useSearchParams,
|
|
121
122
|
useSubmit,
|
|
122
123
|
useViewTransitionState
|
|
123
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-QRCLBIUO.mjs";
|
|
124
125
|
export {
|
|
125
126
|
Await,
|
|
126
127
|
BrowserRouter,
|
|
@@ -190,6 +191,7 @@ export {
|
|
|
190
191
|
createStaticRouter,
|
|
191
192
|
data,
|
|
192
193
|
generatePath,
|
|
194
|
+
href,
|
|
193
195
|
isCookie,
|
|
194
196
|
isRouteErrorResponse,
|
|
195
197
|
isSession,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { az as LinkDescriptor, aw as MetaDescriptor, aN as ServerDataFrom, aO as ClientDataFrom, aP as Func, E as Equal, aQ as Pretty } from '../../route-data-CfLfC_Bh.mjs';
|
|
2
2
|
import { A as AppLoadContext } from '../../data-CQbyyGzl.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { az as LinkDescriptor, aw as MetaDescriptor, aN as ServerDataFrom, aO as ClientDataFrom, aP as Func, E as Equal, aQ as Pretty } from '../../route-data-CfLfC_Bh.js';
|
|
2
2
|
import { A as AppLoadContext } from '../../data-CQbyyGzl.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -1576,4 +1576,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
|
|
|
1576
1576
|
type ClientDataFrom<T> = ClientData<DataFrom<T>>;
|
|
1577
1577
|
type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
|
|
1578
1578
|
|
|
1579
|
-
export { type
|
|
1579
|
+
export { type HTMLFormMethod as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterSubscriber as J, type RouterNavigateOptions as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterFetchOptions as O, type ParamParseKey as P, type DataStrategyFunctionArgs as Q, type RouteModules as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type DataStrategyMatch as V, type DataStrategyResult as W, DataWithResponseInit as X, type ErrorResponse as Y, type FormEncType as Z, type FormMethod as _, type Router as a, type LazyRouteFunction as a0, type PathParam as a1, type RedirectFunction as a2, type ShouldRevalidateFunction as a3, type ShouldRevalidateFunctionArgs as a4, createPath as a5, parsePath as a6, IDLE_NAVIGATION as a7, IDLE_FETCHER as a8, IDLE_BLOCKER as a9, createBrowserHistory as aA, invariant as aB, createRouter as aC, ErrorResponseImpl as aD, DataRouterContext as aE, DataRouterStateContext as aF, FetchersContext as aG, LocationContext as aH, NavigationContext as aI, RouteContext as aJ, ViewTransitionContext as aK, type RouteModule as aL, type History as aM, type ServerDataFrom as aN, type ClientDataFrom as aO, type Func as aP, type Pretty as aQ, data as aa, generatePath as ab, isRouteErrorResponse as ac, matchPath as ad, matchRoutes as ae, redirect as af, redirectDocument as ag, replace as ah, resolvePath as ai, type DataRouteMatch as aj, type DataRouteObject as ak, type Navigator as al, type PatchRoutesOnNavigationFunction as am, type PatchRoutesOnNavigationFunctionArgs as an, type RouteMatch as ao, type ClientActionFunction as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunction as ar, type ClientLoaderFunctionArgs as as, type HeadersArgs as at, type HeadersFunction as au, type MetaArgs as av, type MetaDescriptor as aw, type PageLinkDescriptor as ax, type HtmlLinkDescriptor as ay, type LinkDescriptor as az, type RouteManifest as b, type RelativeRoutingType as c, type Location as d, Action as e, type Path as f, type PathPattern as g, type PathMatch as h, type Params as i, type RouteObject as j, type Navigation as k, type RevalidationState as l, type SerializeFrom as m, type Blocker as n, type StaticHandlerContext as o, type StaticHandler as p, type IndexRouteObject as q, type LoaderFunction as r, type ActionFunction as s, type LinksFunction as t, type NonIndexRouteObject as u, type RouterState as v, type GetScrollRestorationKeyFunction as w, type Fetcher as x, type NavigationStates as y, type RouterInit as z };
|
|
@@ -1576,4 +1576,4 @@ type ServerDataFrom<T> = ServerData<DataFrom<T>>;
|
|
|
1576
1576
|
type ClientDataFrom<T> = ClientData<DataFrom<T>>;
|
|
1577
1577
|
type SerializeFrom<T> = T extends (...args: infer Args) => unknown ? Args extends [ClientLoaderFunctionArgs | ClientActionFunctionArgs] ? ClientDataFrom<T> : ServerDataFrom<T> : T;
|
|
1578
1578
|
|
|
1579
|
-
export { type
|
|
1579
|
+
export { type HTMLFormMethod as $, type ActionFunctionArgs as A, type BlockerFunction as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterSubscriber as J, type RouterNavigateOptions as K, type LoaderFunctionArgs as L, type MetaFunction as M, type NavigateOptions as N, type RouterFetchOptions as O, type ParamParseKey as P, type DataStrategyFunctionArgs as Q, type RouteModules as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type DataStrategyMatch as V, type DataStrategyResult as W, DataWithResponseInit as X, type ErrorResponse as Y, type FormEncType as Z, type FormMethod as _, type Router as a, type LazyRouteFunction as a0, type PathParam as a1, type RedirectFunction as a2, type ShouldRevalidateFunction as a3, type ShouldRevalidateFunctionArgs as a4, createPath as a5, parsePath as a6, IDLE_NAVIGATION as a7, IDLE_FETCHER as a8, IDLE_BLOCKER as a9, createBrowserHistory as aA, invariant as aB, createRouter as aC, ErrorResponseImpl as aD, DataRouterContext as aE, DataRouterStateContext as aF, FetchersContext as aG, LocationContext as aH, NavigationContext as aI, RouteContext as aJ, ViewTransitionContext as aK, type RouteModule as aL, type History as aM, type ServerDataFrom as aN, type ClientDataFrom as aO, type Func as aP, type Pretty as aQ, data as aa, generatePath as ab, isRouteErrorResponse as ac, matchPath as ad, matchRoutes as ae, redirect as af, redirectDocument as ag, replace as ah, resolvePath as ai, type DataRouteMatch as aj, type DataRouteObject as ak, type Navigator as al, type PatchRoutesOnNavigationFunction as am, type PatchRoutesOnNavigationFunctionArgs as an, type RouteMatch as ao, type ClientActionFunction as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunction as ar, type ClientLoaderFunctionArgs as as, type HeadersArgs as at, type HeadersFunction as au, type MetaArgs as av, type MetaDescriptor as aw, type PageLinkDescriptor as ax, type HtmlLinkDescriptor as ay, type LinkDescriptor as az, type RouteManifest as b, type RelativeRoutingType as c, type Location as d, Action as e, type Path as f, type PathPattern as g, type PathMatch as h, type Params as i, type RouteObject as j, type Navigation as k, type RevalidationState as l, type SerializeFrom as m, type Blocker as n, type StaticHandlerContext as o, type StaticHandler as p, type IndexRouteObject as q, type LoaderFunction as r, type ActionFunction as s, type LinksFunction as t, type NonIndexRouteObject as u, type RouterState as v, type GetScrollRestorationKeyFunction as w, type Fetcher as x, type NavigationStates as y, type RouterInit as z };
|