react-router 7.8.0 → 7.8.1-pre.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 +12 -0
- package/dist/development/{chunk-VC6RBZTR.js → chunk-3JLHOGU7.js} +130 -130
- package/dist/development/{chunk-EVX7OBGB.js → chunk-CXAO7FY7.js} +70 -47
- package/dist/{production/chunk-XPGU3ZMH.mjs → development/chunk-V2P3SFSY.mjs} +147 -33
- package/dist/development/{chunk-ZYFC6VSF.mjs → chunk-WKLBIS42.mjs} +34 -11
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +3 -3
- package/dist/{production/index-react-server-client-DXb0OgpJ.d.mts → development/index-react-server-client-11fLy3qB.d.mts} +1 -1
- package/dist/development/{index-react-server-client-CMphySRb.d.ts → index-react-server-client-BQ6FxdA_.d.ts} +1 -1
- package/dist/development/index-react-server-client.d.mts +2 -2
- package/dist/development/index-react-server-client.d.ts +2 -2
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +38 -1
- package/dist/development/index-react-server.d.ts +38 -1
- package/dist/development/index-react-server.js +28 -9
- package/dist/development/index-react-server.mjs +28 -10
- package/dist/development/index.d.mts +42 -4
- package/dist/development/index.d.ts +42 -4
- package/dist/development/index.js +242 -128
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.d.mts +6 -3
- package/dist/development/lib/types/internal.d.ts +6 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{route-data-CpB5xtMm.d.mts → route-data-CNjObrhZ.d.mts} +1 -1
- package/dist/development/{routeModules-qBivMBjd.d.ts → routeModules-C3oqzPpI.d.ts} +1 -1
- package/dist/production/{chunk-O6DRQPUD.js → chunk-6K5ETUFZ.js} +130 -130
- package/dist/production/{chunk-SIHON65V.mjs → chunk-GIJZ6O2U.mjs} +34 -11
- package/dist/production/{chunk-BOD6JCOU.js → chunk-ZFXTWIWH.js} +70 -47
- package/dist/{development/chunk-HZX6U7MI.mjs → production/chunk-ZKLGVTLT.mjs} +147 -33
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +3 -3
- package/dist/{development/index-react-server-client-DXb0OgpJ.d.mts → production/index-react-server-client-11fLy3qB.d.mts} +1 -1
- package/dist/production/{index-react-server-client-CMphySRb.d.ts → index-react-server-client-BQ6FxdA_.d.ts} +1 -1
- package/dist/production/index-react-server-client.d.mts +2 -2
- package/dist/production/index-react-server-client.d.ts +2 -2
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +38 -1
- package/dist/production/index-react-server.d.ts +38 -1
- package/dist/production/index-react-server.js +28 -9
- package/dist/production/index-react-server.mjs +28 -10
- package/dist/production/index.d.mts +42 -4
- package/dist/production/index.d.ts +42 -4
- package/dist/production/index.js +242 -128
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.d.mts +6 -3
- package/dist/production/lib/types/internal.d.ts +6 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{route-data-CpB5xtMm.d.mts → route-data-CNjObrhZ.d.mts} +1 -1
- package/dist/production/{routeModules-qBivMBjd.d.ts → routeModules-C3oqzPpI.d.ts} +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.8.0
|
|
2
|
+
* react-router v7.8.1-pre.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunk3JLHOGU7js = require('./chunk-3JLHOGU7.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -142,7 +142,8 @@ var _chunkVC6RBZTRjs = require('./chunk-VC6RBZTR.js');
|
|
|
142
142
|
|
|
143
143
|
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
|
|
146
|
+
var _chunkCXAO7FY7js = require('./chunk-CXAO7FY7.js');
|
|
146
147
|
|
|
147
148
|
// lib/dom/ssr/server.tsx
|
|
148
149
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -155,7 +156,7 @@ function ServerRouter({
|
|
|
155
156
|
url = new URL(url);
|
|
156
157
|
}
|
|
157
158
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
158
|
-
let routes =
|
|
159
|
+
let routes = _chunkCXAO7FY7js.createServerRoutes.call(void 0,
|
|
159
160
|
manifest.routes,
|
|
160
161
|
routeModules,
|
|
161
162
|
context.future,
|
|
@@ -168,7 +169,7 @@ function ServerRouter({
|
|
|
168
169
|
let routeId = match.route.id;
|
|
169
170
|
let route = routeModules[routeId];
|
|
170
171
|
let manifestRoute = context.manifest.routes[routeId];
|
|
171
|
-
if (route && manifestRoute &&
|
|
172
|
+
if (route && manifestRoute && _chunkCXAO7FY7js.shouldHydrateRouteLoader.call(void 0,
|
|
172
173
|
routeId,
|
|
173
174
|
route.clientLoader,
|
|
174
175
|
manifestRoute.hasLoader,
|
|
@@ -177,9 +178,9 @@ function ServerRouter({
|
|
|
177
178
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
|
-
let router =
|
|
181
|
+
let router = _chunk3JLHOGU7js.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
181
182
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
182
|
-
|
|
183
|
+
_chunkCXAO7FY7js.FrameworkContext.Provider,
|
|
183
184
|
{
|
|
184
185
|
value: {
|
|
185
186
|
manifest,
|
|
@@ -194,8 +195,8 @@ function ServerRouter({
|
|
|
194
195
|
renderMeta: context.renderMeta
|
|
195
196
|
}
|
|
196
197
|
},
|
|
197
|
-
/* @__PURE__ */ React.createElement(
|
|
198
|
-
|
|
198
|
+
/* @__PURE__ */ React.createElement(_chunkCXAO7FY7js.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
199
|
+
_chunk3JLHOGU7js.StaticRouterProvider,
|
|
199
200
|
{
|
|
200
201
|
router,
|
|
201
202
|
context: context.staticHandlerContext,
|
|
@@ -203,7 +204,7 @@ function ServerRouter({
|
|
|
203
204
|
}
|
|
204
205
|
))
|
|
205
206
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
206
|
-
|
|
207
|
+
_chunkCXAO7FY7js.StreamTransfer,
|
|
207
208
|
{
|
|
208
209
|
context,
|
|
209
210
|
identifier: 0,
|
|
@@ -245,18 +246,18 @@ function createRoutesStub(routes, _context) {
|
|
|
245
246
|
let patched = processRoutes(
|
|
246
247
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
247
248
|
// types compared to `AgnosticRouteObject`
|
|
248
|
-
|
|
249
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0,
|
|
249
|
+
_chunkCXAO7FY7js.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
250
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.unstable_middleware]) ? new (0, _chunkCXAO7FY7js.unstable_RouterContextProvider)() : {},
|
|
250
251
|
frameworkContextRef.current.manifest,
|
|
251
252
|
frameworkContextRef.current.routeModules
|
|
252
253
|
);
|
|
253
|
-
routerRef.current =
|
|
254
|
+
routerRef.current = _chunk3JLHOGU7js.createMemoryRouter.call(void 0, patched, {
|
|
254
255
|
initialEntries,
|
|
255
256
|
initialIndex,
|
|
256
257
|
hydrationData
|
|
257
258
|
});
|
|
258
259
|
}
|
|
259
|
-
return /* @__PURE__ */ React2.createElement(
|
|
260
|
+
return /* @__PURE__ */ React2.createElement(_chunkCXAO7FY7js.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunk3JLHOGU7js.RouterProvider, { router: routerRef.current }));
|
|
260
261
|
};
|
|
261
262
|
}
|
|
262
263
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -270,9 +271,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
270
271
|
id: route.id,
|
|
271
272
|
path: route.path,
|
|
272
273
|
index: route.index,
|
|
273
|
-
Component: route.Component ?
|
|
274
|
-
HydrateFallback: route.HydrateFallback ?
|
|
275
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
274
|
+
Component: route.Component ? _chunk3JLHOGU7js.withComponentProps.call(void 0, route.Component) : void 0,
|
|
275
|
+
HydrateFallback: route.HydrateFallback ? _chunk3JLHOGU7js.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
276
|
+
ErrorBoundary: route.ErrorBoundary ? _chunk3JLHOGU7js.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
276
277
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
277
278
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
278
279
|
handle: route.handle,
|
|
@@ -301,7 +302,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
301
302
|
};
|
|
302
303
|
manifest.routes[newRoute.id] = entryRoute;
|
|
303
304
|
routeModules[route.id] = {
|
|
304
|
-
default: newRoute.Component ||
|
|
305
|
+
default: newRoute.Component || _chunk3JLHOGU7js.Outlet,
|
|
305
306
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
306
307
|
handle: route.handle,
|
|
307
308
|
links: route.links,
|
|
@@ -496,7 +497,7 @@ function myUnescape(value) {
|
|
|
496
497
|
return result;
|
|
497
498
|
}
|
|
498
499
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
499
|
-
|
|
500
|
+
_chunkCXAO7FY7js.warnOnce.call(void 0,
|
|
500
501
|
!expires,
|
|
501
502
|
`The "${name}" cookie has an "expires" property set. This will cause the expires value to not be updated when the session is committed. Instead, you should set the expires value when serializing the cookie. You can use \`commitSession(session, { expires })\` if using a session storage object, or \`cookie.serialize("value", { expires })\` if you're using the cookie directly.`
|
|
502
503
|
);
|
|
@@ -550,7 +551,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
550
551
|
let entries = Object.entries(errors);
|
|
551
552
|
let serialized = {};
|
|
552
553
|
for (let [key, val] of entries) {
|
|
553
|
-
if (
|
|
554
|
+
if (_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, val)) {
|
|
554
555
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
555
556
|
} else if (val instanceof Error) {
|
|
556
557
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -575,7 +576,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
575
576
|
|
|
576
577
|
// lib/server-runtime/routeMatching.ts
|
|
577
578
|
function matchServerRoutes(routes, pathname, basename) {
|
|
578
|
-
let matches =
|
|
579
|
+
let matches = _chunkCXAO7FY7js.matchRoutes.call(void 0,
|
|
579
580
|
routes,
|
|
580
581
|
pathname,
|
|
581
582
|
basename
|
|
@@ -595,7 +596,7 @@ async function callRouteHandler(handler, args) {
|
|
|
595
596
|
params: args.params,
|
|
596
597
|
context: args.context
|
|
597
598
|
});
|
|
598
|
-
if (
|
|
599
|
+
if (_chunkCXAO7FY7js.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkCXAO7FY7js.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
599
600
|
throw new Response(null, result.init);
|
|
600
601
|
}
|
|
601
602
|
return result;
|
|
@@ -714,17 +715,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
714
715
|
controller.close();
|
|
715
716
|
}
|
|
716
717
|
});
|
|
717
|
-
let decoded = await
|
|
718
|
+
let decoded = await _chunkCXAO7FY7js.decodeViaTurboStream.call(void 0, stream, global);
|
|
718
719
|
let data2 = decoded.value;
|
|
719
|
-
if (data2 &&
|
|
720
|
-
let result = data2[
|
|
720
|
+
if (data2 && _chunkCXAO7FY7js.SingleFetchRedirectSymbol in data2) {
|
|
721
|
+
let result = data2[_chunkCXAO7FY7js.SingleFetchRedirectSymbol];
|
|
721
722
|
let init = { status: result.status };
|
|
722
723
|
if (result.reload) {
|
|
723
|
-
throw
|
|
724
|
+
throw _chunkCXAO7FY7js.redirectDocument.call(void 0, result.redirect, init);
|
|
724
725
|
} else if (result.replace) {
|
|
725
|
-
throw
|
|
726
|
+
throw _chunkCXAO7FY7js.replace.call(void 0, result.redirect, init);
|
|
726
727
|
} else {
|
|
727
|
-
throw
|
|
728
|
+
throw _chunkCXAO7FY7js.redirect.call(void 0, result.redirect, init);
|
|
728
729
|
}
|
|
729
730
|
} else {
|
|
730
731
|
invariant2(
|
|
@@ -853,7 +854,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
853
854
|
|
|
854
855
|
// lib/server-runtime/single-fetch.ts
|
|
855
856
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
856
|
-
...
|
|
857
|
+
..._chunkCXAO7FY7js.NO_BODY_STATUS_CODES,
|
|
857
858
|
304
|
|
858
859
|
]);
|
|
859
860
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -883,10 +884,10 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
883
884
|
return handleQueryError(error);
|
|
884
885
|
}
|
|
885
886
|
function handleQueryResult(result) {
|
|
886
|
-
if (!
|
|
887
|
+
if (!_chunkCXAO7FY7js.isResponse.call(void 0, result)) {
|
|
887
888
|
result = staticContextToResponse(result);
|
|
888
889
|
}
|
|
889
|
-
if (
|
|
890
|
+
if (_chunkCXAO7FY7js.isRedirectResponse.call(void 0, result)) {
|
|
890
891
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
891
892
|
result: getSingleFetchRedirect(
|
|
892
893
|
result.status,
|
|
@@ -894,7 +895,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
894
895
|
build.basename
|
|
895
896
|
),
|
|
896
897
|
headers: result.headers,
|
|
897
|
-
status:
|
|
898
|
+
status: _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
898
899
|
});
|
|
899
900
|
}
|
|
900
901
|
return result;
|
|
@@ -909,7 +910,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
909
910
|
}
|
|
910
911
|
function staticContextToResponse(context) {
|
|
911
912
|
let headers = getDocumentHeaders(context, build);
|
|
912
|
-
if (
|
|
913
|
+
if (_chunkCXAO7FY7js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
913
914
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
914
915
|
result: getSingleFetchRedirect(
|
|
915
916
|
context.statusCode,
|
|
@@ -917,12 +918,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
917
918
|
build.basename
|
|
918
919
|
),
|
|
919
920
|
headers,
|
|
920
|
-
status:
|
|
921
|
+
status: _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
921
922
|
});
|
|
922
923
|
}
|
|
923
924
|
if (context.errors) {
|
|
924
925
|
Object.values(context.errors).forEach((err) => {
|
|
925
|
-
if (!
|
|
926
|
+
if (!_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
926
927
|
handleError(err);
|
|
927
928
|
}
|
|
928
929
|
});
|
|
@@ -969,18 +970,18 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
969
970
|
return handleQueryError(error);
|
|
970
971
|
}
|
|
971
972
|
function handleQueryResult(result) {
|
|
972
|
-
let response =
|
|
973
|
-
if (
|
|
973
|
+
let response = _chunkCXAO7FY7js.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
974
|
+
if (_chunkCXAO7FY7js.isRedirectResponse.call(void 0, response)) {
|
|
974
975
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
975
976
|
result: {
|
|
976
|
-
[
|
|
977
|
+
[_chunkCXAO7FY7js.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
977
978
|
response.status,
|
|
978
979
|
response.headers,
|
|
979
980
|
build.basename
|
|
980
981
|
)
|
|
981
982
|
},
|
|
982
983
|
headers: response.headers,
|
|
983
|
-
status:
|
|
984
|
+
status: _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
984
985
|
});
|
|
985
986
|
}
|
|
986
987
|
return response;
|
|
@@ -995,22 +996,22 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
995
996
|
}
|
|
996
997
|
function staticContextToResponse(context) {
|
|
997
998
|
let headers = getDocumentHeaders(context, build);
|
|
998
|
-
if (
|
|
999
|
+
if (_chunkCXAO7FY7js.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
999
1000
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1000
1001
|
result: {
|
|
1001
|
-
[
|
|
1002
|
+
[_chunkCXAO7FY7js.SingleFetchRedirectSymbol]: getSingleFetchRedirect(
|
|
1002
1003
|
context.statusCode,
|
|
1003
1004
|
headers,
|
|
1004
1005
|
build.basename
|
|
1005
1006
|
)
|
|
1006
1007
|
},
|
|
1007
1008
|
headers,
|
|
1008
|
-
status:
|
|
1009
|
+
status: _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS
|
|
1009
1010
|
});
|
|
1010
1011
|
}
|
|
1011
1012
|
if (context.errors) {
|
|
1012
1013
|
Object.values(context.errors).forEach((err) => {
|
|
1013
|
-
if (!
|
|
1014
|
+
if (!_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1014
1015
|
handleError(err);
|
|
1015
1016
|
}
|
|
1016
1017
|
});
|
|
@@ -1067,7 +1068,7 @@ function generateSingleFetchResponse(request, build, serverMode, {
|
|
|
1067
1068
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1068
1069
|
let redirect2 = headers.get("Location");
|
|
1069
1070
|
if (basename) {
|
|
1070
|
-
redirect2 =
|
|
1071
|
+
redirect2 = _chunkCXAO7FY7js.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1071
1072
|
}
|
|
1072
1073
|
return {
|
|
1073
1074
|
redirect: redirect2,
|
|
@@ -1093,7 +1094,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1093
1094
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1094
1095
|
);
|
|
1095
1096
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1096
|
-
return
|
|
1097
|
+
return _chunkCXAO7FY7js.encode.call(void 0, data2, {
|
|
1097
1098
|
signal: controller.signal,
|
|
1098
1099
|
plugins: [
|
|
1099
1100
|
(value) => {
|
|
@@ -1101,12 +1102,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1101
1102
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1102
1103
|
return ["SanitizedError", name, message, stack];
|
|
1103
1104
|
}
|
|
1104
|
-
if (value instanceof
|
|
1105
|
+
if (value instanceof _chunkCXAO7FY7js.ErrorResponseImpl) {
|
|
1105
1106
|
let { data: data3, status, statusText } = value;
|
|
1106
1107
|
return ["ErrorResponse", data3, status, statusText];
|
|
1107
1108
|
}
|
|
1108
|
-
if (value && typeof value === "object" &&
|
|
1109
|
-
return ["SingleFetchRedirect", value[
|
|
1109
|
+
if (value && typeof value === "object" && _chunkCXAO7FY7js.SingleFetchRedirectSymbol in value) {
|
|
1110
|
+
return ["SingleFetchRedirect", value[_chunkCXAO7FY7js.SingleFetchRedirectSymbol]];
|
|
1110
1111
|
}
|
|
1111
1112
|
}
|
|
1112
1113
|
],
|
|
@@ -1129,14 +1130,14 @@ function derive(build, mode) {
|
|
|
1129
1130
|
let routes = createRoutes(build.routes);
|
|
1130
1131
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1131
1132
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1132
|
-
let staticHandler =
|
|
1133
|
+
let staticHandler = _chunkCXAO7FY7js.createStaticHandler.call(void 0, dataRoutes, {
|
|
1133
1134
|
basename: build.basename
|
|
1134
1135
|
});
|
|
1135
1136
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1136
1137
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1137
1138
|
console.error(
|
|
1138
1139
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1139
|
-
|
|
1140
|
+
_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1140
1141
|
);
|
|
1141
1142
|
}
|
|
1142
1143
|
});
|
|
@@ -1182,37 +1183,59 @@ var createRequestHandler = (build, mode) => {
|
|
|
1182
1183
|
});
|
|
1183
1184
|
};
|
|
1184
1185
|
if (_build.future.unstable_middleware) {
|
|
1185
|
-
if (initialContext && !(initialContext instanceof
|
|
1186
|
+
if (initialContext && !(initialContext instanceof _chunkCXAO7FY7js.unstable_RouterContextProvider)) {
|
|
1186
1187
|
let error = new Error(
|
|
1187
1188
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `unstable_RouterContextProvider` from your `getLoadContext` function."
|
|
1188
1189
|
);
|
|
1189
1190
|
handleError(error);
|
|
1190
1191
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1191
1192
|
}
|
|
1192
|
-
loadContext = initialContext || new (0,
|
|
1193
|
+
loadContext = initialContext || new (0, _chunkCXAO7FY7js.unstable_RouterContextProvider)();
|
|
1193
1194
|
} else {
|
|
1194
1195
|
loadContext = initialContext || {};
|
|
1195
1196
|
}
|
|
1196
1197
|
let url = new URL(request.url);
|
|
1197
1198
|
let normalizedBasename = _build.basename || "/";
|
|
1198
1199
|
let normalizedPath = url.pathname;
|
|
1199
|
-
if (
|
|
1200
|
+
if (_chunkCXAO7FY7js.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1200
1201
|
normalizedPath = normalizedBasename;
|
|
1201
1202
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1202
1203
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1203
1204
|
}
|
|
1204
|
-
if (
|
|
1205
|
+
if (_chunkCXAO7FY7js.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1205
1206
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1206
1207
|
}
|
|
1207
1208
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1208
1209
|
if (!_build.ssr) {
|
|
1209
1210
|
let decodedPath = decodeURI(normalizedPath);
|
|
1211
|
+
if (normalizedBasename !== "/") {
|
|
1212
|
+
let strippedPath = _chunkCXAO7FY7js.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1213
|
+
if (strippedPath == null) {
|
|
1214
|
+
errorHandler(
|
|
1215
|
+
new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(
|
|
1216
|
+
404,
|
|
1217
|
+
"Not Found",
|
|
1218
|
+
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
1219
|
+
),
|
|
1220
|
+
{
|
|
1221
|
+
context: loadContext,
|
|
1222
|
+
params,
|
|
1223
|
+
request
|
|
1224
|
+
}
|
|
1225
|
+
);
|
|
1226
|
+
return new Response("Not Found", {
|
|
1227
|
+
status: 404,
|
|
1228
|
+
statusText: "Not Found"
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
decodedPath = strippedPath;
|
|
1232
|
+
}
|
|
1210
1233
|
if (_build.prerender.length === 0) {
|
|
1211
1234
|
isSpaMode = true;
|
|
1212
1235
|
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1213
1236
|
if (url.pathname.endsWith(".data")) {
|
|
1214
1237
|
errorHandler(
|
|
1215
|
-
new (0,
|
|
1238
|
+
new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(
|
|
1216
1239
|
404,
|
|
1217
1240
|
"Not Found",
|
|
1218
1241
|
`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.`
|
|
@@ -1232,7 +1255,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1232
1255
|
}
|
|
1233
1256
|
}
|
|
1234
1257
|
}
|
|
1235
|
-
let manifestUrl =
|
|
1258
|
+
let manifestUrl = _chunkCXAO7FY7js.getManifestPath.call(void 0,
|
|
1236
1259
|
_build.routeDiscovery.manifestPath,
|
|
1237
1260
|
normalizedBasename
|
|
1238
1261
|
);
|
|
@@ -1273,7 +1296,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1273
1296
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1274
1297
|
request
|
|
1275
1298
|
});
|
|
1276
|
-
if (
|
|
1299
|
+
if (_chunkCXAO7FY7js.isRedirectResponse.call(void 0, response)) {
|
|
1277
1300
|
let result = getSingleFetchRedirect(
|
|
1278
1301
|
response.status,
|
|
1279
1302
|
response.headers,
|
|
@@ -1281,7 +1304,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1281
1304
|
);
|
|
1282
1305
|
if (request.method === "GET") {
|
|
1283
1306
|
result = {
|
|
1284
|
-
[
|
|
1307
|
+
[_chunkCXAO7FY7js.SingleFetchRedirectSymbol]: result
|
|
1285
1308
|
};
|
|
1286
1309
|
}
|
|
1287
1310
|
let headers = new Headers(response.headers);
|
|
@@ -1294,7 +1317,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1294
1317
|
serverMode
|
|
1295
1318
|
),
|
|
1296
1319
|
{
|
|
1297
|
-
status:
|
|
1320
|
+
status: _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS,
|
|
1298
1321
|
headers
|
|
1299
1322
|
}
|
|
1300
1323
|
);
|
|
@@ -1408,7 +1431,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1408
1431
|
unstable_generateMiddlewareResponse: build.future.unstable_middleware ? async (query) => {
|
|
1409
1432
|
try {
|
|
1410
1433
|
let innerResult = await query(request);
|
|
1411
|
-
if (!
|
|
1434
|
+
if (!_chunkCXAO7FY7js.isResponse.call(void 0, innerResult)) {
|
|
1412
1435
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1413
1436
|
}
|
|
1414
1437
|
return innerResult;
|
|
@@ -1418,7 +1441,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1418
1441
|
}
|
|
1419
1442
|
} : void 0
|
|
1420
1443
|
});
|
|
1421
|
-
if (!
|
|
1444
|
+
if (!_chunkCXAO7FY7js.isResponse.call(void 0, result)) {
|
|
1422
1445
|
result = await renderHtml(result, isSpaMode);
|
|
1423
1446
|
}
|
|
1424
1447
|
return result;
|
|
@@ -1433,7 +1456,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1433
1456
|
}
|
|
1434
1457
|
if (context.errors) {
|
|
1435
1458
|
Object.values(context.errors).forEach((err) => {
|
|
1436
|
-
if (!
|
|
1459
|
+
if (!_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1437
1460
|
handleError(err);
|
|
1438
1461
|
}
|
|
1439
1462
|
});
|
|
@@ -1485,10 +1508,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1485
1508
|
} catch (error) {
|
|
1486
1509
|
handleError(error);
|
|
1487
1510
|
let errorForSecondRender = error;
|
|
1488
|
-
if (
|
|
1511
|
+
if (_chunkCXAO7FY7js.isResponse.call(void 0, error)) {
|
|
1489
1512
|
try {
|
|
1490
1513
|
let data2 = await unwrapResponse(error);
|
|
1491
|
-
errorForSecondRender = new (0,
|
|
1514
|
+
errorForSecondRender = new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(
|
|
1492
1515
|
error.status,
|
|
1493
1516
|
error.statusText,
|
|
1494
1517
|
data2
|
|
@@ -1496,7 +1519,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1496
1519
|
} catch (e) {
|
|
1497
1520
|
}
|
|
1498
1521
|
}
|
|
1499
|
-
context =
|
|
1522
|
+
context = _chunkCXAO7FY7js.getStaticContextFromError.call(void 0,
|
|
1500
1523
|
staticHandler.dataRoutes,
|
|
1501
1524
|
context,
|
|
1502
1525
|
errorForSecondRender
|
|
@@ -1555,7 +1578,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1555
1578
|
return handleQueryRouteError(error);
|
|
1556
1579
|
}
|
|
1557
1580
|
function handleQueryRouteResult(result) {
|
|
1558
|
-
if (
|
|
1581
|
+
if (_chunkCXAO7FY7js.isResponse.call(void 0, result)) {
|
|
1559
1582
|
return result;
|
|
1560
1583
|
}
|
|
1561
1584
|
if (typeof result === "string") {
|
|
@@ -1564,11 +1587,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1564
1587
|
return Response.json(result);
|
|
1565
1588
|
}
|
|
1566
1589
|
function handleQueryRouteError(error) {
|
|
1567
|
-
if (
|
|
1590
|
+
if (_chunkCXAO7FY7js.isResponse.call(void 0, error)) {
|
|
1568
1591
|
error.headers.set("X-Remix-Catch", "yes");
|
|
1569
1592
|
return error;
|
|
1570
1593
|
}
|
|
1571
|
-
if (
|
|
1594
|
+
if (_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, error)) {
|
|
1572
1595
|
handleError(error);
|
|
1573
1596
|
return errorResponseToJson(error, serverMode);
|
|
1574
1597
|
}
|
|
@@ -1694,7 +1717,7 @@ function createSessionStorage({
|
|
|
1694
1717
|
};
|
|
1695
1718
|
}
|
|
1696
1719
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1697
|
-
|
|
1720
|
+
_chunkCXAO7FY7js.warnOnce.call(void 0,
|
|
1698
1721
|
cookie.isSigned,
|
|
1699
1722
|
`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.`
|
|
1700
1723
|
);
|
|
@@ -1789,12 +1812,12 @@ function getHydrationData(state, routes, getRouteInfo, location2, basename, isSp
|
|
|
1789
1812
|
...state,
|
|
1790
1813
|
loaderData: { ...state.loaderData }
|
|
1791
1814
|
};
|
|
1792
|
-
let initialMatches =
|
|
1815
|
+
let initialMatches = _chunkCXAO7FY7js.matchRoutes.call(void 0, routes, location2, basename);
|
|
1793
1816
|
if (initialMatches) {
|
|
1794
1817
|
for (let match of initialMatches) {
|
|
1795
1818
|
let routeId = match.route.id;
|
|
1796
1819
|
let routeInfo = getRouteInfo(routeId);
|
|
1797
|
-
if (
|
|
1820
|
+
if (_chunkCXAO7FY7js.shouldHydrateRouteLoader.call(void 0,
|
|
1798
1821
|
routeId,
|
|
1799
1822
|
routeInfo.clientLoader,
|
|
1800
1823
|
routeInfo.hasLoader,
|
|
@@ -1872,7 +1895,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1872
1895
|
}
|
|
1873
1896
|
}
|
|
1874
1897
|
);
|
|
1875
|
-
if (
|
|
1898
|
+
if (_chunkCXAO7FY7js.isRouteErrorResponse.call(void 0, error)) {
|
|
1876
1899
|
return /* @__PURE__ */ React.default.createElement(
|
|
1877
1900
|
ErrorWrapper,
|
|
1878
1901
|
{
|
|
@@ -1880,7 +1903,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1880
1903
|
title: "Unhandled Thrown Response!"
|
|
1881
1904
|
},
|
|
1882
1905
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1883
|
-
|
|
1906
|
+
_chunkCXAO7FY7js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1884
1907
|
);
|
|
1885
1908
|
}
|
|
1886
1909
|
let errorInstance;
|
|
@@ -1906,7 +1929,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1906
1929
|
function RSCDefaultRootErrorBoundary({
|
|
1907
1930
|
hasRootLayout
|
|
1908
1931
|
}) {
|
|
1909
|
-
let error =
|
|
1932
|
+
let error = _chunkCXAO7FY7js.useRouteError.call(void 0, );
|
|
1910
1933
|
if (hasRootLayout === void 0) {
|
|
1911
1934
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1912
1935
|
}
|
|
@@ -1919,6 +1942,26 @@ function RSCDefaultRootErrorBoundary({
|
|
|
1919
1942
|
);
|
|
1920
1943
|
}
|
|
1921
1944
|
|
|
1945
|
+
// lib/rsc/route-modules.ts
|
|
1946
|
+
function createRSCRouteModules(payload) {
|
|
1947
|
+
const routeModules = {};
|
|
1948
|
+
for (const match of payload.matches) {
|
|
1949
|
+
populateRSCRouteModules(routeModules, match);
|
|
1950
|
+
}
|
|
1951
|
+
return routeModules;
|
|
1952
|
+
}
|
|
1953
|
+
function populateRSCRouteModules(routeModules, matches) {
|
|
1954
|
+
matches = Array.isArray(matches) ? matches : [matches];
|
|
1955
|
+
for (const match of matches) {
|
|
1956
|
+
routeModules[match.id] = {
|
|
1957
|
+
links: match.links,
|
|
1958
|
+
meta: match.meta,
|
|
1959
|
+
default: noopComponent
|
|
1960
|
+
};
|
|
1961
|
+
}
|
|
1962
|
+
}
|
|
1963
|
+
var noopComponent = () => null;
|
|
1964
|
+
|
|
1922
1965
|
// lib/rsc/browser.tsx
|
|
1923
1966
|
function createCallServer({
|
|
1924
1967
|
createFromReadableStream,
|
|
@@ -1952,7 +1995,7 @@ function createCallServer({
|
|
|
1952
1995
|
window.location.href = payload.location;
|
|
1953
1996
|
return;
|
|
1954
1997
|
}
|
|
1955
|
-
globalVar.
|
|
1998
|
+
globalVar.__reactRouterDataRouter.navigate(payload.location, {
|
|
1956
1999
|
replace: payload.replace
|
|
1957
2000
|
});
|
|
1958
2001
|
return payload.actionResult;
|
|
@@ -1973,34 +2016,38 @@ function createCallServer({
|
|
|
1973
2016
|
window.location.href = rerender.location;
|
|
1974
2017
|
return;
|
|
1975
2018
|
}
|
|
1976
|
-
globalVar.
|
|
2019
|
+
globalVar.__reactRouterDataRouter.navigate(rerender.location, {
|
|
1977
2020
|
replace: rerender.replace
|
|
1978
2021
|
});
|
|
1979
2022
|
return;
|
|
1980
2023
|
}
|
|
1981
2024
|
let lastMatch;
|
|
1982
2025
|
for (const match of rerender.matches) {
|
|
1983
|
-
globalVar.
|
|
2026
|
+
globalVar.__reactRouterDataRouter.patchRoutes(
|
|
1984
2027
|
_nullishCoalesce(_optionalChain([lastMatch, 'optionalAccess', _19 => _19.id]), () => ( null)),
|
|
1985
2028
|
[createRouteFromServerManifest(match)],
|
|
1986
2029
|
true
|
|
1987
2030
|
);
|
|
1988
2031
|
lastMatch = match;
|
|
1989
2032
|
}
|
|
1990
|
-
window.
|
|
2033
|
+
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
2034
|
+
{}
|
|
2035
|
+
);
|
|
1991
2036
|
React4.startTransition(() => {
|
|
1992
|
-
window.
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2037
|
+
window.__reactRouterDataRouter._internalSetStateDoNotUseOrYouWillBreakYourApp(
|
|
2038
|
+
{
|
|
2039
|
+
loaderData: Object.assign(
|
|
2040
|
+
{},
|
|
2041
|
+
globalVar.__reactRouterDataRouter.state.loaderData,
|
|
2042
|
+
rerender.loaderData
|
|
2043
|
+
),
|
|
2044
|
+
errors: rerender.errors ? Object.assign(
|
|
2045
|
+
{},
|
|
2046
|
+
globalVar.__reactRouterDataRouter.state.errors,
|
|
2047
|
+
rerender.errors
|
|
2048
|
+
) : null
|
|
2049
|
+
}
|
|
2050
|
+
);
|
|
2004
2051
|
});
|
|
2005
2052
|
}
|
|
2006
2053
|
}
|
|
@@ -2016,11 +2063,17 @@ function createRouterFromPayload({
|
|
|
2016
2063
|
payload
|
|
2017
2064
|
}) {
|
|
2018
2065
|
const globalVar = window;
|
|
2019
|
-
if (globalVar.
|
|
2066
|
+
if (globalVar.__reactRouterDataRouter && globalVar.__reactRouterRouteModules)
|
|
2067
|
+
return {
|
|
2068
|
+
router: globalVar.__reactRouterDataRouter,
|
|
2069
|
+
routeModules: globalVar.__reactRouterRouteModules
|
|
2070
|
+
};
|
|
2020
2071
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
2072
|
+
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
|
|
2073
|
+
populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
|
|
2021
2074
|
let patches = /* @__PURE__ */ new Map();
|
|
2022
2075
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
2023
|
-
|
|
2076
|
+
_chunkCXAO7FY7js.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
2024
2077
|
if (!patches.has(patch.parentId)) {
|
|
2025
2078
|
patches.set(patch.parentId, []);
|
|
2026
2079
|
}
|
|
@@ -2042,11 +2095,11 @@ function createRouterFromPayload({
|
|
|
2042
2095
|
}
|
|
2043
2096
|
return [route];
|
|
2044
2097
|
}, []);
|
|
2045
|
-
globalVar.
|
|
2098
|
+
globalVar.__reactRouterDataRouter = _chunkCXAO7FY7js.createRouter.call(void 0, {
|
|
2046
2099
|
routes,
|
|
2047
2100
|
unstable_getContext,
|
|
2048
2101
|
basename: payload.basename,
|
|
2049
|
-
history:
|
|
2102
|
+
history: _chunkCXAO7FY7js.createBrowserHistory.call(void 0, ),
|
|
2050
2103
|
hydrationData: getHydrationData(
|
|
2051
2104
|
{
|
|
2052
2105
|
loaderData: payload.loaderData,
|
|
@@ -2056,7 +2109,7 @@ function createRouterFromPayload({
|
|
|
2056
2109
|
routes,
|
|
2057
2110
|
(routeId) => {
|
|
2058
2111
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2059
|
-
|
|
2112
|
+
_chunkCXAO7FY7js.invariant.call(void 0, match, "Route not found in payload");
|
|
2060
2113
|
return {
|
|
2061
2114
|
clientLoader: match.clientLoader,
|
|
2062
2115
|
hasLoader: match.hasLoader,
|
|
@@ -2080,30 +2133,83 @@ function createRouterFromPayload({
|
|
|
2080
2133
|
},
|
|
2081
2134
|
// FIXME: Pass `build.ssr` into this function
|
|
2082
2135
|
dataStrategy: getRSCSingleFetchDataStrategy(
|
|
2083
|
-
() => globalVar.
|
|
2136
|
+
() => globalVar.__reactRouterDataRouter,
|
|
2084
2137
|
true,
|
|
2085
2138
|
payload.basename,
|
|
2086
2139
|
createFromReadableStream,
|
|
2087
2140
|
fetchImplementation
|
|
2088
2141
|
)
|
|
2089
2142
|
});
|
|
2090
|
-
if (globalVar.
|
|
2143
|
+
if (globalVar.__reactRouterDataRouter.state.initialized) {
|
|
2091
2144
|
globalVar.__routerInitialized = true;
|
|
2092
|
-
globalVar.
|
|
2145
|
+
globalVar.__reactRouterDataRouter.initialize();
|
|
2093
2146
|
} else {
|
|
2094
2147
|
globalVar.__routerInitialized = false;
|
|
2095
2148
|
}
|
|
2096
2149
|
let lastLoaderData = void 0;
|
|
2097
|
-
globalVar.
|
|
2150
|
+
globalVar.__reactRouterDataRouter.subscribe(({ loaderData, actionData }) => {
|
|
2098
2151
|
if (lastLoaderData !== loaderData) {
|
|
2099
2152
|
globalVar.__routerActionID = (_nullishCoalesce(globalVar.__routerActionID, () => ( (globalVar.__routerActionID = 0)))) + 1;
|
|
2100
2153
|
}
|
|
2101
2154
|
});
|
|
2102
|
-
|
|
2155
|
+
globalVar.__reactRouterDataRouter._updateRoutesForHMR = (routeUpdateByRouteId) => {
|
|
2156
|
+
const oldRoutes = window.__reactRouterDataRouter.routes;
|
|
2157
|
+
const newRoutes = [];
|
|
2158
|
+
function walkRoutes(routes2, parentId) {
|
|
2159
|
+
return routes2.map((route) => {
|
|
2160
|
+
const routeUpdate = routeUpdateByRouteId.get(route.id);
|
|
2161
|
+
if (routeUpdate) {
|
|
2162
|
+
const {
|
|
2163
|
+
routeModule,
|
|
2164
|
+
hasAction,
|
|
2165
|
+
hasComponent,
|
|
2166
|
+
hasErrorBoundary,
|
|
2167
|
+
hasLoader
|
|
2168
|
+
} = routeUpdate;
|
|
2169
|
+
const newRoute = createRouteFromServerManifest({
|
|
2170
|
+
clientAction: routeModule.clientAction,
|
|
2171
|
+
clientLoader: routeModule.clientLoader,
|
|
2172
|
+
element: route.element,
|
|
2173
|
+
errorElement: route.errorElement,
|
|
2174
|
+
handle: route.handle,
|
|
2175
|
+
hasAction,
|
|
2176
|
+
hasComponent,
|
|
2177
|
+
hasErrorBoundary,
|
|
2178
|
+
hasLoader,
|
|
2179
|
+
hydrateFallbackElement: route.hydrateFallbackElement,
|
|
2180
|
+
id: route.id,
|
|
2181
|
+
index: route.index,
|
|
2182
|
+
links: routeModule.links,
|
|
2183
|
+
meta: routeModule.meta,
|
|
2184
|
+
parentId,
|
|
2185
|
+
path: route.path,
|
|
2186
|
+
shouldRevalidate: routeModule.shouldRevalidate
|
|
2187
|
+
});
|
|
2188
|
+
if (route.children) {
|
|
2189
|
+
newRoute.children = walkRoutes(route.children, route.id);
|
|
2190
|
+
}
|
|
2191
|
+
return newRoute;
|
|
2192
|
+
}
|
|
2193
|
+
const updatedRoute = { ...route };
|
|
2194
|
+
if (route.children) {
|
|
2195
|
+
updatedRoute.children = walkRoutes(route.children, route.id);
|
|
2196
|
+
}
|
|
2197
|
+
return updatedRoute;
|
|
2198
|
+
});
|
|
2199
|
+
}
|
|
2200
|
+
newRoutes.push(
|
|
2201
|
+
...walkRoutes(oldRoutes, void 0)
|
|
2202
|
+
);
|
|
2203
|
+
window.__reactRouterDataRouter._internalSetRoutes(newRoutes);
|
|
2204
|
+
};
|
|
2205
|
+
return {
|
|
2206
|
+
router: globalVar.__reactRouterDataRouter,
|
|
2207
|
+
routeModules: globalVar.__reactRouterRouteModules
|
|
2208
|
+
};
|
|
2103
2209
|
}
|
|
2104
|
-
var renderedRoutesContext =
|
|
2210
|
+
var renderedRoutesContext = _chunkCXAO7FY7js.unstable_createContext.call(void 0, );
|
|
2105
2211
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2106
|
-
let dataStrategy =
|
|
2212
|
+
let dataStrategy = _chunkCXAO7FY7js.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2107
2213
|
getRouter,
|
|
2108
2214
|
(match) => {
|
|
2109
2215
|
let M = match;
|
|
@@ -2143,7 +2249,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2143
2249
|
const renderedRoutes = renderedRoutesById.get(match.route.id);
|
|
2144
2250
|
if (renderedRoutes) {
|
|
2145
2251
|
for (const rendered of renderedRoutes) {
|
|
2146
|
-
window.
|
|
2252
|
+
window.__reactRouterDataRouter.patchRoutes(
|
|
2147
2253
|
_nullishCoalesce(rendered.parentId, () => ( null)),
|
|
2148
2254
|
[createRouteFromServerManifest(rendered)],
|
|
2149
2255
|
true
|
|
@@ -2157,20 +2263,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2157
2263
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2158
2264
|
return async (args, basename, targetRoutes) => {
|
|
2159
2265
|
let { request, context } = args;
|
|
2160
|
-
let url =
|
|
2266
|
+
let url = _chunkCXAO7FY7js.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2161
2267
|
if (request.method === "GET") {
|
|
2162
|
-
url =
|
|
2268
|
+
url = _chunkCXAO7FY7js.stripIndexParam.call(void 0, url);
|
|
2163
2269
|
if (targetRoutes) {
|
|
2164
2270
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2165
2271
|
}
|
|
2166
2272
|
}
|
|
2167
2273
|
let res = await fetchImplementation(
|
|
2168
|
-
new Request(url, await
|
|
2274
|
+
new Request(url, await _chunkCXAO7FY7js.createRequestInit.call(void 0, request))
|
|
2169
2275
|
);
|
|
2170
2276
|
if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
|
|
2171
|
-
throw new (0,
|
|
2277
|
+
throw new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(404, "Not Found", true);
|
|
2172
2278
|
}
|
|
2173
|
-
|
|
2279
|
+
_chunkCXAO7FY7js.invariant.call(void 0, res.body, "No response body to decode");
|
|
2174
2280
|
try {
|
|
2175
2281
|
const payload = await createFromReadableStream(res.body, {
|
|
2176
2282
|
temporaryReferences: void 0
|
|
@@ -2194,7 +2300,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2194
2300
|
}
|
|
2195
2301
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2196
2302
|
let results = { routes: {} };
|
|
2197
|
-
const dataKey =
|
|
2303
|
+
const dataKey = _chunkCXAO7FY7js.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2198
2304
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2199
2305
|
results.routes[routeId] = { data: data2 };
|
|
2200
2306
|
}
|
|
@@ -2217,7 +2323,7 @@ function RSCHydratedRouter({
|
|
|
2217
2323
|
unstable_getContext
|
|
2218
2324
|
}) {
|
|
2219
2325
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
2220
|
-
let router = React4.useMemo(
|
|
2326
|
+
let { router, routeModules } = React4.useMemo(
|
|
2221
2327
|
() => createRouterFromPayload({
|
|
2222
2328
|
payload,
|
|
2223
2329
|
fetchImplementation,
|
|
@@ -2231,11 +2337,14 @@ function RSCHydratedRouter({
|
|
|
2231
2337
|
unstable_getContext
|
|
2232
2338
|
]
|
|
2233
2339
|
);
|
|
2340
|
+
React4.useEffect(() => {
|
|
2341
|
+
_chunkCXAO7FY7js.setIsHydrated.call(void 0, );
|
|
2342
|
+
}, []);
|
|
2234
2343
|
React4.useLayoutEffect(() => {
|
|
2235
2344
|
const globalVar = window;
|
|
2236
2345
|
if (!globalVar.__routerInitialized) {
|
|
2237
2346
|
globalVar.__routerInitialized = true;
|
|
2238
|
-
globalVar.
|
|
2347
|
+
globalVar.__reactRouterDataRouter.initialize();
|
|
2239
2348
|
}
|
|
2240
2349
|
}, []);
|
|
2241
2350
|
let [location2, setLocation] = React4.useState(router.state.location);
|
|
@@ -2301,7 +2410,7 @@ function RSCHydratedRouter({
|
|
|
2301
2410
|
unstable_middleware: false,
|
|
2302
2411
|
unstable_subResourceIntegrity: false
|
|
2303
2412
|
},
|
|
2304
|
-
isSpaMode:
|
|
2413
|
+
isSpaMode: false,
|
|
2305
2414
|
ssr: true,
|
|
2306
2415
|
criticalCss: "",
|
|
2307
2416
|
manifest: {
|
|
@@ -2314,9 +2423,9 @@ function RSCHydratedRouter({
|
|
|
2314
2423
|
}
|
|
2315
2424
|
},
|
|
2316
2425
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2317
|
-
routeModules
|
|
2426
|
+
routeModules
|
|
2318
2427
|
};
|
|
2319
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2428
|
+
return /* @__PURE__ */ React4.createElement(_chunkCXAO7FY7js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkCXAO7FY7js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunk3JLHOGU7js.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2320
2429
|
}
|
|
2321
2430
|
function createRouteFromServerManifest(match, payload) {
|
|
2322
2431
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2327,6 +2436,8 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2327
2436
|
// the server loader flow regardless of whether the client loader calls
|
|
2328
2437
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2329
2438
|
match.hasComponent && !match.element;
|
|
2439
|
+
_chunkCXAO7FY7js.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
2440
|
+
populateRSCRouteModules(window.__reactRouterRouteModules, match);
|
|
2330
2441
|
let dataRoute = {
|
|
2331
2442
|
id: match.id,
|
|
2332
2443
|
element: match.element,
|
|
@@ -2376,7 +2487,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2376
2487
|
return await callSingleFetch(singleFetch);
|
|
2377
2488
|
}
|
|
2378
2489
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2379
|
-
throw
|
|
2490
|
+
throw _chunkCXAO7FY7js.noActionDefinedError.call(void 0, "action", match.id);
|
|
2380
2491
|
},
|
|
2381
2492
|
path: match.path,
|
|
2382
2493
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2389,7 +2500,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2389
2500
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2390
2501
|
};
|
|
2391
2502
|
if (typeof dataRoute.loader === "function") {
|
|
2392
|
-
dataRoute.loader.hydrate =
|
|
2503
|
+
dataRoute.loader.hydrate = _chunkCXAO7FY7js.shouldHydrateRouteLoader.call(void 0,
|
|
2393
2504
|
match.id,
|
|
2394
2505
|
match.clientLoader,
|
|
2395
2506
|
match.hasLoader,
|
|
@@ -2399,7 +2510,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2399
2510
|
return dataRoute;
|
|
2400
2511
|
}
|
|
2401
2512
|
function callSingleFetch(singleFetch) {
|
|
2402
|
-
|
|
2513
|
+
_chunkCXAO7FY7js.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2403
2514
|
return singleFetch();
|
|
2404
2515
|
}
|
|
2405
2516
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2407,7 +2518,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2407
2518
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2408
2519
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2409
2520
|
console.error(msg);
|
|
2410
|
-
throw new (0,
|
|
2521
|
+
throw new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2411
2522
|
}
|
|
2412
2523
|
}
|
|
2413
2524
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2422,7 +2533,10 @@ function getManifestUrl(paths) {
|
|
|
2422
2533
|
return new URL(`${paths[0]}.manifest`, window.location.origin);
|
|
2423
2534
|
}
|
|
2424
2535
|
const globalVar = window;
|
|
2425
|
-
let basename = (_nullishCoalesce(globalVar.
|
|
2536
|
+
let basename = (_nullishCoalesce(globalVar.__reactRouterDataRouter.basename, () => ( ""))).replace(
|
|
2537
|
+
/^\/|\/$/g,
|
|
2538
|
+
""
|
|
2539
|
+
);
|
|
2426
2540
|
let url = new URL(`${basename}/.manifest`, window.location.origin);
|
|
2427
2541
|
paths.sort().forEach((path) => url.searchParams.append("p", path));
|
|
2428
2542
|
return url;
|
|
@@ -2448,7 +2562,7 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
|
|
|
2448
2562
|
}
|
|
2449
2563
|
paths.forEach((p) => addToFifoQueue(p, discoveredPaths));
|
|
2450
2564
|
payload.patches.forEach((p) => {
|
|
2451
|
-
window.
|
|
2565
|
+
window.__reactRouterDataRouter.patchRoutes(
|
|
2452
2566
|
_nullishCoalesce(p.parentId, () => ( null)),
|
|
2453
2567
|
[createRouteFromServerManifest(p)]
|
|
2454
2568
|
);
|
|
@@ -2599,7 +2713,7 @@ async function routeRSCServerRequest({
|
|
|
2599
2713
|
};
|
|
2600
2714
|
try {
|
|
2601
2715
|
const payload = await getPayload();
|
|
2602
|
-
if (serverResponse.status ===
|
|
2716
|
+
if (serverResponse.status === _chunkCXAO7FY7js.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2603
2717
|
const headers2 = new Headers(serverResponse.headers);
|
|
2604
2718
|
headers2.delete("Content-Encoding");
|
|
2605
2719
|
headers2.delete("Content-Length");
|
|
@@ -2649,7 +2763,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2649
2763
|
if (payload.type !== "render") return null;
|
|
2650
2764
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2651
2765
|
for (const match of payload.matches) {
|
|
2652
|
-
if (
|
|
2766
|
+
if (_chunkCXAO7FY7js.shouldHydrateRouteLoader.call(void 0,
|
|
2653
2767
|
match.id,
|
|
2654
2768
|
match.clientLoader,
|
|
2655
2769
|
match.hasLoader,
|
|
@@ -2683,7 +2797,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2683
2797
|
}
|
|
2684
2798
|
}))
|
|
2685
2799
|
};
|
|
2686
|
-
const router =
|
|
2800
|
+
const router = _chunk3JLHOGU7js.createStaticRouter.call(void 0,
|
|
2687
2801
|
payload.matches.reduceRight((previous, match) => {
|
|
2688
2802
|
const route = {
|
|
2689
2803
|
id: match.id,
|
|
@@ -2725,10 +2839,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2725
2839
|
}
|
|
2726
2840
|
},
|
|
2727
2841
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2728
|
-
routeModules:
|
|
2842
|
+
routeModules: createRSCRouteModules(payload)
|
|
2729
2843
|
};
|
|
2730
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2731
|
-
|
|
2844
|
+
return /* @__PURE__ */ React5.createElement(_chunkCXAO7FY7js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkCXAO7FY7js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2845
|
+
_chunk3JLHOGU7js.StaticRouterProvider,
|
|
2732
2846
|
{
|
|
2733
2847
|
context,
|
|
2734
2848
|
router,
|
|
@@ -2786,7 +2900,7 @@ function deserializeErrors(errors) {
|
|
|
2786
2900
|
let serialized = {};
|
|
2787
2901
|
for (let [key, val] of entries) {
|
|
2788
2902
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2789
|
-
serialized[key] = new (0,
|
|
2903
|
+
serialized[key] = new (0, _chunkCXAO7FY7js.ErrorResponseImpl)(
|
|
2790
2904
|
val.status,
|
|
2791
2905
|
val.statusText,
|
|
2792
2906
|
val.data,
|
|
@@ -2944,4 +3058,4 @@ function deserializeErrors(errors) {
|
|
|
2944
3058
|
|
|
2945
3059
|
|
|
2946
3060
|
|
|
2947
|
-
exports.Await =
|
|
3061
|
+
exports.Await = _chunk3JLHOGU7js.Await; exports.BrowserRouter = _chunk3JLHOGU7js.BrowserRouter; exports.Form = _chunk3JLHOGU7js.Form; exports.HashRouter = _chunk3JLHOGU7js.HashRouter; exports.IDLE_BLOCKER = _chunkCXAO7FY7js.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkCXAO7FY7js.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkCXAO7FY7js.IDLE_NAVIGATION; exports.Link = _chunk3JLHOGU7js.Link; exports.Links = _chunkCXAO7FY7js.Links; exports.MemoryRouter = _chunk3JLHOGU7js.MemoryRouter; exports.Meta = _chunkCXAO7FY7js.Meta; exports.NavLink = _chunk3JLHOGU7js.NavLink; exports.Navigate = _chunk3JLHOGU7js.Navigate; exports.NavigationType = _chunkCXAO7FY7js.Action; exports.Outlet = _chunk3JLHOGU7js.Outlet; exports.PrefetchPageLinks = _chunkCXAO7FY7js.PrefetchPageLinks; exports.Route = _chunk3JLHOGU7js.Route; exports.Router = _chunk3JLHOGU7js.Router; exports.RouterProvider = _chunk3JLHOGU7js.RouterProvider; exports.Routes = _chunk3JLHOGU7js.Routes; exports.Scripts = _chunkCXAO7FY7js.Scripts; exports.ScrollRestoration = _chunk3JLHOGU7js.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunk3JLHOGU7js.StaticRouter; exports.StaticRouterProvider = _chunk3JLHOGU7js.StaticRouterProvider; exports.UNSAFE_DataRouterContext = _chunkCXAO7FY7js.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkCXAO7FY7js.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkCXAO7FY7js.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkCXAO7FY7js.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkCXAO7FY7js.FrameworkContext; exports.UNSAFE_LocationContext = _chunkCXAO7FY7js.LocationContext; exports.UNSAFE_NavigationContext = _chunkCXAO7FY7js.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkCXAO7FY7js.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkCXAO7FY7js.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkCXAO7FY7js.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkCXAO7FY7js.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunk3JLHOGU7js.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunk3JLHOGU7js.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunk3JLHOGU7js.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkCXAO7FY7js.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkCXAO7FY7js.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkCXAO7FY7js.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkCXAO7FY7js.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkCXAO7FY7js.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkCXAO7FY7js.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkCXAO7FY7js.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunk3JLHOGU7js.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkCXAO7FY7js.invariant; exports.UNSAFE_mapRouteProperties = _chunk3JLHOGU7js.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkCXAO7FY7js.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkCXAO7FY7js.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunk3JLHOGU7js.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunk3JLHOGU7js.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunk3JLHOGU7js.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunk3JLHOGU7js.withHydrateFallbackProps; exports.createBrowserRouter = _chunk3JLHOGU7js.createBrowserRouter; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunk3JLHOGU7js.createHashRouter; exports.createMemoryRouter = _chunk3JLHOGU7js.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkCXAO7FY7js.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunk3JLHOGU7js.createRoutesFromChildren; exports.createRoutesFromElements = _chunk3JLHOGU7js.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunk3JLHOGU7js.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunk3JLHOGU7js.createStaticHandler; exports.createStaticRouter = _chunk3JLHOGU7js.createStaticRouter; exports.data = _chunkCXAO7FY7js.data; exports.generatePath = _chunkCXAO7FY7js.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkCXAO7FY7js.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkCXAO7FY7js.matchPath; exports.matchRoutes = _chunkCXAO7FY7js.matchRoutes; exports.parsePath = _chunkCXAO7FY7js.parsePath; exports.redirect = _chunkCXAO7FY7js.redirect; exports.redirectDocument = _chunkCXAO7FY7js.redirectDocument; exports.renderMatches = _chunk3JLHOGU7js.renderMatches; exports.replace = _chunkCXAO7FY7js.replace; exports.resolvePath = _chunkCXAO7FY7js.resolvePath; exports.unstable_HistoryRouter = _chunk3JLHOGU7js.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_RouterContextProvider = _chunkCXAO7FY7js.unstable_RouterContextProvider; exports.unstable_createCallServer = createCallServer; exports.unstable_createContext = _chunkCXAO7FY7js.unstable_createContext; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunk3JLHOGU7js.usePrompt; exports.useActionData = _chunkCXAO7FY7js.useActionData; exports.useAsyncError = _chunkCXAO7FY7js.useAsyncError; exports.useAsyncValue = _chunkCXAO7FY7js.useAsyncValue; exports.useBeforeUnload = _chunk3JLHOGU7js.useBeforeUnload; exports.useBlocker = _chunkCXAO7FY7js.useBlocker; exports.useFetcher = _chunk3JLHOGU7js.useFetcher; exports.useFetchers = _chunk3JLHOGU7js.useFetchers; exports.useFormAction = _chunk3JLHOGU7js.useFormAction; exports.useHref = _chunkCXAO7FY7js.useHref; exports.useInRouterContext = _chunkCXAO7FY7js.useInRouterContext; exports.useLinkClickHandler = _chunk3JLHOGU7js.useLinkClickHandler; exports.useLoaderData = _chunkCXAO7FY7js.useLoaderData; exports.useLocation = _chunkCXAO7FY7js.useLocation; exports.useMatch = _chunkCXAO7FY7js.useMatch; exports.useMatches = _chunkCXAO7FY7js.useMatches; exports.useNavigate = _chunkCXAO7FY7js.useNavigate; exports.useNavigation = _chunkCXAO7FY7js.useNavigation; exports.useNavigationType = _chunkCXAO7FY7js.useNavigationType; exports.useOutlet = _chunkCXAO7FY7js.useOutlet; exports.useOutletContext = _chunkCXAO7FY7js.useOutletContext; exports.useParams = _chunkCXAO7FY7js.useParams; exports.useResolvedPath = _chunkCXAO7FY7js.useResolvedPath; exports.useRevalidator = _chunkCXAO7FY7js.useRevalidator; exports.useRouteError = _chunkCXAO7FY7js.useRouteError; exports.useRouteLoaderData = _chunkCXAO7FY7js.useRouteLoaderData; exports.useRoutes = _chunkCXAO7FY7js.useRoutes; exports.useSearchParams = _chunk3JLHOGU7js.useSearchParams; exports.useSubmit = _chunk3JLHOGU7js.useSubmit; exports.useViewTransitionState = _chunk3JLHOGU7js.useViewTransitionState;
|