react-router 7.14.0-pre.0 → 7.14.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 +27 -11
- package/dist/development/{chunk-D73YQQSY.mjs → chunk-2UH5WJXA.mjs} +2 -2
- package/dist/development/{chunk-GE4J47XT.js → chunk-IK6APEEG.js} +1 -1
- package/dist/{production/chunk-QIHLB25G.js → development/chunk-NXTEWSJO.js} +99 -99
- package/dist/development/{chunk-47HDNIOI.mjs → chunk-QFMPRPBF.mjs} +2 -2
- package/dist/development/{chunk-MA52INJ5.js → chunk-WAVMRYR2.js} +7 -7
- package/dist/development/dom-export.js +27 -27
- 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-G3YAUWGC.js → chunk-355DUZMC.js} +7 -7
- package/dist/production/{chunk-OBXCYSYK.js → chunk-4TJ7T2OQ.js} +1 -1
- package/dist/{development/chunk-KLEV7K4H.js → production/chunk-FPT5DLVJ.js} +99 -99
- package/dist/production/{chunk-MQKMC5YB.mjs → chunk-HZQGQD2X.mjs} +2 -2
- package/dist/production/{chunk-XM7AQRW7.mjs → chunk-X5LK27NZ.mjs} +2 -2
- package/dist/production/dom-export.js +27 -27
- 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
|
@@ -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.14.0
|
|
2
|
+
* react-router v7.14.0
|
|
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 _chunkWAVMRYR2js = require('./chunk-WAVMRYR2.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkMA52INJ5js = require('./chunk-MA52INJ5.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkNXTEWSJOjs = require('./chunk-NXTEWSJO.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -149,7 +149,7 @@ var _chunkKLEV7K4Hjs = require('./chunk-KLEV7K4H.js');
|
|
|
149
149
|
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
var
|
|
152
|
+
var _chunkIK6APEEGjs = require('./chunk-IK6APEEG.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 = _chunkIK6APEEGjs.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 && _chunkIK6APEEGjs.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 = _chunkNXTEWSJOjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
188
188
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
189
|
-
|
|
189
|
+
_chunkIK6APEEGjs.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(_chunkIK6APEEGjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
205
|
+
_chunkNXTEWSJOjs.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
|
+
_chunkIK6APEEGjs.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
|
+
_chunkIK6APEEGjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
258
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _6 => _6.v8_middleware]) ? new (0, _chunkIK6APEEGjs.RouterContextProvider)() : {},
|
|
259
259
|
frameworkContextRef.current.manifest,
|
|
260
260
|
frameworkContextRef.current.routeModules
|
|
261
261
|
);
|
|
262
|
-
routerRef.current =
|
|
262
|
+
routerRef.current = _chunkIK6APEEGjs.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(_chunkIK6APEEGjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkIK6APEEGjs.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 ? _chunkIK6APEEGjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
283
|
+
HydrateFallback: route.HydrateFallback ? _chunkIK6APEEGjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
284
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkIK6APEEGjs.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 || _chunkIK6APEEGjs.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
|
+
_chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.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 = _chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkIK6APEEGjs.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 _chunkIK6APEEGjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
735
735
|
let data2 = decoded.value;
|
|
736
|
-
if (data2 &&
|
|
737
|
-
let result = data2[
|
|
736
|
+
if (data2 && _chunkIK6APEEGjs.SingleFetchRedirectSymbol in data2) {
|
|
737
|
+
let result = data2[_chunkIK6APEEGjs.SingleFetchRedirectSymbol];
|
|
738
738
|
let init = { status: result.status };
|
|
739
739
|
if (result.reload) {
|
|
740
|
-
throw
|
|
740
|
+
throw _chunkIK6APEEGjs.redirectDocument.call(void 0, result.redirect, init);
|
|
741
741
|
} else if (result.replace) {
|
|
742
|
-
throw
|
|
742
|
+
throw _chunkIK6APEEGjs.replace.call(void 0, result.redirect, init);
|
|
743
743
|
} else {
|
|
744
|
-
throw
|
|
744
|
+
throw _chunkIK6APEEGjs.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 _chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.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
|
+
..._chunkIK6APEEGjs.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 _chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.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 (!_chunkIK6APEEGjs.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 _chunkIK6APEEGjs.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 (_chunkIK6APEEGjs.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 (!_chunkIK6APEEGjs.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" ? { [_chunkIK6APEEGjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1168
1168
|
headers,
|
|
1169
|
-
status:
|
|
1169
|
+
status: _chunkIK6APEEGjs.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 = _chunkIK6APEEGjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1176
1176
|
}
|
|
1177
1177
|
return {
|
|
1178
1178
|
redirect: redirect2,
|
|
@@ -1209,7 +1209,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1209
1209
|
clearTimeout(timeoutId);
|
|
1210
1210
|
requestSignal.removeEventListener("abort", abortControllerOnRequestAbort);
|
|
1211
1211
|
};
|
|
1212
|
-
return
|
|
1212
|
+
return _chunkIK6APEEGjs.encode.call(void 0, data2, {
|
|
1213
1213
|
signal: controller.signal,
|
|
1214
1214
|
onComplete: cleanupCallbacks,
|
|
1215
1215
|
plugins: [
|
|
@@ -1218,12 +1218,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1218
1218
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1219
1219
|
return ["SanitizedError", name, message, stack];
|
|
1220
1220
|
}
|
|
1221
|
-
if (value instanceof
|
|
1221
|
+
if (value instanceof _chunkIK6APEEGjs.ErrorResponseImpl) {
|
|
1222
1222
|
let { data: data3, status, statusText } = value;
|
|
1223
1223
|
return ["ErrorResponse", data3, status, statusText];
|
|
1224
1224
|
}
|
|
1225
|
-
if (value && typeof value === "object" &&
|
|
1226
|
-
return ["SingleFetchRedirect", value[
|
|
1225
|
+
if (value && typeof value === "object" && _chunkIK6APEEGjs.SingleFetchRedirectSymbol in value) {
|
|
1226
|
+
return ["SingleFetchRedirect", value[_chunkIK6APEEGjs.SingleFetchRedirectSymbol]];
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
],
|
|
@@ -1246,7 +1246,7 @@ function derive(build, mode) {
|
|
|
1246
1246
|
let routes = createRoutes(build.routes);
|
|
1247
1247
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1248
1248
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1249
|
-
let staticHandler =
|
|
1249
|
+
let staticHandler = _chunkIK6APEEGjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1250
1250
|
basename: build.basename,
|
|
1251
1251
|
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1252
1252
|
});
|
|
@@ -1254,7 +1254,7 @@ function derive(build, mode) {
|
|
|
1254
1254
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1255
1255
|
console.error(
|
|
1256
1256
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1257
|
-
|
|
1257
|
+
_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1258
1258
|
);
|
|
1259
1259
|
}
|
|
1260
1260
|
});
|
|
@@ -1272,14 +1272,14 @@ function derive(build, mode) {
|
|
|
1272
1272
|
});
|
|
1273
1273
|
};
|
|
1274
1274
|
if (build.future.v8_middleware) {
|
|
1275
|
-
if (initialContext && !(initialContext instanceof
|
|
1275
|
+
if (initialContext && !(initialContext instanceof _chunkIK6APEEGjs.RouterContextProvider)) {
|
|
1276
1276
|
let error = new Error(
|
|
1277
1277
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1278
1278
|
);
|
|
1279
1279
|
handleError(error);
|
|
1280
1280
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1281
1281
|
}
|
|
1282
|
-
loadContext = initialContext || new (0,
|
|
1282
|
+
loadContext = initialContext || new (0, _chunkIK6APEEGjs.RouterContextProvider)();
|
|
1283
1283
|
} else {
|
|
1284
1284
|
loadContext = initialContext || {};
|
|
1285
1285
|
}
|
|
@@ -1293,10 +1293,10 @@ function derive(build, mode) {
|
|
|
1293
1293
|
if (!build.ssr) {
|
|
1294
1294
|
let decodedPath = decodeURI(normalizedPathname);
|
|
1295
1295
|
if (build.basename && build.basename !== "/") {
|
|
1296
|
-
let strippedPath =
|
|
1296
|
+
let strippedPath = _chunkIK6APEEGjs.stripBasename.call(void 0, decodedPath, build.basename);
|
|
1297
1297
|
if (strippedPath == null) {
|
|
1298
1298
|
errorHandler(
|
|
1299
|
-
new (0,
|
|
1299
|
+
new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1300
1300
|
404,
|
|
1301
1301
|
"Not Found",
|
|
1302
1302
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${build.basename}\``
|
|
@@ -1319,7 +1319,7 @@ function derive(build, mode) {
|
|
|
1319
1319
|
} else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
|
|
1320
1320
|
if (requestUrl.pathname.endsWith(".data")) {
|
|
1321
1321
|
errorHandler(
|
|
1322
|
-
new (0,
|
|
1322
|
+
new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1323
1323
|
404,
|
|
1324
1324
|
"Not Found",
|
|
1325
1325
|
`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.`
|
|
@@ -1339,7 +1339,7 @@ function derive(build, mode) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
}
|
|
1342
|
-
let manifestUrl =
|
|
1342
|
+
let manifestUrl = _chunkIK6APEEGjs.getManifestPath.call(void 0,
|
|
1343
1343
|
build.routeDiscovery.manifestPath,
|
|
1344
1344
|
build.basename
|
|
1345
1345
|
);
|
|
@@ -1372,7 +1372,7 @@ function derive(build, mode) {
|
|
|
1372
1372
|
loadContext,
|
|
1373
1373
|
handleError
|
|
1374
1374
|
);
|
|
1375
|
-
if (
|
|
1375
|
+
if (_chunkIK6APEEGjs.isRedirectResponse.call(void 0, response)) {
|
|
1376
1376
|
response = generateSingleFetchRedirectResponse(
|
|
1377
1377
|
response,
|
|
1378
1378
|
request,
|
|
@@ -1386,7 +1386,7 @@ function derive(build, mode) {
|
|
|
1386
1386
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1387
1387
|
request
|
|
1388
1388
|
});
|
|
1389
|
-
if (
|
|
1389
|
+
if (_chunkIK6APEEGjs.isRedirectResponse.call(void 0, response)) {
|
|
1390
1390
|
response = generateSingleFetchRedirectResponse(
|
|
1391
1391
|
response,
|
|
1392
1392
|
request,
|
|
@@ -1434,7 +1434,7 @@ function derive(build, mode) {
|
|
|
1434
1434
|
return response;
|
|
1435
1435
|
};
|
|
1436
1436
|
if (build.entry.module.unstable_instrumentations) {
|
|
1437
|
-
requestHandler =
|
|
1437
|
+
requestHandler = _chunkIK6APEEGjs.instrumentHandler.call(void 0,
|
|
1438
1438
|
requestHandler,
|
|
1439
1439
|
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1440
1440
|
);
|
|
@@ -1559,7 +1559,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1559
1559
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1560
1560
|
try {
|
|
1561
1561
|
let innerResult = await query(request);
|
|
1562
|
-
if (!
|
|
1562
|
+
if (!_chunkIK6APEEGjs.isResponse.call(void 0, innerResult)) {
|
|
1563
1563
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1564
1564
|
}
|
|
1565
1565
|
return innerResult;
|
|
@@ -1570,7 +1570,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1570
1570
|
} : void 0,
|
|
1571
1571
|
unstable_normalizePath: (r) => getNormalizedPath(r, build.basename, build.future)
|
|
1572
1572
|
});
|
|
1573
|
-
if (!
|
|
1573
|
+
if (!_chunkIK6APEEGjs.isResponse.call(void 0, result)) {
|
|
1574
1574
|
result = await renderHtml(result, isSpaMode);
|
|
1575
1575
|
}
|
|
1576
1576
|
return result;
|
|
@@ -1585,7 +1585,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1585
1585
|
}
|
|
1586
1586
|
if (context.errors) {
|
|
1587
1587
|
Object.values(context.errors).forEach((err) => {
|
|
1588
|
-
if (!
|
|
1588
|
+
if (!_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1589
1589
|
handleError(err);
|
|
1590
1590
|
}
|
|
1591
1591
|
});
|
|
@@ -1637,10 +1637,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1637
1637
|
} catch (error) {
|
|
1638
1638
|
handleError(error);
|
|
1639
1639
|
let errorForSecondRender = error;
|
|
1640
|
-
if (
|
|
1640
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, error)) {
|
|
1641
1641
|
try {
|
|
1642
1642
|
let data2 = await unwrapResponse(error);
|
|
1643
|
-
errorForSecondRender = new (0,
|
|
1643
|
+
errorForSecondRender = new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
1644
1644
|
error.status,
|
|
1645
1645
|
error.statusText,
|
|
1646
1646
|
data2
|
|
@@ -1648,7 +1648,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1648
1648
|
} catch (e) {
|
|
1649
1649
|
}
|
|
1650
1650
|
}
|
|
1651
|
-
context =
|
|
1651
|
+
context = _chunkIK6APEEGjs.getStaticContextFromError.call(void 0,
|
|
1652
1652
|
staticHandler.dataRoutes,
|
|
1653
1653
|
context,
|
|
1654
1654
|
errorForSecondRender
|
|
@@ -1708,7 +1708,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1708
1708
|
return handleQueryRouteError(error);
|
|
1709
1709
|
}
|
|
1710
1710
|
function handleQueryRouteResult(result) {
|
|
1711
|
-
if (
|
|
1711
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, result)) {
|
|
1712
1712
|
return result;
|
|
1713
1713
|
}
|
|
1714
1714
|
if (typeof result === "string") {
|
|
@@ -1717,10 +1717,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1717
1717
|
return Response.json(result);
|
|
1718
1718
|
}
|
|
1719
1719
|
function handleQueryRouteError(error) {
|
|
1720
|
-
if (
|
|
1720
|
+
if (_chunkIK6APEEGjs.isResponse.call(void 0, error)) {
|
|
1721
1721
|
return error;
|
|
1722
1722
|
}
|
|
1723
|
-
if (
|
|
1723
|
+
if (_chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1724
1724
|
handleError(error);
|
|
1725
1725
|
return errorResponseToJson(error, serverMode);
|
|
1726
1726
|
}
|
|
@@ -1843,7 +1843,7 @@ function createSessionStorage({
|
|
|
1843
1843
|
};
|
|
1844
1844
|
}
|
|
1845
1845
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1846
|
-
|
|
1846
|
+
_chunkIK6APEEGjs.warnOnce.call(void 0,
|
|
1847
1847
|
cookie.isSigned,
|
|
1848
1848
|
`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.`
|
|
1849
1849
|
);
|
|
@@ -2124,7 +2124,7 @@ async function routeRSCServerRequest({
|
|
|
2124
2124
|
const payload = await createFromReadableStream(
|
|
2125
2125
|
detectRedirectResponse.body
|
|
2126
2126
|
);
|
|
2127
|
-
if (serverResponse.status ===
|
|
2127
|
+
if (serverResponse.status === _chunkIK6APEEGjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2128
2128
|
const headers2 = new Headers(serverResponse.headers);
|
|
2129
2129
|
headers2.delete("Content-Encoding");
|
|
2130
2130
|
headers2.delete("Content-Length");
|
|
@@ -2143,11 +2143,11 @@ async function routeRSCServerRequest({
|
|
|
2143
2143
|
let html = await renderHTML(getPayload, {
|
|
2144
2144
|
onError(error) {
|
|
2145
2145
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2146
|
-
renderRedirect =
|
|
2146
|
+
renderRedirect = _chunkIK6APEEGjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2147
2147
|
if (renderRedirect) {
|
|
2148
2148
|
return error.digest;
|
|
2149
2149
|
}
|
|
2150
|
-
let routeErrorResponse =
|
|
2150
|
+
let routeErrorResponse = _chunkIK6APEEGjs.decodeRouteErrorResponseDigest.call(void 0, error.digest);
|
|
2151
2151
|
if (routeErrorResponse) {
|
|
2152
2152
|
renderError = routeErrorResponse;
|
|
2153
2153
|
status = routeErrorResponse.status;
|
|
@@ -2179,7 +2179,7 @@ async function routeRSCServerRequest({
|
|
|
2179
2179
|
if (renderRedirect) {
|
|
2180
2180
|
controller.enqueue(
|
|
2181
2181
|
new TextEncoder().encode(
|
|
2182
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2182
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIK6APEEGjs.escapeHtml.call(void 0, renderRedirect.location)}"/>`
|
|
2183
2183
|
)
|
|
2184
2184
|
);
|
|
2185
2185
|
}
|
|
@@ -2215,7 +2215,7 @@ async function routeRSCServerRequest({
|
|
|
2215
2215
|
}
|
|
2216
2216
|
try {
|
|
2217
2217
|
reason = _nullishCoalesce(renderError, () => ( reason));
|
|
2218
|
-
let [status, statusText] =
|
|
2218
|
+
let [status, statusText] = _chunkIK6APEEGjs.isRouteErrorResponse.call(void 0, reason) ? [reason.status, reason.statusText] : [500, ""];
|
|
2219
2219
|
let retryRedirect;
|
|
2220
2220
|
let reactHeaders = new Headers();
|
|
2221
2221
|
const html = await renderHTML(
|
|
@@ -2252,11 +2252,11 @@ async function routeRSCServerRequest({
|
|
|
2252
2252
|
{
|
|
2253
2253
|
onError(error) {
|
|
2254
2254
|
if (typeof error === "object" && error && "digest" in error && typeof error.digest === "string") {
|
|
2255
|
-
retryRedirect =
|
|
2255
|
+
retryRedirect = _chunkIK6APEEGjs.decodeRedirectErrorDigest.call(void 0, error.digest);
|
|
2256
2256
|
if (retryRedirect) {
|
|
2257
2257
|
return error.digest;
|
|
2258
2258
|
}
|
|
2259
|
-
let routeErrorResponse =
|
|
2259
|
+
let routeErrorResponse = _chunkIK6APEEGjs.decodeRouteErrorResponseDigest.call(void 0,
|
|
2260
2260
|
error.digest
|
|
2261
2261
|
);
|
|
2262
2262
|
if (routeErrorResponse) {
|
|
@@ -2290,7 +2290,7 @@ async function routeRSCServerRequest({
|
|
|
2290
2290
|
if (retryRedirect) {
|
|
2291
2291
|
controller.enqueue(
|
|
2292
2292
|
new TextEncoder().encode(
|
|
2293
|
-
`<meta http-equiv="refresh" content="0;url=${
|
|
2293
|
+
`<meta http-equiv="refresh" content="0;url=${_chunkIK6APEEGjs.escapeHtml.call(void 0, retryRedirect.location)}"/>`
|
|
2294
2294
|
)
|
|
2295
2295
|
);
|
|
2296
2296
|
}
|
|
@@ -2331,7 +2331,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2331
2331
|
if (payload.type !== "render") return null;
|
|
2332
2332
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2333
2333
|
for (const match of payload.matches) {
|
|
2334
|
-
if (
|
|
2334
|
+
if (_chunkIK6APEEGjs.shouldHydrateRouteLoader.call(void 0,
|
|
2335
2335
|
match.id,
|
|
2336
2336
|
match.clientLoader,
|
|
2337
2337
|
match.hasLoader,
|
|
@@ -2371,7 +2371,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2371
2371
|
}
|
|
2372
2372
|
}))
|
|
2373
2373
|
};
|
|
2374
|
-
const router =
|
|
2374
|
+
const router = _chunkNXTEWSJOjs.createStaticRouter.call(void 0,
|
|
2375
2375
|
payload.matches.reduceRight((previous, match) => {
|
|
2376
2376
|
const route = {
|
|
2377
2377
|
id: match.id,
|
|
@@ -2420,10 +2420,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2420
2420
|
mode: "lazy",
|
|
2421
2421
|
manifestPath: payload.routeDiscovery.manifestPath || defaultManifestPath
|
|
2422
2422
|
},
|
|
2423
|
-
routeModules:
|
|
2423
|
+
routeModules: _chunkWAVMRYR2js.createRSCRouteModules.call(void 0, payload)
|
|
2424
2424
|
};
|
|
2425
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2426
|
-
|
|
2425
|
+
return /* @__PURE__ */ React3.createElement(_chunkIK6APEEGjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkWAVMRYR2js.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkIK6APEEGjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2426
|
+
_chunkNXTEWSJOjs.StaticRouterProvider,
|
|
2427
2427
|
{
|
|
2428
2428
|
context,
|
|
2429
2429
|
router,
|
|
@@ -2446,7 +2446,7 @@ function deserializeErrors(errors) {
|
|
|
2446
2446
|
let serialized = {};
|
|
2447
2447
|
for (let [key, val] of entries) {
|
|
2448
2448
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2449
|
-
serialized[key] = new (0,
|
|
2449
|
+
serialized[key] = new (0, _chunkIK6APEEGjs.ErrorResponseImpl)(
|
|
2450
2450
|
val.status,
|
|
2451
2451
|
val.statusText,
|
|
2452
2452
|
val.data,
|
|
@@ -2605,4 +2605,4 @@ function deserializeErrors(errors) {
|
|
|
2605
2605
|
|
|
2606
2606
|
|
|
2607
2607
|
|
|
2608
|
-
exports.Await =
|
|
2608
|
+
exports.Await = _chunkIK6APEEGjs.Await; exports.BrowserRouter = _chunkNXTEWSJOjs.BrowserRouter; exports.Form = _chunkNXTEWSJOjs.Form; exports.HashRouter = _chunkNXTEWSJOjs.HashRouter; exports.IDLE_BLOCKER = _chunkIK6APEEGjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkIK6APEEGjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkIK6APEEGjs.IDLE_NAVIGATION; exports.Link = _chunkNXTEWSJOjs.Link; exports.Links = _chunkIK6APEEGjs.Links; exports.MemoryRouter = _chunkIK6APEEGjs.MemoryRouter; exports.Meta = _chunkIK6APEEGjs.Meta; exports.NavLink = _chunkNXTEWSJOjs.NavLink; exports.Navigate = _chunkIK6APEEGjs.Navigate; exports.NavigationType = _chunkIK6APEEGjs.Action; exports.Outlet = _chunkIK6APEEGjs.Outlet; exports.PrefetchPageLinks = _chunkIK6APEEGjs.PrefetchPageLinks; exports.Route = _chunkIK6APEEGjs.Route; exports.Router = _chunkIK6APEEGjs.Router; exports.RouterContextProvider = _chunkIK6APEEGjs.RouterContextProvider; exports.RouterProvider = _chunkIK6APEEGjs.RouterProvider; exports.Routes = _chunkIK6APEEGjs.Routes; exports.Scripts = _chunkIK6APEEGjs.Scripts; exports.ScrollRestoration = _chunkNXTEWSJOjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkNXTEWSJOjs.StaticRouter; exports.StaticRouterProvider = _chunkNXTEWSJOjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkIK6APEEGjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkIK6APEEGjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkIK6APEEGjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkIK6APEEGjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkIK6APEEGjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkIK6APEEGjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkIK6APEEGjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkIK6APEEGjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkWAVMRYR2js.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkIK6APEEGjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkIK6APEEGjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkIK6APEEGjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkIK6APEEGjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkIK6APEEGjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkIK6APEEGjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkIK6APEEGjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkIK6APEEGjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkIK6APEEGjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkIK6APEEGjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createHashHistory = _chunkIK6APEEGjs.createHashHistory; exports.UNSAFE_createMemoryHistory = _chunkIK6APEEGjs.createMemoryHistory; exports.UNSAFE_createRouter = _chunkIK6APEEGjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkIK6APEEGjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunkWAVMRYR2js.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkIK6APEEGjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkIK6APEEGjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkIK6APEEGjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkIK6APEEGjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkIK6APEEGjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkIK6APEEGjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkIK6APEEGjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkNXTEWSJOjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkIK6APEEGjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkIK6APEEGjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkIK6APEEGjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkNXTEWSJOjs.createBrowserRouter; exports.createContext = _chunkIK6APEEGjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkNXTEWSJOjs.createHashRouter; exports.createMemoryRouter = _chunkIK6APEEGjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkIK6APEEGjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkIK6APEEGjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkIK6APEEGjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkNXTEWSJOjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkNXTEWSJOjs.createStaticHandler; exports.createStaticRouter = _chunkNXTEWSJOjs.createStaticRouter; exports.data = _chunkIK6APEEGjs.data; exports.generatePath = _chunkIK6APEEGjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkIK6APEEGjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkIK6APEEGjs.matchPath; exports.matchRoutes = _chunkIK6APEEGjs.matchRoutes; exports.parsePath = _chunkIK6APEEGjs.parsePath; exports.redirect = _chunkIK6APEEGjs.redirect; exports.redirectDocument = _chunkIK6APEEGjs.redirectDocument; exports.renderMatches = _chunkIK6APEEGjs.renderMatches; exports.replace = _chunkIK6APEEGjs.replace; exports.resolvePath = _chunkIK6APEEGjs.resolvePath; exports.unstable_HistoryRouter = _chunkNXTEWSJOjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkNXTEWSJOjs.usePrompt; exports.unstable_useRoute = _chunkIK6APEEGjs.useRoute; exports.useActionData = _chunkIK6APEEGjs.useActionData; exports.useAsyncError = _chunkIK6APEEGjs.useAsyncError; exports.useAsyncValue = _chunkIK6APEEGjs.useAsyncValue; exports.useBeforeUnload = _chunkNXTEWSJOjs.useBeforeUnload; exports.useBlocker = _chunkIK6APEEGjs.useBlocker; exports.useFetcher = _chunkNXTEWSJOjs.useFetcher; exports.useFetchers = _chunkNXTEWSJOjs.useFetchers; exports.useFormAction = _chunkNXTEWSJOjs.useFormAction; exports.useHref = _chunkIK6APEEGjs.useHref; exports.useInRouterContext = _chunkIK6APEEGjs.useInRouterContext; exports.useLinkClickHandler = _chunkNXTEWSJOjs.useLinkClickHandler; exports.useLoaderData = _chunkIK6APEEGjs.useLoaderData; exports.useLocation = _chunkIK6APEEGjs.useLocation; exports.useMatch = _chunkIK6APEEGjs.useMatch; exports.useMatches = _chunkIK6APEEGjs.useMatches; exports.useNavigate = _chunkIK6APEEGjs.useNavigate; exports.useNavigation = _chunkIK6APEEGjs.useNavigation; exports.useNavigationType = _chunkIK6APEEGjs.useNavigationType; exports.useOutlet = _chunkIK6APEEGjs.useOutlet; exports.useOutletContext = _chunkIK6APEEGjs.useOutletContext; exports.useParams = _chunkIK6APEEGjs.useParams; exports.useResolvedPath = _chunkIK6APEEGjs.useResolvedPath; exports.useRevalidator = _chunkIK6APEEGjs.useRevalidator; exports.useRouteError = _chunkIK6APEEGjs.useRouteError; exports.useRouteLoaderData = _chunkIK6APEEGjs.useRouteLoaderData; exports.useRoutes = _chunkIK6APEEGjs.useRoutes; exports.useSearchParams = _chunkNXTEWSJOjs.useSearchParams; exports.useSubmit = _chunkNXTEWSJOjs.useSubmit; exports.useViewTransitionState = _chunkNXTEWSJOjs.useViewTransitionState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.14.0
|
|
2
|
+
* react-router v7.14.0
|
|
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-2UH5WJXA.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-QFMPRPBF.mjs";
|
|
145
145
|
export {
|
|
146
146
|
Await,
|
|
147
147
|
BrowserRouter,
|