react-router 7.9.1 → 7.9.2-pre.0
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 +19 -9
- package/dist/development/{chunk-PW3F6ATG.js → chunk-ED2JHW2I.js} +102 -70
- package/dist/development/{chunk-B7RQU5TL.mjs → chunk-EPSRV6KC.mjs} +64 -26
- package/dist/{production/chunk-RCAZODXZ.mjs → development/chunk-PVJ3J6E6.mjs} +94 -9
- package/dist/{production/chunk-3SXVZXGI.js → development/chunk-VM65TX2A.js} +138 -132
- package/dist/development/{context-CIdFp11b.d.mts → context-BqL5Eckq.d.mts} +20 -0
- package/dist/development/dom-export.d.mts +1 -1
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/development/{index-react-server-client-BeVfPpWg.d.mts → index-react-server-client-2EDmGlsZ.d.mts} +40 -24
- package/dist/{production/index-react-server-client-BYr9g50r.d.ts → development/index-react-server-client-DKvU8YRr.d.ts} +39 -23
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -2
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +10 -0
- package/dist/development/index-react-server.d.ts +10 -0
- package/dist/development/index-react-server.js +3 -3
- package/dist/development/index-react-server.mjs +3 -3
- package/dist/development/index.d.mts +16 -12
- package/dist/development/index.d.ts +14 -10
- package/dist/development/index.js +190 -105
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +1 -1
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{route-data-Bpm4liR_.d.mts → route-data-CDwqkzPE.d.mts} +1 -1
- package/dist/{production/routeModules-DnUHijGz.d.ts → development/routeModules-BmVo7q9e.d.ts} +20 -0
- package/dist/production/{chunk-HMYSPRGR.js → chunk-22I2H6CR.js} +102 -70
- package/dist/production/{chunk-P25HWPOZ.mjs → chunk-662O2YDJ.mjs} +64 -26
- package/dist/{development/chunk-SKNKB5VI.mjs → production/chunk-HAV7J4RO.mjs} +94 -9
- package/dist/{development/chunk-LWNHKVDL.js → production/chunk-K4BWIVAI.js} +138 -132
- package/dist/production/{context-CIdFp11b.d.mts → context-BqL5Eckq.d.mts} +20 -0
- package/dist/production/dom-export.d.mts +1 -1
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/production/{index-react-server-client-BeVfPpWg.d.mts → index-react-server-client-2EDmGlsZ.d.mts} +40 -24
- package/dist/{development/index-react-server-client-BYr9g50r.d.ts → production/index-react-server-client-DKvU8YRr.d.ts} +39 -23
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -2
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +10 -0
- package/dist/production/index-react-server.d.ts +10 -0
- package/dist/production/index-react-server.js +3 -3
- package/dist/production/index-react-server.mjs +3 -3
- package/dist/production/index.d.mts +16 -12
- package/dist/production/index.d.ts +14 -10
- package/dist/production/index.js +190 -105
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +1 -1
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{route-data-Bpm4liR_.d.mts → route-data-CDwqkzPE.d.mts} +1 -1
- package/dist/{development/routeModules-DnUHijGz.d.ts → production/routeModules-BmVo7q9e.d.ts} +20 -0
- package/package.json +1 -1
|
@@ -1166,6 +1166,16 @@ interface Router$1 {
|
|
|
1166
1166
|
* @param key
|
|
1167
1167
|
*/
|
|
1168
1168
|
getFetcher<TData = any>(key: string): Fetcher<TData>;
|
|
1169
|
+
/**
|
|
1170
|
+
* @internal
|
|
1171
|
+
* PRIVATE - DO NOT USE
|
|
1172
|
+
*
|
|
1173
|
+
* Reset the fetcher for a given key
|
|
1174
|
+
* @param key
|
|
1175
|
+
*/
|
|
1176
|
+
resetFetcher(key: string, opts?: {
|
|
1177
|
+
reason?: unknown;
|
|
1178
|
+
}): void;
|
|
1169
1179
|
/**
|
|
1170
1180
|
* @private
|
|
1171
1181
|
* PRIVATE - DO NOT USE
|
|
@@ -1875,6 +1885,11 @@ interface PathRouteProps {
|
|
|
1875
1885
|
* See [`lazy`](../../start/data/route-object#lazy).
|
|
1876
1886
|
*/
|
|
1877
1887
|
lazy?: LazyRouteFunction<NonIndexRouteObject>;
|
|
1888
|
+
/**
|
|
1889
|
+
* The route middleware.
|
|
1890
|
+
* See [`middleware`](../../start/data/route-object#middleware).
|
|
1891
|
+
*/
|
|
1892
|
+
middleware?: NonIndexRouteObject["middleware"];
|
|
1878
1893
|
/**
|
|
1879
1894
|
* The route loader.
|
|
1880
1895
|
* See [`loader`](../../start/data/route-object#loader).
|
|
@@ -1962,6 +1977,11 @@ interface IndexRouteProps {
|
|
|
1962
1977
|
* See [`lazy`](../../start/data/route-object#lazy).
|
|
1963
1978
|
*/
|
|
1964
1979
|
lazy?: LazyRouteFunction<IndexRouteObject>;
|
|
1980
|
+
/**
|
|
1981
|
+
* The route middleware.
|
|
1982
|
+
* See [`middleware`](../../start/data/route-object#middleware).
|
|
1983
|
+
*/
|
|
1984
|
+
middleware?: IndexRouteObject["middleware"];
|
|
1965
1985
|
/**
|
|
1966
1986
|
* The route loader.
|
|
1967
1987
|
* See [`loader`](../../start/data/route-object#loader).
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-
|
|
2
|
+
import { R as RouterProviderProps$1, a as RouterInit, u as unstable_ClientOnErrorFunction } from './context-BqL5Eckq.mjs';
|
|
3
3
|
import './browser-z32v5KVN.mjs';
|
|
4
4
|
|
|
5
5
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.2-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"use client";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkED2JHW2Ijs = require('./chunk-ED2JHW2I.js');
|
|
15
15
|
|
|
16
16
|
// lib/dom-export/dom-router-provider.tsx
|
|
17
17
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
|
|
|
180
180
|
}, []);
|
|
181
181
|
React2.useEffect(() => {
|
|
182
182
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
183
|
-
document.querySelectorAll(`[${
|
|
183
|
+
document.querySelectorAll(`[${_chunkED2JHW2Ijs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
184
184
|
}
|
|
185
185
|
}, [criticalCss]);
|
|
186
186
|
let [location, setLocation] = React2.useState(router.state.location);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.2-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-PVJ3J6E6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
18
18
|
FrameworkContext,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
invariant,
|
|
30
30
|
mapRouteProperties,
|
|
31
31
|
useFogOFWarDiscovery
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-EPSRV6KC.mjs";
|
|
33
33
|
|
|
34
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
35
35
|
import * as React from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b7 as RouteManifest, i as MiddlewareEnabled, g as RouterContextProvider, b as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b8 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b9 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, ba as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-
|
|
1
|
+
import { b7 as RouteManifest, i as MiddlewareEnabled, g as RouterContextProvider, b as LoaderFunctionArgs, A as ActionFunctionArgs, O as StaticHandlerContext, H as HydrationState, F as DataRouteObject, a3 as HTMLFormMethod, a1 as FormEncType, m as RelativeRoutingType, T as To, b8 as History, K as GetScrollRestorationKeyFunction, a as RouterInit, b9 as FutureConfig$1, k as DataStrategyFunction, C as PatchRoutesOnNavigationFunction, N as NavigateOptions, Q as Fetcher, t as RouteObject, j as Router, B as BlockerFunction, L as Location, ba as CreateStaticHandlerOptions$1, G as StaticHandler } from './context-BqL5Eckq.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-
|
|
3
|
+
import { o as ServerRouteModule, A as AppLoadContext, c as RouteModules, h as ClientLoaderFunction, m as PageLinkDescriptor, d as SerializeFrom } from './route-data-CDwqkzPE.mjs';
|
|
4
4
|
|
|
5
5
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
6
6
|
interface ServerRoute extends Route {
|
|
@@ -2076,6 +2076,41 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2076
2076
|
* ```
|
|
2077
2077
|
*/
|
|
2078
2078
|
Form: React.ForwardRefExoticComponent<FetcherFormProps & React.RefAttributes<HTMLFormElement>>;
|
|
2079
|
+
/**
|
|
2080
|
+
* Loads data from a route. Useful for loading data imperatively inside user
|
|
2081
|
+
* events outside a normal button or form, like a combobox or search input.
|
|
2082
|
+
*
|
|
2083
|
+
* ```tsx
|
|
2084
|
+
* let fetcher = useFetcher()
|
|
2085
|
+
*
|
|
2086
|
+
* <input onChange={e => {
|
|
2087
|
+
* fetcher.load(`/search?q=${e.target.value}`)
|
|
2088
|
+
* }} />
|
|
2089
|
+
* ```
|
|
2090
|
+
*/
|
|
2091
|
+
load: (href: string, opts?: {
|
|
2092
|
+
/**
|
|
2093
|
+
* Wraps the initial state update for this `fetcher.load` in a
|
|
2094
|
+
* [`ReactDOM.flushSync`](https://react.dev/reference/react-dom/flushSync)
|
|
2095
|
+
* call instead of the default [`React.startTransition`](https://react.dev/reference/react/startTransition).
|
|
2096
|
+
* This allows you to perform synchronous DOM actions immediately after the
|
|
2097
|
+
* update is flushed to the DOM.
|
|
2098
|
+
*/
|
|
2099
|
+
flushSync?: boolean;
|
|
2100
|
+
}) => Promise<void>;
|
|
2101
|
+
/**
|
|
2102
|
+
* Reset a fetcher back to an empty/idle state.
|
|
2103
|
+
*
|
|
2104
|
+
* If the fetcher is currently in-flight, the
|
|
2105
|
+
* [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)
|
|
2106
|
+
* will be aborted with the `reason`, if provided.
|
|
2107
|
+
*
|
|
2108
|
+
* @param reason Optional `reason` to provide to [`AbortController.abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)
|
|
2109
|
+
* @returns void
|
|
2110
|
+
*/
|
|
2111
|
+
unstable_reset: (opts?: {
|
|
2112
|
+
reason?: unknown;
|
|
2113
|
+
}) => void;
|
|
2079
2114
|
/**
|
|
2080
2115
|
* Submits form data to a route. While multiple nested routes can match a URL, only the leaf route will be called.
|
|
2081
2116
|
*
|
|
@@ -2129,28 +2164,6 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2129
2164
|
* ```
|
|
2130
2165
|
*/
|
|
2131
2166
|
submit: FetcherSubmitFunction;
|
|
2132
|
-
/**
|
|
2133
|
-
* Loads data from a route. Useful for loading data imperatively inside user
|
|
2134
|
-
* events outside a normal button or form, like a combobox or search input.
|
|
2135
|
-
*
|
|
2136
|
-
* ```tsx
|
|
2137
|
-
* let fetcher = useFetcher()
|
|
2138
|
-
*
|
|
2139
|
-
* <input onChange={e => {
|
|
2140
|
-
* fetcher.load(`/search?q=${e.target.value}`)
|
|
2141
|
-
* }} />
|
|
2142
|
-
* ```
|
|
2143
|
-
*/
|
|
2144
|
-
load: (href: string, opts?: {
|
|
2145
|
-
/**
|
|
2146
|
-
* Wraps the initial state update for this `fetcher.load` in a
|
|
2147
|
-
* [`ReactDOM.flushSync`](https://react.dev/reference/react-dom/flushSync)
|
|
2148
|
-
* call instead of the default [`React.startTransition`](https://react.dev/reference/react/startTransition).
|
|
2149
|
-
* This allows you to perform synchronous DOM actions immediately after the
|
|
2150
|
-
* update is flushed to the DOM.
|
|
2151
|
-
*/
|
|
2152
|
-
flushSync?: boolean;
|
|
2153
|
-
}) => Promise<void>;
|
|
2154
2167
|
};
|
|
2155
2168
|
/**
|
|
2156
2169
|
* Useful for creating complex, dynamic user interfaces that require multiple,
|
|
@@ -2182,6 +2195,9 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2182
2195
|
* method: "post",
|
|
2183
2196
|
* encType: "application/json"
|
|
2184
2197
|
* })
|
|
2198
|
+
*
|
|
2199
|
+
* // reset fetcher
|
|
2200
|
+
* fetcher.unstable_reset()
|
|
2185
2201
|
* }
|
|
2186
2202
|
*
|
|
2187
2203
|
* @public
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ai as HTMLFormMethod, ag as FormEncType, k as RelativeRoutingType, by as RouteManifest, bz as ServerRouteModule, O as MiddlewareEnabled, K as RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, f as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, bb as PageLinkDescriptor, T as To, bA as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bB as FutureConfig$1, g as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, h as NavigateOptions, a5 as Fetcher, r as RouteObject, e as Router, j as SerializeFrom, B as BlockerFunction, a as Location, bC as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-
|
|
1
|
+
import { ai as HTMLFormMethod, ag as FormEncType, k as RelativeRoutingType, by as RouteManifest, bz as ServerRouteModule, O as MiddlewareEnabled, K as RouterContextProvider, J as AppLoadContext, ak as LoaderFunctionArgs, ab as ActionFunctionArgs, f as RouteModules, H as HydrationState, a0 as DataRouteObject, W as ClientLoaderFunction, a4 as StaticHandlerContext, bb as PageLinkDescriptor, T as To, bA as History, a3 as GetScrollRestorationKeyFunction, Z as RouterInit, bB as FutureConfig$1, g as DataStrategyFunction, $ as PatchRoutesOnNavigationFunction, h as NavigateOptions, a5 as Fetcher, r as RouteObject, e as Router, j as SerializeFrom, B as BlockerFunction, a as Location, bC as CreateStaticHandlerOptions$1, a1 as StaticHandler } from './routeModules-BmVo7q9e.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ParamKeyValuePair = [string, string];
|
|
@@ -2075,6 +2075,41 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2075
2075
|
* ```
|
|
2076
2076
|
*/
|
|
2077
2077
|
Form: React.ForwardRefExoticComponent<FetcherFormProps & React.RefAttributes<HTMLFormElement>>;
|
|
2078
|
+
/**
|
|
2079
|
+
* Loads data from a route. Useful for loading data imperatively inside user
|
|
2080
|
+
* events outside a normal button or form, like a combobox or search input.
|
|
2081
|
+
*
|
|
2082
|
+
* ```tsx
|
|
2083
|
+
* let fetcher = useFetcher()
|
|
2084
|
+
*
|
|
2085
|
+
* <input onChange={e => {
|
|
2086
|
+
* fetcher.load(`/search?q=${e.target.value}`)
|
|
2087
|
+
* }} />
|
|
2088
|
+
* ```
|
|
2089
|
+
*/
|
|
2090
|
+
load: (href: string, opts?: {
|
|
2091
|
+
/**
|
|
2092
|
+
* Wraps the initial state update for this `fetcher.load` in a
|
|
2093
|
+
* [`ReactDOM.flushSync`](https://react.dev/reference/react-dom/flushSync)
|
|
2094
|
+
* call instead of the default [`React.startTransition`](https://react.dev/reference/react/startTransition).
|
|
2095
|
+
* This allows you to perform synchronous DOM actions immediately after the
|
|
2096
|
+
* update is flushed to the DOM.
|
|
2097
|
+
*/
|
|
2098
|
+
flushSync?: boolean;
|
|
2099
|
+
}) => Promise<void>;
|
|
2100
|
+
/**
|
|
2101
|
+
* Reset a fetcher back to an empty/idle state.
|
|
2102
|
+
*
|
|
2103
|
+
* If the fetcher is currently in-flight, the
|
|
2104
|
+
* [`AbortController`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController)
|
|
2105
|
+
* will be aborted with the `reason`, if provided.
|
|
2106
|
+
*
|
|
2107
|
+
* @param reason Optional `reason` to provide to [`AbortController.abort()`](https://developer.mozilla.org/en-US/docs/Web/API/AbortController/abort)
|
|
2108
|
+
* @returns void
|
|
2109
|
+
*/
|
|
2110
|
+
unstable_reset: (opts?: {
|
|
2111
|
+
reason?: unknown;
|
|
2112
|
+
}) => void;
|
|
2078
2113
|
/**
|
|
2079
2114
|
* Submits form data to a route. While multiple nested routes can match a URL, only the leaf route will be called.
|
|
2080
2115
|
*
|
|
@@ -2128,28 +2163,6 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2128
2163
|
* ```
|
|
2129
2164
|
*/
|
|
2130
2165
|
submit: FetcherSubmitFunction;
|
|
2131
|
-
/**
|
|
2132
|
-
* Loads data from a route. Useful for loading data imperatively inside user
|
|
2133
|
-
* events outside a normal button or form, like a combobox or search input.
|
|
2134
|
-
*
|
|
2135
|
-
* ```tsx
|
|
2136
|
-
* let fetcher = useFetcher()
|
|
2137
|
-
*
|
|
2138
|
-
* <input onChange={e => {
|
|
2139
|
-
* fetcher.load(`/search?q=${e.target.value}`)
|
|
2140
|
-
* }} />
|
|
2141
|
-
* ```
|
|
2142
|
-
*/
|
|
2143
|
-
load: (href: string, opts?: {
|
|
2144
|
-
/**
|
|
2145
|
-
* Wraps the initial state update for this `fetcher.load` in a
|
|
2146
|
-
* [`ReactDOM.flushSync`](https://react.dev/reference/react-dom/flushSync)
|
|
2147
|
-
* call instead of the default [`React.startTransition`](https://react.dev/reference/react/startTransition).
|
|
2148
|
-
* This allows you to perform synchronous DOM actions immediately after the
|
|
2149
|
-
* update is flushed to the DOM.
|
|
2150
|
-
*/
|
|
2151
|
-
flushSync?: boolean;
|
|
2152
|
-
}) => Promise<void>;
|
|
2153
2166
|
};
|
|
2154
2167
|
/**
|
|
2155
2168
|
* Useful for creating complex, dynamic user interfaces that require multiple,
|
|
@@ -2181,6 +2194,9 @@ type FetcherWithComponents<TData> = Fetcher<TData> & {
|
|
|
2181
2194
|
* method: "post",
|
|
2182
2195
|
* encType: "application/json"
|
|
2183
2196
|
* })
|
|
2197
|
+
*
|
|
2198
|
+
* // reset fetcher
|
|
2199
|
+
* fetcher.unstable_reset()
|
|
2184
2200
|
* }
|
|
2185
2201
|
*
|
|
2186
2202
|
* @public
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aE as MemoryRouter, aF as Navigate, aG as Outlet, aH as Route, aI as Router, aJ as RouterProvider, aK as Routes, ar as UNSAFE_AwaitContextProvider, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps } from './context-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { aE as MemoryRouter, aF as Navigate, aG as Outlet, aH as Route, aI as Router, aJ as RouterProvider, aK as Routes, ar as UNSAFE_AwaitContextProvider, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps } from './context-BqL5Eckq.mjs';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-2EDmGlsZ.mjs';
|
|
3
3
|
import 'react';
|
|
4
|
-
import './route-data-
|
|
4
|
+
import './route-data-CDwqkzPE.mjs';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { aY as MemoryRouter, aZ as Navigate, a_ as Outlet, a$ as Route, b0 as Router, b1 as RouterProvider, b2 as Routes, aJ as UNSAFE_AwaitContextProvider, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps } from './routeModules-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
1
|
+
export { aY as MemoryRouter, aZ as Navigate, a_ as Outlet, a$ as Route, b0 as Router, b1 as RouterProvider, b2 as Routes, aJ as UNSAFE_AwaitContextProvider, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps } from './routeModules-BmVo7q9e.js';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DKvU8YRr.js';
|
|
3
3
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.2-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkVM65TX2Ajs = require('./chunk-VM65TX2A.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkED2JHW2Ijs = require('./chunk-ED2JHW2I.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkPW3F6ATGjs = require('./chunk-PW3F6ATG.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkVM65TX2Ajs.BrowserRouter; exports.Form = _chunkVM65TX2Ajs.Form; exports.HashRouter = _chunkVM65TX2Ajs.HashRouter; exports.Link = _chunkVM65TX2Ajs.Link; exports.Links = _chunkED2JHW2Ijs.Links; exports.MemoryRouter = _chunkVM65TX2Ajs.MemoryRouter; exports.Meta = _chunkED2JHW2Ijs.Meta; exports.NavLink = _chunkVM65TX2Ajs.NavLink; exports.Navigate = _chunkVM65TX2Ajs.Navigate; exports.Outlet = _chunkVM65TX2Ajs.Outlet; exports.Route = _chunkVM65TX2Ajs.Route; exports.Router = _chunkVM65TX2Ajs.Router; exports.RouterProvider = _chunkVM65TX2Ajs.RouterProvider; exports.Routes = _chunkVM65TX2Ajs.Routes; exports.ScrollRestoration = _chunkVM65TX2Ajs.ScrollRestoration; exports.StaticRouter = _chunkVM65TX2Ajs.StaticRouter; exports.StaticRouterProvider = _chunkVM65TX2Ajs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkED2JHW2Ijs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkVM65TX2Ajs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkVM65TX2Ajs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkVM65TX2Ajs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkVM65TX2Ajs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.2-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
WithComponentProps,
|
|
33
33
|
WithErrorBoundaryProps,
|
|
34
34
|
WithHydrateFallbackProps
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-EPSRV6KC.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -1014,6 +1014,16 @@ interface Router {
|
|
|
1014
1014
|
* @param key
|
|
1015
1015
|
*/
|
|
1016
1016
|
getFetcher<TData = any>(key: string): Fetcher<TData>;
|
|
1017
|
+
/**
|
|
1018
|
+
* @internal
|
|
1019
|
+
* PRIVATE - DO NOT USE
|
|
1020
|
+
*
|
|
1021
|
+
* Reset the fetcher for a given key
|
|
1022
|
+
* @param key
|
|
1023
|
+
*/
|
|
1024
|
+
resetFetcher(key: string, opts?: {
|
|
1025
|
+
reason?: unknown;
|
|
1026
|
+
}): void;
|
|
1017
1027
|
/**
|
|
1018
1028
|
* @private
|
|
1019
1029
|
* PRIVATE - DO NOT USE
|
|
@@ -1014,6 +1014,16 @@ interface Router {
|
|
|
1014
1014
|
* @param key
|
|
1015
1015
|
*/
|
|
1016
1016
|
getFetcher<TData = any>(key: string): Fetcher<TData>;
|
|
1017
|
+
/**
|
|
1018
|
+
* @internal
|
|
1019
|
+
* PRIVATE - DO NOT USE
|
|
1020
|
+
*
|
|
1021
|
+
* Reset the fetcher for a given key
|
|
1022
|
+
* @param key
|
|
1023
|
+
*/
|
|
1024
|
+
resetFetcher(key: string, opts?: {
|
|
1025
|
+
reason?: unknown;
|
|
1026
|
+
}): void;
|
|
1017
1027
|
/**
|
|
1018
1028
|
* @private
|
|
1019
1029
|
* PRIVATE - DO NOT USE
|
|
@@ -27,7 +27,7 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* react-router v7.9.
|
|
30
|
+
* react-router v7.9.2-pre.0
|
|
31
31
|
*
|
|
32
32
|
* Copyright (c) Remix Software Inc.
|
|
33
33
|
*
|
|
@@ -2278,8 +2278,8 @@ async function matchRSCServerRequest({
|
|
|
2278
2278
|
}
|
|
2279
2279
|
async function generateManifestResponse(routes, basename, request, generateResponse, temporaryReferences) {
|
|
2280
2280
|
let url = new URL(request.url);
|
|
2281
|
-
let
|
|
2282
|
-
let pathnames =
|
|
2281
|
+
let pathParam = url.searchParams.get("paths");
|
|
2282
|
+
let pathnames = pathParam ? pathParam.split(",").filter(Boolean) : [url.pathname.replace(/\.manifest$/, "")];
|
|
2283
2283
|
let routeIds = /* @__PURE__ */ new Set();
|
|
2284
2284
|
let matchedRoutes = pathnames.flatMap((pathname) => {
|
|
2285
2285
|
let pathnameMatches = matchRoutes(routes, pathname, basename);
|
|
@@ -6,7 +6,7 @@ export { BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLi
|
|
|
6
6
|
import { serialize, parse } from 'cookie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* react-router v7.9.
|
|
9
|
+
* react-router v7.9.2-pre.0
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -2257,8 +2257,8 @@ async function matchRSCServerRequest({
|
|
|
2257
2257
|
}
|
|
2258
2258
|
async function generateManifestResponse(routes, basename, request, generateResponse, temporaryReferences) {
|
|
2259
2259
|
let url = new URL(request.url);
|
|
2260
|
-
let
|
|
2261
|
-
let pathnames =
|
|
2260
|
+
let pathParam = url.searchParams.get("paths");
|
|
2261
|
+
let pathnames = pathParam ? pathParam.split(",").filter(Boolean) : [url.pathname.replace(/\.manifest$/, "")];
|
|
2262
2262
|
let routeIds = /* @__PURE__ */ new Set();
|
|
2263
2263
|
let matchedRoutes = pathnames.flatMap((pathname) => {
|
|
2264
2264
|
let pathnameMatches = matchRoutes(routes, pathname, basename);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { j as Router, k as DataStrategyFunction, T as To, N as NavigateOptions, B as BlockerFunction, l as Blocker, m as RelativeRoutingType, L as Location, n as ParamParseKey, o as Path, p as PathPattern, q as PathMatch, U as UIMatch, r as Navigation, s as Action, P as Params, t as RouteObject, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as RouteComponentType, x as HydrateFallbackType, E as ErrorBoundaryType, d as LoaderFunction, c as ActionFunction, y as NonIndexRouteObject, g as RouterContextProvider, i as MiddlewareEnabled, S as ShouldRevalidateFunction, a as RouterInit, z as RouterState, C as PatchRoutesOnNavigationFunction, F as DataRouteObject } from './context-
|
|
2
|
-
export { A as ActionFunctionArgs, aD as Await, as as AwaitProps, e as DataRouteMatch, _ as DataStrategyFunctionArgs, $ as DataStrategyMatch, D as DataStrategyResult, a0 as ErrorResponse, Q as Fetcher, a1 as FormEncType, a2 as FormMethod, aP as Future, J as GetScrollPositionFunction, K as GetScrollRestorationKeyFunction, a3 as HTMLFormMethod, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, at as IndexRouteProps, au as LayoutRouteProps, a4 as LazyRouteFunction, b as LoaderFunctionArgs, aE as MemoryRouter, av as MemoryRouterOpts, aw as MemoryRouterProps, f as MiddlewareFunction, aF as Navigate, ax as NavigateProps, V as NavigationStates, ao as Navigator, aG as Outlet, ay as OutletProps, ap as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, az as PathRouteProps, a6 as RedirectFunction, Z as RevalidationState, aH as Route, aq as RouteMatch, aA as RouteProps, aI as Router, a7 as RouterContext, Y as RouterFetchOptions, X as RouterNavigateOptions, aB as RouterProps, aJ as RouterProvider, R as RouterProviderProps, W as RouterSubscriber, aK as Routes, aC as RoutesProps, a8 as ShouldRevalidateFunctionArgs, G as StaticHandler, O as StaticHandlerContext, ar as UNSAFE_AwaitContextProvider, aU as UNSAFE_DataRouterContext, aV as UNSAFE_DataRouterStateContext, h as UNSAFE_DataWithResponseInit, aT as UNSAFE_ErrorResponseImpl, aW as UNSAFE_FetchersContext, aX as UNSAFE_LocationContext, aY as UNSAFE_NavigationContext, aZ as UNSAFE_RouteContext, a_ as UNSAFE_ViewTransitionContext, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps, aQ as UNSAFE_createBrowserHistory, aS as UNSAFE_createRouter, a$ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_invariant, b0 as UNSAFE_mapRouteProperties, b2 as UNSAFE_withComponentProps, b6 as UNSAFE_withErrorBoundaryProps, b4 as UNSAFE_withHydrateFallbackProps, a9 as createContext, aL as createMemoryRouter, aa as createPath, aM as createRoutesFromChildren, aN as createRoutesFromElements, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, aO as renderMatches, am as replace, an as resolvePath, u as unstable_ClientOnErrorFunction } from './context-
|
|
1
|
+
import { j as Router, k as DataStrategyFunction, T as To, N as NavigateOptions, B as BlockerFunction, l as Blocker, m as RelativeRoutingType, L as Location, n as ParamParseKey, o as Path, p as PathPattern, q as PathMatch, U as UIMatch, r as Navigation, s as Action, P as Params, t as RouteObject, I as InitialEntry, H as HydrationState, v as IndexRouteObject, w as RouteComponentType, x as HydrateFallbackType, E as ErrorBoundaryType, d as LoaderFunction, c as ActionFunction, y as NonIndexRouteObject, g as RouterContextProvider, i as MiddlewareEnabled, S as ShouldRevalidateFunction, a as RouterInit, z as RouterState, C as PatchRoutesOnNavigationFunction, F as DataRouteObject } from './context-BqL5Eckq.mjs';
|
|
2
|
+
export { A as ActionFunctionArgs, aD as Await, as as AwaitProps, e as DataRouteMatch, _ as DataStrategyFunctionArgs, $ as DataStrategyMatch, D as DataStrategyResult, a0 as ErrorResponse, Q as Fetcher, a1 as FormEncType, a2 as FormMethod, aP as Future, J as GetScrollPositionFunction, K as GetScrollRestorationKeyFunction, a3 as HTMLFormMethod, ae as IDLE_BLOCKER, ad as IDLE_FETCHER, ac as IDLE_NAVIGATION, at as IndexRouteProps, au as LayoutRouteProps, a4 as LazyRouteFunction, b as LoaderFunctionArgs, aE as MemoryRouter, av as MemoryRouterOpts, aw as MemoryRouterProps, f as MiddlewareFunction, aF as Navigate, ax as NavigateProps, V as NavigationStates, ao as Navigator, aG as Outlet, ay as OutletProps, ap as PatchRoutesOnNavigationFunctionArgs, a5 as PathParam, az as PathRouteProps, a6 as RedirectFunction, Z as RevalidationState, aH as Route, aq as RouteMatch, aA as RouteProps, aI as Router, a7 as RouterContext, Y as RouterFetchOptions, X as RouterNavigateOptions, aB as RouterProps, aJ as RouterProvider, R as RouterProviderProps, W as RouterSubscriber, aK as Routes, aC as RoutesProps, a8 as ShouldRevalidateFunctionArgs, G as StaticHandler, O as StaticHandlerContext, ar as UNSAFE_AwaitContextProvider, aU as UNSAFE_DataRouterContext, aV as UNSAFE_DataRouterStateContext, h as UNSAFE_DataWithResponseInit, aT as UNSAFE_ErrorResponseImpl, aW as UNSAFE_FetchersContext, aX as UNSAFE_LocationContext, aY as UNSAFE_NavigationContext, aZ as UNSAFE_RouteContext, a_ as UNSAFE_ViewTransitionContext, b1 as UNSAFE_WithComponentProps, b5 as UNSAFE_WithErrorBoundaryProps, b3 as UNSAFE_WithHydrateFallbackProps, aQ as UNSAFE_createBrowserHistory, aS as UNSAFE_createRouter, a$ as UNSAFE_hydrationRouteProperties, aR as UNSAFE_invariant, b0 as UNSAFE_mapRouteProperties, b2 as UNSAFE_withComponentProps, b6 as UNSAFE_withErrorBoundaryProps, b4 as UNSAFE_withHydrateFallbackProps, a9 as createContext, aL as createMemoryRouter, aa as createPath, aM as createRoutesFromChildren, aN as createRoutesFromElements, af as data, ag as generatePath, ah as isRouteErrorResponse, ai as matchPath, aj as matchRoutes, ab as parsePath, ak as redirect, al as redirectDocument, aO as renderMatches, am as replace, an as resolvePath, u as unstable_ClientOnErrorFunction } from './context-BqL5Eckq.mjs';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { c as RouteModules, d as SerializeFrom, e as MetaFunction, f as LinksFunction, A as AppLoadContext, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './route-data-
|
|
6
|
-
export { i as ClientActionFunctionArgs, j as ClientLoaderFunctionArgs, k as HeadersArgs, n as HtmlLinkDescriptor, L as LinkDescriptor, l as MetaArgs, M as MetaDescriptor, m as PageLinkDescriptor, u as unstable_SerializesTo } from './route-data-
|
|
7
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-
|
|
8
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-
|
|
5
|
+
import { c as RouteModules, d as SerializeFrom, e as MetaFunction, f as LinksFunction, A as AppLoadContext, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './route-data-CDwqkzPE.mjs';
|
|
6
|
+
export { i as ClientActionFunctionArgs, j as ClientLoaderFunctionArgs, k as HeadersArgs, n as HtmlLinkDescriptor, L as LinkDescriptor, l as MetaArgs, M as MetaDescriptor, m as PageLinkDescriptor, u as unstable_SerializesTo } from './route-data-CDwqkzPE.mjs';
|
|
7
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-2EDmGlsZ.mjs';
|
|
8
|
+
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-2EDmGlsZ.mjs';
|
|
9
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
10
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
11
|
import { P as Pages } from './register-DiOIlEq5.mjs';
|
|
@@ -1510,6 +1510,10 @@ interface RSCHydratedRouterProps {
|
|
|
1510
1510
|
*/
|
|
1511
1511
|
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, getContext, }: RSCHydratedRouterProps): React.JSX.Element;
|
|
1512
1512
|
|
|
1513
|
+
type DecodedPayload = Promise<RSCPayload> & {
|
|
1514
|
+
_deepestRenderedBoundaryId?: string | null;
|
|
1515
|
+
formState: Promise<any>;
|
|
1516
|
+
};
|
|
1513
1517
|
type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
|
|
1514
1518
|
/**
|
|
1515
1519
|
* Routes the incoming [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
|
|
@@ -1530,13 +1534,13 @@ type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) =>
|
|
|
1530
1534
|
* fetchServer,
|
|
1531
1535
|
* createFromReadableStream,
|
|
1532
1536
|
* async renderHTML(getPayload) {
|
|
1533
|
-
* const payload =
|
|
1537
|
+
* const payload = getPayload();
|
|
1534
1538
|
*
|
|
1535
1539
|
* return await renderHTMLToReadableStream(
|
|
1536
1540
|
* <RSCStaticRouter getPayload={getPayload} />,
|
|
1537
1541
|
* {
|
|
1538
1542
|
* bootstrapScriptContent,
|
|
1539
|
-
* formState: await
|
|
1543
|
+
* formState: await payload.formState,
|
|
1540
1544
|
* }
|
|
1541
1545
|
* );
|
|
1542
1546
|
* },
|
|
@@ -1565,7 +1569,7 @@ declare function routeRSCServerRequest({ request, fetchServer, createFromReadabl
|
|
|
1565
1569
|
request: Request;
|
|
1566
1570
|
fetchServer: (request: Request) => Promise<Response>;
|
|
1567
1571
|
createFromReadableStream: SSRCreateFromReadableStreamFunction;
|
|
1568
|
-
renderHTML: (getPayload: () =>
|
|
1572
|
+
renderHTML: (getPayload: () => DecodedPayload) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>;
|
|
1569
1573
|
hydrate?: boolean;
|
|
1570
1574
|
}): Promise<Response>;
|
|
1571
1575
|
/**
|
|
@@ -1579,7 +1583,7 @@ interface RSCStaticRouterProps {
|
|
|
1579
1583
|
* A function that starts decoding of the {@link unstable_RSCPayload}. Usually passed
|
|
1580
1584
|
* through from {@link unstable_routeRSCServerRequest}'s `renderHTML`.
|
|
1581
1585
|
*/
|
|
1582
|
-
getPayload: () =>
|
|
1586
|
+
getPayload: () => DecodedPayload;
|
|
1583
1587
|
}
|
|
1584
1588
|
/**
|
|
1585
1589
|
* Pre-renders an {@link unstable_RSCPayload} to HTML. Usually used in
|
|
@@ -1598,13 +1602,13 @@ interface RSCStaticRouterProps {
|
|
|
1598
1602
|
* fetchServer,
|
|
1599
1603
|
* createFromReadableStream,
|
|
1600
1604
|
* async renderHTML(getPayload) {
|
|
1601
|
-
* const payload =
|
|
1605
|
+
* const payload = getPayload();
|
|
1602
1606
|
*
|
|
1603
1607
|
* return await renderHTMLToReadableStream(
|
|
1604
1608
|
* <RSCStaticRouter getPayload={getPayload} />,
|
|
1605
1609
|
* {
|
|
1606
1610
|
* bootstrapScriptContent,
|
|
1607
|
-
* formState: await
|
|
1611
|
+
* formState: await payload.formState,
|
|
1608
1612
|
* }
|
|
1609
1613
|
* );
|
|
1610
1614
|
* },
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { e as Router, f as RouteModules, g as DataStrategyFunction, T as To, h as NavigateOptions, B as BlockerFunction, i as Blocker, j as SerializeFrom, k as RelativeRoutingType, a as Location, l as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, U as UIMatch, p as Navigation, A as Action, q as Params, r as RouteObject, I as InitialEntry, H as HydrationState, s as IndexRouteObject, t as RouteComponentType, u as HydrateFallbackType, E as ErrorBoundaryType, v as LoaderFunction, w as ActionFunction, x as MetaFunction, y as LinksFunction, z as NonIndexRouteObject, J as AppLoadContext, K as RouterContextProvider, O as MiddlewareEnabled, Q as Equal, V as ClientActionFunction, W as ClientLoaderFunction, X as HeadersFunction, Y as ShouldRevalidateFunction, Z as RouterInit, _ as RouterState, $ as PatchRoutesOnNavigationFunction, a0 as DataRouteObject } from './routeModules-
|
|
2
|
-
export { ab as ActionFunctionArgs, aX as Await, aK as AwaitProps, b7 as ClientActionFunctionArgs, b8 as ClientLoaderFunctionArgs, aF as DataRouteMatch, ac as DataStrategyFunctionArgs, ad as DataStrategyMatch, D as DataStrategyResult, af as ErrorResponse, a5 as Fetcher, ag as FormEncType, ah as FormMethod, bd as Future, a2 as GetScrollPositionFunction, a3 as GetScrollRestorationKeyFunction, ai as HTMLFormMethod, b9 as HeadersArgs, bc as HtmlLinkDescriptor, av as IDLE_BLOCKER, au as IDLE_FETCHER, at as IDLE_NAVIGATION, aL as IndexRouteProps, aN as LayoutRouteProps, aj as LazyRouteFunction, L as LinkDescriptor, ak as LoaderFunctionArgs, aY as MemoryRouter, aO as MemoryRouterOpts, aP as MemoryRouterProps, ba as MetaArgs, M as MetaDescriptor, al as MiddlewareFunction, aZ as Navigate, aQ as NavigateProps, a6 as NavigationStates, aG as Navigator, a_ as Outlet, aR as OutletProps, bb as PageLinkDescriptor, aH as PatchRoutesOnNavigationFunctionArgs, am as PathParam, aS as PathRouteProps, an as RedirectFunction, aa as RevalidationState, a$ as Route, aI as RouteMatch, aT as RouteProps, b0 as Router, ao as RouterContext, a9 as RouterFetchOptions, a8 as RouterNavigateOptions, aU as RouterProps, b1 as RouterProvider, aV as RouterProviderProps, a7 as RouterSubscriber, b2 as Routes, aW as RoutesProps, ap as ShouldRevalidateFunctionArgs, a1 as StaticHandler, a4 as StaticHandlerContext, aJ as UNSAFE_AwaitContextProvider, bj as UNSAFE_DataRouterContext, bk as UNSAFE_DataRouterStateContext, ae as UNSAFE_DataWithResponseInit, bi as UNSAFE_ErrorResponseImpl, bl as UNSAFE_FetchersContext, bm as UNSAFE_LocationContext, bn as UNSAFE_NavigationContext, bo as UNSAFE_RouteContext, bp as UNSAFE_ViewTransitionContext, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps, bf as UNSAFE_createBrowserHistory, bh as UNSAFE_createRouter, bq as UNSAFE_hydrationRouteProperties, bg as UNSAFE_invariant, br as UNSAFE_mapRouteProperties, bt as UNSAFE_withComponentProps, bx as UNSAFE_withErrorBoundaryProps, bv as UNSAFE_withHydrateFallbackProps, aq as createContext, b3 as createMemoryRouter, ar as createPath, b4 as createRoutesFromChildren, b5 as createRoutesFromElements, aw as data, ax as generatePath, ay as isRouteErrorResponse, az as matchPath, aA as matchRoutes, as as parsePath, aB as redirect, aC as redirectDocument, b6 as renderMatches, aD as replace, aE as resolvePath, aM as unstable_ClientOnErrorFunction, be as unstable_SerializesTo } from './routeModules-
|
|
1
|
+
import { e as Router, f as RouteModules, g as DataStrategyFunction, T as To, h as NavigateOptions, B as BlockerFunction, i as Blocker, j as SerializeFrom, k as RelativeRoutingType, a as Location, l as ParamParseKey, m as Path, n as PathPattern, o as PathMatch, U as UIMatch, p as Navigation, A as Action, q as Params, r as RouteObject, I as InitialEntry, H as HydrationState, s as IndexRouteObject, t as RouteComponentType, u as HydrateFallbackType, E as ErrorBoundaryType, v as LoaderFunction, w as ActionFunction, x as MetaFunction, y as LinksFunction, z as NonIndexRouteObject, J as AppLoadContext, K as RouterContextProvider, O as MiddlewareEnabled, Q as Equal, V as ClientActionFunction, W as ClientLoaderFunction, X as HeadersFunction, Y as ShouldRevalidateFunction, Z as RouterInit, _ as RouterState, $ as PatchRoutesOnNavigationFunction, a0 as DataRouteObject } from './routeModules-BmVo7q9e.js';
|
|
2
|
+
export { ab as ActionFunctionArgs, aX as Await, aK as AwaitProps, b7 as ClientActionFunctionArgs, b8 as ClientLoaderFunctionArgs, aF as DataRouteMatch, ac as DataStrategyFunctionArgs, ad as DataStrategyMatch, D as DataStrategyResult, af as ErrorResponse, a5 as Fetcher, ag as FormEncType, ah as FormMethod, bd as Future, a2 as GetScrollPositionFunction, a3 as GetScrollRestorationKeyFunction, ai as HTMLFormMethod, b9 as HeadersArgs, bc as HtmlLinkDescriptor, av as IDLE_BLOCKER, au as IDLE_FETCHER, at as IDLE_NAVIGATION, aL as IndexRouteProps, aN as LayoutRouteProps, aj as LazyRouteFunction, L as LinkDescriptor, ak as LoaderFunctionArgs, aY as MemoryRouter, aO as MemoryRouterOpts, aP as MemoryRouterProps, ba as MetaArgs, M as MetaDescriptor, al as MiddlewareFunction, aZ as Navigate, aQ as NavigateProps, a6 as NavigationStates, aG as Navigator, a_ as Outlet, aR as OutletProps, bb as PageLinkDescriptor, aH as PatchRoutesOnNavigationFunctionArgs, am as PathParam, aS as PathRouteProps, an as RedirectFunction, aa as RevalidationState, a$ as Route, aI as RouteMatch, aT as RouteProps, b0 as Router, ao as RouterContext, a9 as RouterFetchOptions, a8 as RouterNavigateOptions, aU as RouterProps, b1 as RouterProvider, aV as RouterProviderProps, a7 as RouterSubscriber, b2 as Routes, aW as RoutesProps, ap as ShouldRevalidateFunctionArgs, a1 as StaticHandler, a4 as StaticHandlerContext, aJ as UNSAFE_AwaitContextProvider, bj as UNSAFE_DataRouterContext, bk as UNSAFE_DataRouterStateContext, ae as UNSAFE_DataWithResponseInit, bi as UNSAFE_ErrorResponseImpl, bl as UNSAFE_FetchersContext, bm as UNSAFE_LocationContext, bn as UNSAFE_NavigationContext, bo as UNSAFE_RouteContext, bp as UNSAFE_ViewTransitionContext, bs as UNSAFE_WithComponentProps, bw as UNSAFE_WithErrorBoundaryProps, bu as UNSAFE_WithHydrateFallbackProps, bf as UNSAFE_createBrowserHistory, bh as UNSAFE_createRouter, bq as UNSAFE_hydrationRouteProperties, bg as UNSAFE_invariant, br as UNSAFE_mapRouteProperties, bt as UNSAFE_withComponentProps, bx as UNSAFE_withErrorBoundaryProps, bv as UNSAFE_withHydrateFallbackProps, aq as createContext, b3 as createMemoryRouter, ar as createPath, b4 as createRoutesFromChildren, b5 as createRoutesFromElements, aw as data, ax as generatePath, ay as isRouteErrorResponse, az as matchPath, aA as matchRoutes, as as parsePath, aB as redirect, aC as redirectDocument, b6 as renderMatches, aD as replace, aE as resolvePath, aM as unstable_ClientOnErrorFunction, be as unstable_SerializesTo } from './routeModules-BmVo7q9e.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-
|
|
6
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-
|
|
5
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-DKvU8YRr.js';
|
|
6
|
+
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-DKvU8YRr.js';
|
|
7
7
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
8
8
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
9
9
|
import { P as Pages } from './register-DiOIlEq5.js';
|
|
@@ -1507,6 +1507,10 @@ interface RSCHydratedRouterProps {
|
|
|
1507
1507
|
*/
|
|
1508
1508
|
declare function RSCHydratedRouter({ createFromReadableStream, fetch: fetchImplementation, payload, routeDiscovery, getContext, }: RSCHydratedRouterProps): React.JSX.Element;
|
|
1509
1509
|
|
|
1510
|
+
type DecodedPayload = Promise<RSCPayload> & {
|
|
1511
|
+
_deepestRenderedBoundaryId?: string | null;
|
|
1512
|
+
formState: Promise<any>;
|
|
1513
|
+
};
|
|
1510
1514
|
type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) => Promise<unknown>;
|
|
1511
1515
|
/**
|
|
1512
1516
|
* Routes the incoming [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request)
|
|
@@ -1527,13 +1531,13 @@ type SSRCreateFromReadableStreamFunction = (body: ReadableStream<Uint8Array>) =>
|
|
|
1527
1531
|
* fetchServer,
|
|
1528
1532
|
* createFromReadableStream,
|
|
1529
1533
|
* async renderHTML(getPayload) {
|
|
1530
|
-
* const payload =
|
|
1534
|
+
* const payload = getPayload();
|
|
1531
1535
|
*
|
|
1532
1536
|
* return await renderHTMLToReadableStream(
|
|
1533
1537
|
* <RSCStaticRouter getPayload={getPayload} />,
|
|
1534
1538
|
* {
|
|
1535
1539
|
* bootstrapScriptContent,
|
|
1536
|
-
* formState: await
|
|
1540
|
+
* formState: await payload.formState,
|
|
1537
1541
|
* }
|
|
1538
1542
|
* );
|
|
1539
1543
|
* },
|
|
@@ -1562,7 +1566,7 @@ declare function routeRSCServerRequest({ request, fetchServer, createFromReadabl
|
|
|
1562
1566
|
request: Request;
|
|
1563
1567
|
fetchServer: (request: Request) => Promise<Response>;
|
|
1564
1568
|
createFromReadableStream: SSRCreateFromReadableStreamFunction;
|
|
1565
|
-
renderHTML: (getPayload: () =>
|
|
1569
|
+
renderHTML: (getPayload: () => DecodedPayload) => ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>;
|
|
1566
1570
|
hydrate?: boolean;
|
|
1567
1571
|
}): Promise<Response>;
|
|
1568
1572
|
/**
|
|
@@ -1576,7 +1580,7 @@ interface RSCStaticRouterProps {
|
|
|
1576
1580
|
* A function that starts decoding of the {@link unstable_RSCPayload}. Usually passed
|
|
1577
1581
|
* through from {@link unstable_routeRSCServerRequest}'s `renderHTML`.
|
|
1578
1582
|
*/
|
|
1579
|
-
getPayload: () =>
|
|
1583
|
+
getPayload: () => DecodedPayload;
|
|
1580
1584
|
}
|
|
1581
1585
|
/**
|
|
1582
1586
|
* Pre-renders an {@link unstable_RSCPayload} to HTML. Usually used in
|
|
@@ -1595,13 +1599,13 @@ interface RSCStaticRouterProps {
|
|
|
1595
1599
|
* fetchServer,
|
|
1596
1600
|
* createFromReadableStream,
|
|
1597
1601
|
* async renderHTML(getPayload) {
|
|
1598
|
-
* const payload =
|
|
1602
|
+
* const payload = getPayload();
|
|
1599
1603
|
*
|
|
1600
1604
|
* return await renderHTMLToReadableStream(
|
|
1601
1605
|
* <RSCStaticRouter getPayload={getPayload} />,
|
|
1602
1606
|
* {
|
|
1603
1607
|
* bootstrapScriptContent,
|
|
1604
|
-
* formState: await
|
|
1608
|
+
* formState: await payload.formState,
|
|
1605
1609
|
* }
|
|
1606
1610
|
* );
|
|
1607
1611
|
* },
|