react-router 7.13.1 → 7.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/dist/{production/browser-DzsJABDQ.d.mts → development/browser-Bfn3xw9E.d.ts} +2 -1
- package/dist/development/{browser-DzsJABDQ.d.mts → browser-Di6-vSl-.d.mts} +2 -1
- package/dist/development/{chunk-XOLAXE2Z.js → chunk-GO74ODU3.js} +190 -111
- package/dist/{production/chunk-B5UMK6O7.js → development/chunk-HPFFRPKK.js} +100 -99
- package/dist/development/{chunk-KSEWV2VO.js → chunk-LLP6DRWX.js} +7 -7
- package/dist/{production/chunk-TXB4YXR2.mjs → development/chunk-UALY5CBT.mjs} +83 -49
- package/dist/development/{chunk-LFPYN7LY.mjs → chunk-UVKPFVEO.mjs} +124 -44
- package/dist/development/context-phCt_zmH.d.mts +1713 -0
- package/dist/development/dom-export.d.mts +3 -2
- package/dist/development/dom-export.d.ts +3 -2
- package/dist/development/dom-export.js +45 -29
- package/dist/development/dom-export.mjs +21 -5
- package/dist/development/{index-react-server-client-C4tCIird.d.ts → index-react-server-client-BcrVT7Dd.d.mts} +4 -2
- package/dist/{production/index-react-server-client-EzWJGpN_.d.mts → development/index-react-server-client-CCwMoQIT.d.ts} +1067 -10
- package/dist/development/index-react-server-client.d.mts +3 -2
- 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 +293 -246
- package/dist/development/index-react-server.d.ts +293 -246
- package/dist/development/index-react-server.js +121 -43
- package/dist/development/index-react-server.mjs +121 -43
- package/dist/development/index.d.mts +15 -13
- package/dist/development/index.d.ts +15 -13
- package/dist/development/index.js +176 -142
- package/dist/development/index.mjs +3 -3
- package/dist/development/instrumentation-BYr6ff5D.d.ts +657 -0
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-CBoanF80.d.ts → register-CTxsJBKQ.d.mts} +1 -1
- package/dist/development/{register-cRYJ3CjG.d.mts → register-CkcGwv27.d.ts} +1 -1
- package/dist/development/routeModules-BRrCYrSL.d.mts +1693 -0
- package/dist/development/routeModules-CA7kSxJJ.d.ts +1693 -0
- package/dist/production/{browser-sPQ7eaK4.d.ts → browser-Bfn3xw9E.d.ts} +2 -1
- package/dist/{development/browser-sPQ7eaK4.d.ts → production/browser-Di6-vSl-.d.mts} +2 -1
- package/dist/production/{chunk-RJCJ3EYF.mjs → chunk-2BDJPJTA.mjs} +124 -44
- package/dist/production/{chunk-ZJMCM6KT.js → chunk-CAFVLUDY.js} +7 -7
- package/dist/production/{chunk-772H4TVR.js → chunk-LKUVSIBA.js} +190 -111
- package/dist/{development/chunk-JPUPSTYD.mjs → production/chunk-PY35PE22.mjs} +83 -49
- package/dist/{development/chunk-2YMDXNOJ.js → production/chunk-XAAX7KIK.js} +100 -99
- package/dist/production/context-phCt_zmH.d.mts +1713 -0
- package/dist/production/dom-export.d.mts +3 -2
- package/dist/production/dom-export.d.ts +3 -2
- package/dist/production/dom-export.js +45 -29
- package/dist/production/dom-export.mjs +21 -5
- package/dist/{development/index-react-server-client-EzWJGpN_.d.mts → production/index-react-server-client-BcrVT7Dd.d.mts} +4 -2
- package/dist/production/{index-react-server-client-C4tCIird.d.ts → index-react-server-client-CCwMoQIT.d.ts} +1067 -10
- package/dist/production/index-react-server-client.d.mts +3 -2
- 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 +293 -246
- package/dist/production/index-react-server.d.ts +293 -246
- package/dist/production/index-react-server.js +121 -43
- package/dist/production/index-react-server.mjs +121 -43
- package/dist/production/index.d.mts +15 -13
- package/dist/production/index.d.ts +15 -13
- package/dist/production/index.js +176 -142
- package/dist/production/index.mjs +3 -3
- package/dist/production/instrumentation-BYr6ff5D.d.ts +657 -0
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{register-CBoanF80.d.ts → register-CTxsJBKQ.d.mts} +1 -1
- package/dist/production/{register-cRYJ3CjG.d.mts → register-CkcGwv27.d.ts} +1 -1
- package/dist/production/routeModules-BRrCYrSL.d.mts +1693 -0
- package/dist/production/routeModules-CA7kSxJJ.d.ts +1693 -0
- package/package.json +1 -1
- package/dist/development/instrumentation--6Pioq_G.d.ts +0 -3344
- package/dist/development/router-cLsU7kHk.d.mts +0 -3344
- package/dist/production/instrumentation--6Pioq_G.d.ts +0 -3344
- package/dist/production/router-cLsU7kHk.d.mts +0 -3344
|
@@ -6,7 +6,7 @@ export { BrowserRouter, Form, HashRouter, Link, Links, MemoryRouter, Meta, NavLi
|
|
|
6
6
|
import { serialize, parse } from 'cookie';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* react-router v7.13.
|
|
9
|
+
* react-router v7.13.2
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Remix Software Inc.
|
|
12
12
|
*
|
|
@@ -881,6 +881,10 @@ function createStaticHandler(routes, opts) {
|
|
|
881
881
|
let basename = (opts ? opts.basename : null) || "/";
|
|
882
882
|
let _mapRouteProperties = opts?.mapRouteProperties || defaultMapRouteProperties;
|
|
883
883
|
let mapRouteProperties = _mapRouteProperties;
|
|
884
|
+
({
|
|
885
|
+
// unused in static handler
|
|
886
|
+
...opts?.future
|
|
887
|
+
});
|
|
884
888
|
if (opts?.unstable_instrumentations) {
|
|
885
889
|
let instrumentations = opts.unstable_instrumentations;
|
|
886
890
|
mapRouteProperties = (route) => {
|
|
@@ -905,11 +909,12 @@ function createStaticHandler(routes, opts) {
|
|
|
905
909
|
skipLoaderErrorBubbling,
|
|
906
910
|
skipRevalidation,
|
|
907
911
|
dataStrategy,
|
|
908
|
-
generateMiddlewareResponse
|
|
912
|
+
generateMiddlewareResponse,
|
|
913
|
+
unstable_normalizePath
|
|
909
914
|
} = {}) {
|
|
910
|
-
let
|
|
915
|
+
let normalizePath = unstable_normalizePath || defaultNormalizePath;
|
|
911
916
|
let method = request.method;
|
|
912
|
-
let location = createLocation("",
|
|
917
|
+
let location = createLocation("", normalizePath(request), null, "default");
|
|
913
918
|
let matches = matchRoutes(dataRoutes, location, basename);
|
|
914
919
|
requestContext = requestContext != null ? requestContext : new RouterContextProvider();
|
|
915
920
|
if (!isValidMethod(method) && method !== "HEAD") {
|
|
@@ -962,6 +967,7 @@ function createStaticHandler(routes, opts) {
|
|
|
962
967
|
let response = await runServerMiddlewarePipeline(
|
|
963
968
|
{
|
|
964
969
|
request,
|
|
970
|
+
unstable_url: createDataFunctionUrl(request, location),
|
|
965
971
|
unstable_pattern: getRoutePattern(matches),
|
|
966
972
|
matches,
|
|
967
973
|
params: matches[0].params,
|
|
@@ -1078,11 +1084,12 @@ function createStaticHandler(routes, opts) {
|
|
|
1078
1084
|
routeId,
|
|
1079
1085
|
requestContext,
|
|
1080
1086
|
dataStrategy,
|
|
1081
|
-
generateMiddlewareResponse
|
|
1087
|
+
generateMiddlewareResponse,
|
|
1088
|
+
unstable_normalizePath
|
|
1082
1089
|
} = {}) {
|
|
1083
|
-
let
|
|
1090
|
+
let normalizePath = unstable_normalizePath || defaultNormalizePath;
|
|
1084
1091
|
let method = request.method;
|
|
1085
|
-
let location = createLocation("",
|
|
1092
|
+
let location = createLocation("", normalizePath(request), null, "default");
|
|
1086
1093
|
let matches = matchRoutes(dataRoutes, location, basename);
|
|
1087
1094
|
requestContext = requestContext != null ? requestContext : new RouterContextProvider();
|
|
1088
1095
|
if (!isValidMethod(method) && method !== "HEAD" && method !== "OPTIONS") {
|
|
@@ -1108,6 +1115,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1108
1115
|
let response = await runServerMiddlewarePipeline(
|
|
1109
1116
|
{
|
|
1110
1117
|
request,
|
|
1118
|
+
unstable_url: createDataFunctionUrl(request, location),
|
|
1111
1119
|
unstable_pattern: getRoutePattern(matches),
|
|
1112
1120
|
matches,
|
|
1113
1121
|
params: matches[0].params,
|
|
@@ -1185,6 +1193,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1185
1193
|
if (isMutationMethod(request.method)) {
|
|
1186
1194
|
let result2 = await submit(
|
|
1187
1195
|
request,
|
|
1196
|
+
location,
|
|
1188
1197
|
matches,
|
|
1189
1198
|
routeMatch || getTargetMatch(matches, location),
|
|
1190
1199
|
requestContext,
|
|
@@ -1198,6 +1207,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1198
1207
|
}
|
|
1199
1208
|
let result = await loadRouteData(
|
|
1200
1209
|
request,
|
|
1210
|
+
location,
|
|
1201
1211
|
matches,
|
|
1202
1212
|
requestContext,
|
|
1203
1213
|
dataStrategy,
|
|
@@ -1223,7 +1233,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1223
1233
|
throw e;
|
|
1224
1234
|
}
|
|
1225
1235
|
}
|
|
1226
|
-
async function submit(request, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest, filterMatchesToLoad, skipRevalidation) {
|
|
1236
|
+
async function submit(request, location, matches, actionMatch, requestContext, dataStrategy, skipLoaderErrorBubbling, isRouteRequest, filterMatchesToLoad, skipRevalidation) {
|
|
1227
1237
|
let result;
|
|
1228
1238
|
if (!actionMatch.route.action && !actionMatch.route.lazy) {
|
|
1229
1239
|
let error = getInternalRouterError(405, {
|
|
@@ -1243,6 +1253,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1243
1253
|
mapRouteProperties,
|
|
1244
1254
|
manifest,
|
|
1245
1255
|
request,
|
|
1256
|
+
location,
|
|
1246
1257
|
matches,
|
|
1247
1258
|
actionMatch,
|
|
1248
1259
|
[],
|
|
@@ -1250,6 +1261,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1250
1261
|
);
|
|
1251
1262
|
let results = await callDataStrategy(
|
|
1252
1263
|
request,
|
|
1264
|
+
location,
|
|
1253
1265
|
dsMatches,
|
|
1254
1266
|
isRouteRequest,
|
|
1255
1267
|
requestContext,
|
|
@@ -1323,6 +1335,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1323
1335
|
let boundaryMatch = skipLoaderErrorBubbling ? actionMatch : findNearestBoundary(matches, actionMatch.route.id);
|
|
1324
1336
|
let handlerContext2 = await loadRouteData(
|
|
1325
1337
|
loaderRequest,
|
|
1338
|
+
location,
|
|
1326
1339
|
matches,
|
|
1327
1340
|
requestContext,
|
|
1328
1341
|
dataStrategy,
|
|
@@ -1342,6 +1355,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1342
1355
|
}
|
|
1343
1356
|
let handlerContext = await loadRouteData(
|
|
1344
1357
|
loaderRequest,
|
|
1358
|
+
location,
|
|
1345
1359
|
matches,
|
|
1346
1360
|
requestContext,
|
|
1347
1361
|
dataStrategy,
|
|
@@ -1359,7 +1373,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1359
1373
|
actionHeaders: result.headers ? { [actionMatch.route.id]: result.headers } : {}
|
|
1360
1374
|
};
|
|
1361
1375
|
}
|
|
1362
|
-
async function loadRouteData(request, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, pendingActionResult) {
|
|
1376
|
+
async function loadRouteData(request, location, matches, requestContext, dataStrategy, skipLoaderErrorBubbling, routeMatch, filterMatchesToLoad, pendingActionResult) {
|
|
1363
1377
|
let isRouteRequest = routeMatch != null;
|
|
1364
1378
|
if (isRouteRequest && !routeMatch?.route.loader && !routeMatch?.route.lazy) {
|
|
1365
1379
|
throw getInternalRouterError(400, {
|
|
@@ -1374,6 +1388,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1374
1388
|
mapRouteProperties,
|
|
1375
1389
|
manifest,
|
|
1376
1390
|
request,
|
|
1391
|
+
location,
|
|
1377
1392
|
matches,
|
|
1378
1393
|
routeMatch,
|
|
1379
1394
|
[],
|
|
@@ -1391,6 +1406,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1391
1406
|
mapRouteProperties,
|
|
1392
1407
|
manifest,
|
|
1393
1408
|
request,
|
|
1409
|
+
location,
|
|
1394
1410
|
pattern,
|
|
1395
1411
|
match,
|
|
1396
1412
|
[],
|
|
@@ -1402,6 +1418,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1402
1418
|
mapRouteProperties,
|
|
1403
1419
|
manifest,
|
|
1404
1420
|
request,
|
|
1421
|
+
location,
|
|
1405
1422
|
pattern,
|
|
1406
1423
|
match,
|
|
1407
1424
|
[],
|
|
@@ -1423,6 +1440,7 @@ function createStaticHandler(routes, opts) {
|
|
|
1423
1440
|
}
|
|
1424
1441
|
let results = await callDataStrategy(
|
|
1425
1442
|
request,
|
|
1443
|
+
location,
|
|
1426
1444
|
dsMatches,
|
|
1427
1445
|
isRouteRequest,
|
|
1428
1446
|
requestContext,
|
|
@@ -1443,10 +1461,11 @@ function createStaticHandler(routes, opts) {
|
|
|
1443
1461
|
matches
|
|
1444
1462
|
};
|
|
1445
1463
|
}
|
|
1446
|
-
async function callDataStrategy(request, matches, isRouteRequest, requestContext, dataStrategy) {
|
|
1464
|
+
async function callDataStrategy(request, location, matches, isRouteRequest, requestContext, dataStrategy) {
|
|
1447
1465
|
let results = await callDataStrategyImpl(
|
|
1448
1466
|
dataStrategy || defaultDataStrategy,
|
|
1449
1467
|
request,
|
|
1468
|
+
location,
|
|
1450
1469
|
matches,
|
|
1451
1470
|
null,
|
|
1452
1471
|
requestContext);
|
|
@@ -1504,6 +1523,14 @@ function throwStaticHandlerAbortedError(request, isRouteRequest) {
|
|
|
1504
1523
|
`${method}() call aborted without an \`AbortSignal.reason\`: ${request.method} ${request.url}`
|
|
1505
1524
|
);
|
|
1506
1525
|
}
|
|
1526
|
+
function defaultNormalizePath(request) {
|
|
1527
|
+
let url = new URL(request.url);
|
|
1528
|
+
return {
|
|
1529
|
+
pathname: url.pathname,
|
|
1530
|
+
search: url.search,
|
|
1531
|
+
hash: url.hash
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1507
1534
|
function normalizeTo(location, matches, basename, to, fromRouteId, relative) {
|
|
1508
1535
|
let contextualMatches;
|
|
1509
1536
|
let activeRouteMatch;
|
|
@@ -1741,17 +1768,12 @@ function runServerMiddlewarePipeline(args, handler, errorHandler) {
|
|
|
1741
1768
|
}
|
|
1742
1769
|
}
|
|
1743
1770
|
async function runMiddlewarePipeline(args, handler, processResult, isResult, errorHandler) {
|
|
1744
|
-
let { matches,
|
|
1771
|
+
let { matches, ...dataFnArgs } = args;
|
|
1745
1772
|
let tuples = matches.flatMap(
|
|
1746
1773
|
(m) => m.route.middleware ? m.route.middleware.map((fn) => [m.route.id, fn]) : []
|
|
1747
1774
|
);
|
|
1748
1775
|
let result = await callRouteMiddleware(
|
|
1749
|
-
|
|
1750
|
-
request,
|
|
1751
|
-
params,
|
|
1752
|
-
context,
|
|
1753
|
-
unstable_pattern
|
|
1754
|
-
},
|
|
1776
|
+
dataFnArgs,
|
|
1755
1777
|
tuples,
|
|
1756
1778
|
handler,
|
|
1757
1779
|
processResult,
|
|
@@ -1829,7 +1851,7 @@ function getDataStrategyMatchLazyPromises(mapRouteProperties, manifest, request,
|
|
|
1829
1851
|
handler: lazyRoutePromises.lazyHandlerPromise
|
|
1830
1852
|
};
|
|
1831
1853
|
}
|
|
1832
|
-
function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, shouldRevalidateArgs = null, callSiteDefaultShouldRevalidate) {
|
|
1854
|
+
function getDataStrategyMatch(mapRouteProperties, manifest, request, path, unstable_pattern, match, lazyRoutePropertiesToSkip, scopedContext, shouldLoad, shouldRevalidateArgs = null, callSiteDefaultShouldRevalidate) {
|
|
1833
1855
|
let isUsingNewApi = false;
|
|
1834
1856
|
let _lazyPromises = getDataStrategyMatchLazyPromises(
|
|
1835
1857
|
mapRouteProperties,
|
|
@@ -1863,6 +1885,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pa
|
|
|
1863
1885
|
if (callHandler && (isMutationMethod(request.method) || !isMiddlewareOnlyRoute)) {
|
|
1864
1886
|
return callLoaderOrAction({
|
|
1865
1887
|
request,
|
|
1888
|
+
path,
|
|
1866
1889
|
unstable_pattern,
|
|
1867
1890
|
match,
|
|
1868
1891
|
lazyHandlerPromise: _lazyPromises?.handler,
|
|
@@ -1875,7 +1898,7 @@ function getDataStrategyMatch(mapRouteProperties, manifest, request, unstable_pa
|
|
|
1875
1898
|
}
|
|
1876
1899
|
};
|
|
1877
1900
|
}
|
|
1878
|
-
function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, matches, targetMatch, lazyRoutePropertiesToSkip, scopedContext, shouldRevalidateArgs = null) {
|
|
1901
|
+
function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, path, matches, targetMatch, lazyRoutePropertiesToSkip, scopedContext, shouldRevalidateArgs = null) {
|
|
1879
1902
|
return matches.map((match) => {
|
|
1880
1903
|
if (match.route.id !== targetMatch.route.id) {
|
|
1881
1904
|
return {
|
|
@@ -1897,6 +1920,7 @@ function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, m
|
|
|
1897
1920
|
mapRouteProperties,
|
|
1898
1921
|
manifest,
|
|
1899
1922
|
request,
|
|
1923
|
+
path,
|
|
1900
1924
|
getRoutePattern(matches),
|
|
1901
1925
|
match,
|
|
1902
1926
|
lazyRoutePropertiesToSkip,
|
|
@@ -1906,12 +1930,13 @@ function getTargetedDataStrategyMatches(mapRouteProperties, manifest, request, m
|
|
|
1906
1930
|
);
|
|
1907
1931
|
});
|
|
1908
1932
|
}
|
|
1909
|
-
async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherKey, scopedContext, isStaticHandler) {
|
|
1933
|
+
async function callDataStrategyImpl(dataStrategyImpl, request, path, matches, fetcherKey, scopedContext, isStaticHandler) {
|
|
1910
1934
|
if (matches.some((m) => m._lazyPromises?.middleware)) {
|
|
1911
1935
|
await Promise.all(matches.map((m) => m._lazyPromises?.middleware));
|
|
1912
1936
|
}
|
|
1913
1937
|
let dataStrategyArgs = {
|
|
1914
1938
|
request,
|
|
1939
|
+
unstable_url: createDataFunctionUrl(request, path),
|
|
1915
1940
|
unstable_pattern: getRoutePattern(matches),
|
|
1916
1941
|
params: matches[0].params,
|
|
1917
1942
|
context: scopedContext,
|
|
@@ -1940,6 +1965,7 @@ async function callDataStrategyImpl(dataStrategyImpl, request, matches, fetcherK
|
|
|
1940
1965
|
}
|
|
1941
1966
|
async function callLoaderOrAction({
|
|
1942
1967
|
request,
|
|
1968
|
+
path,
|
|
1943
1969
|
unstable_pattern,
|
|
1944
1970
|
match,
|
|
1945
1971
|
lazyHandlerPromise,
|
|
@@ -1967,6 +1993,7 @@ async function callLoaderOrAction({
|
|
|
1967
1993
|
return handler(
|
|
1968
1994
|
{
|
|
1969
1995
|
request,
|
|
1996
|
+
unstable_url: createDataFunctionUrl(request, path),
|
|
1970
1997
|
unstable_pattern,
|
|
1971
1998
|
params: match.params,
|
|
1972
1999
|
context: scopedContext
|
|
@@ -2124,6 +2151,24 @@ function normalizeRelativeRoutingRedirectResponse(response, request, routeId, ma
|
|
|
2124
2151
|
}
|
|
2125
2152
|
return response;
|
|
2126
2153
|
}
|
|
2154
|
+
function createDataFunctionUrl(request, path) {
|
|
2155
|
+
let url = new URL(request.url);
|
|
2156
|
+
let parsed = typeof path === "string" ? parsePath(path) : path;
|
|
2157
|
+
url.pathname = parsed.pathname || "/";
|
|
2158
|
+
if (parsed.search) {
|
|
2159
|
+
let searchParams = new URLSearchParams(parsed.search);
|
|
2160
|
+
let indexValues = searchParams.getAll("index");
|
|
2161
|
+
searchParams.delete("index");
|
|
2162
|
+
for (let value of indexValues.filter(Boolean)) {
|
|
2163
|
+
searchParams.append("index", value);
|
|
2164
|
+
}
|
|
2165
|
+
url.search = searchParams.size ? `?${searchParams.toString()}` : "";
|
|
2166
|
+
} else {
|
|
2167
|
+
url.search = "";
|
|
2168
|
+
}
|
|
2169
|
+
url.hash = parsed.hash || "";
|
|
2170
|
+
return url;
|
|
2171
|
+
}
|
|
2127
2172
|
function processRouteLoaderData(matches, results, pendingActionResult, isStaticHandler = false, skipLoaderErrorBubbling = false) {
|
|
2128
2173
|
let loaderData = {};
|
|
2129
2174
|
let errors = null;
|
|
@@ -2491,6 +2536,35 @@ function createRouteErrorResponseDigest(response) {
|
|
|
2491
2536
|
)}`;
|
|
2492
2537
|
}
|
|
2493
2538
|
|
|
2539
|
+
// lib/server-runtime/urls.ts
|
|
2540
|
+
function getNormalizedPath(request, basename, future) {
|
|
2541
|
+
basename = basename || "/";
|
|
2542
|
+
let url = new URL(request.url);
|
|
2543
|
+
let pathname = url.pathname;
|
|
2544
|
+
{
|
|
2545
|
+
if (stripBasename(pathname, basename) === "/_root.data") {
|
|
2546
|
+
pathname = basename;
|
|
2547
|
+
} else if (pathname.endsWith(".data")) {
|
|
2548
|
+
pathname = pathname.replace(/\.data$/, "");
|
|
2549
|
+
}
|
|
2550
|
+
if (stripBasename(pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
2551
|
+
pathname = pathname.slice(0, -1);
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
let searchParams = new URLSearchParams(url.search);
|
|
2555
|
+
searchParams.delete("_routes");
|
|
2556
|
+
let search = searchParams.toString();
|
|
2557
|
+
if (search) {
|
|
2558
|
+
search = `?${search}`;
|
|
2559
|
+
}
|
|
2560
|
+
return {
|
|
2561
|
+
pathname,
|
|
2562
|
+
search,
|
|
2563
|
+
// No hashes on the server
|
|
2564
|
+
hash: ""
|
|
2565
|
+
};
|
|
2566
|
+
}
|
|
2567
|
+
|
|
2494
2568
|
// lib/rsc/server.rsc.ts
|
|
2495
2569
|
var Outlet = Outlet$1;
|
|
2496
2570
|
var WithComponentProps = UNSAFE_WithComponentProps;
|
|
@@ -2779,7 +2853,8 @@ async function generateResourceResponse(request, routes, basename, routeId, requ
|
|
|
2779
2853
|
} catch (error) {
|
|
2780
2854
|
return generateErrorResponse(error);
|
|
2781
2855
|
}
|
|
2782
|
-
}
|
|
2856
|
+
},
|
|
2857
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, basename, null)
|
|
2783
2858
|
});
|
|
2784
2859
|
return response;
|
|
2785
2860
|
} catch (error) {
|
|
@@ -2835,6 +2910,7 @@ async function generateRenderResponse(request, routes, basename, isDataRequest,
|
|
|
2835
2910
|
skipLoaderErrorBubbling: isDataRequest,
|
|
2836
2911
|
skipRevalidation: isSubmission,
|
|
2837
2912
|
...routeIdsToLoad ? { filterMatchesToLoad: (m) => routeIdsToLoad.includes(m.route.id) } : {},
|
|
2913
|
+
unstable_normalizePath: (r) => getNormalizedPath(r, basename),
|
|
2838
2914
|
async generateMiddlewareResponse(query) {
|
|
2839
2915
|
let formState;
|
|
2840
2916
|
let skipRevalidation = false;
|
|
@@ -3082,16 +3158,17 @@ async function getRSCRouteMatch({
|
|
|
3082
3158
|
routeIdsToLoad,
|
|
3083
3159
|
parentId
|
|
3084
3160
|
}) {
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
const
|
|
3088
|
-
const
|
|
3089
|
-
const
|
|
3090
|
-
const
|
|
3091
|
-
const
|
|
3161
|
+
const route = match.route;
|
|
3162
|
+
await explodeLazyRoute(route);
|
|
3163
|
+
const Layout = route.Layout || React2.Fragment;
|
|
3164
|
+
const Component = route.Component;
|
|
3165
|
+
const ErrorBoundary = route.ErrorBoundary;
|
|
3166
|
+
const HydrateFallback = route.HydrateFallback;
|
|
3167
|
+
const loaderData = staticContext.loaderData[route.id];
|
|
3168
|
+
const actionData = staticContext.actionData?.[route.id];
|
|
3092
3169
|
const params = match.params;
|
|
3093
3170
|
let element = void 0;
|
|
3094
|
-
let shouldLoadRoute = !routeIdsToLoad || routeIdsToLoad.includes(
|
|
3171
|
+
let shouldLoadRoute = !routeIdsToLoad || routeIdsToLoad.includes(route.id);
|
|
3095
3172
|
if (Component && shouldLoadRoute) {
|
|
3096
3173
|
element = !isBelowErrorBoundary ? React2.createElement(
|
|
3097
3174
|
Layout,
|
|
@@ -3110,7 +3187,7 @@ async function getRSCRouteMatch({
|
|
|
3110
3187
|
}
|
|
3111
3188
|
let error = void 0;
|
|
3112
3189
|
if (ErrorBoundary && staticContext.errors) {
|
|
3113
|
-
error = staticContext.errors[
|
|
3190
|
+
error = staticContext.errors[route.id];
|
|
3114
3191
|
}
|
|
3115
3192
|
const errorElement = ErrorBoundary ? React2.createElement(
|
|
3116
3193
|
Layout,
|
|
@@ -3135,31 +3212,32 @@ async function getRSCRouteMatch({
|
|
|
3135
3212
|
params
|
|
3136
3213
|
})
|
|
3137
3214
|
) : void 0;
|
|
3215
|
+
const hmrRoute = route;
|
|
3138
3216
|
return {
|
|
3139
|
-
clientAction:
|
|
3140
|
-
clientLoader:
|
|
3217
|
+
clientAction: route.clientAction,
|
|
3218
|
+
clientLoader: route.clientLoader,
|
|
3141
3219
|
element,
|
|
3142
3220
|
errorElement,
|
|
3143
|
-
handle:
|
|
3144
|
-
hasAction: !!
|
|
3221
|
+
handle: route.handle,
|
|
3222
|
+
hasAction: !!route.action,
|
|
3145
3223
|
hasComponent: !!Component,
|
|
3146
3224
|
hasErrorBoundary: !!ErrorBoundary,
|
|
3147
|
-
hasLoader: !!
|
|
3225
|
+
hasLoader: !!route.loader,
|
|
3148
3226
|
hydrateFallbackElement,
|
|
3149
|
-
id:
|
|
3150
|
-
index:
|
|
3151
|
-
links:
|
|
3152
|
-
meta:
|
|
3227
|
+
id: route.id,
|
|
3228
|
+
index: "index" in route ? route.index : void 0,
|
|
3229
|
+
links: route.links,
|
|
3230
|
+
meta: route.meta,
|
|
3153
3231
|
params,
|
|
3154
3232
|
parentId,
|
|
3155
|
-
path:
|
|
3233
|
+
path: route.path,
|
|
3156
3234
|
pathname: match.pathname,
|
|
3157
3235
|
pathnameBase: match.pathnameBase,
|
|
3158
|
-
shouldRevalidate:
|
|
3236
|
+
shouldRevalidate: route.shouldRevalidate,
|
|
3159
3237
|
// Add an unused client-only export (if present) so HMR can support
|
|
3160
3238
|
// switching between server-first and client-only routes during development
|
|
3161
|
-
...
|
|
3162
|
-
__ensureClientRouteModuleForHMR:
|
|
3239
|
+
...hmrRoute.__ensureClientRouteModuleForHMR ? {
|
|
3240
|
+
__ensureClientRouteModuleForHMR: hmrRoute.__ensureClientRouteModuleForHMR
|
|
3163
3241
|
} : {}
|
|
3164
3242
|
};
|
|
3165
3243
|
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { X as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, Y as SerializeFrom, L as Location, Z as ParamParseKey, I as Path, _ as PathPattern, $ as PathMatch, U as UIMatch, v as Action, P as Params, r as RouteObject, G as GetLoaderData, l as GetActionData, J as InitialEntry, Q as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, K as NonIndexRouteObject, a0 as Equal, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, a as ClientLoaderFunction } from './routeModules-BRrCYrSL.mjs';
|
|
2
|
+
export { a1 as ActionFunctionArgs, a2 as BaseRouteObject, C as ClientActionFunction, aq as ClientActionFunctionArgs, ar as ClientLoaderFunctionArgs, w as DataRouteMatch, a3 as DataStrategyFunctionArgs, a4 as DataStrategyMatch, D as DataStrategyResult, a6 as ErrorResponse, n as FormEncType, a7 as FormMethod, aw as Future, m as HTMLFormMethod, as as HeadersArgs, H as HeadersFunction, av as HtmlLinkDescriptor, O as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, at as MetaArgs, g as MetaDescriptor, a8 as MiddlewareFunction, au as PageLinkDescriptor, a9 as PatchRoutesOnNavigationFunctionArgs, aa as PathParam, ab as RedirectFunction, V as RouteMatch, ac as RouterContext, S as ShouldRevalidateFunction, ad as ShouldRevalidateFunctionArgs, a5 as UNSAFE_DataWithResponseInit, aC as UNSAFE_ErrorResponseImpl, az as UNSAFE_createBrowserHistory, aA as UNSAFE_createHashHistory, ay as UNSAFE_createMemoryHistory, aB as UNSAFE_invariant, ae as createContext, af as createPath, ah as data, ai as generatePath, aj as isRouteErrorResponse, ak as matchPath, al as matchRoutes, ag as parsePath, am as redirect, an as redirectDocument, ao as replace, ap as resolvePath, ax as unstable_SerializesTo } from './routeModules-BRrCYrSL.mjs';
|
|
3
|
+
import { b as Router, N as NavigateOptions, B as BlockerFunction, c as Blocker, d as RelativeRoutingType, e as Navigation, H as HydrationState, f as RouterState } from './context-phCt_zmH.mjs';
|
|
4
|
+
export { K as Await, w as AwaitProps, C as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, g as GetScrollRestorationKeyFunction, t as IDLE_BLOCKER, s as IDLE_FETCHER, I as IDLE_NAVIGATION, x as IndexRouteProps, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, i as NavigationStates, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, m as RevalidationState, V as Route, D as RouteProps, W as Router, l as RouterFetchOptions, R as RouterInit, k as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, j as RouterSubscriber, Y as Routes, J as RoutesProps, S as StaticHandler, h as StaticHandlerContext, A as UNSAFE_AwaitContextProvider, a2 as UNSAFE_DataRouterContext, a3 as UNSAFE_DataRouterStateContext, a4 as UNSAFE_FetchersContext, a5 as UNSAFE_LocationContext, a6 as UNSAFE_NavigationContext, a7 as UNSAFE_RouteContext, a8 as UNSAFE_ViewTransitionContext, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps, a1 as UNSAFE_createRouter, a9 as UNSAFE_hydrationRouteProperties, aa as UNSAFE_mapRouteProperties, ac as UNSAFE_withComponentProps, ag as UNSAFE_withErrorBoundaryProps, ae as UNSAFE_withHydrateFallbackProps, Z as createMemoryRouter, _ as createRoutesFromChildren, $ as createRoutesFromElements, a0 as renderMatches, u as unstable_ClientInstrumentation, o as unstable_InstrumentRequestHandlerFunction, q as unstable_InstrumentRouteFunction, p as unstable_InstrumentRouterFunction, r as unstable_InstrumentationHandlerResult, n as unstable_ServerInstrumentation } from './context-phCt_zmH.mjs';
|
|
3
5
|
import * as React from 'react';
|
|
4
6
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { a as RouteModules$1, P as Pages } from './register-
|
|
6
|
-
export { b as Register } from './register-
|
|
7
|
-
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-
|
|
8
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-
|
|
7
|
+
import { a as RouteModules$1, P as Pages } from './register-CTxsJBKQ.mjs';
|
|
8
|
+
export { b as Register } from './register-CTxsJBKQ.mjs';
|
|
9
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-BcrVT7Dd.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-BcrVT7Dd.mjs';
|
|
9
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
|
-
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-
|
|
12
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-
|
|
13
|
+
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-Di6-vSl-.mjs';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-Di6-vSl-.mjs';
|
|
13
15
|
|
|
14
16
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
15
17
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined, trailingSlashAware: boolean): DataStrategyFunction;
|
|
@@ -189,7 +191,7 @@ interface NavigateFunction {
|
|
|
189
191
|
*
|
|
190
192
|
* Be cautious with `navigate(number)`. If your application can load up to a
|
|
191
193
|
* route that has a button that tries to navigate forward/back, there may not be
|
|
192
|
-
* a
|
|
194
|
+
* a [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
193
195
|
* entry to go back or forward to, or it can go somewhere you don't expect
|
|
194
196
|
* (like a different domain).
|
|
195
197
|
*
|
|
@@ -913,9 +915,9 @@ interface ServerRouterProps {
|
|
|
913
915
|
declare function ServerRouter({ context, url, nonce, }: ServerRouterProps): ReactElement;
|
|
914
916
|
|
|
915
917
|
interface StubRouteExtensions {
|
|
916
|
-
Component?:
|
|
917
|
-
HydrateFallback?:
|
|
918
|
-
ErrorBoundary?:
|
|
918
|
+
Component?: React.ComponentType<any>;
|
|
919
|
+
HydrateFallback?: React.ComponentType<any>;
|
|
920
|
+
ErrorBoundary?: React.ComponentType<any>;
|
|
919
921
|
loader?: LoaderFunction;
|
|
920
922
|
action?: ActionFunction;
|
|
921
923
|
children?: StubRouteObject[];
|
|
@@ -1354,7 +1356,7 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1354
1356
|
error: Error | null;
|
|
1355
1357
|
location: Location<any>;
|
|
1356
1358
|
};
|
|
1357
|
-
render(): string | number | boolean | React.
|
|
1359
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
1358
1360
|
}
|
|
1359
1361
|
|
|
1360
1362
|
declare function getPatchRoutesOnNavigationFunction(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { J as RouteModules, l as DataStrategyFunction, r as MiddlewareEnabled, c as RouterContextProvider, s as AppLoadContext, T as To, K as SerializeFrom, L as Location, O as ParamParseKey, p as Path, Q as PathPattern, V as PathMatch, U as UIMatch, i as Action, P as Params, e as RouteObject, G as GetLoaderData, I as GetActionData, W as InitialEntry, X as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, Y as NonIndexRouteObject, Z as Equal, m as PatchRoutesOnNavigationFunction, n as DataRouteObject, a as ClientLoaderFunction } from './routeModules-CA7kSxJJ.js';
|
|
2
|
+
export { _ as ActionFunctionArgs, $ as BaseRouteObject, C as ClientActionFunction, ap as ClientActionFunctionArgs, aq as ClientLoaderFunctionArgs, D as DataRouteMatch, a0 as DataStrategyFunctionArgs, a1 as DataStrategyMatch, B as DataStrategyResult, a3 as ErrorResponse, F as FormEncType, a4 as FormMethod, av as Future, o as HTMLFormMethod, ar as HeadersArgs, H as HeadersFunction, au as HtmlLinkDescriptor, a5 as LazyRouteFunction, t as LinkDescriptor, q as LoaderFunctionArgs, as as MetaArgs, w as MetaDescriptor, a6 as MiddlewareFunction, at as PageLinkDescriptor, a7 as PatchRoutesOnNavigationFunctionArgs, a8 as PathParam, a9 as RedirectFunction, aa as RouteMatch, ab as RouterContext, S as ShouldRevalidateFunction, ac as ShouldRevalidateFunctionArgs, a2 as UNSAFE_DataWithResponseInit, aB as UNSAFE_ErrorResponseImpl, ay as UNSAFE_createBrowserHistory, az as UNSAFE_createHashHistory, ax as UNSAFE_createMemoryHistory, aA as UNSAFE_invariant, ad as createContext, ae as createPath, ag as data, ah as generatePath, ai as isRouteErrorResponse, aj as matchPath, ak as matchRoutes, af as parsePath, al as redirect, am as redirectDocument, an as replace, ao as resolvePath, aw as unstable_SerializesTo } from './routeModules-CA7kSxJJ.js';
|
|
3
|
+
import { a as Router, B as BlockerFunction, b as Blocker, c as RelativeRoutingType, N as Navigation, H as HydrationState, d as RouterState } from './instrumentation-BYr6ff5D.js';
|
|
4
|
+
export { F as Fetcher, G as GetScrollPositionFunction, e as GetScrollRestorationKeyFunction, r as IDLE_BLOCKER, q as IDLE_FETCHER, I as IDLE_NAVIGATION, g as NavigationStates, k as RevalidationState, j as RouterFetchOptions, R as RouterInit, i as RouterNavigateOptions, h as RouterSubscriber, S as StaticHandler, f as StaticHandlerContext, s as UNSAFE_createRouter, u as unstable_ClientInstrumentation, m as unstable_InstrumentRequestHandlerFunction, o as unstable_InstrumentRouteFunction, n as unstable_InstrumentRouterFunction, p as unstable_InstrumentationHandlerResult, l as unstable_ServerInstrumentation } from './instrumentation-BYr6ff5D.js';
|
|
5
|
+
import { A as AssetsManifest, S as ServerBuild, N as NavigateOptions, E as EntryContext, F as FutureConfig } from './index-react-server-client-CCwMoQIT.js';
|
|
6
|
+
export { i as Await, c as AwaitProps, W as BrowserRouter, B as BrowserRouterProps, C as ClientOnErrorFunction, D as DOMRouterOpts, at as DiscoverBehavior, y as FetcherFormProps, Q as FetcherSubmitFunction, aa as FetcherSubmitOptions, T as FetcherWithComponents, $ as Form, z as FormProps, au as HandleDataRequestFunction, av as HandleDocumentRequestFunction, aw as HandleErrorFunction, X as HashRouter, H as HashRouterProps, u as HistoryRouterProps, I as IndexRouteProps, L as LayoutRouteProps, Y as Link, v as LinkProps, an as Links, aq as LinksProps, j as MemoryRouter, M as MemoryRouterOpts, d as MemoryRouterProps, am as Meta, _ as NavLink, w as NavLinkProps, x as NavLinkRenderProps, k as Navigate, e as NavigateProps, a as Navigator, l as Outlet, O as OutletProps, ab as ParamKeyValuePair, P as PathRouteProps, as as PrefetchBehavior, ap as PrefetchPageLinks, m as Route, R as RouteProps, n as Router, f as RouterProps, o as RouterProvider, g as RouterProviderProps, p as Routes, h as RoutesProps, ao as Scripts, ar as ScriptsProps, a0 as ScrollRestoration, G as ScrollRestorationProps, ax as ServerEntryModule, J as SetURLSearchParams, ak as StaticRouter, ag as StaticRouterProps, al as StaticRouterProvider, ah as StaticRouterProviderProps, K as SubmitFunction, ac as SubmitOptions, ae as SubmitTarget, b as UNSAFE_AwaitContextProvider, ay as UNSAFE_DataRouterContext, az as UNSAFE_DataRouterStateContext, aA as UNSAFE_FetchersContext, aN as UNSAFE_FrameworkContext, 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, aO as UNSAFE_createClientRoutes, aP as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, aF as UNSAFE_hydrationRouteProperties, aG as UNSAFE_mapRouteProperties, aQ as UNSAFE_shouldHydrateRouteLoader, aR as UNSAFE_useScrollRestoration, aI as UNSAFE_withComponentProps, aM as UNSAFE_withErrorBoundaryProps, aK as UNSAFE_withHydrateFallbackProps, ad as URLSearchParamsInit, U as createBrowserRouter, V as createHashRouter, q as createMemoryRouter, r as createRoutesFromChildren, s as createRoutesFromElements, af as createSearchParams, ai as createStaticHandler, aj as createStaticRouter, t as renderMatches, Z as unstable_HistoryRouter, a8 as unstable_usePrompt, a7 as useBeforeUnload, a5 as useFetcher, a6 as useFetchers, a4 as useFormAction, a1 as useLinkClickHandler, a2 as useSearchParams, a3 as useSubmit, a9 as useViewTransitionState } from './index-react-server-client-CCwMoQIT.js';
|
|
3
7
|
import * as React from 'react';
|
|
4
8
|
import React__default, { ReactElement } from 'react';
|
|
5
|
-
import { a as RouteModules$1, P as Pages } from './register-
|
|
6
|
-
export { b as Register } from './register-
|
|
7
|
-
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-C4tCIird.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-C4tCIird.js';
|
|
9
|
+
import { a as RouteModules$1, P as Pages } from './register-CkcGwv27.js';
|
|
10
|
+
export { b as Register } from './register-CkcGwv27.js';
|
|
9
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
10
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
11
|
-
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-
|
|
12
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-
|
|
13
|
+
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-Bfn3xw9E.js';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-Bfn3xw9E.js';
|
|
13
15
|
|
|
14
16
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
15
17
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined, trailingSlashAware: boolean): DataStrategyFunction;
|
|
@@ -189,7 +191,7 @@ interface NavigateFunction {
|
|
|
189
191
|
*
|
|
190
192
|
* Be cautious with `navigate(number)`. If your application can load up to a
|
|
191
193
|
* route that has a button that tries to navigate forward/back, there may not be
|
|
192
|
-
* a
|
|
194
|
+
* a [`History`](https://developer.mozilla.org/en-US/docs/Web/API/History)
|
|
193
195
|
* entry to go back or forward to, or it can go somewhere you don't expect
|
|
194
196
|
* (like a different domain).
|
|
195
197
|
*
|
|
@@ -913,9 +915,9 @@ interface ServerRouterProps {
|
|
|
913
915
|
declare function ServerRouter({ context, url, nonce, }: ServerRouterProps): ReactElement;
|
|
914
916
|
|
|
915
917
|
interface StubRouteExtensions {
|
|
916
|
-
Component?:
|
|
917
|
-
HydrateFallback?:
|
|
918
|
-
ErrorBoundary?:
|
|
918
|
+
Component?: React.ComponentType<any>;
|
|
919
|
+
HydrateFallback?: React.ComponentType<any>;
|
|
920
|
+
ErrorBoundary?: React.ComponentType<any>;
|
|
919
921
|
loader?: LoaderFunction;
|
|
920
922
|
action?: ActionFunction;
|
|
921
923
|
children?: StubRouteObject[];
|
|
@@ -1354,7 +1356,7 @@ declare class RemixErrorBoundary extends React.Component<RemixErrorBoundaryProps
|
|
|
1354
1356
|
error: Error | null;
|
|
1355
1357
|
location: Location<any>;
|
|
1356
1358
|
};
|
|
1357
|
-
render(): string | number | boolean | React.
|
|
1359
|
+
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
1358
1360
|
}
|
|
1359
1361
|
|
|
1360
1362
|
declare function getPatchRoutesOnNavigationFunction(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, routeDiscovery: ServerBuild["routeDiscovery"], isSpaMode: boolean, basename: string | undefined): PatchRoutesOnNavigationFunction | undefined;
|