react-router 0.0.0-experimental-e613d4238 → 0.0.0-experimental-4e44d47
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-YJ6T7YSE.js → chunk-7B7CUJYE.js} +345 -66
- package/dist/development/{chunk-XXC4LMW2.js → chunk-MTLWRICG.js} +164 -161
- package/dist/development/{chunk-2YVPYFDJ.mjs → chunk-PSQFTIPQ.mjs} +67 -51
- package/dist/development/{chunk-5P3HEZQU.mjs → chunk-XVVWTPHF.mjs} +307 -25
- package/dist/development/dom-export.d.mts +59 -4
- package/dist/development/dom-export.d.ts +59 -3
- package/dist/development/dom-export.js +8 -5
- package/dist/development/dom-export.mjs +8 -5
- package/dist/development/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-83aVZHgI.d.ts} +198 -134
- package/dist/{production/index-react-server-client-2EDmGlsZ.d.mts → development/index-react-server-client-BDG19ZQl.d.mts} +140 -77
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -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 +106 -1
- package/dist/development/index-react-server.d.ts +106 -1
- package/dist/development/index-react-server.js +181 -8
- package/dist/development/index-react-server.mjs +181 -8
- package/dist/development/index.d.mts +13 -18
- package/dist/development/index.d.ts +13 -16
- package/dist/development/index.js +161 -147
- package/dist/development/index.mjs +3 -5
- package/dist/development/instrumentation-XYmrzhe3.d.ts +1138 -0
- package/dist/development/lib/types/internal.d.mts +3 -3
- package/dist/development/lib/types/internal.d.ts +3 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-BrVEYTED.d.mts → register-DiOIlEq5.d.mts} +1 -7
- package/dist/{production/register-BrVEYTED.d.mts → development/register-DiOIlEq5.d.ts} +1 -7
- package/dist/development/{routeModules-BmVo7q9e.d.ts → routeModules-Bu1JamQV.d.ts} +73 -1046
- package/dist/development/{route-data-CDwqkzPE.d.mts → routeModules-CtCOLGtG.d.mts} +157 -147
- package/dist/development/{context-BqL5Eckq.d.mts → router-2BoB34m1.d.mts} +1403 -1250
- package/dist/production/{chunk-VNGQS422.mjs → chunk-GSSVRQ6M.mjs} +307 -25
- package/dist/production/{chunk-5MHETEIL.mjs → chunk-IZVJSKMU.mjs} +67 -51
- package/dist/production/{chunk-QBUHFRYZ.js → chunk-OXRQQZPR.js} +345 -66
- package/dist/production/{chunk-E4G6PZCJ.js → chunk-UNIYMJFU.js} +164 -161
- package/dist/production/dom-export.d.mts +59 -4
- package/dist/production/dom-export.d.ts +59 -3
- package/dist/production/dom-export.js +8 -5
- package/dist/production/dom-export.mjs +8 -5
- package/dist/{development/index-react-server-client-2EDmGlsZ.d.mts → production/index-react-server-client-83aVZHgI.d.ts} +140 -77
- package/dist/production/{index-react-server-client-DKvU8YRr.d.ts → index-react-server-client-BDG19ZQl.d.mts} +198 -134
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -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 +106 -1
- package/dist/production/index-react-server.d.ts +106 -1
- package/dist/production/index-react-server.js +181 -8
- package/dist/production/index-react-server.mjs +181 -8
- package/dist/production/index.d.mts +13 -18
- package/dist/production/index.d.ts +13 -16
- package/dist/production/index.js +161 -147
- package/dist/production/index.mjs +3 -5
- package/dist/production/instrumentation-XYmrzhe3.d.ts +1138 -0
- package/dist/production/lib/types/internal.d.mts +3 -3
- package/dist/production/lib/types/internal.d.ts +3 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-D8NQoPsO.d.ts → production/register-DiOIlEq5.d.mts} +1 -7
- package/dist/production/{register-D8NQoPsO.d.ts → register-DiOIlEq5.d.ts} +1 -7
- package/dist/production/{routeModules-BmVo7q9e.d.ts → routeModules-Bu1JamQV.d.ts} +73 -1046
- package/dist/production/{route-data-CDwqkzPE.d.mts → routeModules-CtCOLGtG.d.mts} +157 -147
- package/dist/production/{context-BqL5Eckq.d.mts → router-2BoB34m1.d.mts} +1403 -1250
- package/package.json +1 -1
|
@@ -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-4e44d47
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -86,6 +86,134 @@ 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, 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
|
+
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
|
+
|
|
89
217
|
// lib/router/utils.ts
|
|
90
218
|
function createContext(defaultValue) {
|
|
91
219
|
return { defaultValue };
|
|
@@ -179,19 +307,23 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
179
307
|
if (isIndexRoute(route)) {
|
|
180
308
|
let indexRoute = {
|
|
181
309
|
...route,
|
|
182
|
-
...mapRouteProperties(route),
|
|
183
310
|
id
|
|
184
311
|
};
|
|
185
|
-
manifest[id] =
|
|
312
|
+
manifest[id] = mergeRouteUpdates(
|
|
313
|
+
indexRoute,
|
|
314
|
+
mapRouteProperties(indexRoute)
|
|
315
|
+
);
|
|
186
316
|
return indexRoute;
|
|
187
317
|
} else {
|
|
188
318
|
let pathOrLayoutRoute = {
|
|
189
319
|
...route,
|
|
190
|
-
...mapRouteProperties(route),
|
|
191
320
|
id,
|
|
192
321
|
children: void 0
|
|
193
322
|
};
|
|
194
|
-
manifest[id] =
|
|
323
|
+
manifest[id] = mergeRouteUpdates(
|
|
324
|
+
pathOrLayoutRoute,
|
|
325
|
+
mapRouteProperties(pathOrLayoutRoute)
|
|
326
|
+
);
|
|
195
327
|
if (route.children) {
|
|
196
328
|
pathOrLayoutRoute.children = convertRoutesToDataRoutes(
|
|
197
329
|
route.children,
|
|
@@ -205,6 +337,17 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
205
337
|
}
|
|
206
338
|
});
|
|
207
339
|
}
|
|
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
|
+
}
|
|
208
351
|
function matchRoutes(routes, locationArg, basename = "/") {
|
|
209
352
|
return matchRoutesImpl(routes, locationArg, basename, false);
|
|
210
353
|
}
|
|
@@ -631,6 +774,9 @@ var ErrorResponseImpl = class {
|
|
|
631
774
|
function isRouteErrorResponse(error) {
|
|
632
775
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
633
776
|
}
|
|
777
|
+
function getRoutePattern(paths) {
|
|
778
|
+
return paths.filter(Boolean).join("/").replace(/\/\/*/g, "/");
|
|
779
|
+
}
|
|
634
780
|
|
|
635
781
|
// lib/router/router.ts
|
|
636
782
|
var validMutationMethodsArr = [
|
|
@@ -661,7 +807,20 @@ function createStaticHandler(routes, opts) {
|
|
|
661
807
|
);
|
|
662
808
|
let manifest = {};
|
|
663
809
|
let basename = (opts ? opts.basename : null) || "/";
|
|
664
|
-
let
|
|
810
|
+
let _mapRouteProperties = opts?.mapRouteProperties || defaultMapRouteProperties;
|
|
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
|
+
}
|
|
665
824
|
let dataRoutes = convertRoutesToDataRoutes(
|
|
666
825
|
routes,
|
|
667
826
|
mapRouteProperties,
|
|
@@ -731,6 +890,7 @@ function createStaticHandler(routes, opts) {
|
|
|
731
890
|
let response = await runServerMiddlewarePipeline(
|
|
732
891
|
{
|
|
733
892
|
request,
|
|
893
|
+
pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
734
894
|
matches,
|
|
735
895
|
params: matches[0].params,
|
|
736
896
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -876,6 +1036,7 @@ function createStaticHandler(routes, opts) {
|
|
|
876
1036
|
let response = await runServerMiddlewarePipeline(
|
|
877
1037
|
{
|
|
878
1038
|
request,
|
|
1039
|
+
pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
879
1040
|
matches,
|
|
880
1041
|
params: matches[0].params,
|
|
881
1042
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1157,6 +1318,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1157
1318
|
mapRouteProperties,
|
|
1158
1319
|
manifest,
|
|
1159
1320
|
request,
|
|
1321
|
+
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1160
1322
|
match,
|
|
1161
1323
|
[],
|
|
1162
1324
|
requestContext,
|
|
@@ -1167,6 +1329,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1167
1329
|
mapRouteProperties,
|
|
1168
1330
|
manifest,
|
|
1169
1331
|
request,
|
|
1332
|
+
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1170
1333
|
match,
|
|
1171
1334
|
[],
|
|
1172
1335
|
requestContext,
|
|
@@ -1510,7 +1673,12 @@ async function runMiddlewarePipeline(args, handler, processResult, isResult, err
|
|
|
1510
1673
|
(m) => m.route.middleware ? m.route.middleware.map((fn) => [m.route.id, fn]) : []
|
|
1511
1674
|
);
|
|
1512
1675
|
let result = await callRouteMiddleware(
|
|
1513
|
-
{
|
|
1676
|
+
{
|
|
1677
|
+
request,
|
|
1678
|
+
params,
|
|
1679
|
+
context,
|
|
1680
|
+
pattern: getRoutePattern(matches.map((m) => m.route.path))
|
|
1681
|
+
},
|
|
1514
1682
|
tuples,
|
|
1515
1683
|
handler,
|
|
1516
1684
|
processResult,
|
|
@@ -1588,7 +1756,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
1588
1756
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
1589
1757
|
};
|
|
1590
1758
|
}
|
|
1591
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1759
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1592
1760
|
let isUsingNewApi = false;
|
|
1593
1761
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
1594
1762
|
mapRouteProperties,
|
|
@@ -1622,6 +1790,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazy
|
|
|
1622
1790
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
1623
1791
|
return callLoaderOrAction({
|
|
1624
1792
|
request,
|
|
1793
|
+
pattern,
|
|
1625
1794
|
match,
|
|
1626
1795
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
1627
1796
|
lazyRoutePromise: _lazyPromises?.route,
|
|
@@ -1655,6 +1824,7 @@ function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, m
|
|
|
1655
1824
|
mapRouteProperties,
|
|
1656
1825
|
manifest,
|
|
1657
1826
|
request,
|
|
1827
|
+
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1658
1828
|
match,
|
|
1659
1829
|
lazyRoutePropertiesToSkip,
|
|
1660
1830
|
scopedContext,
|
|
@@ -1669,6 +1839,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1669
1839
|
}
|
|
1670
1840
|
let dataStrategyArgs = {
|
|
1671
1841
|
request,
|
|
1842
|
+
pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1672
1843
|
params: matches[0].params,
|
|
1673
1844
|
context: scopedContext,
|
|
1674
1845
|
matches
|
|
@@ -1696,6 +1867,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1696
1867
|
}
|
|
1697
1868
|
async function callLoaderOrAction({
|
|
1698
1869
|
request,
|
|
1870
|
+
pattern,
|
|
1699
1871
|
match,
|
|
1700
1872
|
lazyHandlerPromise,
|
|
1701
1873
|
lazyRoutePromise,
|
|
@@ -1722,6 +1894,7 @@ async function callLoaderOrAction({
|
|
|
1722
1894
|
return handler(
|
|
1723
1895
|
{
|
|
1724
1896
|
request,
|
|
1897
|
+
pattern,
|
|
1725
1898
|
params: match.params,
|
|
1726
1899
|
context: scopedContext
|
|
1727
1900
|
},
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { A as ActionFunctionArgs,
|
|
1
|
+
import { k as Router, l as DataStrategyFunction, e as MiddlewareEnabled, c as RouterContextProvider, T as To, N as NavigateOptions, B as BlockerFunction, m as Blocker, n as RelativeRoutingType, L as Location, o as ParamParseKey, p as Path, q as PathPattern, r as PathMatch, U as UIMatch, s as Navigation, t as Action, P as Params, v as RouteObject, I as InitialEntry, H as HydrationState, w as IndexRouteObject, x as RouteComponentType, y as HydrateFallbackType, E as ErrorBoundaryType, h as LoaderFunction, g as ActionFunction, z as NonIndexRouteObject, S as ShouldRevalidateFunction, a as RouterInit, C as RouterState, F as PatchRoutesOnNavigationFunction, G as DataRouteObject } from './router-2BoB34m1.mjs';
|
|
2
|
+
export { A as ActionFunctionArgs, aE as Await, at as AwaitProps, i as DataRouteMatch, $ as DataStrategyFunctionArgs, a0 as DataStrategyMatch, D as DataStrategyResult, a1 as ErrorResponse, V as Fetcher, a2 as FormEncType, a3 as FormMethod, aQ as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, af as IDLE_BLOCKER, ae as IDLE_FETCHER, ad as IDLE_NAVIGATION, au as IndexRouteProps, av as LayoutRouteProps, a5 as LazyRouteFunction, f as LoaderFunctionArgs, aF as MemoryRouter, aw as MemoryRouterOpts, ax as MemoryRouterProps, j as MiddlewareFunction, aG as Navigate, ay as NavigateProps, W as NavigationStates, ap as Navigator, aH as Outlet, az as OutletProps, aq as PatchRoutesOnNavigationFunctionArgs, a6 as PathParam, aA as PathRouteProps, a7 as RedirectFunction, _ as RevalidationState, aI as Route, ar as RouteMatch, aB as RouteProps, aJ as Router, a8 as RouterContext, Z as RouterFetchOptions, Y as RouterNavigateOptions, aC as RouterProps, aK as RouterProvider, R as RouterProviderProps, X as RouterSubscriber, aL as Routes, aD as RoutesProps, a9 as ShouldRevalidateFunctionArgs, J as StaticHandler, Q as StaticHandlerContext, as as UNSAFE_AwaitContextProvider, aV as UNSAFE_DataRouterContext, aW as UNSAFE_DataRouterStateContext, d as UNSAFE_DataWithResponseInit, aU as UNSAFE_ErrorResponseImpl, aX as UNSAFE_FetchersContext, aY as UNSAFE_LocationContext, aZ as UNSAFE_NavigationContext, a_ as UNSAFE_RouteContext, a$ as UNSAFE_ViewTransitionContext, b2 as UNSAFE_WithComponentProps, b6 as UNSAFE_WithErrorBoundaryProps, b4 as UNSAFE_WithHydrateFallbackProps, aR as UNSAFE_createBrowserHistory, aT as UNSAFE_createRouter, b0 as UNSAFE_hydrationRouteProperties, aS as UNSAFE_invariant, b1 as UNSAFE_mapRouteProperties, b3 as UNSAFE_withComponentProps, b7 as UNSAFE_withErrorBoundaryProps, b5 as UNSAFE_withHydrateFallbackProps, aa as createContext, aM as createMemoryRouter, ab as createPath, aN as createRoutesFromChildren, aO as createRoutesFromElements, ag as data, ah as generatePath, ai as isRouteErrorResponse, aj as matchPath, ak as matchRoutes, ac as parsePath, al as redirect, am as redirectDocument, aP as renderMatches, an as replace, ao as resolvePath, b as unstable_ClientOnErrorFunction } from './router-2BoB34m1.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 { b as
|
|
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';
|
|
5
|
+
import { c as RouteModules, A as AppLoadContext, d as SerializeFrom, e as MetaFunction, f as LinksFunction, E as Equal, g as ClientActionFunction, h as ClientLoaderFunction, H as HeadersFunction } from './routeModules-CtCOLGtG.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 './routeModules-CtCOLGtG.mjs';
|
|
7
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-BDG19ZQl.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-BDG19ZQl.mjs';
|
|
11
9
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
12
10
|
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,6 +28,10 @@ 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
|
+
|
|
31
35
|
/**
|
|
32
36
|
* Resolves a URL against the current {@link Location}.
|
|
33
37
|
*
|
|
@@ -861,11 +865,6 @@ declare function useAsyncError(): unknown;
|
|
|
861
865
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
862
866
|
*/
|
|
863
867
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
864
|
-
type UseRoute<T extends keyof RouteModules$1> = {
|
|
865
|
-
loaderData: GetLoaderData<RouteModules$1[T]>;
|
|
866
|
-
actionData: GetActionData<RouteModules$1[T]>;
|
|
867
|
-
};
|
|
868
|
-
declare function useRoute<T extends keyof RouteModules$1>(routeId: T): UseRoute<T> | undefined;
|
|
869
868
|
|
|
870
869
|
/**
|
|
871
870
|
* @category Types
|
|
@@ -1012,10 +1011,6 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1012
1011
|
*/
|
|
1013
1012
|
declare const isCookie: IsCookieFunction;
|
|
1014
1013
|
|
|
1015
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1016
|
-
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1017
|
-
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1018
|
-
|
|
1019
1014
|
/**
|
|
1020
1015
|
* An object of name/value pairs to be used in the session.
|
|
1021
1016
|
*/
|
|
@@ -1683,4 +1678,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1683
1678
|
|
|
1684
1679
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1685
1680
|
|
|
1686
|
-
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,
|
|
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 };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { f as DataStrategyFunction, t as MiddlewareEnabled, R as RouterContextProvider, T as To, L as Location, C as ParamParseKey, P as Path, E as PathPattern, G as PathMatch, U as UIMatch, c as Action, l as Params, I as InitialEntry, y as LoaderFunction, x as ActionFunction, B as ShouldRevalidateFunction } from './instrumentation-XYmrzhe3.js';
|
|
2
|
+
export { v as ActionFunctionArgs, J as DataStrategyFunctionArgs, K as DataStrategyMatch, D as DataStrategyResult, N as ErrorResponse, F as FormEncType, O as FormMethod, a8 as Future, i as HTMLFormMethod, k as LazyRouteFunction, w as LoaderFunctionArgs, z as MiddlewareFunction, Q as PathParam, V as RedirectFunction, W as RouterContext, X as ShouldRevalidateFunctionArgs, s as UNSAFE_DataWithResponseInit, ab as UNSAFE_ErrorResponseImpl, a9 as UNSAFE_createBrowserHistory, aa as UNSAFE_invariant, Y as createContext, Z as createPath, $ as data, a0 as generatePath, a1 as isRouteErrorResponse, a2 as matchPath, a3 as matchRoutes, _ as parsePath, a4 as redirect, a5 as redirectDocument, a6 as replace, a7 as resolvePath } from './instrumentation-XYmrzhe3.js';
|
|
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-Bu1JamQV.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-Bu1JamQV.js';
|
|
3
5
|
import * as React from 'react';
|
|
4
6
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import {
|
|
6
|
-
export { b as
|
|
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';
|
|
7
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-83aVZHgI.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-83aVZHgI.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';
|
|
11
13
|
|
|
12
14
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
13
15
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined): DataStrategyFunction;
|
|
@@ -25,6 +27,10 @@ declare enum ServerMode {
|
|
|
25
27
|
Test = "test"
|
|
26
28
|
}
|
|
27
29
|
|
|
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
|
+
|
|
28
34
|
/**
|
|
29
35
|
* Resolves a URL against the current {@link Location}.
|
|
30
36
|
*
|
|
@@ -858,11 +864,6 @@ declare function useAsyncError(): unknown;
|
|
|
858
864
|
* @returns A {@link Blocker} object with state and reset functionality
|
|
859
865
|
*/
|
|
860
866
|
declare function useBlocker(shouldBlock: boolean | BlockerFunction): Blocker;
|
|
861
|
-
type UseRoute<T extends keyof RouteModules$1> = {
|
|
862
|
-
loaderData: GetLoaderData<RouteModules$1[T]>;
|
|
863
|
-
actionData: GetActionData<RouteModules$1[T]>;
|
|
864
|
-
};
|
|
865
|
-
declare function useRoute<T extends keyof RouteModules$1>(routeId: T): UseRoute<T> | undefined;
|
|
866
867
|
|
|
867
868
|
/**
|
|
868
869
|
* @category Types
|
|
@@ -1009,10 +1010,6 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1009
1010
|
*/
|
|
1010
1011
|
declare const isCookie: IsCookieFunction;
|
|
1011
1012
|
|
|
1012
|
-
type RequestHandler = (request: Request, loadContext?: MiddlewareEnabled extends true ? RouterContextProvider : AppLoadContext) => Promise<Response>;
|
|
1013
|
-
type CreateRequestHandlerFunction = (build: ServerBuild | (() => ServerBuild | Promise<ServerBuild>), mode?: string) => RequestHandler;
|
|
1014
|
-
declare const createRequestHandler: CreateRequestHandlerFunction;
|
|
1015
|
-
|
|
1016
1013
|
/**
|
|
1017
1014
|
* An object of name/value pairs to be used in the session.
|
|
1018
1015
|
*/
|
|
@@ -1725,4 +1722,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1725
1722
|
|
|
1726
1723
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1727
1724
|
|
|
1728
|
-
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,
|
|
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 };
|