react-router 0.0.0-experimental-e87ed2fd4 → 0.0.0-experimental-8c9575952
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +91 -2
- package/dist/development/{browser-C9OqCpRB.d.mts → browser-BhRqpkqg.d.mts} +1 -1
- package/dist/development/{chunk-PVJCBITV.mjs → chunk-4SZKM7GJ.mjs} +2 -2
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.js +2 -1
- package/dist/development/dom-export.mjs +3 -2
- package/dist/development/index.d.mts +5 -5
- package/dist/development/index.d.ts +3 -3
- package/dist/development/index.js +12 -12
- package/dist/development/index.mjs +7 -7
- package/dist/development/lib/types/internal.d.mts +1 -1
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{production/register-zy84znbA.d.ts → development/register-B0EYMBux.d.ts} +1 -1
- package/dist/{production/route-data-C-cmsWVs.d.mts → development/route-data-B3YkvRuy.d.mts} +1 -1
- package/dist/development/rsc-export.d.mts +1 -1
- package/dist/development/rsc-export.d.ts +1 -1
- package/dist/development/rsc-export.js +10 -7
- package/dist/development/rsc-export.mjs +11 -8
- package/dist/production/{browser-C9OqCpRB.d.mts → browser-BhRqpkqg.d.mts} +1 -1
- package/dist/production/{chunk-FJS6IVQF.mjs → chunk-ZPFN2BUI.mjs} +2 -2
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.js +2 -1
- package/dist/production/dom-export.mjs +3 -2
- package/dist/production/index.d.mts +5 -5
- package/dist/production/index.d.ts +3 -3
- package/dist/production/index.js +12 -12
- package/dist/production/index.mjs +7 -7
- package/dist/production/lib/types/internal.d.mts +1 -1
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-zy84znbA.d.ts → production/register-B0EYMBux.d.ts} +1 -1
- package/dist/{development/route-data-C-cmsWVs.d.mts → production/route-data-B3YkvRuy.d.mts} +1 -1
- package/dist/production/rsc-export.d.mts +1 -1
- package/dist/production/rsc-export.d.ts +1 -1
- package/dist/production/rsc-export.js +10 -7
- package/dist/production/rsc-export.mjs +11 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,96 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 7.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Update `Route.MetaArgs` to reflect that `data` can be potentially `undefined` ([#13563](https://github.com/remix-run/react-router/pull/13563))
|
|
8
|
+
|
|
9
|
+
This is primarily for cases where a route `loader` threw an error to it's own `ErrorBoundary`. but it also arises in the case of a 404 which renders the root `ErrorBoundary`/`meta` but the root loader did not run because not routes matched.
|
|
10
|
+
|
|
11
|
+
- Partially revert optimization added in `7.1.4` to reduce calls to `matchRoutes` because it surfaced other issues ([#13562](https://github.com/remix-run/react-router/pull/13562))
|
|
12
|
+
|
|
13
|
+
- Fix typegen when same route is used at multiple paths ([#13574](https://github.com/remix-run/react-router/pull/13574))
|
|
14
|
+
|
|
15
|
+
For example, `routes/route.tsx` is used at 4 different paths here:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
import { type RouteConfig, route } from "@react-router/dev/routes";
|
|
19
|
+
export default [
|
|
20
|
+
route("base/:base", "routes/base.tsx", [
|
|
21
|
+
route("home/:home", "routes/route.tsx", { id: "home" }),
|
|
22
|
+
route("changelog/:changelog", "routes/route.tsx", { id: "changelog" }),
|
|
23
|
+
route("splat/*", "routes/route.tsx", { id: "splat" }),
|
|
24
|
+
]),
|
|
25
|
+
route("other/:other", "routes/route.tsx", { id: "other" }),
|
|
26
|
+
] satisfies RouteConfig;
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Previously, typegen would arbitrarily pick one of these paths to be the "winner" and generate types for the route module based on that path.
|
|
30
|
+
Now, typegen creates unions as necessary for alternate paths for the same route file.
|
|
31
|
+
|
|
32
|
+
- Better types for `params` ([#13543](https://github.com/remix-run/react-router/pull/13543))
|
|
33
|
+
|
|
34
|
+
For example:
|
|
35
|
+
|
|
36
|
+
```ts
|
|
37
|
+
// routes.ts
|
|
38
|
+
import { type RouteConfig, route } from "@react-router/dev/routes";
|
|
39
|
+
|
|
40
|
+
export default [
|
|
41
|
+
route("parent/:p", "routes/parent.tsx", [
|
|
42
|
+
route("layout/:l", "routes/layout.tsx", [
|
|
43
|
+
route("child1/:c1a/:c1b", "routes/child1.tsx"),
|
|
44
|
+
route("child2/:c2a/:c2b", "routes/child2.tsx"),
|
|
45
|
+
]),
|
|
46
|
+
]),
|
|
47
|
+
] satisfies RouteConfig;
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Previously, `params` for the `routes/layout.tsx` route were calculated as `{ p: string, l: string }`.
|
|
51
|
+
This incorrectly ignores params that could come from child routes.
|
|
52
|
+
If visiting `/parent/1/layout/2/child1/3/4`, the actual params passed to `routes/layout.tsx` will have a type of `{ p: string, l: string, c1a: string, c1b: string }`.
|
|
53
|
+
|
|
54
|
+
Now, `params` are aware of child routes and autocompletion will include child params as optionals:
|
|
55
|
+
|
|
56
|
+
```ts
|
|
57
|
+
params.|
|
|
58
|
+
// ^ cursor is here and you ask for autocompletion
|
|
59
|
+
// p: string
|
|
60
|
+
// l: string
|
|
61
|
+
// c1a?: string
|
|
62
|
+
// c1b?: string
|
|
63
|
+
// c2a?: string
|
|
64
|
+
// c2b?: string
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
You can also narrow the types for `params` as it is implemented as a normalized union of params for each page that includes `routes/layout.tsx`:
|
|
68
|
+
|
|
69
|
+
```ts
|
|
70
|
+
if (typeof params.c1a === 'string') {
|
|
71
|
+
params.|
|
|
72
|
+
// ^ cursor is here and you ask for autocompletion
|
|
73
|
+
// p: string
|
|
74
|
+
// l: string
|
|
75
|
+
// c1a: string
|
|
76
|
+
// c1b: string
|
|
77
|
+
}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
***
|
|
81
|
+
|
|
82
|
+
UNSTABLE: renamed internal `react-router/route-module` export to `react-router/internal`
|
|
83
|
+
UNSTABLE: removed `Info` export from generated `+types/*` files
|
|
84
|
+
|
|
85
|
+
- Avoid initial fetcher execution 404 error when Lazy Route Discovery is interrupted by a navigation ([#13564](https://github.com/remix-run/react-router/pull/13564))
|
|
86
|
+
|
|
87
|
+
- href replaces splats `*` ([#13593](https://github.com/remix-run/react-router/pull/13593))
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
const a = href("/products/*", { "*": "/1/edit" });
|
|
91
|
+
// -> /products/1/edit
|
|
92
|
+
```
|
|
93
|
+
|
|
3
94
|
## 7.6.0
|
|
4
95
|
|
|
5
96
|
### Minor Changes
|
|
@@ -406,8 +497,6 @@
|
|
|
406
497
|
|
|
407
498
|
For library and framework authors using `unstable_SerializesTo`, you may need to add `as unknown` casts before casting to `unstable_SerializesTo`.
|
|
408
499
|
|
|
409
|
-
- \[REMOVE] Remove middleware depth logic and always call middlware for all matches ([#13172](https://github.com/remix-run/react-router/pull/13172))
|
|
410
|
-
|
|
411
500
|
- Fix single fetch `_root.data` requests when a `basename` is used ([#12898](https://github.com/remix-run/react-router/pull/12898))
|
|
412
501
|
|
|
413
502
|
- Add `context` support to client side data routers (unstable) ([#12941](https://github.com/remix-run/react-router/pull/12941))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aR as RouteManifest, aS as ServerRouteModule, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, Y as LoaderFunctionArgs, y as ActionFunctionArgs,
|
|
1
|
+
import { aR as RouteManifest, aS as ServerRouteModule, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, Y as LoaderFunctionArgs, y as ActionFunctionArgs, b as RouteModules, S as StaticHandlerContext, H as HydrationState, k as DataRouteObject, l as ClientLoaderFunction, T as To, aq as NavigateOptions, s as BlockerFunction, B as Blocker, aT as SerializeFrom, r as RelativeRoutingType, L as Location, _ as ParamParseKey, m as Path, a2 as PathPattern, a0 as PathMatch, a7 as UIMatch, p as Navigation, aa as Action, $ as Params, a as Router$1, c as RouteObject, e as IndexRouteObject, X as LazyRouteFunction, N as NonIndexRouteObject, R as RouterInit, F as FutureConfig$1, I as InitialEntry, D as DataStrategyFunction, P as PatchRoutesOnNavigationFunction, ar as Navigator, at as RouteMatch, W as HTMLFormMethod, U as FormEncType, aB as PageLinkDescriptor, aU as History, n as GetScrollRestorationKeyFunction, o as Fetcher, au as ClientActionFunction, g as LinksFunction, M as MetaFunction, a5 as ShouldRevalidateFunction } from './route-data-B3YkvRuy.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8793,7 +8793,7 @@ function mergeRefs(...refs) {
|
|
|
8793
8793
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
8794
8794
|
try {
|
|
8795
8795
|
if (isBrowser) {
|
|
8796
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8796
|
+
window.__reactRouterVersion = "0.0.0-experimental-8c9575952";
|
|
8797
8797
|
}
|
|
8798
8798
|
} catch (e) {
|
|
8799
8799
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './browser-
|
|
3
|
-
import { R as RouterInit } from './route-data-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './browser-BhRqpkqg.mjs';
|
|
3
|
+
import { R as RouterInit } from './route-data-B3YkvRuy.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
"use strict";
|
|
12
|
+
"use client";
|
|
12
13
|
var __create = Object.create;
|
|
13
14
|
var __defProp = Object.defineProperty;
|
|
14
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
+
"use client";
|
|
11
12
|
import {
|
|
12
13
|
FrameworkContext,
|
|
13
14
|
RemixErrorBoundary,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
invariant,
|
|
26
27
|
mapRouteProperties,
|
|
27
28
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-4SZKM7GJ.mjs";
|
|
29
30
|
|
|
30
31
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
32
|
import * as React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Router, b as RouteModules, D as DataStrategyFunction, L as Location, S as StaticHandlerContext, c as RouteObject,
|
|
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-
|
|
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-
|
|
4
|
-
export { i as Await, d as AwaitProps, ag as BrowserRouter, a0 as BrowserRouterProps, a1 as DOMRouterOpts,
|
|
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-B3YkvRuy.mjs';
|
|
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-B3YkvRuy.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-BhRqpkqg.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-BhRqpkqg.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -430,4 +430,4 @@ declare function getHydrationData(state: {
|
|
|
430
430
|
hasHydrateFallback: boolean;
|
|
431
431
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
432
432
|
|
|
433
|
-
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,
|
|
433
|
+
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, 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,5 +1,5 @@
|
|
|
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
|
|
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-
|
|
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-B0EYMBux.js';
|
|
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-B0EYMBux.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactElement } from 'react';
|
|
5
5
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -2637,4 +2637,4 @@ declare function getHydrationData(state: {
|
|
|
2637
2637
|
hasHydrateFallback: boolean;
|
|
2638
2638
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
2639
2639
|
|
|
2640
|
-
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
|
|
2640
|
+
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, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -63,8 +63,6 @@ __export(react_router_exports, {
|
|
|
63
63
|
NavigationType: () => Action,
|
|
64
64
|
Outlet: () => Outlet,
|
|
65
65
|
PrefetchPageLinks: () => PrefetchPageLinks,
|
|
66
|
-
RSCHydratedRouter: () => RSCHydratedRouter,
|
|
67
|
-
RSCStaticRouter: () => RSCStaticRouter,
|
|
68
66
|
Route: () => Route,
|
|
69
67
|
Router: () => Router,
|
|
70
68
|
RouterProvider: () => RouterProvider,
|
|
@@ -105,7 +103,6 @@ __export(react_router_exports, {
|
|
|
105
103
|
UNSAFE_withErrorBoundaryProps: () => withErrorBoundaryProps,
|
|
106
104
|
UNSAFE_withHydrateFallbackProps: () => withHydrateFallbackProps,
|
|
107
105
|
createBrowserRouter: () => createBrowserRouter,
|
|
108
|
-
createCallServer: () => createCallServer,
|
|
109
106
|
createCookie: () => createCookie,
|
|
110
107
|
createCookieSessionStorage: () => createCookieSessionStorage,
|
|
111
108
|
createHashRouter: () => createHashRouter,
|
|
@@ -123,7 +120,6 @@ __export(react_router_exports, {
|
|
|
123
120
|
createStaticRouter: () => createStaticRouter,
|
|
124
121
|
data: () => data,
|
|
125
122
|
generatePath: () => generatePath,
|
|
126
|
-
getServerStream: () => getServerStream,
|
|
127
123
|
href: () => href,
|
|
128
124
|
isCookie: () => isCookie,
|
|
129
125
|
isRouteErrorResponse: () => isRouteErrorResponse,
|
|
@@ -136,10 +132,14 @@ __export(react_router_exports, {
|
|
|
136
132
|
renderMatches: () => renderMatches,
|
|
137
133
|
replace: () => replace,
|
|
138
134
|
resolvePath: () => resolvePath,
|
|
139
|
-
routeRSCServerRequest: () => routeRSCServerRequest,
|
|
140
135
|
unstable_HistoryRouter: () => HistoryRouter,
|
|
136
|
+
unstable_RSCHydratedRouter: () => RSCHydratedRouter,
|
|
137
|
+
unstable_RSCStaticRouter: () => RSCStaticRouter,
|
|
141
138
|
unstable_RouterContextProvider: () => unstable_RouterContextProvider,
|
|
139
|
+
unstable_createCallServer: () => createCallServer,
|
|
142
140
|
unstable_createContext: () => unstable_createContext,
|
|
141
|
+
unstable_getServerStream: () => getServerStream,
|
|
142
|
+
unstable_routeRSCServerRequest: () => routeRSCServerRequest,
|
|
143
143
|
unstable_setDevServerHooks: () => setDevServerHooks,
|
|
144
144
|
unstable_usePrompt: () => usePrompt,
|
|
145
145
|
useActionData: () => useActionData,
|
|
@@ -8952,7 +8952,7 @@ function mergeRefs(...refs) {
|
|
|
8952
8952
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
8953
8953
|
try {
|
|
8954
8954
|
if (isBrowser) {
|
|
8955
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8955
|
+
window.__reactRouterVersion = "0.0.0-experimental-8c9575952";
|
|
8956
8956
|
}
|
|
8957
8957
|
} catch (e) {
|
|
8958
8958
|
}
|
|
@@ -12383,8 +12383,6 @@ function deserializeErrors2(errors) {
|
|
|
12383
12383
|
NavigationType,
|
|
12384
12384
|
Outlet,
|
|
12385
12385
|
PrefetchPageLinks,
|
|
12386
|
-
RSCHydratedRouter,
|
|
12387
|
-
RSCStaticRouter,
|
|
12388
12386
|
Route,
|
|
12389
12387
|
Router,
|
|
12390
12388
|
RouterProvider,
|
|
@@ -12425,7 +12423,6 @@ function deserializeErrors2(errors) {
|
|
|
12425
12423
|
UNSAFE_withErrorBoundaryProps,
|
|
12426
12424
|
UNSAFE_withHydrateFallbackProps,
|
|
12427
12425
|
createBrowserRouter,
|
|
12428
|
-
createCallServer,
|
|
12429
12426
|
createCookie,
|
|
12430
12427
|
createCookieSessionStorage,
|
|
12431
12428
|
createHashRouter,
|
|
@@ -12443,7 +12440,6 @@ function deserializeErrors2(errors) {
|
|
|
12443
12440
|
createStaticRouter,
|
|
12444
12441
|
data,
|
|
12445
12442
|
generatePath,
|
|
12446
|
-
getServerStream,
|
|
12447
12443
|
href,
|
|
12448
12444
|
isCookie,
|
|
12449
12445
|
isRouteErrorResponse,
|
|
@@ -12456,10 +12452,14 @@ function deserializeErrors2(errors) {
|
|
|
12456
12452
|
renderMatches,
|
|
12457
12453
|
replace,
|
|
12458
12454
|
resolvePath,
|
|
12459
|
-
routeRSCServerRequest,
|
|
12460
12455
|
unstable_HistoryRouter,
|
|
12456
|
+
unstable_RSCHydratedRouter,
|
|
12457
|
+
unstable_RSCStaticRouter,
|
|
12461
12458
|
unstable_RouterContextProvider,
|
|
12459
|
+
unstable_createCallServer,
|
|
12462
12460
|
unstable_createContext,
|
|
12461
|
+
unstable_getServerStream,
|
|
12462
|
+
unstable_routeRSCServerRequest,
|
|
12463
12463
|
unstable_setDevServerHooks,
|
|
12464
12464
|
unstable_usePrompt,
|
|
12465
12465
|
useActionData,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
withComponentProps,
|
|
135
135
|
withErrorBoundaryProps,
|
|
136
136
|
withHydrateFallbackProps
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-4SZKM7GJ.mjs";
|
|
138
138
|
export {
|
|
139
139
|
Await,
|
|
140
140
|
BrowserRouter,
|
|
@@ -152,8 +152,6 @@ export {
|
|
|
152
152
|
Action as NavigationType,
|
|
153
153
|
Outlet,
|
|
154
154
|
PrefetchPageLinks,
|
|
155
|
-
RSCHydratedRouter,
|
|
156
|
-
RSCStaticRouter,
|
|
157
155
|
Route,
|
|
158
156
|
Router,
|
|
159
157
|
RouterProvider,
|
|
@@ -194,7 +192,6 @@ export {
|
|
|
194
192
|
withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
|
|
195
193
|
withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
|
|
196
194
|
createBrowserRouter,
|
|
197
|
-
createCallServer,
|
|
198
195
|
createCookie,
|
|
199
196
|
createCookieSessionStorage,
|
|
200
197
|
createHashRouter,
|
|
@@ -212,7 +209,6 @@ export {
|
|
|
212
209
|
createStaticRouter,
|
|
213
210
|
data,
|
|
214
211
|
generatePath,
|
|
215
|
-
getServerStream,
|
|
216
212
|
href,
|
|
217
213
|
isCookie,
|
|
218
214
|
isRouteErrorResponse,
|
|
@@ -225,10 +221,14 @@ export {
|
|
|
225
221
|
renderMatches,
|
|
226
222
|
replace,
|
|
227
223
|
resolvePath,
|
|
228
|
-
routeRSCServerRequest,
|
|
229
224
|
HistoryRouter as unstable_HistoryRouter,
|
|
225
|
+
RSCHydratedRouter as unstable_RSCHydratedRouter,
|
|
226
|
+
RSCStaticRouter as unstable_RSCStaticRouter,
|
|
230
227
|
unstable_RouterContextProvider,
|
|
228
|
+
createCallServer as unstable_createCallServer,
|
|
231
229
|
unstable_createContext,
|
|
230
|
+
getServerStream as unstable_getServerStream,
|
|
231
|
+
routeRSCServerRequest as unstable_routeRSCServerRequest,
|
|
232
232
|
setDevServerHooks as unstable_setDevServerHooks,
|
|
233
233
|
usePrompt as unstable_usePrompt,
|
|
234
234
|
useActionData,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aV as RouteModule, aD as LinkDescriptor, L as Location, aW as Pretty, aA as MetaDescriptor, aX as GetLoaderData, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, aY as unstable_MiddlewareNextFunction, aZ as ServerDataFrom, a_ as Normalize, a$ as GetActionData } from '../../route-data-B3YkvRuy.mjs';
|
|
2
2
|
import { a as RouteFiles, P as Pages } from '../../register-DeIo2iHO.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aX as RouteModule, aI as LinkDescriptor, i as Location, aY as Pretty, aG as MetaDescriptor, aZ as GetLoaderData, M as MiddlewareEnabled, u as unstable_RouterContextProvider, A as AppLoadContext, a_ as unstable_MiddlewareNextFunction, a$ as ServerDataFrom, b0 as RouteFiles, b1 as Normalize, _ as Pages, b2 as GetActionData } from '../../register-B0EYMBux.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
4
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1824,4 +1824,4 @@ type RouteFiles = Register extends {
|
|
|
1824
1824
|
routeFiles: infer Registered extends AnyRouteFiles;
|
|
1825
1825
|
} ? Registered : AnyRouteFiles;
|
|
1826
1826
|
|
|
1827
|
-
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type
|
|
1827
|
+
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type IndexRouteObject as I, type GetScrollRestorationKeyFunction as J, type Fetcher as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type CreateStaticHandlerOptions as O, type ParamParseKey as P, type StaticHandler as Q, type RouteManifest as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type LoaderFunction as V, type ActionFunction as W, type MetaFunction as X, type LinksFunction as Y, type unstable_InitialContext as Z, type Pages as _, type ActionFunctionArgs as a, type ServerDataFrom as a$, type ClientActionFunction as a0, type ShouldRevalidateFunction as a1, type RouterState as a2, type GetScrollPositionFunction as a3, type NavigationStates as a4, type RouterSubscriber as a5, type RouterNavigateOptions as a6, type RouterFetchOptions as a7, type RevalidationState as a8, type DataStrategyFunctionArgs as a9, type PatchRoutesOnNavigationFunctionArgs as aA, type ClientActionFunctionArgs as aB, type ClientLoaderFunctionArgs as aC, type HeadersArgs as aD, type HeadersFunction as aE, type MetaArgs as aF, type MetaDescriptor as aG, type HtmlLinkDescriptor as aH, type LinkDescriptor as aI, type Future as aJ, type unstable_SerializesTo as aK, type Register as aL, createBrowserHistory as aM, invariant as aN, createRouter as aO, ErrorResponseImpl as aP, DataRouterContext as aQ, DataRouterStateContext as aR, FetchersContext as aS, LocationContext as aT, NavigationContext as aU, RouteContext as aV, ViewTransitionContext as aW, type RouteModule as aX, type Pretty as aY, type GetLoaderData as aZ, type unstable_MiddlewareNextFunction as a_, type DataStrategyMatch as aa, type DataStrategyResult as ab, DataWithResponseInit as ac, type ErrorResponse as ad, type FormMethod as ae, type unstable_MiddlewareFunction as af, type PathParam as ag, type RedirectFunction as ah, type unstable_RouterContext as ai, type ShouldRevalidateFunctionArgs as aj, unstable_createContext as ak, createPath as al, parsePath as am, IDLE_NAVIGATION as an, IDLE_FETCHER as ao, IDLE_BLOCKER as ap, data as aq, generatePath as ar, isRouteErrorResponse as as, matchPath as at, matchRoutes as au, redirect as av, redirectDocument as aw, replace as ax, resolvePath as ay, type DataRouteMatch as az, type RouteModules as b, type RouteFiles as b0, type Normalize as b1, type GetActionData as b2, type StaticHandlerContext as c, type Router as d, type DataStrategyFunction as e, type Blocker as f, type SerializeFrom as g, type RelativeRoutingType as h, type Location as i, type Path as j, type PathPattern as k, type PathMatch as l, type Navigation as m, Action as n, type Params as o, type RouteObject as p, type LazyRouteFunction as q, type NonIndexRouteObject as r, type RouterInit as s, type InitialEntry as t, unstable_RouterContextProvider as u, type PatchRoutesOnNavigationFunction as v, type Navigator as w, type RouteMatch as x, type HTMLFormMethod as y, type FormEncType as z };
|
|
@@ -1801,4 +1801,4 @@ type _DataActionData<ServerActionData, ClientActionData> = Awaited<[
|
|
|
1801
1801
|
IsDefined<ClientActionData>
|
|
1802
1802
|
] extends [true, true] ? ServerActionData | ClientActionData : IsDefined<ClientActionData> extends true ? ClientActionData : IsDefined<ServerActionData> extends true ? ServerActionData : undefined>;
|
|
1803
1803
|
|
|
1804
|
-
export { type Params as $, type ActionFunction as A, type Blocker as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type DataStrategyMatch as J, type DataStrategyResult as K, type Location as L, type MetaFunction as M, type NonIndexRouteObject as N, DataWithResponseInit as O, type PatchRoutesOnNavigationFunction as P, type ErrorResponse as Q, type RouterInit as R, type StaticHandlerContext as S, type To as T, type FormEncType as U, type FormMethod as V, type HTMLFormMethod as W, type LazyRouteFunction as X, type LoaderFunctionArgs as Y, type unstable_MiddlewareFunction as Z, type ParamParseKey as _, type Router as a, type GetActionData as a$, type PathMatch as a0, type PathParam as a1, type PathPattern as a2, type RedirectFunction as a3, type unstable_RouterContext as a4, type ShouldRevalidateFunction as a5, type ShouldRevalidateFunctionArgs as a6, type UIMatch as a7, unstable_createContext as a8, unstable_RouterContextProvider as a9, type MetaDescriptor as aA, type PageLinkDescriptor as aB, type HtmlLinkDescriptor as aC, type LinkDescriptor as aD, type Future as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteManifest as aR, type ServerRouteModule as aS, type SerializeFrom as aT, type History as aU, type RouteModule as aV, type
|
|
1804
|
+
export { type Params as $, type ActionFunction as A, type Blocker as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type DataStrategyMatch as J, type DataStrategyResult as K, type Location as L, type MetaFunction as M, type NonIndexRouteObject as N, DataWithResponseInit as O, type PatchRoutesOnNavigationFunction as P, type ErrorResponse as Q, type RouterInit as R, type StaticHandlerContext as S, type To as T, type FormEncType as U, type FormMethod as V, type HTMLFormMethod as W, type LazyRouteFunction as X, type LoaderFunctionArgs as Y, type unstable_MiddlewareFunction as Z, type ParamParseKey as _, type Router as a, type GetActionData as a$, type PathMatch as a0, type PathParam as a1, type PathPattern as a2, type RedirectFunction as a3, type unstable_RouterContext as a4, type ShouldRevalidateFunction as a5, type ShouldRevalidateFunctionArgs as a6, type UIMatch as a7, unstable_createContext as a8, unstable_RouterContextProvider as a9, type MetaDescriptor as aA, type PageLinkDescriptor as aB, type HtmlLinkDescriptor as aC, type LinkDescriptor as aD, type Future as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteManifest as aR, type ServerRouteModule as aS, type SerializeFrom as aT, type History as aU, type RouteModule as aV, type Pretty as aW, type GetLoaderData as aX, type unstable_MiddlewareNextFunction as aY, type ServerDataFrom as aZ, type Normalize as a_, Action as aa, createPath as ab, parsePath as ac, IDLE_NAVIGATION as ad, IDLE_FETCHER as ae, IDLE_BLOCKER as af, data as ag, generatePath as ah, isRouteErrorResponse as ai, matchPath as aj, matchRoutes as ak, redirect as al, redirectDocument as am, replace as an, resolvePath as ao, type DataRouteMatch as ap, type NavigateOptions as aq, type Navigator as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunctionArgs as aw, type HeadersArgs as ax, type HeadersFunction as ay, type MetaArgs as az, type RouteModules as b, type RouteObject as c, type StaticHandler as d, type IndexRouteObject as e, type LoaderFunction as f, type LinksFunction as g, type MiddlewareEnabled as h, type AppLoadContext as i, type RouterState as j, type DataRouteObject as k, type ClientLoaderFunction as l, type Path as m, type GetScrollRestorationKeyFunction as n, type Fetcher as o, type Navigation as p, type NavigationStates as q, type RelativeRoutingType as r, type BlockerFunction as s, type RouterSubscriber as t, type unstable_InitialContext as u, type RouterNavigateOptions as v, type RouterFetchOptions as w, type RevalidationState as x, type ActionFunctionArgs as y, type DataStrategyFunctionArgs as z };
|
|
@@ -1795,4 +1795,4 @@ declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, onE
|
|
|
1795
1795
|
generateResponse: (match: ServerMatch) => Response;
|
|
1796
1796
|
}): Promise<Response>;
|
|
1797
1797
|
|
|
1798
|
-
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type
|
|
1798
|
+
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|
|
@@ -1795,4 +1795,4 @@ declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, onE
|
|
|
1795
1795
|
generateResponse: (match: ServerMatch) => Response;
|
|
1796
1796
|
}): Promise<Response>;
|
|
1797
1797
|
|
|
1798
|
-
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type
|
|
1798
|
+
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|
|
@@ -25,7 +25,7 @@ function _interopNamespace(e) {
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* react-router v0.0.0-experimental-
|
|
28
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) Remix Software Inc.
|
|
31
31
|
*
|
|
@@ -61,7 +61,7 @@ function createKey() {
|
|
|
61
61
|
}
|
|
62
62
|
function createLocation(current, to, state = null, key) {
|
|
63
63
|
let location = {
|
|
64
|
-
pathname:
|
|
64
|
+
pathname: "string" === "string" ? current : current.pathname,
|
|
65
65
|
search: "",
|
|
66
66
|
hash: "",
|
|
67
67
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -1506,10 +1506,9 @@ async function runMiddlewarePipeline(args, propagateResult, handler, errorHandle
|
|
|
1506
1506
|
middlewareState.middlewareError.error,
|
|
1507
1507
|
middlewareState.middlewareError.routeId
|
|
1508
1508
|
);
|
|
1509
|
-
|
|
1509
|
+
{
|
|
1510
1510
|
return result;
|
|
1511
1511
|
}
|
|
1512
|
-
return Object.assign(middlewareState.handlerResult, result);
|
|
1513
1512
|
}
|
|
1514
1513
|
}
|
|
1515
1514
|
async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) {
|
|
@@ -1543,7 +1542,7 @@ async function callRouteMiddleware(args, middlewares, propagateResult, middlewar
|
|
|
1543
1542
|
handler,
|
|
1544
1543
|
idx + 1
|
|
1545
1544
|
);
|
|
1546
|
-
|
|
1545
|
+
{
|
|
1547
1546
|
nextResult = result;
|
|
1548
1547
|
return nextResult;
|
|
1549
1548
|
}
|
|
@@ -2555,7 +2554,11 @@ async function generateRenderResponse(request, routes, decodeCallServer, decodeF
|
|
|
2555
2554
|
if (matches) {
|
|
2556
2555
|
await Promise.all(matches.map((m) => explodeLazyRoute(m.route)));
|
|
2557
2556
|
}
|
|
2558
|
-
const handler = createStaticHandler(routes
|
|
2557
|
+
const handler = createStaticHandler(routes, {
|
|
2558
|
+
mapRouteProperties: (r) => ({
|
|
2559
|
+
hasErrorBoundary: r.ErrorBoundary != null
|
|
2560
|
+
})
|
|
2561
|
+
});
|
|
2559
2562
|
const result = await handler.query(request, {
|
|
2560
2563
|
skipLoaderErrorBubbling: isDataRequest,
|
|
2561
2564
|
skipRevalidation: isSubmission,
|
|
@@ -2862,9 +2865,9 @@ exports.createStaticHandler = createStaticHandler;
|
|
|
2862
2865
|
exports.data = data;
|
|
2863
2866
|
exports.isCookie = isCookie;
|
|
2864
2867
|
exports.isSession = isSession;
|
|
2865
|
-
exports.matchRSCServerRequest = matchRSCServerRequest;
|
|
2866
2868
|
exports.matchRoutes = matchRoutes;
|
|
2867
2869
|
exports.redirect = redirect;
|
|
2868
2870
|
exports.redirectDocument = redirectDocument;
|
|
2869
2871
|
exports.replace = replace;
|
|
2870
2872
|
exports.unstable_createContext = unstable_createContext;
|
|
2873
|
+
exports.unstable_matchRSCServerRequest = matchRSCServerRequest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { serialize, parse } from 'cookie';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { splitCookiesString } from 'set-cookie-parser';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* react-router v0.0.0-experimental-
|
|
6
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Remix Software Inc.
|
|
9
9
|
*
|
|
@@ -39,7 +39,7 @@ function createKey() {
|
|
|
39
39
|
}
|
|
40
40
|
function createLocation(current, to, state = null, key) {
|
|
41
41
|
let location = {
|
|
42
|
-
pathname:
|
|
42
|
+
pathname: "string" === "string" ? current : current.pathname,
|
|
43
43
|
search: "",
|
|
44
44
|
hash: "",
|
|
45
45
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -1484,10 +1484,9 @@ async function runMiddlewarePipeline(args, propagateResult, handler, errorHandle
|
|
|
1484
1484
|
middlewareState.middlewareError.error,
|
|
1485
1485
|
middlewareState.middlewareError.routeId
|
|
1486
1486
|
);
|
|
1487
|
-
|
|
1487
|
+
{
|
|
1488
1488
|
return result;
|
|
1489
1489
|
}
|
|
1490
|
-
return Object.assign(middlewareState.handlerResult, result);
|
|
1491
1490
|
}
|
|
1492
1491
|
}
|
|
1493
1492
|
async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) {
|
|
@@ -1521,7 +1520,7 @@ async function callRouteMiddleware(args, middlewares, propagateResult, middlewar
|
|
|
1521
1520
|
handler,
|
|
1522
1521
|
idx + 1
|
|
1523
1522
|
);
|
|
1524
|
-
|
|
1523
|
+
{
|
|
1525
1524
|
nextResult = result;
|
|
1526
1525
|
return nextResult;
|
|
1527
1526
|
}
|
|
@@ -2533,7 +2532,11 @@ async function generateRenderResponse(request, routes, decodeCallServer, decodeF
|
|
|
2533
2532
|
if (matches) {
|
|
2534
2533
|
await Promise.all(matches.map((m) => explodeLazyRoute(m.route)));
|
|
2535
2534
|
}
|
|
2536
|
-
const handler = createStaticHandler(routes
|
|
2535
|
+
const handler = createStaticHandler(routes, {
|
|
2536
|
+
mapRouteProperties: (r) => ({
|
|
2537
|
+
hasErrorBoundary: r.ErrorBoundary != null
|
|
2538
|
+
})
|
|
2539
|
+
});
|
|
2537
2540
|
const result = await handler.query(request, {
|
|
2538
2541
|
skipLoaderErrorBubbling: isDataRequest,
|
|
2539
2542
|
skipRevalidation: isSubmission,
|
|
@@ -2831,4 +2834,4 @@ function canDecodeWithFormData(contentType) {
|
|
|
2831
2834
|
return contentType.match(/\bapplication\/x-www-form-urlencoded\b/) || contentType.match(/\bmultipart\/form-data\b/);
|
|
2832
2835
|
}
|
|
2833
2836
|
|
|
2834
|
-
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession,
|
|
2837
|
+
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { aR as RouteManifest, aS as ServerRouteModule, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, Y as LoaderFunctionArgs, y as ActionFunctionArgs,
|
|
1
|
+
import { aR as RouteManifest, aS as ServerRouteModule, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, Y as LoaderFunctionArgs, y as ActionFunctionArgs, b as RouteModules, S as StaticHandlerContext, H as HydrationState, k as DataRouteObject, l as ClientLoaderFunction, T as To, aq as NavigateOptions, s as BlockerFunction, B as Blocker, aT as SerializeFrom, r as RelativeRoutingType, L as Location, _ as ParamParseKey, m as Path, a2 as PathPattern, a0 as PathMatch, a7 as UIMatch, p as Navigation, aa as Action, $ as Params, a as Router$1, c as RouteObject, e as IndexRouteObject, X as LazyRouteFunction, N as NonIndexRouteObject, R as RouterInit, F as FutureConfig$1, I as InitialEntry, D as DataStrategyFunction, P as PatchRoutesOnNavigationFunction, ar as Navigator, at as RouteMatch, W as HTMLFormMethod, U as FormEncType, aB as PageLinkDescriptor, aU as History, n as GetScrollRestorationKeyFunction, o as Fetcher, au as ClientActionFunction, g as LinksFunction, M as MetaFunction, a5 as ShouldRevalidateFunction } from './route-data-B3YkvRuy.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8793,7 +8793,7 @@ function mergeRefs(...refs) {
|
|
|
8793
8793
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
8794
8794
|
try {
|
|
8795
8795
|
if (isBrowser) {
|
|
8796
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8796
|
+
window.__reactRouterVersion = "0.0.0-experimental-8c9575952";
|
|
8797
8797
|
}
|
|
8798
8798
|
} catch (e) {
|
|
8799
8799
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './browser-
|
|
3
|
-
import { R as RouterInit } from './route-data-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './browser-BhRqpkqg.mjs';
|
|
3
|
+
import { R as RouterInit } from './route-data-B3YkvRuy.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
11
|
"use strict";
|
|
12
|
+
"use client";
|
|
12
13
|
var __create = Object.create;
|
|
13
14
|
var __defProp = Object.defineProperty;
|
|
14
15
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @license MIT
|
|
10
10
|
*/
|
|
11
|
+
"use client";
|
|
11
12
|
import {
|
|
12
13
|
FrameworkContext,
|
|
13
14
|
RemixErrorBoundary,
|
|
@@ -25,7 +26,7 @@ import {
|
|
|
25
26
|
invariant,
|
|
26
27
|
mapRouteProperties,
|
|
27
28
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-ZPFN2BUI.mjs";
|
|
29
30
|
|
|
30
31
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
32
|
import * as React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as Router, b as RouteModules, D as DataStrategyFunction, L as Location, S as StaticHandlerContext, c as RouteObject,
|
|
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-
|
|
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-
|
|
4
|
-
export { i as Await, d as AwaitProps, ag as BrowserRouter, a0 as BrowserRouterProps, a1 as DOMRouterOpts,
|
|
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-B3YkvRuy.mjs';
|
|
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-B3YkvRuy.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-BhRqpkqg.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-BhRqpkqg.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -430,4 +430,4 @@ declare function getHydrationData(state: {
|
|
|
430
430
|
hasHydrateFallback: boolean;
|
|
431
431
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
432
432
|
|
|
433
|
-
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,
|
|
433
|
+
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, 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,5 +1,5 @@
|
|
|
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
|
|
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-
|
|
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-B0EYMBux.js';
|
|
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-B0EYMBux.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { ReactElement } from 'react';
|
|
5
5
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -2637,4 +2637,4 @@ declare function getHydrationData(state: {
|
|
|
2637
2637
|
hasHydrateFallback: boolean;
|
|
2638
2638
|
}, location: Path, basename: string | undefined, isSpaMode: boolean): HydrationState;
|
|
2639
2639
|
|
|
2640
|
-
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
|
|
2640
|
+
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, 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 };
|
package/dist/production/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -63,8 +63,6 @@ __export(react_router_exports, {
|
|
|
63
63
|
NavigationType: () => Action,
|
|
64
64
|
Outlet: () => Outlet,
|
|
65
65
|
PrefetchPageLinks: () => PrefetchPageLinks,
|
|
66
|
-
RSCHydratedRouter: () => RSCHydratedRouter,
|
|
67
|
-
RSCStaticRouter: () => RSCStaticRouter,
|
|
68
66
|
Route: () => Route,
|
|
69
67
|
Router: () => Router,
|
|
70
68
|
RouterProvider: () => RouterProvider,
|
|
@@ -105,7 +103,6 @@ __export(react_router_exports, {
|
|
|
105
103
|
UNSAFE_withErrorBoundaryProps: () => withErrorBoundaryProps,
|
|
106
104
|
UNSAFE_withHydrateFallbackProps: () => withHydrateFallbackProps,
|
|
107
105
|
createBrowserRouter: () => createBrowserRouter,
|
|
108
|
-
createCallServer: () => createCallServer,
|
|
109
106
|
createCookie: () => createCookie,
|
|
110
107
|
createCookieSessionStorage: () => createCookieSessionStorage,
|
|
111
108
|
createHashRouter: () => createHashRouter,
|
|
@@ -123,7 +120,6 @@ __export(react_router_exports, {
|
|
|
123
120
|
createStaticRouter: () => createStaticRouter,
|
|
124
121
|
data: () => data,
|
|
125
122
|
generatePath: () => generatePath,
|
|
126
|
-
getServerStream: () => getServerStream,
|
|
127
123
|
href: () => href,
|
|
128
124
|
isCookie: () => isCookie,
|
|
129
125
|
isRouteErrorResponse: () => isRouteErrorResponse,
|
|
@@ -136,10 +132,14 @@ __export(react_router_exports, {
|
|
|
136
132
|
renderMatches: () => renderMatches,
|
|
137
133
|
replace: () => replace,
|
|
138
134
|
resolvePath: () => resolvePath,
|
|
139
|
-
routeRSCServerRequest: () => routeRSCServerRequest,
|
|
140
135
|
unstable_HistoryRouter: () => HistoryRouter,
|
|
136
|
+
unstable_RSCHydratedRouter: () => RSCHydratedRouter,
|
|
137
|
+
unstable_RSCStaticRouter: () => RSCStaticRouter,
|
|
141
138
|
unstable_RouterContextProvider: () => unstable_RouterContextProvider,
|
|
139
|
+
unstable_createCallServer: () => createCallServer,
|
|
142
140
|
unstable_createContext: () => unstable_createContext,
|
|
141
|
+
unstable_getServerStream: () => getServerStream,
|
|
142
|
+
unstable_routeRSCServerRequest: () => routeRSCServerRequest,
|
|
143
143
|
unstable_setDevServerHooks: () => setDevServerHooks,
|
|
144
144
|
unstable_usePrompt: () => usePrompt,
|
|
145
145
|
useActionData: () => useActionData,
|
|
@@ -8952,7 +8952,7 @@ function mergeRefs(...refs) {
|
|
|
8952
8952
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
8953
8953
|
try {
|
|
8954
8954
|
if (isBrowser) {
|
|
8955
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
8955
|
+
window.__reactRouterVersion = "0.0.0-experimental-8c9575952";
|
|
8956
8956
|
}
|
|
8957
8957
|
} catch (e) {
|
|
8958
8958
|
}
|
|
@@ -12383,8 +12383,6 @@ function deserializeErrors2(errors) {
|
|
|
12383
12383
|
NavigationType,
|
|
12384
12384
|
Outlet,
|
|
12385
12385
|
PrefetchPageLinks,
|
|
12386
|
-
RSCHydratedRouter,
|
|
12387
|
-
RSCStaticRouter,
|
|
12388
12386
|
Route,
|
|
12389
12387
|
Router,
|
|
12390
12388
|
RouterProvider,
|
|
@@ -12425,7 +12423,6 @@ function deserializeErrors2(errors) {
|
|
|
12425
12423
|
UNSAFE_withErrorBoundaryProps,
|
|
12426
12424
|
UNSAFE_withHydrateFallbackProps,
|
|
12427
12425
|
createBrowserRouter,
|
|
12428
|
-
createCallServer,
|
|
12429
12426
|
createCookie,
|
|
12430
12427
|
createCookieSessionStorage,
|
|
12431
12428
|
createHashRouter,
|
|
@@ -12443,7 +12440,6 @@ function deserializeErrors2(errors) {
|
|
|
12443
12440
|
createStaticRouter,
|
|
12444
12441
|
data,
|
|
12445
12442
|
generatePath,
|
|
12446
|
-
getServerStream,
|
|
12447
12443
|
href,
|
|
12448
12444
|
isCookie,
|
|
12449
12445
|
isRouteErrorResponse,
|
|
@@ -12456,10 +12452,14 @@ function deserializeErrors2(errors) {
|
|
|
12456
12452
|
renderMatches,
|
|
12457
12453
|
replace,
|
|
12458
12454
|
resolvePath,
|
|
12459
|
-
routeRSCServerRequest,
|
|
12460
12455
|
unstable_HistoryRouter,
|
|
12456
|
+
unstable_RSCHydratedRouter,
|
|
12457
|
+
unstable_RSCStaticRouter,
|
|
12461
12458
|
unstable_RouterContextProvider,
|
|
12459
|
+
unstable_createCallServer,
|
|
12462
12460
|
unstable_createContext,
|
|
12461
|
+
unstable_getServerStream,
|
|
12462
|
+
unstable_routeRSCServerRequest,
|
|
12463
12463
|
unstable_setDevServerHooks,
|
|
12464
12464
|
unstable_usePrompt,
|
|
12465
12465
|
useActionData,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -134,7 +134,7 @@ import {
|
|
|
134
134
|
withComponentProps,
|
|
135
135
|
withErrorBoundaryProps,
|
|
136
136
|
withHydrateFallbackProps
|
|
137
|
-
} from "./chunk-
|
|
137
|
+
} from "./chunk-ZPFN2BUI.mjs";
|
|
138
138
|
export {
|
|
139
139
|
Await,
|
|
140
140
|
BrowserRouter,
|
|
@@ -152,8 +152,6 @@ export {
|
|
|
152
152
|
Action as NavigationType,
|
|
153
153
|
Outlet,
|
|
154
154
|
PrefetchPageLinks,
|
|
155
|
-
RSCHydratedRouter,
|
|
156
|
-
RSCStaticRouter,
|
|
157
155
|
Route,
|
|
158
156
|
Router,
|
|
159
157
|
RouterProvider,
|
|
@@ -194,7 +192,6 @@ export {
|
|
|
194
192
|
withErrorBoundaryProps as UNSAFE_withErrorBoundaryProps,
|
|
195
193
|
withHydrateFallbackProps as UNSAFE_withHydrateFallbackProps,
|
|
196
194
|
createBrowserRouter,
|
|
197
|
-
createCallServer,
|
|
198
195
|
createCookie,
|
|
199
196
|
createCookieSessionStorage,
|
|
200
197
|
createHashRouter,
|
|
@@ -212,7 +209,6 @@ export {
|
|
|
212
209
|
createStaticRouter,
|
|
213
210
|
data,
|
|
214
211
|
generatePath,
|
|
215
|
-
getServerStream,
|
|
216
212
|
href,
|
|
217
213
|
isCookie,
|
|
218
214
|
isRouteErrorResponse,
|
|
@@ -225,10 +221,14 @@ export {
|
|
|
225
221
|
renderMatches,
|
|
226
222
|
replace,
|
|
227
223
|
resolvePath,
|
|
228
|
-
routeRSCServerRequest,
|
|
229
224
|
HistoryRouter as unstable_HistoryRouter,
|
|
225
|
+
RSCHydratedRouter as unstable_RSCHydratedRouter,
|
|
226
|
+
RSCStaticRouter as unstable_RSCStaticRouter,
|
|
230
227
|
unstable_RouterContextProvider,
|
|
228
|
+
createCallServer as unstable_createCallServer,
|
|
231
229
|
unstable_createContext,
|
|
230
|
+
getServerStream as unstable_getServerStream,
|
|
231
|
+
routeRSCServerRequest as unstable_routeRSCServerRequest,
|
|
232
232
|
setDevServerHooks as unstable_setDevServerHooks,
|
|
233
233
|
usePrompt as unstable_usePrompt,
|
|
234
234
|
useActionData,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aV as RouteModule, aD as LinkDescriptor, L as Location, aW as Pretty, aA as MetaDescriptor, aX as GetLoaderData, h as MiddlewareEnabled, a9 as unstable_RouterContextProvider, i as AppLoadContext, aY as unstable_MiddlewareNextFunction, aZ as ServerDataFrom, a_ as Normalize, a$ as GetActionData } from '../../route-data-B3YkvRuy.mjs';
|
|
2
2
|
import { a as RouteFiles, P as Pages } from '../../register-DeIo2iHO.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { aX as RouteModule, aI as LinkDescriptor, i as Location, aY as Pretty, aG as MetaDescriptor, aZ as GetLoaderData, M as MiddlewareEnabled, u as unstable_RouterContextProvider, A as AppLoadContext, a_ as unstable_MiddlewareNextFunction, a$ as ServerDataFrom, b0 as RouteFiles, b1 as Normalize, _ as Pages, b2 as GetActionData } from '../../register-B0EYMBux.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
|
|
4
4
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1824,4 +1824,4 @@ type RouteFiles = Register extends {
|
|
|
1824
1824
|
routeFiles: infer Registered extends AnyRouteFiles;
|
|
1825
1825
|
} ? Registered : AnyRouteFiles;
|
|
1826
1826
|
|
|
1827
|
-
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type
|
|
1827
|
+
export { type Equal as $, type AppLoadContext as A, type BlockerFunction as B, type ClientLoaderFunction as C, type DataRouteObject as D, type PageLinkDescriptor as E, type FutureConfig as F, type History as G, type HydrationState as H, type IndexRouteObject as I, type GetScrollRestorationKeyFunction as J, type Fetcher as K, type LoaderFunctionArgs as L, type MiddlewareEnabled as M, type NavigateOptions as N, type CreateStaticHandlerOptions as O, type ParamParseKey as P, type StaticHandler as Q, type RouteManifest as R, type ServerRouteModule as S, type To as T, type UIMatch as U, type LoaderFunction as V, type ActionFunction as W, type MetaFunction as X, type LinksFunction as Y, type unstable_InitialContext as Z, type Pages as _, type ActionFunctionArgs as a, type ServerDataFrom as a$, type ClientActionFunction as a0, type ShouldRevalidateFunction as a1, type RouterState as a2, type GetScrollPositionFunction as a3, type NavigationStates as a4, type RouterSubscriber as a5, type RouterNavigateOptions as a6, type RouterFetchOptions as a7, type RevalidationState as a8, type DataStrategyFunctionArgs as a9, type PatchRoutesOnNavigationFunctionArgs as aA, type ClientActionFunctionArgs as aB, type ClientLoaderFunctionArgs as aC, type HeadersArgs as aD, type HeadersFunction as aE, type MetaArgs as aF, type MetaDescriptor as aG, type HtmlLinkDescriptor as aH, type LinkDescriptor as aI, type Future as aJ, type unstable_SerializesTo as aK, type Register as aL, createBrowserHistory as aM, invariant as aN, createRouter as aO, ErrorResponseImpl as aP, DataRouterContext as aQ, DataRouterStateContext as aR, FetchersContext as aS, LocationContext as aT, NavigationContext as aU, RouteContext as aV, ViewTransitionContext as aW, type RouteModule as aX, type Pretty as aY, type GetLoaderData as aZ, type unstable_MiddlewareNextFunction as a_, type DataStrategyMatch as aa, type DataStrategyResult as ab, DataWithResponseInit as ac, type ErrorResponse as ad, type FormMethod as ae, type unstable_MiddlewareFunction as af, type PathParam as ag, type RedirectFunction as ah, type unstable_RouterContext as ai, type ShouldRevalidateFunctionArgs as aj, unstable_createContext as ak, createPath as al, parsePath as am, IDLE_NAVIGATION as an, IDLE_FETCHER as ao, IDLE_BLOCKER as ap, data as aq, generatePath as ar, isRouteErrorResponse as as, matchPath as at, matchRoutes as au, redirect as av, redirectDocument as aw, replace as ax, resolvePath as ay, type DataRouteMatch as az, type RouteModules as b, type RouteFiles as b0, type Normalize as b1, type GetActionData as b2, type StaticHandlerContext as c, type Router as d, type DataStrategyFunction as e, type Blocker as f, type SerializeFrom as g, type RelativeRoutingType as h, type Location as i, type Path as j, type PathPattern as k, type PathMatch as l, type Navigation as m, Action as n, type Params as o, type RouteObject as p, type LazyRouteFunction as q, type NonIndexRouteObject as r, type RouterInit as s, type InitialEntry as t, unstable_RouterContextProvider as u, type PatchRoutesOnNavigationFunction as v, type Navigator as w, type RouteMatch as x, type HTMLFormMethod as y, type FormEncType as z };
|
|
@@ -1801,4 +1801,4 @@ type _DataActionData<ServerActionData, ClientActionData> = Awaited<[
|
|
|
1801
1801
|
IsDefined<ClientActionData>
|
|
1802
1802
|
] extends [true, true] ? ServerActionData | ClientActionData : IsDefined<ClientActionData> extends true ? ClientActionData : IsDefined<ServerActionData> extends true ? ServerActionData : undefined>;
|
|
1803
1803
|
|
|
1804
|
-
export { type Params as $, type ActionFunction as A, type Blocker as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type DataStrategyMatch as J, type DataStrategyResult as K, type Location as L, type MetaFunction as M, type NonIndexRouteObject as N, DataWithResponseInit as O, type PatchRoutesOnNavigationFunction as P, type ErrorResponse as Q, type RouterInit as R, type StaticHandlerContext as S, type To as T, type FormEncType as U, type FormMethod as V, type HTMLFormMethod as W, type LazyRouteFunction as X, type LoaderFunctionArgs as Y, type unstable_MiddlewareFunction as Z, type ParamParseKey as _, type Router as a, type GetActionData as a$, type PathMatch as a0, type PathParam as a1, type PathPattern as a2, type RedirectFunction as a3, type unstable_RouterContext as a4, type ShouldRevalidateFunction as a5, type ShouldRevalidateFunctionArgs as a6, type UIMatch as a7, unstable_createContext as a8, unstable_RouterContextProvider as a9, type MetaDescriptor as aA, type PageLinkDescriptor as aB, type HtmlLinkDescriptor as aC, type LinkDescriptor as aD, type Future as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteManifest as aR, type ServerRouteModule as aS, type SerializeFrom as aT, type History as aU, type RouteModule as aV, type
|
|
1804
|
+
export { type Params as $, type ActionFunction as A, type Blocker as B, type CreateStaticHandlerOptions as C, type DataStrategyFunction as D, type Equal as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type DataStrategyMatch as J, type DataStrategyResult as K, type Location as L, type MetaFunction as M, type NonIndexRouteObject as N, DataWithResponseInit as O, type PatchRoutesOnNavigationFunction as P, type ErrorResponse as Q, type RouterInit as R, type StaticHandlerContext as S, type To as T, type FormEncType as U, type FormMethod as V, type HTMLFormMethod as W, type LazyRouteFunction as X, type LoaderFunctionArgs as Y, type unstable_MiddlewareFunction as Z, type ParamParseKey as _, type Router as a, type GetActionData as a$, type PathMatch as a0, type PathParam as a1, type PathPattern as a2, type RedirectFunction as a3, type unstable_RouterContext as a4, type ShouldRevalidateFunction as a5, type ShouldRevalidateFunctionArgs as a6, type UIMatch as a7, unstable_createContext as a8, unstable_RouterContextProvider as a9, type MetaDescriptor as aA, type PageLinkDescriptor as aB, type HtmlLinkDescriptor as aC, type LinkDescriptor as aD, type Future as aE, type unstable_SerializesTo as aF, createBrowserHistory as aG, invariant as aH, createRouter as aI, ErrorResponseImpl as aJ, DataRouterContext as aK, DataRouterStateContext as aL, FetchersContext as aM, LocationContext as aN, NavigationContext as aO, RouteContext as aP, ViewTransitionContext as aQ, type RouteManifest as aR, type ServerRouteModule as aS, type SerializeFrom as aT, type History as aU, type RouteModule as aV, type Pretty as aW, type GetLoaderData as aX, type unstable_MiddlewareNextFunction as aY, type ServerDataFrom as aZ, type Normalize as a_, Action as aa, createPath as ab, parsePath as ac, IDLE_NAVIGATION as ad, IDLE_FETCHER as ae, IDLE_BLOCKER as af, data as ag, generatePath as ah, isRouteErrorResponse as ai, matchPath as aj, matchRoutes as ak, redirect as al, redirectDocument as am, replace as an, resolvePath as ao, type DataRouteMatch as ap, type NavigateOptions as aq, type Navigator as ar, type PatchRoutesOnNavigationFunctionArgs as as, type RouteMatch as at, type ClientActionFunction as au, type ClientActionFunctionArgs as av, type ClientLoaderFunctionArgs as aw, type HeadersArgs as ax, type HeadersFunction as ay, type MetaArgs as az, type RouteModules as b, type RouteObject as c, type StaticHandler as d, type IndexRouteObject as e, type LoaderFunction as f, type LinksFunction as g, type MiddlewareEnabled as h, type AppLoadContext as i, type RouterState as j, type DataRouteObject as k, type ClientLoaderFunction as l, type Path as m, type GetScrollRestorationKeyFunction as n, type Fetcher as o, type Navigation as p, type NavigationStates as q, type RelativeRoutingType as r, type BlockerFunction as s, type RouterSubscriber as t, type unstable_InitialContext as u, type RouterNavigateOptions as v, type RouterFetchOptions as w, type RevalidationState as x, type ActionFunctionArgs as y, type DataStrategyFunctionArgs as z };
|
|
@@ -1795,4 +1795,4 @@ declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, onE
|
|
|
1795
1795
|
generateResponse: (match: ServerMatch) => Response;
|
|
1796
1796
|
}): Promise<Response>;
|
|
1797
1797
|
|
|
1798
|
-
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type
|
|
1798
|
+
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|
|
@@ -1795,4 +1795,4 @@ declare function matchRSCServerRequest({ decodeCallServer, decodeFormAction, onE
|
|
|
1795
1795
|
generateResponse: (match: ServerMatch) => Response;
|
|
1796
1796
|
}): Promise<Response>;
|
|
1797
1797
|
|
|
1798
|
-
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type
|
|
1798
|
+
export { type Cookie, type CookieOptions, type CookieSignatureOptions, type FlashSessionData, type IsCookieFunction, type IsSessionFunction, type RenderedRoute as ServerRouteManifest, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, type DecodeCallServerFunction as unstable_DecodeCallServerFunction, type DecodeFormActionFunction as unstable_DecodeFormActionFunction, type unstable_MiddlewareFunction, type unstable_MiddlewareNextFunction, type unstable_RouterContext, unstable_RouterContextProvider, type ServerManifestPayload as unstable_ServerManifestPayload, type ServerMatch as unstable_ServerMatch, type ServerPayload as unstable_ServerPayload, type ServerRenderPayload as unstable_ServerRenderPayload, type ServerRouteMatch as unstable_ServerRouteMatch, type ServerRouteObject as unstable_ServerRouteObject, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|
|
@@ -25,7 +25,7 @@ function _interopNamespace(e) {
|
|
|
25
25
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
|
-
* react-router v0.0.0-experimental-
|
|
28
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
29
29
|
*
|
|
30
30
|
* Copyright (c) Remix Software Inc.
|
|
31
31
|
*
|
|
@@ -61,7 +61,7 @@ function createKey() {
|
|
|
61
61
|
}
|
|
62
62
|
function createLocation(current, to, state = null, key) {
|
|
63
63
|
let location = {
|
|
64
|
-
pathname:
|
|
64
|
+
pathname: "string" === "string" ? current : current.pathname,
|
|
65
65
|
search: "",
|
|
66
66
|
hash: "",
|
|
67
67
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -1506,10 +1506,9 @@ async function runMiddlewarePipeline(args, propagateResult, handler, errorHandle
|
|
|
1506
1506
|
middlewareState.middlewareError.error,
|
|
1507
1507
|
middlewareState.middlewareError.routeId
|
|
1508
1508
|
);
|
|
1509
|
-
|
|
1509
|
+
{
|
|
1510
1510
|
return result;
|
|
1511
1511
|
}
|
|
1512
|
-
return Object.assign(middlewareState.handlerResult, result);
|
|
1513
1512
|
}
|
|
1514
1513
|
}
|
|
1515
1514
|
async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) {
|
|
@@ -1543,7 +1542,7 @@ async function callRouteMiddleware(args, middlewares, propagateResult, middlewar
|
|
|
1543
1542
|
handler,
|
|
1544
1543
|
idx + 1
|
|
1545
1544
|
);
|
|
1546
|
-
|
|
1545
|
+
{
|
|
1547
1546
|
nextResult = result;
|
|
1548
1547
|
return nextResult;
|
|
1549
1548
|
}
|
|
@@ -2555,7 +2554,11 @@ async function generateRenderResponse(request, routes, decodeCallServer, decodeF
|
|
|
2555
2554
|
if (matches) {
|
|
2556
2555
|
await Promise.all(matches.map((m) => explodeLazyRoute(m.route)));
|
|
2557
2556
|
}
|
|
2558
|
-
const handler = createStaticHandler(routes
|
|
2557
|
+
const handler = createStaticHandler(routes, {
|
|
2558
|
+
mapRouteProperties: (r) => ({
|
|
2559
|
+
hasErrorBoundary: r.ErrorBoundary != null
|
|
2560
|
+
})
|
|
2561
|
+
});
|
|
2559
2562
|
const result = await handler.query(request, {
|
|
2560
2563
|
skipLoaderErrorBubbling: isDataRequest,
|
|
2561
2564
|
skipRevalidation: isSubmission,
|
|
@@ -2862,9 +2865,9 @@ exports.createStaticHandler = createStaticHandler;
|
|
|
2862
2865
|
exports.data = data;
|
|
2863
2866
|
exports.isCookie = isCookie;
|
|
2864
2867
|
exports.isSession = isSession;
|
|
2865
|
-
exports.matchRSCServerRequest = matchRSCServerRequest;
|
|
2866
2868
|
exports.matchRoutes = matchRoutes;
|
|
2867
2869
|
exports.redirect = redirect;
|
|
2868
2870
|
exports.redirectDocument = redirectDocument;
|
|
2869
2871
|
exports.replace = replace;
|
|
2870
2872
|
exports.unstable_createContext = unstable_createContext;
|
|
2873
|
+
exports.unstable_matchRSCServerRequest = matchRSCServerRequest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { serialize, parse } from 'cookie';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { splitCookiesString } from 'set-cookie-parser';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
* react-router v0.0.0-experimental-
|
|
6
|
+
* react-router v0.0.0-experimental-8c9575952
|
|
7
7
|
*
|
|
8
8
|
* Copyright (c) Remix Software Inc.
|
|
9
9
|
*
|
|
@@ -39,7 +39,7 @@ function createKey() {
|
|
|
39
39
|
}
|
|
40
40
|
function createLocation(current, to, state = null, key) {
|
|
41
41
|
let location = {
|
|
42
|
-
pathname:
|
|
42
|
+
pathname: "string" === "string" ? current : current.pathname,
|
|
43
43
|
search: "",
|
|
44
44
|
hash: "",
|
|
45
45
|
...typeof to === "string" ? parsePath(to) : to,
|
|
@@ -1484,10 +1484,9 @@ async function runMiddlewarePipeline(args, propagateResult, handler, errorHandle
|
|
|
1484
1484
|
middlewareState.middlewareError.error,
|
|
1485
1485
|
middlewareState.middlewareError.routeId
|
|
1486
1486
|
);
|
|
1487
|
-
|
|
1487
|
+
{
|
|
1488
1488
|
return result;
|
|
1489
1489
|
}
|
|
1490
|
-
return Object.assign(middlewareState.handlerResult, result);
|
|
1491
1490
|
}
|
|
1492
1491
|
}
|
|
1493
1492
|
async function callRouteMiddleware(args, middlewares, propagateResult, middlewareState, handler, idx = 0) {
|
|
@@ -1521,7 +1520,7 @@ async function callRouteMiddleware(args, middlewares, propagateResult, middlewar
|
|
|
1521
1520
|
handler,
|
|
1522
1521
|
idx + 1
|
|
1523
1522
|
);
|
|
1524
|
-
|
|
1523
|
+
{
|
|
1525
1524
|
nextResult = result;
|
|
1526
1525
|
return nextResult;
|
|
1527
1526
|
}
|
|
@@ -2533,7 +2532,11 @@ async function generateRenderResponse(request, routes, decodeCallServer, decodeF
|
|
|
2533
2532
|
if (matches) {
|
|
2534
2533
|
await Promise.all(matches.map((m) => explodeLazyRoute(m.route)));
|
|
2535
2534
|
}
|
|
2536
|
-
const handler = createStaticHandler(routes
|
|
2535
|
+
const handler = createStaticHandler(routes, {
|
|
2536
|
+
mapRouteProperties: (r) => ({
|
|
2537
|
+
hasErrorBoundary: r.ErrorBoundary != null
|
|
2538
|
+
})
|
|
2539
|
+
});
|
|
2537
2540
|
const result = await handler.query(request, {
|
|
2538
2541
|
skipLoaderErrorBubbling: isDataRequest,
|
|
2539
2542
|
skipRevalidation: isSubmission,
|
|
@@ -2831,4 +2834,4 @@ function canDecodeWithFormData(contentType) {
|
|
|
2831
2834
|
return contentType.match(/\bapplication\/x-www-form-urlencoded\b/) || contentType.match(/\bmultipart\/form-data\b/);
|
|
2832
2835
|
}
|
|
2833
2836
|
|
|
2834
|
-
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession,
|
|
2837
|
+
export { createCookie, createCookieSessionStorage, createMemorySessionStorage, createSession, createSessionStorage, createStaticHandler, data, isCookie, isSession, matchRoutes, redirect, redirectDocument, replace, unstable_createContext, matchRSCServerRequest as unstable_matchRSCServerRequest };
|