react-router 0.0.0-experimental-1d760f6a6 → 0.0.0-experimental-b2bc694a6
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 +7 -0
- package/dist/development/{chunk-QBMD7MNB.mjs → chunk-YFJEQYI5.mjs} +63 -34
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +1 -2
- package/dist/development/dom-export.js +34 -6095
- package/dist/development/dom-export.mjs +6 -3
- package/dist/{production/fog-of-war-BLArG-qZ.d.ts → development/fog-of-war-B1MWugqW.d.mts} +59 -4
- package/dist/development/index.d.mts +7 -58
- package/dist/development/index.d.ts +1877 -188
- package/dist/development/index.js +63 -34
- package/dist/development/index.mjs +2 -2
- package/dist/development/lib/types/route-module.d.mts +1 -2
- package/dist/development/lib/types/route-module.d.ts +1 -2
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/{production/route-data-C12CLHiN.d.mts → development/route-data-BvrN3Sw4.d.mts} +11 -1
- package/dist/development/{route-data-C12CLHiN.d.mts → route-data-fNWkI-4T.d.ts} +11 -1
- package/dist/production/{chunk-DSJGM2GU.mjs → chunk-257QFYRX.mjs} +63 -34
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +1 -2
- package/dist/production/dom-export.js +34 -6095
- package/dist/production/dom-export.mjs +6 -3
- package/dist/{development/fog-of-war-BLArG-qZ.d.ts → production/fog-of-war-B1MWugqW.d.mts} +59 -4
- package/dist/production/index.d.mts +7 -58
- package/dist/production/index.d.ts +1877 -188
- package/dist/production/index.js +63 -34
- package/dist/production/index.mjs +2 -2
- package/dist/production/lib/types/route-module.d.mts +1 -2
- package/dist/production/lib/types/route-module.d.ts +1 -2
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/{development/route-data-C12CLHiN.d.ts → production/route-data-BvrN3Sw4.d.mts} +11 -1
- package/dist/production/{route-data-C12CLHiN.d.ts → route-data-fNWkI-4T.d.ts} +11 -1
- package/package.json +1 -1
- package/dist/development/data-CQbyyGzl.d.mts +0 -11
- package/dist/development/data-CQbyyGzl.d.ts +0 -11
- package/dist/development/fog-of-war-D2zsXvum.d.mts +0 -1691
- package/dist/production/data-CQbyyGzl.d.mts +0 -11
- package/dist/production/data-CQbyyGzl.d.ts +0 -11
- package/dist/production/fog-of-war-D2zsXvum.d.mts +0 -1691
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-b2bc694a6
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
invariant,
|
|
26
26
|
mapRouteProperties,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-257QFYRX.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -145,6 +145,7 @@ function createHydratedRouter({
|
|
|
145
145
|
ssrInfo.manifest,
|
|
146
146
|
ssrInfo.routeModules,
|
|
147
147
|
ssrInfo.context.ssr,
|
|
148
|
+
ssrInfo.context.routeDiscovery,
|
|
148
149
|
ssrInfo.context.isSpaMode,
|
|
149
150
|
ssrInfo.context.basename
|
|
150
151
|
)
|
|
@@ -195,6 +196,7 @@ function HydratedRouter(props) {
|
|
|
195
196
|
ssrInfo.manifest,
|
|
196
197
|
ssrInfo.routeModules,
|
|
197
198
|
ssrInfo.context.ssr,
|
|
199
|
+
ssrInfo.context.routeDiscovery,
|
|
198
200
|
ssrInfo.context.isSpaMode
|
|
199
201
|
);
|
|
200
202
|
return (
|
|
@@ -209,7 +211,8 @@ function HydratedRouter(props) {
|
|
|
209
211
|
future: ssrInfo.context.future,
|
|
210
212
|
criticalCss,
|
|
211
213
|
ssr: ssrInfo.context.ssr,
|
|
212
|
-
isSpaMode: ssrInfo.context.isSpaMode
|
|
214
|
+
isSpaMode: ssrInfo.context.isSpaMode,
|
|
215
|
+
routeDiscovery: ssrInfo.context.routeDiscovery
|
|
213
216
|
}
|
|
214
217
|
},
|
|
215
218
|
/* @__PURE__ */ React2.createElement(RemixErrorBoundary, { location }, /* @__PURE__ */ React2.createElement(RouterProvider2, { router }))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { h as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, as as PatchRoutesOnNavigationFunction, a as Router$1, T as To, c as RelativeRoutingType, r as NonIndexRouteObject, a2 as LazyRouteFunction, n as IndexRouteObject, L as Location, A as Action, ar as Navigator, au as RouteMatch, aS as RouteManifest, aT as ServerRouteModule, s as MiddlewareEnabled, ab as unstable_RouterContextProvider, t as AppLoadContext, a3 as LoaderFunctionArgs, V as ActionFunctionArgs, l as StaticHandlerContext, b as RouteModules, w as DataRouteObject, x as ClientLoaderFunction, a1 as HTMLFormMethod, $ as FormEncType, aC as PageLinkDescriptor, aU as History, y as GetScrollRestorationKeyFunction, N as NavigateOptions, z as Fetcher, S as SerializeFrom, B as BlockerFunction } from './route-data-BvrN3Sw4.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -412,6 +412,60 @@ declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
|
412
412
|
*/
|
|
413
413
|
declare function renderMatches(matches: RouteMatch[] | null): React.ReactElement | null;
|
|
414
414
|
|
|
415
|
+
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
416
|
+
interface ServerRoute extends Route {
|
|
417
|
+
children: ServerRoute[];
|
|
418
|
+
module: ServerRouteModule;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
type OptionalCriticalCss = CriticalCss | undefined;
|
|
422
|
+
/**
|
|
423
|
+
* The output of the compiler for the server build.
|
|
424
|
+
*/
|
|
425
|
+
interface ServerBuild {
|
|
426
|
+
entry: {
|
|
427
|
+
module: ServerEntryModule;
|
|
428
|
+
};
|
|
429
|
+
routes: ServerRouteManifest;
|
|
430
|
+
assets: AssetsManifest;
|
|
431
|
+
basename?: string;
|
|
432
|
+
publicPath: string;
|
|
433
|
+
assetsBuildDirectory: string;
|
|
434
|
+
future: FutureConfig;
|
|
435
|
+
ssr: boolean;
|
|
436
|
+
unstable_getCriticalCss?: (args: {
|
|
437
|
+
pathname: string;
|
|
438
|
+
}) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
|
|
439
|
+
/**
|
|
440
|
+
* @deprecated This is now done via a custom header during prerendering
|
|
441
|
+
*/
|
|
442
|
+
isSpaMode: boolean;
|
|
443
|
+
prerender: string[];
|
|
444
|
+
routeDiscovery: {
|
|
445
|
+
mode: "lazy" | "initial";
|
|
446
|
+
manifestPath: string;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
interface HandleDocumentRequestFunction {
|
|
450
|
+
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
|
|
451
|
+
}
|
|
452
|
+
interface HandleDataRequestFunction {
|
|
453
|
+
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
454
|
+
}
|
|
455
|
+
interface HandleErrorFunction {
|
|
456
|
+
(error: unknown, args: LoaderFunctionArgs | ActionFunctionArgs): void;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* A module that serves as the entry point for a Remix app during server
|
|
460
|
+
* rendering.
|
|
461
|
+
*/
|
|
462
|
+
interface ServerEntryModule {
|
|
463
|
+
default: HandleDocumentRequestFunction;
|
|
464
|
+
handleDataRequest?: HandleDataRequestFunction;
|
|
465
|
+
handleError?: HandleErrorFunction;
|
|
466
|
+
streamTimeout?: number;
|
|
467
|
+
}
|
|
468
|
+
|
|
415
469
|
type SerializedError = {
|
|
416
470
|
message: string;
|
|
417
471
|
stack?: string;
|
|
@@ -424,6 +478,7 @@ interface FrameworkContextObject {
|
|
|
424
478
|
future: FutureConfig;
|
|
425
479
|
ssr: boolean;
|
|
426
480
|
isSpaMode: boolean;
|
|
481
|
+
routeDiscovery: ServerBuild["routeDiscovery"];
|
|
427
482
|
serializeError?(error: Error): SerializedError;
|
|
428
483
|
renderMeta?: {
|
|
429
484
|
didRenderScripts?: boolean;
|
|
@@ -1685,7 +1740,7 @@ declare global {
|
|
|
1685
1740
|
};
|
|
1686
1741
|
}
|
|
1687
1742
|
}
|
|
1688
|
-
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1689
|
-
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean): void;
|
|
1743
|
+
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1744
|
+
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
|
|
1690
1745
|
|
|
1691
|
-
export {
|
|
1746
|
+
export { useSubmit as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherSubmitFunction as C, type DOMRouterOpts as D, type EntryContext as E, type FutureConfig as F, type FetcherWithComponents as G, type HashRouterProps as H, type IndexRouteProps as I, createBrowserRouter as J, createHashRouter as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, BrowserRouter as Q, type RouterProviderProps as R, type ServerBuild as S, HashRouter as T, Link as U, HistoryRouter as V, NavLink as W, Form as X, ScrollRestoration as Y, useLinkClickHandler as Z, useSearchParams as _, type AwaitProps as a, useFormAction as a0, useFetcher as a1, useFetchers as a2, useBeforeUnload as a3, usePrompt as a4, useViewTransitionState as a5, type FetcherSubmitOptions as a6, type ParamKeyValuePair as a7, type SubmitOptions as a8, type URLSearchParamsInit as a9, type SubmitTarget as aa, createSearchParams as ab, Meta as ac, Links as ad, Scripts as ae, PrefetchPageLinks as af, type ScriptsProps as ag, type HandleDataRequestFunction as ah, type HandleDocumentRequestFunction as ai, type HandleErrorFunction as aj, type ServerEntryModule as ak, hydrationRouteProperties as al, mapRouteProperties as am, FrameworkContext as an, getPatchRoutesOnNavigationFunction as ao, useFogOFWarDiscovery as ap, createClientRoutes as aq, createClientRoutesWithHMRRevalidationOptOut as ar, shouldHydrateRouteLoader as as, useScrollRestoration as at, type MemoryRouterProps as b, type RouteProps as c, type RouterProps as d, type RoutesProps as e, Await as f, MemoryRouter as g, Navigate as h, Outlet as i, Route$1 as j, Router as k, RouterProvider as l, Routes as m, createMemoryRouter as n, createRoutesFromChildren as o, createRoutesFromElements as p, type HistoryRouterProps as q, renderMatches as r, type LinkProps as s, type NavLinkProps as t, type NavLinkRenderProps as u, type FetcherFormProps as v, type FormProps as w, type ScrollRestorationProps as x, type SetURLSearchParams as y, type SubmitFunction as z };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { a as Router, b as RouteModules, D as DataStrategyFunction,
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest,
|
|
4
|
-
export {
|
|
1
|
+
import { a as Router, b as RouteModules, D as DataStrategyFunction, T as To, c as RelativeRoutingType, L as Location, A as Action, P as ParamParseKey, d as Path, e as PathPattern, f as PathMatch, N as NavigateOptions, g as Params$1, h as RouteObject, i as Navigation, j as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, k as Blocker, l as StaticHandlerContext, m as StaticHandler, F as FutureConfig, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as unstable_InitialContext, n as IndexRouteObject, o as LoaderFunction, p as ActionFunction, M as MetaFunction, q as LinksFunction, r as NonIndexRouteObject, s as MiddlewareEnabled, t as AppLoadContext, E as Equal, v as RouterState, w as DataRouteObject, x as ClientLoaderFunction } from './route-data-BvrN3Sw4.mjs';
|
|
2
|
+
export { V as ActionFunctionArgs, av as ClientActionFunction, aw as ClientActionFunctionArgs, ax as ClientLoaderFunctionArgs, aq as DataRouteMatch, W as DataStrategyFunctionArgs, X as DataStrategyMatch, Y as DataStrategyResult, _ as ErrorResponse, z as Fetcher, $ as FormEncType, a0 as FormMethod, aF as Future, G as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, a1 as HTMLFormMethod, ay as HeadersArgs, az as HeadersFunction, aD as HtmlLinkDescriptor, ag as IDLE_BLOCKER, af as IDLE_FETCHER, ae as IDLE_NAVIGATION, a2 as LazyRouteFunction, aE as LinkDescriptor, a3 as LoaderFunctionArgs, aA as MetaArgs, aB as MetaDescriptor, J as NavigationStates, ar as Navigator, aC as PageLinkDescriptor, as as PatchRoutesOnNavigationFunction, at as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, a6 as RedirectFunction, au as RouteMatch, Q as RouterFetchOptions, R as RouterInit, O as RouterNavigateOptions, K as RouterSubscriber, a8 as ShouldRevalidateFunction, a9 as ShouldRevalidateFunctionArgs, aL as UNSAFE_DataRouterContext, aM as UNSAFE_DataRouterStateContext, Z as UNSAFE_DataWithResponseInit, aK as UNSAFE_ErrorResponseImpl, aN as UNSAFE_FetchersContext, aO as UNSAFE_LocationContext, aP as UNSAFE_NavigationContext, aQ as UNSAFE_RouteContext, aR as UNSAFE_ViewTransitionContext, aH as UNSAFE_createBrowserHistory, aJ as UNSAFE_createRouter, aI as UNSAFE_invariant, ac as createPath, ah as data, ai as generatePath, aj as isRouteErrorResponse, ak as matchPath, al as matchRoutes, ad as parsePath, am as redirect, an as redirectDocument, ao as replace, ap as resolvePath, a4 as unstable_MiddlewareFunction, a7 as unstable_RouterContext, ab as unstable_RouterContextProvider, aG as unstable_SerializesTo, aa as unstable_createContext } from './route-data-BvrN3Sw4.mjs';
|
|
3
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig$1, S as ServerBuild } from './fog-of-war-B1MWugqW.mjs';
|
|
4
|
+
export { f as Await, a as AwaitProps, Q as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, v as FetcherFormProps, C as FetcherSubmitFunction, a6 as FetcherSubmitOptions, G as FetcherWithComponents, X as Form, w as FormProps, ah as HandleDataRequestFunction, ai as HandleDocumentRequestFunction, aj as HandleErrorFunction, T as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, U as Link, s as LinkProps, ad as Links, g as MemoryRouter, M as MemoryRouterOpts, b as MemoryRouterProps, ac as Meta, W as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a7 as ParamKeyValuePair, P as PathRouteProps, af as PrefetchPageLinks, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, ae as Scripts, ag as ScriptsProps, Y as ScrollRestoration, x as ScrollRestorationProps, ak as ServerEntryModule, y as SetURLSearchParams, z as SubmitFunction, a8 as SubmitOptions, aa as SubmitTarget, an as UNSAFE_FrameworkContext, aq as UNSAFE_createClientRoutes, ar as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ao as UNSAFE_getPatchRoutesOnNavigationFunction, al as UNSAFE_hydrationRouteProperties, am as UNSAFE_mapRouteProperties, as as UNSAFE_shouldHydrateRouteLoader, ap as UNSAFE_useFogOFWarDiscovery, at as UNSAFE_useScrollRestoration, a9 as URLSearchParamsInit, J as createBrowserRouter, K as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, ab as createSearchParams, r as renderMatches, V as unstable_HistoryRouter, a4 as unstable_usePrompt, a3 as useBeforeUnload, a1 as useFetcher, a2 as useFetchers, a0 as useFormAction, Z as useLinkClickHandler, _ as useSearchParams, $ as useSubmit, a5 as useViewTransitionState } from './fog-of-war-B1MWugqW.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
8
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
|
-
import { A as AppLoadContext } from './data-CQbyyGzl.mjs';
|
|
10
9
|
|
|
11
10
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
12
11
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
|
|
@@ -24,56 +23,6 @@ declare enum ServerMode {
|
|
|
24
23
|
Test = "test"
|
|
25
24
|
}
|
|
26
25
|
|
|
27
|
-
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
28
|
-
interface ServerRoute extends Route {
|
|
29
|
-
children: ServerRoute[];
|
|
30
|
-
module: ServerRouteModule;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
type OptionalCriticalCss = CriticalCss | undefined;
|
|
34
|
-
/**
|
|
35
|
-
* The output of the compiler for the server build.
|
|
36
|
-
*/
|
|
37
|
-
interface ServerBuild {
|
|
38
|
-
entry: {
|
|
39
|
-
module: ServerEntryModule;
|
|
40
|
-
};
|
|
41
|
-
routes: ServerRouteManifest;
|
|
42
|
-
assets: AssetsManifest;
|
|
43
|
-
basename?: string;
|
|
44
|
-
publicPath: string;
|
|
45
|
-
assetsBuildDirectory: string;
|
|
46
|
-
future: FutureConfig;
|
|
47
|
-
ssr: boolean;
|
|
48
|
-
unstable_getCriticalCss?: (args: {
|
|
49
|
-
pathname: string;
|
|
50
|
-
}) => OptionalCriticalCss | Promise<OptionalCriticalCss>;
|
|
51
|
-
/**
|
|
52
|
-
* @deprecated This is now done via a custom header during prerendering
|
|
53
|
-
*/
|
|
54
|
-
isSpaMode: boolean;
|
|
55
|
-
prerender: string[];
|
|
56
|
-
}
|
|
57
|
-
interface HandleDocumentRequestFunction {
|
|
58
|
-
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: MiddlewareEnabled extends true ? unstable_RouterContextProvider : AppLoadContext): Promise<Response> | Response;
|
|
59
|
-
}
|
|
60
|
-
interface HandleDataRequestFunction {
|
|
61
|
-
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
62
|
-
}
|
|
63
|
-
interface HandleErrorFunction {
|
|
64
|
-
(error: unknown, args: LoaderFunctionArgs | ActionFunctionArgs): void;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* A module that serves as the entry point for a Remix app during server
|
|
68
|
-
* rendering.
|
|
69
|
-
*/
|
|
70
|
-
interface ServerEntryModule {
|
|
71
|
-
default: HandleDocumentRequestFunction;
|
|
72
|
-
handleDataRequest?: HandleDataRequestFunction;
|
|
73
|
-
handleError?: HandleErrorFunction;
|
|
74
|
-
streamTimeout?: number;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
26
|
/**
|
|
78
27
|
Resolves a URL against the current location.
|
|
79
28
|
|
|
@@ -475,7 +424,7 @@ declare function createStaticHandler(routes: RouteObject[], opts?: CreateStaticH
|
|
|
475
424
|
* @category Data Routers
|
|
476
425
|
*/
|
|
477
426
|
declare function createStaticRouter(routes: RouteObject[], context: StaticHandlerContext, opts?: {
|
|
478
|
-
future?: Partial<FutureConfig
|
|
427
|
+
future?: Partial<FutureConfig>;
|
|
479
428
|
}): Router;
|
|
480
429
|
|
|
481
430
|
interface ServerRouterProps {
|
|
@@ -534,7 +483,7 @@ interface RoutesTestStubProps {
|
|
|
534
483
|
/**
|
|
535
484
|
* Future flags mimicking the settings in react-router.config.ts
|
|
536
485
|
*/
|
|
537
|
-
future?: Partial<FutureConfig>;
|
|
486
|
+
future?: Partial<FutureConfig$1>;
|
|
538
487
|
}
|
|
539
488
|
/**
|
|
540
489
|
* @category Utils
|
|
@@ -845,4 +794,4 @@ declare function getHydrationData(state: {
|
|
|
845
794
|
hasHydrateFallback: boolean;
|
|
846
795
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
847
796
|
|
|
848
|
-
export { ActionFunction,
|
|
797
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params$1 as Params, Path, PathMatch, PathPattern, type Register, RelativeRoutingType, type RequestHandler, RevalidationState, RouteObject, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, 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, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, unstable_InitialContext, 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 };
|