react-router 0.0.0-experimental-451e72371 → 0.0.0-experimental-ab9ed70c6

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.
@@ -2196,12 +2196,14 @@ declare global {
2196
2196
  __routerActionID: number;
2197
2197
  }
2198
2198
  }
2199
- declare function createCallServer({ decode, encodeAction, }: {
2199
+ declare function createCallServer({ decode, encodeAction, fetch: fetchImplementation, }: {
2200
2200
  decode: DecodeServerResponseFunction;
2201
2201
  encodeAction: EncodeActionFunction;
2202
+ fetch?: (request: Request) => Promise<Response>;
2202
2203
  }): (id: string, args: unknown[]) => Promise<unknown>;
2203
- declare function RSCHydratedRouter({ decode, payload, routeDiscovery, }: {
2204
+ declare function RSCHydratedRouter({ decode, fetch: fetchImplementation, payload, routeDiscovery, }: {
2204
2205
  decode: DecodeServerResponseFunction;
2206
+ fetch?: (request: Request) => Promise<Response>;
2205
2207
  payload: ServerPayload;
2206
2208
  routeDiscovery?: "eager" | "lazy";
2207
2209
  }): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-451e72371
2
+ * react-router v0.0.0-experimental-ab9ed70c6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -8804,7 +8804,7 @@ function mergeRefs(...refs) {
8804
8804
  var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
8805
8805
  try {
8806
8806
  if (isBrowser) {
8807
- window.__reactRouterVersion = "0.0.0-experimental-451e72371";
8807
+ window.__reactRouterVersion = "0.0.0-experimental-ab9ed70c6";
8808
8808
  }
8809
8809
  } catch (e) {
8810
8810
  }
@@ -11479,7 +11479,7 @@ function href(path, ...args) {
11479
11479
  }
11480
11480
 
11481
11481
  // lib/rsc/browser.tsx
11482
- import * as React14 from "react";
11482
+ import * as React15 from "react";
11483
11483
  import * as ReactDOM from "react-dom";
11484
11484
 
11485
11485
  // lib/dom/ssr/hydration.tsx
@@ -11508,22 +11508,135 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
11508
11508
  return hydrationData;
11509
11509
  }
11510
11510
 
11511
+ // lib/rsc/errorBoundaries.tsx
11512
+ import React14 from "react";
11513
+ var RSCRouterGlobalErrorBoundary = class extends React14.Component {
11514
+ constructor(props) {
11515
+ super(props);
11516
+ this.state = { error: null, location: props.location };
11517
+ }
11518
+ static getDerivedStateFromError(error) {
11519
+ return { error };
11520
+ }
11521
+ static getDerivedStateFromProps(props, state) {
11522
+ if (state.location !== props.location) {
11523
+ return { error: null, location: props.location };
11524
+ }
11525
+ return { error: state.error, location: state.location };
11526
+ }
11527
+ render() {
11528
+ if (this.state.error) {
11529
+ return /* @__PURE__ */ React14.createElement(
11530
+ RSCDefaultRootErrorBoundaryImpl,
11531
+ {
11532
+ error: this.state.error,
11533
+ renderAppShell: true
11534
+ }
11535
+ );
11536
+ } else {
11537
+ return this.props.children;
11538
+ }
11539
+ }
11540
+ };
11541
+ function ErrorWrapper({
11542
+ renderAppShell,
11543
+ title,
11544
+ children
11545
+ }) {
11546
+ if (!renderAppShell) {
11547
+ return children;
11548
+ }
11549
+ return /* @__PURE__ */ React14.createElement("html", { lang: "en" }, /* @__PURE__ */ React14.createElement("head", null, /* @__PURE__ */ React14.createElement("meta", { charSet: "utf-8" }), /* @__PURE__ */ React14.createElement(
11550
+ "meta",
11551
+ {
11552
+ name: "viewport",
11553
+ content: "width=device-width,initial-scale=1,viewport-fit=cover"
11554
+ }
11555
+ ), /* @__PURE__ */ React14.createElement("title", null, title)), /* @__PURE__ */ React14.createElement("body", null, /* @__PURE__ */ React14.createElement("main", { style: { fontFamily: "system-ui, sans-serif", padding: "2rem" } }, children)));
11556
+ }
11557
+ function RSCDefaultRootErrorBoundaryImpl({
11558
+ error,
11559
+ renderAppShell
11560
+ }) {
11561
+ console.error(error);
11562
+ let heyDeveloper = /* @__PURE__ */ React14.createElement(
11563
+ "script",
11564
+ {
11565
+ dangerouslySetInnerHTML: {
11566
+ __html: `
11567
+ console.log(
11568
+ "\u{1F4BF} Hey developer \u{1F44B}. You can provide a way better UX than this when your app throws errors. Check out https://reactrouter.com/how-to/error-boundary for more information."
11569
+ );
11570
+ `
11571
+ }
11572
+ }
11573
+ );
11574
+ if (isRouteErrorResponse(error)) {
11575
+ return /* @__PURE__ */ React14.createElement(
11576
+ ErrorWrapper,
11577
+ {
11578
+ renderAppShell,
11579
+ title: "Unhandled Thrown Response!"
11580
+ },
11581
+ /* @__PURE__ */ React14.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
11582
+ ENABLE_DEV_WARNINGS ? heyDeveloper : null
11583
+ );
11584
+ }
11585
+ let errorInstance;
11586
+ if (error instanceof Error) {
11587
+ errorInstance = error;
11588
+ } else {
11589
+ let errorString = error == null ? "Unknown Error" : typeof error === "object" && "toString" in error ? error.toString() : JSON.stringify(error);
11590
+ errorInstance = new Error(errorString);
11591
+ }
11592
+ return /* @__PURE__ */ React14.createElement(ErrorWrapper, { renderAppShell, title: "Application Error!" }, /* @__PURE__ */ React14.createElement("h1", { style: { fontSize: "24px" } }, "Application Error"), /* @__PURE__ */ React14.createElement(
11593
+ "pre",
11594
+ {
11595
+ style: {
11596
+ padding: "2rem",
11597
+ background: "hsla(10, 50%, 50%, 0.1)",
11598
+ color: "red",
11599
+ overflow: "auto"
11600
+ }
11601
+ },
11602
+ errorInstance.stack
11603
+ ), heyDeveloper);
11604
+ }
11605
+ function RSCDefaultRootErrorBoundary({
11606
+ hasRootLayout
11607
+ }) {
11608
+ let error = useRouteError();
11609
+ if (hasRootLayout === void 0) {
11610
+ throw new Error("Missing 'hasRootLayout' prop");
11611
+ }
11612
+ return /* @__PURE__ */ React14.createElement(
11613
+ RSCDefaultRootErrorBoundaryImpl,
11614
+ {
11615
+ renderAppShell: !hasRootLayout,
11616
+ error
11617
+ }
11618
+ );
11619
+ }
11620
+
11511
11621
  // lib/rsc/browser.tsx
11512
11622
  function createCallServer({
11513
11623
  decode: decode2,
11514
- encodeAction
11624
+ encodeAction,
11625
+ fetch: fetchImplementation = fetch
11515
11626
  }) {
11516
11627
  let landedActionId = 0;
11517
11628
  return async (id, args) => {
11518
11629
  let actionId = window.__routerActionID = (window.__routerActionID ?? (window.__routerActionID = 0)) + 1;
11519
- const response = await fetch(location.href, {
11520
- body: await encodeAction(args),
11521
- method: "POST",
11522
- headers: {
11523
- Accept: "text/x-component",
11524
- "rsc-action-id": id
11525
- }
11526
- });
11630
+ const response = await fetchImplementation(
11631
+ new Request(location.href, {
11632
+ body: await encodeAction(args),
11633
+ method: "POST",
11634
+ headers: {
11635
+ Accept: "text/x-component",
11636
+ "rsc-action-id": id
11637
+ }
11638
+ })
11639
+ );
11527
11640
  if (!response.body) {
11528
11641
  throw new Error("No response body");
11529
11642
  }
@@ -11577,7 +11690,7 @@ function createCallServer({
11577
11690
  lastMatch = match;
11578
11691
  }
11579
11692
  window.__router._internalSetStateDoNotUseOrYouWillBreakYourApp({});
11580
- React14.startTransition(() => {
11693
+ React15.startTransition(() => {
11581
11694
  window.__router._internalSetStateDoNotUseOrYouWillBreakYourApp({
11582
11695
  loaderData: Object.assign(
11583
11696
  {},
@@ -11598,6 +11711,7 @@ function createCallServer({
11598
11711
  };
11599
11712
  }
11600
11713
  function createRouterFromPayload({
11714
+ fetchImplementation,
11601
11715
  decode: decode2,
11602
11716
  payload
11603
11717
  }) {
@@ -11655,14 +11769,20 @@ function createRouterFromPayload({
11655
11769
  if (discoveredPaths2.has(path)) {
11656
11770
  return;
11657
11771
  }
11658
- await fetchAndApplyManifestPatches2([path], decode2, signal);
11772
+ await fetchAndApplyManifestPatches2(
11773
+ [path],
11774
+ decode2,
11775
+ fetchImplementation,
11776
+ signal
11777
+ );
11659
11778
  },
11660
11779
  // FIXME: Pass `build.ssr` and `build.basename` into this function
11661
11780
  dataStrategy: getRSCSingleFetchDataStrategy(
11662
11781
  () => window.__router,
11663
11782
  true,
11664
11783
  void 0,
11665
- decode2
11784
+ decode2,
11785
+ fetchImplementation
11666
11786
  )
11667
11787
  });
11668
11788
  if (window.__router.state.initialized) {
@@ -11680,7 +11800,7 @@ function createRouterFromPayload({
11680
11800
  return window.__router;
11681
11801
  }
11682
11802
  var renderedRoutesContext = unstable_createContext();
11683
- function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode2) {
11803
+ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode2, fetchImplementation) {
11684
11804
  let dataStrategy = getSingleFetchDataStrategyImpl(
11685
11805
  getRouter,
11686
11806
  (match) => {
@@ -11695,7 +11815,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode2) {
11695
11815
  };
11696
11816
  },
11697
11817
  // pass map into fetchAndDecode so it can add payloads
11698
- getFetchAndDecodeViaRSC(decode2),
11818
+ getFetchAndDecodeViaRSC(decode2, fetchImplementation),
11699
11819
  ssr,
11700
11820
  basename,
11701
11821
  // If the route has a component but we don't have an element, we need to hit
@@ -11732,7 +11852,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, decode2) {
11732
11852
  return results;
11733
11853
  });
11734
11854
  }
11735
- function getFetchAndDecodeViaRSC(decode2) {
11855
+ function getFetchAndDecodeViaRSC(decode2, fetchImplementation) {
11736
11856
  return async (args, basename, targetRoutes) => {
11737
11857
  let { request, context } = args;
11738
11858
  let url = singleFetchUrl(request.url, basename, "rsc");
@@ -11742,7 +11862,9 @@ function getFetchAndDecodeViaRSC(decode2) {
11742
11862
  url.searchParams.set("_routes", targetRoutes.join(","));
11743
11863
  }
11744
11864
  }
11745
- let res = await fetch(url, await createRequestInit(request));
11865
+ let res = await fetchImplementation(
11866
+ new Request(url, await createRequestInit(request))
11867
+ );
11746
11868
  if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
11747
11869
  throw new ErrorResponseImpl(404, "Not Found", true);
11748
11870
  }
@@ -11785,22 +11907,35 @@ function getFetchAndDecodeViaRSC(decode2) {
11785
11907
  }
11786
11908
  function RSCHydratedRouter({
11787
11909
  decode: decode2,
11910
+ fetch: fetchImplementation = fetch,
11788
11911
  payload,
11789
11912
  routeDiscovery = "eager"
11790
11913
  }) {
11791
11914
  if (payload.type !== "render") throw new Error("Invalid payload type");
11792
- let router = React14.useMemo(
11793
- () => createRouterFromPayload({ decode: decode2, payload }),
11794
- // eslint-disable-next-line react-hooks/exhaustive-deps
11795
- []
11915
+ let router = React15.useMemo(
11916
+ () => createRouterFromPayload({
11917
+ decode: decode2,
11918
+ payload,
11919
+ fetchImplementation
11920
+ }),
11921
+ [decode2, payload, fetchImplementation]
11796
11922
  );
11797
- React14.useLayoutEffect(() => {
11923
+ React15.useLayoutEffect(() => {
11798
11924
  if (!window.__routerInitialized) {
11799
11925
  window.__routerInitialized = true;
11800
11926
  window.__router.initialize();
11801
11927
  }
11802
11928
  }, []);
11803
- React14.useEffect(() => {
11929
+ let [location2, setLocation] = React15.useState(router.state.location);
11930
+ React15.useLayoutEffect(
11931
+ () => router.subscribe((newState) => {
11932
+ if (newState.location !== location2) {
11933
+ setLocation(newState.location);
11934
+ }
11935
+ }),
11936
+ [router, location2]
11937
+ );
11938
+ React15.useEffect(() => {
11804
11939
  if (routeDiscovery === "lazy" || // @ts-expect-error - TS doesn't know about this yet
11805
11940
  window.navigator?.connection?.saveData === true) {
11806
11941
  return;
@@ -11828,7 +11963,7 @@ function RSCHydratedRouter({
11828
11963
  return;
11829
11964
  }
11830
11965
  try {
11831
- await fetchAndApplyManifestPatches2(paths, decode2);
11966
+ await fetchAndApplyManifestPatches2(paths, decode2, fetchImplementation);
11832
11967
  } catch (e) {
11833
11968
  console.error("Failed to fetch manifest patches", e);
11834
11969
  }
@@ -11842,7 +11977,7 @@ function RSCHydratedRouter({
11842
11977
  attributes: true,
11843
11978
  attributeFilter: ["data-discover", "href", "action"]
11844
11979
  });
11845
- }, [routeDiscovery, decode2]);
11980
+ }, [routeDiscovery, decode2, fetchImplementation]);
11846
11981
  const frameworkContext = {
11847
11982
  future: {
11848
11983
  // These flags have no runtime impact so can always be false. If we add
@@ -11865,7 +12000,7 @@ function RSCHydratedRouter({
11865
12000
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
11866
12001
  routeModules: {}
11867
12002
  };
11868
- return /* @__PURE__ */ React14.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React14.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React14.createElement(RouterProvider, { router, flushSync: ReactDOM.flushSync })));
12003
+ return /* @__PURE__ */ React15.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React15.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React15.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React15.createElement(RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
11869
12004
  }
11870
12005
  function createRouteFromServerManifest(match, payload) {
11871
12006
  let hasInitialData = payload && match.id in payload.loaderData;
@@ -11924,7 +12059,9 @@ function createRouteFromServerManifest(match, payload) {
11924
12059
  );
11925
12060
  return await callSingleFetch(singleFetch);
11926
12061
  }
11927
- }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : void 0,
12062
+ }) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
12063
+ throw noActionDefinedError("action", match.id);
12064
+ },
11928
12065
  path: match.path,
11929
12066
  shouldRevalidate: match.shouldRevalidate,
11930
12067
  // We always have a "loader" in this RSC world since even if we don't
@@ -11961,7 +12098,7 @@ var nextPaths2 = /* @__PURE__ */ new Set();
11961
12098
  var discoveredPathsMaxSize2 = 1e3;
11962
12099
  var discoveredPaths2 = /* @__PURE__ */ new Set();
11963
12100
  var URL_LIMIT2 = 7680;
11964
- async function fetchAndApplyManifestPatches2(paths, decode2, signal) {
12101
+ async function fetchAndApplyManifestPatches2(paths, decode2, fetchImplementation, signal) {
11965
12102
  let basename = (window.__router.basename ?? "").replace(/^\/|\/$/g, "");
11966
12103
  let url = new URL(`${basename}/.manifest`, window.location.origin);
11967
12104
  paths.sort().forEach((path) => url.searchParams.append("p", path));
@@ -11969,7 +12106,7 @@ async function fetchAndApplyManifestPatches2(paths, decode2, signal) {
11969
12106
  nextPaths2.clear();
11970
12107
  return;
11971
12108
  }
11972
- let response = await fetch(url, { signal });
12109
+ let response = await fetchImplementation(new Request(url, { signal }));
11973
12110
  if (!response.body || response.status < 200 || response.status >= 300) {
11974
12111
  throw new Error("Unable to fetch new route matches from the server");
11975
12112
  }
@@ -12000,7 +12137,7 @@ function debounce2(callback, wait) {
12000
12137
  }
12001
12138
 
12002
12139
  // lib/rsc/server.ssr.tsx
12003
- import * as React15 from "react";
12140
+ import * as React16 from "react";
12004
12141
 
12005
12142
  // lib/rsc/html-stream/server.ts
12006
12143
  var encoder2 = new TextEncoder();
@@ -12147,7 +12284,7 @@ async function routeRSCServerRequest({
12147
12284
  function RSCStaticRouter({
12148
12285
  getPayload
12149
12286
  }) {
12150
- const payload = React15.use(getPayload());
12287
+ const payload = React16.use(getPayload());
12151
12288
  if (payload.type === "redirect") {
12152
12289
  throw new Response(null, {
12153
12290
  status: payload.status,
@@ -12226,7 +12363,7 @@ function RSCStaticRouter({
12226
12363
  routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
12227
12364
  routeModules: {}
12228
12365
  };
12229
- return /* @__PURE__ */ React15.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React15.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React15.createElement(
12366
+ return /* @__PURE__ */ React16.createElement(RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React16.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React16.createElement(FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React16.createElement(
12230
12367
  StaticRouterProvider,
12231
12368
  {
12232
12369
  context,
@@ -12234,7 +12371,7 @@ function RSCStaticRouter({
12234
12371
  hydrate: false,
12235
12372
  nonce: payload.nonce
12236
12373
  }
12237
- )));
12374
+ ))));
12238
12375
  }
12239
12376
  function isReactServerRequest(url) {
12240
12377
  return url.pathname.endsWith(".rsc");
@@ -12387,8 +12524,6 @@ export {
12387
12524
  getTurboStreamSingleFetchDataStrategy,
12388
12525
  decodeViaTurboStream,
12389
12526
  RemixErrorBoundary,
12390
- RemixRootDefaultErrorBoundary,
12391
- RemixRootDefaultHydrateFallback,
12392
12527
  createClientRoutesWithHMRRevalidationOptOut,
12393
12528
  createClientRoutes,
12394
12529
  shouldHydrateRouteLoader,
@@ -12436,6 +12571,7 @@ export {
12436
12571
  createMemorySessionStorage,
12437
12572
  href,
12438
12573
  getHydrationData,
12574
+ RSCDefaultRootErrorBoundary,
12439
12575
  createCallServer,
12440
12576
  RSCHydratedRouter,
12441
12577
  routeRSCServerRequest,
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { R as RouterProviderProps$1 } from './browser-DQVA_cmy.mjs';
2
+ import { R as RouterProviderProps$1 } from './browser-BPyO7zih.mjs';
3
3
  import { R as RouterInit } from './route-data-C8_wxpLo.mjs';
4
4
 
5
5
  type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-451e72371
2
+ * react-router v0.0.0-experimental-ab9ed70c6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react-router v0.0.0-experimental-451e72371
2
+ * react-router v0.0.0-experimental-ab9ed70c6
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -26,7 +26,7 @@ import {
26
26
  invariant,
27
27
  mapRouteProperties,
28
28
  useFogOFWarDiscovery
29
- } from "./chunk-ULMQDNJI.mjs";
29
+ } from "./chunk-44SHGOVW.mjs";
30
30
 
31
31
  // lib/dom-export/dom-router-provider.tsx
32
32
  import * as React from "react";
@@ -1,9 +1,9 @@
1
1
  import { a as Router, b as RouteModules, D as DataStrategyFunction, L as Location, S as StaticHandlerContext, c as RouteObject, C as CreateStaticHandlerOptions$1, d as StaticHandler, F as FutureConfig, I as InitialEntry, H as HydrationState, e as IndexRouteObject, f as LoaderFunction, A as ActionFunction, M as MetaFunction, g as LinksFunction, N as NonIndexRouteObject, u as unstable_InitialContext, h as MiddlewareEnabled, i as AppLoadContext, E as Equal, j as RouterState, P as PatchRoutesOnNavigationFunction, k as DataRouteObject, l as ClientLoaderFunction, m as Path } from './route-data-C8_wxpLo.mjs';
2
2
  export { y as ActionFunctionArgs, B as Blocker, s as BlockerFunction, au as ClientActionFunction, av as ClientActionFunctionArgs, aw as ClientLoaderFunctionArgs, ap as DataRouteMatch, z as DataStrategyFunctionArgs, J as DataStrategyMatch, K as DataStrategyResult, Q as ErrorResponse, o as Fetcher, U as FormEncType, V as FormMethod, aE as Future, G as GetScrollPositionFunction, n as GetScrollRestorationKeyFunction, W as HTMLFormMethod, ax as HeadersArgs, ay as HeadersFunction, aC as HtmlLinkDescriptor, af as IDLE_BLOCKER, ae as IDLE_FETCHER, ad as IDLE_NAVIGATION, X as LazyRouteFunction, aD as LinkDescriptor, Y as LoaderFunctionArgs, az as MetaArgs, aA as MetaDescriptor, aq as NavigateOptions, p as Navigation, q as NavigationStates, aa as NavigationType, ar as Navigator, aB as PageLinkDescriptor, _ as ParamParseKey, $ as Params, as as PatchRoutesOnNavigationFunctionArgs, a0 as PathMatch, a1 as PathParam, a2 as PathPattern, a3 as RedirectFunction, r as RelativeRoutingType, x as RevalidationState, at as RouteMatch, w as RouterFetchOptions, R as RouterInit, v as RouterNavigateOptions, t as RouterSubscriber, a5 as ShouldRevalidateFunction, a6 as ShouldRevalidateFunctionArgs, T as To, a7 as UIMatch, aK as UNSAFE_DataRouterContext, aL as UNSAFE_DataRouterStateContext, O as UNSAFE_DataWithResponseInit, aJ as UNSAFE_ErrorResponseImpl, aM as UNSAFE_FetchersContext, aN as UNSAFE_LocationContext, aO as UNSAFE_NavigationContext, aP as UNSAFE_RouteContext, aQ as UNSAFE_ViewTransitionContext, aG as UNSAFE_createBrowserHistory, aI as UNSAFE_createRouter, aH as UNSAFE_invariant, ab as createPath, ag as data, ah as generatePath, ai as isRouteErrorResponse, aj as matchPath, ak as matchRoutes, ac as parsePath, al as redirect, am as redirectDocument, an as replace, ao as resolvePath, Z as unstable_MiddlewareFunction, a4 as unstable_RouterContext, a9 as unstable_RouterContextProvider, aF as unstable_SerializesTo, a8 as unstable_createContext } from './route-data-C8_wxpLo.mjs';
3
- import { A as AssetsManifest, E as EntryContext, F as FutureConfig$1, a as RouteComponentType, H as HydrateFallbackType, b as ErrorBoundaryType, S as ServerBuild, c as ServerPayload } from './browser-DQVA_cmy.mjs';
4
- export { i as Await, d as AwaitProps, ag as BrowserRouter, a0 as BrowserRouterProps, a1 as DOMRouterOpts, a7 as FetcherFormProps, ac as FetcherSubmitFunction, aw as FetcherSubmitOptions, ad as FetcherWithComponents, al as Form, a8 as FormProps, aH as HandleDataRequestFunction, aI as HandleDocumentRequestFunction, aJ as HandleErrorFunction, ah as HashRouter, a2 as HashRouterProps, a3 as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, ai as Link, a4 as LinkProps, aD as Links, j as MemoryRouter, M as MemoryRouterOpts, e as MemoryRouterProps, aC as Meta, ak as NavLink, a5 as NavLinkProps, a6 as NavLinkRenderProps, k as Navigate, u as NavigateFunction, N as NavigateProps, l as Outlet, O as OutletProps, ax as ParamKeyValuePair, P as PathRouteProps, aF as PrefetchPageLinks, m as Route, f as RouteProps, n as Router, g as RouterProps, o as RouterProvider, R as RouterProviderProps, p as Routes, h as RoutesProps, aE as Scripts, aG as ScriptsProps, am as ScrollRestoration, a9 as ScrollRestorationProps, aK as ServerEntryModule, aa as SetURLSearchParams, ab as SubmitFunction, ay as SubmitOptions, aA as SubmitTarget, aV as UNSAFE_FrameworkContext, aW as UNSAFE_createClientRoutes, aX as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aQ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_mapRouteProperties, aY as UNSAFE_shouldHydrateRouteLoader, aZ as UNSAFE_useScrollRestoration, aS as UNSAFE_withComponentProps, aU as UNSAFE_withErrorBoundaryProps, aT as UNSAFE_withHydrateFallbackProps, az as URLSearchParamsInit, ae as createBrowserRouter, af as createHashRouter, q as createMemoryRouter, r as createRoutesFromChildren, s as createRoutesFromElements, aB as createSearchParams, t as renderMatches, aL as unstable_DecodeServerResponseFunction, aM as unstable_EncodeActionFunction, aj as unstable_HistoryRouter, aO as unstable_RSCHydratedRouter, aN as unstable_createCallServer, aP as unstable_getServerStream, au as unstable_usePrompt, w as useActionData, x as useAsyncError, y as useAsyncValue, at as useBeforeUnload, v as useBlocker, ar as useFetcher, as as useFetchers, aq as useFormAction, z as useHref, B as useInRouterContext, an as useLinkClickHandler, C as useLoaderData, D as useLocation, G as useMatch, J as useMatches, K as useNavigate, Q as useNavigation, T as useNavigationType, U as useOutlet, V as useOutletContext, W as useParams, X as useResolvedPath, Y as useRevalidator, Z as useRouteError, _ as useRouteLoaderData, $ as useRoutes, ao as useSearchParams, ap as useSubmit, av as useViewTransitionState } from './browser-DQVA_cmy.mjs';
3
+ import { A as AssetsManifest, E as EntryContext, F as FutureConfig$1, a as RouteComponentType, H as HydrateFallbackType, b as ErrorBoundaryType, S as ServerBuild, c as ServerPayload } from './browser-BPyO7zih.mjs';
4
+ export { i as Await, d as AwaitProps, ag as BrowserRouter, a0 as BrowserRouterProps, a1 as DOMRouterOpts, a7 as FetcherFormProps, ac as FetcherSubmitFunction, aw as FetcherSubmitOptions, ad as FetcherWithComponents, al as Form, a8 as FormProps, aH as HandleDataRequestFunction, aI as HandleDocumentRequestFunction, aJ as HandleErrorFunction, ah as HashRouter, a2 as HashRouterProps, a3 as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, ai as Link, a4 as LinkProps, aD as Links, j as MemoryRouter, M as MemoryRouterOpts, e as MemoryRouterProps, aC as Meta, ak as NavLink, a5 as NavLinkProps, a6 as NavLinkRenderProps, k as Navigate, u as NavigateFunction, N as NavigateProps, l as Outlet, O as OutletProps, ax as ParamKeyValuePair, P as PathRouteProps, aF as PrefetchPageLinks, m as Route, f as RouteProps, n as Router, g as RouterProps, o as RouterProvider, R as RouterProviderProps, p as Routes, h as RoutesProps, aE as Scripts, aG as ScriptsProps, am as ScrollRestoration, a9 as ScrollRestorationProps, aK as ServerEntryModule, aa as SetURLSearchParams, ab as SubmitFunction, ay as SubmitOptions, aA as SubmitTarget, aV as UNSAFE_FrameworkContext, aW as UNSAFE_createClientRoutes, aX as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aQ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_mapRouteProperties, aY as UNSAFE_shouldHydrateRouteLoader, aZ as UNSAFE_useScrollRestoration, aS as UNSAFE_withComponentProps, aU as UNSAFE_withErrorBoundaryProps, aT as UNSAFE_withHydrateFallbackProps, az as URLSearchParamsInit, ae as createBrowserRouter, af as createHashRouter, q as createMemoryRouter, r as createRoutesFromChildren, s as createRoutesFromElements, aB as createSearchParams, t as renderMatches, aL as unstable_DecodeServerResponseFunction, aM as unstable_EncodeActionFunction, aj as unstable_HistoryRouter, aO as unstable_RSCHydratedRouter, aN as unstable_createCallServer, aP as unstable_getServerStream, au as unstable_usePrompt, w as useActionData, x as useAsyncError, y as useAsyncValue, at as useBeforeUnload, v as useBlocker, ar as useFetcher, as as useFetchers, aq as useFormAction, z as useHref, B as useInRouterContext, an as useLinkClickHandler, C as useLoaderData, D as useLocation, G as useMatch, J as useMatches, K as useNavigate, Q as useNavigation, T as useNavigationType, U as useOutlet, V as useOutletContext, W as useParams, X as useResolvedPath, Y as useRevalidator, Z as useRouteError, _ as useRouteLoaderData, $ as useRoutes, ao as useSearchParams, ap as useSubmit, av as useViewTransitionState } from './browser-BPyO7zih.mjs';
5
5
  import * as React from 'react';
6
- import { ReactElement } from 'react';
6
+ import React__default, { ReactElement } from 'react';
7
7
  import { ParseOptions, SerializeOptions } from 'cookie';
8
8
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
9
9
  import { P as Pages } from './register-DeIo2iHO.mjs';
@@ -394,6 +394,10 @@ declare function RSCStaticRouter({ getPayload, }: {
394
394
  getPayload: () => Promise<ServerPayload>;
395
395
  }): React.JSX.Element | null;
396
396
 
397
+ declare function RSCDefaultRootErrorBoundary({ hasRootLayout, }: {
398
+ hasRootLayout: boolean;
399
+ }): React__default.JSX.Element;
400
+
397
401
  declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];
398
402
 
399
403
  type RemixErrorBoundaryProps = React.PropsWithChildren<{
@@ -416,15 +420,6 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
416
420
  };
417
421
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
418
422
  }
419
- /**
420
- * When app's don't provide a root level ErrorBoundary, we default to this.
421
- */
422
- declare function RemixRootDefaultErrorBoundary({ error, isOutsideRemixApp, }: {
423
- error: unknown;
424
- isOutsideRemixApp?: boolean;
425
- }): React.JSX.Element;
426
-
427
- declare function RemixRootDefaultHydrateFallback(): React.JSX.Element;
428
423
 
429
424
  declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
430
425
  declare function useFogOFWarDiscovery(router: Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
@@ -439,4 +434,4 @@ declare function getHydrationData(state: {
439
434
  hasHydrateFallback: boolean;
440
435
  }, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
441
436
 
442
- export { ActionFunction, AppLoadContext, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, NonIndexRouteObject, PatchRoutesOnNavigationFunction, Path, type RequestHandler, RouteObject, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RemixRootDefaultErrorBoundary as UNSAFE_RootDefaultErrorBoundary, RemixRootDefaultHydrateFallback as UNSAFE_RootDefaultHydrateFallback, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, unstable_InitialContext, RSCStaticRouter as unstable_RSCStaticRouter, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks };
437
+ export { ActionFunction, AppLoadContext, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, NonIndexRouteObject, PatchRoutesOnNavigationFunction, Path, type RequestHandler, RouteObject, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, unstable_InitialContext, RSCStaticRouter as unstable_RSCStaticRouter, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks };
@@ -1,7 +1,7 @@
1
1
  import { R as RouteManifest, S as ServerRouteModule, M as MiddlewareEnabled, u as unstable_RouterContextProvider, A as AppLoadContext, L as LoaderFunctionArgs, a as ActionFunctionArgs, b as RouteModules, c as StaticHandlerContext, H as HydrationState, D as DataRouteObject, C as ClientLoaderFunction, d as Router$1, e as DataStrategyFunction, T as To, N as NavigateOptions, B as BlockerFunction, f as Blocker, g as SerializeFrom, h as RelativeRoutingType, i as Location, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, U as UIMatch, m as Navigation, n as Action, o as Params, p as RouteObject, I as IndexRouteObject, q as LazyRouteFunction, r as NonIndexRouteObject, s as RouterInit, F as FutureConfig$1, t as InitialEntry, v as PatchRoutesOnNavigationFunction, w as Navigator, x as RouteMatch, y as HTMLFormMethod, z as FormEncType, E as PageLinkDescriptor, G as History, J as GetScrollRestorationKeyFunction, K as Fetcher, O as CreateStaticHandlerOptions$1, Q as StaticHandler, V as LoaderFunction, W as ActionFunction, X as MetaFunction, Y as LinksFunction, Z as unstable_InitialContext, _ as Pages, $ as Equal, a0 as ClientActionFunction, a1 as ShouldRevalidateFunction, a2 as RouterState } from './register-BEmY26MO.js';
2
2
  export { aB as ClientActionFunctionArgs, aC as ClientLoaderFunctionArgs, az as DataRouteMatch, a9 as DataStrategyFunctionArgs, aa as DataStrategyMatch, ab as DataStrategyResult, ad as ErrorResponse, ae as FormMethod, aJ as Future, a3 as GetScrollPositionFunction, aD as HeadersArgs, aE as HeadersFunction, aH as HtmlLinkDescriptor, ap as IDLE_BLOCKER, ao as IDLE_FETCHER, an as IDLE_NAVIGATION, aI as LinkDescriptor, aF as MetaArgs, aG as MetaDescriptor, a4 as NavigationStates, aA as PatchRoutesOnNavigationFunctionArgs, ag as PathParam, ah as RedirectFunction, aL as Register, a8 as RevalidationState, a7 as RouterFetchOptions, a6 as RouterNavigateOptions, a5 as RouterSubscriber, aj as ShouldRevalidateFunctionArgs, aQ as UNSAFE_DataRouterContext, aR as UNSAFE_DataRouterStateContext, ac as UNSAFE_DataWithResponseInit, aP as UNSAFE_ErrorResponseImpl, aS as UNSAFE_FetchersContext, aT as UNSAFE_LocationContext, aU as UNSAFE_NavigationContext, aV as UNSAFE_RouteContext, aW as UNSAFE_ViewTransitionContext, aM as UNSAFE_createBrowserHistory, aO as UNSAFE_createRouter, aN as UNSAFE_invariant, al as createPath, aq as data, ar as generatePath, as as isRouteErrorResponse, at as matchPath, au as matchRoutes, am as parsePath, av as redirect, aw as redirectDocument, ax as replace, ay as resolvePath, af as unstable_MiddlewareFunction, ai as unstable_RouterContext, aK as unstable_SerializesTo, ak as unstable_createContext } from './register-BEmY26MO.js';
3
3
  import * as React from 'react';
4
- import { ReactElement } from 'react';
4
+ import React__default, { ReactElement } from 'react';
5
5
  import { ParseOptions, SerializeOptions } from 'cookie';
6
6
  export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
7
7
 
@@ -2574,12 +2574,14 @@ declare global {
2574
2574
  __routerActionID: number;
2575
2575
  }
2576
2576
  }
2577
- declare function createCallServer({ decode, encodeAction, }: {
2577
+ declare function createCallServer({ decode, encodeAction, fetch: fetchImplementation, }: {
2578
2578
  decode: DecodeServerResponseFunction;
2579
2579
  encodeAction: EncodeActionFunction;
2580
+ fetch?: (request: Request) => Promise<Response>;
2580
2581
  }): (id: string, args: unknown[]) => Promise<unknown>;
2581
- declare function RSCHydratedRouter({ decode, payload, routeDiscovery, }: {
2582
+ declare function RSCHydratedRouter({ decode, fetch: fetchImplementation, payload, routeDiscovery, }: {
2582
2583
  decode: DecodeServerResponseFunction;
2584
+ fetch?: (request: Request) => Promise<Response>;
2583
2585
  payload: ServerPayload;
2584
2586
  routeDiscovery?: "eager" | "lazy";
2585
2587
  }): React.JSX.Element;
@@ -2602,6 +2604,10 @@ declare global {
2602
2604
  }
2603
2605
  declare function getServerStream(): ReadableStream<any>;
2604
2606
 
2607
+ declare function RSCDefaultRootErrorBoundary({ hasRootLayout, }: {
2608
+ hasRootLayout: boolean;
2609
+ }): React__default.JSX.Element;
2610
+
2605
2611
  declare function deserializeErrors(errors: RouterState["errors"]): RouterState["errors"];
2606
2612
 
2607
2613
  type RemixErrorBoundaryProps = React.PropsWithChildren<{
@@ -2624,15 +2630,6 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
2624
2630
  };
2625
2631
  render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
2626
2632
  }
2627
- /**
2628
- * When app's don't provide a root level ErrorBoundary, we default to this.
2629
- */
2630
- declare function RemixRootDefaultErrorBoundary({ error, isOutsideRemixApp, }: {
2631
- error: unknown;
2632
- isOutsideRemixApp?: boolean;
2633
- }): React.JSX.Element;
2634
-
2635
- declare function RemixRootDefaultHydrateFallback(): React.JSX.Element;
2636
2633
 
2637
2634
  declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
2638
2635
  declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean): void;
@@ -2647,4 +2644,4 @@ declare function getHydrationData(state: {
2647
2644
  hasHydrateFallback: boolean;
2648
2645
  }, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
2649
2646
 
2650
- export { ActionFunction, ActionFunctionArgs, AppLoadContext, Await, type AwaitProps, Blocker, BlockerFunction, BrowserRouter, type BrowserRouterProps, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, type DOMRouterOpts, DataRouteObject, Router$1 as DataRouter, DataStrategyFunction, type EntryContext, Fetcher, type FetcherFormProps, type FetcherSubmitFunction, type FetcherSubmitOptions, type FetcherWithComponents, type FlashSessionData, Form, FormEncType, type FormProps, GetScrollRestorationKeyFunction, HTMLFormMethod, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HashRouter, type HashRouterProps, type HistoryRouterProps, HydrationState, IndexRouteObject, type IndexRouteProps, InitialEntry, type IsCookieFunction, type IsSessionFunction, type LayoutRouteProps, LazyRouteFunction, Link, type LinkProps, Links, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MemoryRouter, type MemoryRouterOpts, type MemoryRouterProps, Meta, MetaFunction, NavLink, type NavLinkProps, type NavLinkRenderProps, Navigate, type NavigateFunction, NavigateOptions, type NavigateProps, Navigation, Action as NavigationType, Navigator, NonIndexRouteObject, Outlet, type OutletProps, PageLinkDescriptor, type ParamKeyValuePair, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, type PathRouteProps, PrefetchPageLinks, RelativeRoutingType, type RequestHandler, Route, RouteMatch, RouteObject, type RouteProps, Router, RouterInit, type RouterProps, RouterProvider, type RouterProviderProps, RouterState, Routes, type RoutesProps, type RoutesTestStubProps, Scripts, type ScriptsProps, ScrollRestoration, type ScrollRestorationProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, type SetURLSearchParams, ShouldRevalidateFunction, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, type SubmitFunction, type SubmitOptions, type SubmitTarget, To, UIMatch, type AssetsManifest as UNSAFE_AssetsManifest, FrameworkContext as UNSAFE_FrameworkContext, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RemixRootDefaultErrorBoundary as UNSAFE_RootDefaultErrorBoundary, RemixRootDefaultHydrateFallback as UNSAFE_RootDefaultHydrateFallback, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, createClientRoutes as UNSAFE_createClientRoutes, createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, hydrationRouteProperties as UNSAFE_hydrationRouteProperties, mapRouteProperties as UNSAFE_mapRouteProperties, shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, useScrollRestoration as UNSAFE_useScrollRestoration, withComponentProps as UNSAFE_withComponentProps, withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps, withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps, type URLSearchParamsInit, createBrowserRouter, createCookie, createCookieSessionStorage, createHashRouter, createMemoryRouter, createMemorySessionStorage, createRequestHandler, createRoutesFromChildren, createRoutesFromElements, createRoutesStub, createSearchParams, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, renderMatches, type DecodeServerResponseFunction as unstable_DecodeServerResponseFunction, type EncodeActionFunction as unstable_EncodeActionFunction, HistoryRouter as unstable_HistoryRouter, unstable_InitialContext, RSCHydratedRouter as unstable_RSCHydratedRouter, RSCStaticRouter as unstable_RSCStaticRouter, unstable_RouterContextProvider, createCallServer as unstable_createCallServer, getServerStream as unstable_getServerStream, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, usePrompt as unstable_usePrompt, useActionData, useAsyncError, useAsyncValue, useBeforeUnload, useBlocker, useFetcher, useFetchers, useFormAction, useHref, useInRouterContext, useLinkClickHandler, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, useSearchParams, useSubmit, useViewTransitionState };
2647
+ export { ActionFunction, ActionFunctionArgs, AppLoadContext, Await, type AwaitProps, Blocker, BlockerFunction, BrowserRouter, type BrowserRouterProps, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, type DOMRouterOpts, DataRouteObject, Router$1 as DataRouter, DataStrategyFunction, type EntryContext, Fetcher, type FetcherFormProps, type FetcherSubmitFunction, type FetcherSubmitOptions, type FetcherWithComponents, type FlashSessionData, Form, FormEncType, type FormProps, GetScrollRestorationKeyFunction, HTMLFormMethod, type HandleDataRequestFunction, type HandleDocumentRequestFunction, type HandleErrorFunction, HashRouter, type HashRouterProps, type HistoryRouterProps, HydrationState, IndexRouteObject, type IndexRouteProps, InitialEntry, type IsCookieFunction, type IsSessionFunction, type LayoutRouteProps, LazyRouteFunction, Link, type LinkProps, Links, LinksFunction, LoaderFunction, LoaderFunctionArgs, Location, MemoryRouter, type MemoryRouterOpts, type MemoryRouterProps, Meta, MetaFunction, NavLink, type NavLinkProps, type NavLinkRenderProps, Navigate, type NavigateFunction, NavigateOptions, type NavigateProps, Navigation, Action as NavigationType, Navigator, NonIndexRouteObject, Outlet, type OutletProps, PageLinkDescriptor, type ParamKeyValuePair, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, type PathRouteProps, PrefetchPageLinks, RelativeRoutingType, type RequestHandler, Route, RouteMatch, RouteObject, type RouteProps, Router, RouterInit, type RouterProps, RouterProvider, type RouterProviderProps, RouterState, Routes, type RoutesProps, type RoutesTestStubProps, Scripts, type ScriptsProps, ScrollRestoration, type ScrollRestorationProps, type ServerBuild, type ServerEntryModule, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, type SetURLSearchParams, ShouldRevalidateFunction, StaticHandler, StaticHandlerContext, StaticRouter, type StaticRouterProps, StaticRouterProvider, type StaticRouterProviderProps, type SubmitFunction, type SubmitOptions, type SubmitTarget, To, UIMatch, type AssetsManifest as UNSAFE_AssetsManifest, FrameworkContext as UNSAFE_FrameworkContext, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, createClientRoutes as UNSAFE_createClientRoutes, createClientRoutesWithHMRRevalidationOptOut as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, hydrationRouteProperties as UNSAFE_hydrationRouteProperties, mapRouteProperties as UNSAFE_mapRouteProperties, shouldHydrateRouteLoader as UNSAFE_shouldHydrateRouteLoader, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, useScrollRestoration as UNSAFE_useScrollRestoration, withComponentProps as UNSAFE_withComponentProps, withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps, withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps, type URLSearchParamsInit, createBrowserRouter, createCookie, createCookieSessionStorage, createHashRouter, createMemoryRouter, createMemorySessionStorage, createRequestHandler, createRoutesFromChildren, createRoutesFromElements, createRoutesStub, createSearchParams, createSession, createSessionStorage, createStaticHandler, createStaticRouter, href, isCookie, isSession, renderMatches, type DecodeServerResponseFunction as unstable_DecodeServerResponseFunction, type EncodeActionFunction as unstable_EncodeActionFunction, HistoryRouter as unstable_HistoryRouter, unstable_InitialContext, RSCHydratedRouter as unstable_RSCHydratedRouter, RSCStaticRouter as unstable_RSCStaticRouter, unstable_RouterContextProvider, createCallServer as unstable_createCallServer, getServerStream as unstable_getServerStream, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, usePrompt as unstable_usePrompt, useActionData, useAsyncError, useAsyncValue, useBeforeUnload, useBlocker, useFetcher, useFetchers, useFormAction, useHref, useInRouterContext, useLinkClickHandler, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes, useSearchParams, useSubmit, useViewTransitionState };