react-router 0.0.0-experimental-3b3f4b74e → 0.0.0-experimental-54021f573
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/{chunk-QEBY3KIW.mjs → chunk-2HWJLR5J.mjs} +37 -2
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.d.ts +1 -1
- package/dist/development/dom-export.js +1 -1
- package/dist/development/dom-export.mjs +2 -2
- package/dist/development/{fog-of-war-DwsWwUlp.d.mts → fog-of-war-C5L_Yd5M.d.mts} +90 -81
- package/dist/{production/fog-of-war-BHTxbJsu.d.ts → development/fog-of-war-DrUCUQQ-.d.ts} +90 -81
- package/dist/development/index.d.mts +2 -2
- package/dist/development/index.d.ts +2 -2
- package/dist/development/index.js +40 -2
- package/dist/development/index.mjs +8 -2
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/development/rsc-export.js +49 -12
- package/dist/development/rsc-export.mjs +49 -12
- package/dist/production/{chunk-EXTQWT5D.mjs → chunk-NUTCVJH7.mjs} +37 -2
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.d.ts +1 -1
- package/dist/production/dom-export.js +1 -1
- package/dist/production/dom-export.mjs +2 -2
- package/dist/production/{fog-of-war-DwsWwUlp.d.mts → fog-of-war-C5L_Yd5M.d.mts} +90 -81
- package/dist/{development/fog-of-war-BHTxbJsu.d.ts → production/fog-of-war-DrUCUQQ-.d.ts} +90 -81
- package/dist/production/index.d.mts +2 -2
- package/dist/production/index.d.ts +2 -2
- package/dist/production/index.js +40 -2
- package/dist/production/index.mjs +8 -2
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/dist/production/rsc-export.js +49 -12
- package/dist/production/rsc-export.mjs +49 -12
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-54021f573
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -5888,6 +5888,38 @@ function ResolveAwait({
|
|
|
5888
5888
|
let toRender = typeof children === "function" ? children(data2) : children;
|
|
5889
5889
|
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, toRender);
|
|
5890
5890
|
}
|
|
5891
|
+
function WithRouteComponentProps({
|
|
5892
|
+
children
|
|
5893
|
+
}) {
|
|
5894
|
+
let props = {
|
|
5895
|
+
loaderData: useLoaderData(),
|
|
5896
|
+
actionData: useActionData(),
|
|
5897
|
+
params: useParams(),
|
|
5898
|
+
matches: useMatches()
|
|
5899
|
+
};
|
|
5900
|
+
return React3.cloneElement(children, props);
|
|
5901
|
+
}
|
|
5902
|
+
function WithHydrateFallbackProps({
|
|
5903
|
+
children
|
|
5904
|
+
}) {
|
|
5905
|
+
let props = {
|
|
5906
|
+
loaderData: useLoaderData(),
|
|
5907
|
+
actionData: useActionData(),
|
|
5908
|
+
params: useParams()
|
|
5909
|
+
};
|
|
5910
|
+
return React3.cloneElement(children, props);
|
|
5911
|
+
}
|
|
5912
|
+
function WithErrorBoundaryProps({
|
|
5913
|
+
children
|
|
5914
|
+
}) {
|
|
5915
|
+
let props = {
|
|
5916
|
+
loaderData: useLoaderData(),
|
|
5917
|
+
actionData: useActionData(),
|
|
5918
|
+
params: useParams(),
|
|
5919
|
+
error: useRouteError()
|
|
5920
|
+
};
|
|
5921
|
+
return React3.cloneElement(children, props);
|
|
5922
|
+
}
|
|
5891
5923
|
function createRoutesFromChildren(children, parentPath = []) {
|
|
5892
5924
|
let routes = [];
|
|
5893
5925
|
React3.Children.forEach(children, (element, index) => {
|
|
@@ -7975,7 +8007,7 @@ function mergeRefs(...refs) {
|
|
|
7975
8007
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7976
8008
|
try {
|
|
7977
8009
|
if (isBrowser) {
|
|
7978
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8010
|
+
window.__reactRouterVersion = "0.0.0-experimental-54021f573";
|
|
7979
8011
|
}
|
|
7980
8012
|
} catch (e) {
|
|
7981
8013
|
}
|
|
@@ -11406,6 +11438,9 @@ export {
|
|
|
11406
11438
|
Router,
|
|
11407
11439
|
Routes,
|
|
11408
11440
|
Await,
|
|
11441
|
+
WithRouteComponentProps,
|
|
11442
|
+
WithHydrateFallbackProps,
|
|
11443
|
+
WithErrorBoundaryProps,
|
|
11409
11444
|
createRoutesFromChildren,
|
|
11410
11445
|
createRoutesFromElements,
|
|
11411
11446
|
renderMatches,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-C5L_Yd5M.mjs';
|
|
3
3
|
import { R as RouterInit } from './route-data-BIYebJr3.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-DrUCUQQ-.js';
|
|
3
3
|
import { R as RouterInit } from './route-data-BIYebJr3.js';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-54021f573
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
invariant,
|
|
26
26
|
mapRouteProperties,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-2HWJLR5J.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { k as RouteObject, R as RouterInit, F as FutureConfig$1,
|
|
2
|
+
import { p as StaticHandlerContext, c as RouteManifest, b as RouteModules, H as HydrationState, G as DataRouteObject, J as ClientLoaderFunction, k as RouteObject, R as RouterInit, F as FutureConfig$1, 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, 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, aw as ClientActionFunction, x as LinksFunction, w as MetaFunction, aa as ShouldRevalidateFunction, j as Params } from './route-data-BIYebJr3.mjs';
|
|
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;
|
|
3
81
|
|
|
4
82
|
/**
|
|
5
83
|
* @private
|
|
@@ -193,7 +271,7 @@ type RouteProps = PathRouteProps | LayoutRouteProps | IndexRouteProps;
|
|
|
193
271
|
*
|
|
194
272
|
* @category Components
|
|
195
273
|
*/
|
|
196
|
-
declare function Route
|
|
274
|
+
declare function Route(_props: RouteProps): React.ReactElement | null;
|
|
197
275
|
/**
|
|
198
276
|
* @category Types
|
|
199
277
|
*/
|
|
@@ -393,6 +471,15 @@ function Book() {
|
|
|
393
471
|
|
|
394
472
|
*/
|
|
395
473
|
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>>;
|
|
396
483
|
/**
|
|
397
484
|
* Creates a route config from a React "children" object, which is usually
|
|
398
485
|
* either a `<Route>` element or an array of them. Used internally by
|
|
@@ -412,84 +499,6 @@ declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
|
412
499
|
*/
|
|
413
500
|
declare function renderMatches(matches: RouteMatch[] | null): React.ReactElement | null;
|
|
414
501
|
|
|
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
|
-
|
|
493
502
|
type ParamKeyValuePair = [string, string];
|
|
494
503
|
type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
|
495
504
|
/**
|
|
@@ -1766,4 +1775,4 @@ declare global {
|
|
|
1766
1775
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1767
1776
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean): void;
|
|
1768
1777
|
|
|
1769
|
-
export { useLinkClickHandler 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 SubmitFunction as G, type HashRouterProps as H, type IndexRouteProps as I, type FetcherSubmitFunction as J, type FetcherWithComponents as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, createBrowserRouter as Q, type RouterProviderProps as R, type ServerPayload as S, createHashRouter as T, BrowserRouter as U, HashRouter as V, Link as W, HistoryRouter as X, NavLink as Y, Form as Z, ScrollRestoration as _, type Route as a, useSearchParams as a0, useSubmit as a1, useFormAction as a2, useFetcher as a3, useFetchers as a4, useBeforeUnload as a5, usePrompt as a6, useViewTransitionState as a7, type FetcherSubmitOptions as a8, type ParamKeyValuePair as a9, type SubmitOptions as aa, type URLSearchParamsInit as ab, type SubmitTarget as ac, createSearchParams as ad, Meta as ae, Links as af, Scripts as ag, PrefetchPageLinks as ah, type ScriptsProps as ai, type DecodeServerResponseFunction as aj, type EncodeActionFunction as ak, createCallServer as al, RSCHydratedRouter as am, getServerStream as an,
|
|
1778
|
+
export { useLinkClickHandler 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 SubmitFunction as G, type HashRouterProps as H, type IndexRouteProps as I, type FetcherSubmitFunction as J, type FetcherWithComponents as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, createBrowserRouter as Q, type RouterProviderProps as R, type ServerPayload as S, createHashRouter as T, BrowserRouter as U, HashRouter as V, Link as W, HistoryRouter as X, NavLink as Y, Form as Z, ScrollRestoration as _, type Route$1 as a, useSearchParams as a0, useSubmit as a1, useFormAction as a2, useFetcher as a3, useFetchers as a4, useBeforeUnload as a5, usePrompt as a6, useViewTransitionState as a7, type FetcherSubmitOptions as a8, type ParamKeyValuePair as a9, type SubmitOptions as aa, type URLSearchParamsInit as ab, type SubmitTarget as ac, createSearchParams as ad, Meta as ae, Links as af, Scripts as ag, PrefetchPageLinks as ah, type ScriptsProps as ai, type DecodeServerResponseFunction as aj, type EncodeActionFunction as ak, createCallServer as al, RSCHydratedRouter as am, getServerStream as an, WithRouteComponentProps as ao, WithHydrateFallbackProps as ap, WithErrorBoundaryProps as aq, hydrationRouteProperties as ar, mapRouteProperties as as, FrameworkContext as at, getPatchRoutesOnNavigationFunction as au, useFogOFWarDiscovery as av, createClientRoutes as aw, createClientRoutesWithHMRRevalidationOptOut as ax, shouldHydrateRouteLoader as ay, useScrollRestoration as az, 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 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 ScrollRestorationProps as y, type SetURLSearchParams as z };
|
|
@@ -1,5 +1,83 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { k as RouteObject, R as RouterInit, F as FutureConfig$1,
|
|
2
|
+
import { p as StaticHandlerContext, c as RouteManifest, b as RouteModules, H as HydrationState, G as DataRouteObject, J as ClientLoaderFunction, k as RouteObject, R as RouterInit, F as FutureConfig$1, 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, 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, aw as ClientActionFunction, x as LinksFunction, w as MetaFunction, aa as ShouldRevalidateFunction, j as Params } from './route-data-BIYebJr3.js';
|
|
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;
|
|
3
81
|
|
|
4
82
|
/**
|
|
5
83
|
* @private
|
|
@@ -193,7 +271,7 @@ type RouteProps = PathRouteProps | LayoutRouteProps | IndexRouteProps;
|
|
|
193
271
|
*
|
|
194
272
|
* @category Components
|
|
195
273
|
*/
|
|
196
|
-
declare function Route
|
|
274
|
+
declare function Route(_props: RouteProps): React.ReactElement | null;
|
|
197
275
|
/**
|
|
198
276
|
* @category Types
|
|
199
277
|
*/
|
|
@@ -393,6 +471,15 @@ function Book() {
|
|
|
393
471
|
|
|
394
472
|
*/
|
|
395
473
|
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>>;
|
|
396
483
|
/**
|
|
397
484
|
* Creates a route config from a React "children" object, which is usually
|
|
398
485
|
* either a `<Route>` element or an array of them. Used internally by
|
|
@@ -412,84 +499,6 @@ declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
|
412
499
|
*/
|
|
413
500
|
declare function renderMatches(matches: RouteMatch[] | null): React.ReactElement | null;
|
|
414
501
|
|
|
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
|
-
|
|
493
502
|
type ParamKeyValuePair = [string, string];
|
|
494
503
|
type URLSearchParamsInit = string | ParamKeyValuePair[] | Record<string, string | string[]> | URLSearchParams;
|
|
495
504
|
/**
|
|
@@ -1766,4 +1775,4 @@ declare global {
|
|
|
1766
1775
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1767
1776
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, isSpaMode: boolean): void;
|
|
1768
1777
|
|
|
1769
|
-
export { useLinkClickHandler 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 SubmitFunction as G, type HashRouterProps as H, type IndexRouteProps as I, type FetcherSubmitFunction as J, type FetcherWithComponents as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, createBrowserRouter as Q, type RouterProviderProps as R, type ServerPayload as S, createHashRouter as T, BrowserRouter as U, HashRouter as V, Link as W, HistoryRouter as X, NavLink as Y, Form as Z, ScrollRestoration as _, type Route as a, useSearchParams as a0, useSubmit as a1, useFormAction as a2, useFetcher as a3, useFetchers as a4, useBeforeUnload as a5, usePrompt as a6, useViewTransitionState as a7, type FetcherSubmitOptions as a8, type ParamKeyValuePair as a9, type SubmitOptions as aa, type URLSearchParamsInit as ab, type SubmitTarget as ac, createSearchParams as ad, Meta as ae, Links as af, Scripts as ag, PrefetchPageLinks as ah, type ScriptsProps as ai, type DecodeServerResponseFunction as aj, type EncodeActionFunction as ak, createCallServer as al, RSCHydratedRouter as am, getServerStream as an,
|
|
1778
|
+
export { useLinkClickHandler 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 SubmitFunction as G, type HashRouterProps as H, type IndexRouteProps as I, type FetcherSubmitFunction as J, type FetcherWithComponents as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, createBrowserRouter as Q, type RouterProviderProps as R, type ServerPayload as S, createHashRouter as T, BrowserRouter as U, HashRouter as V, Link as W, HistoryRouter as X, NavLink as Y, Form as Z, ScrollRestoration as _, type Route$1 as a, useSearchParams as a0, useSubmit as a1, useFormAction as a2, useFetcher as a3, useFetchers as a4, useBeforeUnload as a5, usePrompt as a6, useViewTransitionState as a7, type FetcherSubmitOptions as a8, type ParamKeyValuePair as a9, type SubmitOptions as aa, type URLSearchParamsInit as ab, type SubmitTarget as ac, createSearchParams as ad, Meta as ae, Links as af, Scripts as ag, PrefetchPageLinks as ah, type ScriptsProps as ai, type DecodeServerResponseFunction as aj, type EncodeActionFunction as ak, createCallServer as al, RSCHydratedRouter as am, getServerStream as an, WithRouteComponentProps as ao, WithHydrateFallbackProps as ap, WithErrorBoundaryProps as aq, hydrationRouteProperties as ar, mapRouteProperties as as, FrameworkContext as at, getPatchRoutesOnNavigationFunction as au, useFogOFWarDiscovery as av, createClientRoutes as aw, createClientRoutesWithHMRRevalidationOptOut as ax, shouldHydrateRouteLoader as ay, useScrollRestoration as az, 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 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 ScrollRestorationProps as y, type SetURLSearchParams as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-BIYebJr3.mjs';
|
|
2
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-BIYebJr3.mjs';
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss, S as ServerPayload } from './fog-of-war-
|
|
4
|
-
export { g as Await, b as AwaitProps, U as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, aj as DecodeServerResponseFunction, ak as EncodeActionFunction, w as FetcherFormProps, J as FetcherSubmitFunction, a8 as FetcherSubmitOptions, K as FetcherWithComponents, Z as Form, x as FormProps, V as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, W as Link, t as LinkProps, af as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ae as Meta, Y as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a9 as ParamKeyValuePair, P as PathRouteProps, ah as PrefetchPageLinks, am as RSCHydratedRouter, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ag as Scripts, ai as ScriptsProps, _ as ScrollRestoration, y as ScrollRestorationProps, z as SetURLSearchParams, G as SubmitFunction, aa as SubmitOptions, ac as SubmitTarget,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss, S as ServerPayload } from './fog-of-war-C5L_Yd5M.mjs';
|
|
4
|
+
export { g as Await, b as AwaitProps, U as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, aj as DecodeServerResponseFunction, ak as EncodeActionFunction, w as FetcherFormProps, J as FetcherSubmitFunction, a8 as FetcherSubmitOptions, K as FetcherWithComponents, Z as Form, x as FormProps, V as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, W as Link, t as LinkProps, af as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ae as Meta, Y as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a9 as ParamKeyValuePair, P as PathRouteProps, ah as PrefetchPageLinks, am as RSCHydratedRouter, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ag as Scripts, ai as ScriptsProps, _ as ScrollRestoration, y as ScrollRestorationProps, z as SetURLSearchParams, G as SubmitFunction, aa as SubmitOptions, ac as SubmitTarget, at as UNSAFE_FrameworkContext, aq as UNSAFE_WithErrorBoundaryProps, ap as UNSAFE_WithHydrateFallbackProps, ao as UNSAFE_WithRouteComponentProps, aw as UNSAFE_createClientRoutes, ax as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, au as UNSAFE_getPatchRoutesOnNavigationFunction, ar as UNSAFE_hydrationRouteProperties, as as UNSAFE_mapRouteProperties, ay as UNSAFE_shouldHydrateRouteLoader, av as UNSAFE_useFogOFWarDiscovery, az as UNSAFE_useScrollRestoration, ab as URLSearchParamsInit, Q as createBrowserRouter, al as createCallServer, T as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ad as createSearchParams, an as getServerStream, r as renderMatches, X as unstable_HistoryRouter, a6 as unstable_usePrompt, a5 as useBeforeUnload, a3 as useFetcher, a4 as useFetchers, a2 as useFormAction, $ as useLinkClickHandler, a0 as useSearchParams, a1 as useSubmit, a7 as useViewTransitionState } from './fog-of-war-C5L_Yd5M.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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-BIYebJr3.js';
|
|
2
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-BIYebJr3.js';
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss, S as ServerPayload } from './fog-of-war-
|
|
4
|
-
export { g as Await, b as AwaitProps, U as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, aj as DecodeServerResponseFunction, ak as EncodeActionFunction, w as FetcherFormProps, J as FetcherSubmitFunction, a8 as FetcherSubmitOptions, K as FetcherWithComponents, Z as Form, x as FormProps, V as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, W as Link, t as LinkProps, af as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ae as Meta, Y as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a9 as ParamKeyValuePair, P as PathRouteProps, ah as PrefetchPageLinks, am as RSCHydratedRouter, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ag as Scripts, ai as ScriptsProps, _ as ScrollRestoration, y as ScrollRestorationProps, z as SetURLSearchParams, G as SubmitFunction, aa as SubmitOptions, ac as SubmitTarget,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext, C as CriticalCss, S as ServerPayload } from './fog-of-war-DrUCUQQ-.js';
|
|
4
|
+
export { g as Await, b as AwaitProps, U as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, aj as DecodeServerResponseFunction, ak as EncodeActionFunction, w as FetcherFormProps, J as FetcherSubmitFunction, a8 as FetcherSubmitOptions, K as FetcherWithComponents, Z as Form, x as FormProps, V as HashRouter, H as HashRouterProps, s as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, W as Link, t as LinkProps, af as Links, h as MemoryRouter, M as MemoryRouterOpts, c as MemoryRouterProps, ae as Meta, Y as NavLink, u as NavLinkProps, v as NavLinkRenderProps, i as Navigate, N as NavigateProps, j as Outlet, O as OutletProps, a9 as ParamKeyValuePair, P as PathRouteProps, ah as PrefetchPageLinks, am as RSCHydratedRouter, k as Route, d as RouteProps, l as Router, e as RouterProps, m as RouterProvider, R as RouterProviderProps, n as Routes, f as RoutesProps, ag as Scripts, ai as ScriptsProps, _ as ScrollRestoration, y as ScrollRestorationProps, z as SetURLSearchParams, G as SubmitFunction, aa as SubmitOptions, ac as SubmitTarget, at as UNSAFE_FrameworkContext, aq as UNSAFE_WithErrorBoundaryProps, ap as UNSAFE_WithHydrateFallbackProps, ao as UNSAFE_WithRouteComponentProps, aw as UNSAFE_createClientRoutes, ax as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, au as UNSAFE_getPatchRoutesOnNavigationFunction, ar as UNSAFE_hydrationRouteProperties, as as UNSAFE_mapRouteProperties, ay as UNSAFE_shouldHydrateRouteLoader, av as UNSAFE_useFogOFWarDiscovery, az as UNSAFE_useScrollRestoration, ab as URLSearchParamsInit, Q as createBrowserRouter, al as createCallServer, T as createHashRouter, o as createMemoryRouter, p as createRoutesFromChildren, q as createRoutesFromElements, ad as createSearchParams, an as getServerStream, r as renderMatches, X as unstable_HistoryRouter, a6 as unstable_usePrompt, a5 as useBeforeUnload, a3 as useFetcher, a4 as useFetchers, a2 as useFormAction, $ as useLinkClickHandler, a0 as useSearchParams, a1 as useSubmit, a7 as useViewTransitionState } from './fog-of-war-DrUCUQQ-.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-54021f573
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -86,6 +86,9 @@ __export(react_router_exports, {
|
|
|
86
86
|
UNSAFE_ServerMode: () => ServerMode,
|
|
87
87
|
UNSAFE_SingleFetchRedirectSymbol: () => SingleFetchRedirectSymbol,
|
|
88
88
|
UNSAFE_ViewTransitionContext: () => ViewTransitionContext,
|
|
89
|
+
UNSAFE_WithErrorBoundaryProps: () => WithErrorBoundaryProps,
|
|
90
|
+
UNSAFE_WithHydrateFallbackProps: () => WithHydrateFallbackProps,
|
|
91
|
+
UNSAFE_WithRouteComponentProps: () => WithRouteComponentProps,
|
|
89
92
|
UNSAFE_createBrowserHistory: () => createBrowserHistory,
|
|
90
93
|
UNSAFE_createClientRoutes: () => createClientRoutes,
|
|
91
94
|
UNSAFE_createClientRoutesWithHMRRevalidationOptOut: () => createClientRoutesWithHMRRevalidationOptOut,
|
|
@@ -6044,6 +6047,38 @@ function ResolveAwait({
|
|
|
6044
6047
|
let toRender = typeof children === "function" ? children(data2) : children;
|
|
6045
6048
|
return /* @__PURE__ */ React3.createElement(React3.Fragment, null, toRender);
|
|
6046
6049
|
}
|
|
6050
|
+
function WithRouteComponentProps({
|
|
6051
|
+
children
|
|
6052
|
+
}) {
|
|
6053
|
+
let props = {
|
|
6054
|
+
loaderData: useLoaderData(),
|
|
6055
|
+
actionData: useActionData(),
|
|
6056
|
+
params: useParams(),
|
|
6057
|
+
matches: useMatches()
|
|
6058
|
+
};
|
|
6059
|
+
return React3.cloneElement(children, props);
|
|
6060
|
+
}
|
|
6061
|
+
function WithHydrateFallbackProps({
|
|
6062
|
+
children
|
|
6063
|
+
}) {
|
|
6064
|
+
let props = {
|
|
6065
|
+
loaderData: useLoaderData(),
|
|
6066
|
+
actionData: useActionData(),
|
|
6067
|
+
params: useParams()
|
|
6068
|
+
};
|
|
6069
|
+
return React3.cloneElement(children, props);
|
|
6070
|
+
}
|
|
6071
|
+
function WithErrorBoundaryProps({
|
|
6072
|
+
children
|
|
6073
|
+
}) {
|
|
6074
|
+
let props = {
|
|
6075
|
+
loaderData: useLoaderData(),
|
|
6076
|
+
actionData: useActionData(),
|
|
6077
|
+
params: useParams(),
|
|
6078
|
+
error: useRouteError()
|
|
6079
|
+
};
|
|
6080
|
+
return React3.cloneElement(children, props);
|
|
6081
|
+
}
|
|
6047
6082
|
function createRoutesFromChildren(children, parentPath = []) {
|
|
6048
6083
|
let routes = [];
|
|
6049
6084
|
React3.Children.forEach(children, (element, index) => {
|
|
@@ -8131,7 +8166,7 @@ function mergeRefs(...refs) {
|
|
|
8131
8166
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
8132
8167
|
try {
|
|
8133
8168
|
if (isBrowser) {
|
|
8134
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8169
|
+
window.__reactRouterVersion = "0.0.0-experimental-54021f573";
|
|
8135
8170
|
}
|
|
8136
8171
|
} catch (e) {
|
|
8137
8172
|
}
|
|
@@ -11541,6 +11576,9 @@ function deserializeErrors2(errors) {
|
|
|
11541
11576
|
UNSAFE_ServerMode,
|
|
11542
11577
|
UNSAFE_SingleFetchRedirectSymbol,
|
|
11543
11578
|
UNSAFE_ViewTransitionContext,
|
|
11579
|
+
UNSAFE_WithErrorBoundaryProps,
|
|
11580
|
+
UNSAFE_WithHydrateFallbackProps,
|
|
11581
|
+
UNSAFE_WithRouteComponentProps,
|
|
11544
11582
|
UNSAFE_createBrowserHistory,
|
|
11545
11583
|
UNSAFE_createClientRoutes,
|
|
11546
11584
|
UNSAFE_createClientRoutesWithHMRRevalidationOptOut,
|