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