react-router 7.8.2 → 7.9.0-pre.0
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 +22 -0
- package/dist/development/{chunk-5UALIXAM.mjs → chunk-3TJX7VNY.mjs} +93 -57
- package/dist/development/{chunk-CSDGKXLR.js → chunk-4J2JOVAI.js} +135 -135
- package/dist/development/{chunk-PVWAREVJ.mjs → chunk-EAIS2CTK.mjs} +43 -44
- package/dist/development/{chunk-ZO66TDGB.js → chunk-ECJT65VE.js} +37 -38
- package/dist/{production/context-jKip1TFB.d.mts → development/context-BH6Jwdoy.d.mts} +39 -32
- package/dist/development/dom-export.d.mts +3 -3
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +14 -14
- package/dist/development/dom-export.mjs +14 -14
- package/dist/development/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
- package/dist/{production/index-react-server-client-BKpa2trA.d.ts → development/index-react-server-client-CMC2eQAY.d.ts} +12 -12
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -2
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +4 -4
- package/dist/development/index-react-server.d.mts +229 -37
- package/dist/development/index-react-server.d.ts +229 -37
- package/dist/development/index-react-server.js +89 -39
- package/dist/development/index-react-server.mjs +88 -36
- package/dist/development/index.d.mts +31 -24
- package/dist/development/index.d.ts +29 -22
- package/dist/development/index.js +182 -144
- package/dist/development/index.mjs +9 -7
- package/dist/development/lib/types/internal.d.mts +6 -6
- package/dist/development/lib/types/internal.d.ts +5 -5
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
- package/dist/development/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
- package/dist/production/{chunk-REDRD2MB.mjs → chunk-47NS5WEV.mjs} +43 -44
- package/dist/production/{chunk-JNT5PWCQ.js → chunk-CSESPFUI.js} +135 -135
- package/dist/production/{chunk-Z56HUDN5.js → chunk-LQAK2UKE.js} +37 -38
- package/dist/production/{chunk-KWHRV2I7.mjs → chunk-SCSBSW2J.mjs} +93 -57
- package/dist/{development/context-jKip1TFB.d.mts → production/context-BH6Jwdoy.d.mts} +39 -32
- package/dist/production/dom-export.d.mts +3 -3
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +14 -14
- package/dist/production/dom-export.mjs +14 -14
- package/dist/production/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
- package/dist/{development/index-react-server-client-BKpa2trA.d.ts → production/index-react-server-client-CMC2eQAY.d.ts} +12 -12
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -2
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +4 -4
- package/dist/production/index-react-server.d.mts +229 -37
- package/dist/production/index-react-server.d.ts +229 -37
- package/dist/production/index-react-server.js +89 -39
- package/dist/production/index-react-server.mjs +88 -36
- package/dist/production/index.d.mts +31 -24
- package/dist/production/index.d.ts +29 -22
- package/dist/production/index.js +182 -144
- package/dist/production/index.mjs +9 -7
- package/dist/production/lib/types/internal.d.mts +6 -6
- package/dist/production/lib/types/internal.d.ts +5 -5
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
- package/dist/production/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as Router, k as DataStrategyFunction, T as To, N as NavigateOptions, B as BlockerFunction, l as Blocker, m as RelativeRoutingType, L as Location, n as ParamParseKey, o as Path, p as PathPattern, q as PathMatch, U as UIMatch, r as Navigation, s as Action, P as Params, t as RouteObject, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as RouteComponentType, x as HydrateFallbackType, E as ErrorBoundaryType,
|
|
2
|
-
export { A as ActionFunctionArgs,
|
|
1
|
+
import { j as Router, k as DataStrategyFunction, T as To, N as NavigateOptions, B as BlockerFunction, l as Blocker, m as RelativeRoutingType, L as Location, n as ParamParseKey, o as Path, p as PathPattern, q as PathMatch, U as UIMatch, r as Navigation, s as Action, P as Params, t as RouteObject, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as RouteComponentType, x as HydrateFallbackType, E as ErrorBoundaryType, d as LoaderFunction, c as ActionFunction, y as NonIndexRouteObject, g as RouterContextProvider, i as MiddlewareEnabled, S as ShouldRevalidateFunction, a as RouterInit, z as RouterState, C as PatchRoutesOnNavigationFunction, F as DataRouteObject } from './context-BH6Jwdoy.mjs';
|
|
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-BH6Jwdoy.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-
|
|
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-
|
|
7
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-
|
|
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-
|
|
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-BQkq8Erj.mjs';
|
|
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-BQkq8Erj.mjs';
|
|
7
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-1cWMpKk4.mjs';
|
|
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-1cWMpKk4.mjs';
|
|
9
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
10
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
11
|
import { P as Pages } from './register-DiOIlEq5.mjs';
|
|
@@ -944,7 +944,7 @@ interface RoutesTestStubProps {
|
|
|
944
944
|
/**
|
|
945
945
|
* @category Utils
|
|
946
946
|
*/
|
|
947
|
-
declare function createRoutesStub(routes: StubRouteObject[], _context?: AppLoadContext |
|
|
947
|
+
declare function createRoutesStub(routes: StubRouteObject[], _context?: AppLoadContext | RouterContextProvider): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;
|
|
948
948
|
|
|
949
949
|
interface CookieSignatureOptions {
|
|
950
950
|
/**
|
|
@@ -1007,7 +1007,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1007
1007
|
*/
|
|
1008
1008
|
declare const isCookie: IsCookieFunction;
|
|
1009
1009
|
|
|
1010
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ?
|
|
1010
|
+
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1011
1011
|
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1012
1012
|
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1013
1013
|
|
|
@@ -1362,7 +1362,7 @@ type LoadServerActionFunction = (id: string) => Promise<Function>;
|
|
|
1362
1362
|
* errors that occur during the request processing.
|
|
1363
1363
|
* @param opts.request The [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
|
|
1364
1364
|
* to match against.
|
|
1365
|
-
* @param opts.requestContext An instance of {@link
|
|
1365
|
+
* @param opts.requestContext An instance of {@link RouterContextProvider}
|
|
1366
1366
|
* that should be created per request, to be passed to [`action`](../../start/data/route-object#action)s,
|
|
1367
1367
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
1368
1368
|
* @param opts.routes Your {@link unstable_RSCRouteConfigEntry | route definitions}.
|
|
@@ -1376,7 +1376,7 @@ declare function matchRSCServerRequest({ createTemporaryReferenceSet, basename,
|
|
|
1376
1376
|
decodeReply?: DecodeReplyFunction;
|
|
1377
1377
|
decodeAction?: DecodeActionFunction;
|
|
1378
1378
|
decodeFormState?: DecodeFormStateFunction;
|
|
1379
|
-
requestContext?:
|
|
1379
|
+
requestContext?: RouterContextProvider;
|
|
1380
1380
|
loadServerAction?: LoadServerActionFunction;
|
|
1381
1381
|
onError?: (error: unknown) => void;
|
|
1382
1382
|
request: Request;
|
|
@@ -1460,13 +1460,13 @@ interface RSCHydratedRouterProps {
|
|
|
1460
1460
|
*/
|
|
1461
1461
|
routeDiscovery?: "eager" | "lazy";
|
|
1462
1462
|
/**
|
|
1463
|
-
* A function that returns an {@link
|
|
1463
|
+
* A function that returns an {@link RouterContextProvider} instance
|
|
1464
1464
|
* which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
|
|
1465
1465
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
1466
1466
|
* This function is called to generate a fresh `context` instance on each
|
|
1467
1467
|
* navigation or fetcher call.
|
|
1468
1468
|
*/
|
|
1469
|
-
|
|
1469
|
+
getContext?: RouterInit["getContext"];
|
|
1470
1470
|
}
|
|
1471
1471
|
/**
|
|
1472
1472
|
* Hydrates a server rendered {@link unstable_RSCPayload} in the browser.
|
|
@@ -1502,13 +1502,13 @@ interface RSCHydratedRouterProps {
|
|
|
1502
1502
|
* @param props Props
|
|
1503
1503
|
* @param {unstable_RSCHydratedRouterProps.createFromReadableStream} props.createFromReadableStream n/a
|
|
1504
1504
|
* @param {unstable_RSCHydratedRouterProps.fetch} props.fetch n/a
|
|
1505
|
-
* @param {unstable_RSCHydratedRouterProps.
|
|
1505
|
+
* @param {unstable_RSCHydratedRouterProps.getContext} props.getContext n/a
|
|
1506
1506
|
* @param {unstable_RSCHydratedRouterProps.payload} props.payload n/a
|
|
1507
1507
|
* @param {unstable_RSCHydratedRouterProps.routeDiscovery} props.routeDiscovery n/a
|
|
1508
1508
|
* @returns A hydrated {@link DataRouter} that can be used to navigate and
|
|
1509
1509
|
* render routes.
|
|
1510
1510
|
*/
|
|
1511
|
-
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery,
|
|
1511
|
+
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, getContext, }: RSCHydratedRouterProps): React.JSX.Element;
|
|
1512
1512
|
|
|
1513
1513
|
type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
|
|
1514
1514
|
/**
|
|
@@ -1650,15 +1650,22 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1650
1650
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1651
1651
|
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
|
|
1652
1652
|
|
|
1653
|
-
declare function getHydrationData(state: {
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1653
|
+
declare function getHydrationData({ state, routes, getRouteInfo, location, basename, isSpaMode, }: {
|
|
1654
|
+
state: {
|
|
1655
|
+
loaderData?: Router["state"]["loaderData"];
|
|
1656
|
+
actionData?: Router["state"]["actionData"];
|
|
1657
|
+
errors?: Router["state"]["errors"];
|
|
1658
|
+
};
|
|
1659
|
+
routes: DataRouteObject[];
|
|
1660
|
+
getRouteInfo: (routeId: string) => {
|
|
1661
|
+
clientLoader: ClientLoaderFunction | undefined;
|
|
1662
|
+
hasLoader: boolean;
|
|
1663
|
+
hasHydrateFallback: boolean;
|
|
1664
|
+
};
|
|
1665
|
+
location: Path;
|
|
1666
|
+
basename: string | undefined;
|
|
1667
|
+
isSpaMode: boolean;
|
|
1668
|
+
}): HydrationState;
|
|
1662
1669
|
|
|
1663
1670
|
/**
|
|
1664
1671
|
* @module index
|
|
@@ -1667,4 +1674,4 @@ declare function getHydrationData(state: {
|
|
|
1667
1674
|
|
|
1668
1675
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1669
1676
|
|
|
1670
|
-
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, 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,
|
|
1677
|
+
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 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { ab as ActionFunctionArgs,
|
|
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-DSKAn01V.js';
|
|
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-DSKAn01V.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-
|
|
6
|
-
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-
|
|
5
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-CMC2eQAY.js';
|
|
6
|
+
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-CMC2eQAY.js';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
8
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
9
|
import { P as Pages } from './register-DiOIlEq5.js';
|
|
@@ -941,7 +941,7 @@ interface RoutesTestStubProps {
|
|
|
941
941
|
/**
|
|
942
942
|
* @category Utils
|
|
943
943
|
*/
|
|
944
|
-
declare function createRoutesStub(routes: StubRouteObject[], _context?: AppLoadContext |
|
|
944
|
+
declare function createRoutesStub(routes: StubRouteObject[], _context?: AppLoadContext | RouterContextProvider): ({ initialEntries, initialIndex, hydrationData, future, }: RoutesTestStubProps) => React.JSX.Element;
|
|
945
945
|
|
|
946
946
|
interface CookieSignatureOptions {
|
|
947
947
|
/**
|
|
@@ -1004,7 +1004,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1004
1004
|
*/
|
|
1005
1005
|
declare const isCookie: IsCookieFunction;
|
|
1006
1006
|
|
|
1007
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ?
|
|
1007
|
+
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1008
1008
|
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1009
1009
|
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1010
1010
|
|
|
@@ -1359,7 +1359,7 @@ type LoadServerActionFunction = (id: string) => Promise<Function>;
|
|
|
1359
1359
|
* errors that occur during the request processing.
|
|
1360
1360
|
* @param opts.request The [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
|
|
1361
1361
|
* to match against.
|
|
1362
|
-
* @param opts.requestContext An instance of {@link
|
|
1362
|
+
* @param opts.requestContext An instance of {@link RouterContextProvider}
|
|
1363
1363
|
* that should be created per request, to be passed to [`action`](../../start/data/route-object#action)s,
|
|
1364
1364
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
1365
1365
|
* @param opts.routes Your {@link unstable_RSCRouteConfigEntry | route definitions}.
|
|
@@ -1373,7 +1373,7 @@ declare function matchRSCServerRequest({ createTemporaryReferenceSet, basename,
|
|
|
1373
1373
|
decodeReply?: DecodeReplyFunction;
|
|
1374
1374
|
decodeAction?: DecodeActionFunction;
|
|
1375
1375
|
decodeFormState?: DecodeFormStateFunction;
|
|
1376
|
-
requestContext?:
|
|
1376
|
+
requestContext?: RouterContextProvider;
|
|
1377
1377
|
loadServerAction?: LoadServerActionFunction;
|
|
1378
1378
|
onError?: (error: unknown) => void;
|
|
1379
1379
|
request: Request;
|
|
@@ -1457,13 +1457,13 @@ interface RSCHydratedRouterProps {
|
|
|
1457
1457
|
*/
|
|
1458
1458
|
routeDiscovery?: "eager" | "lazy";
|
|
1459
1459
|
/**
|
|
1460
|
-
* A function that returns an {@link
|
|
1460
|
+
* A function that returns an {@link RouterContextProvider} instance
|
|
1461
1461
|
* which is provided as the `context` argument to client [`action`](../../start/data/route-object#action)s,
|
|
1462
1462
|
* [`loader`](../../start/data/route-object#loader)s and [middleware](../../how-to/middleware).
|
|
1463
1463
|
* This function is called to generate a fresh `context` instance on each
|
|
1464
1464
|
* navigation or fetcher call.
|
|
1465
1465
|
*/
|
|
1466
|
-
|
|
1466
|
+
getContext?: RouterInit["getContext"];
|
|
1467
1467
|
}
|
|
1468
1468
|
/**
|
|
1469
1469
|
* Hydrates a server rendered {@link unstable_RSCPayload} in the browser.
|
|
@@ -1499,13 +1499,13 @@ interface RSCHydratedRouterProps {
|
|
|
1499
1499
|
* @param props Props
|
|
1500
1500
|
* @param {unstable_RSCHydratedRouterProps.createFromReadableStream} props.createFromReadableStream n/a
|
|
1501
1501
|
* @param {unstable_RSCHydratedRouterProps.fetch} props.fetch n/a
|
|
1502
|
-
* @param {unstable_RSCHydratedRouterProps.
|
|
1502
|
+
* @param {unstable_RSCHydratedRouterProps.getContext} props.getContext n/a
|
|
1503
1503
|
* @param {unstable_RSCHydratedRouterProps.payload} props.payload n/a
|
|
1504
1504
|
* @param {unstable_RSCHydratedRouterProps.routeDiscovery} props.routeDiscovery n/a
|
|
1505
1505
|
* @returns A hydrated {@link DataRouter} that can be used to navigate and
|
|
1506
1506
|
* render routes.
|
|
1507
1507
|
*/
|
|
1508
|
-
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery,
|
|
1508
|
+
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, getContext, }: RSCHydratedRouterProps): React.JSX.Element;
|
|
1509
1509
|
|
|
1510
1510
|
type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
|
|
1511
1511
|
/**
|
|
@@ -1692,15 +1692,22 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1692
1692
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1693
1693
|
declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
|
|
1694
1694
|
|
|
1695
|
-
declare function getHydrationData(state: {
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1695
|
+
declare function getHydrationData({ state, routes, getRouteInfo, location, basename, isSpaMode, }: {
|
|
1696
|
+
state: {
|
|
1697
|
+
loaderData?: Router["state"]["loaderData"];
|
|
1698
|
+
actionData?: Router["state"]["actionData"];
|
|
1699
|
+
errors?: Router["state"]["errors"];
|
|
1700
|
+
};
|
|
1701
|
+
routes: DataRouteObject[];
|
|
1702
|
+
getRouteInfo: (routeId: string) => {
|
|
1703
|
+
clientLoader: ClientLoaderFunction | undefined;
|
|
1704
|
+
hasLoader: boolean;
|
|
1705
|
+
hasHydrateFallback: boolean;
|
|
1706
|
+
};
|
|
1707
|
+
location: Path;
|
|
1708
|
+
basename: string | undefined;
|
|
1709
|
+
isSpaMode: boolean;
|
|
1710
|
+
}): HydrationState;
|
|
1704
1711
|
|
|
1705
1712
|
/**
|
|
1706
1713
|
* @module index
|
|
@@ -1709,4 +1716,4 @@ declare function getHydrationData(state: {
|
|
|
1709
1716
|
|
|
1710
1717
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1711
1718
|
|
|
1712
|
-
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, 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,
|
|
1719
|
+
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 };
|