react-router 0.0.0-experimental-ec0227194 → 0.0.0-experimental-e613d4238
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{production/chunk-75QUA6OZ.mjs → development/chunk-2YVPYFDJ.mjs} +2 -2
- package/dist/development/{chunk-H52YY2UH.mjs → chunk-5P3HEZQU.mjs} +12 -2
- package/dist/{production/chunk-GW3ZZYBZ.js → development/chunk-XXC4LMW2.js} +134 -134
- package/dist/development/{chunk-MUO6KUBK.js → chunk-YJ6T7YSE.js} +24 -14
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +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.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.d.mts +9 -4
- package/dist/development/index.d.ts +9 -4
- package/dist/development/index.js +99 -97
- package/dist/development/index.mjs +5 -3
- package/dist/development/lib/types/internal.d.mts +1 -1
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
- package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
- package/dist/{development/chunk-R7747Z7E.mjs → production/chunk-5MHETEIL.mjs} +2 -2
- package/dist/{development/chunk-CZCLJNAQ.js → production/chunk-E4G6PZCJ.js} +134 -134
- package/dist/production/{chunk-4JJCJOCM.js → chunk-QBUHFRYZ.js} +24 -14
- package/dist/production/{chunk-W6VH7ASH.mjs → chunk-VNGQS422.mjs} +12 -2
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +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.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.d.mts +9 -4
- package/dist/production/index.d.ts +9 -4
- package/dist/production/index.js +99 -97
- package/dist/production/index.mjs +5 -3
- package/dist/production/lib/types/internal.d.mts +1 -1
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
- package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -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 v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -6730,6 +6730,15 @@ function warningOnce(key, cond, message) {
|
|
|
6730
6730
|
warning(false, message);
|
|
6731
6731
|
}
|
|
6732
6732
|
}
|
|
6733
|
+
function useRoute(routeId) {
|
|
6734
|
+
const state = useDataRouterState("useRouteLoaderData" /* UseRouteLoaderData */);
|
|
6735
|
+
const route = state.matches.find(({ route: route2 }) => route2.id === routeId);
|
|
6736
|
+
if (route === void 0) return void 0;
|
|
6737
|
+
return {
|
|
6738
|
+
loaderData: state.loaderData[routeId],
|
|
6739
|
+
actionData: _optionalChain([state, 'access', _79 => _79.actionData, 'optionalAccess', _80 => _80[routeId]])
|
|
6740
|
+
};
|
|
6741
|
+
}
|
|
6733
6742
|
|
|
6734
6743
|
// lib/dom/ssr/errorBoundaries.tsx
|
|
6735
6744
|
|
|
@@ -6772,7 +6781,7 @@ function getKeyedLinksForMatches(matches, routeModules, manifest) {
|
|
|
6772
6781
|
let route = manifest.routes[match.route.id];
|
|
6773
6782
|
return [
|
|
6774
6783
|
route && route.css ? route.css.map((href) => ({ rel: "stylesheet", href })) : [],
|
|
6775
|
-
_optionalChain([module, 'optionalAccess',
|
|
6784
|
+
_optionalChain([module, 'optionalAccess', _81 => _81.links, 'optionalCall', _82 => _82()]) || []
|
|
6776
6785
|
];
|
|
6777
6786
|
}).flat(2);
|
|
6778
6787
|
let preloads = getModuleLinkHrefs(matches, manifest);
|
|
@@ -6873,7 +6882,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
|
|
|
6873
6882
|
// param change, /users/123 -> /users/456
|
|
6874
6883
|
currentMatches[index].pathname !== match.pathname || // splat param changed, which is not present in match.path
|
|
6875
6884
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
6876
|
-
_optionalChain([currentMatches, 'access',
|
|
6885
|
+
_optionalChain([currentMatches, 'access', _83 => _83[index], 'access', _84 => _84.route, 'access', _85 => _85.path, 'optionalAccess', _86 => _86.endsWith, 'call', _87 => _87("*")]) && currentMatches[index].params["*"] !== match.params["*"]
|
|
6877
6886
|
);
|
|
6878
6887
|
};
|
|
6879
6888
|
if (mode === "assets") {
|
|
@@ -6896,7 +6905,7 @@ function getNewMatchesForLinks(page, nextMatches, currentMatches, manifest, loca
|
|
|
6896
6905
|
location.pathname + location.search + location.hash,
|
|
6897
6906
|
window.origin
|
|
6898
6907
|
),
|
|
6899
|
-
currentParams: _optionalChain([currentMatches, 'access',
|
|
6908
|
+
currentParams: _optionalChain([currentMatches, 'access', _88 => _88[0], 'optionalAccess', _89 => _89.params]) || {},
|
|
6900
6909
|
nextUrl: new URL(page, window.origin),
|
|
6901
6910
|
nextParams: match.params,
|
|
6902
6911
|
defaultShouldRevalidate: true
|
|
@@ -7168,10 +7177,10 @@ function createClientRoutes(manifest, routeModulesCache, initialState, ssr, isSp
|
|
|
7168
7177
|
)
|
|
7169
7178
|
});
|
|
7170
7179
|
let hasInitialData = initialState && initialState.loaderData && route.id in initialState.loaderData;
|
|
7171
|
-
let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess',
|
|
7180
|
+
let initialData = hasInitialData ? _optionalChain([initialState, 'optionalAccess', _90 => _90.loaderData, 'optionalAccess', _91 => _91[route.id]]) : void 0;
|
|
7172
7181
|
let hasInitialError = initialState && initialState.errors && route.id in initialState.errors;
|
|
7173
|
-
let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess',
|
|
7174
|
-
let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access',
|
|
7182
|
+
let initialError = hasInitialError ? _optionalChain([initialState, 'optionalAccess', _92 => _92.errors, 'optionalAccess', _93 => _93[route.id]]) : void 0;
|
|
7183
|
+
let isHydrationRequest = needsRevalidation == null && (_optionalChain([routeModule, 'access', _94 => _94.clientLoader, 'optionalAccess', _95 => _95.hydrate]) === true || !route.hasLoader);
|
|
7175
7184
|
dataRoute.loader = async ({ request, params, context }, singleFetch) => {
|
|
7176
7185
|
try {
|
|
7177
7186
|
let result = await prefetchStylesAndCallHandler(async () => {
|
|
@@ -7465,7 +7474,7 @@ function getPatchRoutesOnNavigationFunction(manifest, routeModules, ssr, routeDi
|
|
|
7465
7474
|
function useFogOFWarDiscovery(router, manifest, routeModules, ssr, routeDiscovery, isSpaMode) {
|
|
7466
7475
|
React6.useEffect(() => {
|
|
7467
7476
|
if (!isFogOfWarEnabled(routeDiscovery, ssr) || // @ts-expect-error - TS doesn't know about this yet
|
|
7468
|
-
_optionalChain([window, 'access',
|
|
7477
|
+
_optionalChain([window, 'access', _96 => _96.navigator, 'optionalAccess', _97 => _97.connection, 'optionalAccess', _98 => _98.saveData]) === true) {
|
|
7469
7478
|
return;
|
|
7470
7479
|
}
|
|
7471
7480
|
function registerElement(el) {
|
|
@@ -7574,7 +7583,7 @@ async function fetchAndApplyManifestPatches(paths, errorReloadPath, manifest, ro
|
|
|
7574
7583
|
}
|
|
7575
7584
|
serverPatches = await res.json();
|
|
7576
7585
|
} catch (e) {
|
|
7577
|
-
if (_optionalChain([signal, 'optionalAccess',
|
|
7586
|
+
if (_optionalChain([signal, 'optionalAccess', _99 => _99.aborted])) return;
|
|
7578
7587
|
throw e;
|
|
7579
7588
|
}
|
|
7580
7589
|
let knownRoutes = new Set(Object.keys(manifest.routes));
|
|
@@ -7815,7 +7824,7 @@ function PrefetchPageLinksImpl({
|
|
|
7815
7824
|
if (!manifestRoute || !manifestRoute.hasLoader) {
|
|
7816
7825
|
return;
|
|
7817
7826
|
}
|
|
7818
|
-
if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access',
|
|
7827
|
+
if (!newMatchesForData.some((m2) => m2.route.id === m.route.id) && m.route.id in loaderData && _optionalChain([routeModules, 'access', _100 => _100[m.route.id], 'optionalAccess', _101 => _101.shouldRevalidate])) {
|
|
7819
7828
|
foundOptOutRoute = true;
|
|
7820
7829
|
} else if (manifestRoute.hasClientLoader) {
|
|
7821
7830
|
foundOptOutRoute = true;
|
|
@@ -7889,7 +7898,7 @@ function Meta() {
|
|
|
7889
7898
|
error
|
|
7890
7899
|
};
|
|
7891
7900
|
matches[i] = match;
|
|
7892
|
-
if (_optionalChain([routeModule, 'optionalAccess',
|
|
7901
|
+
if (_optionalChain([routeModule, 'optionalAccess', _102 => _102.meta])) {
|
|
7893
7902
|
routeMeta = typeof routeModule.meta === "function" ? routeModule.meta({
|
|
7894
7903
|
data: data2,
|
|
7895
7904
|
loaderData: data2,
|
|
@@ -7988,7 +7997,7 @@ function Scripts(scriptProps) {
|
|
|
7988
7997
|
}
|
|
7989
7998
|
let streamScript = "window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());";
|
|
7990
7999
|
let contextScript = staticContext ? `window.__reactRouterContext = ${serverHandoffString};${streamScript}` : " ";
|
|
7991
|
-
let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access',
|
|
8000
|
+
let routeModulesScript = !isStatic ? " " : `${_optionalChain([manifest, 'access', _103 => _103.hmr, 'optionalAccess', _104 => _104.runtime]) ? `import ${JSON.stringify(manifest.hmr.runtime)};` : ""}${!enableFogOfWar ? `import ${JSON.stringify(manifest.url)}` : ""};
|
|
7992
8001
|
${matches.map((match, routeIndex) => {
|
|
7993
8002
|
let routeVarName = `route${routeIndex}`;
|
|
7994
8003
|
let manifestEntry = manifest.routes[match.route.id];
|
|
@@ -8218,7 +8227,7 @@ function BoundaryShell({
|
|
|
8218
8227
|
children
|
|
8219
8228
|
}) {
|
|
8220
8229
|
let { routeModules } = useFrameworkContext();
|
|
8221
|
-
if (_optionalChain([routeModules, 'access',
|
|
8230
|
+
if (_optionalChain([routeModules, 'access', _105 => _105.root, 'optionalAccess', _106 => _106.Layout]) && !isOutsideRemixApp) {
|
|
8222
8231
|
return children;
|
|
8223
8232
|
}
|
|
8224
8233
|
return /* @__PURE__ */ React8.createElement("html", { lang: "en" }, /* @__PURE__ */ React8.createElement("head", null, /* @__PURE__ */ React8.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ React8.createElement(
|
|
@@ -8333,4 +8342,5 @@ function BoundaryShell({
|
|
|
8333
8342
|
|
|
8334
8343
|
|
|
8335
8344
|
|
|
8336
|
-
|
|
8345
|
+
|
|
8346
|
+
exports.Action = Action; exports.createMemoryHistory = createMemoryHistory; exports.createBrowserHistory = createBrowserHistory; exports.createHashHistory = createHashHistory; exports.invariant = invariant; exports.warning = warning; exports.createPath = createPath; exports.parsePath = parsePath; exports.createContext = createContext; exports.RouterContextProvider = RouterContextProvider; exports.convertRoutesToDataRoutes = convertRoutesToDataRoutes; exports.matchRoutes = matchRoutes; exports.generatePath = generatePath; exports.matchPath = matchPath; exports.stripBasename = stripBasename; exports.resolvePath = resolvePath; exports.getResolveToMatches = getResolveToMatches; exports.resolveTo = resolveTo; exports.joinPaths = joinPaths; exports.data = data; exports.redirect = redirect; exports.redirectDocument = redirectDocument; exports.replace = replace; exports.ErrorResponseImpl = ErrorResponseImpl; exports.isRouteErrorResponse = isRouteErrorResponse; exports.escapeHtml = escapeHtml; exports.encode = encode; exports.IDLE_NAVIGATION = IDLE_NAVIGATION; exports.IDLE_FETCHER = IDLE_FETCHER; exports.IDLE_BLOCKER = IDLE_BLOCKER; exports.createRouter = createRouter; exports.createStaticHandler = createStaticHandler; exports.getStaticContextFromError = getStaticContextFromError; exports.isDataWithResponseInit = isDataWithResponseInit; exports.isResponse = isResponse; exports.isRedirectStatusCode = isRedirectStatusCode; exports.isRedirectResponse = isRedirectResponse; exports.isMutationMethod = isMutationMethod; exports.createRequestInit = createRequestInit; exports.SingleFetchRedirectSymbol = SingleFetchRedirectSymbol; exports.SINGLE_FETCH_REDIRECT_STATUS = SINGLE_FETCH_REDIRECT_STATUS; exports.NO_BODY_STATUS_CODES = NO_BODY_STATUS_CODES; exports.StreamTransfer = StreamTransfer; exports.getTurboStreamSingleFetchDataStrategy = getTurboStreamSingleFetchDataStrategy; exports.getSingleFetchDataStrategyImpl = getSingleFetchDataStrategyImpl; exports.stripIndexParam = stripIndexParam; exports.singleFetchUrl = singleFetchUrl; exports.decodeViaTurboStream = decodeViaTurboStream; exports.DataRouterContext = DataRouterContext; exports.DataRouterStateContext = DataRouterStateContext; exports.RSCRouterContext = RSCRouterContext; exports.ViewTransitionContext = ViewTransitionContext; exports.FetchersContext = FetchersContext; exports.AwaitContext = AwaitContext; exports.AwaitContextProvider = AwaitContextProvider; exports.NavigationContext = NavigationContext; exports.LocationContext = LocationContext; exports.RouteContext = RouteContext; exports.ENABLE_DEV_WARNINGS = ENABLE_DEV_WARNINGS; exports.warnOnce = warnOnce; exports.useHref = useHref; exports.useInRouterContext = useInRouterContext; exports.useLocation = useLocation; exports.useNavigationType = useNavigationType; exports.useMatch = useMatch; exports.useNavigate = useNavigate; exports.useOutletContext = useOutletContext; exports.useOutlet = useOutlet; exports.useParams = useParams; exports.useResolvedPath = useResolvedPath; exports.useRoutes = useRoutes; exports.useRoutesImpl = useRoutesImpl; exports._renderMatches = _renderMatches; exports.useRouteId = useRouteId; exports.useNavigation = useNavigation; exports.useRevalidator = useRevalidator; exports.useMatches = useMatches; exports.useLoaderData = useLoaderData; exports.useRouteLoaderData = useRouteLoaderData; exports.useActionData = useActionData; exports.useRouteError = useRouteError; exports.useAsyncValue = useAsyncValue; exports.useAsyncError = useAsyncError; exports.useBlocker = useBlocker; exports.useRoute = useRoute; exports.RemixErrorBoundary = RemixErrorBoundary; exports.createServerRoutes = createServerRoutes; exports.createClientRoutesWithHMRRevalidationOptOut = createClientRoutesWithHMRRevalidationOptOut; exports.noActionDefinedError = noActionDefinedError; exports.createClientRoutes = createClientRoutes; exports.shouldHydrateRouteLoader = shouldHydrateRouteLoader; exports.getPatchRoutesOnNavigationFunction = getPatchRoutesOnNavigationFunction; exports.useFogOFWarDiscovery = useFogOFWarDiscovery; exports.getManifestPath = getManifestPath; exports.FrameworkContext = FrameworkContext; exports.usePrefetchBehavior = usePrefetchBehavior; exports.CRITICAL_CSS_DATA_ATTRIBUTE = CRITICAL_CSS_DATA_ATTRIBUTE; exports.Links = Links; exports.PrefetchPageLinks = PrefetchPageLinks; exports.Meta = Meta; exports.setIsHydrated = setIsHydrated; exports.Scripts = Scripts; exports.mergeRefs = mergeRefs;
|
|
@@ -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 _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"use client";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkYJ6T7YSEjs = require('./chunk-YJ6T7YSE.js');
|
|
15
15
|
|
|
16
16
|
// lib/dom-export/dom-router-provider.tsx
|
|
17
17
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
|
|
|
180
180
|
}, []);
|
|
181
181
|
React2.useEffect(() => {
|
|
182
182
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
183
|
-
document.querySelectorAll(`[${
|
|
183
|
+
document.querySelectorAll(`[${_chunkYJ6T7YSEjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
184
184
|
}
|
|
185
185
|
}, [criticalCss]);
|
|
186
186
|
let [location, setLocation] = React2.useState(router.state.location);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2YVPYFDJ.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
18
18
|
FrameworkContext,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
invariant,
|
|
30
30
|
mapRouteProperties,
|
|
31
31
|
useFogOFWarDiscovery
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-5P3HEZQU.mjs";
|
|
33
33
|
|
|
34
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
35
35
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkXXC4LMW2js = require('./chunk-XXC4LMW2.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkYJ6T7YSEjs = require('./chunk-YJ6T7YSE.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkMUO6KUBKjs = require('./chunk-MUO6KUBK.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkXXC4LMW2js.BrowserRouter; exports.Form = _chunkXXC4LMW2js.Form; exports.HashRouter = _chunkXXC4LMW2js.HashRouter; exports.Link = _chunkXXC4LMW2js.Link; exports.Links = _chunkYJ6T7YSEjs.Links; exports.MemoryRouter = _chunkXXC4LMW2js.MemoryRouter; exports.Meta = _chunkYJ6T7YSEjs.Meta; exports.NavLink = _chunkXXC4LMW2js.NavLink; exports.Navigate = _chunkXXC4LMW2js.Navigate; exports.Outlet = _chunkXXC4LMW2js.Outlet; exports.Route = _chunkXXC4LMW2js.Route; exports.Router = _chunkXXC4LMW2js.Router; exports.RouterProvider = _chunkXXC4LMW2js.RouterProvider; exports.Routes = _chunkXXC4LMW2js.Routes; exports.ScrollRestoration = _chunkXXC4LMW2js.ScrollRestoration; exports.StaticRouter = _chunkXXC4LMW2js.StaticRouter; exports.StaticRouterProvider = _chunkXXC4LMW2js.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkYJ6T7YSEjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkXXC4LMW2js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkXXC4LMW2js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkXXC4LMW2js.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkXXC4LMW2js.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
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-5P3HEZQU.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -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 v0.0.0-experimental-
|
|
9
|
+
* react-router v0.0.0-experimental-e613d4238
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -2,14 +2,14 @@ import { j as Router, k as DataStrategyFunction, T as To, N as NavigateOptions,
|
|
|
2
2
|
export { A as ActionFunctionArgs, aD as Await, as as AwaitProps, e as DataRouteMatch, _ as DataStrategyFunctionArgs, $ as DataStrategyMatch, D as DataStrategyResult, a0 as ErrorResponse, Q as Fetcher, a1 as FormEncType, a2 as FormMethod, aP as Future, J as GetScrollPositionFunction, K as GetScrollRestorationKeyFunction, a3 as HTMLFormMethod, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, at as IndexRouteProps, au as LayoutRouteProps, a4 as LazyRouteFunction, b as LoaderFunctionArgs, aE as MemoryRouter, av as MemoryRouterOpts, aw as MemoryRouterProps, f as MiddlewareFunction, aF as Navigate, ax as NavigateProps, V as NavigationStates, ao as Navigator, aG as Outlet, ay as OutletProps, ap as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, az as PathRouteProps, a6 as RedirectFunction, Z as RevalidationState, aH as Route, aq as RouteMatch, aA as RouteProps, aI as Router, a7 as RouterContext, Y as RouterFetchOptions, X as RouterNavigateOptions, aB as RouterProps, aJ as RouterProvider, R as RouterProviderProps, W as RouterSubscriber, aK as Routes, aC as RoutesProps, a8 as ShouldRevalidateFunctionArgs, G as StaticHandler, O as StaticHandlerContext, ar as UNSAFE_AwaitContextProvider, aU as UNSAFE_DataRouterContext, aV as UNSAFE_DataRouterStateContext, h as UNSAFE_DataWithResponseInit, aT as UNSAFE_ErrorResponseImpl, aW as UNSAFE_FetchersContext, aX as UNSAFE_LocationContext, aY as UNSAFE_NavigationContext, aZ as UNSAFE_RouteContext, a_ as UNSAFE_ViewTransitionContext, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps, aQ as UNSAFE_createBrowserHistory, aS as UNSAFE_createRouter, a$ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_invariant, b0 as UNSAFE_mapRouteProperties, b2 as UNSAFE_withComponentProps, b6 as UNSAFE_withErrorBoundaryProps, b4 as UNSAFE_withHydrateFallbackProps, a9 as createContext, aL as createMemoryRouter, aa as createPath, aM as createRoutesFromChildren, aN as createRoutesFromElements, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, aO as renderMatches, am as replace, an as resolvePath, u as unstable_ClientOnErrorFunction } from './context-BqL5Eckq.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { c as RouteModules, d as SerializeFrom, e as MetaFunction, f as LinksFunction, A as AppLoadContext, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './route-data-CDwqkzPE.mjs';
|
|
5
|
+
import { c as RouteModules, d as SerializeFrom, G as GetLoaderData, b as GetActionData, e as MetaFunction, f as LinksFunction, A as AppLoadContext, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './route-data-CDwqkzPE.mjs';
|
|
6
6
|
export { i as ClientActionFunctionArgs, j as ClientLoaderFunctionArgs, k as HeadersArgs, n as HtmlLinkDescriptor, L as LinkDescriptor, l as MetaArgs, M as MetaDescriptor, m as PageLinkDescriptor, u as unstable_SerializesTo } from './route-data-CDwqkzPE.mjs';
|
|
7
|
+
import { a as RouteModules$1, P as Pages } from './register-BrVEYTED.mjs';
|
|
8
|
+
export { b as Register } from './register-BrVEYTED.mjs';
|
|
7
9
|
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-2EDmGlsZ.mjs';
|
|
8
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-2EDmGlsZ.mjs';
|
|
9
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
|
-
import { P as Pages } from './register-DiOIlEq5.mjs';
|
|
12
|
-
export { a as Register } from './register-DiOIlEq5.mjs';
|
|
13
13
|
export { g as unstable_getRSCStream } from './browser-z32v5KVN.mjs';
|
|
14
14
|
|
|
15
15
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
@@ -861,6 +861,11 @@ declare function useAsyncError(): unknown;
|
|
|
861
861
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
862
862
|
*/
|
|
863
863
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
864
|
+
type UseRoute<T extends keyof RouteModules$1> = {
|
|
865
|
+
loaderData: GetLoaderData<RouteModules$1[T]>;
|
|
866
|
+
actionData: GetActionData<RouteModules$1[T]>;
|
|
867
|
+
};
|
|
868
|
+
declare function useRoute<T extends keyof RouteModules$1>(routeId: T): UseRoute<T> | undefined;
|
|
864
869
|
|
|
865
870
|
/**
|
|
866
871
|
* @category Types
|
|
@@ -1678,4 +1683,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1678
1683
|
|
|
1679
1684
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1680
1685
|
|
|
1681
|
-
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|
|
1686
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRoute, useRouteError, useRouteLoaderData, useRoutes };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { e as Router, f as RouteModules, g as DataStrategyFunction, T as To, h as NavigateOptions, B as BlockerFunction, i as Blocker, j as SerializeFrom, k as RelativeRoutingType, a as Location, l as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, U as UIMatch, p as Navigation, A as Action, q as Params, r as RouteObject, I as InitialEntry, H as HydrationState, s as IndexRouteObject, t as RouteComponentType, u as HydrateFallbackType, E as ErrorBoundaryType, v as LoaderFunction, w as ActionFunction, x as MetaFunction, y as LinksFunction, z as NonIndexRouteObject, J as AppLoadContext, K as RouterContextProvider, O as MiddlewareEnabled, Q as Equal, V as ClientActionFunction, W as ClientLoaderFunction, X as HeadersFunction, Y as ShouldRevalidateFunction, Z as RouterInit, _ as RouterState, $ as PatchRoutesOnNavigationFunction, a0 as DataRouteObject } from './routeModules-BmVo7q9e.js';
|
|
1
|
+
import { e as Router, f as RouteModules, g as DataStrategyFunction, T as To, h as NavigateOptions, B as BlockerFunction, i as Blocker, j as SerializeFrom, k as RelativeRoutingType, a as Location, l as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, U as UIMatch, p as Navigation, A as Action, q as Params, r as RouteObject, G as GetLoaderData, d as GetActionData, I as InitialEntry, H as HydrationState, s as IndexRouteObject, t as RouteComponentType, u as HydrateFallbackType, E as ErrorBoundaryType, v as LoaderFunction, w as ActionFunction, x as MetaFunction, y as LinksFunction, z as NonIndexRouteObject, J as AppLoadContext, K as RouterContextProvider, O as MiddlewareEnabled, Q as Equal, V as ClientActionFunction, W as ClientLoaderFunction, X as HeadersFunction, Y as ShouldRevalidateFunction, Z as RouterInit, _ as RouterState, $ as PatchRoutesOnNavigationFunction, a0 as DataRouteObject } from './routeModules-BmVo7q9e.js';
|
|
2
2
|
export { ab as ActionFunctionArgs, aX as Await, aK as AwaitProps, b7 as ClientActionFunctionArgs, b8 as ClientLoaderFunctionArgs, aF as DataRouteMatch, ac as DataStrategyFunctionArgs, ad as DataStrategyMatch, D as DataStrategyResult, af as ErrorResponse, a5 as Fetcher, ag as FormEncType, ah as FormMethod, bd as Future, a2 as GetScrollPositionFunction, a3 as GetScrollRestorationKeyFunction, ai as HTMLFormMethod, b9 as HeadersArgs, bc as HtmlLinkDescriptor, av as IDLE_BLOCKER, au as IDLE_FETCHER, at as IDLE_NAVIGATION, aL as IndexRouteProps, aN as LayoutRouteProps, aj as LazyRouteFunction, L as LinkDescriptor, ak as LoaderFunctionArgs, aY as MemoryRouter, aO as MemoryRouterOpts, aP as MemoryRouterProps, ba as MetaArgs, M as MetaDescriptor, al as MiddlewareFunction, aZ as Navigate, aQ as NavigateProps, a6 as NavigationStates, aG as Navigator, a_ as Outlet, aR as OutletProps, bb as PageLinkDescriptor, aH as PatchRoutesOnNavigationFunctionArgs, am as PathParam, aS as PathRouteProps, an as RedirectFunction, aa as RevalidationState, a$ as Route, aI as RouteMatch, aT as RouteProps, b0 as Router, ao as RouterContext, a9 as RouterFetchOptions, a8 as RouterNavigateOptions, aU as RouterProps, b1 as RouterProvider, aV as RouterProviderProps, a7 as RouterSubscriber, b2 as Routes, aW as RoutesProps, ap as ShouldRevalidateFunctionArgs, a1 as StaticHandler, a4 as StaticHandlerContext, aJ as UNSAFE_AwaitContextProvider, bj as UNSAFE_DataRouterContext, bk as UNSAFE_DataRouterStateContext, ae as UNSAFE_DataWithResponseInit, bi as UNSAFE_ErrorResponseImpl, bl as UNSAFE_FetchersContext, bm as UNSAFE_LocationContext, bn as UNSAFE_NavigationContext, bo as UNSAFE_RouteContext, bp as UNSAFE_ViewTransitionContext, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps, bf as UNSAFE_createBrowserHistory, bh as UNSAFE_createRouter, bq as UNSAFE_hydrationRouteProperties, bg as UNSAFE_invariant, br as UNSAFE_mapRouteProperties, bt as UNSAFE_withComponentProps, bx as UNSAFE_withErrorBoundaryProps, bv as UNSAFE_withHydrateFallbackProps, aq as createContext, b3 as createMemoryRouter, ar as createPath, b4 as createRoutesFromChildren, b5 as createRoutesFromElements, aw as data, ax as generatePath, ay as isRouteErrorResponse, az as matchPath, aA as matchRoutes, as as parsePath, aB as redirect, aC as redirectDocument, b6 as renderMatches, aD as replace, aE as resolvePath, aM as unstable_ClientOnErrorFunction, be as unstable_SerializesTo } from './routeModules-BmVo7q9e.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactElement } from 'react';
|
|
5
|
+
import { a as RouteModules$1, P as Pages } from './register-D8NQoPsO.js';
|
|
6
|
+
export { b as Register } from './register-D8NQoPsO.js';
|
|
5
7
|
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-DKvU8YRr.js';
|
|
6
8
|
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-DKvU8YRr.js';
|
|
7
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
8
10
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
|
-
import { P as Pages } from './register-DiOIlEq5.js';
|
|
10
|
-
export { a as Register } from './register-DiOIlEq5.js';
|
|
11
11
|
|
|
12
12
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
13
13
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
|
|
@@ -858,6 +858,11 @@ declare function useAsyncError(): unknown;
|
|
|
858
858
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
859
859
|
*/
|
|
860
860
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
861
|
+
type UseRoute<T extends keyof RouteModules$1> = {
|
|
862
|
+
loaderData: GetLoaderData<RouteModules$1[T]>;
|
|
863
|
+
actionData: GetActionData<RouteModules$1[T]>;
|
|
864
|
+
};
|
|
865
|
+
declare function useRoute<T extends keyof RouteModules$1>(routeId: T): UseRoute<T> | undefined;
|
|
861
866
|
|
|
862
867
|
/**
|
|
863
868
|
* @category Types
|
|
@@ -1720,4 +1725,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1720
1725
|
|
|
1721
1726
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1722
1727
|
|
|
1723
|
-
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|
|
1728
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRoute, useRouteError, useRouteLoaderData, useRoutes };
|