react-router 0.0.0-experimental-9f7fdccd4 → 0.0.0-experimental-16086cbff
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 +47 -5
- package/dist/{chunk-6LGY6RXA.mjs → development/chunk-QNZWGNGC.mjs} +4 -3
- package/dist/{dom-export.d.mts → development/dom-export.d.mts} +2 -2
- package/dist/{dom-export.d.ts → development/dom-export.d.ts} +2 -2
- package/dist/{dom-export.js → development/dom-export.js} +1 -1
- package/dist/{dom-export.mjs → development/dom-export.mjs} +2 -2
- package/dist/{fog-of-war-Bz_EDtxF.d.mts → development/fog-of-war-B_9-dVIj.d.mts} +1 -1
- package/dist/{fog-of-war-BijhfqFM.d.ts → development/fog-of-war-IYvSvFN8.d.ts} +1 -1
- package/dist/{index.d.mts → development/index.d.mts} +4 -4
- package/dist/{index.d.ts → development/index.d.ts} +4 -4
- package/dist/{index.js → development/index.js} +4 -3
- package/dist/{index.mjs → development/index.mjs} +2 -2
- package/dist/development/lib/types.d.mts +2 -0
- package/dist/development/lib/types.d.ts +2 -0
- package/dist/{lib → development/lib}/types.js +1 -1
- package/dist/{lib → development/lib}/types.mjs +1 -1
- package/dist/{types-BlYP8xpH.d.mts → development/types-Dc4mFopM.d.mts} +9 -12
- package/dist/{types-BlYP8xpH.d.ts → development/types-Dc4mFopM.d.ts} +9 -12
- package/dist/production/chunk-TDDKLVYD.mjs +9618 -0
- package/dist/production/dom-export.d.mts +13 -0
- package/dist/production/dom-export.d.ts +13 -0
- package/dist/production/dom-export.js +5502 -0
- package/dist/production/dom-export.mjs +199 -0
- package/dist/production/fog-of-war-B_9-dVIj.d.mts +1595 -0
- package/dist/production/fog-of-war-IYvSvFN8.d.ts +1595 -0
- package/dist/production/index.d.mts +839 -0
- package/dist/production/index.d.ts +839 -0
- package/dist/production/index.js +9764 -0
- package/dist/production/index.mjs +235 -0
- package/dist/production/lib/types.d.mts +2 -0
- package/dist/production/lib/types.d.ts +2 -0
- package/dist/production/lib/types.js +28 -0
- package/dist/production/lib/types.mjs +10 -0
- package/dist/production/types-Dc4mFopM.d.mts +1617 -0
- package/dist/production/types-Dc4mFopM.d.ts +1617 -0
- package/package.json +31 -20
- package/dist/lib/types.d.mts +0 -2
- package/dist/lib/types.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 6.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- - Log deprecation warnings for v7 flags ([#11750](https://github.com/remix-run/react-router/pull/11750))
|
|
8
|
+
- Add deprecation warnings to `json`/`defer` in favor of returning raw objects
|
|
9
|
+
- These methods will be removed in React Router v7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Update JSDoc URLs for new website structure (add /v6/ segment) ([#12141](https://github.com/remix-run/react-router/pull/12141))
|
|
14
|
+
- Updated dependencies:
|
|
15
|
+
- `@remix-run/router@1.21.0`
|
|
16
|
+
|
|
17
|
+
## 6.27.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- Stabilize `unstable_patchRoutesOnNavigation` ([#11973](https://github.com/remix-run/react-router/pull/11973))
|
|
22
|
+
- Add new `PatchRoutesOnNavigationFunctionArgs` type for convenience ([#11967](https://github.com/remix-run/react-router/pull/11967))
|
|
23
|
+
- Stabilize `unstable_dataStrategy` ([#11974](https://github.com/remix-run/react-router/pull/11974))
|
|
24
|
+
- Stabilize the `unstable_flushSync` option for navigations and fetchers ([#11989](https://github.com/remix-run/react-router/pull/11989))
|
|
25
|
+
- Stabilize the `unstable_viewTransition` option for navigations and the corresponding `unstable_useViewTransitionState` hook ([#11989](https://github.com/remix-run/react-router/pull/11989))
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Fix bug when submitting to the current contextual route (parent route with an index child) when an `?index` param already exists from a prior submission ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
30
|
+
|
|
31
|
+
- Fix `useFormAction` bug - when removing `?index` param it would not keep other non-Remix `index` params ([#12003](https://github.com/remix-run/react-router/pull/12003))
|
|
32
|
+
|
|
33
|
+
- Fix types for `RouteObject` within `PatchRoutesOnNavigationFunction`'s `patch` method so it doesn't expect agnostic route objects passed to `patch` ([#11967](https://github.com/remix-run/react-router/pull/11967))
|
|
34
|
+
|
|
35
|
+
- Updated dependencies:
|
|
36
|
+
- `@remix-run/router@1.20.0`
|
|
37
|
+
|
|
38
|
+
## 6.26.2
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies:
|
|
43
|
+
- `@remix-run/router@1.19.2`
|
|
44
|
+
|
|
3
45
|
## 6.26.1
|
|
4
46
|
|
|
5
47
|
### Patch Changes
|
|
@@ -54,7 +96,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
54
96
|
|
|
55
97
|
- Add support for Lazy Route Discovery (a.k.a. Fog of War) ([#11626](https://github.com/remix-run/react-router/pull/11626))
|
|
56
98
|
- RFC: <https://github.com/remix-run/react-router/discussions/11113>
|
|
57
|
-
- `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/
|
|
99
|
+
- `unstable_patchRoutesOnMiss` docs: <https://reactrouter.com/v6/routers/create-browser-router>
|
|
58
100
|
|
|
59
101
|
### Patch Changes
|
|
60
102
|
|
|
@@ -300,7 +342,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
300
342
|
### Minor Changes
|
|
301
343
|
|
|
302
344
|
- Add `unstable_flushSync` option to `useNavigate`/`useSumbit`/`fetcher.load`/`fetcher.submit` to opt-out of `React.startTransition` and into `ReactDOM.flushSync` for state updates ([#11005](https://github.com/remix-run/react-router/pull/11005))
|
|
303
|
-
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/
|
|
345
|
+
- Remove the `unstable_` prefix from the [`useBlocker`](https://reactrouter.com/v6/hooks/use-blocker) hook as it's been in use for enough time that we are confident in the API. We do not plan to remove the prefix from `unstable_usePrompt` due to differences in how browsers handle `window.confirm` that prevent React Router from guaranteeing consistent/correct behavior. ([#10991](https://github.com/remix-run/react-router/pull/10991))
|
|
304
346
|
|
|
305
347
|
### Patch Changes
|
|
306
348
|
|
|
@@ -390,7 +432,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
390
432
|
|
|
391
433
|
### Minor Changes
|
|
392
434
|
|
|
393
|
-
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/
|
|
435
|
+
- Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/v6/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#10596](https://github.com/remix-run/react-router/pull/10596))
|
|
394
436
|
|
|
395
437
|
Existing behavior will no longer include `React.startTransition`:
|
|
396
438
|
|
|
@@ -473,7 +515,7 @@ No significant changes to this package were made in this release. [See the repo
|
|
|
473
515
|
|
|
474
516
|
### Minor Changes
|
|
475
517
|
|
|
476
|
-
- Added support for [**Future Flags**](https://reactrouter.com/
|
|
518
|
+
- Added support for [**Future Flags**](https://reactrouter.com/v6/guides/api-development-strategy) in React Router. The first flag being introduced is `future.v7_normalizeFormMethod` which will normalize the exposed `useNavigation()/useFetcher()` `formMethod` fields as uppercase HTTP methods to align with the `fetch()` behavior. ([#10207](https://github.com/remix-run/react-router/pull/10207))
|
|
477
519
|
|
|
478
520
|
- When `future.v7_normalizeFormMethod === false` (default v6 behavior),
|
|
479
521
|
- `useNavigation().formMethod` is lowercase
|
|
@@ -750,7 +792,7 @@ function Comp() {
|
|
|
750
792
|
|
|
751
793
|
## 6.4.0
|
|
752
794
|
|
|
753
|
-
Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/start/overview) and the [tutorial](https://reactrouter.com/start/tutorial).
|
|
795
|
+
Whoa this is a big one! `6.4.0` brings all the data loading and mutation APIs over from Remix. Here's a quick high level overview, but it's recommended you go check out the [docs](https://reactrouter.com), especially the [feature overview](https://reactrouter.com/en/6.4.0/start/overview) and the [tutorial](https://reactrouter.com/en/6.4.0/start/tutorial).
|
|
754
796
|
|
|
755
797
|
**New APIs**
|
|
756
798
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-16086cbff
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -6980,7 +6980,7 @@ function mergeRefs(...refs) {
|
|
|
6980
6980
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
6981
6981
|
try {
|
|
6982
6982
|
if (isBrowser) {
|
|
6983
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
6983
|
+
window.__reactRouterVersion = "0.0.0-experimental-16086cbff";
|
|
6984
6984
|
}
|
|
6985
6985
|
} catch (e) {
|
|
6986
6986
|
}
|
|
@@ -8571,9 +8571,10 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
8571
8571
|
// context even though we know it'll always be provided in remix
|
|
8572
8572
|
loader: route.module.loader ? async (args) => {
|
|
8573
8573
|
if (args.request.headers.has("X-React-Router-Prerender-Data")) {
|
|
8574
|
-
|
|
8574
|
+
const preRenderedData = args.request.headers.get(
|
|
8575
8575
|
"X-React-Router-Prerender-Data"
|
|
8576
8576
|
);
|
|
8577
|
+
let encoded = preRenderedData ? decodeURI(preRenderedData) : preRenderedData;
|
|
8577
8578
|
invariant3(encoded, "Missing prerendered data for route");
|
|
8578
8579
|
let uint8array = new TextEncoder().encode(encoded);
|
|
8579
8580
|
let stream = new ReadableStream({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
3
|
-
import './types-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-B_9-dVIj.mjs';
|
|
3
|
+
import './types-Dc4mFopM.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
6
6
|
declare function RouterProvider(props: Omit<RouterProviderProps, "flushSync">): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
3
|
-
import './types-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-IYvSvFN8.js';
|
|
3
|
+
import './types-Dc4mFopM.js';
|
|
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-16086cbff
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
matchRoutes,
|
|
26
26
|
shouldHydrateRouteLoader,
|
|
27
27
|
useFogOFWarDiscovery
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-QNZWGNGC.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { o as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, an as PatchRoutesOnNavigationFunction, a as Router$1, T as To, h as RelativeRoutingType, w as NonIndexRouteObject, a1 as LazyRouteFunction, v as IndexRouteObject, i as Location, j as Action, am as Navigator, ap as RouteMatch, s as StaticHandlerContext, d as RouteManifest, R as RouteModules, al as DataRouteObject, aI as RouteModule, a0 as HTMLFormMethod, _ as FormEncType, au as PageLinkDescriptor, aJ as History, y as GetScrollRestorationKeyFunction, N as NavigateOptions, z as Fetcher, S as SerializeFrom, B as BlockerFunction } from './types-
|
|
2
|
+
import { o as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, an as PatchRoutesOnNavigationFunction, a as Router$1, T as To, h as RelativeRoutingType, w as NonIndexRouteObject, a1 as LazyRouteFunction, v as IndexRouteObject, i as Location, j as Action, am as Navigator, ap as RouteMatch, s as StaticHandlerContext, d as RouteManifest, R as RouteModules, al as DataRouteObject, aI as RouteModule, a0 as HTMLFormMethod, _ as FormEncType, au as PageLinkDescriptor, aJ as History, y as GetScrollRestorationKeyFunction, N as NavigateOptions, z as Fetcher, S as SerializeFrom, B as BlockerFunction } from './types-Dc4mFopM.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { o as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, an as PatchRoutesOnNavigationFunction, a as Router$1, T as To, h as RelativeRoutingType, w as NonIndexRouteObject, a1 as LazyRouteFunction, v as IndexRouteObject, i as Location, j as Action, am as Navigator, ap as RouteMatch, s as StaticHandlerContext, d as RouteManifest, R as RouteModules, al as DataRouteObject, aI as RouteModule, a0 as HTMLFormMethod, _ as FormEncType, au as PageLinkDescriptor, aJ as History, y as GetScrollRestorationKeyFunction, N as NavigateOptions, z as Fetcher, S as SerializeFrom, B as BlockerFunction } from './types-
|
|
2
|
+
import { o as RouteObject, F as FutureConfig$1, H as HydrationState, I as InitialEntry, D as DataStrategyFunction, an as PatchRoutesOnNavigationFunction, a as Router$1, T as To, h as RelativeRoutingType, w as NonIndexRouteObject, a1 as LazyRouteFunction, v as IndexRouteObject, i as Location, j as Action, am as Navigator, ap as RouteMatch, s as StaticHandlerContext, d as RouteManifest, R as RouteModules, al as DataRouteObject, aI as RouteModule, a0 as HTMLFormMethod, _ as FormEncType, au as PageLinkDescriptor, aJ as History, y as GetScrollRestorationKeyFunction, N as NavigateOptions, z as Fetcher, S as SerializeFrom, B as BlockerFunction } from './types-Dc4mFopM.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as AppLoadContext$1, f as LoaderFunctionArgs, g as ActionFunctionArgs, T as To, h as RelativeRoutingType, i as Location, j as Action, P as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, N as NavigateOptions, n as Params, o as RouteObject, p as Navigation, q as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, r as Blocker, s as StaticHandlerContext, t as StaticHandler, F as FutureConfig$1, u as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as NonIndexRouteObject, x as RouterState } from './types-
|
|
2
|
-
export { aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, ak as DataRouteMatch, al as DataRouteObject, V as DataStrategyFunctionArgs, W as DataStrategyMatch, X as DataStrategyResult, Z as ErrorResponse, z as Fetcher, _ as FormEncType, $ as FormMethod, G as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, a0 as HTMLFormMethod, av as HtmlLinkDescriptor, aa as IDLE_BLOCKER, a9 as IDLE_FETCHER, a8 as IDLE_NAVIGATION, a1 as LazyRouteFunction, aw as LinkDescriptor, as as MetaArgs, at as MetaDescriptor, E as NavigationStates, am as Navigator, au as PageLinkDescriptor, an as PatchRoutesOnNavigationFunction, ao as PatchRoutesOnNavigationFunctionArgs, a2 as PathParam, a3 as RedirectFunction, ap as RouteMatch, Q as RouterFetchOptions, J as RouterInit, O as RouterNavigateOptions, K as RouterSubscriber, a4 as ShouldRevalidateFunction, a5 as ShouldRevalidateFunctionArgs, aB as UNSAFE_DataRouterContext, aC as UNSAFE_DataRouterStateContext, Y as UNSAFE_DataWithResponseInit, aA as UNSAFE_ErrorResponseImpl, aD as UNSAFE_FetchersContext, aE as UNSAFE_LocationContext, aF as UNSAFE_NavigationContext, aG as UNSAFE_RouteContext, aH as UNSAFE_ViewTransitionContext, ax as UNSAFE_createBrowserHistory, az as UNSAFE_createRouter, ay as UNSAFE_invariant, a6 as createPath, ab as data, ac as generatePath, ad as isRouteErrorResponse, ae as matchPath, af as matchRoutes, a7 as parsePath, ag as redirect, ah as redirectDocument, ai as replace, aj as resolvePath } from './types-
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export { f as Await, b as AwaitProps, G as BrowserRouter, B as BrowserRouterProps, u as FetcherFormProps, y as FetcherSubmitFunction, a3 as FetcherSubmitOptions, z as FetcherWithComponents, U as Form, v as FormProps, J as HashRouter, H as HashRouterProps, p as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, K as Link, q as LinkProps, aa as Links, g as MemoryRouter, M as MemoryRouterProps, a9 as Meta, T as NavLink, s as NavLinkProps, t as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a4 as ParamKeyValuePair, P as PathRouteProps, ac as PrefetchPageLinks, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, ab as Scripts, ad as ScriptsProps, V as ScrollRestoration, S as ScrollRestorationProps, w as SetURLSearchParams, x as SubmitFunction, a5 as SubmitOptions, a7 as SubmitTarget, af as UNSAFE_FrameworkContext, ai as UNSAFE_createClientRoutes, aj as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ag as UNSAFE_getPatchRoutesOnNavigationFunction, ae as UNSAFE_mapRouteProperties, ak as UNSAFE_shouldHydrateRouteLoader, ah as UNSAFE_useFogOFWarDiscovery, al as UNSAFE_useScrollRestoration, a6 as URLSearchParamsInit, C as createBrowserRouter, D as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, o as createRoutesFromElements, a8 as createSearchParams, r as renderMatches, Q as unstable_HistoryRouter, a1 as unstable_usePrompt, a0 as useBeforeUnload, _ as useFetcher, $ as useFetchers, Z as useFormAction, W as useLinkClickHandler, X as useSearchParams, Y as useSubmit, a2 as useViewTransitionState } from './fog-of-war-
|
|
1
|
+
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as AppLoadContext$1, f as LoaderFunctionArgs, g as ActionFunctionArgs, T as To, h as RelativeRoutingType, i as Location, j as Action, P as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, N as NavigateOptions, n as Params, o as RouteObject, p as Navigation, q as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, r as Blocker, s as StaticHandlerContext, t as StaticHandler, F as FutureConfig$1, u as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as NonIndexRouteObject, x as RouterState } from './types-Dc4mFopM.mjs';
|
|
2
|
+
export { aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, ak as DataRouteMatch, al as DataRouteObject, V as DataStrategyFunctionArgs, W as DataStrategyMatch, X as DataStrategyResult, Z as ErrorResponse, z as Fetcher, _ as FormEncType, $ as FormMethod, G as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, a0 as HTMLFormMethod, av as HtmlLinkDescriptor, aa as IDLE_BLOCKER, a9 as IDLE_FETCHER, a8 as IDLE_NAVIGATION, a1 as LazyRouteFunction, aw as LinkDescriptor, as as MetaArgs, at as MetaDescriptor, E as NavigationStates, am as Navigator, au as PageLinkDescriptor, an as PatchRoutesOnNavigationFunction, ao as PatchRoutesOnNavigationFunctionArgs, a2 as PathParam, a3 as RedirectFunction, ap as RouteMatch, Q as RouterFetchOptions, J as RouterInit, O as RouterNavigateOptions, K as RouterSubscriber, a4 as ShouldRevalidateFunction, a5 as ShouldRevalidateFunctionArgs, aB as UNSAFE_DataRouterContext, aC as UNSAFE_DataRouterStateContext, Y as UNSAFE_DataWithResponseInit, aA as UNSAFE_ErrorResponseImpl, aD as UNSAFE_FetchersContext, aE as UNSAFE_LocationContext, aF as UNSAFE_NavigationContext, aG as UNSAFE_RouteContext, aH as UNSAFE_ViewTransitionContext, ax as UNSAFE_createBrowserHistory, az as UNSAFE_createRouter, ay as UNSAFE_invariant, a6 as createPath, ab as data, ac as generatePath, ad as isRouteErrorResponse, ae as matchPath, af as matchRoutes, a7 as parsePath, ag as redirect, ah as redirectDocument, ai as replace, aj as resolvePath } from './types-Dc4mFopM.mjs';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-B_9-dVIj.mjs';
|
|
4
|
+
export { f as Await, b as AwaitProps, G as BrowserRouter, B as BrowserRouterProps, u as FetcherFormProps, y as FetcherSubmitFunction, a3 as FetcherSubmitOptions, z as FetcherWithComponents, U as Form, v as FormProps, J as HashRouter, H as HashRouterProps, p as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, K as Link, q as LinkProps, aa as Links, g as MemoryRouter, M as MemoryRouterProps, a9 as Meta, T as NavLink, s as NavLinkProps, t as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a4 as ParamKeyValuePair, P as PathRouteProps, ac as PrefetchPageLinks, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, ab as Scripts, ad as ScriptsProps, V as ScrollRestoration, S as ScrollRestorationProps, w as SetURLSearchParams, x as SubmitFunction, a5 as SubmitOptions, a7 as SubmitTarget, af as UNSAFE_FrameworkContext, ai as UNSAFE_createClientRoutes, aj as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ag as UNSAFE_getPatchRoutesOnNavigationFunction, ae as UNSAFE_mapRouteProperties, ak as UNSAFE_shouldHydrateRouteLoader, ah as UNSAFE_useFogOFWarDiscovery, al as UNSAFE_useScrollRestoration, a6 as URLSearchParamsInit, C as createBrowserRouter, D as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, o as createRoutesFromElements, a8 as createSearchParams, r as renderMatches, Q as unstable_HistoryRouter, a1 as unstable_usePrompt, a0 as useBeforeUnload, _ as useFetcher, $ as useFetchers, Z as useFormAction, W as useLinkClickHandler, X as useSearchParams, Y as useSubmit, a2 as useViewTransitionState } from './fog-of-war-B_9-dVIj.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as AppLoadContext$1, f as LoaderFunctionArgs, g as ActionFunctionArgs, T as To, h as RelativeRoutingType, i as Location, j as Action, P as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, N as NavigateOptions, n as Params, o as RouteObject, p as Navigation, q as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, r as Blocker, s as StaticHandlerContext, t as StaticHandler, F as FutureConfig$1, u as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as NonIndexRouteObject, x as RouterState } from './types-
|
|
2
|
-
export { aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, ak as DataRouteMatch, al as DataRouteObject, V as DataStrategyFunctionArgs, W as DataStrategyMatch, X as DataStrategyResult, Z as ErrorResponse, z as Fetcher, _ as FormEncType, $ as FormMethod, G as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, a0 as HTMLFormMethod, av as HtmlLinkDescriptor, aa as IDLE_BLOCKER, a9 as IDLE_FETCHER, a8 as IDLE_NAVIGATION, a1 as LazyRouteFunction, aw as LinkDescriptor, as as MetaArgs, at as MetaDescriptor, E as NavigationStates, am as Navigator, au as PageLinkDescriptor, an as PatchRoutesOnNavigationFunction, ao as PatchRoutesOnNavigationFunctionArgs, a2 as PathParam, a3 as RedirectFunction, ap as RouteMatch, Q as RouterFetchOptions, J as RouterInit, O as RouterNavigateOptions, K as RouterSubscriber, a4 as ShouldRevalidateFunction, a5 as ShouldRevalidateFunctionArgs, aB as UNSAFE_DataRouterContext, aC as UNSAFE_DataRouterStateContext, Y as UNSAFE_DataWithResponseInit, aA as UNSAFE_ErrorResponseImpl, aD as UNSAFE_FetchersContext, aE as UNSAFE_LocationContext, aF as UNSAFE_NavigationContext, aG as UNSAFE_RouteContext, aH as UNSAFE_ViewTransitionContext, ax as UNSAFE_createBrowserHistory, az as UNSAFE_createRouter, ay as UNSAFE_invariant, a6 as createPath, ab as data, ac as generatePath, ad as isRouteErrorResponse, ae as matchPath, af as matchRoutes, a7 as parsePath, ag as redirect, ah as redirectDocument, ai as replace, aj as resolvePath } from './types-
|
|
3
|
-
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-
|
|
4
|
-
export { f as Await, b as AwaitProps, G as BrowserRouter, B as BrowserRouterProps, u as FetcherFormProps, y as FetcherSubmitFunction, a3 as FetcherSubmitOptions, z as FetcherWithComponents, U as Form, v as FormProps, J as HashRouter, H as HashRouterProps, p as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, K as Link, q as LinkProps, aa as Links, g as MemoryRouter, M as MemoryRouterProps, a9 as Meta, T as NavLink, s as NavLinkProps, t as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a4 as ParamKeyValuePair, P as PathRouteProps, ac as PrefetchPageLinks, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, ab as Scripts, ad as ScriptsProps, V as ScrollRestoration, S as ScrollRestorationProps, w as SetURLSearchParams, x as SubmitFunction, a5 as SubmitOptions, a7 as SubmitTarget, af as UNSAFE_FrameworkContext, ai as UNSAFE_createClientRoutes, aj as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ag as UNSAFE_getPatchRoutesOnNavigationFunction, ae as UNSAFE_mapRouteProperties, ak as UNSAFE_shouldHydrateRouteLoader, ah as UNSAFE_useFogOFWarDiscovery, al as UNSAFE_useScrollRestoration, a6 as URLSearchParamsInit, C as createBrowserRouter, D as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, o as createRoutesFromElements, a8 as createSearchParams, r as renderMatches, Q as unstable_HistoryRouter, a1 as unstable_usePrompt, a0 as useBeforeUnload, _ as useFetcher, $ as useFetchers, Z as useFormAction, W as useLinkClickHandler, X as useSearchParams, Y as useSubmit, a2 as useViewTransitionState } from './fog-of-war-
|
|
1
|
+
import { R as RouteModules, a as Router, D as DataStrategyFunction, A as ActionFunction, L as LoaderFunction, C as ClientActionFunction, b as ClientLoaderFunction, c as LinksFunction, M as MetaFunction, d as RouteManifest, e as AppLoadContext$1, f as LoaderFunctionArgs, g as ActionFunctionArgs, T as To, h as RelativeRoutingType, i as Location, j as Action, P as ParamParseKey, k as Path, l as PathPattern, m as PathMatch, N as NavigateOptions, n as Params, o as RouteObject, p as Navigation, q as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, r as Blocker, s as StaticHandlerContext, t as StaticHandler, F as FutureConfig$1, u as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as NonIndexRouteObject, x as RouterState } from './types-Dc4mFopM.js';
|
|
2
|
+
export { aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, ak as DataRouteMatch, al as DataRouteObject, V as DataStrategyFunctionArgs, W as DataStrategyMatch, X as DataStrategyResult, Z as ErrorResponse, z as Fetcher, _ as FormEncType, $ as FormMethod, G as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, a0 as HTMLFormMethod, av as HtmlLinkDescriptor, aa as IDLE_BLOCKER, a9 as IDLE_FETCHER, a8 as IDLE_NAVIGATION, a1 as LazyRouteFunction, aw as LinkDescriptor, as as MetaArgs, at as MetaDescriptor, E as NavigationStates, am as Navigator, au as PageLinkDescriptor, an as PatchRoutesOnNavigationFunction, ao as PatchRoutesOnNavigationFunctionArgs, a2 as PathParam, a3 as RedirectFunction, ap as RouteMatch, Q as RouterFetchOptions, J as RouterInit, O as RouterNavigateOptions, K as RouterSubscriber, a4 as ShouldRevalidateFunction, a5 as ShouldRevalidateFunctionArgs, aB as UNSAFE_DataRouterContext, aC as UNSAFE_DataRouterStateContext, Y as UNSAFE_DataWithResponseInit, aA as UNSAFE_ErrorResponseImpl, aD as UNSAFE_FetchersContext, aE as UNSAFE_LocationContext, aF as UNSAFE_NavigationContext, aG as UNSAFE_RouteContext, aH as UNSAFE_ViewTransitionContext, ax as UNSAFE_createBrowserHistory, az as UNSAFE_createRouter, ay as UNSAFE_invariant, a6 as createPath, ab as data, ac as generatePath, ad as isRouteErrorResponse, ae as matchPath, af as matchRoutes, a7 as parsePath, ag as redirect, ah as redirectDocument, ai as replace, aj as resolvePath } from './types-Dc4mFopM.js';
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-IYvSvFN8.js';
|
|
4
|
+
export { f as Await, b as AwaitProps, G as BrowserRouter, B as BrowserRouterProps, u as FetcherFormProps, y as FetcherSubmitFunction, a3 as FetcherSubmitOptions, z as FetcherWithComponents, U as Form, v as FormProps, J as HashRouter, H as HashRouterProps, p as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, K as Link, q as LinkProps, aa as Links, g as MemoryRouter, M as MemoryRouterProps, a9 as Meta, T as NavLink, s as NavLinkProps, t as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a4 as ParamKeyValuePair, P as PathRouteProps, ac as PrefetchPageLinks, j as Route, c as RouteProps, k as Router, d as RouterProps, l as RouterProvider, R as RouterProviderProps, m as Routes, e as RoutesProps, ab as Scripts, ad as ScriptsProps, V as ScrollRestoration, S as ScrollRestorationProps, w as SetURLSearchParams, x as SubmitFunction, a5 as SubmitOptions, a7 as SubmitTarget, af as UNSAFE_FrameworkContext, ai as UNSAFE_createClientRoutes, aj as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ag as UNSAFE_getPatchRoutesOnNavigationFunction, ae as UNSAFE_mapRouteProperties, ak as UNSAFE_shouldHydrateRouteLoader, ah as UNSAFE_useFogOFWarDiscovery, al as UNSAFE_useScrollRestoration, a6 as URLSearchParamsInit, C as createBrowserRouter, D as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, o as createRoutesFromElements, a8 as createSearchParams, r as renderMatches, Q as unstable_HistoryRouter, a1 as unstable_usePrompt, a0 as useBeforeUnload, _ as useFetcher, $ as useFetchers, Z as useFormAction, W as useLinkClickHandler, X as useSearchParams, Y as useSubmit, a2 as useViewTransitionState } from './fog-of-war-IYvSvFN8.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-16086cbff
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -7125,7 +7125,7 @@ function mergeRefs(...refs) {
|
|
|
7125
7125
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7126
7126
|
try {
|
|
7127
7127
|
if (isBrowser) {
|
|
7128
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
7128
|
+
window.__reactRouterVersion = "0.0.0-experimental-16086cbff";
|
|
7129
7129
|
}
|
|
7130
7130
|
} catch (e) {
|
|
7131
7131
|
}
|
|
@@ -8716,9 +8716,10 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
8716
8716
|
// context even though we know it'll always be provided in remix
|
|
8717
8717
|
loader: route.module.loader ? async (args) => {
|
|
8718
8718
|
if (args.request.headers.has("X-React-Router-Prerender-Data")) {
|
|
8719
|
-
|
|
8719
|
+
const preRenderedData = args.request.headers.get(
|
|
8720
8720
|
"X-React-Router-Prerender-Data"
|
|
8721
8721
|
);
|
|
8722
|
+
let encoded = preRenderedData ? decodeURI(preRenderedData) : preRenderedData;
|
|
8722
8723
|
invariant3(encoded, "Missing prerendered data for route");
|
|
8723
8724
|
let uint8array = new TextEncoder().encode(encoded);
|
|
8724
8725
|
let stream = new ReadableStream({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-16086cbff
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
useSearchParams,
|
|
120
120
|
useSubmit,
|
|
121
121
|
useViewTransitionState
|
|
122
|
-
} from "./chunk-
|
|
122
|
+
} from "./chunk-QNZWGNGC.mjs";
|
|
123
123
|
export {
|
|
124
124
|
Await,
|
|
125
125
|
BrowserRouter,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { aL as CreateActionData, aP as CreateClientActionArgs, aN as CreateClientLoaderArgs, aR as CreateComponentProps, aS as CreateErrorBoundaryProps, aQ as CreateHydrateFallbackProps, aK as CreateLoaderData, aO as CreateServerActionArgs, aM as CreateServerLoaderArgs, S as SerializeFrom } from '../types-Dc4mFopM.mjs';
|
|
2
|
+
import 'react';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { aL as CreateActionData, aP as CreateClientActionArgs, aN as CreateClientLoaderArgs, aR as CreateComponentProps, aS as CreateErrorBoundaryProps, aQ as CreateHydrateFallbackProps, aK as CreateLoaderData, aO as CreateServerActionArgs, aM as CreateServerLoaderArgs, S as SerializeFrom } from '../types-Dc4mFopM.js';
|
|
2
|
+
import 'react';
|
|
@@ -423,16 +423,13 @@ type AgnosticDataNonIndexRouteObject = AgnosticNonIndexRouteObject & {
|
|
|
423
423
|
*/
|
|
424
424
|
type AgnosticDataRouteObject = AgnosticDataIndexRouteObject | AgnosticDataNonIndexRouteObject;
|
|
425
425
|
type RouteManifest<R = AgnosticDataRouteObject> = Record<string, R | undefined>;
|
|
426
|
-
type
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
* "/:a/:b" -> "a" | "b"
|
|
434
|
-
* "/:a/b/:c/*" -> "a" | "c" | "*"
|
|
435
|
-
*/
|
|
426
|
+
type Regex_az = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
427
|
+
type Regez_AZ = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
|
|
428
|
+
type Regex_09 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
429
|
+
type Regex_w = Regex_az | Regez_AZ | Regex_09 | "_";
|
|
430
|
+
type ParamChar = Regex_w | "-";
|
|
431
|
+
type RegexMatchPlus<CharPattern extends string, T extends string> = T extends `${infer First}${infer Rest}` ? First extends CharPattern ? RegexMatchPlus<CharPattern, Rest> extends never ? First : `${First}${RegexMatchPlus<CharPattern, Rest>}` : never : never;
|
|
432
|
+
type _PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? _PathParam<L> | _PathParam<R> : Path extends `:${infer Param}` ? Param extends `${infer Optional}?${string}` ? RegexMatchPlus<ParamChar, Optional> : RegexMatchPlus<ParamChar, Param> : never;
|
|
436
433
|
type PathParam<Path extends string> = Path extends "*" | "/*" ? "*" : Path extends `${infer Rest}/*` ? "*" | _PathParam<Rest> : _PathParam<Path>;
|
|
437
434
|
type ParamParseKey<Segment extends string> = [
|
|
438
435
|
PathParam<Segment>
|
|
@@ -1538,8 +1535,8 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
|
|
|
1538
1535
|
[key: PropertyKey]: Serializable;
|
|
1539
1536
|
} | bigint | Date | URL | RegExp | Error | Map<Serializable, Serializable> | Set<Serializable> | Promise<Serializable>;
|
|
1540
1537
|
|
|
1541
|
-
type Expect<T extends true> = T;
|
|
1542
1538
|
type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
|
|
1539
|
+
|
|
1543
1540
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
1544
1541
|
type IsDefined<T> = Equal<T, undefined> extends true ? false : true;
|
|
1545
1542
|
type Fn = (...args: any[]) => unknown;
|
|
@@ -1617,4 +1614,4 @@ type CreateErrorBoundaryProps<Params, LoaderData, ActionData> = {
|
|
|
1617
1614
|
actionData?: ActionData;
|
|
1618
1615
|
};
|
|
1619
1616
|
|
|
1620
|
-
export { type FormMethod as $, type ActionFunction as A, type BlockerFunction as B, type ClientActionFunction as C, type DataStrategyFunction as D, type NavigationStates as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterInit as J, type RouterSubscriber as K, type LoaderFunction as L, type MetaFunction as M, type NavigateOptions as N, type RouterNavigateOptions as O, type ParamParseKey as P, type RouterFetchOptions as Q, type RouteModules as R, type SerializeFrom as S, type To as T, type UIMatch as U, type DataStrategyFunctionArgs as V, type DataStrategyMatch as W, type DataStrategyResult as X, DataWithResponseInit as Y, type ErrorResponse as Z, type FormEncType as _, type Router as a, type HTMLFormMethod as a0, type LazyRouteFunction as a1, type PathParam as a2, type RedirectFunction as a3, type ShouldRevalidateFunction as a4, type ShouldRevalidateFunctionArgs as a5, createPath as a6, parsePath as a7, IDLE_NAVIGATION as a8, IDLE_FETCHER as a9, ErrorResponseImpl as aA, DataRouterContext as aB, DataRouterStateContext as aC, FetchersContext as aD, LocationContext as aE, NavigationContext as aF, RouteContext as aG, ViewTransitionContext as aH, type RouteModule$1 as aI, type History as aJ, type
|
|
1617
|
+
export { type FormMethod as $, type ActionFunction as A, type BlockerFunction as B, type ClientActionFunction as C, type DataStrategyFunction as D, type NavigationStates as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterInit as J, type RouterSubscriber as K, type LoaderFunction as L, type MetaFunction as M, type NavigateOptions as N, type RouterNavigateOptions as O, type ParamParseKey as P, type RouterFetchOptions as Q, type RouteModules as R, type SerializeFrom as S, type To as T, type UIMatch as U, type DataStrategyFunctionArgs as V, type DataStrategyMatch as W, type DataStrategyResult as X, DataWithResponseInit as Y, type ErrorResponse as Z, type FormEncType as _, type Router as a, type HTMLFormMethod as a0, type LazyRouteFunction as a1, type PathParam as a2, type RedirectFunction as a3, type ShouldRevalidateFunction as a4, type ShouldRevalidateFunctionArgs as a5, createPath as a6, parsePath as a7, IDLE_NAVIGATION as a8, IDLE_FETCHER as a9, ErrorResponseImpl as aA, DataRouterContext as aB, DataRouterStateContext as aC, FetchersContext as aD, LocationContext as aE, NavigationContext as aF, RouteContext as aG, ViewTransitionContext as aH, type RouteModule$1 as aI, type History as aJ, type CreateLoaderData as aK, type CreateActionData as aL, type CreateServerLoaderArgs as aM, type CreateClientLoaderArgs as aN, type CreateServerActionArgs as aO, type CreateClientActionArgs as aP, type CreateHydrateFallbackProps as aQ, type CreateComponentProps as aR, type CreateErrorBoundaryProps as aS, IDLE_BLOCKER as aa, data as ab, generatePath as ac, isRouteErrorResponse as ad, matchPath as ae, matchRoutes as af, redirect as ag, redirectDocument as ah, replace as ai, resolvePath as aj, type DataRouteMatch as ak, type DataRouteObject as al, type Navigator as am, type PatchRoutesOnNavigationFunction as an, type PatchRoutesOnNavigationFunctionArgs as ao, type RouteMatch as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunctionArgs as ar, type MetaArgs as as, type MetaDescriptor as at, type PageLinkDescriptor as au, type HtmlLinkDescriptor as av, type LinkDescriptor as aw, createBrowserHistory as ax, invariant as ay, createRouter as az, type ClientLoaderFunction as b, type LinksFunction as c, type RouteManifest as d, type AppLoadContext as e, type LoaderFunctionArgs as f, type ActionFunctionArgs as g, type RelativeRoutingType as h, type Location as i, Action as j, type Path as k, type PathPattern as l, type PathMatch as m, type Params as n, type RouteObject as o, type Navigation as p, type RevalidationState as q, type Blocker as r, type StaticHandlerContext as s, type StaticHandler as t, type CreateStaticHandlerOptions as u, type IndexRouteObject as v, type NonIndexRouteObject as w, type RouterState as x, type GetScrollRestorationKeyFunction as y, type Fetcher as z };
|
|
@@ -423,16 +423,13 @@ type AgnosticDataNonIndexRouteObject = AgnosticNonIndexRouteObject & {
|
|
|
423
423
|
*/
|
|
424
424
|
type AgnosticDataRouteObject = AgnosticDataIndexRouteObject | AgnosticDataNonIndexRouteObject;
|
|
425
425
|
type RouteManifest<R = AgnosticDataRouteObject> = Record<string, R | undefined>;
|
|
426
|
-
type
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
* "/:a/:b" -> "a" | "b"
|
|
434
|
-
* "/:a/b/:c/*" -> "a" | "c" | "*"
|
|
435
|
-
*/
|
|
426
|
+
type Regex_az = "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z";
|
|
427
|
+
type Regez_AZ = "A" | "B" | "C" | "D" | "E" | "F" | "G" | "H" | "I" | "J" | "K" | "L" | "M" | "N" | "O" | "P" | "Q" | "R" | "S" | "T" | "U" | "V" | "W" | "X" | "Y" | "Z";
|
|
428
|
+
type Regex_09 = "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
429
|
+
type Regex_w = Regex_az | Regez_AZ | Regex_09 | "_";
|
|
430
|
+
type ParamChar = Regex_w | "-";
|
|
431
|
+
type RegexMatchPlus<CharPattern extends string, T extends string> = T extends `${infer First}${infer Rest}` ? First extends CharPattern ? RegexMatchPlus<CharPattern, Rest> extends never ? First : `${First}${RegexMatchPlus<CharPattern, Rest>}` : never : never;
|
|
432
|
+
type _PathParam<Path extends string> = Path extends `${infer L}/${infer R}` ? _PathParam<L> | _PathParam<R> : Path extends `:${infer Param}` ? Param extends `${infer Optional}?${string}` ? RegexMatchPlus<ParamChar, Optional> : RegexMatchPlus<ParamChar, Param> : never;
|
|
436
433
|
type PathParam<Path extends string> = Path extends "*" | "/*" ? "*" : Path extends `${infer Rest}/*` ? "*" | _PathParam<Rest> : _PathParam<Path>;
|
|
437
434
|
type ParamParseKey<Segment extends string> = [
|
|
438
435
|
PathParam<Segment>
|
|
@@ -1538,8 +1535,8 @@ type Serializable = undefined | null | boolean | string | symbol | number | Arra
|
|
|
1538
1535
|
[key: PropertyKey]: Serializable;
|
|
1539
1536
|
} | bigint | Date | URL | RegExp | Error | Map<Serializable, Serializable> | Set<Serializable> | Promise<Serializable>;
|
|
1540
1537
|
|
|
1541
|
-
type Expect<T extends true> = T;
|
|
1542
1538
|
type Equal<X, Y> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? true : false;
|
|
1539
|
+
|
|
1543
1540
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
1544
1541
|
type IsDefined<T> = Equal<T, undefined> extends true ? false : true;
|
|
1545
1542
|
type Fn = (...args: any[]) => unknown;
|
|
@@ -1617,4 +1614,4 @@ type CreateErrorBoundaryProps<Params, LoaderData, ActionData> = {
|
|
|
1617
1614
|
actionData?: ActionData;
|
|
1618
1615
|
};
|
|
1619
1616
|
|
|
1620
|
-
export { type FormMethod as $, type ActionFunction as A, type BlockerFunction as B, type ClientActionFunction as C, type DataStrategyFunction as D, type NavigationStates as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterInit as J, type RouterSubscriber as K, type LoaderFunction as L, type MetaFunction as M, type NavigateOptions as N, type RouterNavigateOptions as O, type ParamParseKey as P, type RouterFetchOptions as Q, type RouteModules as R, type SerializeFrom as S, type To as T, type UIMatch as U, type DataStrategyFunctionArgs as V, type DataStrategyMatch as W, type DataStrategyResult as X, DataWithResponseInit as Y, type ErrorResponse as Z, type FormEncType as _, type Router as a, type HTMLFormMethod as a0, type LazyRouteFunction as a1, type PathParam as a2, type RedirectFunction as a3, type ShouldRevalidateFunction as a4, type ShouldRevalidateFunctionArgs as a5, createPath as a6, parsePath as a7, IDLE_NAVIGATION as a8, IDLE_FETCHER as a9, ErrorResponseImpl as aA, DataRouterContext as aB, DataRouterStateContext as aC, FetchersContext as aD, LocationContext as aE, NavigationContext as aF, RouteContext as aG, ViewTransitionContext as aH, type RouteModule$1 as aI, type History as aJ, type
|
|
1617
|
+
export { type FormMethod as $, type ActionFunction as A, type BlockerFunction as B, type ClientActionFunction as C, type DataStrategyFunction as D, type NavigationStates as E, type FutureConfig as F, type GetScrollPositionFunction as G, type HydrationState as H, type InitialEntry as I, type RouterInit as J, type RouterSubscriber as K, type LoaderFunction as L, type MetaFunction as M, type NavigateOptions as N, type RouterNavigateOptions as O, type ParamParseKey as P, type RouterFetchOptions as Q, type RouteModules as R, type SerializeFrom as S, type To as T, type UIMatch as U, type DataStrategyFunctionArgs as V, type DataStrategyMatch as W, type DataStrategyResult as X, DataWithResponseInit as Y, type ErrorResponse as Z, type FormEncType as _, type Router as a, type HTMLFormMethod as a0, type LazyRouteFunction as a1, type PathParam as a2, type RedirectFunction as a3, type ShouldRevalidateFunction as a4, type ShouldRevalidateFunctionArgs as a5, createPath as a6, parsePath as a7, IDLE_NAVIGATION as a8, IDLE_FETCHER as a9, ErrorResponseImpl as aA, DataRouterContext as aB, DataRouterStateContext as aC, FetchersContext as aD, LocationContext as aE, NavigationContext as aF, RouteContext as aG, ViewTransitionContext as aH, type RouteModule$1 as aI, type History as aJ, type CreateLoaderData as aK, type CreateActionData as aL, type CreateServerLoaderArgs as aM, type CreateClientLoaderArgs as aN, type CreateServerActionArgs as aO, type CreateClientActionArgs as aP, type CreateHydrateFallbackProps as aQ, type CreateComponentProps as aR, type CreateErrorBoundaryProps as aS, IDLE_BLOCKER as aa, data as ab, generatePath as ac, isRouteErrorResponse as ad, matchPath as ae, matchRoutes as af, redirect as ag, redirectDocument as ah, replace as ai, resolvePath as aj, type DataRouteMatch as ak, type DataRouteObject as al, type Navigator as am, type PatchRoutesOnNavigationFunction as an, type PatchRoutesOnNavigationFunctionArgs as ao, type RouteMatch as ap, type ClientActionFunctionArgs as aq, type ClientLoaderFunctionArgs as ar, type MetaArgs as as, type MetaDescriptor as at, type PageLinkDescriptor as au, type HtmlLinkDescriptor as av, type LinkDescriptor as aw, createBrowserHistory as ax, invariant as ay, createRouter as az, type ClientLoaderFunction as b, type LinksFunction as c, type RouteManifest as d, type AppLoadContext as e, type LoaderFunctionArgs as f, type ActionFunctionArgs as g, type RelativeRoutingType as h, type Location as i, Action as j, type Path as k, type PathPattern as l, type PathMatch as m, type Params as n, type RouteObject as o, type Navigation as p, type RevalidationState as q, type Blocker as r, type StaticHandlerContext as s, type StaticHandler as t, type CreateStaticHandlerOptions as u, type IndexRouteObject as v, type NonIndexRouteObject as w, type RouterState as x, type GetScrollRestorationKeyFunction as y, type Fetcher as z };
|