react-router 7.7.0-pre.0 → 7.7.0-pre.1
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 +6 -0
- package/dist/development/chunk-6ZHKKNZG.js +1898 -0
- package/dist/development/{chunk-PUMRC5B5.mjs → chunk-YNUF36W5.mjs} +18 -3
- package/dist/{production/chunk-KWWBKJDT.mjs → development/chunk-YP7CIEHK.mjs} +2 -2
- package/dist/development/{chunk-X5ZUQHCD.js → chunk-Z7T4GLA7.js} +2129 -3933
- package/dist/development/dom-export.js +9 -2
- package/dist/development/dom-export.mjs +9 -3
- package/dist/development/index-react-server-client.js +5 -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 +98 -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/production/{chunk-5AMJKWMN.mjs → chunk-4FKAWASN.mjs} +18 -3
- package/dist/{development/chunk-PY5DBM7W.mjs → production/chunk-KZZC37RO.mjs} +2 -2
- package/dist/production/{chunk-LKVDO7TU.js → chunk-SH44XSL4.js} +2129 -3933
- package/dist/production/chunk-W77PDD2Y.js +1898 -0
- package/dist/production/dom-export.js +9 -2
- package/dist/production/dom-export.mjs +9 -3
- package/dist/production/index-react-server-client.js +5 -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 +98 -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/development/chunk-P37AORTA.js +0 -21
- package/dist/production/chunk-P37AORTA.js +0 -21
|
@@ -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-pre.
|
|
2
|
+
* react-router v7.7.0-pre.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
+
var _chunk6ZHKKNZGjs = require('./chunk-6ZHKKNZG.js');
|
|
54
55
|
|
|
55
56
|
|
|
56
57
|
|
|
@@ -137,8 +138,8 @@
|
|
|
137
138
|
|
|
138
139
|
|
|
139
140
|
|
|
140
|
-
|
|
141
|
-
require('./chunk-
|
|
141
|
+
|
|
142
|
+
var _chunkZ7T4GLA7js = require('./chunk-Z7T4GLA7.js');
|
|
142
143
|
|
|
143
144
|
// lib/dom/ssr/server.tsx
|
|
144
145
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -151,7 +152,7 @@ function ServerRouter({
|
|
|
151
152
|
url = new URL(url);
|
|
152
153
|
}
|
|
153
154
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
154
|
-
let routes =
|
|
155
|
+
let routes = _chunkZ7T4GLA7js.createServerRoutes.call(void 0,
|
|
155
156
|
manifest.routes,
|
|
156
157
|
routeModules,
|
|
157
158
|
context.future,
|
|
@@ -164,7 +165,7 @@ function ServerRouter({
|
|
|
164
165
|
let routeId = match.route.id;
|
|
165
166
|
let route = routeModules[routeId];
|
|
166
167
|
let manifestRoute = context.manifest.routes[routeId];
|
|
167
|
-
if (route && manifestRoute &&
|
|
168
|
+
if (route && manifestRoute && _chunkZ7T4GLA7js.shouldHydrateRouteLoader.call(void 0,
|
|
168
169
|
routeId,
|
|
169
170
|
route.clientLoader,
|
|
170
171
|
manifestRoute.hasLoader,
|
|
@@ -173,9 +174,9 @@ function ServerRouter({
|
|
|
173
174
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
174
175
|
}
|
|
175
176
|
}
|
|
176
|
-
let router =
|
|
177
|
+
let router = _chunk6ZHKKNZGjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
177
178
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
178
|
-
|
|
179
|
+
_chunkZ7T4GLA7js.FrameworkContext.Provider,
|
|
179
180
|
{
|
|
180
181
|
value: {
|
|
181
182
|
manifest,
|
|
@@ -190,8 +191,8 @@ function ServerRouter({
|
|
|
190
191
|
renderMeta: context.renderMeta
|
|
191
192
|
}
|
|
192
193
|
},
|
|
193
|
-
/* @__PURE__ */ React.createElement(
|
|
194
|
-
|
|
194
|
+
/* @__PURE__ */ React.createElement(_chunkZ7T4GLA7js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
195
|
+
_chunk6ZHKKNZGjs.StaticRouterProvider,
|
|
195
196
|
{
|
|
196
197
|
router,
|
|
197
198
|
context: context.staticHandlerContext,
|
|
@@ -199,7 +200,7 @@ function ServerRouter({
|
|
|
199
200
|
}
|
|
200
201
|
))
|
|
201
202
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
202
|
-
|
|
203
|
+
_chunkZ7T4GLA7js.StreamTransfer,
|
|
203
204
|
{
|
|
204
205
|
context,
|
|
205
206
|
identifier: 0,
|
|
@@ -241,18 +242,18 @@ function createRoutesStub(routes, _context) {
|
|
|
241
242
|
let patched = processRoutes(
|
|
242
243
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
243
244
|
// types compared to `AgnosticRouteObject`
|
|
244
|
-
|
|
245
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0,
|
|
245
|
+
_chunkZ7T4GLA7js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
246
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0, _chunkZ7T4GLA7js.unstable_RouterContextProvider)() : {},
|
|
246
247
|
frameworkContextRef.current.manifest,
|
|
247
248
|
frameworkContextRef.current.routeModules
|
|
248
249
|
);
|
|
249
|
-
routerRef.current =
|
|
250
|
+
routerRef.current = _chunk6ZHKKNZGjs.createMemoryRouter.call(void 0, patched, {
|
|
250
251
|
initialEntries,
|
|
251
252
|
initialIndex,
|
|
252
253
|
hydrationData
|
|
253
254
|
});
|
|
254
255
|
}
|
|
255
|
-
return /* @__PURE__ */ React2.createElement(
|
|
256
|
+
return /* @__PURE__ */ React2.createElement(_chunkZ7T4GLA7js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunk6ZHKKNZGjs.RouterProvider, { router: routerRef.current }));
|
|
256
257
|
};
|
|
257
258
|
}
|
|
258
259
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -266,9 +267,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
266
267
|
id: route.id,
|
|
267
268
|
path: route.path,
|
|
268
269
|
index: route.index,
|
|
269
|
-
Component: route.Component ?
|
|
270
|
-
HydrateFallback: route.HydrateFallback ?
|
|
271
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
270
|
+
Component: route.Component ? _chunk6ZHKKNZGjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
271
|
+
HydrateFallback: route.HydrateFallback ? _chunk6ZHKKNZGjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
272
|
+
ErrorBoundary: route.ErrorBoundary ? _chunk6ZHKKNZGjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
272
273
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
273
274
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
274
275
|
handle: route.handle,
|
|
@@ -297,7 +298,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
297
298
|
};
|
|
298
299
|
manifest.routes[newRoute.id] = entryRoute;
|
|
299
300
|
routeModules[route.id] = {
|
|
300
|
-
default: newRoute.Component ||
|
|
301
|
+
default: newRoute.Component || _chunk6ZHKKNZGjs.Outlet,
|
|
301
302
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
302
303
|
handle: route.handle,
|
|
303
304
|
links: route.links,
|
|
@@ -492,7 +493,7 @@ function myUnescape(value) {
|
|
|
492
493
|
return result;
|
|
493
494
|
}
|
|
494
495
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
495
|
-
|
|
496
|
+
_chunkZ7T4GLA7js.warnOnce.call(void 0,
|
|
496
497
|
!expires,
|
|
497
498
|
`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.`
|
|
498
499
|
);
|
|
@@ -546,7 +547,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
546
547
|
let entries = Object.entries(errors);
|
|
547
548
|
let serialized = {};
|
|
548
549
|
for (let [key, val] of entries) {
|
|
549
|
-
if (
|
|
550
|
+
if (_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, val)) {
|
|
550
551
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
551
552
|
} else if (val instanceof Error) {
|
|
552
553
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -571,7 +572,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
571
572
|
|
|
572
573
|
// lib/server-runtime/routeMatching.ts
|
|
573
574
|
function matchServerRoutes(routes, pathname, basename) {
|
|
574
|
-
let matches =
|
|
575
|
+
let matches = _chunkZ7T4GLA7js.matchRoutes.call(void 0,
|
|
575
576
|
routes,
|
|
576
577
|
pathname,
|
|
577
578
|
basename
|
|
@@ -591,7 +592,7 @@ async function callRouteHandler(handler, args) {
|
|
|
591
592
|
params: args.params,
|
|
592
593
|
context: args.context
|
|
593
594
|
});
|
|
594
|
-
if (
|
|
595
|
+
if (_chunkZ7T4GLA7js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkZ7T4GLA7js.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
595
596
|
throw new Response(null, result.init);
|
|
596
597
|
}
|
|
597
598
|
return result;
|
|
@@ -710,17 +711,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
710
711
|
controller.close();
|
|
711
712
|
}
|
|
712
713
|
});
|
|
713
|
-
let decoded = await
|
|
714
|
+
let decoded = await _chunkZ7T4GLA7js.decodeViaTurboStream.call(void 0, stream, global);
|
|
714
715
|
let data2 = decoded.value;
|
|
715
|
-
if (data2 &&
|
|
716
|
-
let result = data2[
|
|
716
|
+
if (data2 && _chunkZ7T4GLA7js.SingleFetchRedirectSymbol in data2) {
|
|
717
|
+
let result = data2[_chunkZ7T4GLA7js.SingleFetchRedirectSymbol];
|
|
717
718
|
let init = { status: result.status };
|
|
718
719
|
if (result.reload) {
|
|
719
|
-
throw
|
|
720
|
+
throw _chunkZ7T4GLA7js.redirectDocument.call(void 0, result.redirect, init);
|
|
720
721
|
} else if (result.replace) {
|
|
721
|
-
throw
|
|
722
|
+
throw _chunkZ7T4GLA7js.replace.call(void 0, result.redirect, init);
|
|
722
723
|
} else {
|
|
723
|
-
throw
|
|
724
|
+
throw _chunkZ7T4GLA7js.redirect.call(void 0, result.redirect, init);
|
|
724
725
|
}
|
|
725
726
|
} else {
|
|
726
727
|
invariant2(
|
|
@@ -848,14 +849,14 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
848
849
|
|
|
849
850
|
// lib/server-runtime/single-fetch.ts
|
|
850
851
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
851
|
-
...
|
|
852
|
+
..._chunkZ7T4GLA7js.NO_BODY_STATUS_CODES,
|
|
852
853
|
304
|
|
853
854
|
]);
|
|
854
855
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
855
856
|
try {
|
|
856
857
|
let respond2 = function(context) {
|
|
857
858
|
let headers = getDocumentHeaders(context, build);
|
|
858
|
-
if (
|
|
859
|
+
if (_chunkZ7T4GLA7js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
859
860
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
860
861
|
result: getSingleFetchRedirect(
|
|
861
862
|
context.statusCode,
|
|
@@ -863,12 +864,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
863
864
|
build.basename
|
|
864
865
|
),
|
|
865
866
|
headers,
|
|
866
|
-
status:
|
|
867
|
+
status: _chunkZ7T4GLA7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
867
868
|
});
|
|
868
869
|
}
|
|
869
870
|
if (context.errors) {
|
|
870
871
|
Object.values(context.errors).forEach((err) => {
|
|
871
|
-
if (!
|
|
872
|
+
if (!_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
872
873
|
handleError(err);
|
|
873
874
|
}
|
|
874
875
|
});
|
|
@@ -902,10 +903,10 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
902
903
|
skipRevalidation: true,
|
|
903
904
|
unstable_respond: respond2
|
|
904
905
|
});
|
|
905
|
-
if (!
|
|
906
|
+
if (!_chunkZ7T4GLA7js.isResponse.call(void 0, result)) {
|
|
906
907
|
result = respond2(result);
|
|
907
908
|
}
|
|
908
|
-
if (
|
|
909
|
+
if (_chunkZ7T4GLA7js.isRedirectResponse.call(void 0, result)) {
|
|
909
910
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
910
911
|
result: getSingleFetchRedirect(
|
|
911
912
|
result.status,
|
|
@@ -913,7 +914,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
913
914
|
build.basename
|
|
914
915
|
),
|
|
915
916
|
headers: result.headers,
|
|
916
|
-
status:
|
|
917
|
+
status: _chunkZ7T4GLA7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
917
918
|
});
|
|
918
919
|
}
|
|
919
920
|
return result;
|
|
@@ -930,22 +931,22 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
930
931
|
try {
|
|
931
932
|
let respond2 = function(context) {
|
|
932
933
|
let headers = getDocumentHeaders(context, build);
|
|
933
|
-
if (
|
|
934
|
+
if (_chunkZ7T4GLA7js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
934
935
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
935
936
|
result: {
|
|
936
|
-
[
|
|
937
|
+
[_chunkZ7T4GLA7js.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
937
938
|
context.statusCode,
|
|
938
939
|
headers,
|
|
939
940
|
build.basename
|
|
940
941
|
)
|
|
941
942
|
},
|
|
942
943
|
headers,
|
|
943
|
-
status:
|
|
944
|
+
status: _chunkZ7T4GLA7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
944
945
|
});
|
|
945
946
|
}
|
|
946
947
|
if (context.errors) {
|
|
947
948
|
Object.values(context.errors).forEach((err) => {
|
|
948
|
-
if (!
|
|
949
|
+
if (!_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
949
950
|
handleError(err);
|
|
950
951
|
}
|
|
951
952
|
});
|
|
@@ -986,20 +987,20 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
986
987
|
skipLoaderErrorBubbling: true,
|
|
987
988
|
unstable_respond: respond2
|
|
988
989
|
});
|
|
989
|
-
if (!
|
|
990
|
+
if (!_chunkZ7T4GLA7js.isResponse.call(void 0, result)) {
|
|
990
991
|
result = respond2(result);
|
|
991
992
|
}
|
|
992
|
-
if (
|
|
993
|
+
if (_chunkZ7T4GLA7js.isRedirectResponse.call(void 0, result)) {
|
|
993
994
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
994
995
|
result: {
|
|
995
|
-
[
|
|
996
|
+
[_chunkZ7T4GLA7js.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
996
997
|
result.status,
|
|
997
998
|
result.headers,
|
|
998
999
|
build.basename
|
|
999
1000
|
)
|
|
1000
1001
|
},
|
|
1001
1002
|
headers: result.headers,
|
|
1002
|
-
status:
|
|
1003
|
+
status: _chunkZ7T4GLA7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
1003
1004
|
});
|
|
1004
1005
|
}
|
|
1005
1006
|
return result;
|
|
@@ -1040,7 +1041,7 @@ function generateSingleFetchResponse(request, build, serverMode, {
|
|
|
1040
1041
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1041
1042
|
let redirect2 = headers.get("Location");
|
|
1042
1043
|
if (basename) {
|
|
1043
|
-
redirect2 =
|
|
1044
|
+
redirect2 = _chunkZ7T4GLA7js.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1044
1045
|
}
|
|
1045
1046
|
return {
|
|
1046
1047
|
redirect: redirect2,
|
|
@@ -1066,7 +1067,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1066
1067
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1067
1068
|
);
|
|
1068
1069
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1069
|
-
return
|
|
1070
|
+
return _chunkZ7T4GLA7js.encode.call(void 0, data2, {
|
|
1070
1071
|
signal: controller.signal,
|
|
1071
1072
|
plugins: [
|
|
1072
1073
|
(value) => {
|
|
@@ -1074,12 +1075,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1074
1075
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1075
1076
|
return ["SanitizedError", name, message, stack];
|
|
1076
1077
|
}
|
|
1077
|
-
if (value instanceof
|
|
1078
|
+
if (value instanceof _chunkZ7T4GLA7js.ErrorResponseImpl) {
|
|
1078
1079
|
let { data: data3, status, statusText } = value;
|
|
1079
1080
|
return ["ErrorResponse", data3, status, statusText];
|
|
1080
1081
|
}
|
|
1081
|
-
if (value && typeof value === "object" &&
|
|
1082
|
-
return ["SingleFetchRedirect", value[
|
|
1082
|
+
if (value && typeof value === "object" && _chunkZ7T4GLA7js.SingleFetchRedirectSymbol in value) {
|
|
1083
|
+
return ["SingleFetchRedirect", value[_chunkZ7T4GLA7js.SingleFetchRedirectSymbol]];
|
|
1083
1084
|
}
|
|
1084
1085
|
}
|
|
1085
1086
|
],
|
|
@@ -1102,14 +1103,14 @@ function derive(build, mode) {
|
|
|
1102
1103
|
let routes = createRoutes(build.routes);
|
|
1103
1104
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1104
1105
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1105
|
-
let staticHandler =
|
|
1106
|
+
let staticHandler = _chunkZ7T4GLA7js.createStaticHandler.call(void 0, dataRoutes, {
|
|
1106
1107
|
basename: build.basename
|
|
1107
1108
|
});
|
|
1108
1109
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1109
1110
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1110
1111
|
console.error(
|
|
1111
1112
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1112
|
-
|
|
1113
|
+
_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1113
1114
|
);
|
|
1114
1115
|
}
|
|
1115
1116
|
});
|
|
@@ -1156,10 +1157,10 @@ var createRequestHandler = (build, mode) => {
|
|
|
1156
1157
|
};
|
|
1157
1158
|
if (_build.future.unstable_middleware) {
|
|
1158
1159
|
if (initialContext == null) {
|
|
1159
|
-
loadContext = new (0,
|
|
1160
|
+
loadContext = new (0, _chunkZ7T4GLA7js.unstable_RouterContextProvider)();
|
|
1160
1161
|
} else {
|
|
1161
1162
|
try {
|
|
1162
|
-
loadContext = new (0,
|
|
1163
|
+
loadContext = new (0, _chunkZ7T4GLA7js.unstable_RouterContextProvider)(
|
|
1163
1164
|
initialContext
|
|
1164
1165
|
);
|
|
1165
1166
|
} catch (e) {
|
|
@@ -1178,12 +1179,12 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1178
1179
|
let url = new URL(request.url);
|
|
1179
1180
|
let normalizedBasename = _build.basename || "/";
|
|
1180
1181
|
let normalizedPath = url.pathname;
|
|
1181
|
-
if (
|
|
1182
|
+
if (_chunkZ7T4GLA7js.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1182
1183
|
normalizedPath = normalizedBasename;
|
|
1183
1184
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1184
1185
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1185
1186
|
}
|
|
1186
|
-
if (
|
|
1187
|
+
if (_chunkZ7T4GLA7js.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1187
1188
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1188
1189
|
}
|
|
1189
1190
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
@@ -1194,7 +1195,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1194
1195
|
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1195
1196
|
if (url.pathname.endsWith(".data")) {
|
|
1196
1197
|
errorHandler(
|
|
1197
|
-
new (0,
|
|
1198
|
+
new (0, _chunkZ7T4GLA7js.ErrorResponseImpl)(
|
|
1198
1199
|
404,
|
|
1199
1200
|
"Not Found",
|
|
1200
1201
|
`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.`
|
|
@@ -1214,7 +1215,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1214
1215
|
}
|
|
1215
1216
|
}
|
|
1216
1217
|
}
|
|
1217
|
-
let manifestUrl =
|
|
1218
|
+
let manifestUrl = _chunkZ7T4GLA7js.getManifestPath.call(void 0,
|
|
1218
1219
|
_build.routeDiscovery.manifestPath,
|
|
1219
1220
|
normalizedBasename
|
|
1220
1221
|
);
|
|
@@ -1255,7 +1256,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1255
1256
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1256
1257
|
request
|
|
1257
1258
|
});
|
|
1258
|
-
if (
|
|
1259
|
+
if (_chunkZ7T4GLA7js.isRedirectResponse.call(void 0, response)) {
|
|
1259
1260
|
let result = getSingleFetchRedirect(
|
|
1260
1261
|
response.status,
|
|
1261
1262
|
response.headers,
|
|
@@ -1263,7 +1264,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1263
1264
|
);
|
|
1264
1265
|
if (request.method === "GET") {
|
|
1265
1266
|
result = {
|
|
1266
|
-
[
|
|
1267
|
+
[_chunkZ7T4GLA7js.SingleFetchRedirectSymbol]: result
|
|
1267
1268
|
};
|
|
1268
1269
|
}
|
|
1269
1270
|
let headers = new Headers(response.headers);
|
|
@@ -1276,7 +1277,7 @@ Error: ${e instanceof Error ? e.toString() : e}`
|
|
|
1276
1277
|
serverMode
|
|
1277
1278
|
),
|
|
1278
1279
|
{
|
|
1279
|
-
status:
|
|
1280
|
+
status: _chunkZ7T4GLA7js.SINGLE_FETCH_REDIRECT_STATUS,
|
|
1280
1281
|
headers
|
|
1281
1282
|
}
|
|
1282
1283
|
);
|
|
@@ -1389,13 +1390,13 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1389
1390
|
requestContext: loadContext,
|
|
1390
1391
|
unstable_respond: build.future.unstable_middleware ? (ctx) => renderHtml(ctx, isSpaMode) : void 0
|
|
1391
1392
|
});
|
|
1392
|
-
return
|
|
1393
|
+
return _chunkZ7T4GLA7js.isResponse.call(void 0, response) ? response : renderHtml(response, isSpaMode);
|
|
1393
1394
|
} catch (error) {
|
|
1394
1395
|
handleError(error);
|
|
1395
1396
|
return new Response(null, { status: 500 });
|
|
1396
1397
|
}
|
|
1397
1398
|
async function renderHtml(context, isSpaMode2) {
|
|
1398
|
-
if (
|
|
1399
|
+
if (_chunkZ7T4GLA7js.isResponse.call(void 0, context)) {
|
|
1399
1400
|
return context;
|
|
1400
1401
|
}
|
|
1401
1402
|
let headers = getDocumentHeaders(context, build);
|
|
@@ -1404,7 +1405,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1404
1405
|
}
|
|
1405
1406
|
if (context.errors) {
|
|
1406
1407
|
Object.values(context.errors).forEach((err) => {
|
|
1407
|
-
if (!
|
|
1408
|
+
if (!_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1408
1409
|
handleError(err);
|
|
1409
1410
|
}
|
|
1410
1411
|
});
|
|
@@ -1456,10 +1457,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1456
1457
|
} catch (error) {
|
|
1457
1458
|
handleError(error);
|
|
1458
1459
|
let errorForSecondRender = error;
|
|
1459
|
-
if (
|
|
1460
|
+
if (_chunkZ7T4GLA7js.isResponse.call(void 0, error)) {
|
|
1460
1461
|
try {
|
|
1461
1462
|
let data2 = await unwrapResponse(error);
|
|
1462
|
-
errorForSecondRender = new (0,
|
|
1463
|
+
errorForSecondRender = new (0, _chunkZ7T4GLA7js.ErrorResponseImpl)(
|
|
1463
1464
|
error.status,
|
|
1464
1465
|
error.statusText,
|
|
1465
1466
|
data2
|
|
@@ -1467,7 +1468,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1467
1468
|
} catch (e) {
|
|
1468
1469
|
}
|
|
1469
1470
|
}
|
|
1470
|
-
context =
|
|
1471
|
+
context = _chunkZ7T4GLA7js.getStaticContextFromError.call(void 0,
|
|
1471
1472
|
staticHandler.dataRoutes,
|
|
1472
1473
|
context,
|
|
1473
1474
|
errorForSecondRender
|
|
@@ -1514,7 +1515,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1514
1515
|
requestContext: loadContext,
|
|
1515
1516
|
unstable_respond: build.future.unstable_middleware ? (ctx) => ctx : void 0
|
|
1516
1517
|
});
|
|
1517
|
-
if (
|
|
1518
|
+
if (_chunkZ7T4GLA7js.isResponse.call(void 0, response)) {
|
|
1518
1519
|
return response;
|
|
1519
1520
|
}
|
|
1520
1521
|
if (typeof response === "string") {
|
|
@@ -1522,11 +1523,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1522
1523
|
}
|
|
1523
1524
|
return Response.json(response);
|
|
1524
1525
|
} catch (error) {
|
|
1525
|
-
if (
|
|
1526
|
+
if (_chunkZ7T4GLA7js.isResponse.call(void 0, error)) {
|
|
1526
1527
|
error.headers.set("X-Remix-Catch", "yes");
|
|
1527
1528
|
return error;
|
|
1528
1529
|
}
|
|
1529
|
-
if (
|
|
1530
|
+
if (_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, error)) {
|
|
1530
1531
|
if (error) {
|
|
1531
1532
|
handleError(error);
|
|
1532
1533
|
}
|
|
@@ -1654,7 +1655,7 @@ function createSessionStorage({
|
|
|
1654
1655
|
};
|
|
1655
1656
|
}
|
|
1656
1657
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1657
|
-
|
|
1658
|
+
_chunkZ7T4GLA7js.warnOnce.call(void 0,
|
|
1658
1659
|
cookie.isSigned,
|
|
1659
1660
|
`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.`
|
|
1660
1661
|
);
|
|
@@ -1749,12 +1750,12 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
|
|
|
1749
1750
|
...state,
|
|
1750
1751
|
loaderData: { ...state.loaderData }
|
|
1751
1752
|
};
|
|
1752
|
-
let initialMatches =
|
|
1753
|
+
let initialMatches = _chunkZ7T4GLA7js.matchRoutes.call(void 0, routes, location2, basename);
|
|
1753
1754
|
if (initialMatches) {
|
|
1754
1755
|
for (let match of initialMatches) {
|
|
1755
1756
|
let routeId = match.route.id;
|
|
1756
1757
|
let routeInfo = getRouteInfo(routeId);
|
|
1757
|
-
if (
|
|
1758
|
+
if (_chunkZ7T4GLA7js.shouldHydrateRouteLoader.call(void 0,
|
|
1758
1759
|
routeId,
|
|
1759
1760
|
routeInfo.clientLoader,
|
|
1760
1761
|
routeInfo.hasLoader,
|
|
@@ -1832,7 +1833,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1832
1833
|
}
|
|
1833
1834
|
}
|
|
1834
1835
|
);
|
|
1835
|
-
if (
|
|
1836
|
+
if (_chunkZ7T4GLA7js.isRouteErrorResponse.call(void 0, error)) {
|
|
1836
1837
|
return /* @__PURE__ */ React.default.createElement(
|
|
1837
1838
|
ErrorWrapper,
|
|
1838
1839
|
{
|
|
@@ -1840,7 +1841,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1840
1841
|
title: "Unhandled Thrown Response!"
|
|
1841
1842
|
},
|
|
1842
1843
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1843
|
-
|
|
1844
|
+
_chunkZ7T4GLA7js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1844
1845
|
);
|
|
1845
1846
|
}
|
|
1846
1847
|
let errorInstance;
|
|
@@ -1866,7 +1867,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1866
1867
|
function RSCDefaultRootErrorBoundary({
|
|
1867
1868
|
hasRootLayout
|
|
1868
1869
|
}) {
|
|
1869
|
-
let error =
|
|
1870
|
+
let error = _chunkZ7T4GLA7js.useRouteError.call(void 0, );
|
|
1870
1871
|
if (hasRootLayout === void 0) {
|
|
1871
1872
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1872
1873
|
}
|
|
@@ -1978,7 +1979,7 @@ function createRouterFromPayload({
|
|
|
1978
1979
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
1979
1980
|
let patches = /* @__PURE__ */ new Map();
|
|
1980
1981
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
1981
|
-
|
|
1982
|
+
_chunkZ7T4GLA7js.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
1982
1983
|
if (!patches.has(patch.parentId)) {
|
|
1983
1984
|
patches.set(patch.parentId, []);
|
|
1984
1985
|
}
|
|
@@ -2000,11 +2001,11 @@ function createRouterFromPayload({
|
|
|
2000
2001
|
}
|
|
2001
2002
|
return [route];
|
|
2002
2003
|
}, []);
|
|
2003
|
-
window.__router =
|
|
2004
|
+
window.__router = _chunkZ7T4GLA7js.createRouter.call(void 0, {
|
|
2004
2005
|
routes,
|
|
2005
2006
|
unstable_getContext,
|
|
2006
2007
|
basename: payload.basename,
|
|
2007
|
-
history:
|
|
2008
|
+
history: _chunkZ7T4GLA7js.createBrowserHistory.call(void 0, ),
|
|
2008
2009
|
hydrationData: getHydrationData(
|
|
2009
2010
|
{
|
|
2010
2011
|
loaderData: payload.loaderData,
|
|
@@ -2014,7 +2015,7 @@ function createRouterFromPayload({
|
|
|
2014
2015
|
routes,
|
|
2015
2016
|
(routeId) => {
|
|
2016
2017
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2017
|
-
|
|
2018
|
+
_chunkZ7T4GLA7js.invariant.call(void 0, match, "Route not found in payload");
|
|
2018
2019
|
return {
|
|
2019
2020
|
clientLoader: match.clientLoader,
|
|
2020
2021
|
hasLoader: match.hasLoader,
|
|
@@ -2059,9 +2060,9 @@ function createRouterFromPayload({
|
|
|
2059
2060
|
});
|
|
2060
2061
|
return window.__router;
|
|
2061
2062
|
}
|
|
2062
|
-
var renderedRoutesContext =
|
|
2063
|
+
var renderedRoutesContext = _chunkZ7T4GLA7js.unstable_createContext.call(void 0, );
|
|
2063
2064
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2064
|
-
let dataStrategy =
|
|
2065
|
+
let dataStrategy = _chunkZ7T4GLA7js.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2065
2066
|
getRouter,
|
|
2066
2067
|
(match) => {
|
|
2067
2068
|
let M = match;
|
|
@@ -2115,20 +2116,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2115
2116
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2116
2117
|
return async (args, basename, targetRoutes) => {
|
|
2117
2118
|
let { request, context } = args;
|
|
2118
|
-
let url =
|
|
2119
|
+
let url = _chunkZ7T4GLA7js.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2119
2120
|
if (request.method === "GET") {
|
|
2120
|
-
url =
|
|
2121
|
+
url = _chunkZ7T4GLA7js.stripIndexParam.call(void 0, url);
|
|
2121
2122
|
if (targetRoutes) {
|
|
2122
2123
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2123
2124
|
}
|
|
2124
2125
|
}
|
|
2125
2126
|
let res = await fetchImplementation(
|
|
2126
|
-
new Request(url, await
|
|
2127
|
+
new Request(url, await _chunkZ7T4GLA7js.createRequestInit.call(void 0, request))
|
|
2127
2128
|
);
|
|
2128
2129
|
if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
|
|
2129
|
-
throw new (0,
|
|
2130
|
+
throw new (0, _chunkZ7T4GLA7js.ErrorResponseImpl)(404, "Not Found", true);
|
|
2130
2131
|
}
|
|
2131
|
-
|
|
2132
|
+
_chunkZ7T4GLA7js.invariant.call(void 0, res.body, "No response body to decode");
|
|
2132
2133
|
try {
|
|
2133
2134
|
const payload = await createFromReadableStream(res.body, {
|
|
2134
2135
|
temporaryReferences: void 0
|
|
@@ -2152,7 +2153,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2152
2153
|
}
|
|
2153
2154
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2154
2155
|
let results = { routes: {} };
|
|
2155
|
-
const dataKey =
|
|
2156
|
+
const dataKey = _chunkZ7T4GLA7js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2156
2157
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2157
2158
|
results.routes[routeId] = { data: data2 };
|
|
2158
2159
|
}
|
|
@@ -2273,7 +2274,7 @@ function RSCHydratedRouter({
|
|
|
2273
2274
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2274
2275
|
routeModules: {}
|
|
2275
2276
|
};
|
|
2276
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2277
|
+
return /* @__PURE__ */ React4.createElement(_chunkZ7T4GLA7js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkZ7T4GLA7js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunk6ZHKKNZGjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2277
2278
|
}
|
|
2278
2279
|
function createRouteFromServerManifest(match, payload) {
|
|
2279
2280
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2333,7 +2334,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2333
2334
|
return await callSingleFetch(singleFetch);
|
|
2334
2335
|
}
|
|
2335
2336
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2336
|
-
throw
|
|
2337
|
+
throw _chunkZ7T4GLA7js.noActionDefinedError.call(void 0, "action", match.id);
|
|
2337
2338
|
},
|
|
2338
2339
|
path: match.path,
|
|
2339
2340
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2346,7 +2347,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2346
2347
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2347
2348
|
};
|
|
2348
2349
|
if (typeof dataRoute.loader === "function") {
|
|
2349
|
-
dataRoute.loader.hydrate =
|
|
2350
|
+
dataRoute.loader.hydrate = _chunkZ7T4GLA7js.shouldHydrateRouteLoader.call(void 0,
|
|
2350
2351
|
match.id,
|
|
2351
2352
|
match.clientLoader,
|
|
2352
2353
|
match.hasLoader,
|
|
@@ -2356,7 +2357,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2356
2357
|
return dataRoute;
|
|
2357
2358
|
}
|
|
2358
2359
|
function callSingleFetch(singleFetch) {
|
|
2359
|
-
|
|
2360
|
+
_chunkZ7T4GLA7js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2360
2361
|
return singleFetch();
|
|
2361
2362
|
}
|
|
2362
2363
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2364,7 +2365,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2364
2365
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2365
2366
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2366
2367
|
console.error(msg);
|
|
2367
|
-
throw new (0,
|
|
2368
|
+
throw new (0, _chunkZ7T4GLA7js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2368
2369
|
}
|
|
2369
2370
|
}
|
|
2370
2371
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2584,7 +2585,7 @@ function RSCStaticRouter({
|
|
|
2584
2585
|
if (payload.type !== "render") return null;
|
|
2585
2586
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2586
2587
|
for (const match of payload.matches) {
|
|
2587
|
-
if (
|
|
2588
|
+
if (_chunkZ7T4GLA7js.shouldHydrateRouteLoader.call(void 0,
|
|
2588
2589
|
match.id,
|
|
2589
2590
|
match.clientLoader,
|
|
2590
2591
|
match.hasLoader,
|
|
@@ -2618,7 +2619,7 @@ function RSCStaticRouter({
|
|
|
2618
2619
|
}
|
|
2619
2620
|
}))
|
|
2620
2621
|
};
|
|
2621
|
-
const router =
|
|
2622
|
+
const router = _chunk6ZHKKNZGjs.createStaticRouter.call(void 0,
|
|
2622
2623
|
payload.matches.reduceRight((previous, match) => {
|
|
2623
2624
|
const route = {
|
|
2624
2625
|
id: match.id,
|
|
@@ -2662,8 +2663,8 @@ function RSCStaticRouter({
|
|
|
2662
2663
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2663
2664
|
routeModules: {}
|
|
2664
2665
|
};
|
|
2665
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2666
|
-
|
|
2666
|
+
return /* @__PURE__ */ React5.createElement(_chunkZ7T4GLA7js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkZ7T4GLA7js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2667
|
+
_chunk6ZHKKNZGjs.StaticRouterProvider,
|
|
2667
2668
|
{
|
|
2668
2669
|
context,
|
|
2669
2670
|
router,
|
|
@@ -2721,7 +2722,7 @@ function deserializeErrors(errors) {
|
|
|
2721
2722
|
let serialized = {};
|
|
2722
2723
|
for (let [key, val] of entries) {
|
|
2723
2724
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2724
|
-
serialized[key] = new (0,
|
|
2725
|
+
serialized[key] = new (0, _chunkZ7T4GLA7js.ErrorResponseImpl)(
|
|
2725
2726
|
val.status,
|
|
2726
2727
|
val.statusText,
|
|
2727
2728
|
val.data,
|
|
@@ -2876,4 +2877,4 @@ function deserializeErrors(errors) {
|
|
|
2876
2877
|
|
|
2877
2878
|
|
|
2878
2879
|
|
|
2879
|
-
exports.Await =
|
|
2880
|
+
exports.Await = _chunk6ZHKKNZGjs.Await; exports.BrowserRouter = _chunk6ZHKKNZGjs.BrowserRouter; exports.Form = _chunk6ZHKKNZGjs.Form; exports.HashRouter = _chunk6ZHKKNZGjs.HashRouter; exports.IDLE_BLOCKER = _chunkZ7T4GLA7js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkZ7T4GLA7js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkZ7T4GLA7js.IDLE_NAVIGATION; exports.Link = _chunk6ZHKKNZGjs.Link; exports.Links = _chunkZ7T4GLA7js.Links; exports.MemoryRouter = _chunk6ZHKKNZGjs.MemoryRouter; exports.Meta = _chunkZ7T4GLA7js.Meta; exports.NavLink = _chunk6ZHKKNZGjs.NavLink; exports.Navigate = _chunk6ZHKKNZGjs.Navigate; exports.NavigationType = _chunkZ7T4GLA7js.Action; exports.Outlet = _chunk6ZHKKNZGjs.Outlet; exports.PrefetchPageLinks = _chunkZ7T4GLA7js.PrefetchPageLinks; exports.Route = _chunk6ZHKKNZGjs.Route; exports.Router = _chunk6ZHKKNZGjs.Router; exports.RouterProvider = _chunk6ZHKKNZGjs.RouterProvider; exports.Routes = _chunk6ZHKKNZGjs.Routes; exports.Scripts = _chunkZ7T4GLA7js.Scripts; exports.ScrollRestoration = _chunk6ZHKKNZGjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk6ZHKKNZGjs.StaticRouter; exports.StaticRouterProvider = _chunk6ZHKKNZGjs.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunkZ7T4GLA7js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkZ7T4GLA7js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkZ7T4GLA7js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkZ7T4GLA7js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkZ7T4GLA7js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkZ7T4GLA7js.LocationContext; exports.UNSAFE_NavigationContext = _chunkZ7T4GLA7js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkZ7T4GLA7js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkZ7T4GLA7js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkZ7T4GLA7js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkZ7T4GLA7js.ViewTransitionContext; exports.UNSAFE_createBrowserHistory = _chunkZ7T4GLA7js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkZ7T4GLA7js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkZ7T4GLA7js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkZ7T4GLA7js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkZ7T4GLA7js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkZ7T4GLA7js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkZ7T4GLA7js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunk6ZHKKNZGjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkZ7T4GLA7js.invariant; exports.UNSAFE_mapRouteProperties = _chunk6ZHKKNZGjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkZ7T4GLA7js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkZ7T4GLA7js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk6ZHKKNZGjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunk6ZHKKNZGjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunk6ZHKKNZGjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunk6ZHKKNZGjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunk6ZHKKNZGjs.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk6ZHKKNZGjs.createHashRouter; exports.createMemoryRouter = _chunk6ZHKKNZGjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkZ7T4GLA7js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunk6ZHKKNZGjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunk6ZHKKNZGjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk6ZHKKNZGjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk6ZHKKNZGjs.createStaticHandler; exports.createStaticRouter = _chunk6ZHKKNZGjs.createStaticRouter; exports.data = _chunkZ7T4GLA7js.data; exports.generatePath = _chunkZ7T4GLA7js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkZ7T4GLA7js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkZ7T4GLA7js.matchPath; exports.matchRoutes = _chunkZ7T4GLA7js.matchRoutes; exports.parsePath = _chunkZ7T4GLA7js.parsePath; exports.redirect = _chunkZ7T4GLA7js.redirect; exports.redirectDocument = _chunkZ7T4GLA7js.redirectDocument; exports.renderMatches = _chunk6ZHKKNZGjs.renderMatches; exports.replace = _chunkZ7T4GLA7js.replace; exports.resolvePath = _chunkZ7T4GLA7js.resolvePath; exports.unstable_HistoryRouter = _chunk6ZHKKNZGjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunkZ7T4GLA7js.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunkZ7T4GLA7js.unstable_createContext; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunk6ZHKKNZGjs.usePrompt; exports.useActionData = _chunkZ7T4GLA7js.useActionData; exports.useAsyncError = _chunkZ7T4GLA7js.useAsyncError; exports.useAsyncValue = _chunkZ7T4GLA7js.useAsyncValue; exports.useBeforeUnload = _chunk6ZHKKNZGjs.useBeforeUnload; exports.useBlocker = _chunkZ7T4GLA7js.useBlocker; exports.useFetcher = _chunk6ZHKKNZGjs.useFetcher; exports.useFetchers = _chunk6ZHKKNZGjs.useFetchers; exports.useFormAction = _chunk6ZHKKNZGjs.useFormAction; exports.useHref = _chunkZ7T4GLA7js.useHref; exports.useInRouterContext = _chunkZ7T4GLA7js.useInRouterContext; exports.useLinkClickHandler = _chunk6ZHKKNZGjs.useLinkClickHandler; exports.useLoaderData = _chunkZ7T4GLA7js.useLoaderData; exports.useLocation = _chunkZ7T4GLA7js.useLocation; exports.useMatch = _chunkZ7T4GLA7js.useMatch; exports.useMatches = _chunkZ7T4GLA7js.useMatches; exports.useNavigate = _chunkZ7T4GLA7js.useNavigate; exports.useNavigation = _chunkZ7T4GLA7js.useNavigation; exports.useNavigationType = _chunkZ7T4GLA7js.useNavigationType; exports.useOutlet = _chunkZ7T4GLA7js.useOutlet; exports.useOutletContext = _chunkZ7T4GLA7js.useOutletContext; exports.useParams = _chunkZ7T4GLA7js.useParams; exports.useResolvedPath = _chunkZ7T4GLA7js.useResolvedPath; exports.useRevalidator = _chunkZ7T4GLA7js.useRevalidator; exports.useRouteError = _chunkZ7T4GLA7js.useRouteError; exports.useRouteLoaderData = _chunkZ7T4GLA7js.useRouteLoaderData; exports.useRoutes = _chunkZ7T4GLA7js.useRoutes; exports.useSearchParams = _chunk6ZHKKNZGjs.useSearchParams; exports.useSubmit = _chunk6ZHKKNZGjs.useSubmit; exports.useViewTransitionState = _chunk6ZHKKNZGjs.useViewTransitionState;
|