react-router 7.7.0-pre.2 → 7.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -13
- package/dist/{production/chunk-CLUOEFXR.js → development/chunk-4ADB4KIO.js} +130 -130
- package/dist/development/{chunk-XPO7SIPX.mjs → chunk-EF7DTUVF.mjs} +2 -2
- package/dist/development/{chunk-NMPYIXDO.mjs → chunk-T3VM44WY.mjs} +2 -2
- package/dist/development/{chunk-3JI27NJZ.js → chunk-V6PEDDZI.js} +1 -1
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -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.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.js +97 -97
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/{development/chunk-XUCF2MWW.js → production/chunk-2TYFPE3B.js} +130 -130
- package/dist/production/{chunk-LW7Q6L7E.js → chunk-5KHO4FML.js} +1 -1
- package/dist/production/{chunk-RXNLZWLS.mjs → chunk-GNZILI6H.mjs} +2 -2
- package/dist/production/{chunk-V7D4RPWA.mjs → chunk-WPPIQDYG.mjs} +2 -2
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -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.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.js +97 -97
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- 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 v7.7.0
|
|
2
|
+
* react-router v7.7.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunk2TYFPE3Bjs = require('./chunk-2TYFPE3B.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -142,7 +142,7 @@ var _chunkCLUOEFXRjs = require('./chunk-CLUOEFXR.js');
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
var
|
|
145
|
+
var _chunk5KHO4FMLjs = require('./chunk-5KHO4FML.js');
|
|
146
146
|
|
|
147
147
|
// lib/dom/ssr/server.tsx
|
|
148
148
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -155,7 +155,7 @@ function ServerRouter({
|
|
|
155
155
|
url = new URL(url);
|
|
156
156
|
}
|
|
157
157
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
158
|
-
let routes =
|
|
158
|
+
let routes = _chunk5KHO4FMLjs.createServerRoutes.call(void 0,
|
|
159
159
|
manifest.routes,
|
|
160
160
|
routeModules,
|
|
161
161
|
context.future,
|
|
@@ -168,7 +168,7 @@ function ServerRouter({
|
|
|
168
168
|
let routeId = match.route.id;
|
|
169
169
|
let route = routeModules[routeId];
|
|
170
170
|
let manifestRoute = context.manifest.routes[routeId];
|
|
171
|
-
if (route && manifestRoute &&
|
|
171
|
+
if (route && manifestRoute && _chunk5KHO4FMLjs.shouldHydrateRouteLoader.call(void 0,
|
|
172
172
|
routeId,
|
|
173
173
|
route.clientLoader,
|
|
174
174
|
manifestRoute.hasLoader,
|
|
@@ -177,9 +177,9 @@ function ServerRouter({
|
|
|
177
177
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
let router =
|
|
180
|
+
let router = _chunk2TYFPE3Bjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
181
181
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
182
|
-
|
|
182
|
+
_chunk5KHO4FMLjs.FrameworkContext.Provider,
|
|
183
183
|
{
|
|
184
184
|
value: {
|
|
185
185
|
manifest,
|
|
@@ -194,8 +194,8 @@ function ServerRouter({
|
|
|
194
194
|
renderMeta: context.renderMeta
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
-
/* @__PURE__ */ React.createElement(
|
|
198
|
-
|
|
197
|
+
/* @__PURE__ */ React.createElement(_chunk5KHO4FMLjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
198
|
+
_chunk2TYFPE3Bjs.StaticRouterProvider,
|
|
199
199
|
{
|
|
200
200
|
router,
|
|
201
201
|
context: context.staticHandlerContext,
|
|
@@ -203,7 +203,7 @@ function ServerRouter({
|
|
|
203
203
|
}
|
|
204
204
|
))
|
|
205
205
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
206
|
-
|
|
206
|
+
_chunk5KHO4FMLjs.StreamTransfer,
|
|
207
207
|
{
|
|
208
208
|
context,
|
|
209
209
|
identifier: 0,
|
|
@@ -245,18 +245,18 @@ function createRoutesStub(routes, _context) {
|
|
|
245
245
|
let patched = processRoutes(
|
|
246
246
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
247
247
|
// types compared to `AgnosticRouteObject`
|
|
248
|
-
|
|
249
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0,
|
|
248
|
+
_chunk5KHO4FMLjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
249
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0, _chunk5KHO4FMLjs.unstable_RouterContextProvider)() : {},
|
|
250
250
|
frameworkContextRef.current.manifest,
|
|
251
251
|
frameworkContextRef.current.routeModules
|
|
252
252
|
);
|
|
253
|
-
routerRef.current =
|
|
253
|
+
routerRef.current = _chunk2TYFPE3Bjs.createMemoryRouter.call(void 0, patched, {
|
|
254
254
|
initialEntries,
|
|
255
255
|
initialIndex,
|
|
256
256
|
hydrationData
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
return /* @__PURE__ */ React2.createElement(
|
|
259
|
+
return /* @__PURE__ */ React2.createElement(_chunk5KHO4FMLjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunk2TYFPE3Bjs.RouterProvider, { router: routerRef.current }));
|
|
260
260
|
};
|
|
261
261
|
}
|
|
262
262
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -270,9 +270,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
270
270
|
id: route.id,
|
|
271
271
|
path: route.path,
|
|
272
272
|
index: route.index,
|
|
273
|
-
Component: route.Component ?
|
|
274
|
-
HydrateFallback: route.HydrateFallback ?
|
|
275
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
273
|
+
Component: route.Component ? _chunk2TYFPE3Bjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
274
|
+
HydrateFallback: route.HydrateFallback ? _chunk2TYFPE3Bjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
275
|
+
ErrorBoundary: route.ErrorBoundary ? _chunk2TYFPE3Bjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
276
276
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
277
277
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
278
278
|
handle: route.handle,
|
|
@@ -301,7 +301,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
301
301
|
};
|
|
302
302
|
manifest.routes[newRoute.id] = entryRoute;
|
|
303
303
|
routeModules[route.id] = {
|
|
304
|
-
default: newRoute.Component ||
|
|
304
|
+
default: newRoute.Component || _chunk2TYFPE3Bjs.Outlet,
|
|
305
305
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
306
306
|
handle: route.handle,
|
|
307
307
|
links: route.links,
|
|
@@ -496,7 +496,7 @@ function myUnescape(value) {
|
|
|
496
496
|
return result;
|
|
497
497
|
}
|
|
498
498
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
499
|
-
|
|
499
|
+
_chunk5KHO4FMLjs.warnOnce.call(void 0,
|
|
500
500
|
!expires,
|
|
501
501
|
`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.`
|
|
502
502
|
);
|
|
@@ -550,7 +550,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
550
550
|
let entries = Object.entries(errors);
|
|
551
551
|
let serialized = {};
|
|
552
552
|
for (let [key, val] of entries) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, val)) {
|
|
554
554
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
555
555
|
} else if (val instanceof Error) {
|
|
556
556
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -575,7 +575,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
575
575
|
|
|
576
576
|
// lib/server-runtime/routeMatching.ts
|
|
577
577
|
function matchServerRoutes(routes, pathname, basename) {
|
|
578
|
-
let matches =
|
|
578
|
+
let matches = _chunk5KHO4FMLjs.matchRoutes.call(void 0,
|
|
579
579
|
routes,
|
|
580
580
|
pathname,
|
|
581
581
|
basename
|
|
@@ -595,7 +595,7 @@ async function callRouteHandler(handler, args) {
|
|
|
595
595
|
params: args.params,
|
|
596
596
|
context: args.context
|
|
597
597
|
});
|
|
598
|
-
if (
|
|
598
|
+
if (_chunk5KHO4FMLjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunk5KHO4FMLjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
599
599
|
throw new Response(null, result.init);
|
|
600
600
|
}
|
|
601
601
|
return result;
|
|
@@ -714,17 +714,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
714
714
|
controller.close();
|
|
715
715
|
}
|
|
716
716
|
});
|
|
717
|
-
let decoded = await
|
|
717
|
+
let decoded = await _chunk5KHO4FMLjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
718
718
|
let data2 = decoded.value;
|
|
719
|
-
if (data2 &&
|
|
720
|
-
let result = data2[
|
|
719
|
+
if (data2 && _chunk5KHO4FMLjs.SingleFetchRedirectSymbol in data2) {
|
|
720
|
+
let result = data2[_chunk5KHO4FMLjs.SingleFetchRedirectSymbol];
|
|
721
721
|
let init = { status: result.status };
|
|
722
722
|
if (result.reload) {
|
|
723
|
-
throw
|
|
723
|
+
throw _chunk5KHO4FMLjs.redirectDocument.call(void 0, result.redirect, init);
|
|
724
724
|
} else if (result.replace) {
|
|
725
|
-
throw
|
|
725
|
+
throw _chunk5KHO4FMLjs.replace.call(void 0, result.redirect, init);
|
|
726
726
|
} else {
|
|
727
|
-
throw
|
|
727
|
+
throw _chunk5KHO4FMLjs.redirect.call(void 0, result.redirect, init);
|
|
728
728
|
}
|
|
729
729
|
} else {
|
|
730
730
|
invariant2(
|
|
@@ -852,14 +852,14 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
852
852
|
|
|
853
853
|
// lib/server-runtime/single-fetch.ts
|
|
854
854
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
855
|
-
...
|
|
855
|
+
..._chunk5KHO4FMLjs.NO_BODY_STATUS_CODES,
|
|
856
856
|
304
|
|
857
857
|
]);
|
|
858
858
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
859
859
|
try {
|
|
860
860
|
let respond2 = function(context) {
|
|
861
861
|
let headers = getDocumentHeaders(context, build);
|
|
862
|
-
if (
|
|
862
|
+
if (_chunk5KHO4FMLjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
863
863
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
864
864
|
result: getSingleFetchRedirect(
|
|
865
865
|
context.statusCode,
|
|
@@ -867,12 +867,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
867
867
|
build.basename
|
|
868
868
|
),
|
|
869
869
|
headers,
|
|
870
|
-
status:
|
|
870
|
+
status: _chunk5KHO4FMLjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
871
871
|
});
|
|
872
872
|
}
|
|
873
873
|
if (context.errors) {
|
|
874
874
|
Object.values(context.errors).forEach((err) => {
|
|
875
|
-
if (!
|
|
875
|
+
if (!_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
876
876
|
handleError(err);
|
|
877
877
|
}
|
|
878
878
|
});
|
|
@@ -906,10 +906,10 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
906
906
|
skipRevalidation: true,
|
|
907
907
|
unstable_respond: respond2
|
|
908
908
|
});
|
|
909
|
-
if (!
|
|
909
|
+
if (!_chunk5KHO4FMLjs.isResponse.call(void 0, result)) {
|
|
910
910
|
result = respond2(result);
|
|
911
911
|
}
|
|
912
|
-
if (
|
|
912
|
+
if (_chunk5KHO4FMLjs.isRedirectResponse.call(void 0, result)) {
|
|
913
913
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
914
914
|
result: getSingleFetchRedirect(
|
|
915
915
|
result.status,
|
|
@@ -917,7 +917,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
917
917
|
build.basename
|
|
918
918
|
),
|
|
919
919
|
headers: result.headers,
|
|
920
|
-
status:
|
|
920
|
+
status: _chunk5KHO4FMLjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
923
|
return result;
|
|
@@ -934,22 +934,22 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
934
934
|
try {
|
|
935
935
|
let respond2 = function(context) {
|
|
936
936
|
let headers = getDocumentHeaders(context, build);
|
|
937
|
-
if (
|
|
937
|
+
if (_chunk5KHO4FMLjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
938
938
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
939
939
|
result: {
|
|
940
|
-
[
|
|
940
|
+
[_chunk5KHO4FMLjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
941
941
|
context.statusCode,
|
|
942
942
|
headers,
|
|
943
943
|
build.basename
|
|
944
944
|
)
|
|
945
945
|
},
|
|
946
946
|
headers,
|
|
947
|
-
status:
|
|
947
|
+
status: _chunk5KHO4FMLjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
948
948
|
});
|
|
949
949
|
}
|
|
950
950
|
if (context.errors) {
|
|
951
951
|
Object.values(context.errors).forEach((err) => {
|
|
952
|
-
if (!
|
|
952
|
+
if (!_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
953
953
|
handleError(err);
|
|
954
954
|
}
|
|
955
955
|
});
|
|
@@ -990,20 +990,20 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
990
990
|
skipLoaderErrorBubbling: true,
|
|
991
991
|
unstable_respond: respond2
|
|
992
992
|
});
|
|
993
|
-
if (!
|
|
993
|
+
if (!_chunk5KHO4FMLjs.isResponse.call(void 0, result)) {
|
|
994
994
|
result = respond2(result);
|
|
995
995
|
}
|
|
996
|
-
if (
|
|
996
|
+
if (_chunk5KHO4FMLjs.isRedirectResponse.call(void 0, result)) {
|
|
997
997
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
998
998
|
result: {
|
|
999
|
-
[
|
|
999
|
+
[_chunk5KHO4FMLjs.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
1000
1000
|
result.status,
|
|
1001
1001
|
result.headers,
|
|
1002
1002
|
build.basename
|
|
1003
1003
|
)
|
|
1004
1004
|
},
|
|
1005
1005
|
headers: result.headers,
|
|
1006
|
-
status:
|
|
1006
|
+
status: _chunk5KHO4FMLjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1007
1007
|
});
|
|
1008
1008
|
}
|
|
1009
1009
|
return result;
|
|
@@ -1044,7 +1044,7 @@ function generateSingleFetchResponse(request, build, serverMode, {
|
|
|
1044
1044
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1045
1045
|
let redirect2 = headers.get("Location");
|
|
1046
1046
|
if (basename) {
|
|
1047
|
-
redirect2 =
|
|
1047
|
+
redirect2 = _chunk5KHO4FMLjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1048
1048
|
}
|
|
1049
1049
|
return {
|
|
1050
1050
|
redirect: redirect2,
|
|
@@ -1070,7 +1070,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1070
1070
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1071
1071
|
);
|
|
1072
1072
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1073
|
-
return
|
|
1073
|
+
return _chunk5KHO4FMLjs.encode.call(void 0, data2, {
|
|
1074
1074
|
signal: controller.signal,
|
|
1075
1075
|
plugins: [
|
|
1076
1076
|
(value) => {
|
|
@@ -1078,12 +1078,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1078
1078
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1079
1079
|
return ["SanitizedError", name, message, stack];
|
|
1080
1080
|
}
|
|
1081
|
-
if (value instanceof
|
|
1081
|
+
if (value instanceof _chunk5KHO4FMLjs.ErrorResponseImpl) {
|
|
1082
1082
|
let { data: data3, status, statusText } = value;
|
|
1083
1083
|
return ["ErrorResponse", data3, status, statusText];
|
|
1084
1084
|
}
|
|
1085
|
-
if (value && typeof value === "object" &&
|
|
1086
|
-
return ["SingleFetchRedirect", value[
|
|
1085
|
+
if (value && typeof value === "object" && _chunk5KHO4FMLjs.SingleFetchRedirectSymbol in value) {
|
|
1086
|
+
return ["SingleFetchRedirect", value[_chunk5KHO4FMLjs.SingleFetchRedirectSymbol]];
|
|
1087
1087
|
}
|
|
1088
1088
|
}
|
|
1089
1089
|
],
|
|
@@ -1106,14 +1106,14 @@ function derive(build, mode) {
|
|
|
1106
1106
|
let routes = createRoutes(build.routes);
|
|
1107
1107
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1108
1108
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1109
|
-
let staticHandler =
|
|
1109
|
+
let staticHandler = _chunk5KHO4FMLjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1110
1110
|
basename: build.basename
|
|
1111
1111
|
});
|
|
1112
1112
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1113
1113
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1114
1114
|
console.error(
|
|
1115
1115
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1116
|
-
|
|
1116
|
+
_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1117
1117
|
);
|
|
1118
1118
|
}
|
|
1119
1119
|
});
|
|
@@ -1160,10 +1160,10 @@ var createRequestHandler = (build, mode) => {
|
|
|
1160
1160
|
};
|
|
1161
1161
|
if (_build.future.unstable_middleware) {
|
|
1162
1162
|
if (initialContext == null) {
|
|
1163
|
-
loadContext = new (0,
|
|
1163
|
+
loadContext = new (0, _chunk5KHO4FMLjs.unstable_RouterContextProvider)();
|
|
1164
1164
|
} else {
|
|
1165
1165
|
try {
|
|
1166
|
-
loadContext = new (0,
|
|
1166
|
+
loadContext = new (0, _chunk5KHO4FMLjs.unstable_RouterContextProvider)(
|
|
1167
1167
|
initialContext
|
|
1168
1168
|
);
|
|
1169
1169
|
} catch (e) {
|
|
@@ -1182,12 +1182,12 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1182
1182
|
let url = new URL(request.url);
|
|
1183
1183
|
let normalizedBasename = _build.basename || "/";
|
|
1184
1184
|
let normalizedPath = url.pathname;
|
|
1185
|
-
if (
|
|
1185
|
+
if (_chunk5KHO4FMLjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1186
1186
|
normalizedPath = normalizedBasename;
|
|
1187
1187
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1188
1188
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1189
1189
|
}
|
|
1190
|
-
if (
|
|
1190
|
+
if (_chunk5KHO4FMLjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1191
1191
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1192
1192
|
}
|
|
1193
1193
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
@@ -1198,7 +1198,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1198
1198
|
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1199
1199
|
if (url.pathname.endsWith(".data")) {
|
|
1200
1200
|
errorHandler(
|
|
1201
|
-
new (0,
|
|
1201
|
+
new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(
|
|
1202
1202
|
404,
|
|
1203
1203
|
"Not Found",
|
|
1204
1204
|
`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.`
|
|
@@ -1218,7 +1218,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
|
-
let manifestUrl =
|
|
1221
|
+
let manifestUrl = _chunk5KHO4FMLjs.getManifestPath.call(void 0,
|
|
1222
1222
|
_build.routeDiscovery.manifestPath,
|
|
1223
1223
|
normalizedBasename
|
|
1224
1224
|
);
|
|
@@ -1259,7 +1259,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1259
1259
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1260
1260
|
request
|
|
1261
1261
|
});
|
|
1262
|
-
if (
|
|
1262
|
+
if (_chunk5KHO4FMLjs.isRedirectResponse.call(void 0, response)) {
|
|
1263
1263
|
let result = getSingleFetchRedirect(
|
|
1264
1264
|
response.status,
|
|
1265
1265
|
response.headers,
|
|
@@ -1267,7 +1267,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1267
1267
|
);
|
|
1268
1268
|
if (request.method === "GET") {
|
|
1269
1269
|
result = {
|
|
1270
|
-
[
|
|
1270
|
+
[_chunk5KHO4FMLjs.SingleFetchRedirectSymbol]: result
|
|
1271
1271
|
};
|
|
1272
1272
|
}
|
|
1273
1273
|
let headers = new Headers(response.headers);
|
|
@@ -1280,7 +1280,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1280
1280
|
serverMode
|
|
1281
1281
|
),
|
|
1282
1282
|
{
|
|
1283
|
-
status:
|
|
1283
|
+
status: _chunk5KHO4FMLjs.SINGLE_FETCH_REDIRECT_STATUS,
|
|
1284
1284
|
headers
|
|
1285
1285
|
}
|
|
1286
1286
|
);
|
|
@@ -1393,13 +1393,13 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1393
1393
|
requestContext: loadContext,
|
|
1394
1394
|
unstable_respond: build.future.unstable_middleware ? (ctx) => renderHtml(ctx, isSpaMode) : void 0
|
|
1395
1395
|
});
|
|
1396
|
-
return
|
|
1396
|
+
return _chunk5KHO4FMLjs.isResponse.call(void 0, response) ? response : renderHtml(response, isSpaMode);
|
|
1397
1397
|
} catch (error) {
|
|
1398
1398
|
handleError(error);
|
|
1399
1399
|
return new Response(null, { status: 500 });
|
|
1400
1400
|
}
|
|
1401
1401
|
async function renderHtml(context, isSpaMode2) {
|
|
1402
|
-
if (
|
|
1402
|
+
if (_chunk5KHO4FMLjs.isResponse.call(void 0, context)) {
|
|
1403
1403
|
return context;
|
|
1404
1404
|
}
|
|
1405
1405
|
let headers = getDocumentHeaders(context, build);
|
|
@@ -1408,7 +1408,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1408
1408
|
}
|
|
1409
1409
|
if (context.errors) {
|
|
1410
1410
|
Object.values(context.errors).forEach((err) => {
|
|
1411
|
-
if (!
|
|
1411
|
+
if (!_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1412
1412
|
handleError(err);
|
|
1413
1413
|
}
|
|
1414
1414
|
});
|
|
@@ -1460,10 +1460,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1460
1460
|
} catch (error) {
|
|
1461
1461
|
handleError(error);
|
|
1462
1462
|
let errorForSecondRender = error;
|
|
1463
|
-
if (
|
|
1463
|
+
if (_chunk5KHO4FMLjs.isResponse.call(void 0, error)) {
|
|
1464
1464
|
try {
|
|
1465
1465
|
let data2 = await unwrapResponse(error);
|
|
1466
|
-
errorForSecondRender = new (0,
|
|
1466
|
+
errorForSecondRender = new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(
|
|
1467
1467
|
error.status,
|
|
1468
1468
|
error.statusText,
|
|
1469
1469
|
data2
|
|
@@ -1471,7 +1471,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1471
1471
|
} catch (e) {
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
context =
|
|
1474
|
+
context = _chunk5KHO4FMLjs.getStaticContextFromError.call(void 0,
|
|
1475
1475
|
staticHandler.dataRoutes,
|
|
1476
1476
|
context,
|
|
1477
1477
|
errorForSecondRender
|
|
@@ -1518,7 +1518,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1518
1518
|
requestContext: loadContext,
|
|
1519
1519
|
unstable_respond: build.future.unstable_middleware ? (ctx) => ctx : void 0
|
|
1520
1520
|
});
|
|
1521
|
-
if (
|
|
1521
|
+
if (_chunk5KHO4FMLjs.isResponse.call(void 0, response)) {
|
|
1522
1522
|
return response;
|
|
1523
1523
|
}
|
|
1524
1524
|
if (typeof response === "string") {
|
|
@@ -1526,11 +1526,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1526
1526
|
}
|
|
1527
1527
|
return Response.json(response);
|
|
1528
1528
|
} catch (error) {
|
|
1529
|
-
if (
|
|
1529
|
+
if (_chunk5KHO4FMLjs.isResponse.call(void 0, error)) {
|
|
1530
1530
|
error.headers.set("X-Remix-Catch", "yes");
|
|
1531
1531
|
return error;
|
|
1532
1532
|
}
|
|
1533
|
-
if (
|
|
1533
|
+
if (_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1534
1534
|
if (error) {
|
|
1535
1535
|
handleError(error);
|
|
1536
1536
|
}
|
|
@@ -1658,7 +1658,7 @@ function createSessionStorage({
|
|
|
1658
1658
|
};
|
|
1659
1659
|
}
|
|
1660
1660
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1661
|
-
|
|
1661
|
+
_chunk5KHO4FMLjs.warnOnce.call(void 0,
|
|
1662
1662
|
cookie.isSigned,
|
|
1663
1663
|
`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.`
|
|
1664
1664
|
);
|
|
@@ -1753,12 +1753,12 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
|
|
|
1753
1753
|
...state,
|
|
1754
1754
|
loaderData: { ...state.loaderData }
|
|
1755
1755
|
};
|
|
1756
|
-
let initialMatches =
|
|
1756
|
+
let initialMatches = _chunk5KHO4FMLjs.matchRoutes.call(void 0, routes, location2, basename);
|
|
1757
1757
|
if (initialMatches) {
|
|
1758
1758
|
for (let match of initialMatches) {
|
|
1759
1759
|
let routeId = match.route.id;
|
|
1760
1760
|
let routeInfo = getRouteInfo(routeId);
|
|
1761
|
-
if (
|
|
1761
|
+
if (_chunk5KHO4FMLjs.shouldHydrateRouteLoader.call(void 0,
|
|
1762
1762
|
routeId,
|
|
1763
1763
|
routeInfo.clientLoader,
|
|
1764
1764
|
routeInfo.hasLoader,
|
|
@@ -1836,7 +1836,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1836
1836
|
}
|
|
1837
1837
|
}
|
|
1838
1838
|
);
|
|
1839
|
-
if (
|
|
1839
|
+
if (_chunk5KHO4FMLjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1840
1840
|
return /* @__PURE__ */ React.default.createElement(
|
|
1841
1841
|
ErrorWrapper,
|
|
1842
1842
|
{
|
|
@@ -1844,7 +1844,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1844
1844
|
title: "Unhandled Thrown Response!"
|
|
1845
1845
|
},
|
|
1846
1846
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1847
|
-
|
|
1847
|
+
_chunk5KHO4FMLjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1848
1848
|
);
|
|
1849
1849
|
}
|
|
1850
1850
|
let errorInstance;
|
|
@@ -1870,7 +1870,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1870
1870
|
function RSCDefaultRootErrorBoundary({
|
|
1871
1871
|
hasRootLayout
|
|
1872
1872
|
}) {
|
|
1873
|
-
let error =
|
|
1873
|
+
let error = _chunk5KHO4FMLjs.useRouteError.call(void 0, );
|
|
1874
1874
|
if (hasRootLayout === void 0) {
|
|
1875
1875
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1876
1876
|
}
|
|
@@ -1984,7 +1984,7 @@ function createRouterFromPayload({
|
|
|
1984
1984
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
1985
1985
|
let patches = /* @__PURE__ */ new Map();
|
|
1986
1986
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
1987
|
-
|
|
1987
|
+
_chunk5KHO4FMLjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
1988
1988
|
if (!patches.has(patch.parentId)) {
|
|
1989
1989
|
patches.set(patch.parentId, []);
|
|
1990
1990
|
}
|
|
@@ -2006,11 +2006,11 @@ function createRouterFromPayload({
|
|
|
2006
2006
|
}
|
|
2007
2007
|
return [route];
|
|
2008
2008
|
}, []);
|
|
2009
|
-
globalVar.__router =
|
|
2009
|
+
globalVar.__router = _chunk5KHO4FMLjs.createRouter.call(void 0, {
|
|
2010
2010
|
routes,
|
|
2011
2011
|
unstable_getContext,
|
|
2012
2012
|
basename: payload.basename,
|
|
2013
|
-
history:
|
|
2013
|
+
history: _chunk5KHO4FMLjs.createBrowserHistory.call(void 0, ),
|
|
2014
2014
|
hydrationData: getHydrationData(
|
|
2015
2015
|
{
|
|
2016
2016
|
loaderData: payload.loaderData,
|
|
@@ -2020,7 +2020,7 @@ function createRouterFromPayload({
|
|
|
2020
2020
|
routes,
|
|
2021
2021
|
(routeId) => {
|
|
2022
2022
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2023
|
-
|
|
2023
|
+
_chunk5KHO4FMLjs.invariant.call(void 0, match, "Route not found in payload");
|
|
2024
2024
|
return {
|
|
2025
2025
|
clientLoader: match.clientLoader,
|
|
2026
2026
|
hasLoader: match.hasLoader,
|
|
@@ -2065,9 +2065,9 @@ function createRouterFromPayload({
|
|
|
2065
2065
|
});
|
|
2066
2066
|
return globalVar.__router;
|
|
2067
2067
|
}
|
|
2068
|
-
var renderedRoutesContext =
|
|
2068
|
+
var renderedRoutesContext = _chunk5KHO4FMLjs.unstable_createContext.call(void 0, );
|
|
2069
2069
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2070
|
-
let dataStrategy =
|
|
2070
|
+
let dataStrategy = _chunk5KHO4FMLjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2071
2071
|
getRouter,
|
|
2072
2072
|
(match) => {
|
|
2073
2073
|
let M = match;
|
|
@@ -2121,20 +2121,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2121
2121
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2122
2122
|
return async (args, basename, targetRoutes) => {
|
|
2123
2123
|
let { request, context } = args;
|
|
2124
|
-
let url =
|
|
2124
|
+
let url = _chunk5KHO4FMLjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2125
2125
|
if (request.method === "GET") {
|
|
2126
|
-
url =
|
|
2126
|
+
url = _chunk5KHO4FMLjs.stripIndexParam.call(void 0, url);
|
|
2127
2127
|
if (targetRoutes) {
|
|
2128
2128
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2129
2129
|
}
|
|
2130
2130
|
}
|
|
2131
2131
|
let res = await fetchImplementation(
|
|
2132
|
-
new Request(url, await
|
|
2132
|
+
new Request(url, await _chunk5KHO4FMLjs.createRequestInit.call(void 0, request))
|
|
2133
2133
|
);
|
|
2134
2134
|
if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
|
|
2135
|
-
throw new (0,
|
|
2135
|
+
throw new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(404, "Not Found", true);
|
|
2136
2136
|
}
|
|
2137
|
-
|
|
2137
|
+
_chunk5KHO4FMLjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
2138
2138
|
try {
|
|
2139
2139
|
const payload = await createFromReadableStream(res.body, {
|
|
2140
2140
|
temporaryReferences: void 0
|
|
@@ -2158,7 +2158,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2158
2158
|
}
|
|
2159
2159
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2160
2160
|
let results = { routes: {} };
|
|
2161
|
-
const dataKey =
|
|
2161
|
+
const dataKey = _chunk5KHO4FMLjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2162
2162
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2163
2163
|
results.routes[routeId] = { data: data2 };
|
|
2164
2164
|
}
|
|
@@ -2280,7 +2280,7 @@ function RSCHydratedRouter({
|
|
|
2280
2280
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2281
2281
|
routeModules: {}
|
|
2282
2282
|
};
|
|
2283
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2283
|
+
return /* @__PURE__ */ React4.createElement(_chunk5KHO4FMLjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunk5KHO4FMLjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunk2TYFPE3Bjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2284
2284
|
}
|
|
2285
2285
|
function createRouteFromServerManifest(match, payload) {
|
|
2286
2286
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2340,7 +2340,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2340
2340
|
return await callSingleFetch(singleFetch);
|
|
2341
2341
|
}
|
|
2342
2342
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2343
|
-
throw
|
|
2343
|
+
throw _chunk5KHO4FMLjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
2344
2344
|
},
|
|
2345
2345
|
path: match.path,
|
|
2346
2346
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2353,7 +2353,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2353
2353
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2354
2354
|
};
|
|
2355
2355
|
if (typeof dataRoute.loader === "function") {
|
|
2356
|
-
dataRoute.loader.hydrate =
|
|
2356
|
+
dataRoute.loader.hydrate = _chunk5KHO4FMLjs.shouldHydrateRouteLoader.call(void 0,
|
|
2357
2357
|
match.id,
|
|
2358
2358
|
match.clientLoader,
|
|
2359
2359
|
match.hasLoader,
|
|
@@ -2363,7 +2363,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2363
2363
|
return dataRoute;
|
|
2364
2364
|
}
|
|
2365
2365
|
function callSingleFetch(singleFetch) {
|
|
2366
|
-
|
|
2366
|
+
_chunk5KHO4FMLjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2367
2367
|
return singleFetch();
|
|
2368
2368
|
}
|
|
2369
2369
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2371,7 +2371,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2371
2371
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2372
2372
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2373
2373
|
console.error(msg);
|
|
2374
|
-
throw new (0,
|
|
2374
|
+
throw new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
2377
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2593,7 +2593,7 @@ function RSCStaticRouter({
|
|
|
2593
2593
|
if (payload.type !== "render") return null;
|
|
2594
2594
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2595
2595
|
for (const match of payload.matches) {
|
|
2596
|
-
if (
|
|
2596
|
+
if (_chunk5KHO4FMLjs.shouldHydrateRouteLoader.call(void 0,
|
|
2597
2597
|
match.id,
|
|
2598
2598
|
match.clientLoader,
|
|
2599
2599
|
match.hasLoader,
|
|
@@ -2627,7 +2627,7 @@ function RSCStaticRouter({
|
|
|
2627
2627
|
}
|
|
2628
2628
|
}))
|
|
2629
2629
|
};
|
|
2630
|
-
const router =
|
|
2630
|
+
const router = _chunk2TYFPE3Bjs.createStaticRouter.call(void 0,
|
|
2631
2631
|
payload.matches.reduceRight((previous, match) => {
|
|
2632
2632
|
const route = {
|
|
2633
2633
|
id: match.id,
|
|
@@ -2671,8 +2671,8 @@ function RSCStaticRouter({
|
|
|
2671
2671
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2672
2672
|
routeModules: {}
|
|
2673
2673
|
};
|
|
2674
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2675
|
-
|
|
2674
|
+
return /* @__PURE__ */ React5.createElement(_chunk5KHO4FMLjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunk5KHO4FMLjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2675
|
+
_chunk2TYFPE3Bjs.StaticRouterProvider,
|
|
2676
2676
|
{
|
|
2677
2677
|
context,
|
|
2678
2678
|
router,
|
|
@@ -2730,7 +2730,7 @@ function deserializeErrors(errors) {
|
|
|
2730
2730
|
let serialized = {};
|
|
2731
2731
|
for (let [key, val] of entries) {
|
|
2732
2732
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2733
|
-
serialized[key] = new (0,
|
|
2733
|
+
serialized[key] = new (0, _chunk5KHO4FMLjs.ErrorResponseImpl)(
|
|
2734
2734
|
val.status,
|
|
2735
2735
|
val.statusText,
|
|
2736
2736
|
val.data,
|
|
@@ -2888,4 +2888,4 @@ function deserializeErrors(errors) {
|
|
|
2888
2888
|
|
|
2889
2889
|
|
|
2890
2890
|
|
|
2891
|
-
exports.Await =
|
|
2891
|
+
exports.Await = _chunk2TYFPE3Bjs.Await; exports.BrowserRouter = _chunk2TYFPE3Bjs.BrowserRouter; exports.Form = _chunk2TYFPE3Bjs.Form; exports.HashRouter = _chunk2TYFPE3Bjs.HashRouter; exports.IDLE_BLOCKER = _chunk5KHO4FMLjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunk5KHO4FMLjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunk5KHO4FMLjs.IDLE_NAVIGATION; exports.Link = _chunk2TYFPE3Bjs.Link; exports.Links = _chunk5KHO4FMLjs.Links; exports.MemoryRouter = _chunk2TYFPE3Bjs.MemoryRouter; exports.Meta = _chunk5KHO4FMLjs.Meta; exports.NavLink = _chunk2TYFPE3Bjs.NavLink; exports.Navigate = _chunk2TYFPE3Bjs.Navigate; exports.NavigationType = _chunk5KHO4FMLjs.Action; exports.Outlet = _chunk2TYFPE3Bjs.Outlet; exports.PrefetchPageLinks = _chunk5KHO4FMLjs.PrefetchPageLinks; exports.Route = _chunk2TYFPE3Bjs.Route; exports.Router = _chunk2TYFPE3Bjs.Router; exports.RouterProvider = _chunk2TYFPE3Bjs.RouterProvider; exports.Routes = _chunk2TYFPE3Bjs.Routes; exports.Scripts = _chunk5KHO4FMLjs.Scripts; exports.ScrollRestoration = _chunk2TYFPE3Bjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk2TYFPE3Bjs.StaticRouter; exports.StaticRouterProvider = _chunk2TYFPE3Bjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunk5KHO4FMLjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunk5KHO4FMLjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunk5KHO4FMLjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunk5KHO4FMLjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunk5KHO4FMLjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunk5KHO4FMLjs.LocationContext; exports.UNSAFE_NavigationContext = _chunk5KHO4FMLjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunk5KHO4FMLjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunk5KHO4FMLjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunk5KHO4FMLjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunk5KHO4FMLjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunk2TYFPE3Bjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunk2TYFPE3Bjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunk2TYFPE3Bjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunk5KHO4FMLjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunk5KHO4FMLjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunk5KHO4FMLjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunk5KHO4FMLjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunk5KHO4FMLjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunk5KHO4FMLjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunk5KHO4FMLjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunk2TYFPE3Bjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunk5KHO4FMLjs.invariant; exports.UNSAFE_mapRouteProperties = _chunk2TYFPE3Bjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunk5KHO4FMLjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunk5KHO4FMLjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk2TYFPE3Bjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunk2TYFPE3Bjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunk2TYFPE3Bjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunk2TYFPE3Bjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunk2TYFPE3Bjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk2TYFPE3Bjs.createHashRouter; exports.createMemoryRouter = _chunk2TYFPE3Bjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunk5KHO4FMLjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunk2TYFPE3Bjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunk2TYFPE3Bjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk2TYFPE3Bjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk2TYFPE3Bjs.createStaticHandler; exports.createStaticRouter = _chunk2TYFPE3Bjs.createStaticRouter; exports.data = _chunk5KHO4FMLjs.data; exports.generatePath = _chunk5KHO4FMLjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunk5KHO4FMLjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunk5KHO4FMLjs.matchPath; exports.matchRoutes = _chunk5KHO4FMLjs.matchRoutes; exports.parsePath = _chunk5KHO4FMLjs.parsePath; exports.redirect = _chunk5KHO4FMLjs.redirect; exports.redirectDocument = _chunk5KHO4FMLjs.redirectDocument; exports.renderMatches = _chunk2TYFPE3Bjs.renderMatches; exports.replace = _chunk5KHO4FMLjs.replace; exports.resolvePath = _chunk5KHO4FMLjs.resolvePath; exports.unstable_HistoryRouter = _chunk2TYFPE3Bjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunk5KHO4FMLjs.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunk5KHO4FMLjs.unstable_createContext; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunk2TYFPE3Bjs.usePrompt; exports.useActionData = _chunk5KHO4FMLjs.useActionData; exports.useAsyncError = _chunk5KHO4FMLjs.useAsyncError; exports.useAsyncValue = _chunk5KHO4FMLjs.useAsyncValue; exports.useBeforeUnload = _chunk2TYFPE3Bjs.useBeforeUnload; exports.useBlocker = _chunk5KHO4FMLjs.useBlocker; exports.useFetcher = _chunk2TYFPE3Bjs.useFetcher; exports.useFetchers = _chunk2TYFPE3Bjs.useFetchers; exports.useFormAction = _chunk2TYFPE3Bjs.useFormAction; exports.useHref = _chunk5KHO4FMLjs.useHref; exports.useInRouterContext = _chunk5KHO4FMLjs.useInRouterContext; exports.useLinkClickHandler = _chunk2TYFPE3Bjs.useLinkClickHandler; exports.useLoaderData = _chunk5KHO4FMLjs.useLoaderData; exports.useLocation = _chunk5KHO4FMLjs.useLocation; exports.useMatch = _chunk5KHO4FMLjs.useMatch; exports.useMatches = _chunk5KHO4FMLjs.useMatches; exports.useNavigate = _chunk5KHO4FMLjs.useNavigate; exports.useNavigation = _chunk5KHO4FMLjs.useNavigation; exports.useNavigationType = _chunk5KHO4FMLjs.useNavigationType; exports.useOutlet = _chunk5KHO4FMLjs.useOutlet; exports.useOutletContext = _chunk5KHO4FMLjs.useOutletContext; exports.useParams = _chunk5KHO4FMLjs.useParams; exports.useResolvedPath = _chunk5KHO4FMLjs.useResolvedPath; exports.useRevalidator = _chunk5KHO4FMLjs.useRevalidator; exports.useRouteError = _chunk5KHO4FMLjs.useRouteError; exports.useRouteLoaderData = _chunk5KHO4FMLjs.useRouteLoaderData; exports.useRoutes = _chunk5KHO4FMLjs.useRoutes; exports.useSearchParams = _chunk2TYFPE3Bjs.useSearchParams; exports.useSubmit = _chunk2TYFPE3Bjs.useSubmit; exports.useViewTransitionState = _chunk2TYFPE3Bjs.useViewTransitionState;
|