react-router 0.0.0-experimental-3f102fccb → 0.0.0-experimental-89dc2043e
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 +250 -0
- package/dist/development/{chunk-BOBF44TY.mjs → chunk-TRZSGY2F.mjs} +4 -2
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.d.ts +1 -1
- package/dist/development/dom-export.js +1 -1
- package/dist/development/dom-export.mjs +2 -2
- package/dist/{production/fog-of-war-BDQTYoRQ.d.mts → development/fog-of-war-BkI3XFdx.d.mts} +5 -1
- package/dist/development/{fog-of-war-CbNQuoo8.d.ts → fog-of-war-DU_DzpDb.d.ts} +5 -1
- package/dist/development/index.d.mts +2 -2
- package/dist/development/index.d.ts +2 -2
- package/dist/development/index.js +4 -3
- package/dist/development/index.mjs +4 -3
- package/dist/development/lib/types/route-module.js +1 -1
- package/dist/development/lib/types/route-module.mjs +1 -1
- package/dist/production/{chunk-CR3MVGTX.mjs → chunk-VRQVD6TT.mjs} +4 -2
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.d.ts +1 -1
- package/dist/production/dom-export.js +1 -1
- package/dist/production/dom-export.mjs +2 -2
- package/dist/{development/fog-of-war-BDQTYoRQ.d.mts → production/fog-of-war-BkI3XFdx.d.mts} +5 -1
- package/dist/production/{fog-of-war-CbNQuoo8.d.ts → fog-of-war-DU_DzpDb.d.ts} +5 -1
- package/dist/production/index.d.mts +2 -2
- package/dist/production/index.d.ts +2 -2
- package/dist/production/index.js +4 -3
- package/dist/production/index.mjs +4 -3
- package/dist/production/lib/types/route-module.js +1 -1
- package/dist/production/lib/types/route-module.mjs +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,255 @@
|
|
|
1
1
|
# `react-router`
|
|
2
2
|
|
|
3
|
+
## 7.0.1
|
|
4
|
+
|
|
5
|
+
## 7.0.0
|
|
6
|
+
|
|
7
|
+
### Major Changes
|
|
8
|
+
|
|
9
|
+
- Remove the original `defer` implementation in favor of using raw promises via single fetch and `turbo-stream`. This removes these exports from React Router: ([#11744](https://github.com/remix-run/react-router/pull/11744))
|
|
10
|
+
|
|
11
|
+
- `defer`
|
|
12
|
+
- `AbortedDeferredError`
|
|
13
|
+
- `type TypedDeferredData`
|
|
14
|
+
- `UNSAFE_DeferredData`
|
|
15
|
+
- `UNSAFE_DEFERRED_SYMBOL`,
|
|
16
|
+
|
|
17
|
+
- - Collapse `@remix-run/router` into `react-router` ([#11505](https://github.com/remix-run/react-router/pull/11505))
|
|
18
|
+
- Collapse `react-router-dom` into `react-router`
|
|
19
|
+
- Collapse `@remix-run/server-runtime` into `react-router`
|
|
20
|
+
- Collapse `@remix-run/testing` into `react-router`
|
|
21
|
+
|
|
22
|
+
- Remove single_fetch future flag. ([#11522](https://github.com/remix-run/react-router/pull/11522))
|
|
23
|
+
|
|
24
|
+
- Drop support for Node 16, React Router SSR now requires Node 18 or higher ([#11391](https://github.com/remix-run/react-router/pull/11391))
|
|
25
|
+
|
|
26
|
+
- Remove `future.v7_startTransition` flag ([#11696](https://github.com/remix-run/react-router/pull/11696))
|
|
27
|
+
|
|
28
|
+
- - Expose the underlying router promises from the following APIs for compsition in React 19 APIs: ([#11521](https://github.com/remix-run/react-router/pull/11521))
|
|
29
|
+
- `useNavigate()`
|
|
30
|
+
- `useSubmit`
|
|
31
|
+
- `useFetcher().load`
|
|
32
|
+
- `useFetcher().submit`
|
|
33
|
+
- `useRevalidator.revalidate`
|
|
34
|
+
|
|
35
|
+
- Remove `future.v7_normalizeFormMethod` future flag ([#11697](https://github.com/remix-run/react-router/pull/11697))
|
|
36
|
+
|
|
37
|
+
- For Remix consumers migrating to React Router, the `crypto` global from the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) is now required when using cookie and session APIs. This means that the following APIs are provided from `react-router` rather than platform-specific packages: ([#11837](https://github.com/remix-run/react-router/pull/11837))
|
|
38
|
+
|
|
39
|
+
- `createCookie`
|
|
40
|
+
- `createCookieSessionStorage`
|
|
41
|
+
- `createMemorySessionStorage`
|
|
42
|
+
- `createSessionStorage`
|
|
43
|
+
|
|
44
|
+
For consumers running older versions of Node, the `installGlobals` function from `@remix-run/node` has been updated to define `globalThis.crypto`, using [Node's `require('node:crypto').webcrypto` implementation.](https://nodejs.org/api/webcrypto.html)
|
|
45
|
+
|
|
46
|
+
Since platform-specific packages no longer need to implement this API, the following low-level APIs have been removed:
|
|
47
|
+
|
|
48
|
+
- `createCookieFactory`
|
|
49
|
+
- `createSessionStorageFactory`
|
|
50
|
+
- `createCookieSessionStorageFactory`
|
|
51
|
+
- `createMemorySessionStorageFactory`
|
|
52
|
+
|
|
53
|
+
- Imports/Exports cleanup ([#11840](https://github.com/remix-run/react-router/pull/11840))
|
|
54
|
+
|
|
55
|
+
- Removed the following exports that were previously public API from `@remix-run/router`
|
|
56
|
+
- types
|
|
57
|
+
- `AgnosticDataIndexRouteObject`
|
|
58
|
+
- `AgnosticDataNonIndexRouteObject`
|
|
59
|
+
- `AgnosticDataRouteMatch`
|
|
60
|
+
- `AgnosticDataRouteObject`
|
|
61
|
+
- `AgnosticIndexRouteObject`
|
|
62
|
+
- `AgnosticNonIndexRouteObject`
|
|
63
|
+
- `AgnosticRouteMatch`
|
|
64
|
+
- `AgnosticRouteObject`
|
|
65
|
+
- `TrackedPromise`
|
|
66
|
+
- `unstable_AgnosticPatchRoutesOnMissFunction`
|
|
67
|
+
- `Action` -> exported as `NavigationType` via `react-router`
|
|
68
|
+
- `Router` exported as `DataRouter` to differentiate from RR's `<Router>`
|
|
69
|
+
- API
|
|
70
|
+
- `getToPathname` (`@private`)
|
|
71
|
+
- `joinPaths` (`@private`)
|
|
72
|
+
- `normalizePathname` (`@private`)
|
|
73
|
+
- `resolveTo` (`@private`)
|
|
74
|
+
- `stripBasename` (`@private`)
|
|
75
|
+
- `createBrowserHistory` -> in favor of `createBrowserRouter`
|
|
76
|
+
- `createHashHistory` -> in favor of `createHashRouter`
|
|
77
|
+
- `createMemoryHistory` -> in favor of `createMemoryRouter`
|
|
78
|
+
- `createRouter`
|
|
79
|
+
- `createStaticHandler` -> in favor of wrapper `createStaticHandler` in RR Dom
|
|
80
|
+
- `getStaticContextFromError`
|
|
81
|
+
- Removed the following exports that were previously public API from `react-router`
|
|
82
|
+
- `Hash`
|
|
83
|
+
- `Pathname`
|
|
84
|
+
- `Search`
|
|
85
|
+
|
|
86
|
+
- update minimum node version to 18 ([#11690](https://github.com/remix-run/react-router/pull/11690))
|
|
87
|
+
|
|
88
|
+
- Remove `future.v7_prependBasename` from the ionternalized `@remix-run/router` package ([#11726](https://github.com/remix-run/react-router/pull/11726))
|
|
89
|
+
|
|
90
|
+
- Migrate Remix type generics to React Router ([#12180](https://github.com/remix-run/react-router/pull/12180))
|
|
91
|
+
|
|
92
|
+
- These generics are provided for Remix v2 migration purposes
|
|
93
|
+
- These generics and the APIs they exist on should be considered informally deprecated in favor of the new `Route.*` types
|
|
94
|
+
- Anyone migrating from React Router v6 should probably not leverage these new generics and should migrate straight to the `Route.*` types
|
|
95
|
+
- For React Router v6 users, these generics are new and should not impact your app, with one exception
|
|
96
|
+
- `useFetcher` previously had an optional generic (used primarily by Remix v2) that expected the data type
|
|
97
|
+
- This has been updated in v7 to expect the type of the function that generates the data (i.e., `typeof loader`/`typeof action`)
|
|
98
|
+
- Therefore, you should update your usages:
|
|
99
|
+
- ❌ `useFetcher<LoaderData>()`
|
|
100
|
+
- ✅ `useFetcher<typeof loader>()`
|
|
101
|
+
|
|
102
|
+
- Remove `future.v7_throwAbortReason` from internalized `@remix-run/router` package ([#11728](https://github.com/remix-run/react-router/pull/11728))
|
|
103
|
+
|
|
104
|
+
- Add `exports` field to all packages ([#11675](https://github.com/remix-run/react-router/pull/11675))
|
|
105
|
+
|
|
106
|
+
- node package no longer re-exports from react-router ([#11702](https://github.com/remix-run/react-router/pull/11702))
|
|
107
|
+
|
|
108
|
+
- renamed RemixContext to FrameworkContext ([#11705](https://github.com/remix-run/react-router/pull/11705))
|
|
109
|
+
|
|
110
|
+
- updates the minimum React version to 18 ([#11689](https://github.com/remix-run/react-router/pull/11689))
|
|
111
|
+
|
|
112
|
+
- PrefetchPageDescriptor replaced by PageLinkDescriptor ([#11960](https://github.com/remix-run/react-router/pull/11960))
|
|
113
|
+
|
|
114
|
+
- - Consolidate types previously duplicated across `@remix-run/router`, `@remix-run/server-runtime`, and `@remix-run/react` now that they all live in `react-router` ([#12177](https://github.com/remix-run/react-router/pull/12177))
|
|
115
|
+
- Examples: `LoaderFunction`, `LoaderFunctionArgs`, `ActionFunction`, `ActionFunctionArgs`, `DataFunctionArgs`, `RouteManifest`, `LinksFunction`, `Route`, `EntryRoute`
|
|
116
|
+
- The `RouteManifest` type used by the "remix" code is now slightly stricter because it is using the former `@remix-run/router` `RouteManifest`
|
|
117
|
+
- `Record<string, Route> -> Record<string, Route | undefined>`
|
|
118
|
+
- Removed `AppData` type in favor of inlining `unknown` in the few locations it was used
|
|
119
|
+
- Removed `ServerRuntimeMeta*` types in favor of the `Meta*` types they were duplicated from
|
|
120
|
+
|
|
121
|
+
- - Remove the `future.v7_partialHydration` flag ([#11725](https://github.com/remix-run/react-router/pull/11725))
|
|
122
|
+
- This also removes the `<RouterProvider fallbackElement>` prop
|
|
123
|
+
- To migrate, move the `fallbackElement` to a `hydrateFallbackElement`/`HydrateFallback` on your root route
|
|
124
|
+
- Also worth nothing there is a related breaking changer with this future flag:
|
|
125
|
+
- Without `future.v7_partialHydration` (when using `fallbackElement`), `state.navigation` was populated during the initial load
|
|
126
|
+
- With `future.v7_partialHydration`, `state.navigation` remains in an `"idle"` state during the initial load
|
|
127
|
+
|
|
128
|
+
- Remove `v7_relativeSplatPath` future flag ([#11695](https://github.com/remix-run/react-router/pull/11695))
|
|
129
|
+
|
|
130
|
+
- Drop support for Node 18, update minimum Node vestion to 20 ([#12171](https://github.com/remix-run/react-router/pull/12171))
|
|
131
|
+
|
|
132
|
+
- Remove `installGlobals()` as this should no longer be necessary
|
|
133
|
+
|
|
134
|
+
- Remove remaining future flags ([#11820](https://github.com/remix-run/react-router/pull/11820))
|
|
135
|
+
|
|
136
|
+
- React Router `v7_skipActionErrorRevalidation`
|
|
137
|
+
- Remix `v3_fetcherPersist`, `v3_relativeSplatPath`, `v3_throwAbortReason`
|
|
138
|
+
|
|
139
|
+
- rename createRemixStub to createRoutesStub ([#11692](https://github.com/remix-run/react-router/pull/11692))
|
|
140
|
+
|
|
141
|
+
- Remove `@remix-run/router` deprecated `detectErrorBoundary` option in favor of `mapRouteProperties` ([#11751](https://github.com/remix-run/react-router/pull/11751))
|
|
142
|
+
|
|
143
|
+
- Add `react-router/dom` subpath export to properly enable `react-dom` as an optional `peerDependency` ([#11851](https://github.com/remix-run/react-router/pull/11851))
|
|
144
|
+
|
|
145
|
+
- This ensures that we don't blindly `import ReactDOM from "react-dom"` in `<RouterProvider>` in order to access `ReactDOM.flushSync()`, since that would break `createMemoryRouter` use cases in non-DOM environments
|
|
146
|
+
- DOM environments should import from `react-router/dom` to get the proper component that makes `ReactDOM.flushSync()` available:
|
|
147
|
+
- If you are using the Vite plugin, use this in your `entry.client.tsx`:
|
|
148
|
+
- `import { HydratedRouter } from 'react-router/dom'`
|
|
149
|
+
- If you are not using the Vite plugin and are manually calling `createBrowserRouter`/`createHashRouter`:
|
|
150
|
+
- `import { RouterProvider } from "react-router/dom"`
|
|
151
|
+
|
|
152
|
+
- Remove `future.v7_fetcherPersist` flag ([#11731](https://github.com/remix-run/react-router/pull/11731))
|
|
153
|
+
|
|
154
|
+
- Update `cookie` dependency to `^1.0.1` - please see the [release notes](https://github.com/jshttp/cookie/releases) for any breaking changes ([#12172](https://github.com/remix-run/react-router/pull/12172))
|
|
155
|
+
|
|
156
|
+
### Minor Changes
|
|
157
|
+
|
|
158
|
+
- - Add support for `prerender` config in the React Router vite plugin, to support existing SSG use-cases ([#11539](https://github.com/remix-run/react-router/pull/11539))
|
|
159
|
+
- You can use the `prerender` config to pre-render your `.html` and `.data` files at build time and then serve them statically at runtime (either from a running server or a CDN)
|
|
160
|
+
- `prerender` can either be an array of string paths, or a function (sync or async) that returns an array of strings so that you can dynamically generate the paths by talking to your CMS, etc.
|
|
161
|
+
|
|
162
|
+
```ts
|
|
163
|
+
// react-router.config.ts
|
|
164
|
+
import type { Config } from "@react-router/dev/config";
|
|
165
|
+
|
|
166
|
+
export default {
|
|
167
|
+
async prerender() {
|
|
168
|
+
let slugs = await fakeGetSlugsFromCms();
|
|
169
|
+
// Prerender these paths into `.html` files at build time, and `.data`
|
|
170
|
+
// files if they have loaders
|
|
171
|
+
return ["/", "/about", ...slugs.map((slug) => `/product/${slug}`)];
|
|
172
|
+
},
|
|
173
|
+
} satisfies Config;
|
|
174
|
+
|
|
175
|
+
async function fakeGetSlugsFromCms() {
|
|
176
|
+
await new Promise((r) => setTimeout(r, 1000));
|
|
177
|
+
return ["shirt", "hat"];
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
- Params, loader data, and action data as props for route component exports ([#11961](https://github.com/remix-run/react-router/pull/11961))
|
|
182
|
+
|
|
183
|
+
```tsx
|
|
184
|
+
export default function Component({ params, loaderData, actionData }) {}
|
|
185
|
+
|
|
186
|
+
export function HydrateFallback({ params }) {}
|
|
187
|
+
export function ErrorBoundary({ params, loaderData, actionData }) {}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
- Remove duplicate `RouterProvider` impliementations ([#11679](https://github.com/remix-run/react-router/pull/11679))
|
|
191
|
+
|
|
192
|
+
- ### Typesafety improvements ([#12019](https://github.com/remix-run/react-router/pull/12019))
|
|
193
|
+
|
|
194
|
+
React Router now generates types for each of your route modules.
|
|
195
|
+
You can access those types by importing them from `./+types.<route filename without extension>`.
|
|
196
|
+
For example:
|
|
197
|
+
|
|
198
|
+
```ts
|
|
199
|
+
// app/routes/product.tsx
|
|
200
|
+
import type * as Route from "./+types.product";
|
|
201
|
+
|
|
202
|
+
export function loader({ params }: Route.LoaderArgs) {}
|
|
203
|
+
|
|
204
|
+
export default function Component({ loaderData }: Route.ComponentProps) {}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
This initial implementation targets type inference for:
|
|
208
|
+
|
|
209
|
+
- `Params` : Path parameters from your routing config in `routes.ts` including file-based routing
|
|
210
|
+
- `LoaderData` : Loader data from `loader` and/or `clientLoader` within your route module
|
|
211
|
+
- `ActionData` : Action data from `action` and/or `clientAction` within your route module
|
|
212
|
+
|
|
213
|
+
In the future, we plan to add types for the rest of the route module exports: `meta`, `links`, `headers`, `shouldRevalidate`, etc.
|
|
214
|
+
We also plan to generate types for typesafe `Link`s:
|
|
215
|
+
|
|
216
|
+
```tsx
|
|
217
|
+
<Link to="/products/:id" params={{ id: 1 }} />
|
|
218
|
+
// ^^^^^^^^^^^^^ ^^^^^^^^^
|
|
219
|
+
// typesafe `to` and `params` based on the available routes in your app
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
Check out our docs for more:
|
|
223
|
+
|
|
224
|
+
- [_Explanations > Type Safety_](https://reactrouter.com/dev/guides/explanation/type-safety)
|
|
225
|
+
- [_How-To > Setting up type safety_](https://reactrouter.com/dev/guides/how-to/setting-up-type-safety)
|
|
226
|
+
|
|
227
|
+
- Stabilize `unstable_dataStrategy` ([#11969](https://github.com/remix-run/react-router/pull/11969))
|
|
228
|
+
|
|
229
|
+
- Stabilize `unstable_patchRoutesOnNavigation` ([#11970](https://github.com/remix-run/react-router/pull/11970))
|
|
230
|
+
|
|
231
|
+
### Patch Changes
|
|
232
|
+
|
|
233
|
+
- No changes ([`506329c4e`](https://github.com/remix-run/react-router/commit/506329c4e2e7aba9837cbfa44df6103b49423745))
|
|
234
|
+
|
|
235
|
+
- chore: re-enable development warnings through a `development` exports condition. ([#12269](https://github.com/remix-run/react-router/pull/12269))
|
|
236
|
+
|
|
237
|
+
- Remove unstable upload handler. ([#12015](https://github.com/remix-run/react-router/pull/12015))
|
|
238
|
+
|
|
239
|
+
- Remove unneeded dependency on @web3-storage/multipart-parser ([#12274](https://github.com/remix-run/react-router/pull/12274))
|
|
240
|
+
|
|
241
|
+
- Fix redirects returned from loaders/actions using `data()` ([#12021](https://github.com/remix-run/react-router/pull/12021))
|
|
242
|
+
|
|
243
|
+
- fix(react-router): (v7) fix static prerender of non-ascii characters ([#12161](https://github.com/remix-run/react-router/pull/12161))
|
|
244
|
+
|
|
245
|
+
- Replace `substr` with `substring` ([#12080](https://github.com/remix-run/react-router/pull/12080))
|
|
246
|
+
|
|
247
|
+
- Remove the deprecated `json` utility ([#12146](https://github.com/remix-run/react-router/pull/12146))
|
|
248
|
+
|
|
249
|
+
- You can use [`Response.json`](https://developer.mozilla.org/en-US/docs/Web/API/Response/json_static) if you still need to construct JSON responses in your app
|
|
250
|
+
|
|
251
|
+
- Remove unneeded dependency on source-map ([#12275](https://github.com/remix-run/react-router/pull/12275))
|
|
252
|
+
|
|
3
253
|
## 6.28.0
|
|
4
254
|
|
|
5
255
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -5162,6 +5162,7 @@ function createRoutesFromChildren(children, parentPath = []) {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
return routes;
|
|
5164
5164
|
}
|
|
5165
|
+
var createRoutesFromElements = createRoutesFromChildren;
|
|
5165
5166
|
function renderMatches(matches) {
|
|
5166
5167
|
return _renderMatches(matches);
|
|
5167
5168
|
}
|
|
@@ -6980,7 +6981,7 @@ function mergeRefs(...refs) {
|
|
|
6980
6981
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
6981
6982
|
try {
|
|
6982
6983
|
if (isBrowser) {
|
|
6983
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
6984
|
+
window.__reactRouterVersion = "0.0.0-experimental-89dc2043e";
|
|
6984
6985
|
}
|
|
6985
6986
|
} catch (e) {
|
|
6986
6987
|
}
|
|
@@ -9563,6 +9564,7 @@ export {
|
|
|
9563
9564
|
Routes,
|
|
9564
9565
|
Await,
|
|
9565
9566
|
createRoutesFromChildren,
|
|
9567
|
+
createRoutesFromElements,
|
|
9566
9568
|
renderMatches,
|
|
9567
9569
|
createSearchParams,
|
|
9568
9570
|
SingleFetchRedirectSymbol,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-BkI3XFdx.mjs';
|
|
3
3
|
import './route-data-DuV3tXo2.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-DU_DzpDb.js';
|
|
3
3
|
import './route-data-DuV3tXo2.js';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
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-TRZSGY2F.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -361,6 +361,10 @@ declare function Await<Resolve>({ children, errorElement, resolve, }: AwaitProps
|
|
|
361
361
|
* @category Utils
|
|
362
362
|
*/
|
|
363
363
|
declare function createRoutesFromChildren(children: React.ReactNode, parentPath?: number[]): RouteObject[];
|
|
364
|
+
/**
|
|
365
|
+
* Create route objects from JSX elements instead of arrays of objects
|
|
366
|
+
*/
|
|
367
|
+
declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
364
368
|
/**
|
|
365
369
|
* Renders the result of `matchRoutes()` into a React element.
|
|
366
370
|
*
|
|
@@ -1592,4 +1596,4 @@ declare global {
|
|
|
1592
1596
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1593
1597
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1594
1598
|
|
|
1595
|
-
export {
|
|
1599
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps as b, type RouteProps as c, type RouterProps as d, type RoutesProps as e, Await as f, MemoryRouter as g, Navigate as h, Outlet as i, Route$1 as j, Router as k, RouterProvider as l, Routes as m, createMemoryRouter as n, createRoutesFromChildren as o, createRoutesFromElements as p, type HistoryRouterProps as q, renderMatches as r, type LinkProps as s, type NavLinkProps as t, type NavLinkRenderProps as u, type FetcherFormProps as v, type FormProps as w, type SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -361,6 +361,10 @@ declare function Await<Resolve>({ children, errorElement, resolve, }: AwaitProps
|
|
|
361
361
|
* @category Utils
|
|
362
362
|
*/
|
|
363
363
|
declare function createRoutesFromChildren(children: React.ReactNode, parentPath?: number[]): RouteObject[];
|
|
364
|
+
/**
|
|
365
|
+
* Create route objects from JSX elements instead of arrays of objects
|
|
366
|
+
*/
|
|
367
|
+
declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
364
368
|
/**
|
|
365
369
|
* Renders the result of `matchRoutes()` into a React element.
|
|
366
370
|
*
|
|
@@ -1592,4 +1596,4 @@ declare global {
|
|
|
1592
1596
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1593
1597
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1594
1598
|
|
|
1595
|
-
export {
|
|
1599
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps as b, type RouteProps as c, type RouterProps as d, type RoutesProps as e, Await as f, MemoryRouter as g, Navigate as h, Outlet as i, Route$1 as j, Router as k, RouterProvider as l, Routes as m, createMemoryRouter as n, createRoutesFromChildren as o, createRoutesFromElements as p, type HistoryRouterProps as q, renderMatches as r, type LinkProps as s, type NavLinkProps as t, type NavLinkRenderProps as u, type FetcherFormProps as v, type FormProps as w, type SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-DuV3tXo2.mjs';
|
|
2
2
|
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-DuV3tXo2.mjs';
|
|
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,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-BkI3XFdx.mjs';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-BkI3XFdx.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { 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 LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-DuV3tXo2.js';
|
|
2
2
|
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-DuV3tXo2.js';
|
|
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,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-DU_DzpDb.js';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-DU_DzpDb.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-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -99,7 +99,7 @@ __export(react_router_exports, {
|
|
|
99
99
|
createPath: () => createPath,
|
|
100
100
|
createRequestHandler: () => createRequestHandler,
|
|
101
101
|
createRoutesFromChildren: () => createRoutesFromChildren,
|
|
102
|
-
createRoutesFromElements: () =>
|
|
102
|
+
createRoutesFromElements: () => createRoutesFromElements,
|
|
103
103
|
createRoutesStub: () => createRoutesStub,
|
|
104
104
|
createSearchParams: () => createSearchParams,
|
|
105
105
|
createSession: () => createSession,
|
|
@@ -5307,6 +5307,7 @@ function createRoutesFromChildren(children, parentPath = []) {
|
|
|
5307
5307
|
});
|
|
5308
5308
|
return routes;
|
|
5309
5309
|
}
|
|
5310
|
+
var createRoutesFromElements = createRoutesFromChildren;
|
|
5310
5311
|
function renderMatches(matches) {
|
|
5311
5312
|
return _renderMatches(matches);
|
|
5312
5313
|
}
|
|
@@ -7125,7 +7126,7 @@ function mergeRefs(...refs) {
|
|
|
7125
7126
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7126
7127
|
try {
|
|
7127
7128
|
if (isBrowser) {
|
|
7128
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
7129
|
+
window.__reactRouterVersion = "0.0.0-experimental-89dc2043e";
|
|
7129
7130
|
}
|
|
7130
7131
|
} catch (e) {
|
|
7131
7132
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
createRequestHandler,
|
|
61
61
|
createRouter,
|
|
62
62
|
createRoutesFromChildren,
|
|
63
|
+
createRoutesFromElements,
|
|
63
64
|
createRoutesStub,
|
|
64
65
|
createSearchParams,
|
|
65
66
|
createSession,
|
|
@@ -119,7 +120,7 @@ import {
|
|
|
119
120
|
useSearchParams,
|
|
120
121
|
useSubmit,
|
|
121
122
|
useViewTransitionState
|
|
122
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-TRZSGY2F.mjs";
|
|
123
124
|
export {
|
|
124
125
|
Await,
|
|
125
126
|
BrowserRouter,
|
|
@@ -180,7 +181,7 @@ export {
|
|
|
180
181
|
createPath,
|
|
181
182
|
createRequestHandler,
|
|
182
183
|
createRoutesFromChildren,
|
|
183
|
-
|
|
184
|
+
createRoutesFromElements,
|
|
184
185
|
createRoutesStub,
|
|
185
186
|
createSearchParams,
|
|
186
187
|
createSession,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -5162,6 +5162,7 @@ function createRoutesFromChildren(children, parentPath = []) {
|
|
|
5162
5162
|
});
|
|
5163
5163
|
return routes;
|
|
5164
5164
|
}
|
|
5165
|
+
var createRoutesFromElements = createRoutesFromChildren;
|
|
5165
5166
|
function renderMatches(matches) {
|
|
5166
5167
|
return _renderMatches(matches);
|
|
5167
5168
|
}
|
|
@@ -6980,7 +6981,7 @@ function mergeRefs(...refs) {
|
|
|
6980
6981
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
6981
6982
|
try {
|
|
6982
6983
|
if (isBrowser) {
|
|
6983
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
6984
|
+
window.__reactRouterVersion = "0.0.0-experimental-89dc2043e";
|
|
6984
6985
|
}
|
|
6985
6986
|
} catch (e) {
|
|
6986
6987
|
}
|
|
@@ -9563,6 +9564,7 @@ export {
|
|
|
9563
9564
|
Routes,
|
|
9564
9565
|
Await,
|
|
9565
9566
|
createRoutesFromChildren,
|
|
9567
|
+
createRoutesFromElements,
|
|
9566
9568
|
renderMatches,
|
|
9567
9569
|
createSearchParams,
|
|
9568
9570
|
SingleFetchRedirectSymbol,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-BkI3XFdx.mjs';
|
|
3
3
|
import './route-data-DuV3tXo2.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1 } from './fog-of-war-
|
|
2
|
+
import { R as RouterProviderProps$1 } from './fog-of-war-DU_DzpDb.js';
|
|
3
3
|
import './route-data-DuV3tXo2.js';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
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-VRQVD6TT.mjs";
|
|
29
29
|
|
|
30
30
|
// lib/dom-export/dom-router-provider.tsx
|
|
31
31
|
import * as React from "react";
|
|
@@ -361,6 +361,10 @@ declare function Await<Resolve>({ children, errorElement, resolve, }: AwaitProps
|
|
|
361
361
|
* @category Utils
|
|
362
362
|
*/
|
|
363
363
|
declare function createRoutesFromChildren(children: React.ReactNode, parentPath?: number[]): RouteObject[];
|
|
364
|
+
/**
|
|
365
|
+
* Create route objects from JSX elements instead of arrays of objects
|
|
366
|
+
*/
|
|
367
|
+
declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
364
368
|
/**
|
|
365
369
|
* Renders the result of `matchRoutes()` into a React element.
|
|
366
370
|
*
|
|
@@ -1592,4 +1596,4 @@ declare global {
|
|
|
1592
1596
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1593
1597
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1594
1598
|
|
|
1595
|
-
export {
|
|
1599
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps as b, type RouteProps as c, type RouterProps as d, type RoutesProps as e, Await as f, MemoryRouter as g, Navigate as h, Outlet as i, Route$1 as j, Router as k, RouterProvider as l, Routes as m, createMemoryRouter as n, createRoutesFromChildren as o, createRoutesFromElements as p, type HistoryRouterProps as q, renderMatches as r, type LinkProps as s, type NavLinkProps as t, type NavLinkRenderProps as u, type FetcherFormProps as v, type FormProps as w, type SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -361,6 +361,10 @@ declare function Await<Resolve>({ children, errorElement, resolve, }: AwaitProps
|
|
|
361
361
|
* @category Utils
|
|
362
362
|
*/
|
|
363
363
|
declare function createRoutesFromChildren(children: React.ReactNode, parentPath?: number[]): RouteObject[];
|
|
364
|
+
/**
|
|
365
|
+
* Create route objects from JSX elements instead of arrays of objects
|
|
366
|
+
*/
|
|
367
|
+
declare let createRoutesFromElements: typeof createRoutesFromChildren;
|
|
364
368
|
/**
|
|
365
369
|
* Renders the result of `matchRoutes()` into a React element.
|
|
366
370
|
*
|
|
@@ -1592,4 +1596,4 @@ declare global {
|
|
|
1592
1596
|
declare function getPatchRoutesOnNavigationFunction(manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
1593
1597
|
declare function useFogOFWarDiscovery(router: Router$1, manifest: AssetsManifest, routeModules: RouteModules, isSpaMode: boolean): void;
|
|
1594
1598
|
|
|
1595
|
-
export {
|
|
1599
|
+
export { useFetcher as $, type AssetsManifest as A, type BrowserRouterProps as B, type FetcherWithComponents as C, createBrowserRouter as D, type EntryContext as E, type FutureConfig as F, createHashRouter as G, type HashRouterProps as H, type IndexRouteProps as I, BrowserRouter as J, HashRouter as K, type LayoutRouteProps as L, type MemoryRouterProps as M, type NavigateProps as N, type OutletProps as O, type PathRouteProps as P, Link as Q, type RouterProviderProps as R, type ScrollRestorationProps as S, HistoryRouter as T, NavLink as U, Form as V, ScrollRestoration as W, useLinkClickHandler as X, useSearchParams as Y, useSubmit as Z, useFormAction as _, type Route as a, useFetchers as a0, useBeforeUnload as a1, usePrompt as a2, useViewTransitionState as a3, type FetcherSubmitOptions as a4, type ParamKeyValuePair as a5, type SubmitOptions as a6, type URLSearchParamsInit as a7, type SubmitTarget as a8, createSearchParams as a9, Meta as aa, Links as ab, Scripts as ac, PrefetchPageLinks as ad, type ScriptsProps as ae, mapRouteProperties as af, FrameworkContext as ag, getPatchRoutesOnNavigationFunction as ah, useFogOFWarDiscovery as ai, createClientRoutes as aj, createClientRoutesWithHMRRevalidationOptOut as ak, shouldHydrateRouteLoader as al, useScrollRestoration as am, type AwaitProps as b, type RouteProps as c, type RouterProps as d, type RoutesProps as e, Await as f, MemoryRouter as g, Navigate as h, Outlet as i, Route$1 as j, Router as k, RouterProvider as l, Routes as m, createMemoryRouter as n, createRoutesFromChildren as o, createRoutesFromElements as p, type HistoryRouterProps as q, renderMatches as r, type LinkProps as s, type NavLinkProps as t, type NavLinkRenderProps as u, type FetcherFormProps as v, type FormProps as w, type SetURLSearchParams as x, type SubmitFunction as y, type FetcherSubmitFunction as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
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 LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-DuV3tXo2.mjs';
|
|
2
2
|
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-DuV3tXo2.mjs';
|
|
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,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-BkI3XFdx.mjs';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-BkI3XFdx.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { 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 LoaderFunctionArgs, f as ActionFunctionArgs, T as To, g as RelativeRoutingType, h as Location, i as Action, P as ParamParseKey, j as Path, k as PathPattern, l as PathMatch, N as NavigateOptions, m as Params, n as RouteObject, o as Navigation, p as RevalidationState, U as UIMatch, S as SerializeFrom, B as BlockerFunction, q as Blocker, r as StaticHandlerContext, s as StaticHandler, F as FutureConfig$1, t as CreateStaticHandlerOptions$1, I as InitialEntry, H as HydrationState, u as IndexRouteObject, v as NonIndexRouteObject, w as RouterState } from './route-data-DuV3tXo2.js';
|
|
2
2
|
export { ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, aj as DataRouteMatch, ak as DataRouteObject, Q as DataStrategyFunctionArgs, V as DataStrategyMatch, W as DataStrategyResult, Y as ErrorResponse, y as Fetcher, Z as FormEncType, _ as FormMethod, G as GetScrollPositionFunction, x as GetScrollRestorationKeyFunction, $ as HTMLFormMethod, au as HtmlLinkDescriptor, a9 as IDLE_BLOCKER, a8 as IDLE_FETCHER, a7 as IDLE_NAVIGATION, a0 as LazyRouteFunction, av as LinkDescriptor, ar as MetaArgs, as as MetaDescriptor, z as NavigationStates, al as Navigator, at as PageLinkDescriptor, am as PatchRoutesOnNavigationFunction, an as PatchRoutesOnNavigationFunctionArgs, a1 as PathParam, a2 as RedirectFunction, ao as RouteMatch, O as RouterFetchOptions, E as RouterInit, K as RouterNavigateOptions, J as RouterSubscriber, a3 as ShouldRevalidateFunction, a4 as ShouldRevalidateFunctionArgs, aA as UNSAFE_DataRouterContext, aB as UNSAFE_DataRouterStateContext, X as UNSAFE_DataWithResponseInit, az as UNSAFE_ErrorResponseImpl, aC as UNSAFE_FetchersContext, aD as UNSAFE_LocationContext, aE as UNSAFE_NavigationContext, aF as UNSAFE_RouteContext, aG as UNSAFE_ViewTransitionContext, aw as UNSAFE_createBrowserHistory, ay as UNSAFE_createRouter, ax as UNSAFE_invariant, a5 as createPath, aa as data, ab as generatePath, ac as isRouteErrorResponse, ad as matchPath, ae as matchRoutes, a6 as parsePath, af as redirect, ag as redirectDocument, ah as replace, ai as resolvePath } from './route-data-DuV3tXo2.js';
|
|
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,
|
|
3
|
+
import { A as AssetsManifest, a as Route, F as FutureConfig, E as EntryContext } from './fog-of-war-DU_DzpDb.js';
|
|
4
|
+
export { f as Await, b as AwaitProps, J as BrowserRouter, B as BrowserRouterProps, v as FetcherFormProps, z as FetcherSubmitFunction, a4 as FetcherSubmitOptions, C as FetcherWithComponents, V as Form, w as FormProps, K as HashRouter, H as HashRouterProps, q as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Q as Link, s as LinkProps, ab as Links, g as MemoryRouter, M as MemoryRouterProps, aa as Meta, U as NavLink, t as NavLinkProps, u as NavLinkRenderProps, h as Navigate, N as NavigateProps, i as Outlet, O as OutletProps, a5 as ParamKeyValuePair, P as PathRouteProps, ad 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, ac as Scripts, ae as ScriptsProps, W as ScrollRestoration, S as ScrollRestorationProps, x as SetURLSearchParams, y as SubmitFunction, a6 as SubmitOptions, a8 as SubmitTarget, ag as UNSAFE_FrameworkContext, aj as UNSAFE_createClientRoutes, ak as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, ah as UNSAFE_getPatchRoutesOnNavigationFunction, af as UNSAFE_mapRouteProperties, al as UNSAFE_shouldHydrateRouteLoader, ai as UNSAFE_useFogOFWarDiscovery, am as UNSAFE_useScrollRestoration, a7 as URLSearchParamsInit, D as createBrowserRouter, G as createHashRouter, n as createMemoryRouter, o as createRoutesFromChildren, p as createRoutesFromElements, a9 as createSearchParams, r as renderMatches, T as unstable_HistoryRouter, a2 as unstable_usePrompt, a1 as useBeforeUnload, $ as useFetcher, a0 as useFetchers, _ as useFormAction, X as useLinkClickHandler, Y as useSearchParams, Z as useSubmit, a3 as useViewTransitionState } from './fog-of-war-DU_DzpDb.js';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { ReactElement } from 'react';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
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-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -99,7 +99,7 @@ __export(react_router_exports, {
|
|
|
99
99
|
createPath: () => createPath,
|
|
100
100
|
createRequestHandler: () => createRequestHandler,
|
|
101
101
|
createRoutesFromChildren: () => createRoutesFromChildren,
|
|
102
|
-
createRoutesFromElements: () =>
|
|
102
|
+
createRoutesFromElements: () => createRoutesFromElements,
|
|
103
103
|
createRoutesStub: () => createRoutesStub,
|
|
104
104
|
createSearchParams: () => createSearchParams,
|
|
105
105
|
createSession: () => createSession,
|
|
@@ -5307,6 +5307,7 @@ function createRoutesFromChildren(children, parentPath = []) {
|
|
|
5307
5307
|
});
|
|
5308
5308
|
return routes;
|
|
5309
5309
|
}
|
|
5310
|
+
var createRoutesFromElements = createRoutesFromChildren;
|
|
5310
5311
|
function renderMatches(matches) {
|
|
5311
5312
|
return _renderMatches(matches);
|
|
5312
5313
|
}
|
|
@@ -7125,7 +7126,7 @@ function mergeRefs(...refs) {
|
|
|
7125
7126
|
var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
|
|
7126
7127
|
try {
|
|
7127
7128
|
if (isBrowser) {
|
|
7128
|
-
window.__reactRouterVersion = "0.0.0-experimental-
|
|
7129
|
+
window.__reactRouterVersion = "0.0.0-experimental-89dc2043e";
|
|
7129
7130
|
}
|
|
7130
7131
|
} catch (e) {
|
|
7131
7132
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-89dc2043e
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -60,6 +60,7 @@ import {
|
|
|
60
60
|
createRequestHandler,
|
|
61
61
|
createRouter,
|
|
62
62
|
createRoutesFromChildren,
|
|
63
|
+
createRoutesFromElements,
|
|
63
64
|
createRoutesStub,
|
|
64
65
|
createSearchParams,
|
|
65
66
|
createSession,
|
|
@@ -119,7 +120,7 @@ import {
|
|
|
119
120
|
useSearchParams,
|
|
120
121
|
useSubmit,
|
|
121
122
|
useViewTransitionState
|
|
122
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-VRQVD6TT.mjs";
|
|
123
124
|
export {
|
|
124
125
|
Await,
|
|
125
126
|
BrowserRouter,
|
|
@@ -180,7 +181,7 @@ export {
|
|
|
180
181
|
createPath,
|
|
181
182
|
createRequestHandler,
|
|
182
183
|
createRoutesFromChildren,
|
|
183
|
-
|
|
184
|
+
createRoutesFromElements,
|
|
184
185
|
createRoutesStub,
|
|
185
186
|
createSearchParams,
|
|
186
187
|
createSession,
|