react-router 7.13.2-pre.0 → 7.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -11
- package/dist/development/{chunk-WO3PXTPV.js → chunk-GO74ODU3.js} +1 -1
- package/dist/development/{chunk-ZHBHDHL3.js → chunk-HPFFRPKK.js} +99 -99
- package/dist/development/{chunk-FXJW44AE.js → chunk-LLP6DRWX.js} +7 -7
- package/dist/development/{chunk-JEVMZMTG.mjs → chunk-UALY5CBT.mjs} +2 -2
- package/dist/development/{chunk-WM3TIFYP.mjs → chunk-UVKPFVEO.mjs} +2 -2
- package/dist/development/dom-export.js +28 -28
- 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 +82 -82
- 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-GCYIH3UC.mjs → chunk-2BDJPJTA.mjs} +2 -2
- package/dist/production/{chunk-R7LC5VXK.js → chunk-CAFVLUDY.js} +7 -7
- package/dist/production/{chunk-6A7E6W56.js → chunk-LKUVSIBA.js} +1 -1
- package/dist/production/{chunk-ZLBCNRMB.mjs → chunk-PY35PE22.mjs} +2 -2
- package/dist/production/{chunk-C3CA6GXO.js → chunk-XAAX7KIK.js} +99 -99
- package/dist/production/dom-export.js +28 -28
- 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 +82 -82
- 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.13.2
|
|
2
|
+
* react-router v7.13.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkCAFVLUDYjs = require('./chunk-CAFVLUDY.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkR7LC5VXKjs = require('./chunk-R7LC5VXK.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkXAAX7KIKjs = require('./chunk-XAAX7KIK.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -149,7 +149,7 @@ var _chunkC3CA6GXOjs = require('./chunk-C3CA6GXO.js');
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var
|
|
152
|
+
var _chunkLKUVSIBAjs = require('./chunk-LKUVSIBA.js');
|
|
153
153
|
|
|
154
154
|
// lib/dom/ssr/server.tsx
|
|
155
155
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -162,7 +162,7 @@ function ServerRouter({
|
|
|
162
162
|
url = new URL(url);
|
|
163
163
|
}
|
|
164
164
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
165
|
-
let routes =
|
|
165
|
+
let routes = _chunkLKUVSIBAjs.createServerRoutes.call(void 0,
|
|
166
166
|
manifest.routes,
|
|
167
167
|
routeModules,
|
|
168
168
|
context.future,
|
|
@@ -175,7 +175,7 @@ function ServerRouter({
|
|
|
175
175
|
let routeId = match.route.id;
|
|
176
176
|
let route = routeModules[routeId];
|
|
177
177
|
let manifestRoute = context.manifest.routes[routeId];
|
|
178
|
-
if (route && manifestRoute &&
|
|
178
|
+
if (route && manifestRoute && _chunkLKUVSIBAjs.shouldHydrateRouteLoader.call(void 0,
|
|
179
179
|
routeId,
|
|
180
180
|
route.clientLoader,
|
|
181
181
|
manifestRoute.hasLoader,
|
|
@@ -184,9 +184,9 @@ function ServerRouter({
|
|
|
184
184
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
let router =
|
|
187
|
+
let router = _chunkXAAX7KIKjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
188
188
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
|
|
189
|
+
_chunkLKUVSIBAjs.FrameworkContext.Provider,
|
|
190
190
|
{
|
|
191
191
|
value: {
|
|
192
192
|
manifest,
|
|
@@ -201,8 +201,8 @@ function ServerRouter({
|
|
|
201
201
|
renderMeta: context.renderMeta
|
|
202
202
|
}
|
|
203
203
|
},
|
|
204
|
-
/* @__PURE__ */ React.createElement(
|
|
205
|
-
|
|
204
|
+
/* @__PURE__ */ React.createElement(_chunkLKUVSIBAjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
205
|
+
_chunkXAAX7KIKjs.StaticRouterProvider,
|
|
206
206
|
{
|
|
207
207
|
router,
|
|
208
208
|
context: context.staticHandlerContext,
|
|
@@ -210,7 +210,7 @@ function ServerRouter({
|
|
|
210
210
|
}
|
|
211
211
|
))
|
|
212
212
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
213
|
-
|
|
213
|
+
_chunkLKUVSIBAjs.StreamTransfer,
|
|
214
214
|
{
|
|
215
215
|
context,
|
|
216
216
|
identifier: 0,
|
|
@@ -254,18 +254,18 @@ function createRoutesStub(routes, _context) {
|
|
|
254
254
|
let patched = processRoutes(
|
|
255
255
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
256
256
|
// types compared to `RouteObject`
|
|
257
|
-
|
|
258
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0,
|
|
257
|
+
_chunkLKUVSIBAjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
258
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0, _chunkLKUVSIBAjs.RouterContextProvider)() : {},
|
|
259
259
|
frameworkContextRef.current.manifest,
|
|
260
260
|
frameworkContextRef.current.routeModules
|
|
261
261
|
);
|
|
262
|
-
routerRef.current =
|
|
262
|
+
routerRef.current = _chunkLKUVSIBAjs.createMemoryRouter.call(void 0, patched, {
|
|
263
263
|
initialEntries,
|
|
264
264
|
initialIndex,
|
|
265
265
|
hydrationData
|
|
266
266
|
});
|
|
267
267
|
}
|
|
268
|
-
return /* @__PURE__ */ React2.createElement(
|
|
268
|
+
return /* @__PURE__ */ React2.createElement(_chunkLKUVSIBAjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkLKUVSIBAjs.RouterProvider, { router: routerRef.current }));
|
|
269
269
|
};
|
|
270
270
|
}
|
|
271
271
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -279,9 +279,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
279
279
|
id: route.id,
|
|
280
280
|
path: route.path,
|
|
281
281
|
index: route.index,
|
|
282
|
-
Component: route.Component ?
|
|
283
|
-
HydrateFallback: route.HydrateFallback ?
|
|
284
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
282
|
+
Component: route.Component ? _chunkLKUVSIBAjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
283
|
+
HydrateFallback: route.HydrateFallback ? _chunkLKUVSIBAjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
284
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkLKUVSIBAjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
285
285
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
286
286
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
287
287
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -316,7 +316,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
316
316
|
};
|
|
317
317
|
manifest.routes[newRoute.id] = entryRoute;
|
|
318
318
|
routeModules[route.id] = {
|
|
319
|
-
default: newRoute.Component ||
|
|
319
|
+
default: newRoute.Component || _chunkLKUVSIBAjs.Outlet,
|
|
320
320
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
321
321
|
handle: route.handle,
|
|
322
322
|
links: route.links,
|
|
@@ -511,7 +511,7 @@ function myUnescape(value) {
|
|
|
511
511
|
return result;
|
|
512
512
|
}
|
|
513
513
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
514
|
-
|
|
514
|
+
_chunkLKUVSIBAjs.warnOnce.call(void 0,
|
|
515
515
|
!expires,
|
|
516
516
|
`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.`
|
|
517
517
|
);
|
|
@@ -565,7 +565,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
565
565
|
let entries = Object.entries(errors);
|
|
566
566
|
let serialized = {};
|
|
567
567
|
for (let [key, val] of entries) {
|
|
568
|
-
if (
|
|
568
|
+
if (_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, val)) {
|
|
569
569
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
570
570
|
} else if (val instanceof Error) {
|
|
571
571
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -590,7 +590,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
590
590
|
|
|
591
591
|
// lib/server-runtime/routeMatching.ts
|
|
592
592
|
function matchServerRoutes(routes, pathname, basename) {
|
|
593
|
-
let matches =
|
|
593
|
+
let matches = _chunkLKUVSIBAjs.matchRoutes.call(void 0,
|
|
594
594
|
routes,
|
|
595
595
|
pathname,
|
|
596
596
|
basename
|
|
@@ -612,7 +612,7 @@ async function callRouteHandler(handler, args, future) {
|
|
|
612
612
|
context: args.context,
|
|
613
613
|
unstable_pattern: args.unstable_pattern
|
|
614
614
|
});
|
|
615
|
-
if (
|
|
615
|
+
if (_chunkLKUVSIBAjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkLKUVSIBAjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
616
616
|
throw new Response(null, result.init);
|
|
617
617
|
}
|
|
618
618
|
return result;
|
|
@@ -731,17 +731,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
731
731
|
controller.close();
|
|
732
732
|
}
|
|
733
733
|
});
|
|
734
|
-
let decoded = await
|
|
734
|
+
let decoded = await _chunkLKUVSIBAjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
735
735
|
let data2 = decoded.value;
|
|
736
|
-
if (data2 &&
|
|
737
|
-
let result = data2[
|
|
736
|
+
if (data2 && _chunkLKUVSIBAjs.SingleFetchRedirectSymbol in data2) {
|
|
737
|
+
let result = data2[_chunkLKUVSIBAjs.SingleFetchRedirectSymbol];
|
|
738
738
|
let init = { status: result.status };
|
|
739
739
|
if (result.reload) {
|
|
740
|
-
throw
|
|
740
|
+
throw _chunkLKUVSIBAjs.redirectDocument.call(void 0, result.redirect, init);
|
|
741
741
|
} else if (result.replace) {
|
|
742
|
-
throw
|
|
742
|
+
throw _chunkLKUVSIBAjs.replace.call(void 0, result.redirect, init);
|
|
743
743
|
} else {
|
|
744
|
-
throw
|
|
744
|
+
throw _chunkLKUVSIBAjs.redirect.call(void 0, result.redirect, init);
|
|
745
745
|
}
|
|
746
746
|
} else {
|
|
747
747
|
invariant2(
|
|
@@ -784,7 +784,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
784
784
|
|
|
785
785
|
// lib/server-runtime/serverHandoff.ts
|
|
786
786
|
function createServerHandoffString(serverHandoff) {
|
|
787
|
-
return
|
|
787
|
+
return _chunkLKUVSIBAjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
788
788
|
}
|
|
789
789
|
|
|
790
790
|
// lib/server-runtime/headers.ts
|
|
@@ -954,12 +954,12 @@ function getNormalizedPath(request, basename, future) {
|
|
|
954
954
|
pathname = pathname.replace(/\.data$/, "");
|
|
955
955
|
}
|
|
956
956
|
} else {
|
|
957
|
-
if (
|
|
957
|
+
if (_chunkLKUVSIBAjs.stripBasename.call(void 0, pathname, basename) === "/_root.data") {
|
|
958
958
|
pathname = basename;
|
|
959
959
|
} else if (pathname.endsWith(".data")) {
|
|
960
960
|
pathname = pathname.replace(/\.data$/, "");
|
|
961
961
|
}
|
|
962
|
-
if (
|
|
962
|
+
if (_chunkLKUVSIBAjs.stripBasename.call(void 0, pathname, basename) !== "/" && pathname.endsWith("/")) {
|
|
963
963
|
pathname = pathname.slice(0, -1);
|
|
964
964
|
}
|
|
965
965
|
}
|
|
@@ -979,7 +979,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
979
979
|
|
|
980
980
|
// lib/server-runtime/single-fetch.ts
|
|
981
981
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
982
|
-
...
|
|
982
|
+
..._chunkLKUVSIBAjs.NO_BODY_STATUS_CODES,
|
|
983
983
|
304
|
|
984
984
|
]);
|
|
985
985
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -1018,7 +1018,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1018
1018
|
return handleQueryError(error);
|
|
1019
1019
|
}
|
|
1020
1020
|
function handleQueryResult(result) {
|
|
1021
|
-
return
|
|
1021
|
+
return _chunkLKUVSIBAjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1022
1022
|
}
|
|
1023
1023
|
function handleQueryError(error, status = 500) {
|
|
1024
1024
|
handleError(error);
|
|
@@ -1030,12 +1030,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
1030
1030
|
}
|
|
1031
1031
|
function staticContextToResponse(context) {
|
|
1032
1032
|
let headers = getDocumentHeaders(context, build);
|
|
1033
|
-
if (
|
|
1033
|
+
if (_chunkLKUVSIBAjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1034
1034
|
return new Response(null, { status: context.statusCode, headers });
|
|
1035
1035
|
}
|
|
1036
1036
|
if (context.errors) {
|
|
1037
1037
|
Object.values(context.errors).forEach((err) => {
|
|
1038
|
-
if (!
|
|
1038
|
+
if (!_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1039
1039
|
handleError(err);
|
|
1040
1040
|
}
|
|
1041
1041
|
});
|
|
@@ -1083,7 +1083,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1083
1083
|
return handleQueryError(error);
|
|
1084
1084
|
}
|
|
1085
1085
|
function handleQueryResult(result) {
|
|
1086
|
-
return
|
|
1086
|
+
return _chunkLKUVSIBAjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
1087
1087
|
}
|
|
1088
1088
|
function handleQueryError(error) {
|
|
1089
1089
|
handleError(error);
|
|
@@ -1095,12 +1095,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
1095
1095
|
}
|
|
1096
1096
|
function staticContextToResponse(context) {
|
|
1097
1097
|
let headers = getDocumentHeaders(context, build);
|
|
1098
|
-
if (
|
|
1098
|
+
if (_chunkLKUVSIBAjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
1099
1099
|
return new Response(null, { status: context.statusCode, headers });
|
|
1100
1100
|
}
|
|
1101
1101
|
if (context.errors) {
|
|
1102
1102
|
Object.values(context.errors).forEach((err) => {
|
|
1103
|
-
if (!
|
|
1103
|
+
if (!_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1104
1104
|
handleError(err);
|
|
1105
1105
|
}
|
|
1106
1106
|
});
|
|
@@ -1164,15 +1164,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1164
1164
|
headers.delete("Location");
|
|
1165
1165
|
headers.set("Content-Type", "text/x-script");
|
|
1166
1166
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1167
|
-
result: request.method === "GET" ? { [
|
|
1167
|
+
result: request.method === "GET" ? { [_chunkLKUVSIBAjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1168
1168
|
headers,
|
|
1169
|
-
status:
|
|
1169
|
+
status: _chunkLKUVSIBAjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1170
1170
|
});
|
|
1171
1171
|
}
|
|
1172
1172
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1173
1173
|
let redirect2 = headers.get("Location");
|
|
1174
1174
|
if (basename) {
|
|
1175
|
-
redirect2 =
|
|
1175
|
+
redirect2 = _chunkLKUVSIBAjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
1178
1178
|
redirect: redirect2,
|
|
@@ -1199,7 +1199,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1199
1199
|
);
|
|
1200
1200
|
let clearStreamTimeout = () => clearTimeout(timeoutId);
|
|
1201
1201
|
requestSignal.addEventListener("abort", clearStreamTimeout);
|
|
1202
|
-
return
|
|
1202
|
+
return _chunkLKUVSIBAjs.encode.call(void 0, data2, {
|
|
1203
1203
|
signal: controller.signal,
|
|
1204
1204
|
onComplete: clearStreamTimeout,
|
|
1205
1205
|
plugins: [
|
|
@@ -1208,12 +1208,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1208
1208
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1209
1209
|
return ["SanitizedError", name, message, stack];
|
|
1210
1210
|
}
|
|
1211
|
-
if (value instanceof
|
|
1211
|
+
if (value instanceof _chunkLKUVSIBAjs.ErrorResponseImpl) {
|
|
1212
1212
|
let { data: data3, status, statusText } = value;
|
|
1213
1213
|
return ["ErrorResponse", data3, status, statusText];
|
|
1214
1214
|
}
|
|
1215
|
-
if (value && typeof value === "object" &&
|
|
1216
|
-
return ["SingleFetchRedirect", value[
|
|
1215
|
+
if (value && typeof value === "object" && _chunkLKUVSIBAjs.SingleFetchRedirectSymbol in value) {
|
|
1216
|
+
return ["SingleFetchRedirect", value[_chunkLKUVSIBAjs.SingleFetchRedirectSymbol]];
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
],
|
|
@@ -1236,7 +1236,7 @@ function derive(build, mode) {
|
|
|
1236
1236
|
let routes = createRoutes(build.routes);
|
|
1237
1237
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1238
1238
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1239
|
-
let staticHandler =
|
|
1239
|
+
let staticHandler = _chunkLKUVSIBAjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1240
1240
|
basename: build.basename,
|
|
1241
1241
|
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1242
1242
|
});
|
|
@@ -1244,7 +1244,7 @@ function derive(build, mode) {
|
|
|
1244
1244
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1245
1245
|
console.error(
|
|
1246
1246
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1247
|
-
|
|
1247
|
+
_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1248
1248
|
);
|
|
1249
1249
|
}
|
|
1250
1250
|
});
|
|
@@ -1262,14 +1262,14 @@ function derive(build, mode) {
|
|
|
1262
1262
|
});
|
|
1263
1263
|
};
|
|
1264
1264
|
if (build.future.v8_middleware) {
|
|
1265
|
-
if (initialContext && !(initialContext instanceof
|
|
1265
|
+
if (initialContext && !(initialContext instanceof _chunkLKUVSIBAjs.RouterContextProvider)) {
|
|
1266
1266
|
let error = new Error(
|
|
1267
1267
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1268
1268
|
);
|
|
1269
1269
|
handleError(error);
|
|
1270
1270
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1271
1271
|
}
|
|
1272
|
-
loadContext = initialContext || new (0,
|
|
1272
|
+
loadContext = initialContext || new (0, _chunkLKUVSIBAjs.RouterContextProvider)();
|
|
1273
1273
|
} else {
|
|
1274
1274
|
loadContext = initialContext || {};
|
|
1275
1275
|
}
|
|
@@ -1283,10 +1283,10 @@ function derive(build, mode) {
|
|
|
1283
1283
|
if (!build.ssr) {
|
|
1284
1284
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1285
1285
|
if (build.basename && build.basename !== "/") {
|
|
1286
|
-
let strippedPath =
|
|
1286
|
+
let strippedPath = _chunkLKUVSIBAjs.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1287
1287
|
if (strippedPath == null) {
|
|
1288
1288
|
errorHandler(
|
|
1289
|
-
new (0,
|
|
1289
|
+
new (0, _chunkLKUVSIBAjs.ErrorResponseImpl)(
|
|
1290
1290
|
404,
|
|
1291
1291
|
"Not Found",
|
|
1292
1292
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1309,7 +1309,7 @@ function derive(build, mode) {
|
|
|
1309
1309
|
} else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
|
|
1310
1310
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1311
1311
|
errorHandler(
|
|
1312
|
-
new (0,
|
|
1312
|
+
new (0, _chunkLKUVSIBAjs.ErrorResponseImpl)(
|
|
1313
1313
|
404,
|
|
1314
1314
|
"Not Found",
|
|
1315
1315
|
`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.`
|
|
@@ -1329,7 +1329,7 @@ function derive(build, mode) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
|
-
let manifestUrl =
|
|
1332
|
+
let manifestUrl = _chunkLKUVSIBAjs.getManifestPath.call(void 0,
|
|
1333
1333
|
build.routeDiscovery.manifestPath,
|
|
1334
1334
|
build.basename
|
|
1335
1335
|
);
|
|
@@ -1362,7 +1362,7 @@ function derive(build, mode) {
|
|
|
1362
1362
|
loadContext,
|
|
1363
1363
|
handleError
|
|
1364
1364
|
);
|
|
1365
|
-
if (
|
|
1365
|
+
if (_chunkLKUVSIBAjs.isRedirectResponse.call(void 0, response)) {
|
|
1366
1366
|
response = generateSingleFetchRedirectResponse(
|
|
1367
1367
|
response,
|
|
1368
1368
|
request,
|
|
@@ -1376,7 +1376,7 @@ function derive(build, mode) {
|
|
|
1376
1376
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1377
1377
|
request
|
|
1378
1378
|
});
|
|
1379
|
-
if (
|
|
1379
|
+
if (_chunkLKUVSIBAjs.isRedirectResponse.call(void 0, response)) {
|
|
1380
1380
|
response = generateSingleFetchRedirectResponse(
|
|
1381
1381
|
response,
|
|
1382
1382
|
request,
|
|
@@ -1424,7 +1424,7 @@ function derive(build, mode) {
|
|
|
1424
1424
|
return response;
|
|
1425
1425
|
};
|
|
1426
1426
|
if (build.entry.module.unstable_instrumentations) {
|
|
1427
|
-
requestHandler =
|
|
1427
|
+
requestHandler = _chunkLKUVSIBAjs.instrumentHandler.call(void 0,
|
|
1428
1428
|
requestHandler,
|
|
1429
1429
|
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1430
1430
|
);
|
|
@@ -1549,7 +1549,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1549
1549
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1550
1550
|
try {
|
|
1551
1551
|
let innerResult = await query(request);
|
|
1552
|
-
if (!
|
|
1552
|
+
if (!_chunkLKUVSIBAjs.isResponse.call(void 0, innerResult)) {
|
|
1553
1553
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1554
1554
|
}
|
|
1555
1555
|
return innerResult;
|
|
@@ -1560,7 +1560,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1560
1560
|
} : void 0,
|
|
1561
1561
|
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1562
1562
|
});
|
|
1563
|
-
if (!
|
|
1563
|
+
if (!_chunkLKUVSIBAjs.isResponse.call(void 0, result)) {
|
|
1564
1564
|
result = await renderHtml(result, isSpaMode);
|
|
1565
1565
|
}
|
|
1566
1566
|
return result;
|
|
@@ -1575,7 +1575,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1575
1575
|
}
|
|
1576
1576
|
if (context.errors) {
|
|
1577
1577
|
Object.values(context.errors).forEach((err) => {
|
|
1578
|
-
if (!
|
|
1578
|
+
if (!_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1579
1579
|
handleError(err);
|
|
1580
1580
|
}
|
|
1581
1581
|
});
|
|
@@ -1627,10 +1627,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1627
1627
|
} catch (error) {
|
|
1628
1628
|
handleError(error);
|
|
1629
1629
|
let errorForSecondRender = error;
|
|
1630
|
-
if (
|
|
1630
|
+
if (_chunkLKUVSIBAjs.isResponse.call(void 0, error)) {
|
|
1631
1631
|
try {
|
|
1632
1632
|
let data2 = await unwrapResponse(error);
|
|
1633
|
-
errorForSecondRender = new (0,
|
|
1633
|
+
errorForSecondRender = new (0, _chunkLKUVSIBAjs.ErrorResponseImpl)(
|
|
1634
1634
|
error.status,
|
|
1635
1635
|
error.statusText,
|
|
1636
1636
|
data2
|
|
@@ -1638,7 +1638,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1638
1638
|
} catch (e) {
|
|
1639
1639
|
}
|
|
1640
1640
|
}
|
|
1641
|
-
context =
|
|
1641
|
+
context = _chunkLKUVSIBAjs.getStaticContextFromError.call(void 0,
|
|
1642
1642
|
staticHandler.dataRoutes,
|
|
1643
1643
|
context,
|
|
1644
1644
|
errorForSecondRender
|
|
@@ -1698,7 +1698,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1698
1698
|
return handleQueryRouteError(error);
|
|
1699
1699
|
}
|
|
1700
1700
|
function handleQueryRouteResult(result) {
|
|
1701
|
-
if (
|
|
1701
|
+
if (_chunkLKUVSIBAjs.isResponse.call(void 0, result)) {
|
|
1702
1702
|
return result;
|
|
1703
1703
|
}
|
|
1704
1704
|
if (typeof result === "string") {
|
|
@@ -1707,10 +1707,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1707
1707
|
return Response.json(result);
|
|
1708
1708
|
}
|
|
1709
1709
|
function handleQueryRouteError(error) {
|
|
1710
|
-
if (
|
|
1710
|
+
if (_chunkLKUVSIBAjs.isResponse.call(void 0, error)) {
|
|
1711
1711
|
return error;
|
|
1712
1712
|
}
|
|
1713
|
-
if (
|
|
1713
|
+
if (_chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1714
1714
|
handleError(error);
|
|
1715
1715
|
return errorResponseToJson(error, serverMode);
|
|
1716
1716
|
}
|
|
@@ -1833,7 +1833,7 @@ function createSessionStorage({
|
|
|
1833
1833
|
};
|
|
1834
1834
|
}
|
|
1835
1835
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1836
|
-
|
|
1836
|
+
_chunkLKUVSIBAjs.warnOnce.call(void 0,
|
|
1837
1837
|
cookie.isSigned,
|
|
1838
1838
|
`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.`
|
|
1839
1839
|
);
|
|
@@ -2113,7 +2113,7 @@ async function routeRSCServerRequest({
|
|
|
2113
2113
|
const payload = await createFromReadableStream(
|
|
2114
2114
|
detectRedirectResponse.body
|
|
2115
2115
|
);
|
|
2116
|
-
if (serverResponse.status ===
|
|
2116
|
+
if (serverResponse.status === _chunkLKUVSIBAjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2117
2117
|
const headers2 = new Headers(serverResponse.headers);
|
|
2118
2118
|
headers2.delete("Content-Encoding");
|
|
2119
2119
|
headers2.delete("Content-Length");
|
|
@@ -2132,11 +2132,11 @@ async function routeRSCServerRequest({
|
|
|
2132
2132
|
let html = await renderHTML(getPayload, {
|
|
2133
2133
|
onError(error) {
|
|
2134
2134
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2135
|
-
renderRedirect =
|
|
2135
|
+
renderRedirect = _chunkLKUVSIBAjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2136
2136
|
if (renderRedirect) {
|
|
2137
2137
|
return error.digest;
|
|
2138
2138
|
}
|
|
2139
|
-
let routeErrorResponse =
|
|
2139
|
+
let routeErrorResponse = _chunkLKUVSIBAjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2140
2140
|
if (routeErrorResponse) {
|
|
2141
2141
|
renderError = routeErrorResponse;
|
|
2142
2142
|
status = routeErrorResponse.status;
|
|
@@ -2168,7 +2168,7 @@ async function routeRSCServerRequest({
|
|
|
2168
2168
|
if (renderRedirect) {
|
|
2169
2169
|
controller.enqueue(
|
|
2170
2170
|
new TextEncoder().encode(
|
|
2171
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2171
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkLKUVSIBAjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
|
|
2172
2172
|
)
|
|
2173
2173
|
);
|
|
2174
2174
|
}
|
|
@@ -2204,7 +2204,7 @@ async function routeRSCServerRequest({
|
|
|
2204
2204
|
}
|
|
2205
2205
|
try {
|
|
2206
2206
|
reason = _nullishCoalesce(renderError, () => ( reason));
|
|
2207
|
-
let [status, statusText] =
|
|
2207
|
+
let [status, statusText] = _chunkLKUVSIBAjs.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
|
|
2208
2208
|
let retryRedirect;
|
|
2209
2209
|
let reactHeaders = new Headers();
|
|
2210
2210
|
const html = await renderHTML(
|
|
@@ -2241,11 +2241,11 @@ async function routeRSCServerRequest({
|
|
|
2241
2241
|
{
|
|
2242
2242
|
onError(error) {
|
|
2243
2243
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2244
|
-
retryRedirect =
|
|
2244
|
+
retryRedirect = _chunkLKUVSIBAjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2245
2245
|
if (retryRedirect) {
|
|
2246
2246
|
return error.digest;
|
|
2247
2247
|
}
|
|
2248
|
-
let routeErrorResponse =
|
|
2248
|
+
let routeErrorResponse = _chunkLKUVSIBAjs.decodeRouteErrorResponseDigest.call(void 0,
|
|
2249
2249
|
error.digest
|
|
2250
2250
|
);
|
|
2251
2251
|
if (routeErrorResponse) {
|
|
@@ -2279,7 +2279,7 @@ async function routeRSCServerRequest({
|
|
|
2279
2279
|
if (retryRedirect) {
|
|
2280
2280
|
controller.enqueue(
|
|
2281
2281
|
new TextEncoder().encode(
|
|
2282
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2282
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkLKUVSIBAjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
|
|
2283
2283
|
)
|
|
2284
2284
|
);
|
|
2285
2285
|
}
|
|
@@ -2320,7 +2320,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2320
2320
|
if (payload.type !== "render") return null;
|
|
2321
2321
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2322
2322
|
for (const match of payload.matches) {
|
|
2323
|
-
if (
|
|
2323
|
+
if (_chunkLKUVSIBAjs.shouldHydrateRouteLoader.call(void 0,
|
|
2324
2324
|
match.id,
|
|
2325
2325
|
match.clientLoader,
|
|
2326
2326
|
match.hasLoader,
|
|
@@ -2360,7 +2360,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2360
2360
|
}
|
|
2361
2361
|
}))
|
|
2362
2362
|
};
|
|
2363
|
-
const router =
|
|
2363
|
+
const router = _chunkXAAX7KIKjs.createStaticRouter.call(void 0,
|
|
2364
2364
|
payload.matches.reduceRight((previous, match) => {
|
|
2365
2365
|
const route = {
|
|
2366
2366
|
id: match.id,
|
|
@@ -2406,10 +2406,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
},
|
|
2408
2408
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2409
|
-
routeModules:
|
|
2409
|
+
routeModules: _chunkCAFVLUDYjs.createRSCRouteModules.call(void 0, payload)
|
|
2410
2410
|
};
|
|
2411
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2412
|
-
|
|
2411
|
+
return /* @__PURE__ */ React3.createElement(_chunkLKUVSIBAjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkCAFVLUDYjs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkLKUVSIBAjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2412
|
+
_chunkXAAX7KIKjs.StaticRouterProvider,
|
|
2413
2413
|
{
|
|
2414
2414
|
context,
|
|
2415
2415
|
router,
|
|
@@ -2432,7 +2432,7 @@ function deserializeErrors(errors) {
|
|
|
2432
2432
|
let serialized = {};
|
|
2433
2433
|
for (let [key, val] of entries) {
|
|
2434
2434
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2435
|
-
serialized[key] = new (0,
|
|
2435
|
+
serialized[key] = new (0, _chunkLKUVSIBAjs.ErrorResponseImpl)(
|
|
2436
2436
|
val.status,
|
|
2437
2437
|
val.statusText,
|
|
2438
2438
|
val.data,
|
|
@@ -2591,4 +2591,4 @@ function deserializeErrors(errors) {
|
|
|
2591
2591
|
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
|
-
exports.Await =
|
|
2594
|
+
exports.Await = _chunkLKUVSIBAjs.Await; exports.BrowserRouter = _chunkXAAX7KIKjs.BrowserRouter; exports.Form = _chunkXAAX7KIKjs.Form; exports.HashRouter = _chunkXAAX7KIKjs.HashRouter; exports.IDLE_BLOCKER = _chunkLKUVSIBAjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkLKUVSIBAjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkLKUVSIBAjs.IDLE_NAVIGATION; exports.Link = _chunkXAAX7KIKjs.Link; exports.Links = _chunkLKUVSIBAjs.Links; exports.MemoryRouter = _chunkLKUVSIBAjs.MemoryRouter; exports.Meta = _chunkLKUVSIBAjs.Meta; exports.NavLink = _chunkXAAX7KIKjs.NavLink; exports.Navigate = _chunkLKUVSIBAjs.Navigate; exports.NavigationType = _chunkLKUVSIBAjs.Action; exports.Outlet = _chunkLKUVSIBAjs.Outlet; exports.PrefetchPageLinks = _chunkLKUVSIBAjs.PrefetchPageLinks; exports.Route = _chunkLKUVSIBAjs.Route; exports.Router = _chunkLKUVSIBAjs.Router; exports.RouterContextProvider = _chunkLKUVSIBAjs.RouterContextProvider; exports.RouterProvider = _chunkLKUVSIBAjs.RouterProvider; exports.Routes = _chunkLKUVSIBAjs.Routes; exports.Scripts = _chunkLKUVSIBAjs.Scripts; exports.ScrollRestoration = _chunkXAAX7KIKjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkXAAX7KIKjs.StaticRouter; exports.StaticRouterProvider = _chunkXAAX7KIKjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkLKUVSIBAjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkLKUVSIBAjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkLKUVSIBAjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkLKUVSIBAjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkLKUVSIBAjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkLKUVSIBAjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkLKUVSIBAjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkLKUVSIBAjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkCAFVLUDYjs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkLKUVSIBAjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkLKUVSIBAjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkLKUVSIBAjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkLKUVSIBAjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkLKUVSIBAjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkLKUVSIBAjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkLKUVSIBAjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkLKUVSIBAjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkLKUVSIBAjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkLKUVSIBAjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkLKUVSIBAjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkLKUVSIBAjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkLKUVSIBAjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkLKUVSIBAjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunkCAFVLUDYjs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkLKUVSIBAjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkLKUVSIBAjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkLKUVSIBAjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkLKUVSIBAjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkLKUVSIBAjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkLKUVSIBAjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkLKUVSIBAjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkXAAX7KIKjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkLKUVSIBAjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkLKUVSIBAjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkLKUVSIBAjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkXAAX7KIKjs.createBrowserRouter; exports.createContext = _chunkLKUVSIBAjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkXAAX7KIKjs.createHashRouter; exports.createMemoryRouter = _chunkLKUVSIBAjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkLKUVSIBAjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkLKUVSIBAjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkLKUVSIBAjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkXAAX7KIKjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkXAAX7KIKjs.createStaticHandler; exports.createStaticRouter = _chunkXAAX7KIKjs.createStaticRouter; exports.data = _chunkLKUVSIBAjs.data; exports.generatePath = _chunkLKUVSIBAjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkLKUVSIBAjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkLKUVSIBAjs.matchPath; exports.matchRoutes = _chunkLKUVSIBAjs.matchRoutes; exports.parsePath = _chunkLKUVSIBAjs.parsePath; exports.redirect = _chunkLKUVSIBAjs.redirect; exports.redirectDocument = _chunkLKUVSIBAjs.redirectDocument; exports.renderMatches = _chunkLKUVSIBAjs.renderMatches; exports.replace = _chunkLKUVSIBAjs.replace; exports.resolvePath = _chunkLKUVSIBAjs.resolvePath; exports.unstable_HistoryRouter = _chunkXAAX7KIKjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkXAAX7KIKjs.usePrompt; exports.unstable_useRoute = _chunkLKUVSIBAjs.useRoute; exports.useActionData = _chunkLKUVSIBAjs.useActionData; exports.useAsyncError = _chunkLKUVSIBAjs.useAsyncError; exports.useAsyncValue = _chunkLKUVSIBAjs.useAsyncValue; exports.useBeforeUnload = _chunkXAAX7KIKjs.useBeforeUnload; exports.useBlocker = _chunkLKUVSIBAjs.useBlocker; exports.useFetcher = _chunkXAAX7KIKjs.useFetcher; exports.useFetchers = _chunkXAAX7KIKjs.useFetchers; exports.useFormAction = _chunkXAAX7KIKjs.useFormAction; exports.useHref = _chunkLKUVSIBAjs.useHref; exports.useInRouterContext = _chunkLKUVSIBAjs.useInRouterContext; exports.useLinkClickHandler = _chunkXAAX7KIKjs.useLinkClickHandler; exports.useLoaderData = _chunkLKUVSIBAjs.useLoaderData; exports.useLocation = _chunkLKUVSIBAjs.useLocation; exports.useMatch = _chunkLKUVSIBAjs.useMatch; exports.useMatches = _chunkLKUVSIBAjs.useMatches; exports.useNavigate = _chunkLKUVSIBAjs.useNavigate; exports.useNavigation = _chunkLKUVSIBAjs.useNavigation; exports.useNavigationType = _chunkLKUVSIBAjs.useNavigationType; exports.useOutlet = _chunkLKUVSIBAjs.useOutlet; exports.useOutletContext = _chunkLKUVSIBAjs.useOutletContext; exports.useParams = _chunkLKUVSIBAjs.useParams; exports.useResolvedPath = _chunkLKUVSIBAjs.useResolvedPath; exports.useRevalidator = _chunkLKUVSIBAjs.useRevalidator; exports.useRouteError = _chunkLKUVSIBAjs.useRouteError; exports.useRouteLoaderData = _chunkLKUVSIBAjs.useRouteLoaderData; exports.useRoutes = _chunkLKUVSIBAjs.useRoutes; exports.useSearchParams = _chunkXAAX7KIKjs.useSearchParams; exports.useSubmit = _chunkXAAX7KIKjs.useSubmit; exports.useViewTransitionState = _chunkXAAX7KIKjs.useViewTransitionState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.13.2
|
|
2
|
+
* react-router v7.13.2
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
isSession,
|
|
29
29
|
routeRSCServerRequest,
|
|
30
30
|
setDevServerHooks
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-PY35PE22.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Action,
|
|
34
34
|
Await,
|
|
@@ -141,7 +141,7 @@ import {
|
|
|
141
141
|
withComponentProps,
|
|
142
142
|
withErrorBoundaryProps,
|
|
143
143
|
withHydrateFallbackProps
|
|
144
|
-
} from "./chunk-
|
|
144
|
+
} from "./chunk-2BDJPJTA.mjs";
|
|
145
145
|
export {
|
|
146
146
|
Await,
|
|
147
147
|
BrowserRouter,
|