react-router 0.0.0-experimental-a65d6f5 → 0.0.0-experimental-c19b79d
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/dist/development/{chunk-ZLVXSGFL.js → chunk-2G2U5HGB.js} +161 -164
- package/dist/development/{chunk-CWSJ6RYI.mjs → chunk-AGOH44BE.mjs} +51 -67
- package/dist/development/{chunk-47MIYFLC.mjs → chunk-IMKEG5CI.mjs} +29 -309
- package/dist/development/{chunk-QOFB7XZ5.js → chunk-LUB73E44.js} +70 -347
- package/dist/development/{router-DQIRhYoj.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/development/dom-export.d.mts +4 -59
- package/dist/development/dom-export.d.ts +3 -59
- package/dist/development/dom-export.js +5 -8
- package/dist/development/dom-export.mjs +5 -8
- package/dist/{production/index-react-server-client-lf74v6ET.d.mts → development/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/development/{index-react-server-client-lf74v6ET.d.mts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -3
- 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 +1 -106
- package/dist/development/index-react-server.d.ts +1 -106
- package/dist/development/index-react-server.js +8 -181
- package/dist/development/index-react-server.mjs +8 -181
- package/dist/development/index.d.mts +20 -13
- package/dist/development/index.d.ts +18 -13
- package/dist/development/index.js +147 -161
- package/dist/development/index.mjs +5 -3
- package/dist/development/lib/types/internal.d.mts +3 -3
- package/dist/development/lib/types/internal.d.ts +2 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
- package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
- package/dist/development/{routeModules--SgCTStn.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{production/routeModules-rxNxBmdR.d.ts → development/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/dist/production/{chunk-ZOHTOBOT.js → chunk-2L5AG5Y5.js} +70 -347
- package/dist/production/{chunk-UAAA7FTX.mjs → chunk-AODJW4D3.mjs} +51 -67
- package/dist/production/{chunk-4SPSFXAZ.js → chunk-FGRCWJDI.js} +161 -164
- package/dist/production/{chunk-MMAHTIVZ.mjs → chunk-UOQCOPF6.mjs} +29 -309
- package/dist/production/{router-DQIRhYoj.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/production/dom-export.d.mts +4 -59
- package/dist/production/dom-export.d.ts +3 -59
- package/dist/production/dom-export.js +5 -8
- package/dist/production/dom-export.mjs +5 -8
- package/dist/{development/index-react-server-client-Iw2PMej2.d.ts → production/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/production/{index-react-server-client-Iw2PMej2.d.ts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -3
- 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 +1 -106
- package/dist/production/index-react-server.d.ts +1 -106
- package/dist/production/index-react-server.js +8 -181
- package/dist/production/index-react-server.mjs +8 -181
- package/dist/production/index.d.mts +20 -13
- package/dist/production/index.d.ts +18 -13
- package/dist/production/index.js +147 -161
- package/dist/production/index.mjs +5 -3
- package/dist/production/lib/types/internal.d.mts +3 -3
- package/dist/production/lib/types/internal.d.ts +2 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
- package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
- package/dist/production/{routeModules--SgCTStn.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{development/routeModules-rxNxBmdR.d.ts → production/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/package.json +1 -1
- package/dist/development/instrumentation-BWRz1MRU.d.ts +0 -1138
- package/dist/production/instrumentation-BWRz1MRU.d.ts +0 -1138
|
@@ -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 v0.0.0-experimental-
|
|
9
|
+
* react-router v0.0.0-experimental-c19b79d
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -86,134 +86,6 @@ function parsePath(path) {
|
|
|
86
86
|
return parsedPath;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
// lib/router/instrumentation.ts
|
|
90
|
-
var UninstrumentedSymbol = Symbol("Uninstrumented");
|
|
91
|
-
function getInstrumentedImplementation(impls, handler, getInfo = () => void 0) {
|
|
92
|
-
if (impls.length === 0) {
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
return async (...args) => {
|
|
96
|
-
let value;
|
|
97
|
-
let info = getInfo(...args);
|
|
98
|
-
await recurseRight(
|
|
99
|
-
impls,
|
|
100
|
-
info,
|
|
101
|
-
async () => {
|
|
102
|
-
value = await handler(...args);
|
|
103
|
-
},
|
|
104
|
-
impls.length - 1
|
|
105
|
-
);
|
|
106
|
-
return value;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
async function recurseRight(impls, info, handler, index) {
|
|
110
|
-
let impl = impls[index];
|
|
111
|
-
if (!impl) {
|
|
112
|
-
await handler();
|
|
113
|
-
} else {
|
|
114
|
-
await impl(async () => {
|
|
115
|
-
await recurseRight(impls, info, handler, index - 1);
|
|
116
|
-
}, info);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
function getInstrumentationInfo(args) {
|
|
120
|
-
let { request, context, params, unstable_pattern } = args;
|
|
121
|
-
return {
|
|
122
|
-
// pseudo "Request" with the info they may want to read from
|
|
123
|
-
request: {
|
|
124
|
-
method: request.method,
|
|
125
|
-
url: request.url,
|
|
126
|
-
// Maybe make this a proxy that only supports `get`?
|
|
127
|
-
headers: {
|
|
128
|
-
get: (...args2) => request.headers.get(...args2)
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
params: { ...params },
|
|
132
|
-
unstable_pattern,
|
|
133
|
-
context: {
|
|
134
|
-
get: (...args2) => context.get(...args2)
|
|
135
|
-
}
|
|
136
|
-
};
|
|
137
|
-
}
|
|
138
|
-
function getInstrumentationsByType(instrumentations, key) {
|
|
139
|
-
let value = [];
|
|
140
|
-
for (let i in instrumentations) {
|
|
141
|
-
let instrumentation = instrumentations[i];
|
|
142
|
-
if (key in instrumentation && instrumentation[key] != null) {
|
|
143
|
-
value.push(instrumentation[key]);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return value;
|
|
147
|
-
}
|
|
148
|
-
function getInstrumentationUpdates(fns, route) {
|
|
149
|
-
let instrumentations = [];
|
|
150
|
-
fns.forEach(
|
|
151
|
-
(fn) => fn({
|
|
152
|
-
id: route.id,
|
|
153
|
-
index: route.index,
|
|
154
|
-
path: route.path,
|
|
155
|
-
instrument(i) {
|
|
156
|
-
instrumentations.push(i);
|
|
157
|
-
}
|
|
158
|
-
})
|
|
159
|
-
);
|
|
160
|
-
let updates = {};
|
|
161
|
-
if (instrumentations.length > 0) {
|
|
162
|
-
["lazy", "loader", "action"].forEach((key) => {
|
|
163
|
-
let func = route[key];
|
|
164
|
-
if (typeof func === "function") {
|
|
165
|
-
let original = func[UninstrumentedSymbol] ?? func;
|
|
166
|
-
let instrumented = getInstrumentedImplementation(
|
|
167
|
-
getInstrumentationsByType(instrumentations, key),
|
|
168
|
-
original,
|
|
169
|
-
key === "lazy" ? () => void 0 : (...args) => getInstrumentationInfo(
|
|
170
|
-
args[0]
|
|
171
|
-
)
|
|
172
|
-
);
|
|
173
|
-
if (instrumented) {
|
|
174
|
-
instrumented[UninstrumentedSymbol] = original;
|
|
175
|
-
updates[key] = instrumented;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
if (route.middleware && route.middleware.length > 0) {
|
|
180
|
-
updates.middleware = route.middleware.map((middleware) => {
|
|
181
|
-
let original = middleware[UninstrumentedSymbol] ?? middleware;
|
|
182
|
-
let instrumented = getInstrumentedImplementation(
|
|
183
|
-
getInstrumentationsByType(instrumentations, "middleware"),
|
|
184
|
-
original,
|
|
185
|
-
(...args) => getInstrumentationInfo(
|
|
186
|
-
args[0]
|
|
187
|
-
)
|
|
188
|
-
);
|
|
189
|
-
if (instrumented) {
|
|
190
|
-
instrumented[UninstrumentedSymbol] = original;
|
|
191
|
-
return instrumented;
|
|
192
|
-
}
|
|
193
|
-
return middleware;
|
|
194
|
-
});
|
|
195
|
-
}
|
|
196
|
-
if (typeof route.lazy === "object") {
|
|
197
|
-
let lazyObject = route.lazy;
|
|
198
|
-
["middleware", "loader", "action"].forEach((key) => {
|
|
199
|
-
let func = lazyObject[key];
|
|
200
|
-
if (typeof func === "function") {
|
|
201
|
-
let instrumented = getInstrumentedImplementation(
|
|
202
|
-
getInstrumentationsByType(instrumentations, `lazy.${key}`),
|
|
203
|
-
func
|
|
204
|
-
);
|
|
205
|
-
if (instrumented) {
|
|
206
|
-
updates.lazy = Object.assign(updates.lazy || {}, {
|
|
207
|
-
[key]: instrumented
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return updates;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
89
|
// lib/router/utils.ts
|
|
218
90
|
function createContext(defaultValue) {
|
|
219
91
|
return { defaultValue };
|
|
@@ -307,23 +179,19 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
307
179
|
if (isIndexRoute(route)) {
|
|
308
180
|
let indexRoute = {
|
|
309
181
|
...route,
|
|
182
|
+
...mapRouteProperties(route),
|
|
310
183
|
id
|
|
311
184
|
};
|
|
312
|
-
manifest[id] =
|
|
313
|
-
indexRoute,
|
|
314
|
-
mapRouteProperties(indexRoute)
|
|
315
|
-
);
|
|
185
|
+
manifest[id] = indexRoute;
|
|
316
186
|
return indexRoute;
|
|
317
187
|
} else {
|
|
318
188
|
let pathOrLayoutRoute = {
|
|
319
189
|
...route,
|
|
190
|
+
...mapRouteProperties(route),
|
|
320
191
|
id,
|
|
321
192
|
children: void 0
|
|
322
193
|
};
|
|
323
|
-
manifest[id] =
|
|
324
|
-
pathOrLayoutRoute,
|
|
325
|
-
mapRouteProperties(pathOrLayoutRoute)
|
|
326
|
-
);
|
|
194
|
+
manifest[id] = pathOrLayoutRoute;
|
|
327
195
|
if (route.children) {
|
|
328
196
|
pathOrLayoutRoute.children = convertRoutesToDataRoutes(
|
|
329
197
|
route.children,
|
|
@@ -337,17 +205,6 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
337
205
|
}
|
|
338
206
|
});
|
|
339
207
|
}
|
|
340
|
-
function mergeRouteUpdates(route, updates) {
|
|
341
|
-
return Object.assign(route, {
|
|
342
|
-
...updates,
|
|
343
|
-
...typeof updates.lazy === "object" && updates.lazy != null ? {
|
|
344
|
-
lazy: {
|
|
345
|
-
...route.lazy,
|
|
346
|
-
...updates.lazy
|
|
347
|
-
}
|
|
348
|
-
} : {}
|
|
349
|
-
});
|
|
350
|
-
}
|
|
351
208
|
function matchRoutes(routes, locationArg, basename = "/") {
|
|
352
209
|
return matchRoutesImpl(routes, locationArg, basename, false);
|
|
353
210
|
}
|
|
@@ -774,9 +631,6 @@ var ErrorResponseImpl = class {
|
|
|
774
631
|
function isRouteErrorResponse(error) {
|
|
775
632
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
776
633
|
}
|
|
777
|
-
function getRoutePattern(paths) {
|
|
778
|
-
return paths.filter(Boolean).join("/").replace(/\/\/*/g, "/");
|
|
779
|
-
}
|
|
780
634
|
|
|
781
635
|
// lib/router/router.ts
|
|
782
636
|
var validMutationMethodsArr = [
|
|
@@ -807,20 +661,7 @@ function createStaticHandler(routes, opts) {
|
|
|
807
661
|
);
|
|
808
662
|
let manifest = {};
|
|
809
663
|
let basename = (opts ? opts.basename : null) || "/";
|
|
810
|
-
let
|
|
811
|
-
let mapRouteProperties = _mapRouteProperties;
|
|
812
|
-
if (opts?.unstable_instrumentations) {
|
|
813
|
-
let instrumentations = opts.unstable_instrumentations;
|
|
814
|
-
mapRouteProperties = (route) => {
|
|
815
|
-
return {
|
|
816
|
-
..._mapRouteProperties(route),
|
|
817
|
-
...getInstrumentationUpdates(
|
|
818
|
-
instrumentations.map((i) => i.route).filter(Boolean),
|
|
819
|
-
route
|
|
820
|
-
)
|
|
821
|
-
};
|
|
822
|
-
};
|
|
823
|
-
}
|
|
664
|
+
let mapRouteProperties = opts?.mapRouteProperties || defaultMapRouteProperties;
|
|
824
665
|
let dataRoutes = convertRoutesToDataRoutes(
|
|
825
666
|
routes,
|
|
826
667
|
mapRouteProperties,
|
|
@@ -890,7 +731,6 @@ function createStaticHandler(routes, opts) {
|
|
|
890
731
|
let response = await runServerMiddlewarePipeline(
|
|
891
732
|
{
|
|
892
733
|
request,
|
|
893
|
-
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
894
734
|
matches,
|
|
895
735
|
params: matches[0].params,
|
|
896
736
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1036,7 +876,6 @@ function createStaticHandler(routes, opts) {
|
|
|
1036
876
|
let response = await runServerMiddlewarePipeline(
|
|
1037
877
|
{
|
|
1038
878
|
request,
|
|
1039
|
-
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1040
879
|
matches,
|
|
1041
880
|
params: matches[0].params,
|
|
1042
881
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1318,7 +1157,6 @@ function createStaticHandler(routes, opts) {
|
|
|
1318
1157
|
mapRouteProperties,
|
|
1319
1158
|
manifest,
|
|
1320
1159
|
request,
|
|
1321
|
-
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1322
1160
|
match,
|
|
1323
1161
|
[],
|
|
1324
1162
|
requestContext,
|
|
@@ -1329,7 +1167,6 @@ function createStaticHandler(routes, opts) {
|
|
|
1329
1167
|
mapRouteProperties,
|
|
1330
1168
|
manifest,
|
|
1331
1169
|
request,
|
|
1332
|
-
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1333
1170
|
match,
|
|
1334
1171
|
[],
|
|
1335
1172
|
requestContext,
|
|
@@ -1673,12 +1510,7 @@ async function runMiddlewarePipeline(args, handler, processResult, isResult, err
|
|
|
1673
1510
|
(m) => m.route.middleware ? m.route.middleware.map((fn) => [m.route.id, fn]) : []
|
|
1674
1511
|
);
|
|
1675
1512
|
let result = await callRouteMiddleware(
|
|
1676
|
-
{
|
|
1677
|
-
request,
|
|
1678
|
-
params,
|
|
1679
|
-
context,
|
|
1680
|
-
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path))
|
|
1681
|
-
},
|
|
1513
|
+
{ request, params, context },
|
|
1682
1514
|
tuples,
|
|
1683
1515
|
handler,
|
|
1684
1516
|
processResult,
|
|
@@ -1756,7 +1588,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
1756
1588
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
1757
1589
|
};
|
|
1758
1590
|
}
|
|
1759
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request,
|
|
1591
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1760
1592
|
let isUsingNewApi = false;
|
|
1761
1593
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
1762
1594
|
mapRouteProperties,
|
|
@@ -1790,7 +1622,6 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pa
|
|
|
1790
1622
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
1791
1623
|
return callLoaderOrAction({
|
|
1792
1624
|
request,
|
|
1793
|
-
unstable_pattern,
|
|
1794
1625
|
match,
|
|
1795
1626
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
1796
1627
|
lazyRoutePromise: _lazyPromises?.route,
|
|
@@ -1824,7 +1655,6 @@ function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, m
|
|
|
1824
1655
|
mapRouteProperties,
|
|
1825
1656
|
manifest,
|
|
1826
1657
|
request,
|
|
1827
|
-
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1828
1658
|
match,
|
|
1829
1659
|
lazyRoutePropertiesToSkip,
|
|
1830
1660
|
scopedContext,
|
|
@@ -1839,7 +1669,6 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1839
1669
|
}
|
|
1840
1670
|
let dataStrategyArgs = {
|
|
1841
1671
|
request,
|
|
1842
|
-
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1843
1672
|
params: matches[0].params,
|
|
1844
1673
|
context: scopedContext,
|
|
1845
1674
|
matches
|
|
@@ -1867,7 +1696,6 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1867
1696
|
}
|
|
1868
1697
|
async function callLoaderOrAction({
|
|
1869
1698
|
request,
|
|
1870
|
-
unstable_pattern,
|
|
1871
1699
|
match,
|
|
1872
1700
|
lazyHandlerPromise,
|
|
1873
1701
|
lazyRoutePromise,
|
|
@@ -1894,7 +1722,6 @@ async function callLoaderOrAction({
|
|
|
1894
1722
|
return handler(
|
|
1895
1723
|
{
|
|
1896
1724
|
request,
|
|
1897
|
-
unstable_pattern,
|
|
1898
1725
|
params: match.params,
|
|
1899
1726
|
context: scopedContext
|
|
1900
1727
|
},
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionFunctionArgs,
|
|
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,
|
|
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 './
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
5
|
+
import { c as RouteModules, d as SerializeFrom, G as GetLoaderData, b as GetActionData, 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 RouteModules$1, P as Pages } from './register-BrVEYTED.mjs';
|
|
8
|
+
export { b as Register } from './register-BrVEYTED.mjs';
|
|
9
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-2EDmGlsZ.mjs';
|
|
10
|
+
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
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
|
-
import { P as Pages } from './register-DiOIlEq5.mjs';
|
|
12
|
-
export { a as Register } from './register-DiOIlEq5.mjs';
|
|
13
13
|
export { g as unstable_getRSCStream } from './browser-z32v5KVN.mjs';
|
|
14
14
|
|
|
15
15
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
@@ -28,10 +28,6 @@ declare enum ServerMode {
|
|
|
28
28
|
Test = "test"
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
32
|
-
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
33
|
-
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
34
|
-
|
|
35
31
|
/**
|
|
36
32
|
* Resolves a URL against the current {@link Location}.
|
|
37
33
|
*
|
|
@@ -865,6 +861,13 @@ declare function useAsyncError(): unknown;
|
|
|
865
861
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
866
862
|
*/
|
|
867
863
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
864
|
+
type UseRouteArgs = [] | [routeId: keyof RouteModules$1];
|
|
865
|
+
type UseRouteResult<Args extends UseRouteArgs> = Args extends [] ? UseRoute<unknown> : Args extends ["root"] ? UseRoute<"root"> : Args extends [infer RouteId extends keyof RouteModules$1] ? UseRoute<RouteId> | undefined : never;
|
|
866
|
+
type UseRoute<RouteId extends keyof RouteModules$1 | unknown> = {
|
|
867
|
+
loaderData: RouteId extends keyof RouteModules$1 ? GetLoaderData<RouteModules$1[RouteId]> | undefined : unknown;
|
|
868
|
+
actionData: RouteId extends keyof RouteModules$1 ? GetActionData<RouteModules$1[RouteId]> | undefined : unknown;
|
|
869
|
+
};
|
|
870
|
+
declare function useRoute<Args extends UseRouteArgs>(...args: Args): UseRouteResult<Args>;
|
|
868
871
|
|
|
869
872
|
/**
|
|
870
873
|
* @category Types
|
|
@@ -1011,6 +1014,10 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1011
1014
|
*/
|
|
1012
1015
|
declare const isCookie: IsCookieFunction;
|
|
1013
1016
|
|
|
1017
|
+
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1018
|
+
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1019
|
+
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1020
|
+
|
|
1014
1021
|
/**
|
|
1015
1022
|
* An object of name/value pairs to be used in the session.
|
|
1016
1023
|
*/
|
|
@@ -1678,4 +1685,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1678
1685
|
|
|
1679
1686
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1680
1687
|
|
|
1681
|
-
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|
|
1688
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useRoute as unstable_useRoute, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { c as Router, d as RouteModules, A as AppLoadContext, e as NavigateOptions, B as BlockerFunction, f as Blocker, g as SerializeFrom, h as RelativeRoutingType, i as Navigation, j as RouteObject, H as HydrationState, I as IndexRouteObject, k as RouteComponentType, l as HydrateFallbackType, E as ErrorBoundaryType, m as MetaFunction, n as LinksFunction, o as NonIndexRouteObject, p as Equal, q as ClientActionFunction, r as ClientLoaderFunction, s as HeadersFunction, t as RouterInit, u as RouterState, v as PatchRoutesOnNavigationFunction, D as DataRouteObject } from './routeModules-rxNxBmdR.js';
|
|
4
|
-
export { ae as Await, a1 as AwaitProps, aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, Y as DataRouteMatch, J as Fetcher, x as GetScrollPositionFunction, y as GetScrollRestorationKeyFunction, as as HeadersArgs, av as HtmlLinkDescriptor, X as IDLE_BLOCKER, W as IDLE_FETCHER, V as IDLE_NAVIGATION, a2 as IndexRouteProps, a4 as LayoutRouteProps, L as LinkDescriptor, af as MemoryRouter, a5 as MemoryRouterOpts, a6 as MemoryRouterProps, at as MetaArgs, M as MetaDescriptor, ag as Navigate, a7 as NavigateProps, K as NavigationStates, Z as Navigator, ah as Outlet, a8 as OutletProps, au as PageLinkDescriptor, _ as PatchRoutesOnNavigationFunctionArgs, a9 as PathRouteProps, U as RevalidationState, ai as Route, $ as RouteMatch, aa as RouteProps, aj as Router, T as RouterFetchOptions, Q as RouterNavigateOptions, ab as RouterProps, ak as RouterProvider, ac as RouterProviderProps, O as RouterSubscriber, al as Routes, ad as RoutesProps, w as StaticHandler, z as StaticHandlerContext, a0 as UNSAFE_AwaitContextProvider, ay as UNSAFE_DataRouterContext, az as UNSAFE_DataRouterStateContext, aA as UNSAFE_FetchersContext, aB as UNSAFE_LocationContext, aC as UNSAFE_NavigationContext, aD as UNSAFE_RouteContext, aE as UNSAFE_ViewTransitionContext, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, ax as UNSAFE_createRouter, aF as UNSAFE_hydrationRouteProperties, aG as UNSAFE_mapRouteProperties, aI as UNSAFE_withComponentProps, aM as UNSAFE_withErrorBoundaryProps, aK as UNSAFE_withHydrateFallbackProps, am as createMemoryRouter, an as createRoutesFromChildren, ao as createRoutesFromElements, ap as renderMatches, a3 as unstable_ClientOnErrorFunction, aw as unstable_SerializesTo } from './routeModules-rxNxBmdR.js';
|
|
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, G as GetLoaderData, d as GetActionData, 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';
|
|
5
3
|
import * as React from 'react';
|
|
6
4
|
import React__default, { ReactElement } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
export {
|
|
5
|
+
import { a as RouteModules$1, P as Pages } from './register-D8NQoPsO.js';
|
|
6
|
+
export { b as Register } from './register-D8NQoPsO.js';
|
|
7
|
+
import { A as AssetsManifest, E as EntryContext, F as FutureConfig, S as ServerBuild } from './index-react-server-client-DKvU8YRr.js';
|
|
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-DKvU8YRr.js';
|
|
9
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
10
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
|
-
import { P as Pages } from './register-DiOIlEq5.js';
|
|
12
|
-
export { a as Register } from './register-DiOIlEq5.js';
|
|
13
11
|
|
|
14
12
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
15
13
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
|
|
@@ -27,10 +25,6 @@ declare enum ServerMode {
|
|
|
27
25
|
Test = "test"
|
|
28
26
|
}
|
|
29
27
|
|
|
30
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
31
|
-
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
32
|
-
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
33
|
-
|
|
34
28
|
/**
|
|
35
29
|
* Resolves a URL against the current {@link Location}.
|
|
36
30
|
*
|
|
@@ -864,6 +858,13 @@ declare function useAsyncError(): unknown;
|
|
|
864
858
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
865
859
|
*/
|
|
866
860
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
861
|
+
type UseRouteArgs = [] | [routeId: keyof RouteModules$1];
|
|
862
|
+
type UseRouteResult<Args extends UseRouteArgs> = Args extends [] ? UseRoute<unknown> : Args extends ["root"] ? UseRoute<"root"> : Args extends [infer RouteId extends keyof RouteModules$1] ? UseRoute<RouteId> | undefined : never;
|
|
863
|
+
type UseRoute<RouteId extends keyof RouteModules$1 | unknown> = {
|
|
864
|
+
loaderData: RouteId extends keyof RouteModules$1 ? GetLoaderData<RouteModules$1[RouteId]> | undefined : unknown;
|
|
865
|
+
actionData: RouteId extends keyof RouteModules$1 ? GetActionData<RouteModules$1[RouteId]> | undefined : unknown;
|
|
866
|
+
};
|
|
867
|
+
declare function useRoute<Args extends UseRouteArgs>(...args: Args): UseRouteResult<Args>;
|
|
867
868
|
|
|
868
869
|
/**
|
|
869
870
|
* @category Types
|
|
@@ -1010,6 +1011,10 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1010
1011
|
*/
|
|
1011
1012
|
declare const isCookie: IsCookieFunction;
|
|
1012
1013
|
|
|
1014
|
+
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1015
|
+
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1016
|
+
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1017
|
+
|
|
1013
1018
|
/**
|
|
1014
1019
|
* An object of name/value pairs to be used in the session.
|
|
1015
1020
|
*/
|
|
@@ -1722,4 +1727,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1722
1727
|
|
|
1723
1728
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1724
1729
|
|
|
1725
|
-
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|
|
1730
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientActionFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HeadersFunction, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, Navigation, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterInit, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, ShouldRevalidateFunction, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, type BrowserCreateFromReadableStreamFunction as unstable_BrowserCreateFromReadableStreamFunction, type DecodeActionFunction as unstable_DecodeActionFunction, type DecodeFormStateFunction as unstable_DecodeFormStateFunction, type DecodeReplyFunction as unstable_DecodeReplyFunction, type EncodeReplyFunction as unstable_EncodeReplyFunction, type LoadServerActionFunction as unstable_LoadServerActionFunction, RSCHydratedRouter as unstable_RSCHydratedRouter, type RSCHydratedRouterProps as unstable_RSCHydratedRouterProps, type RSCManifestPayload as unstable_RSCManifestPayload, type RSCMatch as unstable_RSCMatch, type RSCPayload as unstable_RSCPayload, type RSCRenderPayload as unstable_RSCRenderPayload, type RSCRouteConfig as unstable_RSCRouteConfig, type RSCRouteConfigEntry as unstable_RSCRouteConfigEntry, type RSCRouteManifest as unstable_RSCRouteManifest, type RSCRouteMatch as unstable_RSCRouteMatch, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, createCallServer as unstable_createCallServer, getRSCStream as unstable_getRSCStream, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useRoute as unstable_useRoute, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|