react-router 0.0.0-experimental-1a5899f7e → 0.0.0-experimental-a6d1d1d4e

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.
Files changed (31) hide show
  1. package/dist/development/{chunk-RLWEUMNL.mjs → chunk-OEAMHMGQ.mjs} +62 -15
  2. package/dist/development/dom-export.d.mts +1 -1
  3. package/dist/development/dom-export.d.ts +1 -1
  4. package/dist/development/dom-export.js +1 -1
  5. package/dist/development/dom-export.mjs +2 -2
  6. package/dist/development/{fog-of-war-DwsWwUlp.d.mts → fog-of-war-C5L_Yd5M.d.mts} +90 -81
  7. package/dist/{production/fog-of-war-BHTxbJsu.d.ts → development/fog-of-war-DrUCUQQ-.d.ts} +90 -81
  8. package/dist/development/index.d.mts +5 -5
  9. package/dist/development/index.d.ts +5 -5
  10. package/dist/development/index.js +65 -15
  11. package/dist/development/index.mjs +8 -2
  12. package/dist/development/lib/types/route-module.js +1 -1
  13. package/dist/development/lib/types/route-module.mjs +1 -1
  14. package/dist/development/rsc-export.js +48 -11
  15. package/dist/development/rsc-export.mjs +48 -11
  16. package/dist/production/{chunk-JBISSWXR.mjs → chunk-I2N4LFMP.mjs} +62 -15
  17. package/dist/production/dom-export.d.mts +1 -1
  18. package/dist/production/dom-export.d.ts +1 -1
  19. package/dist/production/dom-export.js +1 -1
  20. package/dist/production/dom-export.mjs +2 -2
  21. package/dist/production/{fog-of-war-DwsWwUlp.d.mts → fog-of-war-C5L_Yd5M.d.mts} +90 -81
  22. package/dist/{development/fog-of-war-BHTxbJsu.d.ts → production/fog-of-war-DrUCUQQ-.d.ts} +90 -81
  23. package/dist/production/index.d.mts +5 -5
  24. package/dist/production/index.d.ts +5 -5
  25. package/dist/production/index.js +65 -15
  26. package/dist/production/index.mjs +8 -2
  27. package/dist/production/lib/types/route-module.js +1 -1
  28. package/dist/production/lib/types/route-module.mjs +1 -1
  29. package/dist/production/rsc-export.js +48 -11
  30. package/dist/production/rsc-export.mjs +48 -11
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-1a5899f7e
2
+ * react-router v0.0.0-experimental-a6d1d1d4e
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-1a5899f7e";
8010
+ window.__reactRouterVersion = "0.0.0-experimental-a6d1d1d4e";
7979
8011
  }
7980
8012
  } catch (e) {
7981
8013
  }
