react-router 0.0.0-experimental-e41ede670 → 0.0.0-experimental-4d16b23b6
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 +10 -0
- package/dist/development/{chunk-H3OBLXFX.mjs → chunk-ZEZAGTYN.mjs} +300 -558
- package/dist/development/dom-export.d.mts +3 -13
- package/dist/development/dom-export.d.ts +3 -13
- package/dist/development/dom-export.js +38 -205
- package/dist/development/dom-export.mjs +6 -9
- package/dist/{production/fog-of-war-Bt7PejVF.d.ts → development/fog-of-war-CcF9dOvO.d.ts} +8 -87
- package/dist/development/{fog-of-war-Bt7PejVF.d.ts → fog-of-war-D5Q4Ix4U.d.mts} +8 -87
- package/dist/development/index.d.mts +11 -10
- package/dist/development/index.d.ts +11 -10
- package/dist/development/index.js +300 -558
- package/dist/development/index.mjs +2 -2
- package/dist/development/lib/types/route-module.d.mts +2 -6
- package/dist/development/lib/types/route-module.d.ts +2 -6
- 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-C96IyGKo.d.ts → route-data-JFOfNyPS.d.mts} +15 -37
- package/dist/{production/route-data-C96IyGKo.d.mts → development/route-data-JFOfNyPS.d.ts} +15 -37
- package/dist/production/{chunk-YBZNESR7.mjs → chunk-HMMHPJ7W.mjs} +300 -558
- package/dist/production/dom-export.d.mts +3 -13
- package/dist/production/dom-export.d.ts +3 -13
- package/dist/production/dom-export.js +38 -205
- package/dist/production/dom-export.mjs +6 -9
- package/dist/{development/fog-of-war-Dz4n-TU-.d.mts → production/fog-of-war-CcF9dOvO.d.ts} +8 -87
- package/dist/production/{fog-of-war-Dz4n-TU-.d.mts → fog-of-war-D5Q4Ix4U.d.mts} +8 -87
- package/dist/production/index.d.mts +11 -10
- package/dist/production/index.d.ts +11 -10
- package/dist/production/index.js +300 -558
- package/dist/production/index.mjs +2 -2
- package/dist/production/lib/types/route-module.d.mts +2 -6
- package/dist/production/lib/types/route-module.d.ts +2 -6
- 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-C96IyGKo.d.ts → route-data-JFOfNyPS.d.mts} +15 -37
- package/dist/{development/route-data-C96IyGKo.d.mts → production/route-data-JFOfNyPS.d.ts} +15 -37
- package/package.json +5 -11
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { n as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, am as PatchRoutesOnNavigationFunction, a as Router$1, T as To, g as RelativeRoutingType, v as NonIndexRouteObject, a0 as LazyRouteFunction, u as IndexRouteObject, h as Location, i as Action, al as Navigator, ao as RouteMatch, r as StaticHandlerContext, d as RouteManifest, R as RouteModules, ak as DataRouteObject, aH as RouteModule, $ as HTMLFormMethod, Z as FormEncType, at as PageLinkDescriptor, aI as History, x as GetScrollRestorationKeyFunction, N as NavigateOptions, y as Fetcher, S as SerializeFrom, B as BlockerFunction } from './route-data-JFOfNyPS.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -7,57 +7,18 @@ import { q as RouteObject, D as DefaultRouterContext, F as FutureConfig$1, H as
|
|
|
7
7
|
declare function mapRouteProperties(route: RouteObject): Partial<RouteObject> & {
|
|
8
8
|
hasErrorBoundary: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @category Routers
|
|
12
|
+
*/
|
|
13
|
+
declare function createMemoryRouter(routes: RouteObject[], opts?: {
|
|
14
14
|
basename?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Router context singleton that will be passed to loader/action functions.
|
|
17
|
-
*/
|
|
18
|
-
context?: DefaultRouterContext;
|
|
19
|
-
/**
|
|
20
|
-
* Future flags to enable for the router.
|
|
21
|
-
*/
|
|
22
15
|
future?: Partial<FutureConfig$1>;
|
|
23
|
-
/**
|
|
24
|
-
* Hydration data to initialize the router with if you have already performed
|
|
25
|
-
* data loading on the server.
|
|
26
|
-
*/
|
|
27
16
|
hydrationData?: HydrationState;
|
|
28
|
-
/**
|
|
29
|
-
* Initial entires in the in-memory history stack
|
|
30
|
-
*/
|
|
31
17
|
initialEntries?: InitialEntry[];
|
|
32
|
-
/**
|
|
33
|
-
* Index of `initialEntries` the application should initialize to
|
|
34
|
-
*/
|
|
35
18
|
initialIndex?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Override the default data strategy of loading in parallel.
|
|
38
|
-
* Only intended for advanced usage.
|
|
39
|
-
*/
|
|
40
19
|
dataStrategy?: DataStrategyFunction;
|
|
41
|
-
/**
|
|
42
|
-
* Lazily define portions of the route tree on navigations.
|
|
43
|
-
*/
|
|
44
20
|
patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Create a new data router that manages the application path using an in-memory
|
|
48
|
-
* history stack. Useful for non-browser environments without a DOM API.
|
|
49
|
-
*
|
|
50
|
-
* @category Routers
|
|
51
|
-
*/
|
|
52
|
-
declare function createMemoryRouter(
|
|
53
|
-
/**
|
|
54
|
-
* Application routes
|
|
55
|
-
*/
|
|
56
|
-
routes: RouteObject[],
|
|
57
|
-
/**
|
|
58
|
-
* Router options
|
|
59
|
-
*/
|
|
60
|
-
opts?: MemoryRouterOpts): Router$1;
|
|
21
|
+
}): Router$1;
|
|
61
22
|
interface RouterProviderProps {
|
|
62
23
|
router: Router$1;
|
|
63
24
|
flushSync?: (fn: () => unknown) => undefined;
|
|
@@ -692,59 +653,19 @@ declare function Scripts(props: ScriptsProps): React.JSX.Element | null;
|
|
|
692
653
|
declare global {
|
|
693
654
|
const REACT_ROUTER_VERSION: string;
|
|
694
655
|
}
|
|
695
|
-
/**
|
|
696
|
-
* @category Routers
|
|
697
|
-
*/
|
|
698
656
|
interface DOMRouterOpts {
|
|
699
|
-
/**
|
|
700
|
-
* Basename path for the application.
|
|
701
|
-
*/
|
|
702
657
|
basename?: string;
|
|
703
|
-
/**
|
|
704
|
-
* Router context singleton that will be passed to loader/action functions.
|
|
705
|
-
*/
|
|
706
|
-
context?: DefaultRouterContext;
|
|
707
|
-
/**
|
|
708
|
-
* Future flags to enable for the router.
|
|
709
|
-
*/
|
|
710
658
|
future?: Partial<FutureConfig$1>;
|
|
711
|
-
/**
|
|
712
|
-
* Hydration data to initialize the router with if you have already performed
|
|
713
|
-
* data loading on the server.
|
|
714
|
-
*/
|
|
715
659
|
hydrationData?: HydrationState;
|
|
716
|
-
/**
|
|
717
|
-
* Override the default data strategy of loading in parallel.
|
|
718
|
-
* Only intended for advanced usage.
|
|
719
|
-
*/
|
|
720
660
|
dataStrategy?: DataStrategyFunction;
|
|
721
|
-
/**
|
|
722
|
-
* Lazily define portions of the route tree on navigations.
|
|
723
|
-
*/
|
|
724
661
|
patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction;
|
|
725
|
-
/**
|
|
726
|
-
* Window object override - defaults to the global `window` instance.
|
|
727
|
-
*/
|
|
728
662
|
window?: Window;
|
|
729
663
|
}
|
|
730
664
|
/**
|
|
731
|
-
* Create a new data router that manages the application path via `history.pushState`
|
|
732
|
-
* and `history.replaceState`.
|
|
733
|
-
*
|
|
734
665
|
* @category Routers
|
|
735
666
|
*/
|
|
736
|
-
declare function createBrowserRouter(
|
|
737
|
-
/**
|
|
738
|
-
* Application routes
|
|
739
|
-
*/
|
|
740
|
-
routes: RouteObject[],
|
|
667
|
+
declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts): Router$1;
|
|
741
668
|
/**
|
|
742
|
-
* Router options
|
|
743
|
-
*/
|
|
744
|
-
opts?: DOMRouterOpts): Router$1;
|
|
745
|
-
/**
|
|
746
|
-
* Create a new data router that manages the application path via the URL hash
|
|
747
|
-
*
|
|
748
669
|
* @category Routers
|
|
749
670
|
*/
|
|
750
671
|
declare function createHashRouter(routes: RouteObject[], opts?: DOMRouterOpts): Router$1;
|
|
@@ -1674,4 +1595,4 @@ declare global {
|
|
|
1674
1595
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1675
1596
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1676
1597
|
|
|
1677
|
-
export {
|
|
1598
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps 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 SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { n as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, am as PatchRoutesOnNavigationFunction, a as Router$1, T as To, g as RelativeRoutingType, v as NonIndexRouteObject, a0 as LazyRouteFunction, u as IndexRouteObject, h as Location, i as Action, al as Navigator, ao as RouteMatch, r as StaticHandlerContext, d as RouteManifest, R as RouteModules, ak as DataRouteObject, aH as RouteModule, $ as HTMLFormMethod, Z as FormEncType, at as PageLinkDescriptor, aI as History, x as GetScrollRestorationKeyFunction, N as NavigateOptions, y as Fetcher, S as SerializeFrom, B as BlockerFunction } from './route-data-JFOfNyPS.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -7,57 +7,18 @@ import { q as RouteObject, D as DefaultRouterContext, F as FutureConfig$1, H as
|
|
|
7
7
|
declare function mapRouteProperties(route: RouteObject): Partial<RouteObject> & {
|
|
8
8
|
hasErrorBoundary: boolean;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/**
|
|
11
|
+
* @category Routers
|
|
12
|
+
*/
|
|
13
|
+
declare function createMemoryRouter(routes: RouteObject[], opts?: {
|
|
14
14
|
basename?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Router context singleton that will be passed to loader/action functions.
|
|
17
|
-
*/
|
|
18
|
-
context?: DefaultRouterContext;
|
|
19
|
-
/**
|
|
20
|
-
* Future flags to enable for the router.
|
|
21
|
-
*/
|
|
22
15
|
future?: Partial<FutureConfig$1>;
|
|
23
|
-
/**
|
|
24
|
-
* Hydration data to initialize the router with if you have already performed
|
|
25
|
-
* data loading on the server.
|
|
26
|
-
*/
|
|
27
16
|
hydrationData?: HydrationState;
|
|
28
|
-
/**
|
|
29
|
-
* Initial entires in the in-memory history stack
|
|
30
|
-
*/
|
|
31
17
|
initialEntries?: InitialEntry[];
|
|
32
|
-
/**
|
|
33
|
-
* Index of `initialEntries` the application should initialize to
|
|
34
|
-
*/
|
|
35
18
|
initialIndex?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Override the default data strategy of loading in parallel.
|
|
38
|
-
* Only intended for advanced usage.
|
|
39
|
-
*/
|
|
40
19
|
dataStrategy?: DataStrategyFunction;
|
|
41
|
-
/**
|
|
42
|
-
* Lazily define portions of the route tree on navigations.
|
|
43
|
-
*/
|
|
44
20
|
patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Create a new data router that manages the application path using an in-memory
|
|
48
|
-
* history stack. Useful for non-browser environments without a DOM API.
|
|
49
|
-
*
|
|
50
|
-
* @category Routers
|
|
51
|
-
*/
|
|
52
|
-
declare function createMemoryRouter(
|
|
53
|
-
/**
|
|
54
|
-
* Application routes
|
|
55
|
-
*/
|
|
56
|
-
routes: RouteObject[],
|
|
57
|
-
/**
|
|
58
|
-
* Router options
|
|
59
|
-
*/
|
|
60
|
-
opts?: MemoryRouterOpts): Router$1;
|
|
21
|
+
}): Router$1;
|
|
61
22
|
interface RouterProviderProps {
|
|
62
23
|
router: Router$1;
|
|
63
24
|
flushSync?: (fn: () => unknown) => undefined;
|
|
@@ -692,59 +653,19 @@ declare function Scripts(props: ScriptsProps): React.JSX.Element | null;
|
|
|
692
653
|
declare global {
|
|
693
654
|
const REACT_ROUTER_VERSION: string;
|
|
694
655
|
}
|
|
695
|
-
/**
|
|
696
|
-
* @category Routers
|
|
697
|
-
*/
|
|
698
656
|
interface DOMRouterOpts {
|
|
699
|
-
/**
|
|
700
|
-
* Basename path for the application.
|
|
701
|
-
*/
|
|
702
657
|
basename?: string;
|
|
703
|
-
/**
|
|
704
|
-
* Router context singleton that will be passed to loader/action functions.
|
|
705
|
-
*/
|
|
706
|
-
context?: DefaultRouterContext;
|
|
707
|
-
/**
|
|
708
|
-
* Future flags to enable for the router.
|
|
709
|
-
*/
|
|
710
658
|
future?: Partial<FutureConfig$1>;
|
|
711
|
-
/**
|
|
712
|
-
* Hydration data to initialize the router with if you have already performed
|
|
713
|
-
* data loading on the server.
|
|
714
|
-
*/
|
|
715
659
|
hydrationData?: HydrationState;
|
|
716
|
-
/**
|
|
717
|
-
* Override the default data strategy of loading in parallel.
|
|
718
|
-
* Only intended for advanced usage.
|
|
719
|
-
*/
|
|
720
660
|
dataStrategy?: DataStrategyFunction;
|
|
721
|
-
/**
|
|
722
|
-
* Lazily define portions of the route tree on navigations.
|
|
723
|
-
*/
|
|
724
661
|
patchRoutesOnNavigation?: PatchRoutesOnNavigationFunction;
|
|
725
|
-
/**
|
|
726
|
-
* Window object override - defaults to the global `window` instance.
|
|
727
|
-
*/
|
|
728
662
|
window?: Window;
|
|
729
663
|
}
|
|
730
664
|
/**
|
|
731
|
-
* Create a new data router that manages the application path via `history.pushState`
|
|
732
|
-
* and `history.replaceState`.
|
|
733
|
-
*
|
|
734
665
|
* @category Routers
|
|
735
666
|
*/
|
|
736
|
-
declare function createBrowserRouter(
|
|
737
|
-
/**
|
|
738
|
-
* Application routes
|
|
739
|
-
*/
|
|
740
|
-
routes: RouteObject[],
|
|
667
|
+
declare function createBrowserRouter(routes: RouteObject[], opts?: DOMRouterOpts): Router$1;
|
|
741
668
|
/**
|
|
742
|
-
* Router options
|
|
743
|
-
*/
|
|
744
|
-
opts?: DOMRouterOpts): Router$1;
|
|
745
|
-
/**
|
|
746
|
-
* Create a new data router that manages the application path via the URL hash
|
|
747
|
-
*
|
|
748
669
|
* @category Routers
|
|
749
670
|
*/
|
|
750
671
|
declare function createHashRouter(routes: RouteObject[], opts?: DOMRouterOpts): Router$1;
|
|
@@ -1674,4 +1595,4 @@ declare global {
|
|
|
1674
1595
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1675
1596
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1676
1597
|
|
|
1677
|
-
export {
|
|
1598
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps 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 SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router,
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export {
|
|
1
|
+
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-JFOfNyPS.mjs';
|
|
2
|
+
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-JFOfNyPS.mjs';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-D5Q4Ix4U.mjs';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-D5Q4Ix4U.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
|
-
import { A as AppLoadContext } from './data-CQbyyGzl.mjs';
|
|
8
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
9
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
|
+
import { A as AppLoadContext$1 } from './data-CQbyyGzl.mjs';
|
|
10
10
|
|
|
11
11
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
12
12
|
declare function getSingleFetchDataStrategy(manifest: AssetsManifest, routeModules: RouteModules, getRouter: () => Router): DataStrategyFunction;
|
|
@@ -44,7 +44,6 @@ type RouteHandle = unknown;
|
|
|
44
44
|
interface EntryRouteModule {
|
|
45
45
|
clientAction?: ClientActionFunction;
|
|
46
46
|
clientLoader?: ClientLoaderFunction;
|
|
47
|
-
clientMiddleware?: ClientMiddlewareFunction[];
|
|
48
47
|
ErrorBoundary?: any;
|
|
49
48
|
HydrateFallback?: any;
|
|
50
49
|
Layout?: any;
|
|
@@ -59,7 +58,6 @@ interface ServerRouteModule extends EntryRouteModule {
|
|
|
59
58
|
[name: string]: string;
|
|
60
59
|
};
|
|
61
60
|
loader?: LoaderFunction;
|
|
62
|
-
middleware?: MiddlewareFunction[];
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -84,7 +82,7 @@ interface ServerBuild {
|
|
|
84
82
|
isSpaMode: boolean;
|
|
85
83
|
}
|
|
86
84
|
interface HandleDocumentRequestFunction {
|
|
87
|
-
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
|
|
85
|
+
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext$1): Promise<Response> | Response;
|
|
88
86
|
}
|
|
89
87
|
interface HandleDataRequestFunction {
|
|
90
88
|
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
@@ -536,6 +534,9 @@ interface StubNonIndexRouteObject extends Omit<NonIndexRouteObject, "loader" | "
|
|
|
536
534
|
links?: LinksFunction;
|
|
537
535
|
}
|
|
538
536
|
type StubRouteObject = StubIndexRouteObject | StubNonIndexRouteObject;
|
|
537
|
+
interface AppLoadContext {
|
|
538
|
+
[key: string]: unknown;
|
|
539
|
+
}
|
|
539
540
|
interface RoutesTestStubProps {
|
|
540
541
|
/**
|
|
541
542
|
* The initial entries in the history stack. This allows you to start a test with
|
|
@@ -631,7 +632,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
631
632
|
*/
|
|
632
633
|
declare const isCookie: IsCookieFunction;
|
|
633
634
|
|
|
634
|
-
type RequestHandler = (request: Request, loadContext?: AppLoadContext) => Promise<Response>;
|
|
635
|
+
type RequestHandler = (request: Request, loadContext?: AppLoadContext$1) => Promise<Response>;
|
|
635
636
|
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
636
637
|
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
637
638
|
|
|
@@ -835,4 +836,4 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
835
836
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
836
837
|
}
|
|
837
838
|
|
|
838
|
-
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction,
|
|
839
|
+
export { ActionFunction, ActionFunctionArgs, AppLoadContext$1 as AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, 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, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, 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,12 +1,12 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router,
|
|
2
|
-
export {
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export {
|
|
1
|
+
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-JFOfNyPS.js';
|
|
2
|
+
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-JFOfNyPS.js';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-CcF9dOvO.js';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-CcF9dOvO.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
|
-
import { A as AppLoadContext } from './data-CQbyyGzl.js';
|
|
8
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
9
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
|
+
import { A as AppLoadContext$1 } from './data-CQbyyGzl.js';
|
|
10
10
|
|
|
11
11
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
12
12
|
declare function getSingleFetchDataStrategy(manifest: AssetsManifest, routeModules: RouteModules, getRouter: () => Router): DataStrategyFunction;
|
|
@@ -44,7 +44,6 @@ type RouteHandle = unknown;
|
|
|
44
44
|
interface EntryRouteModule {
|
|
45
45
|
clientAction?: ClientActionFunction;
|
|
46
46
|
clientLoader?: ClientLoaderFunction;
|
|
47
|
-
clientMiddleware?: ClientMiddlewareFunction[];
|
|
48
47
|
ErrorBoundary?: any;
|
|
49
48
|
HydrateFallback?: any;
|
|
50
49
|
Layout?: any;
|
|
@@ -59,7 +58,6 @@ interface ServerRouteModule extends EntryRouteModule {
|
|
|
59
58
|
[name: string]: string;
|
|
60
59
|
};
|
|
61
60
|
loader?: LoaderFunction;
|
|
62
|
-
middleware?: MiddlewareFunction[];
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -84,7 +82,7 @@ interface ServerBuild {
|
|
|
84
82
|
isSpaMode: boolean;
|
|
85
83
|
}
|
|
86
84
|
interface HandleDocumentRequestFunction {
|
|
87
|
-
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext): Promise<Response> | Response;
|
|
85
|
+
(request: Request, responseStatusCode: number, responseHeaders: Headers, context: EntryContext, loadContext: AppLoadContext$1): Promise<Response> | Response;
|
|
88
86
|
}
|
|
89
87
|
interface HandleDataRequestFunction {
|
|
90
88
|
(response: Response, args: LoaderFunctionArgs | ActionFunctionArgs): Promise<Response> | Response;
|
|
@@ -536,6 +534,9 @@ interface StubNonIndexRouteObject extends Omit<NonIndexRouteObject, "loader" | "
|
|
|
536
534
|
links?: LinksFunction;
|
|
537
535
|
}
|
|
538
536
|
type StubRouteObject = StubIndexRouteObject | StubNonIndexRouteObject;
|
|
537
|
+
interface AppLoadContext {
|
|
538
|
+
[key: string]: unknown;
|
|
539
|
+
}
|
|
539
540
|
interface RoutesTestStubProps {
|
|
540
541
|
/**
|
|
541
542
|
* The initial entries in the history stack. This allows you to start a test with
|
|
@@ -631,7 +632,7 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
631
632
|
*/
|
|
632
633
|
declare const isCookie: IsCookieFunction;
|
|
633
634
|
|
|
634
|
-
type RequestHandler = (request: Request, loadContext?: AppLoadContext) => Promise<Response>;
|
|
635
|
+
type RequestHandler = (request: Request, loadContext?: AppLoadContext$1) => Promise<Response>;
|
|
635
636
|
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
636
637
|
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
637
638
|
|
|
@@ -835,4 +836,4 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
835
836
|
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
836
837
|
}
|
|
837
838
|
|
|
838
|
-
export { ActionFunction, ActionFunctionArgs, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction,
|
|
839
|
+
export { ActionFunction, ActionFunctionArgs, AppLoadContext$1 as AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, type HeadersArgs, type HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, Path, PathMatch, PathPattern, 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, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getSingleFetchDataStrategy as UNSAFE_getSingleFetchDataStrategy, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, isCookie, isSession, 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 };
|