react-router 0.0.0-experimental-c19b79d → 0.0.0-experimental-e0b6ce9
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-AGOH44BE.mjs → chunk-4FI4BC6Y.mjs} +67 -51
- package/dist/development/{chunk-IMKEG5CI.mjs → chunk-F6CT5MEB.mjs} +314 -30
- package/dist/development/{chunk-LUB73E44.js → chunk-INO4IHBF.js} +352 -71
- package/dist/development/{chunk-2G2U5HGB.js → chunk-ITZFCV4J.js} +164 -161
- 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-CYIi6gi0.d.mts} +198 -134
- package/dist/{production/index-react-server-client-DKvU8YRr.d.ts → development/index-react-server-client-ChBGplLn.d.ts} +198 -134
- 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 +90 -1
- package/dist/development/index-react-server.d.ts +90 -1
- package/dist/development/index-react-server.js +188 -9
- package/dist/development/index-react-server.mjs +188 -9
- package/dist/development/index.d.mts +13 -20
- package/dist/development/index.d.ts +13 -18
- package/dist/development/index.js +161 -147
- package/dist/development/index.mjs +3 -5
- package/dist/development/instrumentation-BGrNA7uj.d.ts +1122 -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/{route-data-CDwqkzPE.d.mts → routeModules-Cy4Xsfoi.d.mts} +157 -147
- package/dist/{production/routeModules-BmVo7q9e.d.ts → development/routeModules-DqotkItD.d.ts} +73 -1046
- package/dist/{production/context-BqL5Eckq.d.mts → development/router-DWv6Clt-.d.mts} +1390 -1253
- package/dist/production/{chunk-AODJW4D3.mjs → chunk-52MYED7O.mjs} +67 -51
- package/dist/production/{chunk-FGRCWJDI.js → chunk-DASXXYNZ.js} +164 -161
- package/dist/production/{chunk-2L5AG5Y5.js → chunk-K7VXYOZD.js} +352 -71
- package/dist/production/{chunk-UOQCOPF6.mjs → chunk-LKSLGWXX.mjs} +314 -30
- 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/production/{index-react-server-client-2EDmGlsZ.d.mts → index-react-server-client-CYIi6gi0.d.mts} +140 -77
- package/dist/{development/index-react-server-client-2EDmGlsZ.d.mts → production/index-react-server-client-ChBGplLn.d.ts} +140 -77
- 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 +90 -1
- package/dist/production/index-react-server.d.ts +90 -1
- package/dist/production/index-react-server.js +188 -9
- package/dist/production/index-react-server.mjs +188 -9
- package/dist/production/index.d.mts +13 -20
- package/dist/production/index.d.ts +13 -18
- package/dist/production/index.js +161 -147
- package/dist/production/index.mjs +3 -5
- package/dist/production/instrumentation-BGrNA7uj.d.ts +1122 -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/{route-data-CDwqkzPE.d.mts → routeModules-Cy4Xsfoi.d.mts} +157 -147
- package/dist/{development/routeModules-BmVo7q9e.d.ts → production/routeModules-DqotkItD.d.ts} +73 -1046
- package/dist/{development/context-BqL5Eckq.d.mts → production/router-DWv6Clt-.d.mts} +1390 -1253
- 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-e0b6ce9
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -86,6 +86,139 @@ function parsePath(path) {
|
|
|
86
86
|
return parsedPath;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
// lib/router/instrumentation.ts
|
|
90
|
+
var UninstrumentedSymbol = Symbol("Uninstrumented");
|
|
91
|
+
function getRouteInstrumentationUpdates(fns, route) {
|
|
92
|
+
let aggregated = {
|
|
93
|
+
lazy: [],
|
|
94
|
+
"lazy.loader": [],
|
|
95
|
+
"lazy.action": [],
|
|
96
|
+
"lazy.middleware": [],
|
|
97
|
+
middleware: [],
|
|
98
|
+
loader: [],
|
|
99
|
+
action: []
|
|
100
|
+
};
|
|
101
|
+
fns.forEach(
|
|
102
|
+
(fn) => fn({
|
|
103
|
+
id: route.id,
|
|
104
|
+
index: route.index,
|
|
105
|
+
path: route.path,
|
|
106
|
+
instrument(i) {
|
|
107
|
+
let keys = Object.keys(aggregated);
|
|
108
|
+
for (let key of keys) {
|
|
109
|
+
if (i[key]) {
|
|
110
|
+
aggregated[key].push(i[key]);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
})
|
|
115
|
+
);
|
|
116
|
+
let updates = {};
|
|
117
|
+
if (typeof route.lazy === "function" && aggregated.lazy.length > 0) {
|
|
118
|
+
let instrumented = wrapImpl(aggregated.lazy, route.lazy, () => void 0);
|
|
119
|
+
if (instrumented) {
|
|
120
|
+
updates.lazy = instrumented;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
if (typeof route.lazy === "object") {
|
|
124
|
+
let lazyObject = route.lazy;
|
|
125
|
+
["middleware", "loader", "action"].forEach((key) => {
|
|
126
|
+
let lazyFn = lazyObject[key];
|
|
127
|
+
let instrumentations = aggregated[`lazy.${key}`];
|
|
128
|
+
if (typeof lazyFn === "function" && instrumentations.length > 0) {
|
|
129
|
+
let instrumented = wrapImpl(instrumentations, lazyFn, () => void 0);
|
|
130
|
+
if (instrumented) {
|
|
131
|
+
updates.lazy = Object.assign(updates.lazy || {}, {
|
|
132
|
+
[key]: instrumented
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
["loader", "action"].forEach((key) => {
|
|
139
|
+
let handler = route[key];
|
|
140
|
+
if (typeof handler === "function" && aggregated[key].length > 0) {
|
|
141
|
+
let original = handler[UninstrumentedSymbol] ?? handler;
|
|
142
|
+
let instrumented = wrapImpl(
|
|
143
|
+
aggregated[key],
|
|
144
|
+
original,
|
|
145
|
+
(...args) => getHandlerInfo(args[0])
|
|
146
|
+
);
|
|
147
|
+
if (instrumented) {
|
|
148
|
+
instrumented[UninstrumentedSymbol] = original;
|
|
149
|
+
updates[key] = instrumented;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
});
|
|
153
|
+
if (route.middleware && route.middleware.length > 0 && aggregated.middleware.length > 0) {
|
|
154
|
+
updates.middleware = route.middleware.map((middleware) => {
|
|
155
|
+
let original = middleware[UninstrumentedSymbol] ?? middleware;
|
|
156
|
+
let instrumented = wrapImpl(
|
|
157
|
+
aggregated.middleware,
|
|
158
|
+
original,
|
|
159
|
+
(...args) => getHandlerInfo(args[0])
|
|
160
|
+
);
|
|
161
|
+
if (instrumented) {
|
|
162
|
+
instrumented[UninstrumentedSymbol] = original;
|
|
163
|
+
return instrumented;
|
|
164
|
+
}
|
|
165
|
+
return middleware;
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
return updates;
|
|
169
|
+
}
|
|
170
|
+
function wrapImpl(impls, handler, getInfo) {
|
|
171
|
+
if (impls.length === 0) {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
return async (...args) => {
|
|
175
|
+
let value;
|
|
176
|
+
let info = getInfo(...args);
|
|
177
|
+
await recurseRight(
|
|
178
|
+
impls,
|
|
179
|
+
info,
|
|
180
|
+
async () => {
|
|
181
|
+
value = await handler(...args);
|
|
182
|
+
},
|
|
183
|
+
impls.length - 1
|
|
184
|
+
);
|
|
185
|
+
return value;
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
async function recurseRight(impls, info, handler, index) {
|
|
189
|
+
let impl = impls[index];
|
|
190
|
+
if (!impl) {
|
|
191
|
+
await handler();
|
|
192
|
+
} else {
|
|
193
|
+
await impl(async () => {
|
|
194
|
+
await recurseRight(impls, info, handler, index - 1);
|
|
195
|
+
}, info);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function getHandlerInfo(args) {
|
|
199
|
+
let { request, context, params, unstable_pattern } = args;
|
|
200
|
+
return {
|
|
201
|
+
request: getReadonlyRequest(request),
|
|
202
|
+
params: { ...params },
|
|
203
|
+
unstable_pattern,
|
|
204
|
+
context: getReadonlyContext(context)
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function getReadonlyRequest(request) {
|
|
208
|
+
return {
|
|
209
|
+
method: request.method,
|
|
210
|
+
url: request.url,
|
|
211
|
+
headers: {
|
|
212
|
+
get: (...args) => request.headers.get(...args)
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function getReadonlyContext(context) {
|
|
217
|
+
return {
|
|
218
|
+
get: (ctx) => context.get(ctx)
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
89
222
|
// lib/router/utils.ts
|
|
90
223
|
function createContext(defaultValue) {
|
|
91
224
|
return { defaultValue };
|
|
@@ -179,19 +312,23 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
179
312
|
if (isIndexRoute(route)) {
|
|
180
313
|
let indexRoute = {
|
|
181
314
|
...route,
|
|
182
|
-
...mapRouteProperties(route),
|
|
183
315
|
id
|
|
184
316
|
};
|
|
185
|
-
manifest[id] =
|
|
317
|
+
manifest[id] = mergeRouteUpdates(
|
|
318
|
+
indexRoute,
|
|
319
|
+
mapRouteProperties(indexRoute)
|
|
320
|
+
);
|
|
186
321
|
return indexRoute;
|
|
187
322
|
} else {
|
|
188
323
|
let pathOrLayoutRoute = {
|
|
189
324
|
...route,
|
|
190
|
-
...mapRouteProperties(route),
|
|
191
325
|
id,
|
|
192
326
|
children: void 0
|
|
193
327
|
};
|
|
194
|
-
manifest[id] =
|
|
328
|
+
manifest[id] = mergeRouteUpdates(
|
|
329
|
+
pathOrLayoutRoute,
|
|
330
|
+
mapRouteProperties(pathOrLayoutRoute)
|
|
331
|
+
);
|
|
195
332
|
if (route.children) {
|
|
196
333
|
pathOrLayoutRoute.children = convertRoutesToDataRoutes(
|
|
197
334
|
route.children,
|
|
@@ -205,6 +342,17 @@ function convertRoutesToDataRoutes(routes, mapRouteProperties, parentPath = [],
|
|
|
205
342
|
}
|
|
206
343
|
});
|
|
207
344
|
}
|
|
345
|
+
function mergeRouteUpdates(route, updates) {
|
|
346
|
+
return Object.assign(route, {
|
|
347
|
+
...updates,
|
|
348
|
+
...typeof updates.lazy === "object" && updates.lazy != null ? {
|
|
349
|
+
lazy: {
|
|
350
|
+
...route.lazy,
|
|
351
|
+
...updates.lazy
|
|
352
|
+
}
|
|
353
|
+
} : {}
|
|
354
|
+
});
|
|
355
|
+
}
|
|
208
356
|
function matchRoutes(routes, locationArg, basename = "/") {
|
|
209
357
|
return matchRoutesImpl(routes, locationArg, basename, false);
|
|
210
358
|
}
|
|
@@ -631,6 +779,9 @@ var ErrorResponseImpl = class {
|
|
|
631
779
|
function isRouteErrorResponse(error) {
|
|
632
780
|
return error != null && typeof error.status === "number" && typeof error.statusText === "string" && typeof error.internal === "boolean" && "data" in error;
|
|
633
781
|
}
|
|
782
|
+
function getRoutePattern(paths) {
|
|
783
|
+
return paths.filter(Boolean).join("/").replace(/\/\/*/g, "/");
|
|
784
|
+
}
|
|
634
785
|
|
|
635
786
|
// lib/router/router.ts
|
|
636
787
|
var validMutationMethodsArr = [
|
|
@@ -661,7 +812,20 @@ function createStaticHandler(routes, opts) {
|
|
|
661
812
|
);
|
|
662
813
|
let manifest = {};
|
|
663
814
|
let basename = (opts ? opts.basename : null) || "/";
|
|
664
|
-
let
|
|
815
|
+
let _mapRouteProperties = opts?.mapRouteProperties || defaultMapRouteProperties;
|
|
816
|
+
let mapRouteProperties = _mapRouteProperties;
|
|
817
|
+
if (opts?.unstable_instrumentations) {
|
|
818
|
+
let instrumentations = opts.unstable_instrumentations;
|
|
819
|
+
mapRouteProperties = (route) => {
|
|
820
|
+
return {
|
|
821
|
+
..._mapRouteProperties(route),
|
|
822
|
+
...getRouteInstrumentationUpdates(
|
|
823
|
+
instrumentations.map((i) => i.route).filter(Boolean),
|
|
824
|
+
route
|
|
825
|
+
)
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
}
|
|
665
829
|
let dataRoutes = convertRoutesToDataRoutes(
|
|
666
830
|
routes,
|
|
667
831
|
mapRouteProperties,
|
|
@@ -731,6 +895,7 @@ function createStaticHandler(routes, opts) {
|
|
|
731
895
|
let response = await runServerMiddlewarePipeline(
|
|
732
896
|
{
|
|
733
897
|
request,
|
|
898
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
734
899
|
matches,
|
|
735
900
|
params: matches[0].params,
|
|
736
901
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -876,6 +1041,7 @@ function createStaticHandler(routes, opts) {
|
|
|
876
1041
|
let response = await runServerMiddlewarePipeline(
|
|
877
1042
|
{
|
|
878
1043
|
request,
|
|
1044
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
879
1045
|
matches,
|
|
880
1046
|
params: matches[0].params,
|
|
881
1047
|
// If we're calling middleware then it must be enabled so we can cast
|
|
@@ -1151,12 +1317,14 @@ function createStaticHandler(routes, opts) {
|
|
|
1151
1317
|
// Up to but not including the boundary
|
|
1152
1318
|
matches.findIndex((m) => m.route.id === pendingActionResult[0]) - 1
|
|
1153
1319
|
) : void 0;
|
|
1320
|
+
let pattern = getRoutePattern(matches.map((m) => m.route.path));
|
|
1154
1321
|
dsMatches = matches.map((match, index) => {
|
|
1155
1322
|
if (maxIdx != null && index > maxIdx) {
|
|
1156
1323
|
return getDataStrategyMatch(
|
|
1157
1324
|
mapRouteProperties,
|
|
1158
1325
|
manifest,
|
|
1159
1326
|
request,
|
|
1327
|
+
pattern,
|
|
1160
1328
|
match,
|
|
1161
1329
|
[],
|
|
1162
1330
|
requestContext,
|
|
@@ -1167,6 +1335,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1167
1335
|
mapRouteProperties,
|
|
1168
1336
|
manifest,
|
|
1169
1337
|
request,
|
|
1338
|
+
pattern,
|
|
1170
1339
|
match,
|
|
1171
1340
|
[],
|
|
1172
1341
|
requestContext,
|
|
@@ -1505,12 +1674,17 @@ function runServerMiddlewarePipeline(args, handler, errorHandler) {
|
|
|
1505
1674
|
}
|
|
1506
1675
|
}
|
|
1507
1676
|
async function runMiddlewarePipeline(args, handler, processResult, isResult, errorHandler) {
|
|
1508
|
-
let { matches, request, params, context } = args;
|
|
1677
|
+
let { matches, request, params, context, unstable_pattern } = args;
|
|
1509
1678
|
let tuples = matches.flatMap(
|
|
1510
1679
|
(m) => m.route.middleware ? m.route.middleware.map((fn) => [m.route.id, fn]) : []
|
|
1511
1680
|
);
|
|
1512
1681
|
let result = await callRouteMiddleware(
|
|
1513
|
-
{
|
|
1682
|
+
{
|
|
1683
|
+
request,
|
|
1684
|
+
params,
|
|
1685
|
+
context,
|
|
1686
|
+
unstable_pattern
|
|
1687
|
+
},
|
|
1514
1688
|
tuples,
|
|
1515
1689
|
handler,
|
|
1516
1690
|
processResult,
|
|
@@ -1588,7 +1762,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
1588
1762
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
1589
1763
|
};
|
|
1590
1764
|
}
|
|
1591
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1765
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, unstable_shouldRevalidateArgs = null) {
|
|
1592
1766
|
let isUsingNewApi = false;
|
|
1593
1767
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
1594
1768
|
mapRouteProperties,
|
|
@@ -1622,6 +1796,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, match, lazy
|
|
|
1622
1796
|
if (callHandler && !isMiddlewareOnlyRoute) {
|
|
1623
1797
|
return callLoaderOrAction({
|
|
1624
1798
|
request,
|
|
1799
|
+
unstable_pattern,
|
|
1625
1800
|
match,
|
|
1626
1801
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
1627
1802
|
lazyRoutePromise: _lazyPromises?.route,
|
|
@@ -1655,6 +1830,7 @@ function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, m
|
|
|
1655
1830
|
mapRouteProperties,
|
|
1656
1831
|
manifest,
|
|
1657
1832
|
request,
|
|
1833
|
+
getRoutePattern(matches.map((m) => m.route.path)),
|
|
1658
1834
|
match,
|
|
1659
1835
|
lazyRoutePropertiesToSkip,
|
|
1660
1836
|
scopedContext,
|
|
@@ -1669,6 +1845,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1669
1845
|
}
|
|
1670
1846
|
let dataStrategyArgs = {
|
|
1671
1847
|
request,
|
|
1848
|
+
unstable_pattern: getRoutePattern(matches.map((m) => m.route.path)),
|
|
1672
1849
|
params: matches[0].params,
|
|
1673
1850
|
context: scopedContext,
|
|
1674
1851
|
matches
|
|
@@ -1696,6 +1873,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1696
1873
|
}
|
|
1697
1874
|
async function callLoaderOrAction({
|
|
1698
1875
|
request,
|
|
1876
|
+
unstable_pattern,
|
|
1699
1877
|
match,
|
|
1700
1878
|
lazyHandlerPromise,
|
|
1701
1879
|
lazyRoutePromise,
|
|
@@ -1722,6 +1900,7 @@ async function callLoaderOrAction({
|
|
|
1722
1900
|
return handler(
|
|
1723
1901
|
{
|
|
1724
1902
|
request,
|
|
1903
|
+
unstable_pattern,
|
|
1725
1904
|
params: match.params,
|
|
1726
1905
|
context: scopedContext
|
|
1727
1906
|
},
|
|
@@ -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-DWv6Clt-.mjs';
|
|
2
|
+
export { A as ActionFunctionArgs, aI as Await, ax 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, aU as Future, K as GetScrollPositionFunction, O as GetScrollRestorationKeyFunction, a4 as HTMLFormMethod, aj as IDLE_BLOCKER, ai as IDLE_FETCHER, ah as IDLE_NAVIGATION, ay as IndexRouteProps, az as LayoutRouteProps, a5 as LazyRouteFunction, f as LoaderFunctionArgs, aJ as MemoryRouter, aA as MemoryRouterOpts, aB as MemoryRouterProps, j as MiddlewareFunction, aK as Navigate, aC as NavigateProps, W as NavigationStates, at as Navigator, aL as Outlet, aD as OutletProps, au as PatchRoutesOnNavigationFunctionArgs, a6 as PathParam, aE as PathRouteProps, a7 as RedirectFunction, _ as RevalidationState, aM as Route, av as RouteMatch, aF as RouteProps, aN as Router, a8 as RouterContext, Z as RouterFetchOptions, Y as RouterNavigateOptions, aG as RouterProps, aO as RouterProvider, R as RouterProviderProps, X as RouterSubscriber, aP as Routes, aH as RoutesProps, a9 as ShouldRevalidateFunctionArgs, J as StaticHandler, Q as StaticHandlerContext, aw as UNSAFE_AwaitContextProvider, aZ as UNSAFE_DataRouterContext, a_ as UNSAFE_DataRouterStateContext, d as UNSAFE_DataWithResponseInit, aY as UNSAFE_ErrorResponseImpl, a$ as UNSAFE_FetchersContext, b0 as UNSAFE_LocationContext, b1 as UNSAFE_NavigationContext, b2 as UNSAFE_RouteContext, b3 as UNSAFE_ViewTransitionContext, b6 as UNSAFE_WithComponentProps, ba as UNSAFE_WithErrorBoundaryProps, b8 as UNSAFE_WithHydrateFallbackProps, aV as UNSAFE_createBrowserHistory, aX as UNSAFE_createRouter, b4 as UNSAFE_hydrationRouteProperties, aW as UNSAFE_invariant, b5 as UNSAFE_mapRouteProperties, b7 as UNSAFE_withComponentProps, bb as UNSAFE_withErrorBoundaryProps, b9 as UNSAFE_withHydrateFallbackProps, aa as createContext, aQ as createMemoryRouter, ab as createPath, aR as createRoutesFromChildren, aS as createRoutesFromElements, ak as data, al as generatePath, am as isRouteErrorResponse, an as matchPath, ao as matchRoutes, ac as parsePath, ap as redirect, aq as redirectDocument, aT as renderMatches, ar as replace, as as resolvePath, u as unstable_ClientInstrumentation, b as unstable_ClientOnErrorFunction, ae as unstable_InstrumentRequestHandlerFunction, ag as unstable_InstrumentRouteFunction, af as unstable_InstrumentRouterFunction, ad as unstable_ServerInstrumentation } from './router-DWv6Clt-.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-Cy4Xsfoi.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-Cy4Xsfoi.mjs';
|
|
7
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-CYIi6gi0.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-CYIi6gi0.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,13 +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 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>;
|
|
871
868
|
|
|
872
869
|
/**
|
|
873
870
|
* @category Types
|
|
@@ -1014,10 +1011,6 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1014
1011
|
*/
|
|
1015
1012
|
declare const isCookie: IsCookieFunction;
|
|
1016
1013
|
|
|
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
|
-
|
|
1021
1014
|
/**
|
|
1022
1015
|
* An object of name/value pairs to be used in the session.
|
|
1023
1016
|
*/
|
|
@@ -1685,4 +1678,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1685
1678
|
|
|
1686
1679
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1687
1680
|
|
|
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,
|
|
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-BGrNA7uj.js';
|
|
2
|
+
export { v as ActionFunctionArgs, J as DataStrategyFunctionArgs, K as DataStrategyMatch, D as DataStrategyResult, N as ErrorResponse, F as FormEncType, O as FormMethod, ab 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, ae as UNSAFE_ErrorResponseImpl, ac as UNSAFE_createBrowserHistory, ad as UNSAFE_invariant, Y as createContext, Z as createPath, a2 as data, a3 as generatePath, a4 as isRouteErrorResponse, a5 as matchPath, a6 as matchRoutes, _ as parsePath, a7 as redirect, a8 as redirectDocument, a9 as replace, aa as resolvePath, u as unstable_ClientInstrumentation, $ as unstable_InstrumentRequestHandlerFunction, a1 as unstable_InstrumentRouteFunction, a0 as unstable_InstrumentRouterFunction, j as unstable_ServerInstrumentation } from './instrumentation-BGrNA7uj.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-DqotkItD.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-DqotkItD.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-ChBGplLn.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-ChBGplLn.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,13 +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 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>;
|
|
868
867
|
|
|
869
868
|
/**
|
|
870
869
|
* @category Types
|
|
@@ -1011,10 +1010,6 @@ type IsCookieFunction = (object: any) => object is Cookie;
|
|
|
1011
1010
|
*/
|
|
1012
1011
|
declare const isCookie: IsCookieFunction;
|
|
1013
1012
|
|
|
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
|
-
|
|
1018
1013
|
/**
|
|
1019
1014
|
* An object of name/value pairs to be used in the session.
|
|
1020
1015
|
*/
|
|
@@ -1727,4 +1722,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1727
1722
|
|
|
1728
1723
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1729
1724
|
|
|
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,
|
|
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 };
|