@@ -11164,29 +11196,41 @@ async function routeRSCServerRequest(request, requestServer, decode2, renderHTML
11164
11196
  if (!serverResponseB.body) {
11165
11197
  throw new Error("Failed to clone server response");
11166
11198
  }
11167
- const payload = await decode2(serverResponse.body);
11168
- if (payload.type === "redirect") {
11169
- return new Response(null, {
11170
- status: payload.status,
11171
- headers: {
11172
- Location: payload.location
11173
- }
11174
- });
11175
- }
11176
- const html = await renderHTML(payload);
11199
+ const body = serverResponse.body;
11200
+ let payloadPromise;
11201
+ const getPayload = async () => {
11202
+ if (payloadPromise) return payloadPromise;
11203
+ payloadPromise = decode2(body);
11204
+ return payloadPromise;
11205
+ };
11177
11206
  try {
11178
- const body = html.pipeThrough(injectRSCPayload(serverResponseB.body));
11207
+ const html = await renderHTML(getPayload);
11208
+ const body2 = html.pipeThrough(injectRSCPayload(serverResponseB.body));
11179
11209
  const headers = new Headers(serverResponse.headers);
11180
11210
  headers.set("Content-Type", "text/html");
11181
- return new Response(body, {
11211
+ return new Response(body2, {
11182
11212
  status: serverResponse.status,
11183
11213
  headers
11184
11214
  });
11185
11215
  } catch (reason) {
11216
+ if (reason instanceof Response) {
11217
+ return reason;
11218
+ }
11186
11219
  throw reason;
11187
11220
  }
11188
11221
  }
11189
- function RSCStaticRouter({ payload }) {
11222
+ function RSCStaticRouter({
11223
+ getPayload
11224
+ }) {
11225
+ const payload = React15.use(getPayload());
11226
+ if (payload.type === "redirect") {
11227
+ throw new Response(null, {
11228
+ status: payload.status,
11229
+ headers: {
11230
+ Location: payload.location
11231
+ }
11232
+ });
11233
+ }
11190
11234
  if (payload.type !== "render") return null;
11191
11235
  const context = {
11192
11236
  actionData: payload.actionData,
@@ -11406,6 +11450,9 @@ export {
11406
11450
  Router,
11407
11451
  Routes,
11408
11452
  Await,
11453
+ WithRouteComponentProps,
11454
+ WithHydrateFallbackProps,
11455
+ WithErrorBoundaryProps,
11409
11456
  createRoutesFromChildren,
11410
11457
  createRoutesFromElements,
11411
11458
  renderMatches,
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './fog-of-war-DwsWwUlp.mjs';
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-BHTxbJsu.js';
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-1a5899f7e
2
+ * react-router v0.0.0-experimental-a6d1d1d4e
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-1a5899f7e
2
+ * react-router v0.0.0-experimental-a6d1d1d4e
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-RLWEUMNL.mjs";
28
+ } from "./chunk-OEAMHMGQ.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, 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, aw as ClientActionFunction, x as LinksFunction, w as MetaFunction, aa as ShouldRevalidateFunction, j as Params } from './route-data-BIYebJr3.mjs';
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$1(_props: RouteProps): React.ReactElement | null;
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, hydrationRouteProperties as ao, mapRouteProperties as ap, FrameworkContext as aq, getPatchRoutesOnNavigationFunction as ar, useFogOFWarDiscovery as as, createClientRoutes as at, createClientRoutesWithHMRRevalidationOptOut as au, shouldHydrateRouteLoader as av, useScrollRestoration as aw, 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 ScrollRestorationProps as y, type SetURLSearchParams as z };
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, 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, aw as ClientActionFunction, x as LinksFunction, w as MetaFunction, aa as ShouldRevalidateFunction, j as Params } from './route-data-BIYebJr3.js';
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$1(_props: RouteProps): React.ReactElement | null;
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, hydrationRouteProperties as ao, mapRouteProperties as ap, FrameworkContext as aq, getPatchRoutesOnNavigationFunction as ar, useFogOFWarDiscovery as as, createClientRoutes as at, createClientRoutesWithHMRRevalidationOptOut as au, shouldHydrateRouteLoader as av, useScrollRestoration as aw, 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 ScrollRestorationProps as y, type SetURLSearchParams as z };
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-DwsWwUlp.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, aq as UNSAFE_FrameworkContext, at as UNSAFE_createClientRoutes, au as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ar as UNSAFE_getPatchRoutesOnNavigationFunction, ao as UNSAFE_hydrationRouteProperties, ap as UNSAFE_mapRouteProperties, av as UNSAFE_shouldHydrateRouteLoader, as as UNSAFE_useFogOFWarDiscovery, aw 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-DwsWwUlp.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-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';
@@ -814,9 +814,9 @@ type ToArgs<T> = Equal<T, {}> extends true ? [] : Partial<T> extends T ? [T] | [
814
814
  */
815
815
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
816
816
 
817
- declare function routeRSCServerRequest(request: Request, requestServer: (request: Request) => Promise<Response>, decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>, renderHTML: (payload: ServerPayload) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>): Promise<Response>;
818
- declare function RSCStaticRouter({ payload }: {
819
- payload: ServerPayload;
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
820
  }): React.JSX.Element | null;
821
821
 
822
822
  declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];
@@ -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-BHTxbJsu.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, aq as UNSAFE_FrameworkContext, at as UNSAFE_createClientRoutes, au as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ar as UNSAFE_getPatchRoutesOnNavigationFunction, ao as UNSAFE_hydrationRouteProperties, ap as UNSAFE_mapRouteProperties, av as UNSAFE_shouldHydrateRouteLoader, as as UNSAFE_useFogOFWarDiscovery, aw 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-BHTxbJsu.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-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';
@@ -814,9 +814,9 @@ type ToArgs<T> = Equal<T, {}> extends true ? [] : Partial<T> extends T ? [T] | [
814
814
  */
815
815
  declare function href<Path extends keyof Args>(path: Path, ...args: Args[Path]): string;
816
816
 
817
- declare function routeRSCServerRequest(request: Request, requestServer: (request: Request) => Promise<Response>, decode: (body: ReadableStream<Uint8Array>) => Promise<ServerPayload>, renderHTML: (payload: ServerPayload) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>): Promise<Response>;
818
- declare function RSCStaticRouter({ payload }: {
819
- payload: ServerPayload;
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
820
  }): React.JSX.Element | null;
821
821
 
822
822
  declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];