react-router 0.0.0-experimental-a65d6f5 → 0.0.0-experimental-c19b79d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/{chunk-ZLVXSGFL.js → chunk-2G2U5HGB.js} +161 -164
- package/dist/development/{chunk-CWSJ6RYI.mjs → chunk-AGOH44BE.mjs} +51 -67
- package/dist/development/{chunk-47MIYFLC.mjs → chunk-IMKEG5CI.mjs} +29 -309
- package/dist/development/{chunk-QOFB7XZ5.js → chunk-LUB73E44.js} +70 -347
- package/dist/development/{router-DQIRhYoj.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/development/dom-export.d.mts +4 -59
- package/dist/development/dom-export.d.ts +3 -59
- package/dist/development/dom-export.js +5 -8
- package/dist/development/dom-export.mjs +5 -8
- package/dist/{production/index-react-server-client-lf74v6ET.d.mts → development/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/development/{index-react-server-client-lf74v6ET.d.mts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +2 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +1 -106
- package/dist/development/index-react-server.d.ts +1 -106
- package/dist/development/index-react-server.js +8 -181
- package/dist/development/index-react-server.mjs +8 -181
- package/dist/development/index.d.mts +20 -13
- package/dist/development/index.d.ts +18 -13
- package/dist/development/index.js +147 -161
- package/dist/development/index.mjs +5 -3
- package/dist/development/lib/types/internal.d.mts +3 -3
- package/dist/development/lib/types/internal.d.ts +2 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-DiOIlEq5.d.mts → register-BrVEYTED.d.mts} +7 -1
- package/dist/{production/register-DiOIlEq5.d.mts → development/register-D8NQoPsO.d.ts} +7 -1
- package/dist/development/{routeModules--SgCTStn.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{production/routeModules-rxNxBmdR.d.ts → development/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/dist/production/{chunk-ZOHTOBOT.js → chunk-2L5AG5Y5.js} +70 -347
- package/dist/production/{chunk-UAAA7FTX.mjs → chunk-AODJW4D3.mjs} +51 -67
- package/dist/production/{chunk-4SPSFXAZ.js → chunk-FGRCWJDI.js} +161 -164
- package/dist/production/{chunk-MMAHTIVZ.mjs → chunk-UOQCOPF6.mjs} +29 -309
- package/dist/production/{router-DQIRhYoj.d.mts → context-BqL5Eckq.d.mts} +1288 -1441
- package/dist/production/dom-export.d.mts +4 -59
- package/dist/production/dom-export.d.ts +3 -59
- package/dist/production/dom-export.js +5 -8
- package/dist/production/dom-export.mjs +5 -8
- package/dist/{development/index-react-server-client-Iw2PMej2.d.ts → production/index-react-server-client-2EDmGlsZ.d.mts} +77 -140
- package/dist/production/{index-react-server-client-Iw2PMej2.d.ts → index-react-server-client-DKvU8YRr.d.ts} +134 -198
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +2 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +1 -106
- package/dist/production/index-react-server.d.ts +1 -106
- package/dist/production/index-react-server.js +8 -181
- package/dist/production/index-react-server.mjs +8 -181
- package/dist/production/index.d.mts +20 -13
- package/dist/production/index.d.ts +18 -13
- package/dist/production/index.js +147 -161
- package/dist/production/index.mjs +5 -3
- package/dist/production/lib/types/internal.d.mts +3 -3
- package/dist/production/lib/types/internal.d.ts +2 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/{development/register-DiOIlEq5.d.ts → production/register-BrVEYTED.d.mts} +7 -1
- package/dist/production/{register-DiOIlEq5.d.ts → register-D8NQoPsO.d.ts} +7 -1
- package/dist/production/{routeModules--SgCTStn.d.mts → route-data-CDwqkzPE.d.mts} +147 -157
- package/dist/{development/routeModules-rxNxBmdR.d.ts → production/routeModules-BmVo7q9e.d.ts} +1046 -73
- package/package.json +1 -1
- package/dist/development/instrumentation-BWRz1MRU.d.ts +0 -1138
- package/dist/production/instrumentation-BWRz1MRU.d.ts +0 -1138
package/dist/production/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v0.0.0-experimental-
|
|
2
|
+
* react-router v0.0.0-experimental-c19b79d
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkFGRCWJDIjs = require('./chunk-FGRCWJDI.js');
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
@@ -147,7 +147,7 @@ var _chunk4SPSFXAZjs = require('./chunk-4SPSFXAZ.js');
|
|
|
147
147
|
|
|
148
148
|
|
|
149
149
|
|
|
150
|
-
var
|
|
150
|
+
var _chunk2L5AG5Y5js = require('./chunk-2L5AG5Y5.js');
|
|
151
151
|
|
|
152
152
|
// lib/dom/ssr/server.tsx
|
|
153
153
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -160,7 +160,7 @@ function ServerRouter({
|
|
|
160
160
|
url = new URL(url);
|
|
161
161
|
}
|
|
162
162
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
163
|
-
let routes =
|
|
163
|
+
let routes = _chunk2L5AG5Y5js.createServerRoutes.call(void 0,
|
|
164
164
|
manifest.routes,
|
|
165
165
|
routeModules,
|
|
166
166
|
context.future,
|
|
@@ -173,7 +173,7 @@ function ServerRouter({
|
|
|
173
173
|
let routeId = match.route.id;
|
|
174
174
|
let route = routeModules[routeId];
|
|
175
175
|
let manifestRoute = context.manifest.routes[routeId];
|
|
176
|
-
if (route && manifestRoute &&
|
|
176
|
+
if (route && manifestRoute && _chunk2L5AG5Y5js.shouldHydrateRouteLoader.call(void 0,
|
|
177
177
|
routeId,
|
|
178
178
|
route.clientLoader,
|
|
179
179
|
manifestRoute.hasLoader,
|
|
@@ -182,9 +182,9 @@ function ServerRouter({
|
|
|
182
182
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
let router =
|
|
185
|
+
let router = _chunkFGRCWJDIjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
186
186
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
187
|
-
|
|
187
|
+
_chunk2L5AG5Y5js.FrameworkContext.Provider,
|
|
188
188
|
{
|
|
189
189
|
value: {
|
|
190
190
|
manifest,
|
|
@@ -199,8 +199,8 @@ function ServerRouter({
|
|
|
199
199
|
renderMeta: context.renderMeta
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
|
-
/* @__PURE__ */ React.createElement(
|
|
203
|
-
|
|
202
|
+
/* @__PURE__ */ React.createElement(_chunk2L5AG5Y5js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
203
|
+
_chunkFGRCWJDIjs.StaticRouterProvider,
|
|
204
204
|
{
|
|
205
205
|
router,
|
|
206
206
|
context: context.staticHandlerContext,
|
|
@@ -208,7 +208,7 @@ function ServerRouter({
|
|
|
208
208
|
}
|
|
209
209
|
))
|
|
210
210
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
211
|
-
|
|
211
|
+
_chunk2L5AG5Y5js.StreamTransfer,
|
|
212
212
|
{
|
|
213
213
|
context,
|
|
214
214
|
identifier: 0,
|
|
@@ -250,18 +250,18 @@ function createRoutesStub(routes, _context) {
|
|
|
250
250
|
let patched = processRoutes(
|
|
251
251
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
252
252
|
// types compared to `AgnosticRouteObject`
|
|
253
|
-
|
|
254
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0,
|
|
253
|
+
_chunk2L5AG5Y5js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
254
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunk2L5AG5Y5js.RouterContextProvider)() : {},
|
|
255
255
|
frameworkContextRef.current.manifest,
|
|
256
256
|
frameworkContextRef.current.routeModules
|
|
257
257
|
);
|
|
258
|
-
routerRef.current =
|
|
258
|
+
routerRef.current = _chunkFGRCWJDIjs.createMemoryRouter.call(void 0, patched, {
|
|
259
259
|
initialEntries,
|
|
260
260
|
initialIndex,
|
|
261
261
|
hydrationData
|
|
262
262
|
});
|
|
263
263
|
}
|
|
264
|
-
return /* @__PURE__ */ React2.createElement(
|
|
264
|
+
return /* @__PURE__ */ React2.createElement(_chunk2L5AG5Y5js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkFGRCWJDIjs.RouterProvider, { router: routerRef.current }));
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -275,9 +275,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
275
275
|
id: route.id,
|
|
276
276
|
path: route.path,
|
|
277
277
|
index: route.index,
|
|
278
|
-
Component: route.Component ?
|
|
279
|
-
HydrateFallback: route.HydrateFallback ?
|
|
280
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
278
|
+
Component: route.Component ? _chunkFGRCWJDIjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
279
|
+
HydrateFallback: route.HydrateFallback ? _chunkFGRCWJDIjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
280
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkFGRCWJDIjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
281
281
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
282
282
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
283
283
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -312,7 +312,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
312
312
|
};
|
|
313
313
|
manifest.routes[newRoute.id] = entryRoute;
|
|
314
314
|
routeModules[route.id] = {
|
|
315
|
-
default: newRoute.Component ||
|
|
315
|
+
default: newRoute.Component || _chunkFGRCWJDIjs.Outlet,
|
|
316
316
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
317
317
|
handle: route.handle,
|
|
318
318
|
links: route.links,
|
|
@@ -507,7 +507,7 @@ function myUnescape(value) {
|
|
|
507
507
|
return result;
|
|
508
508
|
}
|
|
509
509
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
510
|
-
|
|
510
|
+
_chunk2L5AG5Y5js.warnOnce.call(void 0,
|
|
511
511
|
!expires,
|
|
512
512
|
`The "${name}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
513
513
|
);
|
|
@@ -561,7 +561,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
561
561
|
let entries = Object.entries(errors);
|
|
562
562
|
let serialized = {};
|
|
563
563
|
for (let [key, val] of entries) {
|
|
564
|
-
if (
|
|
564
|
+
if (_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, val)) {
|
|
565
565
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
566
566
|
} else if (val instanceof Error) {
|
|
567
567
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -586,7 +586,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
586
586
|
|
|
587
587
|
// lib/server-runtime/routeMatching.ts
|
|
588
588
|
function matchServerRoutes(routes, pathname, basename) {
|
|
589
|
-
let matches =
|
|
589
|
+
let matches = _chunk2L5AG5Y5js.matchRoutes.call(void 0,
|
|
590
590
|
routes,
|
|
591
591
|
pathname,
|
|
592
592
|
basename
|
|
@@ -604,10 +604,9 @@ async function callRouteHandler(handler, args) {
|
|
|
604
604
|
let result = await handler({
|
|
605
605
|
request: stripRoutesParam(stripIndexParam2(args.request)),
|
|
606
606
|
params: args.params,
|
|
607
|
-
context: args.context
|
|
608
|
-
unstable_pattern: args.unstable_pattern
|
|
607
|
+
context: args.context
|
|
609
608
|
});
|
|
610
|
-
if (
|
|
609
|
+
if (_chunk2L5AG5Y5js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunk2L5AG5Y5js.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
611
610
|
throw new Response(null, result.init);
|
|
612
611
|
}
|
|
613
612
|
return result;
|
|
@@ -726,17 +725,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
726
725
|
controller.close();
|
|
727
726
|
}
|
|
728
727
|
});
|
|
729
|
-
let decoded = await
|
|
728
|
+
let decoded = await _chunk2L5AG5Y5js.decodeViaTurboStream.call(void 0, stream, global);
|
|
730
729
|
let data2 = decoded.value;
|
|
731
|
-
if (data2 &&
|
|
732
|
-
let result = data2[
|
|
730
|
+
if (data2 && _chunk2L5AG5Y5js.SingleFetchRedirectSymbol in data2) {
|
|
731
|
+
let result = data2[_chunk2L5AG5Y5js.SingleFetchRedirectSymbol];
|
|
733
732
|
let init = { status: result.status };
|
|
734
733
|
if (result.reload) {
|
|
735
|
-
throw
|
|
734
|
+
throw _chunk2L5AG5Y5js.redirectDocument.call(void 0, result.redirect, init);
|
|
736
735
|
} else if (result.replace) {
|
|
737
|
-
throw
|
|
736
|
+
throw _chunk2L5AG5Y5js.replace.call(void 0, result.redirect, init);
|
|
738
737
|
} else {
|
|
739
|
-
throw
|
|
738
|
+
throw _chunk2L5AG5Y5js.redirect.call(void 0, result.redirect, init);
|
|
740
739
|
}
|
|
741
740
|
} else {
|
|
742
741
|
invariant2(
|
|
@@ -775,7 +774,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
775
774
|
|
|
776
775
|
// lib/server-runtime/serverHandoff.ts
|
|
777
776
|
function createServerHandoffString(serverHandoff) {
|
|
778
|
-
return
|
|
777
|
+
return _chunk2L5AG5Y5js.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
779
778
|
}
|
|
780
779
|
|
|
781
780
|
// lib/server-runtime/headers.ts
|
|
@@ -852,7 +851,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
852
851
|
|
|
853
852
|
// lib/server-runtime/single-fetch.ts
|
|
854
853
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
855
|
-
...
|
|
854
|
+
..._chunk2L5AG5Y5js.NO_BODY_STATUS_CODES,
|
|
856
855
|
304
|
|
857
856
|
]);
|
|
858
857
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -882,7 +881,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
882
881
|
return handleQueryError(error);
|
|
883
882
|
}
|
|
884
883
|
function handleQueryResult(result) {
|
|
885
|
-
return
|
|
884
|
+
return _chunk2L5AG5Y5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
886
885
|
}
|
|
887
886
|
function handleQueryError(error) {
|
|
888
887
|
handleError(error);
|
|
@@ -894,12 +893,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
894
893
|
}
|
|
895
894
|
function staticContextToResponse(context) {
|
|
896
895
|
let headers = getDocumentHeaders(context, build);
|
|
897
|
-
if (
|
|
896
|
+
if (_chunk2L5AG5Y5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
898
897
|
return new Response(null, { status: context.statusCode, headers });
|
|
899
898
|
}
|
|
900
899
|
if (context.errors) {
|
|
901
900
|
Object.values(context.errors).forEach((err) => {
|
|
902
|
-
if (!
|
|
901
|
+
if (!_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
903
902
|
handleError(err);
|
|
904
903
|
}
|
|
905
904
|
});
|
|
@@ -946,7 +945,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
946
945
|
return handleQueryError(error);
|
|
947
946
|
}
|
|
948
947
|
function handleQueryResult(result) {
|
|
949
|
-
return
|
|
948
|
+
return _chunk2L5AG5Y5js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
950
949
|
}
|
|
951
950
|
function handleQueryError(error) {
|
|
952
951
|
handleError(error);
|
|
@@ -958,12 +957,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
958
957
|
}
|
|
959
958
|
function staticContextToResponse(context) {
|
|
960
959
|
let headers = getDocumentHeaders(context, build);
|
|
961
|
-
if (
|
|
960
|
+
if (_chunk2L5AG5Y5js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
962
961
|
return new Response(null, { status: context.statusCode, headers });
|
|
963
962
|
}
|
|
964
963
|
if (context.errors) {
|
|
965
964
|
Object.values(context.errors).forEach((err) => {
|
|
966
|
-
if (!
|
|
965
|
+
if (!_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
967
966
|
handleError(err);
|
|
968
967
|
}
|
|
969
968
|
});
|
|
@@ -1027,15 +1026,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1027
1026
|
headers.delete("Location");
|
|
1028
1027
|
headers.set("Content-Type", "text/x-script");
|
|
1029
1028
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1030
|
-
result: request.method === "GET" ? { [
|
|
1029
|
+
result: request.method === "GET" ? { [_chunk2L5AG5Y5js.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1031
1030
|
headers,
|
|
1032
|
-
status:
|
|
1031
|
+
status: _chunk2L5AG5Y5js.SINGLE_FETCH_REDIRECT_STATUS
|
|
1033
1032
|
});
|
|
1034
1033
|
}
|
|
1035
1034
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1036
1035
|
let redirect2 = headers.get("Location");
|
|
1037
1036
|
if (basename) {
|
|
1038
|
-
redirect2 =
|
|
1037
|
+
redirect2 = _chunk2L5AG5Y5js.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1039
1038
|
}
|
|
1040
1039
|
return {
|
|
1041
1040
|
redirect: redirect2,
|
|
@@ -1061,7 +1060,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1061
1060
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1062
1061
|
);
|
|
1063
1062
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1064
|
-
return
|
|
1063
|
+
return _chunk2L5AG5Y5js.encode.call(void 0, data2, {
|
|
1065
1064
|
signal: controller.signal,
|
|
1066
1065
|
plugins: [
|
|
1067
1066
|
(value) => {
|
|
@@ -1069,12 +1068,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1069
1068
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1070
1069
|
return ["SanitizedError", name, message, stack];
|
|
1071
1070
|
}
|
|
1072
|
-
if (value instanceof
|
|
1071
|
+
if (value instanceof _chunk2L5AG5Y5js.ErrorResponseImpl) {
|
|
1073
1072
|
let { data: data3, status, statusText } = value;
|
|
1074
1073
|
return ["ErrorResponse", data3, status, statusText];
|
|
1075
1074
|
}
|
|
1076
|
-
if (value && typeof value === "object" &&
|
|
1077
|
-
return ["SingleFetchRedirect", value[
|
|
1075
|
+
if (value && typeof value === "object" && _chunk2L5AG5Y5js.SingleFetchRedirectSymbol in value) {
|
|
1076
|
+
return ["SingleFetchRedirect", value[_chunk2L5AG5Y5js.SingleFetchRedirectSymbol]];
|
|
1078
1077
|
}
|
|
1079
1078
|
}
|
|
1080
1079
|
],
|
|
@@ -1097,19 +1096,46 @@ function derive(build, mode) {
|
|
|
1097
1096
|
let routes = createRoutes(build.routes);
|
|
1098
1097
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1099
1098
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1100
|
-
let staticHandler =
|
|
1101
|
-
basename: build.basename
|
|
1102
|
-
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1099
|
+
let staticHandler = _chunk2L5AG5Y5js.createStaticHandler.call(void 0, dataRoutes, {
|
|
1100
|
+
basename: build.basename
|
|
1103
1101
|
});
|
|
1104
1102
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1105
1103
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1106
1104
|
console.error(
|
|
1107
1105
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1108
|
-
|
|
1106
|
+
_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1109
1107
|
);
|
|
1110
1108
|
}
|
|
1111
1109
|
});
|
|
1112
|
-
|
|
1110
|
+
return {
|
|
1111
|
+
routes,
|
|
1112
|
+
dataRoutes,
|
|
1113
|
+
serverMode,
|
|
1114
|
+
staticHandler,
|
|
1115
|
+
errorHandler
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
var createRequestHandler = (build, mode) => {
|
|
1119
|
+
let _build;
|
|
1120
|
+
let routes;
|
|
1121
|
+
let serverMode;
|
|
1122
|
+
let staticHandler;
|
|
1123
|
+
let errorHandler;
|
|
1124
|
+
return async function requestHandler(request, initialContext) {
|
|
1125
|
+
_build = typeof build === "function" ? await build() : build;
|
|
1126
|
+
if (typeof build === "function") {
|
|
1127
|
+
let derived = derive(_build, mode);
|
|
1128
|
+
routes = derived.routes;
|
|
1129
|
+
serverMode = derived.serverMode;
|
|
1130
|
+
staticHandler = derived.staticHandler;
|
|
1131
|
+
errorHandler = derived.errorHandler;
|
|
1132
|
+
} else if (!routes || !serverMode || !staticHandler || !errorHandler) {
|
|
1133
|
+
let derived = derive(_build, mode);
|
|
1134
|
+
routes = derived.routes;
|
|
1135
|
+
serverMode = derived.serverMode;
|
|
1136
|
+
staticHandler = derived.staticHandler;
|
|
1137
|
+
errorHandler = derived.errorHandler;
|
|
1138
|
+
}
|
|
1113
1139
|
let params = {};
|
|
1114
1140
|
let loadContext;
|
|
1115
1141
|
let handleError = (error) => {
|
|
@@ -1122,37 +1148,37 @@ function derive(build, mode) {
|
|
|
1122
1148
|
request
|
|
1123
1149
|
});
|
|
1124
1150
|
};
|
|
1125
|
-
if (
|
|
1126
|
-
if (initialContext && !(initialContext instanceof
|
|
1151
|
+
if (_build.future.v8_middleware) {
|
|
1152
|
+
if (initialContext && !(initialContext instanceof _chunk2L5AG5Y5js.RouterContextProvider)) {
|
|
1127
1153
|
let error = new Error(
|
|
1128
1154
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1129
1155
|
);
|
|
1130
1156
|
handleError(error);
|
|
1131
1157
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1132
1158
|
}
|
|
1133
|
-
loadContext = initialContext || new (0,
|
|
1159
|
+
loadContext = initialContext || new (0, _chunk2L5AG5Y5js.RouterContextProvider)();
|
|
1134
1160
|
} else {
|
|
1135
1161
|
loadContext = initialContext || {};
|
|
1136
1162
|
}
|
|
1137
1163
|
let url = new URL(request.url);
|
|
1138
|
-
let normalizedBasename =
|
|
1164
|
+
let normalizedBasename = _build.basename || "/";
|
|
1139
1165
|
let normalizedPath = url.pathname;
|
|
1140
|
-
if (
|
|
1166
|
+
if (_chunk2L5AG5Y5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1141
1167
|
normalizedPath = normalizedBasename;
|
|
1142
1168
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1143
1169
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1144
1170
|
}
|
|
1145
|
-
if (
|
|
1171
|
+
if (_chunk2L5AG5Y5js.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1146
1172
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1147
1173
|
}
|
|
1148
1174
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1149
|
-
if (!
|
|
1175
|
+
if (!_build.ssr) {
|
|
1150
1176
|
let decodedPath = decodeURI(normalizedPath);
|
|
1151
1177
|
if (normalizedBasename !== "/") {
|
|
1152
|
-
let strippedPath =
|
|
1178
|
+
let strippedPath = _chunk2L5AG5Y5js.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1153
1179
|
if (strippedPath == null) {
|
|
1154
1180
|
errorHandler(
|
|
1155
|
-
new (0,
|
|
1181
|
+
new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(
|
|
1156
1182
|
404,
|
|
1157
1183
|
"Not Found",
|
|
1158
1184
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
@@ -1170,12 +1196,12 @@ function derive(build, mode) {
|
|
|
1170
1196
|
}
|
|
1171
1197
|
decodedPath = strippedPath;
|
|
1172
1198
|
}
|
|
1173
|
-
if (
|
|
1199
|
+
if (_build.prerender.length === 0) {
|
|
1174
1200
|
isSpaMode = true;
|
|
1175
|
-
} else if (!
|
|
1201
|
+
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1176
1202
|
if (url.pathname.endsWith(".data")) {
|
|
1177
1203
|
errorHandler(
|
|
1178
|
-
new (0,
|
|
1204
|
+
new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(
|
|
1179
1205
|
404,
|
|
1180
1206
|
"Not Found",
|
|
1181
1207
|
`Refusing to SSR the path \`${decodedPath}\` because \`ssr:false\` is set and the path is not included in the \`prerender\` config, so in production the path will be a 404.`
|
|
@@ -1195,20 +1221,20 @@ function derive(build, mode) {
|
|
|
1195
1221
|
}
|
|
1196
1222
|
}
|
|
1197
1223
|
}
|
|
1198
|
-
let manifestUrl =
|
|
1199
|
-
|
|
1224
|
+
let manifestUrl = _chunk2L5AG5Y5js.getManifestPath.call(void 0,
|
|
1225
|
+
_build.routeDiscovery.manifestPath,
|
|
1200
1226
|
normalizedBasename
|
|
1201
1227
|
);
|
|
1202
1228
|
if (url.pathname === manifestUrl) {
|
|
1203
1229
|
try {
|
|
1204
|
-
let res = await handleManifestRequest(
|
|
1230
|
+
let res = await handleManifestRequest(_build, routes, url);
|
|
1205
1231
|
return res;
|
|
1206
1232
|
} catch (e) {
|
|
1207
1233
|
handleError(e);
|
|
1208
1234
|
return new Response("Unknown Server Error", { status: 500 });
|
|
1209
1235
|
}
|
|
1210
1236
|
}
|
|
1211
|
-
let matches = matchServerRoutes(routes, normalizedPath,
|
|
1237
|
+
let matches = matchServerRoutes(routes, normalizedPath, _build.basename);
|
|
1212
1238
|
if (matches && matches.length > 0) {
|
|
1213
1239
|
Object.assign(params, matches[0].params);
|
|
1214
1240
|
}
|
|
@@ -1219,36 +1245,36 @@ function derive(build, mode) {
|
|
|
1219
1245
|
let singleFetchMatches = matchServerRoutes(
|
|
1220
1246
|
routes,
|
|
1221
1247
|
handlerUrl.pathname,
|
|
1222
|
-
|
|
1248
|
+
_build.basename
|
|
1223
1249
|
);
|
|
1224
1250
|
response = await handleSingleFetchRequest(
|
|
1225
1251
|
serverMode,
|
|
1226
|
-
|
|
1252
|
+
_build,
|
|
1227
1253
|
staticHandler,
|
|
1228
1254
|
request,
|
|
1229
1255
|
handlerUrl,
|
|
1230
1256
|
loadContext,
|
|
1231
1257
|
handleError
|
|
1232
1258
|
);
|
|
1233
|
-
if (
|
|
1259
|
+
if (_chunk2L5AG5Y5js.isRedirectResponse.call(void 0, response)) {
|
|
1234
1260
|
response = generateSingleFetchRedirectResponse(
|
|
1235
1261
|
response,
|
|
1236
1262
|
request,
|
|
1237
|
-
|
|
1263
|
+
_build,
|
|
1238
1264
|
serverMode
|
|
1239
1265
|
);
|
|
1240
1266
|
}
|
|
1241
|
-
if (
|
|
1242
|
-
response = await
|
|
1267
|
+
if (_build.entry.module.handleDataRequest) {
|
|
1268
|
+
response = await _build.entry.module.handleDataRequest(response, {
|
|
1243
1269
|
context: loadContext,
|
|
1244
1270
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1245
1271
|
request
|
|
1246
1272
|
});
|
|
1247
|
-
if (
|
|
1273
|
+
if (_chunk2L5AG5Y5js.isRedirectResponse.call(void 0, response)) {
|
|
1248
1274
|
response = generateSingleFetchRedirectResponse(
|
|
1249
1275
|
response,
|
|
1250
1276
|
request,
|
|
1251
|
-
|
|
1277
|
+
_build,
|
|
1252
1278
|
serverMode
|
|
1253
1279
|
);
|
|
1254
1280
|
}
|
|
@@ -1256,7 +1282,7 @@ function derive(build, mode) {
|
|
|
1256
1282
|
} else if (!isSpaMode && matches && matches[matches.length - 1].route.module.default == null && matches[matches.length - 1].route.module.ErrorBoundary == null) {
|
|
1257
1283
|
response = await handleResourceRequest(
|
|
1258
1284
|
serverMode,
|
|
1259
|
-
|
|
1285
|
+
_build,
|
|
1260
1286
|
staticHandler,
|
|
1261
1287
|
matches.slice(-1)[0].route.id,
|
|
1262
1288
|
request,
|
|
@@ -1266,14 +1292,14 @@ function derive(build, mode) {
|
|
|
1266
1292
|
} else {
|
|
1267
1293
|
let { pathname } = url;
|
|
1268
1294
|
let criticalCss = void 0;
|
|
1269
|
-
if (
|
|
1270
|
-
criticalCss = await
|
|
1295
|
+
if (_build.unstable_getCriticalCss) {
|
|
1296
|
+
criticalCss = await _build.unstable_getCriticalCss({ pathname });
|
|
1271
1297
|
} else if (mode === "development" /* Development */ && _optionalChain([getDevServerHooks, 'call', _10 => _10(), 'optionalAccess', _11 => _11.getCriticalCss])) {
|
|
1272
1298
|
criticalCss = await _optionalChain([getDevServerHooks, 'call', _12 => _12(), 'optionalAccess', _13 => _13.getCriticalCss, 'optionalCall', _14 => _14(pathname)]);
|
|
1273
1299
|
}
|
|
1274
1300
|
response = await handleDocumentRequest(
|
|
1275
1301
|
serverMode,
|
|
1276
|
-
|
|
1302
|
+
_build,
|
|
1277
1303
|
staticHandler,
|
|
1278
1304
|
request,
|
|
1279
1305
|
loadContext,
|
|
@@ -1291,47 +1317,6 @@ function derive(build, mode) {
|
|
|
1291
1317
|
}
|
|
1292
1318
|
return response;
|
|
1293
1319
|
};
|
|
1294
|
-
if (build.entry.module.unstable_instrumentations) {
|
|
1295
|
-
requestHandler = _chunkZOHTOBOTjs.instrumentHandler.call(void 0,
|
|
1296
|
-
requestHandler,
|
|
1297
|
-
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1298
|
-
);
|
|
1299
|
-
}
|
|
1300
|
-
return {
|
|
1301
|
-
routes,
|
|
1302
|
-
dataRoutes,
|
|
1303
|
-
serverMode,
|
|
1304
|
-
staticHandler,
|
|
1305
|
-
errorHandler,
|
|
1306
|
-
requestHandler
|
|
1307
|
-
};
|
|
1308
|
-
}
|
|
1309
|
-
var createRequestHandler = (build, mode) => {
|
|
1310
|
-
let _build;
|
|
1311
|
-
let routes;
|
|
1312
|
-
let serverMode;
|
|
1313
|
-
let staticHandler;
|
|
1314
|
-
let errorHandler;
|
|
1315
|
-
let _requestHandler;
|
|
1316
|
-
return async function requestHandler(request, initialContext) {
|
|
1317
|
-
_build = typeof build === "function" ? await build() : build;
|
|
1318
|
-
if (typeof build === "function") {
|
|
1319
|
-
let derived = derive(_build, mode);
|
|
1320
|
-
routes = derived.routes;
|
|
1321
|
-
serverMode = derived.serverMode;
|
|
1322
|
-
staticHandler = derived.staticHandler;
|
|
1323
|
-
errorHandler = derived.errorHandler;
|
|
1324
|
-
_requestHandler = derived.requestHandler;
|
|
1325
|
-
} else if (!routes || !serverMode || !staticHandler || !errorHandler || !_requestHandler) {
|
|
1326
|
-
let derived = derive(_build, mode);
|
|
1327
|
-
routes = derived.routes;
|
|
1328
|
-
serverMode = derived.serverMode;
|
|
1329
|
-
staticHandler = derived.staticHandler;
|
|
1330
|
-
errorHandler = derived.errorHandler;
|
|
1331
|
-
_requestHandler = derived.requestHandler;
|
|
1332
|
-
}
|
|
1333
|
-
return _requestHandler(request, initialContext);
|
|
1334
|
-
};
|
|
1335
1320
|
};
|
|
1336
1321
|
async function handleManifestRequest(build, routes, url) {
|
|
1337
1322
|
if (build.assets.version !== url.searchParams.get("version")) {
|
|
@@ -1404,7 +1389,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1404
1389
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1405
1390
|
try {
|
|
1406
1391
|
let innerResult = await query(request);
|
|
1407
|
-
if (!
|
|
1392
|
+
if (!_chunk2L5AG5Y5js.isResponse.call(void 0, innerResult)) {
|
|
1408
1393
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1409
1394
|
}
|
|
1410
1395
|
return innerResult;
|
|
@@ -1414,7 +1399,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1414
1399
|
}
|
|
1415
1400
|
} : void 0
|
|
1416
1401
|
});
|
|
1417
|
-
if (!
|
|
1402
|
+
if (!_chunk2L5AG5Y5js.isResponse.call(void 0, result)) {
|
|
1418
1403
|
result = await renderHtml(result, isSpaMode);
|
|
1419
1404
|
}
|
|
1420
1405
|
return result;
|
|
@@ -1429,7 +1414,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1429
1414
|
}
|
|
1430
1415
|
if (context.errors) {
|
|
1431
1416
|
Object.values(context.errors).forEach((err) => {
|
|
1432
|
-
if (!
|
|
1417
|
+
if (!_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1433
1418
|
handleError(err);
|
|
1434
1419
|
}
|
|
1435
1420
|
});
|
|
@@ -1481,10 +1466,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1481
1466
|
} catch (error) {
|
|
1482
1467
|
handleError(error);
|
|
1483
1468
|
let errorForSecondRender = error;
|
|
1484
|
-
if (
|
|
1469
|
+
if (_chunk2L5AG5Y5js.isResponse.call(void 0, error)) {
|
|
1485
1470
|
try {
|
|
1486
1471
|
let data2 = await unwrapResponse(error);
|
|
1487
|
-
errorForSecondRender = new (0,
|
|
1472
|
+
errorForSecondRender = new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(
|
|
1488
1473
|
error.status,
|
|
1489
1474
|
error.statusText,
|
|
1490
1475
|
data2
|
|
@@ -1492,7 +1477,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1492
1477
|
} catch (e) {
|
|
1493
1478
|
}
|
|
1494
1479
|
}
|
|
1495
|
-
context =
|
|
1480
|
+
context = _chunk2L5AG5Y5js.getStaticContextFromError.call(void 0,
|
|
1496
1481
|
staticHandler.dataRoutes,
|
|
1497
1482
|
context,
|
|
1498
1483
|
errorForSecondRender
|
|
@@ -1551,7 +1536,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1551
1536
|
return handleQueryRouteError(error);
|
|
1552
1537
|
}
|
|
1553
1538
|
function handleQueryRouteResult(result) {
|
|
1554
|
-
if (
|
|
1539
|
+
if (_chunk2L5AG5Y5js.isResponse.call(void 0, result)) {
|
|
1555
1540
|
return result;
|
|
1556
1541
|
}
|
|
1557
1542
|
if (typeof result === "string") {
|
|
@@ -1560,10 +1545,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1560
1545
|
return Response.json(result);
|
|
1561
1546
|
}
|
|
1562
1547
|
function handleQueryRouteError(error) {
|
|
1563
|
-
if (
|
|
1548
|
+
if (_chunk2L5AG5Y5js.isResponse.call(void 0, error)) {
|
|
1564
1549
|
return error;
|
|
1565
1550
|
}
|
|
1566
|
-
if (
|
|
1551
|
+
if (_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, error)) {
|
|
1567
1552
|
handleError(error);
|
|
1568
1553
|
return errorResponseToJson(error, serverMode);
|
|
1569
1554
|
}
|
|
@@ -1686,7 +1671,7 @@ function createSessionStorage({
|
|
|
1686
1671
|
};
|
|
1687
1672
|
}
|
|
1688
1673
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1689
|
-
|
|
1674
|
+
_chunk2L5AG5Y5js.warnOnce.call(void 0,
|
|
1690
1675
|
cookie.isSigned,
|
|
1691
1676
|
`The "${cookie.name}" cookie is not signed, but session cookies should be signed to prevent tampering on the client before they are sent back to the server. See https://reactrouter.com/explanation/sessions-and-cookies#signing-cookies for more information.`
|
|
1692
1677
|
);
|
|
@@ -1793,12 +1778,12 @@ function getHydrationData({
|
|
|
1793
1778
|
...state,
|
|
1794
1779
|
loaderData: { ...state.loaderData }
|
|
1795
1780
|
};
|
|
1796
|
-
let initialMatches =
|
|
1781
|
+
let initialMatches = _chunk2L5AG5Y5js.matchRoutes.call(void 0, routes, location2, basename);
|
|
1797
1782
|
if (initialMatches) {
|
|
1798
1783
|
for (let match of initialMatches) {
|
|
1799
1784
|
let routeId = match.route.id;
|
|
1800
1785
|
let routeInfo = getRouteInfo(routeId);
|
|
1801
|
-
if (
|
|
1786
|
+
if (_chunk2L5AG5Y5js.shouldHydrateRouteLoader.call(void 0,
|
|
1802
1787
|
routeId,
|
|
1803
1788
|
routeInfo.clientLoader,
|
|
1804
1789
|
routeInfo.hasLoader,
|
|
@@ -1876,7 +1861,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1876
1861
|
}
|
|
1877
1862
|
}
|
|
1878
1863
|
);
|
|
1879
|
-
if (
|
|
1864
|
+
if (_chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, error)) {
|
|
1880
1865
|
return /* @__PURE__ */ React.default.createElement(
|
|
1881
1866
|
ErrorWrapper,
|
|
1882
1867
|
{
|
|
@@ -1884,7 +1869,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1884
1869
|
title: "Unhandled Thrown Response!"
|
|
1885
1870
|
},
|
|
1886
1871
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1887
|
-
|
|
1872
|
+
_chunk2L5AG5Y5js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1888
1873
|
);
|
|
1889
1874
|
}
|
|
1890
1875
|
let errorInstance;
|
|
@@ -1910,7 +1895,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1910
1895
|
function RSCDefaultRootErrorBoundary({
|
|
1911
1896
|
hasRootLayout
|
|
1912
1897
|
}) {
|
|
1913
|
-
let error =
|
|
1898
|
+
let error = _chunk2L5AG5Y5js.useRouteError.call(void 0, );
|
|
1914
1899
|
if (hasRootLayout === void 0) {
|
|
1915
1900
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1916
1901
|
}
|
|
@@ -2058,7 +2043,7 @@ function createRouterFromPayload({
|
|
|
2058
2043
|
populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
|
|
2059
2044
|
let patches = /* @__PURE__ */ new Map();
|
|
2060
2045
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
2061
|
-
|
|
2046
|
+
_chunk2L5AG5Y5js.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
2062
2047
|
if (!patches.has(patch.parentId)) {
|
|
2063
2048
|
patches.set(patch.parentId, []);
|
|
2064
2049
|
}
|
|
@@ -2080,11 +2065,11 @@ function createRouterFromPayload({
|
|
|
2080
2065
|
}
|
|
2081
2066
|
return [route];
|
|
2082
2067
|
}, []);
|
|
2083
|
-
globalVar.__reactRouterDataRouter =
|
|
2068
|
+
globalVar.__reactRouterDataRouter = _chunk2L5AG5Y5js.createRouter.call(void 0, {
|
|
2084
2069
|
routes,
|
|
2085
2070
|
getContext,
|
|
2086
2071
|
basename: payload.basename,
|
|
2087
|
-
history:
|
|
2072
|
+
history: _chunk2L5AG5Y5js.createBrowserHistory.call(void 0, ),
|
|
2088
2073
|
hydrationData: getHydrationData({
|
|
2089
2074
|
state: {
|
|
2090
2075
|
loaderData: payload.loaderData,
|
|
@@ -2094,7 +2079,7 @@ function createRouterFromPayload({
|
|
|
2094
2079
|
routes,
|
|
2095
2080
|
getRouteInfo: (routeId) => {
|
|
2096
2081
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2097
|
-
|
|
2082
|
+
_chunk2L5AG5Y5js.invariant.call(void 0, match, "Route not found in payload");
|
|
2098
2083
|
return {
|
|
2099
2084
|
clientLoader: match.clientLoader,
|
|
2100
2085
|
hasLoader: match.hasLoader,
|
|
@@ -2192,9 +2177,9 @@ function createRouterFromPayload({
|
|
|
2192
2177
|
routeModules: globalVar.__reactRouterRouteModules
|
|
2193
2178
|
};
|
|
2194
2179
|
}
|
|
2195
|
-
var renderedRoutesContext =
|
|
2180
|
+
var renderedRoutesContext = _chunk2L5AG5Y5js.createContext.call(void 0, );
|
|
2196
2181
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2197
|
-
let dataStrategy =
|
|
2182
|
+
let dataStrategy = _chunk2L5AG5Y5js.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2198
2183
|
getRouter,
|
|
2199
2184
|
(match) => {
|
|
2200
2185
|
let M = match;
|
|
@@ -2248,20 +2233,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2248
2233
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2249
2234
|
return async (args, basename, targetRoutes) => {
|
|
2250
2235
|
let { request, context } = args;
|
|
2251
|
-
let url =
|
|
2236
|
+
let url = _chunk2L5AG5Y5js.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2252
2237
|
if (request.method === "GET") {
|
|
2253
|
-
url =
|
|
2238
|
+
url = _chunk2L5AG5Y5js.stripIndexParam.call(void 0, url);
|
|
2254
2239
|
if (targetRoutes) {
|
|
2255
2240
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2256
2241
|
}
|
|
2257
2242
|
}
|
|
2258
2243
|
let res = await fetchImplementation(
|
|
2259
|
-
new Request(url, await
|
|
2244
|
+
new Request(url, await _chunk2L5AG5Y5js.createRequestInit.call(void 0, request))
|
|
2260
2245
|
);
|
|
2261
2246
|
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
2262
|
-
throw new (0,
|
|
2247
|
+
throw new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
2263
2248
|
}
|
|
2264
|
-
|
|
2249
|
+
_chunk2L5AG5Y5js.invariant.call(void 0, res.body, "No response body to decode");
|
|
2265
2250
|
try {
|
|
2266
2251
|
const payload = await createFromReadableStream(res.body, {
|
|
2267
2252
|
temporaryReferences: void 0
|
|
@@ -2285,7 +2270,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2285
2270
|
}
|
|
2286
2271
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2287
2272
|
let results = { routes: {} };
|
|
2288
|
-
const dataKey =
|
|
2273
|
+
const dataKey = _chunk2L5AG5Y5js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2289
2274
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2290
2275
|
results.routes[routeId] = { data: data2 };
|
|
2291
2276
|
}
|
|
@@ -2318,7 +2303,7 @@ function RSCHydratedRouter({
|
|
|
2318
2303
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
2319
2304
|
);
|
|
2320
2305
|
React4.useEffect(() => {
|
|
2321
|
-
|
|
2306
|
+
_chunk2L5AG5Y5js.setIsHydrated.call(void 0, );
|
|
2322
2307
|
}, []);
|
|
2323
2308
|
React4.useLayoutEffect(() => {
|
|
2324
2309
|
const globalVar = window;
|
|
@@ -2405,7 +2390,7 @@ function RSCHydratedRouter({
|
|
|
2405
2390
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2406
2391
|
routeModules
|
|
2407
2392
|
};
|
|
2408
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2393
|
+
return /* @__PURE__ */ React4.createElement(_chunk2L5AG5Y5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunk2L5AG5Y5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkFGRCWJDIjs.UNSTABLE_TransitionEnabledRouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2409
2394
|
}
|
|
2410
2395
|
function createRouteFromServerManifest(match, payload) {
|
|
2411
2396
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2416,7 +2401,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2416
2401
|
// the server loader flow regardless of whether the client loader calls
|
|
2417
2402
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2418
2403
|
match.hasComponent && !match.element;
|
|
2419
|
-
|
|
2404
|
+
_chunk2L5AG5Y5js.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
2420
2405
|
populateRSCRouteModules(window.__reactRouterRouteModules, match);
|
|
2421
2406
|
let dataRoute = {
|
|
2422
2407
|
id: match.id,
|
|
@@ -2467,7 +2452,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2467
2452
|
return await callSingleFetch(singleFetch);
|
|
2468
2453
|
}
|
|
2469
2454
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2470
|
-
throw
|
|
2455
|
+
throw _chunk2L5AG5Y5js.noActionDefinedError.call(void 0, "action", match.id);
|
|
2471
2456
|
},
|
|
2472
2457
|
path: match.path,
|
|
2473
2458
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2480,7 +2465,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2480
2465
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2481
2466
|
};
|
|
2482
2467
|
if (typeof dataRoute.loader === "function") {
|
|
2483
|
-
dataRoute.loader.hydrate =
|
|
2468
|
+
dataRoute.loader.hydrate = _chunk2L5AG5Y5js.shouldHydrateRouteLoader.call(void 0,
|
|
2484
2469
|
match.id,
|
|
2485
2470
|
match.clientLoader,
|
|
2486
2471
|
match.hasLoader,
|
|
@@ -2490,7 +2475,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2490
2475
|
return dataRoute;
|
|
2491
2476
|
}
|
|
2492
2477
|
function callSingleFetch(singleFetch) {
|
|
2493
|
-
|
|
2478
|
+
_chunk2L5AG5Y5js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2494
2479
|
return singleFetch();
|
|
2495
2480
|
}
|
|
2496
2481
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2498,7 +2483,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2498
2483
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2499
2484
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2500
2485
|
console.error(msg);
|
|
2501
|
-
throw new (0,
|
|
2486
|
+
throw new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2502
2487
|
}
|
|
2503
2488
|
}
|
|
2504
2489
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2746,7 +2731,7 @@ async function routeRSCServerRequest({
|
|
|
2746
2731
|
const payload = await createFromReadableStream(
|
|
2747
2732
|
detectRedirectResponse.body
|
|
2748
2733
|
);
|
|
2749
|
-
if (serverResponse.status ===
|
|
2734
|
+
if (serverResponse.status === _chunk2L5AG5Y5js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2750
2735
|
const headers2 = new Headers(serverResponse.headers);
|
|
2751
2736
|
headers2.delete("Content-Encoding");
|
|
2752
2737
|
headers2.delete("Content-Length");
|
|
@@ -2781,7 +2766,7 @@ async function routeRSCServerRequest({
|
|
|
2781
2766
|
return reason;
|
|
2782
2767
|
}
|
|
2783
2768
|
try {
|
|
2784
|
-
const status =
|
|
2769
|
+
const status = _chunk2L5AG5Y5js.isRouteErrorResponse.call(void 0, reason) ? reason.status : 500;
|
|
2785
2770
|
const html = await renderHTML(() => {
|
|
2786
2771
|
const decoded = Promise.resolve(
|
|
2787
2772
|
createFromReadableStream(createStream())
|
|
@@ -2847,7 +2832,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2847
2832
|
if (payload.type !== "render") return null;
|
|
2848
2833
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2849
2834
|
for (const match of payload.matches) {
|
|
2850
|
-
if (
|
|
2835
|
+
if (_chunk2L5AG5Y5js.shouldHydrateRouteLoader.call(void 0,
|
|
2851
2836
|
match.id,
|
|
2852
2837
|
match.clientLoader,
|
|
2853
2838
|
match.hasLoader,
|
|
@@ -2887,7 +2872,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2887
2872
|
}
|
|
2888
2873
|
}))
|
|
2889
2874
|
};
|
|
2890
|
-
const router =
|
|
2875
|
+
const router = _chunkFGRCWJDIjs.createStaticRouter.call(void 0,
|
|
2891
2876
|
payload.matches.reduceRight((previous, match) => {
|
|
2892
2877
|
const route = {
|
|
2893
2878
|
id: match.id,
|
|
@@ -2931,8 +2916,8 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2931
2916
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2932
2917
|
routeModules: createRSCRouteModules(payload)
|
|
2933
2918
|
};
|
|
2934
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2935
|
-
|
|
2919
|
+
return /* @__PURE__ */ React5.createElement(_chunk2L5AG5Y5js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunk2L5AG5Y5js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2920
|
+
_chunkFGRCWJDIjs.StaticRouterProvider,
|
|
2936
2921
|
{
|
|
2937
2922
|
context,
|
|
2938
2923
|
router,
|
|
@@ -2990,7 +2975,7 @@ function deserializeErrors(errors) {
|
|
|
2990
2975
|
let serialized = {};
|
|
2991
2976
|
for (let [key, val] of entries) {
|
|
2992
2977
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2993
|
-
serialized[key] = new (0,
|
|
2978
|
+
serialized[key] = new (0, _chunk2L5AG5Y5js.ErrorResponseImpl)(
|
|
2994
2979
|
val.status,
|
|
2995
2980
|
val.statusText,
|
|
2996
2981
|
val.data,
|
|
@@ -3149,4 +3134,5 @@ function deserializeErrors(errors) {
|
|
|
3149
3134
|
|
|
3150
3135
|
|
|
3151
3136
|
|
|
3152
|
-
|
|
3137
|
+
|
|
3138
|
+
exports.Await = _chunkFGRCWJDIjs.Await; exports.BrowserRouter = _chunkFGRCWJDIjs.BrowserRouter; exports.Form = _chunkFGRCWJDIjs.Form; exports.HashRouter = _chunkFGRCWJDIjs.HashRouter; exports.IDLE_BLOCKER = _chunk2L5AG5Y5js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunk2L5AG5Y5js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunk2L5AG5Y5js.IDLE_NAVIGATION; exports.Link = _chunkFGRCWJDIjs.Link; exports.Links = _chunk2L5AG5Y5js.Links; exports.MemoryRouter = _chunkFGRCWJDIjs.MemoryRouter; exports.Meta = _chunk2L5AG5Y5js.Meta; exports.NavLink = _chunkFGRCWJDIjs.NavLink; exports.Navigate = _chunkFGRCWJDIjs.Navigate; exports.NavigationType = _chunk2L5AG5Y5js.Action; exports.Outlet = _chunkFGRCWJDIjs.Outlet; exports.PrefetchPageLinks = _chunk2L5AG5Y5js.PrefetchPageLinks; exports.Route = _chunkFGRCWJDIjs.Route; exports.Router = _chunkFGRCWJDIjs.Router; exports.RouterContextProvider = _chunk2L5AG5Y5js.RouterContextProvider; exports.RouterProvider = _chunkFGRCWJDIjs.RouterProvider; exports.Routes = _chunkFGRCWJDIjs.Routes; exports.Scripts = _chunk2L5AG5Y5js.Scripts; exports.ScrollRestoration = _chunkFGRCWJDIjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkFGRCWJDIjs.StaticRouter; exports.StaticRouterProvider = _chunkFGRCWJDIjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunk2L5AG5Y5js.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunk2L5AG5Y5js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunk2L5AG5Y5js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunk2L5AG5Y5js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunk2L5AG5Y5js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunk2L5AG5Y5js.FrameworkContext; exports.UNSAFE_LocationContext = _chunk2L5AG5Y5js.LocationContext; exports.UNSAFE_NavigationContext = _chunk2L5AG5Y5js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunk2L5AG5Y5js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunk2L5AG5Y5js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunk2L5AG5Y5js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunk2L5AG5Y5js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkFGRCWJDIjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkFGRCWJDIjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkFGRCWJDIjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunk2L5AG5Y5js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunk2L5AG5Y5js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunk2L5AG5Y5js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunk2L5AG5Y5js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunk2L5AG5Y5js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunk2L5AG5Y5js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunk2L5AG5Y5js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkFGRCWJDIjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunk2L5AG5Y5js.invariant; exports.UNSAFE_mapRouteProperties = _chunkFGRCWJDIjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunk2L5AG5Y5js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunk2L5AG5Y5js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkFGRCWJDIjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkFGRCWJDIjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkFGRCWJDIjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkFGRCWJDIjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkFGRCWJDIjs.createBrowserRouter; exports.createContext = _chunk2L5AG5Y5js.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkFGRCWJDIjs.createHashRouter; exports.createMemoryRouter = _chunkFGRCWJDIjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunk2L5AG5Y5js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkFGRCWJDIjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkFGRCWJDIjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkFGRCWJDIjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkFGRCWJDIjs.createStaticHandler; exports.createStaticRouter = _chunkFGRCWJDIjs.createStaticRouter; exports.data = _chunk2L5AG5Y5js.data; exports.generatePath = _chunk2L5AG5Y5js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunk2L5AG5Y5js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunk2L5AG5Y5js.matchPath; exports.matchRoutes = _chunk2L5AG5Y5js.matchRoutes; exports.parsePath = _chunk2L5AG5Y5js.parsePath; exports.redirect = _chunk2L5AG5Y5js.redirect; exports.redirectDocument = _chunk2L5AG5Y5js.redirectDocument; exports.renderMatches = _chunkFGRCWJDIjs.renderMatches; exports.replace = _chunk2L5AG5Y5js.replace; exports.resolvePath = _chunk2L5AG5Y5js.resolvePath; exports.unstable_HistoryRouter = _chunkFGRCWJDIjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkFGRCWJDIjs.usePrompt; exports.unstable_useRoute = _chunk2L5AG5Y5js.useRoute; exports.useActionData = _chunk2L5AG5Y5js.useActionData; exports.useAsyncError = _chunk2L5AG5Y5js.useAsyncError; exports.useAsyncValue = _chunk2L5AG5Y5js.useAsyncValue; exports.useBeforeUnload = _chunkFGRCWJDIjs.useBeforeUnload; exports.useBlocker = _chunk2L5AG5Y5js.useBlocker; exports.useFetcher = _chunkFGRCWJDIjs.useFetcher; exports.useFetchers = _chunkFGRCWJDIjs.useFetchers; exports.useFormAction = _chunkFGRCWJDIjs.useFormAction; exports.useHref = _chunk2L5AG5Y5js.useHref; exports.useInRouterContext = _chunk2L5AG5Y5js.useInRouterContext; exports.useLinkClickHandler = _chunkFGRCWJDIjs.useLinkClickHandler; exports.useLoaderData = _chunk2L5AG5Y5js.useLoaderData; exports.useLocation = _chunk2L5AG5Y5js.useLocation; exports.useMatch = _chunk2L5AG5Y5js.useMatch; exports.useMatches = _chunk2L5AG5Y5js.useMatches; exports.useNavigate = _chunk2L5AG5Y5js.useNavigate; exports.useNavigation = _chunk2L5AG5Y5js.useNavigation; exports.useNavigationType = _chunk2L5AG5Y5js.useNavigationType; exports.useOutlet = _chunk2L5AG5Y5js.useOutlet; exports.useOutletContext = _chunk2L5AG5Y5js.useOutletContext; exports.useParams = _chunk2L5AG5Y5js.useParams; exports.useResolvedPath = _chunk2L5AG5Y5js.useResolvedPath; exports.useRevalidator = _chunk2L5AG5Y5js.useRevalidator; exports.useRouteError = _chunk2L5AG5Y5js.useRouteError; exports.useRouteLoaderData = _chunk2L5AG5Y5js.useRouteLoaderData; exports.useRoutes = _chunk2L5AG5Y5js.useRoutes; exports.useSearchParams = _chunkFGRCWJDIjs.useSearchParams; exports.useSubmit = _chunkFGRCWJDIjs.useSubmit; exports.useViewTransitionState = _chunkFGRCWJDIjs.useViewTransitionState;
|