react-router 7.8.2 → 7.9.0-pre.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -0
- package/dist/development/{chunk-5UALIXAM.mjs → chunk-AVXIT45F.mjs} +94 -70
- package/dist/development/{chunk-PVWAREVJ.mjs → chunk-QZH3B547.mjs} +47 -50
- package/dist/development/{chunk-ZO66TDGB.js → chunk-RGB6BZUL.js} +41 -44
- package/dist/development/{chunk-CSDGKXLR.js → chunk-XYB2GISA.js} +135 -135
- package/dist/{production/context-jKip1TFB.d.mts → development/context-BH6Jwdoy.d.mts} +39 -32
- package/dist/development/dom-export.d.mts +3 -3
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +14 -14
- package/dist/development/dom-export.mjs +14 -14
- package/dist/development/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
- package/dist/{production/index-react-server-client-BKpa2trA.d.ts → development/index-react-server-client-CMC2eQAY.d.ts} +12 -12
- package/dist/development/index-react-server-client.d.mts +3 -3
- 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 +4 -4
- package/dist/development/index-react-server.d.mts +229 -37
- package/dist/development/index-react-server.d.ts +229 -37
- package/dist/development/index-react-server.js +89 -39
- package/dist/development/index-react-server.mjs +88 -36
- package/dist/development/index.d.mts +31 -24
- package/dist/development/index.d.ts +29 -22
- package/dist/development/index.js +184 -158
- package/dist/development/index.mjs +9 -7
- package/dist/development/lib/types/internal.d.mts +6 -6
- package/dist/development/lib/types/internal.d.ts +5 -5
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
- package/dist/development/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
- package/dist/production/{chunk-Z56HUDN5.js → chunk-A6EU7LHU.js} +41 -44
- package/dist/production/{chunk-REDRD2MB.mjs → chunk-BQLQLXP4.mjs} +47 -50
- package/dist/production/{chunk-JNT5PWCQ.js → chunk-IR3XRH6J.js} +135 -135
- package/dist/production/{chunk-KWHRV2I7.mjs → chunk-WMHWIEJV.mjs} +94 -70
- package/dist/{development/context-jKip1TFB.d.mts → production/context-BH6Jwdoy.d.mts} +39 -32
- package/dist/production/dom-export.d.mts +3 -3
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +14 -14
- package/dist/production/dom-export.mjs +14 -14
- package/dist/production/{index-react-server-client-DRhjXpk2.d.mts → index-react-server-client-1cWMpKk4.d.mts} +13 -13
- package/dist/{development/index-react-server-client-BKpa2trA.d.ts → production/index-react-server-client-CMC2eQAY.d.ts} +12 -12
- package/dist/production/index-react-server-client.d.mts +3 -3
- 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 +4 -4
- package/dist/production/index-react-server.d.mts +229 -37
- package/dist/production/index-react-server.d.ts +229 -37
- package/dist/production/index-react-server.js +89 -39
- package/dist/production/index-react-server.mjs +88 -36
- package/dist/production/index.d.mts +31 -24
- package/dist/production/index.d.ts +29 -22
- package/dist/production/index.js +184 -158
- package/dist/production/index.mjs +9 -7
- package/dist/production/lib/types/internal.d.mts +6 -6
- package/dist/production/lib/types/internal.d.ts +5 -5
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{route-data-DAVP2QQ0.d.mts → route-data-BQkq8Erj.d.mts} +12 -12
- package/dist/production/{routeModules-rOzWJJ9x.d.ts → routeModules-DSKAn01V.d.ts} +175 -168
- 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.
|
|
2
|
+
* react-router v7.9.0-pre.1
|
|
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 _chunkXYB2GISAjs = require('./chunk-XYB2GISA.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -143,7 +143,9 @@ var _chunkCSDGKXLRjs = require('./chunk-CSDGKXLR.js');
|
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
|
|
146
|
-
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
var _chunkRGB6BZULjs = require('./chunk-RGB6BZUL.js');
|
|
147
149
|
|
|
148
150
|
// lib/dom/ssr/server.tsx
|
|
149
151
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React4 = _interopRequireWildcard(_react); var React5 = _interopRequireWildcard(_react);
|
|
@@ -156,7 +158,7 @@ function ServerRouter({
|
|
|
156
158
|
url = new URL(url);
|
|
157
159
|
}
|
|
158
160
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
159
|
-
let routes =
|
|
161
|
+
let routes = _chunkRGB6BZULjs.createServerRoutes.call(void 0,
|
|
160
162
|
manifest.routes,
|
|
161
163
|
routeModules,
|
|
162
164
|
context.future,
|
|
@@ -169,7 +171,7 @@ function ServerRouter({
|
|
|
169
171
|
let routeId = match.route.id;
|
|
170
172
|
let route = routeModules[routeId];
|
|
171
173
|
let manifestRoute = context.manifest.routes[routeId];
|
|
172
|
-
if (route && manifestRoute &&
|
|
174
|
+
if (route && manifestRoute && _chunkRGB6BZULjs.shouldHydrateRouteLoader.call(void 0,
|
|
173
175
|
routeId,
|
|
174
176
|
route.clientLoader,
|
|
175
177
|
manifestRoute.hasLoader,
|
|
@@ -178,9 +180,9 @@ function ServerRouter({
|
|
|
178
180
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
179
181
|
}
|
|
180
182
|
}
|
|
181
|
-
let router =
|
|
183
|
+
let router = _chunkXYB2GISAjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
182
184
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
183
|
-
|
|
185
|
+
_chunkRGB6BZULjs.FrameworkContext.Provider,
|
|
184
186
|
{
|
|
185
187
|
value: {
|
|
186
188
|
manifest,
|
|
@@ -195,8 +197,8 @@ function ServerRouter({
|
|
|
195
197
|
renderMeta: context.renderMeta
|
|
196
198
|
}
|
|
197
199
|
},
|
|
198
|
-
/* @__PURE__ */ React.createElement(
|
|
199
|
-
|
|
200
|
+
/* @__PURE__ */ React.createElement(_chunkRGB6BZULjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
201
|
+
_chunkXYB2GISAjs.StaticRouterProvider,
|
|
200
202
|
{
|
|
201
203
|
router,
|
|
202
204
|
context: context.staticHandlerContext,
|
|
@@ -204,7 +206,7 @@ function ServerRouter({
|
|
|
204
206
|
}
|
|
205
207
|
))
|
|
206
208
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
207
|
-
|
|
209
|
+
_chunkRGB6BZULjs.StreamTransfer,
|
|
208
210
|
{
|
|
209
211
|
context,
|
|
210
212
|
identifier: 0,
|
|
@@ -230,7 +232,7 @@ function createRoutesStub(routes, _context) {
|
|
|
230
232
|
frameworkContextRef.current = {
|
|
231
233
|
future: {
|
|
232
234
|
unstable_subResourceIntegrity: _optionalChain([future, 'optionalAccess', _2 => _2.unstable_subResourceIntegrity]) === true,
|
|
233
|
-
|
|
235
|
+
v8_middleware: _optionalChain([future, 'optionalAccess', _3 => _3.v8_middleware]) === true
|
|
234
236
|
},
|
|
235
237
|
manifest: {
|
|
236
238
|
routes: {},
|
|
@@ -246,18 +248,18 @@ function createRoutesStub(routes, _context) {
|
|
|
246
248
|
let patched = processRoutes(
|
|
247
249
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
248
250
|
// types compared to `AgnosticRouteObject`
|
|
249
|
-
|
|
250
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.
|
|
251
|
+
_chunkRGB6BZULjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
252
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkRGB6BZULjs.RouterContextProvider)() : {},
|
|
251
253
|
frameworkContextRef.current.manifest,
|
|
252
254
|
frameworkContextRef.current.routeModules
|
|
253
255
|
);
|
|
254
|
-
routerRef.current =
|
|
256
|
+
routerRef.current = _chunkXYB2GISAjs.createMemoryRouter.call(void 0, patched, {
|
|
255
257
|
initialEntries,
|
|
256
258
|
initialIndex,
|
|
257
259
|
hydrationData
|
|
258
260
|
});
|
|
259
261
|
}
|
|
260
|
-
return /* @__PURE__ */ React2.createElement(
|
|
262
|
+
return /* @__PURE__ */ React2.createElement(_chunkRGB6BZULjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkXYB2GISAjs.RouterProvider, { router: routerRef.current }));
|
|
261
263
|
};
|
|
262
264
|
}
|
|
263
265
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -271,9 +273,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
271
273
|
id: route.id,
|
|
272
274
|
path: route.path,
|
|
273
275
|
index: route.index,
|
|
274
|
-
Component: route.Component ?
|
|
275
|
-
HydrateFallback: route.HydrateFallback ?
|
|
276
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
276
|
+
Component: route.Component ? _chunkXYB2GISAjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
277
|
+
HydrateFallback: route.HydrateFallback ? _chunkXYB2GISAjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
278
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkXYB2GISAjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
277
279
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
278
280
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
279
281
|
handle: route.handle,
|
|
@@ -302,7 +304,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
302
304
|
};
|
|
303
305
|
manifest.routes[newRoute.id] = entryRoute;
|
|
304
306
|
routeModules[route.id] = {
|
|
305
|
-
default: newRoute.Component ||
|
|
307
|
+
default: newRoute.Component || _chunkXYB2GISAjs.Outlet,
|
|
306
308
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
307
309
|
handle: route.handle,
|
|
308
310
|
links: route.links,
|
|
@@ -497,7 +499,7 @@ function myUnescape(value) {
|
|
|
497
499
|
return result;
|
|
498
500
|
}
|
|
499
501
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
500
|
-
|
|
502
|
+
_chunkRGB6BZULjs.warnOnce.call(void 0,
|
|
501
503
|
!expires,
|
|
502
504
|
`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.`
|
|
503
505
|
);
|
|
@@ -551,7 +553,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
551
553
|
let entries = Object.entries(errors);
|
|
552
554
|
let serialized = {};
|
|
553
555
|
for (let [key, val] of entries) {
|
|
554
|
-
if (
|
|
556
|
+
if (_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, val)) {
|
|
555
557
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
556
558
|
} else if (val instanceof Error) {
|
|
557
559
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -576,7 +578,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
576
578
|
|
|
577
579
|
// lib/server-runtime/routeMatching.ts
|
|
578
580
|
function matchServerRoutes(routes, pathname, basename) {
|
|
579
|
-
let matches =
|
|
581
|
+
let matches = _chunkRGB6BZULjs.matchRoutes.call(void 0,
|
|
580
582
|
routes,
|
|
581
583
|
pathname,
|
|
582
584
|
basename
|
|
@@ -596,7 +598,7 @@ async function callRouteHandler(handler, args) {
|
|
|
596
598
|
params: args.params,
|
|
597
599
|
context: args.context
|
|
598
600
|
});
|
|
599
|
-
if (
|
|
601
|
+
if (_chunkRGB6BZULjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkRGB6BZULjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
600
602
|
throw new Response(null, result.init);
|
|
601
603
|
}
|
|
602
604
|
return result;
|
|
@@ -697,7 +699,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
697
699
|
hasErrorBoundary: route.id === "root" || route.module.ErrorBoundary != null,
|
|
698
700
|
id: route.id,
|
|
699
701
|
path: route.path,
|
|
700
|
-
|
|
702
|
+
middleware: route.module.middleware,
|
|
701
703
|
// Need to use RR's version in the param typed here to permit the optional
|
|
702
704
|
// context even though we know it'll always be provided in remix
|
|
703
705
|
loader: route.module.loader ? async (args) => {
|
|
@@ -715,17 +717,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
715
717
|
controller.close();
|
|
716
718
|
}
|
|
717
719
|
});
|
|
718
|
-
let decoded = await
|
|
720
|
+
let decoded = await _chunkRGB6BZULjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
719
721
|
let data2 = decoded.value;
|
|
720
|
-
if (data2 &&
|
|
721
|
-
let result = data2[
|
|
722
|
+
if (data2 && _chunkRGB6BZULjs.SingleFetchRedirectSymbol in data2) {
|
|
723
|
+
let result = data2[_chunkRGB6BZULjs.SingleFetchRedirectSymbol];
|
|
722
724
|
let init = { status: result.status };
|
|
723
725
|
if (result.reload) {
|
|
724
|
-
throw
|
|
726
|
+
throw _chunkRGB6BZULjs.redirectDocument.call(void 0, result.redirect, init);
|
|
725
727
|
} else if (result.replace) {
|
|
726
|
-
throw
|
|
728
|
+
throw _chunkRGB6BZULjs.replace.call(void 0, result.redirect, init);
|
|
727
729
|
} else {
|
|
728
|
-
throw
|
|
730
|
+
throw _chunkRGB6BZULjs.redirect.call(void 0, result.redirect, init);
|
|
729
731
|
}
|
|
730
732
|
} else {
|
|
731
733
|
invariant2(
|
|
@@ -762,22 +764,9 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
762
764
|
});
|
|
763
765
|
}
|
|
764
766
|
|
|
765
|
-
// lib/server-runtime/markup.ts
|
|
766
|
-
var ESCAPE_LOOKUP = {
|
|
767
|
-
"&": "\\u0026",
|
|
768
|
-
">": "\\u003e",
|
|
769
|
-
"<": "\\u003c",
|
|
770
|
-
"\u2028": "\\u2028",
|
|
771
|
-
"\u2029": "\\u2029"
|
|
772
|
-
};
|
|
773
|
-
var ESCAPE_REGEX = /[&><\u2028\u2029]/g;
|
|
774
|
-
function escapeHtml(html) {
|
|
775
|
-
return html.replace(ESCAPE_REGEX, (match) => ESCAPE_LOOKUP[match]);
|
|
776
|
-
}
|
|
777
|
-
|
|
778
767
|
// lib/server-runtime/serverHandoff.ts
|
|
779
768
|
function createServerHandoffString(serverHandoff) {
|
|
780
|
-
return escapeHtml(JSON.stringify(serverHandoff));
|
|
769
|
+
return _chunkRGB6BZULjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
781
770
|
}
|
|
782
771
|
|
|
783
772
|
// lib/server-runtime/headers.ts
|
|
@@ -854,7 +843,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
854
843
|
|
|
855
844
|
// lib/server-runtime/single-fetch.ts
|
|
856
845
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
857
|
-
...
|
|
846
|
+
..._chunkRGB6BZULjs.NO_BODY_STATUS_CODES,
|
|
858
847
|
304
|
|
859
848
|
]);
|
|
860
849
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -870,7 +859,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
870
859
|
requestContext: loadContext,
|
|
871
860
|
skipLoaderErrorBubbling: true,
|
|
872
861
|
skipRevalidation: true,
|
|
873
|
-
|
|
862
|
+
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
874
863
|
try {
|
|
875
864
|
let innerResult = await query(handlerRequest);
|
|
876
865
|
return handleQueryResult(innerResult);
|
|
@@ -884,7 +873,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
884
873
|
return handleQueryError(error);
|
|
885
874
|
}
|
|
886
875
|
function handleQueryResult(result) {
|
|
887
|
-
return
|
|
876
|
+
return _chunkRGB6BZULjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
888
877
|
}
|
|
889
878
|
function handleQueryError(error) {
|
|
890
879
|
handleError(error);
|
|
@@ -896,12 +885,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
896
885
|
}
|
|
897
886
|
function staticContextToResponse(context) {
|
|
898
887
|
let headers = getDocumentHeaders(context, build);
|
|
899
|
-
if (
|
|
888
|
+
if (_chunkRGB6BZULjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
900
889
|
return new Response(null, { status: context.statusCode, headers });
|
|
901
890
|
}
|
|
902
891
|
if (context.errors) {
|
|
903
892
|
Object.values(context.errors).forEach((err) => {
|
|
904
|
-
if (!
|
|
893
|
+
if (!_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
905
894
|
handleError(err);
|
|
906
895
|
}
|
|
907
896
|
});
|
|
@@ -934,7 +923,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
934
923
|
requestContext: loadContext,
|
|
935
924
|
filterMatchesToLoad: (m) => !loadRouteIds || loadRouteIds.has(m.route.id),
|
|
936
925
|
skipLoaderErrorBubbling: true,
|
|
937
|
-
|
|
926
|
+
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
938
927
|
try {
|
|
939
928
|
let innerResult = await query(handlerRequest);
|
|
940
929
|
return handleQueryResult(innerResult);
|
|
@@ -948,7 +937,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
948
937
|
return handleQueryError(error);
|
|
949
938
|
}
|
|
950
939
|
function handleQueryResult(result) {
|
|
951
|
-
return
|
|
940
|
+
return _chunkRGB6BZULjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
952
941
|
}
|
|
953
942
|
function handleQueryError(error) {
|
|
954
943
|
handleError(error);
|
|
@@ -960,12 +949,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
960
949
|
}
|
|
961
950
|
function staticContextToResponse(context) {
|
|
962
951
|
let headers = getDocumentHeaders(context, build);
|
|
963
|
-
if (
|
|
952
|
+
if (_chunkRGB6BZULjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
964
953
|
return new Response(null, { status: context.statusCode, headers });
|
|
965
954
|
}
|
|
966
955
|
if (context.errors) {
|
|
967
956
|
Object.values(context.errors).forEach((err) => {
|
|
968
|
-
if (!
|
|
957
|
+
if (!_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
969
958
|
handleError(err);
|
|
970
959
|
}
|
|
971
960
|
});
|
|
@@ -1029,15 +1018,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1029
1018
|
headers.delete("Location");
|
|
1030
1019
|
headers.set("Content-Type", "text/x-script");
|
|
1031
1020
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1032
|
-
result: request.method === "GET" ? { [
|
|
1021
|
+
result: request.method === "GET" ? { [_chunkRGB6BZULjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1033
1022
|
headers,
|
|
1034
|
-
status:
|
|
1023
|
+
status: _chunkRGB6BZULjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1035
1024
|
});
|
|
1036
1025
|
}
|
|
1037
1026
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1038
1027
|
let redirect2 = headers.get("Location");
|
|
1039
1028
|
if (basename) {
|
|
1040
|
-
redirect2 =
|
|
1029
|
+
redirect2 = _chunkRGB6BZULjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1041
1030
|
}
|
|
1042
1031
|
return {
|
|
1043
1032
|
redirect: redirect2,
|
|
@@ -1063,7 +1052,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1063
1052
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1064
1053
|
);
|
|
1065
1054
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1066
|
-
return
|
|
1055
|
+
return _chunkRGB6BZULjs.encode.call(void 0, data2, {
|
|
1067
1056
|
signal: controller.signal,
|
|
1068
1057
|
plugins: [
|
|
1069
1058
|
(value) => {
|
|
@@ -1071,12 +1060,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1071
1060
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1072
1061
|
return ["SanitizedError", name, message, stack];
|
|
1073
1062
|
}
|
|
1074
|
-
if (value instanceof
|
|
1063
|
+
if (value instanceof _chunkRGB6BZULjs.ErrorResponseImpl) {
|
|
1075
1064
|
let { data: data3, status, statusText } = value;
|
|
1076
1065
|
return ["ErrorResponse", data3, status, statusText];
|
|
1077
1066
|
}
|
|
1078
|
-
if (value && typeof value === "object" &&
|
|
1079
|
-
return ["SingleFetchRedirect", value[
|
|
1067
|
+
if (value && typeof value === "object" && _chunkRGB6BZULjs.SingleFetchRedirectSymbol in value) {
|
|
1068
|
+
return ["SingleFetchRedirect", value[_chunkRGB6BZULjs.SingleFetchRedirectSymbol]];
|
|
1080
1069
|
}
|
|
1081
1070
|
}
|
|
1082
1071
|
],
|
|
@@ -1099,14 +1088,14 @@ function derive(build, mode) {
|
|
|
1099
1088
|
let routes = createRoutes(build.routes);
|
|
1100
1089
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1101
1090
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1102
|
-
let staticHandler =
|
|
1091
|
+
let staticHandler = _chunkRGB6BZULjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1103
1092
|
basename: build.basename
|
|
1104
1093
|
});
|
|
1105
1094
|
let errorHandler = build.entry.module.handleError || ((error, { request }) => {
|
|
1106
1095
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1107
1096
|
console.error(
|
|
1108
1097
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1109
|
-
|
|
1098
|
+
_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1110
1099
|
);
|
|
1111
1100
|
}
|
|
1112
1101
|
});
|
|
@@ -1151,37 +1140,37 @@ var createRequestHandler = (build, mode) => {
|
|
|
1151
1140
|
request
|
|
1152
1141
|
});
|
|
1153
1142
|
};
|
|
1154
|
-
if (_build.future.
|
|
1155
|
-
if (initialContext && !(initialContext instanceof
|
|
1143
|
+
if (_build.future.v8_middleware) {
|
|
1144
|
+
if (initialContext && !(initialContext instanceof _chunkRGB6BZULjs.RouterContextProvider)) {
|
|
1156
1145
|
let error = new Error(
|
|
1157
|
-
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `
|
|
1146
|
+
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1158
1147
|
);
|
|
1159
1148
|
handleError(error);
|
|
1160
1149
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1161
1150
|
}
|
|
1162
|
-
loadContext = initialContext || new (0,
|
|
1151
|
+
loadContext = initialContext || new (0, _chunkRGB6BZULjs.RouterContextProvider)();
|
|
1163
1152
|
} else {
|
|
1164
1153
|
loadContext = initialContext || {};
|
|
1165
1154
|
}
|
|
1166
1155
|
let url = new URL(request.url);
|
|
1167
1156
|
let normalizedBasename = _build.basename || "/";
|
|
1168
1157
|
let normalizedPath = url.pathname;
|
|
1169
|
-
if (
|
|
1158
|
+
if (_chunkRGB6BZULjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1170
1159
|
normalizedPath = normalizedBasename;
|
|
1171
1160
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1172
1161
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1173
1162
|
}
|
|
1174
|
-
if (
|
|
1163
|
+
if (_chunkRGB6BZULjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1175
1164
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1176
1165
|
}
|
|
1177
1166
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1178
1167
|
if (!_build.ssr) {
|
|
1179
1168
|
let decodedPath = decodeURI(normalizedPath);
|
|
1180
1169
|
if (normalizedBasename !== "/") {
|
|
1181
|
-
let strippedPath =
|
|
1170
|
+
let strippedPath = _chunkRGB6BZULjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1182
1171
|
if (strippedPath == null) {
|
|
1183
1172
|
errorHandler(
|
|
1184
|
-
new (0,
|
|
1173
|
+
new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(
|
|
1185
1174
|
404,
|
|
1186
1175
|
"Not Found",
|
|
1187
1176
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
@@ -1204,7 +1193,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1204
1193
|
} else if (!_build.prerender.includes(decodedPath) && !_build.prerender.includes(decodedPath + "/")) {
|
|
1205
1194
|
if (url.pathname.endsWith(".data")) {
|
|
1206
1195
|
errorHandler(
|
|
1207
|
-
new (0,
|
|
1196
|
+
new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(
|
|
1208
1197
|
404,
|
|
1209
1198
|
"Not Found",
|
|
1210
1199
|
`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.`
|
|
@@ -1224,7 +1213,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1224
1213
|
}
|
|
1225
1214
|
}
|
|
1226
1215
|
}
|
|
1227
|
-
let manifestUrl =
|
|
1216
|
+
let manifestUrl = _chunkRGB6BZULjs.getManifestPath.call(void 0,
|
|
1228
1217
|
_build.routeDiscovery.manifestPath,
|
|
1229
1218
|
normalizedBasename
|
|
1230
1219
|
);
|
|
@@ -1259,7 +1248,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1259
1248
|
loadContext,
|
|
1260
1249
|
handleError
|
|
1261
1250
|
);
|
|
1262
|
-
if (
|
|
1251
|
+
if (_chunkRGB6BZULjs.isRedirectResponse.call(void 0, response)) {
|
|
1263
1252
|
response = generateSingleFetchRedirectResponse(
|
|
1264
1253
|
response,
|
|
1265
1254
|
request,
|
|
@@ -1273,7 +1262,7 @@ var createRequestHandler = (build, mode) => {
|
|
|
1273
1262
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1274
1263
|
request
|
|
1275
1264
|
});
|
|
1276
|
-
if (
|
|
1265
|
+
if (_chunkRGB6BZULjs.isRedirectResponse.call(void 0, response)) {
|
|
1277
1266
|
response = generateSingleFetchRedirectResponse(
|
|
1278
1267
|
response,
|
|
1279
1268
|
request,
|
|
@@ -1387,10 +1376,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1387
1376
|
try {
|
|
1388
1377
|
let result = await staticHandler.query(request, {
|
|
1389
1378
|
requestContext: loadContext,
|
|
1390
|
-
|
|
1379
|
+
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1391
1380
|
try {
|
|
1392
1381
|
let innerResult = await query(request);
|
|
1393
|
-
if (!
|
|
1382
|
+
if (!_chunkRGB6BZULjs.isResponse.call(void 0, innerResult)) {
|
|
1394
1383
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1395
1384
|
}
|
|
1396
1385
|
return innerResult;
|
|
@@ -1400,7 +1389,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1400
1389
|
}
|
|
1401
1390
|
} : void 0
|
|
1402
1391
|
});
|
|
1403
|
-
if (!
|
|
1392
|
+
if (!_chunkRGB6BZULjs.isResponse.call(void 0, result)) {
|
|
1404
1393
|
result = await renderHtml(result, isSpaMode);
|
|
1405
1394
|
}
|
|
1406
1395
|
return result;
|
|
@@ -1415,7 +1404,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1415
1404
|
}
|
|
1416
1405
|
if (context.errors) {
|
|
1417
1406
|
Object.values(context.errors).forEach((err) => {
|
|
1418
|
-
if (!
|
|
1407
|
+
if (!_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1419
1408
|
handleError(err);
|
|
1420
1409
|
}
|
|
1421
1410
|
});
|
|
@@ -1467,10 +1456,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1467
1456
|
} catch (error) {
|
|
1468
1457
|
handleError(error);
|
|
1469
1458
|
let errorForSecondRender = error;
|
|
1470
|
-
if (
|
|
1459
|
+
if (_chunkRGB6BZULjs.isResponse.call(void 0, error)) {
|
|
1471
1460
|
try {
|
|
1472
1461
|
let data2 = await unwrapResponse(error);
|
|
1473
|
-
errorForSecondRender = new (0,
|
|
1462
|
+
errorForSecondRender = new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(
|
|
1474
1463
|
error.status,
|
|
1475
1464
|
error.statusText,
|
|
1476
1465
|
data2
|
|
@@ -1478,7 +1467,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1478
1467
|
} catch (e) {
|
|
1479
1468
|
}
|
|
1480
1469
|
}
|
|
1481
|
-
context =
|
|
1470
|
+
context = _chunkRGB6BZULjs.getStaticContextFromError.call(void 0,
|
|
1482
1471
|
staticHandler.dataRoutes,
|
|
1483
1472
|
context,
|
|
1484
1473
|
errorForSecondRender
|
|
@@ -1523,7 +1512,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1523
1512
|
let result = await staticHandler.queryRoute(request, {
|
|
1524
1513
|
routeId,
|
|
1525
1514
|
requestContext: loadContext,
|
|
1526
|
-
|
|
1515
|
+
generateMiddlewareResponse: build.future.v8_middleware ? async (queryRoute) => {
|
|
1527
1516
|
try {
|
|
1528
1517
|
let innerResult = await queryRoute(request);
|
|
1529
1518
|
return handleQueryRouteResult(innerResult);
|
|
@@ -1537,7 +1526,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1537
1526
|
return handleQueryRouteError(error);
|
|
1538
1527
|
}
|
|
1539
1528
|
function handleQueryRouteResult(result) {
|
|
1540
|
-
if (
|
|
1529
|
+
if (_chunkRGB6BZULjs.isResponse.call(void 0, result)) {
|
|
1541
1530
|
return result;
|
|
1542
1531
|
}
|
|
1543
1532
|
if (typeof result === "string") {
|
|
@@ -1546,11 +1535,11 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1546
1535
|
return Response.json(result);
|
|
1547
1536
|
}
|
|
1548
1537
|
function handleQueryRouteError(error) {
|
|
1549
|
-
if (
|
|
1538
|
+
if (_chunkRGB6BZULjs.isResponse.call(void 0, error)) {
|
|
1550
1539
|
error.headers.set("X-Remix-Catch", "yes");
|
|
1551
1540
|
return error;
|
|
1552
1541
|
}
|
|
1553
|
-
if (
|
|
1542
|
+
if (_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1554
1543
|
handleError(error);
|
|
1555
1544
|
return errorResponseToJson(error, serverMode);
|
|
1556
1545
|
}
|
|
@@ -1676,7 +1665,7 @@ function createSessionStorage({
|
|
|
1676
1665
|
};
|
|
1677
1666
|
}
|
|
1678
1667
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1679
|
-
|
|
1668
|
+
_chunkRGB6BZULjs.warnOnce.call(void 0,
|
|
1680
1669
|
cookie.isSigned,
|
|
1681
1670
|
`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.`
|
|
1682
1671
|
);
|
|
@@ -1743,22 +1732,27 @@ function createMemorySessionStorage({ cookie } = {}) {
|
|
|
1743
1732
|
// lib/href.ts
|
|
1744
1733
|
function href(path, ...args) {
|
|
1745
1734
|
let params = args[0];
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1735
|
+
let result = path.replace(/\/*\*?$/, "").replace(
|
|
1736
|
+
/\/:([\w-]+)(\?)?/g,
|
|
1737
|
+
// same regex as in .\router\utils.ts: compilePath().
|
|
1738
|
+
(_, param, questionMark) => {
|
|
1739
|
+
const isRequired = questionMark === void 0;
|
|
1740
|
+
const value = params ? params[param] : void 0;
|
|
1741
|
+
if (isRequired && value === void 0) {
|
|
1742
|
+
throw new Error(
|
|
1743
|
+
`Path '${path}' requires param '${param}' but it was not provided`
|
|
1744
|
+
);
|
|
1745
|
+
}
|
|
1746
|
+
return value === void 0 ? "" : "/" + value;
|
|
1747
|
+
}
|
|
1748
|
+
);
|
|
1749
|
+
if (path.endsWith("*")) {
|
|
1750
|
+
const value = params ? params["*"] : void 0;
|
|
1751
|
+
if (value !== void 0) {
|
|
1752
|
+
result += "/" + value;
|
|
1759
1753
|
}
|
|
1760
|
-
|
|
1761
|
-
|
|
1754
|
+
}
|
|
1755
|
+
return result || "/";
|
|
1762
1756
|
}
|
|
1763
1757
|
|
|
1764
1758
|
// lib/rsc/browser.tsx
|
|
@@ -1766,17 +1760,24 @@ function href(path, ...args) {
|
|
|
1766
1760
|
var _reactdom = require('react-dom'); var ReactDOM = _interopRequireWildcard(_reactdom);
|
|
1767
1761
|
|
|
1768
1762
|
// lib/dom/ssr/hydration.tsx
|
|
1769
|
-
function getHydrationData(
|
|
1763
|
+
function getHydrationData({
|
|
1764
|
+
state,
|
|
1765
|
+
routes,
|
|
1766
|
+
getRouteInfo,
|
|
1767
|
+
location: location2,
|
|
1768
|
+
basename,
|
|
1769
|
+
isSpaMode
|
|
1770
|
+
}) {
|
|
1770
1771
|
let hydrationData = {
|
|
1771
1772
|
...state,
|
|
1772
1773
|
loaderData: { ...state.loaderData }
|
|
1773
1774
|
};
|
|
1774
|
-
let initialMatches =
|
|
1775
|
+
let initialMatches = _chunkRGB6BZULjs.matchRoutes.call(void 0, routes, location2, basename);
|
|
1775
1776
|
if (initialMatches) {
|
|
1776
1777
|
for (let match of initialMatches) {
|
|
1777
1778
|
let routeId = match.route.id;
|
|
1778
1779
|
let routeInfo = getRouteInfo(routeId);
|
|
1779
|
-
if (
|
|
1780
|
+
if (_chunkRGB6BZULjs.shouldHydrateRouteLoader.call(void 0,
|
|
1780
1781
|
routeId,
|
|
1781
1782
|
routeInfo.clientLoader,
|
|
1782
1783
|
routeInfo.hasLoader,
|
|
@@ -1854,7 +1855,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1854
1855
|
}
|
|
1855
1856
|
}
|
|
1856
1857
|
);
|
|
1857
|
-
if (
|
|
1858
|
+
if (_chunkRGB6BZULjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1858
1859
|
return /* @__PURE__ */ React.default.createElement(
|
|
1859
1860
|
ErrorWrapper,
|
|
1860
1861
|
{
|
|
@@ -1862,7 +1863,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1862
1863
|
title: "Unhandled Thrown Response!"
|
|
1863
1864
|
},
|
|
1864
1865
|
/* @__PURE__ */ React.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
1865
|
-
|
|
1866
|
+
_chunkRGB6BZULjs.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
1866
1867
|
);
|
|
1867
1868
|
}
|
|
1868
1869
|
let errorInstance;
|
|
@@ -1888,7 +1889,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
1888
1889
|
function RSCDefaultRootErrorBoundary({
|
|
1889
1890
|
hasRootLayout
|
|
1890
1891
|
}) {
|
|
1891
|
-
let error =
|
|
1892
|
+
let error = _chunkRGB6BZULjs.useRouteError.call(void 0, );
|
|
1892
1893
|
if (hasRootLayout === void 0) {
|
|
1893
1894
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
1894
1895
|
}
|
|
@@ -2018,7 +2019,7 @@ function createCallServer({
|
|
|
2018
2019
|
function createRouterFromPayload({
|
|
2019
2020
|
fetchImplementation,
|
|
2020
2021
|
createFromReadableStream,
|
|
2021
|
-
|
|
2022
|
+
getContext,
|
|
2022
2023
|
payload
|
|
2023
2024
|
}) {
|
|
2024
2025
|
const globalVar = window;
|
|
@@ -2032,7 +2033,7 @@ function createRouterFromPayload({
|
|
|
2032
2033
|
populateRSCRouteModules(globalVar.__reactRouterRouteModules, payload.matches);
|
|
2033
2034
|
let patches = /* @__PURE__ */ new Map();
|
|
2034
2035
|
_optionalChain([payload, 'access', _20 => _20.patches, 'optionalAccess', _21 => _21.forEach, 'call', _22 => _22((patch) => {
|
|
2035
|
-
|
|
2036
|
+
_chunkRGB6BZULjs.invariant.call(void 0, patch.parentId, "Invalid patch parentId");
|
|
2036
2037
|
if (!patches.has(patch.parentId)) {
|
|
2037
2038
|
patches.set(patch.parentId, []);
|
|
2038
2039
|
}
|
|
@@ -2054,31 +2055,31 @@ function createRouterFromPayload({
|
|
|
2054
2055
|
}
|
|
2055
2056
|
return [route];
|
|
2056
2057
|
}, []);
|
|
2057
|
-
globalVar.__reactRouterDataRouter =
|
|
2058
|
+
globalVar.__reactRouterDataRouter = _chunkRGB6BZULjs.createRouter.call(void 0, {
|
|
2058
2059
|
routes,
|
|
2059
|
-
|
|
2060
|
+
getContext,
|
|
2060
2061
|
basename: payload.basename,
|
|
2061
|
-
history:
|
|
2062
|
-
hydrationData: getHydrationData(
|
|
2063
|
-
{
|
|
2062
|
+
history: _chunkRGB6BZULjs.createBrowserHistory.call(void 0, ),
|
|
2063
|
+
hydrationData: getHydrationData({
|
|
2064
|
+
state: {
|
|
2064
2065
|
loaderData: payload.loaderData,
|
|
2065
2066
|
actionData: payload.actionData,
|
|
2066
2067
|
errors: payload.errors
|
|
2067
2068
|
},
|
|
2068
2069
|
routes,
|
|
2069
|
-
(routeId) => {
|
|
2070
|
+
getRouteInfo: (routeId) => {
|
|
2070
2071
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
2071
|
-
|
|
2072
|
+
_chunkRGB6BZULjs.invariant.call(void 0, match, "Route not found in payload");
|
|
2072
2073
|
return {
|
|
2073
2074
|
clientLoader: match.clientLoader,
|
|
2074
2075
|
hasLoader: match.hasLoader,
|
|
2075
2076
|
hasHydrateFallback: match.hydrateFallbackElement != null
|
|
2076
2077
|
};
|
|
2077
2078
|
},
|
|
2078
|
-
payload.location,
|
|
2079
|
-
|
|
2080
|
-
false
|
|
2081
|
-
),
|
|
2079
|
+
location: payload.location,
|
|
2080
|
+
basename: payload.basename,
|
|
2081
|
+
isSpaMode: false
|
|
2082
|
+
}),
|
|
2082
2083
|
async patchRoutesOnNavigation({ path, signal }) {
|
|
2083
2084
|
if (discoveredPaths.has(path)) {
|
|
2084
2085
|
return;
|
|
@@ -2166,9 +2167,9 @@ function createRouterFromPayload({
|
|
|
2166
2167
|
routeModules: globalVar.__reactRouterRouteModules
|
|
2167
2168
|
};
|
|
2168
2169
|
}
|
|
2169
|
-
var renderedRoutesContext =
|
|
2170
|
+
var renderedRoutesContext = _chunkRGB6BZULjs.createContext.call(void 0, );
|
|
2170
2171
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
2171
|
-
let dataStrategy =
|
|
2172
|
+
let dataStrategy = _chunkRGB6BZULjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
2172
2173
|
getRouter,
|
|
2173
2174
|
(match) => {
|
|
2174
2175
|
let M = match;
|
|
@@ -2193,7 +2194,7 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2193
2194
|
return M.route.hasComponent && !M.route.element;
|
|
2194
2195
|
}
|
|
2195
2196
|
);
|
|
2196
|
-
return async (args) => args.
|
|
2197
|
+
return async (args) => args.runClientMiddleware(async () => {
|
|
2197
2198
|
let context = args.context;
|
|
2198
2199
|
context.set(renderedRoutesContext, []);
|
|
2199
2200
|
let results = await dataStrategy(args);
|
|
@@ -2222,20 +2223,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
2222
2223
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
2223
2224
|
return async (args, basename, targetRoutes) => {
|
|
2224
2225
|
let { request, context } = args;
|
|
2225
|
-
let url =
|
|
2226
|
+
let url = _chunkRGB6BZULjs.singleFetchUrl.call(void 0, request.url, basename, "rsc");
|
|
2226
2227
|
if (request.method === "GET") {
|
|
2227
|
-
url =
|
|
2228
|
+
url = _chunkRGB6BZULjs.stripIndexParam.call(void 0, url);
|
|
2228
2229
|
if (targetRoutes) {
|
|
2229
2230
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
2230
2231
|
}
|
|
2231
2232
|
}
|
|
2232
2233
|
let res = await fetchImplementation(
|
|
2233
|
-
new Request(url, await
|
|
2234
|
+
new Request(url, await _chunkRGB6BZULjs.createRequestInit.call(void 0, request))
|
|
2234
2235
|
);
|
|
2235
2236
|
if (res.status === 404 && !res.headers.has("X-Remix-Response")) {
|
|
2236
|
-
throw new (0,
|
|
2237
|
+
throw new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(404, "Not Found", true);
|
|
2237
2238
|
}
|
|
2238
|
-
|
|
2239
|
+
_chunkRGB6BZULjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
2239
2240
|
try {
|
|
2240
2241
|
const payload = await createFromReadableStream(res.body, {
|
|
2241
2242
|
temporaryReferences: void 0
|
|
@@ -2259,7 +2260,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
2259
2260
|
}
|
|
2260
2261
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
2261
2262
|
let results = { routes: {} };
|
|
2262
|
-
const dataKey =
|
|
2263
|
+
const dataKey = _chunkRGB6BZULjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
2263
2264
|
for (let [routeId, data2] of Object.entries(payload[dataKey] || {})) {
|
|
2264
2265
|
results.routes[routeId] = { data: data2 };
|
|
2265
2266
|
}
|
|
@@ -2279,25 +2280,20 @@ function RSCHydratedRouter({
|
|
|
2279
2280
|
fetch: fetchImplementation = fetch,
|
|
2280
2281
|
payload,
|
|
2281
2282
|
routeDiscovery = "eager",
|
|
2282
|
-
|
|
2283
|
+
getContext
|
|
2283
2284
|
}) {
|
|
2284
2285
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
2285
2286
|
let { router, routeModules } = React4.useMemo(
|
|
2286
2287
|
() => createRouterFromPayload({
|
|
2287
2288
|
payload,
|
|
2288
2289
|
fetchImplementation,
|
|
2289
|
-
|
|
2290
|
+
getContext,
|
|
2290
2291
|
createFromReadableStream
|
|
2291
2292
|
}),
|
|
2292
|
-
[
|
|
2293
|
-
createFromReadableStream,
|
|
2294
|
-
payload,
|
|
2295
|
-
fetchImplementation,
|
|
2296
|
-
unstable_getContext
|
|
2297
|
-
]
|
|
2293
|
+
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
2298
2294
|
);
|
|
2299
2295
|
React4.useEffect(() => {
|
|
2300
|
-
|
|
2296
|
+
_chunkRGB6BZULjs.setIsHydrated.call(void 0, );
|
|
2301
2297
|
}, []);
|
|
2302
2298
|
React4.useLayoutEffect(() => {
|
|
2303
2299
|
const globalVar = window;
|
|
@@ -2366,7 +2362,7 @@ function RSCHydratedRouter({
|
|
|
2366
2362
|
future: {
|
|
2367
2363
|
// These flags have no runtime impact so can always be false. If we add
|
|
2368
2364
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2369
|
-
|
|
2365
|
+
v8_middleware: false,
|
|
2370
2366
|
unstable_subResourceIntegrity: false
|
|
2371
2367
|
},
|
|
2372
2368
|
isSpaMode: false,
|
|
@@ -2384,7 +2380,7 @@ function RSCHydratedRouter({
|
|
|
2384
2380
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2385
2381
|
routeModules
|
|
2386
2382
|
};
|
|
2387
|
-
return /* @__PURE__ */ React4.createElement(
|
|
2383
|
+
return /* @__PURE__ */ React4.createElement(_chunkRGB6BZULjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React4.createElement(RSCRouterGlobalErrorBoundary, { location: location2 }, /* @__PURE__ */ React4.createElement(_chunkRGB6BZULjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React4.createElement(_chunkXYB2GISAjs.RouterProvider, { router, flushSync: ReactDOM.flushSync }))));
|
|
2388
2384
|
}
|
|
2389
2385
|
function createRouteFromServerManifest(match, payload) {
|
|
2390
2386
|
let hasInitialData = payload && match.id in payload.loaderData;
|
|
@@ -2395,7 +2391,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2395
2391
|
// the server loader flow regardless of whether the client loader calls
|
|
2396
2392
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
2397
2393
|
match.hasComponent && !match.element;
|
|
2398
|
-
|
|
2394
|
+
_chunkRGB6BZULjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
2399
2395
|
populateRSCRouteModules(window.__reactRouterRouteModules, match);
|
|
2400
2396
|
let dataRoute = {
|
|
2401
2397
|
id: match.id,
|
|
@@ -2446,7 +2442,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2446
2442
|
return await callSingleFetch(singleFetch);
|
|
2447
2443
|
}
|
|
2448
2444
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
2449
|
-
throw
|
|
2445
|
+
throw _chunkRGB6BZULjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
2450
2446
|
},
|
|
2451
2447
|
path: match.path,
|
|
2452
2448
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -2459,7 +2455,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2459
2455
|
hasShouldRevalidate: match.shouldRevalidate != null
|
|
2460
2456
|
};
|
|
2461
2457
|
if (typeof dataRoute.loader === "function") {
|
|
2462
|
-
dataRoute.loader.hydrate =
|
|
2458
|
+
dataRoute.loader.hydrate = _chunkRGB6BZULjs.shouldHydrateRouteLoader.call(void 0,
|
|
2463
2459
|
match.id,
|
|
2464
2460
|
match.clientLoader,
|
|
2465
2461
|
match.hasLoader,
|
|
@@ -2469,7 +2465,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
2469
2465
|
return dataRoute;
|
|
2470
2466
|
}
|
|
2471
2467
|
function callSingleFetch(singleFetch) {
|
|
2472
|
-
|
|
2468
|
+
_chunkRGB6BZULjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
2473
2469
|
return singleFetch();
|
|
2474
2470
|
}
|
|
2475
2471
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -2477,7 +2473,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
2477
2473
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
2478
2474
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
2479
2475
|
console.error(msg);
|
|
2480
|
-
throw new (0,
|
|
2476
|
+
throw new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
2481
2477
|
}
|
|
2482
2478
|
}
|
|
2483
2479
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -2659,20 +2655,49 @@ async function routeRSCServerRequest({
|
|
|
2659
2655
|
if (!serverResponse.body) {
|
|
2660
2656
|
throw new Error("Missing body in server response");
|
|
2661
2657
|
}
|
|
2658
|
+
const detectRedirectResponse = serverResponse.clone();
|
|
2662
2659
|
let serverResponseB = null;
|
|
2663
2660
|
if (hydrate) {
|
|
2664
2661
|
serverResponseB = serverResponse.clone();
|
|
2665
2662
|
}
|
|
2666
2663
|
const body = serverResponse.body;
|
|
2667
|
-
let
|
|
2664
|
+
let buffer;
|
|
2665
|
+
let streamControllers = [];
|
|
2666
|
+
const createStream = () => {
|
|
2667
|
+
if (!buffer) {
|
|
2668
|
+
buffer = [];
|
|
2669
|
+
return body.pipeThrough(
|
|
2670
|
+
new TransformStream({
|
|
2671
|
+
transform(chunk, controller) {
|
|
2672
|
+
buffer.push(chunk);
|
|
2673
|
+
controller.enqueue(chunk);
|
|
2674
|
+
streamControllers.forEach((c) => c.enqueue(chunk));
|
|
2675
|
+
},
|
|
2676
|
+
flush() {
|
|
2677
|
+
streamControllers.forEach((c) => c.close());
|
|
2678
|
+
streamControllers = [];
|
|
2679
|
+
}
|
|
2680
|
+
})
|
|
2681
|
+
);
|
|
2682
|
+
}
|
|
2683
|
+
return new ReadableStream({
|
|
2684
|
+
start(controller) {
|
|
2685
|
+
buffer.forEach((chunk) => controller.enqueue(chunk));
|
|
2686
|
+
streamControllers.push(controller);
|
|
2687
|
+
}
|
|
2688
|
+
});
|
|
2689
|
+
};
|
|
2668
2690
|
const getPayload = async () => {
|
|
2669
|
-
|
|
2670
|
-
payloadPromise = createFromReadableStream(body);
|
|
2671
|
-
return payloadPromise;
|
|
2691
|
+
return createFromReadableStream(createStream());
|
|
2672
2692
|
};
|
|
2673
2693
|
try {
|
|
2674
|
-
|
|
2675
|
-
|
|
2694
|
+
if (!detectRedirectResponse.body) {
|
|
2695
|
+
throw new Error("Failed to clone server response");
|
|
2696
|
+
}
|
|
2697
|
+
const payload = await createFromReadableStream(
|
|
2698
|
+
detectRedirectResponse.body
|
|
2699
|
+
);
|
|
2700
|
+
if (serverResponse.status === _chunkRGB6BZULjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
2676
2701
|
const headers2 = new Headers(serverResponse.headers);
|
|
2677
2702
|
headers2.delete("Content-Encoding");
|
|
2678
2703
|
headers2.delete("Content-Length");
|
|
@@ -2722,7 +2747,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2722
2747
|
if (payload.type !== "render") return null;
|
|
2723
2748
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2724
2749
|
for (const match of payload.matches) {
|
|
2725
|
-
if (
|
|
2750
|
+
if (_chunkRGB6BZULjs.shouldHydrateRouteLoader.call(void 0,
|
|
2726
2751
|
match.id,
|
|
2727
2752
|
match.clientLoader,
|
|
2728
2753
|
match.hasLoader,
|
|
@@ -2756,7 +2781,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2756
2781
|
}
|
|
2757
2782
|
}))
|
|
2758
2783
|
};
|
|
2759
|
-
const router =
|
|
2784
|
+
const router = _chunkXYB2GISAjs.createStaticRouter.call(void 0,
|
|
2760
2785
|
payload.matches.reduceRight((previous, match) => {
|
|
2761
2786
|
const route = {
|
|
2762
2787
|
id: match.id,
|
|
@@ -2782,7 +2807,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2782
2807
|
future: {
|
|
2783
2808
|
// These flags have no runtime impact so can always be false. If we add
|
|
2784
2809
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2785
|
-
|
|
2810
|
+
v8_middleware: false,
|
|
2786
2811
|
unstable_subResourceIntegrity: false
|
|
2787
2812
|
},
|
|
2788
2813
|
isSpaMode: false,
|
|
@@ -2800,8 +2825,8 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2800
2825
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2801
2826
|
routeModules: createRSCRouteModules(payload)
|
|
2802
2827
|
};
|
|
2803
|
-
return /* @__PURE__ */ React5.createElement(
|
|
2804
|
-
|
|
2828
|
+
return /* @__PURE__ */ React5.createElement(_chunkRGB6BZULjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React5.createElement(RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React5.createElement(_chunkRGB6BZULjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React5.createElement(
|
|
2829
|
+
_chunkXYB2GISAjs.StaticRouterProvider,
|
|
2805
2830
|
{
|
|
2806
2831
|
context,
|
|
2807
2832
|
router,
|
|
@@ -2859,7 +2884,7 @@ function deserializeErrors(errors) {
|
|
|
2859
2884
|
let serialized = {};
|
|
2860
2885
|
for (let [key, val] of entries) {
|
|
2861
2886
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2862
|
-
serialized[key] = new (0,
|
|
2887
|
+
serialized[key] = new (0, _chunkRGB6BZULjs.ErrorResponseImpl)(
|
|
2863
2888
|
val.status,
|
|
2864
2889
|
val.statusText,
|
|
2865
2890
|
val.data,
|
|
@@ -3017,4 +3042,5 @@ function deserializeErrors(errors) {
|
|
|
3017
3042
|
|
|
3018
3043
|
|
|
3019
3044
|
|
|
3020
|
-
|
|
3045
|
+
|
|
3046
|
+
exports.Await = _chunkXYB2GISAjs.Await; exports.BrowserRouter = _chunkXYB2GISAjs.BrowserRouter; exports.Form = _chunkXYB2GISAjs.Form; exports.HashRouter = _chunkXYB2GISAjs.HashRouter; exports.IDLE_BLOCKER = _chunkRGB6BZULjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkRGB6BZULjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkRGB6BZULjs.IDLE_NAVIGATION; exports.Link = _chunkXYB2GISAjs.Link; exports.Links = _chunkRGB6BZULjs.Links; exports.MemoryRouter = _chunkXYB2GISAjs.MemoryRouter; exports.Meta = _chunkRGB6BZULjs.Meta; exports.NavLink = _chunkXYB2GISAjs.NavLink; exports.Navigate = _chunkXYB2GISAjs.Navigate; exports.NavigationType = _chunkRGB6BZULjs.Action; exports.Outlet = _chunkXYB2GISAjs.Outlet; exports.PrefetchPageLinks = _chunkRGB6BZULjs.PrefetchPageLinks; exports.Route = _chunkXYB2GISAjs.Route; exports.Router = _chunkXYB2GISAjs.Router; exports.RouterContextProvider = _chunkRGB6BZULjs.RouterContextProvider; exports.RouterProvider = _chunkXYB2GISAjs.RouterProvider; exports.Routes = _chunkXYB2GISAjs.Routes; exports.Scripts = _chunkRGB6BZULjs.Scripts; exports.ScrollRestoration = _chunkXYB2GISAjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkXYB2GISAjs.StaticRouter; exports.StaticRouterProvider = _chunkXYB2GISAjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkRGB6BZULjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkRGB6BZULjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkRGB6BZULjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkRGB6BZULjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkRGB6BZULjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkRGB6BZULjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkRGB6BZULjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkRGB6BZULjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkRGB6BZULjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkRGB6BZULjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkRGB6BZULjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkRGB6BZULjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkXYB2GISAjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkXYB2GISAjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkXYB2GISAjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkRGB6BZULjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkRGB6BZULjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkRGB6BZULjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkRGB6BZULjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkRGB6BZULjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkRGB6BZULjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkRGB6BZULjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkXYB2GISAjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkRGB6BZULjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkXYB2GISAjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkRGB6BZULjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkRGB6BZULjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkXYB2GISAjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkXYB2GISAjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkXYB2GISAjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkXYB2GISAjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkXYB2GISAjs.createBrowserRouter; exports.createContext = _chunkRGB6BZULjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkXYB2GISAjs.createHashRouter; exports.createMemoryRouter = _chunkXYB2GISAjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkRGB6BZULjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkXYB2GISAjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkXYB2GISAjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkXYB2GISAjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkXYB2GISAjs.createStaticHandler; exports.createStaticRouter = _chunkXYB2GISAjs.createStaticRouter; exports.data = _chunkRGB6BZULjs.data; exports.generatePath = _chunkRGB6BZULjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkRGB6BZULjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkRGB6BZULjs.matchPath; exports.matchRoutes = _chunkRGB6BZULjs.matchRoutes; exports.parsePath = _chunkRGB6BZULjs.parsePath; exports.redirect = _chunkRGB6BZULjs.redirect; exports.redirectDocument = _chunkRGB6BZULjs.redirectDocument; exports.renderMatches = _chunkXYB2GISAjs.renderMatches; exports.replace = _chunkRGB6BZULjs.replace; exports.resolvePath = _chunkRGB6BZULjs.resolvePath; exports.unstable_HistoryRouter = _chunkXYB2GISAjs.HistoryRouter; exports.unstable_RSCHydratedRouter = RSCHydratedRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_createCallServer = createCallServer; exports.unstable_getRSCStream = getRSCStream; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkXYB2GISAjs.usePrompt; exports.useActionData = _chunkRGB6BZULjs.useActionData; exports.useAsyncError = _chunkRGB6BZULjs.useAsyncError; exports.useAsyncValue = _chunkRGB6BZULjs.useAsyncValue; exports.useBeforeUnload = _chunkXYB2GISAjs.useBeforeUnload; exports.useBlocker = _chunkRGB6BZULjs.useBlocker; exports.useFetcher = _chunkXYB2GISAjs.useFetcher; exports.useFetchers = _chunkXYB2GISAjs.useFetchers; exports.useFormAction = _chunkXYB2GISAjs.useFormAction; exports.useHref = _chunkRGB6BZULjs.useHref; exports.useInRouterContext = _chunkRGB6BZULjs.useInRouterContext; exports.useLinkClickHandler = _chunkXYB2GISAjs.useLinkClickHandler; exports.useLoaderData = _chunkRGB6BZULjs.useLoaderData; exports.useLocation = _chunkRGB6BZULjs.useLocation; exports.useMatch = _chunkRGB6BZULjs.useMatch; exports.useMatches = _chunkRGB6BZULjs.useMatches; exports.useNavigate = _chunkRGB6BZULjs.useNavigate; exports.useNavigation = _chunkRGB6BZULjs.useNavigation; exports.useNavigationType = _chunkRGB6BZULjs.useNavigationType; exports.useOutlet = _chunkRGB6BZULjs.useOutlet; exports.useOutletContext = _chunkRGB6BZULjs.useOutletContext; exports.useParams = _chunkRGB6BZULjs.useParams; exports.useResolvedPath = _chunkRGB6BZULjs.useResolvedPath; exports.useRevalidator = _chunkRGB6BZULjs.useRevalidator; exports.useRouteError = _chunkRGB6BZULjs.useRouteError; exports.useRouteLoaderData = _chunkRGB6BZULjs.useRouteLoaderData; exports.useRoutes = _chunkRGB6BZULjs.useRoutes; exports.useSearchParams = _chunkXYB2GISAjs.useSearchParams; exports.useSubmit = _chunkXYB2GISAjs.useSubmit; exports.useViewTransitionState = _chunkXYB2GISAjs.useViewTransitionState;
|