react-router 0.0.0-experimental-a6d1d1d4e → 0.0.0-experimental-1d760f6a6
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 +12 -0
- package/dist/development/{chunk-OEAMHMGQ.mjs → chunk-QBMD7MNB.mjs} +293 -1025
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +69 -103
- package/dist/development/dom-export.mjs +2 -2
- package/dist/development/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
- package/dist/{production/fog-of-war-C5L_Yd5M.d.mts → development/fog-of-war-D2zsXvum.d.mts} +81 -168
- package/dist/development/index.d.mts +8 -15
- package/dist/development/index.d.ts +8 -15
- package/dist/development/index.js +291 -1032
- package/dist/development/index.mjs +2 -19
- package/dist/development/lib/types/route-module.d.mts +1 -1
- package/dist/development/lib/types/route-module.d.ts +1 -1
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/development/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
- package/dist/{production/route-data-BIYebJr3.d.mts → development/route-data-C12CLHiN.d.ts} +1 -11
- package/dist/production/{chunk-I2N4LFMP.mjs → chunk-DSJGM2GU.mjs} +293 -1025
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +69 -103
- package/dist/production/dom-export.mjs +2 -2
- package/dist/production/{fog-of-war-DrUCUQQ-.d.ts → fog-of-war-BLArG-qZ.d.ts} +81 -168
- package/dist/{development/fog-of-war-C5L_Yd5M.d.mts → production/fog-of-war-D2zsXvum.d.mts} +81 -168
- package/dist/production/index.d.mts +8 -15
- package/dist/production/index.d.ts +8 -15
- package/dist/production/index.js +291 -1032
- package/dist/production/index.mjs +2 -19
- package/dist/production/lib/types/route-module.d.mts +1 -1
- package/dist/production/lib/types/route-module.d.ts +1 -1
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/production/{route-data-BIYebJr3.d.ts → route-data-C12CLHiN.d.mts} +1 -11
- package/dist/{development/route-data-BIYebJr3.d.mts → production/route-data-C12CLHiN.d.ts} +1 -11
- package/package.json +2 -33
- package/dist/development/rsc-export.d.mts +0 -1553
- package/dist/development/rsc-export.d.ts +0 -1553
- package/dist/development/rsc-export.js +0 -2413
- package/dist/development/rsc-export.mjs +0 -2385
- package/dist/production/rsc-export.d.mts +0 -1553
- package/dist/production/rsc-export.d.ts +0 -1553
- package/dist/production/rsc-export.js +0 -2413
- package/dist/production/rsc-export.mjs +0 -2385
|
@@ -1,83 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
type SerializedError = {
|
|
5
|
-
message: string;
|
|
6
|
-
stack?: string;
|
|
7
|
-
};
|
|
8
|
-
interface FrameworkContextObject {
|
|
9
|
-
manifest: AssetsManifest;
|
|
10
|
-
routeModules: RouteModules;
|
|
11
|
-
criticalCss?: CriticalCss;
|
|
12
|
-
serverHandoffString?: string;
|
|
13
|
-
future: FutureConfig;
|
|
14
|
-
ssr: boolean;
|
|
15
|
-
isSpaMode: boolean;
|
|
16
|
-
serializeError?(error: Error): SerializedError;
|
|
17
|
-
renderMeta?: {
|
|
18
|
-
didRenderScripts?: boolean;
|
|
19
|
-
streamCache?: Record<number, Promise<void> & {
|
|
20
|
-
result?: {
|
|
21
|
-
done: boolean;
|
|
22
|
-
value: string;
|
|
23
|
-
};
|
|
24
|
-
error?: unknown;
|
|
25
|
-
}>;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
interface EntryContext extends FrameworkContextObject {
|
|
29
|
-
staticHandlerContext: StaticHandlerContext;
|
|
30
|
-
serverHandoffStream?: ReadableStream<Uint8Array>;
|
|
31
|
-
}
|
|
32
|
-
interface FutureConfig {
|
|
33
|
-
unstable_subResourceIntegrity: boolean;
|
|
34
|
-
unstable_middleware: boolean;
|
|
35
|
-
}
|
|
36
|
-
type CriticalCss = string | {
|
|
37
|
-
rel: "stylesheet";
|
|
38
|
-
href: string;
|
|
39
|
-
};
|
|
40
|
-
interface AssetsManifest {
|
|
41
|
-
entry: {
|
|
42
|
-
imports: string[];
|
|
43
|
-
module: string;
|
|
44
|
-
};
|
|
45
|
-
routes: RouteManifest<EntryRoute>;
|
|
46
|
-
url: string;
|
|
47
|
-
version: string;
|
|
48
|
-
hmr?: {
|
|
49
|
-
timestamp?: number;
|
|
50
|
-
runtime: string;
|
|
51
|
-
};
|
|
52
|
-
sri?: Record<string, string> | true;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
interface Route$1 {
|
|
56
|
-
index?: boolean;
|
|
57
|
-
caseSensitive?: boolean;
|
|
58
|
-
id: string;
|
|
59
|
-
parentId?: string;
|
|
60
|
-
path?: string;
|
|
61
|
-
}
|
|
62
|
-
interface EntryRoute extends Route$1 {
|
|
63
|
-
hasAction: boolean;
|
|
64
|
-
hasLoader: boolean;
|
|
65
|
-
hasClientAction: boolean;
|
|
66
|
-
hasClientLoader: boolean;
|
|
67
|
-
hasClientMiddleware: boolean;
|
|
68
|
-
hasErrorBoundary: boolean;
|
|
69
|
-
imports?: string[];
|
|
70
|
-
css?: string[];
|
|
71
|
-
module: string;
|
|
72
|
-
clientActionModule: string | undefined;
|
|
73
|
-
clientLoaderModule: string | undefined;
|
|
74
|
-
clientMiddlewareModule: string | undefined;
|
|
75
|
-
hydrateFallbackModule: string | undefined;
|
|
76
|
-
parentId?: string;
|
|
77
|
-
}
|
|
78
|
-
declare function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation: Set<string>, manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState, ssr: boolean, isSpaMode: boolean): DataRouteObject[];
|
|
79
|
-
declare function createClientRoutes(manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState | null, ssr: boolean, isSpaMode: boolean, parentId?: string, routesByParentId?: Record<string, Omit<EntryRoute, "children">[]>, needsRevalidation?: Set<string>): DataRouteObject[];
|
|
80
|
-
declare function shouldHydrateRouteLoader(routeId: string, clientLoader: ClientLoaderFunction | undefined, hasLoader: boolean, isSpaMode: boolean): boolean;
|
|
2
|
+
import { k as RouteObject, R as RouterInit, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, at as PatchRoutesOnNavigationFunction, a as Router$1, T as To, d as RelativeRoutingType, y as NonIndexRouteObject, a5 as LazyRouteFunction, s as IndexRouteObject, e as Location, f as Action, as as Navigator, av as RouteMatch, p as StaticHandlerContext, c as RouteManifest, b as RouteModules, G as DataRouteObject, J as ClientLoaderFunction, a4 as HTMLFormMethod, a2 as FormEncType, aD as PageLinkDescriptor, aT as History, O as GetScrollRestorationKeyFunction, N as NavigateOptions, Q as Fetcher, n as SerializeFrom, B as BlockerFunction } from './route-data-C12CLHiN.mjs';
|
|
81
3
|
|
|
82
4
|
/**
|
|
83
5
|
* @private
|
|
@@ -271,7 +193,7 @@ type RouteProps = PathRouteProps | LayoutRouteProps | IndexRouteProps;
|
|
|
271
193
|
*
|
|
272
194
|
* @category Components
|
|
273
195
|
*/
|
|
274
|
-
declare function Route(_props: RouteProps): React.ReactElement | null;
|
|
196
|
+
declare function Route$1(_props: RouteProps): React.ReactElement | null;
|
|
275
197
|
/**
|
|
276
198
|
* @category Types
|
|
277
199
|
*/
|
|
@@ -471,15 +393,6 @@ function Book() {
|
|
|
471
393
|
|
|
472
394
|
*/
|
|
473
395
|
declare function Await<Resolve>({ children, errorElement, resolve, }: AwaitProps<Resolve>): React.JSX.Element;
|
|
474
|
-
declare function WithRouteComponentProps({ children, }: {
|
|
475
|
-
children: React.ReactElement;
|
|
476
|
-
}): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
477
|
-
declare function WithHydrateFallbackProps({ children, }: {
|
|
478
|
-
children: React.ReactElement;
|
|
479
|
-
}): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
480
|
-
declare function WithErrorBoundaryProps({ children, }: {
|
|
481
|
-
children: React.ReactElement;
|
|
482
|
-
}): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
483
396
|
/**
|
|
484
397
|
* Creates a route config from a React "children" object, which is usually
|
|
485
398
|
* either a `<Route>` element or an array of them. Used internally by
|
|
@@ -499,6 +412,84 @@ declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
|
499
412
|
*/
|
|
500
413
|
declare function renderMatches(matches: RouteMatch[] | null): React.ReactElement | null;
|
|
501
414
|
|
|
415
|
+
type SerializedError = {
|
|
416
|
+
message: string;
|
|
417
|
+
stack?: string;
|
|
418
|
+
};
|
|
419
|
+
interface FrameworkContextObject {
|
|
420
|
+
manifest: AssetsManifest;
|
|
421
|
+
routeModules: RouteModules;
|
|
422
|
+
criticalCss?: CriticalCss;
|
|
423
|
+
serverHandoffString?: string;
|
|
424
|
+
future: FutureConfig;
|
|
425
|
+
ssr: boolean;
|
|
426
|
+
isSpaMode: boolean;
|
|
427
|
+
serializeError?(error: Error): SerializedError;
|
|
428
|
+
renderMeta?: {
|
|
429
|
+
didRenderScripts?: boolean;
|
|
430
|
+
streamCache?: Record<number, Promise<void> & {
|
|
431
|
+
result?: {
|
|
432
|
+
done: boolean;
|
|
433
|
+
value: string;
|
|
434
|
+
};
|
|
435
|
+
error?: unknown;
|
|
436
|
+
}>;
|
|
437
|
+
};
|
|
438
|
+
}
|
|
439
|
+
interface EntryContext extends FrameworkContextObject {
|
|
440
|
+
staticHandlerContext: StaticHandlerContext;
|
|
441
|
+
serverHandoffStream?: ReadableStream<Uint8Array>;
|
|
442
|
+
}
|
|
443
|
+
interface FutureConfig {
|
|
444
|
+
unstable_subResourceIntegrity: boolean;
|
|
445
|
+
unstable_middleware: boolean;
|
|
446
|
+
}
|
|
447
|
+
type CriticalCss = string | {
|
|
448
|
+
rel: "stylesheet";
|
|
449
|
+
href: string;
|
|
450
|
+
};
|
|
451
|
+
interface AssetsManifest {
|
|
452
|
+
entry: {
|
|
453
|
+
imports: string[];
|
|
454
|
+
module: string;
|
|
455
|
+
};
|
|
456
|
+
routes: RouteManifest<EntryRoute>;
|
|
457
|
+
url: string;
|
|
458
|
+
version: string;
|
|
459
|
+
hmr?: {
|
|
460
|
+
timestamp?: number;
|
|
461
|
+
runtime: string;
|
|
462
|
+
};
|
|
463
|
+
sri?: Record<string, string> | true;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
interface Route {
|
|
467
|
+
index?: boolean;
|
|
468
|
+
caseSensitive?: boolean;
|
|
469
|
+
id: string;
|
|
470
|
+
parentId?: string;
|
|
471
|
+
path?: string;
|
|
472
|
+
}
|
|
473
|
+
interface EntryRoute extends Route {
|
|
474
|
+
hasAction: boolean;
|
|
475
|
+
hasLoader: boolean;
|
|
476
|
+
hasClientAction: boolean;
|
|
477
|
+
hasClientLoader: boolean;
|
|
478
|
+
hasClientMiddleware: boolean;
|
|
479
|
+
hasErrorBoundary: boolean;
|
|
480
|
+
imports?: string[];
|
|
481
|
+
css?: string[];
|
|
482
|
+
module: string;
|
|
483
|
+
clientActionModule: string | undefined;
|
|
484
|
+
clientLoaderModule: string | undefined;
|
|
485
|
+
clientMiddlewareModule: string | undefined;
|
|
486
|
+
hydrateFallbackModule: string | undefined;
|
|
487
|
+
parentId?: string;
|
|
488
|
+
}
|
|
489
|
+
declare function createClientRoutesWithHMRRevalidationOptOut(needsRevalidation: Set<string>, manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState, ssr: boolean, isSpaMode: boolean): DataRouteObject[];
|
|
490
|
+
declare function createClientRoutes(manifest: RouteManifest<EntryRoute>, routeModulesCache: RouteModules, initialState: HydrationState | null, ssr: boolean, isSpaMode: boolean, parentId?: string, routesByParentId?: Record<string, Omit<EntryRoute, "children">[]>, needsRevalidation?: Set<string>): DataRouteObject[];
|
|
491
|
+
declare function shouldHydrateRouteLoader(routeId: string, clientLoader: ClientLoaderFunction | undefined, hasLoader: boolean, isSpaMode: boolean): boolean;
|
|
492
|
+
|
|
502
493
|
type ParamKeyValuePair = [string, string];
|
|
503
494
|
type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
|
504
495
|
/**
|
|
@@ -1687,84 +1678,6 @@ declare function useViewTransitionState(to: To, opts?: {
|
|
|
1687
1678
|
relative?: RelativeRoutingType;
|
|
1688
1679
|
}): boolean;
|
|
1689
1680
|
|
|
1690
|
-
type RenderedRoute = {
|
|
1691
|
-
clientAction?: ClientActionFunction;
|
|
1692
|
-
clientLoader?: ClientLoaderFunction;
|
|
1693
|
-
element?: React.ReactElement | false;
|
|
1694
|
-
errorElement?: React.ReactElement;
|
|
1695
|
-
handle?: any;
|
|
1696
|
-
hasAction: boolean;
|
|
1697
|
-
hasErrorBoundary: boolean;
|
|
1698
|
-
hasLoader: boolean;
|
|
1699
|
-
hydrateFallbackElement?: React.ReactElement;
|
|
1700
|
-
id: string;
|
|
1701
|
-
index?: boolean;
|
|
1702
|
-
links?: LinksFunction;
|
|
1703
|
-
meta?: MetaFunction;
|
|
1704
|
-
parentId?: string;
|
|
1705
|
-
path?: string;
|
|
1706
|
-
shouldRevalidate?: ShouldRevalidateFunction;
|
|
1707
|
-
};
|
|
1708
|
-
type ServerRouteMatch = RenderedRoute & {
|
|
1709
|
-
params: Params;
|
|
1710
|
-
pathname: string;
|
|
1711
|
-
pathnameBase: string;
|
|
1712
|
-
};
|
|
1713
|
-
type ServerRenderPayload = {
|
|
1714
|
-
type: "render";
|
|
1715
|
-
actionData: Record<string, any> | null;
|
|
1716
|
-
basename?: string;
|
|
1717
|
-
errors: Record<string, any> | null;
|
|
1718
|
-
loaderData: Record<string, any>;
|
|
1719
|
-
location: Location;
|
|
1720
|
-
matches: ServerRouteMatch[];
|
|
1721
|
-
patches?: RenderedRoute[];
|
|
1722
|
-
nonce?: string;
|
|
1723
|
-
};
|
|
1724
|
-
type ServerManifestPayload = {
|
|
1725
|
-
type: "manifest";
|
|
1726
|
-
matches: RenderedRoute[];
|
|
1727
|
-
patches: RenderedRoute[];
|
|
1728
|
-
};
|
|
1729
|
-
type ServerActionPayload = {
|
|
1730
|
-
type: "action";
|
|
1731
|
-
actionResult: Promise<unknown>;
|
|
1732
|
-
rerender?: Promise<ServerRenderPayload | ServerRedirectPayload>;
|
|
1733
|
-
};
|
|
1734
|
-
type ServerRedirectPayload = {
|
|
1735
|
-
type: "redirect";
|
|
1736
|
-
status: number;
|
|
1737
|
-
location: string;
|
|
1738
|
-
replace: boolean;
|
|
1739
|
-
reload: boolean;
|
|
1740
|
-
};
|
|
1741
|
-
type ServerPayload = ServerRenderPayload | ServerManifestPayload | ServerActionPayload | ServerRedirectPayload;
|
|
1742
|
-
|
|
1743
|
-
type DecodeServerResponseFunction = (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>;
|
|
1744
|
-
type EncodeActionFunction = (args: unknown[]) => Promise<BodyInit>;
|
|
1745
|
-
declare global {
|
|
1746
|
-
interface Window {
|
|
1747
|
-
__router: Router$1;
|
|
1748
|
-
__routerInitialized: boolean;
|
|
1749
|
-
__routerActionID: number;
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
declare function createCallServer({ decode, encodeAction, }: {
|
|
1753
|
-
decode: DecodeServerResponseFunction;
|
|
1754
|
-
encodeAction: EncodeActionFunction;
|
|
1755
|
-
}): (id: string, args: unknown[]) => Promise<unknown>;
|
|
1756
|
-
declare function RSCHydratedRouter({ decode, payload, }: {
|
|
1757
|
-
decode: DecodeServerResponseFunction;
|
|
1758
|
-
payload: ServerPayload;
|
|
1759
|
-
}): React.JSX.Element;
|
|
1760
|
-
|
|
1761
|
-
declare global {
|
|
1762
|
-
interface Window {
|
|
1763
|
-
__FLIGHT_DATA: any[];
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
declare function getServerStream(): ReadableStream<any>;
|
|
1767
|
-
|
|
1768
1681
|
declare global {
|
|
1769
1682
|
interface Navigator {
|
|
1770
1683
|
connection?: {
|
|
@@ -1775,4 +1688,4 @@ declare global {
|
|
|
1775
1688
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1776
1689
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean): void;
|
|
1777
1690
|
|
|
1778
|
-
export {
|
|
1691
|
+
export { useSearchParams as $, type AssetsManifest as A, type BrowserRouterProps as B, type CriticalCss as C, type DOMRouterOpts as D, type EntryContext as E, type FutureConfig as F, type FetcherSubmitFunction as G, type HashRouterProps as H, type IndexRouteProps as I, type FetcherWithComponents as J, createBrowserRouter as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, createHashRouter as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, BrowserRouter as T, HashRouter as U, Link as V, HistoryRouter as W, NavLink as X, Form as Y, ScrollRestoration as Z, useLinkClickHandler as _, type Route as a, useSubmit as a0, useFormAction as a1, useFetcher as a2, useFetchers as a3, useBeforeUnload as a4, usePrompt as a5, useViewTransitionState as a6, type FetcherSubmitOptions as a7, type ParamKeyValuePair as a8, type SubmitOptions as a9, type URLSearchParamsInit as aa, type SubmitTarget as ab, createSearchParams as ac, Meta as ad, Links as ae, Scripts as af, PrefetchPageLinks as ag, type ScriptsProps as ah, hydrationRouteProperties as ai, mapRouteProperties as aj, FrameworkContext as ak, getPatchRoutesOnNavigationFunction as al, useFogOFWarDiscovery as am, createClientRoutes as an, createClientRoutesWithHMRRevalidationOptOut as ao, shouldHydrateRouteLoader as ap, useScrollRestoration as aq, type AwaitProps as b, type MemoryRouterProps as c, type RouteProps as d, type RouterProps as e, type RoutesProps as f, Await as g, MemoryRouter as h, Navigate as i, Outlet as j, Route$1 as k, Router as l, RouterProvider as m, Routes as n, createMemoryRouter as o, createRoutesFromChildren as p, createRoutesFromElements as q, renderMatches as r, type HistoryRouterProps as s, type LinkProps as t, type NavLinkProps as u, type NavLinkRenderProps as v, type FetcherFormProps as w, type FormProps as x, type SetURLSearchParams as y, type SubmitFunction as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Router, b as RouteModules, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, w as MetaFunction, x as LinksFunction, y as NonIndexRouteObject, E as Equal, z as RouterState, G as DataRouteObject, J as ClientLoaderFunction } from './route-data-
|
|
2
|
-
export { aw as ClientActionFunction, ax as ClientActionFunctionArgs, ay as ClientLoaderFunctionArgs, ar as DataRouteMatch, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, Q as Fetcher, a2 as FormEncType, a3 as FormMethod, aG as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HeadersArgs, aA as HeadersFunction, aE as HtmlLinkDescriptor, ah as IDLE_BLOCKER, ag as IDLE_FETCHER, af as IDLE_NAVIGATION, a5 as LazyRouteFunction, aF as LinkDescriptor, aB as MetaArgs, aC as MetaDescriptor, V as NavigationStates, as as Navigator, aD as PageLinkDescriptor, at as PatchRoutesOnNavigationFunction, au as PatchRoutesOnNavigationFunctionArgs, a7 as PathParam, a8 as RedirectFunction, av as RouteMatch, Y as RouterFetchOptions, R as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, aa as ShouldRevalidateFunction, ab as ShouldRevalidateFunctionArgs, aM as UNSAFE_DataRouterContext, aN as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aL as UNSAFE_ErrorResponseImpl, aO as UNSAFE_FetchersContext, aP as UNSAFE_LocationContext, aQ as UNSAFE_NavigationContext, aR as UNSAFE_RouteContext, aS as UNSAFE_ViewTransitionContext, aI as UNSAFE_createBrowserHistory, aK as UNSAFE_createRouter, aJ as UNSAFE_invariant, ad as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ae as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, a6 as unstable_MiddlewareFunction, a9 as unstable_RouterContext, aH as unstable_SerializesTo, ac as unstable_createContext } from './route-data-
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss
|
|
4
|
-
export { g as Await, b as AwaitProps,
|
|
1
|
+
import { a as Router, b as RouteModules, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, w as MetaFunction, x as LinksFunction, y as NonIndexRouteObject, E as Equal, z as RouterState, G as DataRouteObject, J as ClientLoaderFunction } from './route-data-C12CLHiN.mjs';
|
|
2
|
+
export { aw as ClientActionFunction, ax as ClientActionFunctionArgs, ay as ClientLoaderFunctionArgs, ar as DataRouteMatch, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, Q as Fetcher, a2 as FormEncType, a3 as FormMethod, aG as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HeadersArgs, aA as HeadersFunction, aE as HtmlLinkDescriptor, ah as IDLE_BLOCKER, ag as IDLE_FETCHER, af as IDLE_NAVIGATION, a5 as LazyRouteFunction, aF as LinkDescriptor, aB as MetaArgs, aC as MetaDescriptor, V as NavigationStates, as as Navigator, aD as PageLinkDescriptor, at as PatchRoutesOnNavigationFunction, au as PatchRoutesOnNavigationFunctionArgs, a7 as PathParam, a8 as RedirectFunction, av as RouteMatch, Y as RouterFetchOptions, R as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, aa as ShouldRevalidateFunction, ab as ShouldRevalidateFunctionArgs, aM as UNSAFE_DataRouterContext, aN as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aL as UNSAFE_ErrorResponseImpl, aO as UNSAFE_FetchersContext, aP as UNSAFE_LocationContext, aQ as UNSAFE_NavigationContext, aR as UNSAFE_RouteContext, aS as UNSAFE_ViewTransitionContext, aI as UNSAFE_createBrowserHistory, aK as UNSAFE_createRouter, aJ as UNSAFE_invariant, ad as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ae as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, a6 as unstable_MiddlewareFunction, a9 as unstable_RouterContext, aH as unstable_SerializesTo, ac as unstable_createContext } from './route-data-C12CLHiN.mjs';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-D2zsXvum.mjs';
|
|
4
|
+
export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, ak as UNSAFE_FrameworkContext, an as UNSAFE_createClientRoutes, ao as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, al as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_hydrationRouteProperties, aj as UNSAFE_mapRouteProperties, ap as UNSAFE_shouldHydrateRouteLoader, am as UNSAFE_useFogOFWarDiscovery, aq as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-D2zsXvum.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -615,7 +615,7 @@ interface SessionData {
|
|
|
615
615
|
/**
|
|
616
616
|
* Session persists data across HTTP requests.
|
|
617
617
|
*
|
|
618
|
-
* @see https://
|
|
618
|
+
* @see https://reactrouter.com/explanation/sessions-and-cookies#sessions
|
|
619
619
|
*/
|
|
620
620
|
interface Session<Data = SessionData, FlashData = Data> {
|
|
621
621
|
/**
|
|
@@ -665,15 +665,13 @@ type CreateSessionFunction = <Data = SessionData, FlashData = Data>(initialData?
|
|
|
665
665
|
*
|
|
666
666
|
* Note: This function is typically not invoked directly by application code.
|
|
667
667
|
* Instead, use a `SessionStorage` object's `getSession` method.
|
|
668
|
-
*
|
|
669
|
-
* @see https://remix.run/utils/sessions#createsession
|
|
670
668
|
*/
|
|
671
669
|
declare const createSession: CreateSessionFunction;
|
|
672
670
|
type IsSessionFunction = (object: any) => object is Session;
|
|
673
671
|
/**
|
|
674
|
-
* Returns true if an object is a
|
|
672
|
+
* Returns true if an object is a React Router session.
|
|
675
673
|
*
|
|
676
|
-
* @see https://
|
|
674
|
+
* @see https://reactrouter.com/api/utils/isSession
|
|
677
675
|
*/
|
|
678
676
|
declare const isSession: IsSessionFunction;
|
|
679
677
|
/**
|
|
@@ -814,11 +812,6 @@ type ToArgs<T> = Equal<T, {}> extends true ? [] : Partial<T> extends T ? [T] | [
|
|
|
814
812
|
*/
|
|
815
813
|
declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
|
|
816
814
|
|
|
817
|
-
declare function routeRSCServerRequest(request: Request, requestServer: (request: Request) => Promise<Response>, decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>, renderHTML: (getPayload: () => Promise<ServerPayload>) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>): Promise<Response>;
|
|
818
|
-
declare function RSCStaticRouter({ getPayload, }: {
|
|
819
|
-
getPayload: () => Promise<ServerPayload>;
|
|
820
|
-
}): React.JSX.Element | null;
|
|
821
|
-
|
|
822
815
|
declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];
|
|
823
816
|
|
|
824
817
|
type RemixErrorBoundaryProps = React.PropsWithChildren<{
|
|
@@ -852,4 +845,4 @@ declare function getHydrationData(state: {
|
|
|
852
845
|
hasHydrateFallback: boolean;
|
|
853
846
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
854
847
|
|
|
855
|
-
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params$1 as Params, Path, PathMatch, PathPattern,
|
|
848
|
+
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, 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, type ServerBuild, type ServerEntryModule, 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, unstable_RouterContextProvider, 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,7 +1,7 @@
|
|
|
1
|
-
import { a as Router, b as RouteModules, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, w as MetaFunction, x as LinksFunction, y as NonIndexRouteObject, E as Equal, z as RouterState, G as DataRouteObject, J as ClientLoaderFunction } from './route-data-
|
|
2
|
-
export { aw as ClientActionFunction, ax as ClientActionFunctionArgs, ay as ClientLoaderFunctionArgs, ar as DataRouteMatch, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, Q as Fetcher, a2 as FormEncType, a3 as FormMethod, aG as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HeadersArgs, aA as HeadersFunction, aE as HtmlLinkDescriptor, ah as IDLE_BLOCKER, ag as IDLE_FETCHER, af as IDLE_NAVIGATION, a5 as LazyRouteFunction, aF as LinkDescriptor, aB as MetaArgs, aC as MetaDescriptor, V as NavigationStates, as as Navigator, aD as PageLinkDescriptor, at as PatchRoutesOnNavigationFunction, au as PatchRoutesOnNavigationFunctionArgs, a7 as PathParam, a8 as RedirectFunction, av as RouteMatch, Y as RouterFetchOptions, R as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, aa as ShouldRevalidateFunction, ab as ShouldRevalidateFunctionArgs, aM as UNSAFE_DataRouterContext, aN as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aL as UNSAFE_ErrorResponseImpl, aO as UNSAFE_FetchersContext, aP as UNSAFE_LocationContext, aQ as UNSAFE_NavigationContext, aR as UNSAFE_RouteContext, aS as UNSAFE_ViewTransitionContext, aI as UNSAFE_createBrowserHistory, aK as UNSAFE_createRouter, aJ as UNSAFE_invariant, ad as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ae as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, a6 as unstable_MiddlewareFunction, a9 as unstable_RouterContext, aH as unstable_SerializesTo, ac as unstable_createContext } from './route-data-
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss
|
|
4
|
-
export { g as Await, b as AwaitProps,
|
|
1
|
+
import { a as Router, b as RouteModules, D as DataStrategyFunction, c as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, L as LoaderFunctionArgs, A as ActionFunctionArgs, T as To, d as RelativeRoutingType, e as Location, f as Action, P as ParamParseKey, g as Path, h as PathPattern, i as PathMatch, N as NavigateOptions, j as Params$1, k as RouteObject, l as Navigation, m as RevalidationState, U as UIMatch, n as SerializeFrom, B as BlockerFunction, o as Blocker, p as StaticHandlerContext, q as StaticHandler, F as FutureConfig$1, C as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, r as unstable_InitialContext, s as IndexRouteObject, t as LoaderFunction, v as ActionFunction, w as MetaFunction, x as LinksFunction, y as NonIndexRouteObject, E as Equal, z as RouterState, G as DataRouteObject, J as ClientLoaderFunction } from './route-data-C12CLHiN.js';
|
|
2
|
+
export { aw as ClientActionFunction, ax as ClientActionFunctionArgs, ay as ClientLoaderFunctionArgs, ar as DataRouteMatch, Z as DataStrategyFunctionArgs, _ as DataStrategyMatch, $ as DataStrategyResult, a1 as ErrorResponse, Q as Fetcher, a2 as FormEncType, a3 as FormMethod, aG as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, az as HeadersArgs, aA as HeadersFunction, aE as HtmlLinkDescriptor, ah as IDLE_BLOCKER, ag as IDLE_FETCHER, af as IDLE_NAVIGATION, a5 as LazyRouteFunction, aF as LinkDescriptor, aB as MetaArgs, aC as MetaDescriptor, V as NavigationStates, as as Navigator, aD as PageLinkDescriptor, at as PatchRoutesOnNavigationFunction, au as PatchRoutesOnNavigationFunctionArgs, a7 as PathParam, a8 as RedirectFunction, av as RouteMatch, Y as RouterFetchOptions, R as RouterInit, X as RouterNavigateOptions, W as RouterSubscriber, aa as ShouldRevalidateFunction, ab as ShouldRevalidateFunctionArgs, aM as UNSAFE_DataRouterContext, aN as UNSAFE_DataRouterStateContext, a0 as UNSAFE_DataWithResponseInit, aL as UNSAFE_ErrorResponseImpl, aO as UNSAFE_FetchersContext, aP as UNSAFE_LocationContext, aQ as UNSAFE_NavigationContext, aR as UNSAFE_RouteContext, aS as UNSAFE_ViewTransitionContext, aI as UNSAFE_createBrowserHistory, aK as UNSAFE_createRouter, aJ as UNSAFE_invariant, ad as createPath, ai as data, aj as generatePath, ak as isRouteErrorResponse, al as matchPath, am as matchRoutes, ae as parsePath, an as redirect, ao as redirectDocument, ap as replace, aq as resolvePath, a6 as unstable_MiddlewareFunction, a9 as unstable_RouterContext, aH as unstable_SerializesTo, ac as unstable_createContext } from './route-data-C12CLHiN.js';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss } from './fog-of-war-BLArG-qZ.js';
|
|
4
|
+
export { g as Await, b as AwaitProps, T as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, w as FetcherFormProps, G as FetcherSubmitFunction, a7 as FetcherSubmitOptions, J as FetcherWithComponents, Y as Form, x as FormProps, U as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, V as Link, t as LinkProps, ae as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ad as Meta, X as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a8 as ParamKeyValuePair, P as PathRouteProps, ag as PrefetchPageLinks, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, af as Scripts, ah as ScriptsProps, Z as ScrollRestoration, S as ScrollRestorationProps, y as SetURLSearchParams, z as SubmitFunction, a9 as SubmitOptions, ab as SubmitTarget, ak as UNSAFE_FrameworkContext, an as UNSAFE_createClientRoutes, ao as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, al as UNSAFE_getPatchRoutesOnNavigationFunction, ai as UNSAFE_hydrationRouteProperties, aj as UNSAFE_mapRouteProperties, ap as UNSAFE_shouldHydrateRouteLoader, am as UNSAFE_useFogOFWarDiscovery, aq as UNSAFE_useScrollRestoration, aa as URLSearchParamsInit, K as createBrowserRouter, Q as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ac as createSearchParams, r as renderMatches, W as unstable_HistoryRouter, a5 as unstable_usePrompt, a4 as useBeforeUnload, a2 as useFetcher, a3 as useFetchers, a1 as useFormAction, _ as useLinkClickHandler, $ as useSearchParams, a0 as useSubmit, a6 as useViewTransitionState } from './fog-of-war-BLArG-qZ.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -615,7 +615,7 @@ interface SessionData {
|
|
|
615
615
|
/**
|
|
616
616
|
* Session persists data across HTTP requests.
|
|
617
617
|
*
|
|
618
|
-
* @see https://
|
|
618
|
+
* @see https://reactrouter.com/explanation/sessions-and-cookies#sessions
|
|
619
619
|
*/
|
|
620
620
|
interface Session<Data = SessionData, FlashData = Data> {
|
|
621
621
|
/**
|
|
@@ -665,15 +665,13 @@ type CreateSessionFunction = <Data = SessionData, FlashData = Data>(initialData?
|
|
|
665
665
|
*
|
|
666
666
|
* Note: This function is typically not invoked directly by application code.
|
|
667
667
|
* Instead, use a `SessionStorage` object's `getSession` method.
|
|
668
|
-
*
|
|
669
|
-
* @see https://remix.run/utils/sessions#createsession
|
|
670
668
|
*/
|
|
671
669
|
declare const createSession: CreateSessionFunction;
|
|
672
670
|
type IsSessionFunction = (object: any) => object is Session;
|
|
673
671
|
/**
|
|
674
|
-
* Returns true if an object is a
|
|
672
|
+
* Returns true if an object is a React Router session.
|
|
675
673
|
*
|
|
676
|
-
* @see https://
|
|
674
|
+
* @see https://reactrouter.com/api/utils/isSession
|
|
677
675
|
*/
|
|
678
676
|
declare const isSession: IsSessionFunction;
|
|
679
677
|
/**
|
|
@@ -814,11 +812,6 @@ type ToArgs<T> = Equal<T, {}> extends true ? [] : Partial<T> extends T ? [T] | [
|
|
|
814
812
|
*/
|
|
815
813
|
declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
|
|
816
814
|
|
|
817
|
-
declare function routeRSCServerRequest(request: Request, requestServer: (request: Request) => Promise<Response>, decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>, renderHTML: (getPayload: () => Promise<ServerPayload>) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>): Promise<Response>;
|
|
818
|
-
declare function RSCStaticRouter({ getPayload, }: {
|
|
819
|
-
getPayload: () => Promise<ServerPayload>;
|
|
820
|
-
}): React.JSX.Element | null;
|
|
821
|
-
|
|
822
815
|
declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];
|
|
823
816
|
|
|
824
817
|
type RemixErrorBoundaryProps = React.PropsWithChildren<{
|
|
@@ -852,4 +845,4 @@ declare function getHydrationData(state: {
|
|
|
852
845
|
hasHydrateFallback: boolean;
|
|
853
846
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
854
847
|
|
|
855
|
-
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params$1 as Params, Path, PathMatch, PathPattern,
|
|
848
|
+
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, 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, type ServerBuild, type ServerEntryModule, 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, unstable_RouterContextProvider, 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 };
|