react-router 7.9.5 → 7.9.6-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 +37 -10
- package/dist/development/{browser-DM83uryY.d.ts → browser-BbBXFHbO.d.ts} +1 -1
- package/dist/development/{browser-DfMfSvsC.d.mts → browser-C07r42Tt.d.mts} +1 -1
- package/dist/development/{chunk-VNR6V74N.js → chunk-CYHICRRW.js} +124 -52
- package/dist/development/{chunk-UIGDSWPH.mjs → chunk-DKSAHU2I.mjs} +95 -23
- package/dist/{production/chunk-ERPFE3MR.js → development/chunk-HSVNPM3C.js} +93 -93
- package/dist/{production/chunk-CWEARR4H.js → development/chunk-OLIKX45O.js} +7 -7
- package/dist/development/{chunk-JG3XND5A.mjs → chunk-RGKEVI2W.mjs} +2 -2
- package/dist/development/dom-export.d.mts +2 -2
- package/dist/development/dom-export.d.ts +2 -2
- package/dist/development/dom-export.js +26 -26
- package/dist/development/dom-export.mjs +3 -3
- package/dist/{production/index-react-server-client-BSxMvS7Z.d.ts → development/index-react-server-client-Da3kmxNd.d.ts} +1 -1
- package/dist/development/{index-react-server-client-B0vnxMMk.d.mts → index-react-server-client-rcoGPJhU.d.mts} +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.js +25 -4
- package/dist/development/index-react-server.mjs +25 -4
- package/dist/development/index.d.mts +8 -8
- package/dist/development/index.d.ts +8 -8
- package/dist/development/index.js +76 -76
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-iAqbU5Q4.d.ts → development/instrumentation-Unc20tLk.d.ts} +5 -1
- package/dist/development/lib/types/internal.d.mts +2 -2
- package/dist/development/lib/types/internal.d.ts +2 -2
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/development/{register-c-dooqKE.d.ts → register-BpU9rFBJ.d.ts} +1 -1
- package/dist/development/{register-_G476ptB.d.mts → register-QkB3HGjm.d.mts} +1 -1
- package/dist/development/{router-DIAPGK5f.d.mts → router-CAvh_Drx.d.mts} +5 -1
- package/dist/production/{browser-DM83uryY.d.ts → browser-BbBXFHbO.d.ts} +1 -1
- package/dist/production/{browser-DfMfSvsC.d.mts → browser-C07r42Tt.d.mts} +1 -1
- package/dist/production/{chunk-EAE7427A.js → chunk-2DNJUQK6.js} +124 -52
- package/dist/{development/chunk-IXESJAGJ.js → production/chunk-EDK3MRM6.js} +93 -93
- package/dist/{development/chunk-FQEOJFGW.js → production/chunk-JLDESRHY.js} +7 -7
- package/dist/production/{chunk-TPBVZP6U.mjs → chunk-LC2OWLJG.mjs} +2 -2
- package/dist/production/{chunk-RZ6LZWMW.mjs → chunk-LESYMMDQ.mjs} +95 -23
- package/dist/production/dom-export.d.mts +2 -2
- package/dist/production/dom-export.d.ts +2 -2
- package/dist/production/dom-export.js +26 -26
- package/dist/production/dom-export.mjs +3 -3
- package/dist/{development/index-react-server-client-BSxMvS7Z.d.ts → production/index-react-server-client-Da3kmxNd.d.ts} +1 -1
- package/dist/production/{index-react-server-client-B0vnxMMk.d.mts → index-react-server-client-rcoGPJhU.d.mts} +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.js +25 -4
- package/dist/production/index-react-server.mjs +25 -4
- package/dist/production/index.d.mts +8 -8
- package/dist/production/index.d.ts +8 -8
- package/dist/production/index.js +76 -76
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-iAqbU5Q4.d.ts → production/instrumentation-Unc20tLk.d.ts} +5 -1
- package/dist/production/lib/types/internal.d.mts +2 -2
- package/dist/production/lib/types/internal.d.ts +2 -2
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/dist/production/{register-c-dooqKE.d.ts → register-BpU9rFBJ.d.ts} +1 -1
- package/dist/production/{register-_G476ptB.d.mts → register-QkB3HGjm.d.mts} +1 -1
- package/dist/production/{router-DIAPGK5f.d.mts → router-CAvh_Drx.d.mts} +5 -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.9.
|
|
2
|
+
* react-router v7.9.6-pre.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkOLIKX45Ojs = require('./chunk-OLIKX45O.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -40,7 +40,7 @@ var _chunkFQEOJFGWjs = require('./chunk-FQEOJFGW.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkHSVNPM3Cjs = require('./chunk-HSVNPM3C.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -145,7 +145,7 @@ var _chunkIXESJAGJjs = require('./chunk-IXESJAGJ.js');
|
|
|
145
145
|
|
|
146
146
|
|
|
147
147
|
|
|
148
|
-
var
|
|
148
|
+
var _chunkCYHICRRWjs = require('./chunk-CYHICRRW.js');
|
|
149
149
|
|
|
150
150
|
// lib/dom/ssr/server.tsx
|
|
151
151
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -158,7 +158,7 @@ function ServerRouter({
|
|
|
158
158
|
url = new URL(url);
|
|
159
159
|
}
|
|
160
160
|
let { manifest, routeModules, criticalCss, serverHandoffString } = context;
|
|
161
|
-
let routes =
|
|
161
|
+
let routes = _chunkCYHICRRWjs.createServerRoutes.call(void 0,
|
|
162
162
|
manifest.routes,
|
|
163
163
|
routeModules,
|
|
164
164
|
context.future,
|
|
@@ -171,7 +171,7 @@ function ServerRouter({
|
|
|
171
171
|
let routeId = match.route.id;
|
|
172
172
|
let route = routeModules[routeId];
|
|
173
173
|
let manifestRoute = context.manifest.routes[routeId];
|
|
174
|
-
if (route && manifestRoute &&
|
|
174
|
+
if (route && manifestRoute && _chunkCYHICRRWjs.shouldHydrateRouteLoader.call(void 0,
|
|
175
175
|
routeId,
|
|
176
176
|
route.clientLoader,
|
|
177
177
|
manifestRoute.hasLoader,
|
|
@@ -180,9 +180,9 @@ function ServerRouter({
|
|
|
180
180
|
delete context.staticHandlerContext.loaderData[routeId];
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
let router =
|
|
183
|
+
let router = _chunkHSVNPM3Cjs.createStaticRouter.call(void 0, routes, context.staticHandlerContext);
|
|
184
184
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
185
|
-
|
|
185
|
+
_chunkCYHICRRWjs.FrameworkContext.Provider,
|
|
186
186
|
{
|
|
187
187
|
value: {
|
|
188
188
|
manifest,
|
|
@@ -197,8 +197,8 @@ function ServerRouter({
|
|
|
197
197
|
renderMeta: context.renderMeta
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
|
-
/* @__PURE__ */ React.createElement(
|
|
201
|
-
|
|
200
|
+
/* @__PURE__ */ React.createElement(_chunkCYHICRRWjs.RemixErrorBoundary, { location: router.state.location }, /* @__PURE__ */ React.createElement(
|
|
201
|
+
_chunkHSVNPM3Cjs.StaticRouterProvider,
|
|
202
202
|
{
|
|
203
203
|
router,
|
|
204
204
|
context: context.staticHandlerContext,
|
|
@@ -206,7 +206,7 @@ function ServerRouter({
|
|
|
206
206
|
}
|
|
207
207
|
))
|
|
208
208
|
), context.serverHandoffStream ? /* @__PURE__ */ React.createElement(React.Suspense, null, /* @__PURE__ */ React.createElement(
|
|
209
|
-
|
|
209
|
+
_chunkCYHICRRWjs.StreamTransfer,
|
|
210
210
|
{
|
|
211
211
|
context,
|
|
212
212
|
identifier: 0,
|
|
@@ -248,18 +248,18 @@ function createRoutesStub(routes, _context) {
|
|
|
248
248
|
let patched = processRoutes(
|
|
249
249
|
// @ts-expect-error `StubRouteObject` is stricter about `loader`/`action`
|
|
250
250
|
// types compared to `AgnosticRouteObject`
|
|
251
|
-
|
|
252
|
-
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0,
|
|
251
|
+
_chunkCYHICRRWjs.convertRoutesToDataRoutes.call(void 0, routes, (r) => r),
|
|
252
|
+
_context !== void 0 ? _context : _optionalChain([future, 'optionalAccess', _4 => _4.v8_middleware]) ? new (0, _chunkCYHICRRWjs.RouterContextProvider)() : {},
|
|
253
253
|
frameworkContextRef.current.manifest,
|
|
254
254
|
frameworkContextRef.current.routeModules
|
|
255
255
|
);
|
|
256
|
-
routerRef.current =
|
|
256
|
+
routerRef.current = _chunkCYHICRRWjs.createMemoryRouter.call(void 0, patched, {
|
|
257
257
|
initialEntries,
|
|
258
258
|
initialIndex,
|
|
259
259
|
hydrationData
|
|
260
260
|
});
|
|
261
261
|
}
|
|
262
|
-
return /* @__PURE__ */ React2.createElement(
|
|
262
|
+
return /* @__PURE__ */ React2.createElement(_chunkCYHICRRWjs.FrameworkContext.Provider, { value: frameworkContextRef.current }, /* @__PURE__ */ React2.createElement(_chunkCYHICRRWjs.RouterProvider, { router: routerRef.current }));
|
|
263
263
|
};
|
|
264
264
|
}
|
|
265
265
|
function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
@@ -273,9 +273,9 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
273
273
|
id: route.id,
|
|
274
274
|
path: route.path,
|
|
275
275
|
index: route.index,
|
|
276
|
-
Component: route.Component ?
|
|
277
|
-
HydrateFallback: route.HydrateFallback ?
|
|
278
|
-
ErrorBoundary: route.ErrorBoundary ?
|
|
276
|
+
Component: route.Component ? _chunkCYHICRRWjs.withComponentProps.call(void 0, route.Component) : void 0,
|
|
277
|
+
HydrateFallback: route.HydrateFallback ? _chunkCYHICRRWjs.withHydrateFallbackProps.call(void 0, route.HydrateFallback) : void 0,
|
|
278
|
+
ErrorBoundary: route.ErrorBoundary ? _chunkCYHICRRWjs.withErrorBoundaryProps.call(void 0, route.ErrorBoundary) : void 0,
|
|
279
279
|
action: route.action ? (args) => route.action({ ...args, context }) : void 0,
|
|
280
280
|
loader: route.loader ? (args) => route.loader({ ...args, context }) : void 0,
|
|
281
281
|
middleware: route.middleware ? route.middleware.map(
|
|
@@ -310,7 +310,7 @@ function processRoutes(routes, context, manifest, routeModules, parentId) {
|
|
|
310
310
|
};
|
|
311
311
|
manifest.routes[newRoute.id] = entryRoute;
|
|
312
312
|
routeModules[route.id] = {
|
|
313
|
-
default: newRoute.Component ||
|
|
313
|
+
default: newRoute.Component || _chunkCYHICRRWjs.Outlet,
|
|
314
314
|
ErrorBoundary: newRoute.ErrorBoundary || void 0,
|
|
315
315
|
handle: route.handle,
|
|
316
316
|
links: route.links,
|
|
@@ -505,7 +505,7 @@ function myUnescape(value) {
|
|
|
505
505
|
return result;
|
|
506
506
|
}
|
|
507
507
|
function warnOnceAboutExpiresCookie(name, expires) {
|
|
508
|
-
|
|
508
|
+
_chunkCYHICRRWjs.warnOnce.call(void 0,
|
|
509
509
|
!expires,
|
|
510
510
|
`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.`
|
|
511
511
|
);
|
|
@@ -559,7 +559,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
559
559
|
let entries = Object.entries(errors);
|
|
560
560
|
let serialized = {};
|
|
561
561
|
for (let [key, val] of entries) {
|
|
562
|
-
if (
|
|
562
|
+
if (_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, val)) {
|
|
563
563
|
serialized[key] = { ...val, __type: "RouteErrorResponse" };
|
|
564
564
|
} else if (val instanceof Error) {
|
|
565
565
|
let sanitized = sanitizeError(val, serverMode);
|
|
@@ -584,7 +584,7 @@ function serializeErrors(errors, serverMode) {
|
|
|
584
584
|
|
|
585
585
|
// lib/server-runtime/routeMatching.ts
|
|
586
586
|
function matchServerRoutes(routes, pathname, basename) {
|
|
587
|
-
let matches =
|
|
587
|
+
let matches = _chunkCYHICRRWjs.matchRoutes.call(void 0,
|
|
588
588
|
routes,
|
|
589
589
|
pathname,
|
|
590
590
|
basename
|
|
@@ -605,7 +605,7 @@ async function callRouteHandler(handler, args) {
|
|
|
605
605
|
context: args.context,
|
|
606
606
|
unstable_pattern: args.unstable_pattern
|
|
607
607
|
});
|
|
608
|
-
if (
|
|
608
|
+
if (_chunkCYHICRRWjs.isDataWithResponseInit.call(void 0, result) && result.init && result.init.status && _chunkCYHICRRWjs.isRedirectStatusCode.call(void 0, result.init.status)) {
|
|
609
609
|
throw new Response(null, result.init);
|
|
610
610
|
}
|
|
611
611
|
return result;
|
|
@@ -724,17 +724,17 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
724
724
|
controller.close();
|
|
725
725
|
}
|
|
726
726
|
});
|
|
727
|
-
let decoded = await
|
|
727
|
+
let decoded = await _chunkCYHICRRWjs.decodeViaTurboStream.call(void 0, stream, global);
|
|
728
728
|
let data2 = decoded.value;
|
|
729
|
-
if (data2 &&
|
|
730
|
-
let result = data2[
|
|
729
|
+
if (data2 && _chunkCYHICRRWjs.SingleFetchRedirectSymbol in data2) {
|
|
730
|
+
let result = data2[_chunkCYHICRRWjs.SingleFetchRedirectSymbol];
|
|
731
731
|
let init = { status: result.status };
|
|
732
732
|
if (result.reload) {
|
|
733
|
-
throw
|
|
733
|
+
throw _chunkCYHICRRWjs.redirectDocument.call(void 0, result.redirect, init);
|
|
734
734
|
} else if (result.replace) {
|
|
735
|
-
throw
|
|
735
|
+
throw _chunkCYHICRRWjs.replace.call(void 0, result.redirect, init);
|
|
736
736
|
} else {
|
|
737
|
-
throw
|
|
737
|
+
throw _chunkCYHICRRWjs.redirect.call(void 0, result.redirect, init);
|
|
738
738
|
}
|
|
739
739
|
} else {
|
|
740
740
|
invariant2(
|
|
@@ -773,7 +773,7 @@ function createStaticHandlerDataRoutes(manifest, future, parentId = "", routesBy
|
|
|
773
773
|
|
|
774
774
|
// lib/server-runtime/serverHandoff.ts
|
|
775
775
|
function createServerHandoffString(serverHandoff) {
|
|
776
|
-
return
|
|
776
|
+
return _chunkCYHICRRWjs.escapeHtml.call(void 0, JSON.stringify(serverHandoff));
|
|
777
777
|
}
|
|
778
778
|
|
|
779
779
|
// lib/server-runtime/headers.ts
|
|
@@ -850,7 +850,7 @@ function prependCookies(parentHeaders, childHeaders) {
|
|
|
850
850
|
|
|
851
851
|
// lib/server-runtime/single-fetch.ts
|
|
852
852
|
var SERVER_NO_BODY_STATUS_CODES = /* @__PURE__ */ new Set([
|
|
853
|
-
...
|
|
853
|
+
..._chunkCYHICRRWjs.NO_BODY_STATUS_CODES,
|
|
854
854
|
304
|
|
855
855
|
]);
|
|
856
856
|
async function singleFetchAction(build, serverMode, staticHandler, request, handlerUrl, loadContext, handleError) {
|
|
@@ -880,7 +880,7 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
880
880
|
return handleQueryError(error);
|
|
881
881
|
}
|
|
882
882
|
function handleQueryResult(result) {
|
|
883
|
-
return
|
|
883
|
+
return _chunkCYHICRRWjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
884
884
|
}
|
|
885
885
|
function handleQueryError(error) {
|
|
886
886
|
handleError(error);
|
|
@@ -892,12 +892,12 @@ async function singleFetchAction(build, serverMode, staticHandler, request, hand
|
|
|
892
892
|
}
|
|
893
893
|
function staticContextToResponse(context) {
|
|
894
894
|
let headers = getDocumentHeaders(context, build);
|
|
895
|
-
if (
|
|
895
|
+
if (_chunkCYHICRRWjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
896
896
|
return new Response(null, { status: context.statusCode, headers });
|
|
897
897
|
}
|
|
898
898
|
if (context.errors) {
|
|
899
899
|
Object.values(context.errors).forEach((err) => {
|
|
900
|
-
if (!
|
|
900
|
+
if (!_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
901
901
|
handleError(err);
|
|
902
902
|
}
|
|
903
903
|
});
|
|
@@ -944,7 +944,7 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
944
944
|
return handleQueryError(error);
|
|
945
945
|
}
|
|
946
946
|
function handleQueryResult(result) {
|
|
947
|
-
return
|
|
947
|
+
return _chunkCYHICRRWjs.isResponse.call(void 0, result) ? result : staticContextToResponse(result);
|
|
948
948
|
}
|
|
949
949
|
function handleQueryError(error) {
|
|
950
950
|
handleError(error);
|
|
@@ -956,12 +956,12 @@ async function singleFetchLoaders(build, serverMode, staticHandler, request, han
|
|
|
956
956
|
}
|
|
957
957
|
function staticContextToResponse(context) {
|
|
958
958
|
let headers = getDocumentHeaders(context, build);
|
|
959
|
-
if (
|
|
959
|
+
if (_chunkCYHICRRWjs.isRedirectStatusCode.call(void 0, context.statusCode) && headers.has("Location")) {
|
|
960
960
|
return new Response(null, { status: context.statusCode, headers });
|
|
961
961
|
}
|
|
962
962
|
if (context.errors) {
|
|
963
963
|
Object.values(context.errors).forEach((err) => {
|
|
964
|
-
if (!
|
|
964
|
+
if (!_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
965
965
|
handleError(err);
|
|
966
966
|
}
|
|
967
967
|
});
|
|
@@ -1025,15 +1025,15 @@ function generateSingleFetchRedirectResponse(redirectResponse, request, build, s
|
|
|
1025
1025
|
headers.delete("Location");
|
|
1026
1026
|
headers.set("Content-Type", "text/x-script");
|
|
1027
1027
|
return generateSingleFetchResponse(request, build, serverMode, {
|
|
1028
|
-
result: request.method === "GET" ? { [
|
|
1028
|
+
result: request.method === "GET" ? { [_chunkCYHICRRWjs.SingleFetchRedirectSymbol]: redirect2 } : redirect2,
|
|
1029
1029
|
headers,
|
|
1030
|
-
status:
|
|
1030
|
+
status: _chunkCYHICRRWjs.SINGLE_FETCH_REDIRECT_STATUS
|
|
1031
1031
|
});
|
|
1032
1032
|
}
|
|
1033
1033
|
function getSingleFetchRedirect(status, headers, basename) {
|
|
1034
1034
|
let redirect2 = headers.get("Location");
|
|
1035
1035
|
if (basename) {
|
|
1036
|
-
redirect2 =
|
|
1036
|
+
redirect2 = _chunkCYHICRRWjs.stripBasename.call(void 0, redirect2, basename) || redirect2;
|
|
1037
1037
|
}
|
|
1038
1038
|
return {
|
|
1039
1039
|
redirect: redirect2,
|
|
@@ -1059,7 +1059,7 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1059
1059
|
typeof streamTimeout === "number" ? streamTimeout : 4950
|
|
1060
1060
|
);
|
|
1061
1061
|
requestSignal.addEventListener("abort", () => clearTimeout(timeoutId));
|
|
1062
|
-
return
|
|
1062
|
+
return _chunkCYHICRRWjs.encode.call(void 0, data2, {
|
|
1063
1063
|
signal: controller.signal,
|
|
1064
1064
|
plugins: [
|
|
1065
1065
|
(value) => {
|
|
@@ -1067,12 +1067,12 @@ function encodeViaTurboStream(data2, requestSignal, streamTimeout, serverMode) {
|
|
|
1067
1067
|
let { name, message, stack } = serverMode === "production" /* Production */ ? sanitizeError(value, serverMode) : value;
|
|
1068
1068
|
return ["SanitizedError", name, message, stack];
|
|
1069
1069
|
}
|
|
1070
|
-
if (value instanceof
|
|
1070
|
+
if (value instanceof _chunkCYHICRRWjs.ErrorResponseImpl) {
|
|
1071
1071
|
let { data: data3, status, statusText } = value;
|
|
1072
1072
|
return ["ErrorResponse", data3, status, statusText];
|
|
1073
1073
|
}
|
|
1074
|
-
if (value && typeof value === "object" &&
|
|
1075
|
-
return ["SingleFetchRedirect", value[
|
|
1074
|
+
if (value && typeof value === "object" && _chunkCYHICRRWjs.SingleFetchRedirectSymbol in value) {
|
|
1075
|
+
return ["SingleFetchRedirect", value[_chunkCYHICRRWjs.SingleFetchRedirectSymbol]];
|
|
1076
1076
|
}
|
|
1077
1077
|
}
|
|
1078
1078
|
],
|
|
@@ -1095,7 +1095,7 @@ function derive(build, mode) {
|
|
|
1095
1095
|
let routes = createRoutes(build.routes);
|
|
1096
1096
|
let dataRoutes = createStaticHandlerDataRoutes(build.routes, build.future);
|
|
1097
1097
|
let serverMode = isServerMode(mode) ? mode : "production" /* Production */;
|
|
1098
|
-
let staticHandler =
|
|
1098
|
+
let staticHandler = _chunkCYHICRRWjs.createStaticHandler.call(void 0, dataRoutes, {
|
|
1099
1099
|
basename: build.basename,
|
|
1100
1100
|
unstable_instrumentations: build.entry.module.unstable_instrumentations
|
|
1101
1101
|
});
|
|
@@ -1103,7 +1103,7 @@ function derive(build, mode) {
|
|
|
1103
1103
|
if (serverMode !== "test" /* Test */ && !request.signal.aborted) {
|
|
1104
1104
|
console.error(
|
|
1105
1105
|
// @ts-expect-error This is "private" from users but intended for internal use
|
|
1106
|
-
|
|
1106
|
+
_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, error) && error.error ? error.error : error
|
|
1107
1107
|
);
|
|
1108
1108
|
}
|
|
1109
1109
|
});
|
|
@@ -1121,36 +1121,36 @@ function derive(build, mode) {
|
|
|
1121
1121
|
});
|
|
1122
1122
|
};
|
|
1123
1123
|
if (build.future.v8_middleware) {
|
|
1124
|
-
if (initialContext && !(initialContext instanceof
|
|
1124
|
+
if (initialContext && !(initialContext instanceof _chunkCYHICRRWjs.RouterContextProvider)) {
|
|
1125
1125
|
let error = new Error(
|
|
1126
1126
|
"Invalid `context` value provided to `handleRequest`. When middleware is enabled you must return an instance of `RouterContextProvider` from your `getLoadContext` function."
|
|
1127
1127
|
);
|
|
1128
1128
|
handleError(error);
|
|
1129
1129
|
return returnLastResortErrorResponse(error, serverMode);
|
|
1130
1130
|
}
|
|
1131
|
-
loadContext = initialContext || new (0,
|
|
1131
|
+
loadContext = initialContext || new (0, _chunkCYHICRRWjs.RouterContextProvider)();
|
|
1132
1132
|
} else {
|
|
1133
1133
|
loadContext = initialContext || {};
|
|
1134
1134
|
}
|
|
1135
1135
|
let url = new URL(request.url);
|
|
1136
1136
|
let normalizedBasename = build.basename || "/";
|
|
1137
1137
|
let normalizedPath = url.pathname;
|
|
1138
|
-
if (
|
|
1138
|
+
if (_chunkCYHICRRWjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) === "/_root.data") {
|
|
1139
1139
|
normalizedPath = normalizedBasename;
|
|
1140
1140
|
} else if (normalizedPath.endsWith(".data")) {
|
|
1141
1141
|
normalizedPath = normalizedPath.replace(/\.data$/, "");
|
|
1142
1142
|
}
|
|
1143
|
-
if (
|
|
1143
|
+
if (_chunkCYHICRRWjs.stripBasename.call(void 0, normalizedPath, normalizedBasename) !== "/" && normalizedPath.endsWith("/")) {
|
|
1144
1144
|
normalizedPath = normalizedPath.slice(0, -1);
|
|
1145
1145
|
}
|
|
1146
1146
|
let isSpaMode = getBuildTimeHeader(request, "X-React-Router-SPA-Mode") === "yes";
|
|
1147
1147
|
if (!build.ssr) {
|
|
1148
1148
|
let decodedPath = decodeURI(normalizedPath);
|
|
1149
1149
|
if (normalizedBasename !== "/") {
|
|
1150
|
-
let strippedPath =
|
|
1150
|
+
let strippedPath = _chunkCYHICRRWjs.stripBasename.call(void 0, decodedPath, normalizedBasename);
|
|
1151
1151
|
if (strippedPath == null) {
|
|
1152
1152
|
errorHandler(
|
|
1153
|
-
new (0,
|
|
1153
|
+
new (0, _chunkCYHICRRWjs.ErrorResponseImpl)(
|
|
1154
1154
|
404,
|
|
1155
1155
|
"Not Found",
|
|
1156
1156
|
`Refusing to prerender the \`${decodedPath}\` path because it does not start with the basename \`${normalizedBasename}\``
|
|
@@ -1173,7 +1173,7 @@ function derive(build, mode) {
|
|
|
1173
1173
|
} else if (!build.prerender.includes(decodedPath) && !build.prerender.includes(decodedPath + "/")) {
|
|
1174
1174
|
if (url.pathname.endsWith(".data")) {
|
|
1175
1175
|
errorHandler(
|
|
1176
|
-
new (0,
|
|
1176
|
+
new (0, _chunkCYHICRRWjs.ErrorResponseImpl)(
|
|
1177
1177
|
404,
|
|
1178
1178
|
"Not Found",
|
|
1179
1179
|
`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.`
|
|
@@ -1193,7 +1193,7 @@ function derive(build, mode) {
|
|
|
1193
1193
|
}
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
-
let manifestUrl =
|
|
1196
|
+
let manifestUrl = _chunkCYHICRRWjs.getManifestPath.call(void 0,
|
|
1197
1197
|
build.routeDiscovery.manifestPath,
|
|
1198
1198
|
normalizedBasename
|
|
1199
1199
|
);
|
|
@@ -1228,7 +1228,7 @@ function derive(build, mode) {
|
|
|
1228
1228
|
loadContext,
|
|
1229
1229
|
handleError
|
|
1230
1230
|
);
|
|
1231
|
-
if (
|
|
1231
|
+
if (_chunkCYHICRRWjs.isRedirectResponse.call(void 0, response)) {
|
|
1232
1232
|
response = generateSingleFetchRedirectResponse(
|
|
1233
1233
|
response,
|
|
1234
1234
|
request,
|
|
@@ -1242,7 +1242,7 @@ function derive(build, mode) {
|
|
|
1242
1242
|
params: singleFetchMatches ? singleFetchMatches[0].params : {},
|
|
1243
1243
|
request
|
|
1244
1244
|
});
|
|
1245
|
-
if (
|
|
1245
|
+
if (_chunkCYHICRRWjs.isRedirectResponse.call(void 0, response)) {
|
|
1246
1246
|
response = generateSingleFetchRedirectResponse(
|
|
1247
1247
|
response,
|
|
1248
1248
|
request,
|
|
@@ -1290,7 +1290,7 @@ function derive(build, mode) {
|
|
|
1290
1290
|
return response;
|
|
1291
1291
|
};
|
|
1292
1292
|
if (build.entry.module.unstable_instrumentations) {
|
|
1293
|
-
requestHandler =
|
|
1293
|
+
requestHandler = _chunkCYHICRRWjs.instrumentHandler.call(void 0,
|
|
1294
1294
|
requestHandler,
|
|
1295
1295
|
build.entry.module.unstable_instrumentations.map((i) => i.handler).filter(Boolean)
|
|
1296
1296
|
);
|
|
@@ -1402,7 +1402,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1402
1402
|
generateMiddlewareResponse: build.future.v8_middleware ? async (query) => {
|
|
1403
1403
|
try {
|
|
1404
1404
|
let innerResult = await query(request);
|
|
1405
|
-
if (!
|
|
1405
|
+
if (!_chunkCYHICRRWjs.isResponse.call(void 0, innerResult)) {
|
|
1406
1406
|
innerResult = await renderHtml(innerResult, isSpaMode);
|
|
1407
1407
|
}
|
|
1408
1408
|
return innerResult;
|
|
@@ -1412,7 +1412,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1412
1412
|
}
|
|
1413
1413
|
} : void 0
|
|
1414
1414
|
});
|
|
1415
|
-
if (!
|
|
1415
|
+
if (!_chunkCYHICRRWjs.isResponse.call(void 0, result)) {
|
|
1416
1416
|
result = await renderHtml(result, isSpaMode);
|
|
1417
1417
|
}
|
|
1418
1418
|
return result;
|
|
@@ -1427,7 +1427,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1427
1427
|
}
|
|
1428
1428
|
if (context.errors) {
|
|
1429
1429
|
Object.values(context.errors).forEach((err) => {
|
|
1430
|
-
if (!
|
|
1430
|
+
if (!_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, err) || err.error) {
|
|
1431
1431
|
handleError(err);
|
|
1432
1432
|
}
|
|
1433
1433
|
});
|
|
@@ -1479,10 +1479,10 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1479
1479
|
} catch (error) {
|
|
1480
1480
|
handleError(error);
|
|
1481
1481
|
let errorForSecondRender = error;
|
|
1482
|
-
if (
|
|
1482
|
+
if (_chunkCYHICRRWjs.isResponse.call(void 0, error)) {
|
|
1483
1483
|
try {
|
|
1484
1484
|
let data2 = await unwrapResponse(error);
|
|
1485
|
-
errorForSecondRender = new (0,
|
|
1485
|
+
errorForSecondRender = new (0, _chunkCYHICRRWjs.ErrorResponseImpl)(
|
|
1486
1486
|
error.status,
|
|
1487
1487
|
error.statusText,
|
|
1488
1488
|
data2
|
|
@@ -1490,7 +1490,7 @@ async function handleDocumentRequest(serverMode, build, staticHandler, request,
|
|
|
1490
1490
|
} catch (e) {
|
|
1491
1491
|
}
|
|
1492
1492
|
}
|
|
1493
|
-
context =
|
|
1493
|
+
context = _chunkCYHICRRWjs.getStaticContextFromError.call(void 0,
|
|
1494
1494
|
staticHandler.dataRoutes,
|
|
1495
1495
|
context,
|
|
1496
1496
|
errorForSecondRender
|
|
@@ -1549,7 +1549,7 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1549
1549
|
return handleQueryRouteError(error);
|
|
1550
1550
|
}
|
|
1551
1551
|
function handleQueryRouteResult(result) {
|
|
1552
|
-
if (
|
|
1552
|
+
if (_chunkCYHICRRWjs.isResponse.call(void 0, result)) {
|
|
1553
1553
|
return result;
|
|
1554
1554
|
}
|
|
1555
1555
|
if (typeof result === "string") {
|
|
@@ -1558,10 +1558,10 @@ async function handleResourceRequest(serverMode, build, staticHandler, routeId,
|
|
|
1558
1558
|
return Response.json(result);
|
|
1559
1559
|
}
|
|
1560
1560
|
function handleQueryRouteError(error) {
|
|
1561
|
-
if (
|
|
1561
|
+
if (_chunkCYHICRRWjs.isResponse.call(void 0, error)) {
|
|
1562
1562
|
return error;
|
|
1563
1563
|
}
|
|
1564
|
-
if (
|
|
1564
|
+
if (_chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, error)) {
|
|
1565
1565
|
handleError(error);
|
|
1566
1566
|
return errorResponseToJson(error, serverMode);
|
|
1567
1567
|
}
|
|
@@ -1684,7 +1684,7 @@ function createSessionStorage({
|
|
|
1684
1684
|
};
|
|
1685
1685
|
}
|
|
1686
1686
|
function warnOnceAboutSigningSessionCookie(cookie) {
|
|
1687
|
-
|
|
1687
|
+
_chunkCYHICRRWjs.warnOnce.call(void 0,
|
|
1688
1688
|
cookie.isSigned,
|
|
1689
1689
|
`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.`
|
|
1690
1690
|
);
|
|
@@ -1953,7 +1953,7 @@ async function routeRSCServerRequest({
|
|
|
1953
1953
|
const payload = await createFromReadableStream(
|
|
1954
1954
|
detectRedirectResponse.body
|
|
1955
1955
|
);
|
|
1956
|
-
if (serverResponse.status ===
|
|
1956
|
+
if (serverResponse.status === _chunkCYHICRRWjs.SINGLE_FETCH_REDIRECT_STATUS && payload.type === "redirect") {
|
|
1957
1957
|
const headers2 = new Headers(serverResponse.headers);
|
|
1958
1958
|
headers2.delete("Content-Encoding");
|
|
1959
1959
|
headers2.delete("Content-Length");
|
|
@@ -1988,7 +1988,7 @@ async function routeRSCServerRequest({
|
|
|
1988
1988
|
return reason;
|
|
1989
1989
|
}
|
|
1990
1990
|
try {
|
|
1991
|
-
const status =
|
|
1991
|
+
const status = _chunkCYHICRRWjs.isRouteErrorResponse.call(void 0, reason) ? reason.status : 500;
|
|
1992
1992
|
const html = await renderHTML(() => {
|
|
1993
1993
|
const decoded = Promise.resolve(
|
|
1994
1994
|
createFromReadableStream(createStream())
|
|
@@ -2054,7 +2054,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2054
2054
|
if (payload.type !== "render") return null;
|
|
2055
2055
|
let patchedLoaderData = { ...payload.loaderData };
|
|
2056
2056
|
for (const match of payload.matches) {
|
|
2057
|
-
if (
|
|
2057
|
+
if (_chunkCYHICRRWjs.shouldHydrateRouteLoader.call(void 0,
|
|
2058
2058
|
match.id,
|
|
2059
2059
|
match.clientLoader,
|
|
2060
2060
|
match.hasLoader,
|
|
@@ -2094,7 +2094,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
}))
|
|
2096
2096
|
};
|
|
2097
|
-
const router =
|
|
2097
|
+
const router = _chunkHSVNPM3Cjs.createStaticRouter.call(void 0,
|
|
2098
2098
|
payload.matches.reduceRight((previous, match) => {
|
|
2099
2099
|
const route = {
|
|
2100
2100
|
id: match.id,
|
|
@@ -2136,10 +2136,10 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2136
2136
|
}
|
|
2137
2137
|
},
|
|
2138
2138
|
routeDiscovery: { mode: "lazy", manifestPath: "/__manifest" },
|
|
2139
|
-
routeModules:
|
|
2139
|
+
routeModules: _chunkOLIKX45Ojs.createRSCRouteModules.call(void 0, payload)
|
|
2140
2140
|
};
|
|
2141
|
-
return /* @__PURE__ */ React3.createElement(
|
|
2142
|
-
|
|
2141
|
+
return /* @__PURE__ */ React3.createElement(_chunkCYHICRRWjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkOLIKX45Ojs.RSCRouterGlobalErrorBoundary, { location: payload.location }, /* @__PURE__ */ React3.createElement(_chunkCYHICRRWjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
2142
|
+
_chunkHSVNPM3Cjs.StaticRouterProvider,
|
|
2143
2143
|
{
|
|
2144
2144
|
context,
|
|
2145
2145
|
router,
|
|
@@ -2162,7 +2162,7 @@ function deserializeErrors(errors) {
|
|
|
2162
2162
|
let serialized = {};
|
|
2163
2163
|
for (let [key, val] of entries) {
|
|
2164
2164
|
if (val && val.__type === "RouteErrorResponse") {
|
|
2165
|
-
serialized[key] = new (0,
|
|
2165
|
+
serialized[key] = new (0, _chunkCYHICRRWjs.ErrorResponseImpl)(
|
|
2166
2166
|
val.status,
|
|
2167
2167
|
val.statusText,
|
|
2168
2168
|
val.data,
|
|
@@ -2319,4 +2319,4 @@ function deserializeErrors(errors) {
|
|
|
2319
2319
|
|
|
2320
2320
|
|
|
2321
2321
|
|
|
2322
|
-
exports.Await =
|
|
2322
|
+
exports.Await = _chunkCYHICRRWjs.Await; exports.BrowserRouter = _chunkHSVNPM3Cjs.BrowserRouter; exports.Form = _chunkHSVNPM3Cjs.Form; exports.HashRouter = _chunkHSVNPM3Cjs.HashRouter; exports.IDLE_BLOCKER = _chunkCYHICRRWjs.IDLE_BLOCKER; exports.IDLE_FETCHER = _chunkCYHICRRWjs.IDLE_FETCHER; exports.IDLE_NAVIGATION = _chunkCYHICRRWjs.IDLE_NAVIGATION; exports.Link = _chunkHSVNPM3Cjs.Link; exports.Links = _chunkCYHICRRWjs.Links; exports.MemoryRouter = _chunkCYHICRRWjs.MemoryRouter; exports.Meta = _chunkCYHICRRWjs.Meta; exports.NavLink = _chunkHSVNPM3Cjs.NavLink; exports.Navigate = _chunkCYHICRRWjs.Navigate; exports.NavigationType = _chunkCYHICRRWjs.Action; exports.Outlet = _chunkCYHICRRWjs.Outlet; exports.PrefetchPageLinks = _chunkCYHICRRWjs.PrefetchPageLinks; exports.Route = _chunkCYHICRRWjs.Route; exports.Router = _chunkCYHICRRWjs.Router; exports.RouterContextProvider = _chunkCYHICRRWjs.RouterContextProvider; exports.RouterProvider = _chunkCYHICRRWjs.RouterProvider; exports.Routes = _chunkCYHICRRWjs.Routes; exports.Scripts = _chunkCYHICRRWjs.Scripts; exports.ScrollRestoration = _chunkHSVNPM3Cjs.ScrollRestoration; exports.ServerRouter = ServerRouter; exports.StaticRouter = _chunkHSVNPM3Cjs.StaticRouter; exports.StaticRouterProvider = _chunkHSVNPM3Cjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkCYHICRRWjs.AwaitContextProvider; exports.UNSAFE_DataRouterContext = _chunkCYHICRRWjs.DataRouterContext; exports.UNSAFE_DataRouterStateContext = _chunkCYHICRRWjs.DataRouterStateContext; exports.UNSAFE_ErrorResponseImpl = _chunkCYHICRRWjs.ErrorResponseImpl; exports.UNSAFE_FetchersContext = _chunkCYHICRRWjs.FetchersContext; exports.UNSAFE_FrameworkContext = _chunkCYHICRRWjs.FrameworkContext; exports.UNSAFE_LocationContext = _chunkCYHICRRWjs.LocationContext; exports.UNSAFE_NavigationContext = _chunkCYHICRRWjs.NavigationContext; exports.UNSAFE_RSCDefaultRootErrorBoundary = _chunkOLIKX45Ojs.RSCDefaultRootErrorBoundary; exports.UNSAFE_RemixErrorBoundary = _chunkCYHICRRWjs.RemixErrorBoundary; exports.UNSAFE_RouteContext = _chunkCYHICRRWjs.RouteContext; exports.UNSAFE_ServerMode = ServerMode; exports.UNSAFE_SingleFetchRedirectSymbol = _chunkCYHICRRWjs.SingleFetchRedirectSymbol; exports.UNSAFE_ViewTransitionContext = _chunkCYHICRRWjs.ViewTransitionContext; exports.UNSAFE_WithComponentProps = _chunkCYHICRRWjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkCYHICRRWjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkCYHICRRWjs.WithHydrateFallbackProps; exports.UNSAFE_createBrowserHistory = _chunkCYHICRRWjs.createBrowserHistory; exports.UNSAFE_createClientRoutes = _chunkCYHICRRWjs.createClientRoutes; exports.UNSAFE_createClientRoutesWithHMRRevalidationOptOut = _chunkCYHICRRWjs.createClientRoutesWithHMRRevalidationOptOut; exports.UNSAFE_createRouter = _chunkCYHICRRWjs.createRouter; exports.UNSAFE_decodeViaTurboStream = _chunkCYHICRRWjs.decodeViaTurboStream; exports.UNSAFE_deserializeErrors = deserializeErrors; exports.UNSAFE_getHydrationData = _chunkOLIKX45Ojs.getHydrationData; exports.UNSAFE_getPatchRoutesOnNavigationFunction = _chunkCYHICRRWjs.getPatchRoutesOnNavigationFunction; exports.UNSAFE_getTurboStreamSingleFetchDataStrategy = _chunkCYHICRRWjs.getTurboStreamSingleFetchDataStrategy; exports.UNSAFE_hydrationRouteProperties = _chunkCYHICRRWjs.hydrationRouteProperties; exports.UNSAFE_invariant = _chunkCYHICRRWjs.invariant; exports.UNSAFE_mapRouteProperties = _chunkCYHICRRWjs.mapRouteProperties; exports.UNSAFE_shouldHydrateRouteLoader = _chunkCYHICRRWjs.shouldHydrateRouteLoader; exports.UNSAFE_useFogOFWarDiscovery = _chunkCYHICRRWjs.useFogOFWarDiscovery; exports.UNSAFE_useScrollRestoration = _chunkHSVNPM3Cjs.useScrollRestoration; exports.UNSAFE_withComponentProps = _chunkCYHICRRWjs.withComponentProps; exports.UNSAFE_withErrorBoundaryProps = _chunkCYHICRRWjs.withErrorBoundaryProps; exports.UNSAFE_withHydrateFallbackProps = _chunkCYHICRRWjs.withHydrateFallbackProps; exports.createBrowserRouter = _chunkHSVNPM3Cjs.createBrowserRouter; exports.createContext = _chunkCYHICRRWjs.createContext; exports.createCookie = createCookie; exports.createCookieSessionStorage = createCookieSessionStorage; exports.createHashRouter = _chunkHSVNPM3Cjs.createHashRouter; exports.createMemoryRouter = _chunkCYHICRRWjs.createMemoryRouter; exports.createMemorySessionStorage = createMemorySessionStorage; exports.createPath = _chunkCYHICRRWjs.createPath; exports.createRequestHandler = createRequestHandler; exports.createRoutesFromChildren = _chunkCYHICRRWjs.createRoutesFromChildren; exports.createRoutesFromElements = _chunkCYHICRRWjs.createRoutesFromElements; exports.createRoutesStub = createRoutesStub; exports.createSearchParams = _chunkHSVNPM3Cjs.createSearchParams; exports.createSession = createSession; exports.createSessionStorage = createSessionStorage; exports.createStaticHandler = _chunkHSVNPM3Cjs.createStaticHandler; exports.createStaticRouter = _chunkHSVNPM3Cjs.createStaticRouter; exports.data = _chunkCYHICRRWjs.data; exports.generatePath = _chunkCYHICRRWjs.generatePath; exports.href = href; exports.isCookie = isCookie; exports.isRouteErrorResponse = _chunkCYHICRRWjs.isRouteErrorResponse; exports.isSession = isSession; exports.matchPath = _chunkCYHICRRWjs.matchPath; exports.matchRoutes = _chunkCYHICRRWjs.matchRoutes; exports.parsePath = _chunkCYHICRRWjs.parsePath; exports.redirect = _chunkCYHICRRWjs.redirect; exports.redirectDocument = _chunkCYHICRRWjs.redirectDocument; exports.renderMatches = _chunkCYHICRRWjs.renderMatches; exports.replace = _chunkCYHICRRWjs.replace; exports.resolvePath = _chunkCYHICRRWjs.resolvePath; exports.unstable_HistoryRouter = _chunkHSVNPM3Cjs.HistoryRouter; exports.unstable_RSCStaticRouter = RSCStaticRouter; exports.unstable_routeRSCServerRequest = routeRSCServerRequest; exports.unstable_setDevServerHooks = setDevServerHooks; exports.unstable_usePrompt = _chunkHSVNPM3Cjs.usePrompt; exports.unstable_useRoute = _chunkCYHICRRWjs.useRoute; exports.useActionData = _chunkCYHICRRWjs.useActionData; exports.useAsyncError = _chunkCYHICRRWjs.useAsyncError; exports.useAsyncValue = _chunkCYHICRRWjs.useAsyncValue; exports.useBeforeUnload = _chunkHSVNPM3Cjs.useBeforeUnload; exports.useBlocker = _chunkCYHICRRWjs.useBlocker; exports.useFetcher = _chunkHSVNPM3Cjs.useFetcher; exports.useFetchers = _chunkHSVNPM3Cjs.useFetchers; exports.useFormAction = _chunkHSVNPM3Cjs.useFormAction; exports.useHref = _chunkCYHICRRWjs.useHref; exports.useInRouterContext = _chunkCYHICRRWjs.useInRouterContext; exports.useLinkClickHandler = _chunkHSVNPM3Cjs.useLinkClickHandler; exports.useLoaderData = _chunkCYHICRRWjs.useLoaderData; exports.useLocation = _chunkCYHICRRWjs.useLocation; exports.useMatch = _chunkCYHICRRWjs.useMatch; exports.useMatches = _chunkCYHICRRWjs.useMatches; exports.useNavigate = _chunkCYHICRRWjs.useNavigate; exports.useNavigation = _chunkCYHICRRWjs.useNavigation; exports.useNavigationType = _chunkCYHICRRWjs.useNavigationType; exports.useOutlet = _chunkCYHICRRWjs.useOutlet; exports.useOutletContext = _chunkCYHICRRWjs.useOutletContext; exports.useParams = _chunkCYHICRRWjs.useParams; exports.useResolvedPath = _chunkCYHICRRWjs.useResolvedPath; exports.useRevalidator = _chunkCYHICRRWjs.useRevalidator; exports.useRouteError = _chunkCYHICRRWjs.useRouteError; exports.useRouteLoaderData = _chunkCYHICRRWjs.useRouteLoaderData; exports.useRoutes = _chunkCYHICRRWjs.useRoutes; exports.useSearchParams = _chunkHSVNPM3Cjs.useSearchParams; exports.useSubmit = _chunkHSVNPM3Cjs.useSubmit; exports.useViewTransitionState = _chunkHSVNPM3Cjs.useViewTransitionState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.
|
|
2
|
+
* react-router v7.9.6-pre.1
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
isSession,
|
|
29
29
|
routeRSCServerRequest,
|
|
30
30
|
setDevServerHooks
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-RGKEVI2W.mjs";
|
|
32
32
|
import {
|
|
33
33
|
Action,
|
|
34
34
|
Await,
|
|
@@ -139,7 +139,7 @@ import {
|
|
|
139
139
|
withComponentProps,
|
|
140
140
|
withErrorBoundaryProps,
|
|
141
141
|
withHydrateFallbackProps
|
|
142
|
-
} from "./chunk-
|
|
142
|
+
} from "./chunk-DKSAHU2I.mjs";
|
|
143
143
|
export {
|
|
144
144
|
Await,
|
|
145
145
|
BrowserRouter,
|
package/dist/{production/instrumentation-iAqbU5Q4.d.ts → development/instrumentation-Unc20tLk.d.ts}
RENAMED
|
@@ -1740,7 +1740,11 @@ declare function createMemoryRouter(routes: RouteObject[], opts?: MemoryRouterOp
|
|
|
1740
1740
|
* and rendering errors via `componentDidCatch`
|
|
1741
1741
|
*/
|
|
1742
1742
|
interface unstable_ClientOnErrorFunction {
|
|
1743
|
-
(error: unknown,
|
|
1743
|
+
(error: unknown, info: {
|
|
1744
|
+
location: Location;
|
|
1745
|
+
params: Params;
|
|
1746
|
+
errorInfo?: React.ErrorInfo;
|
|
1747
|
+
}): void;
|
|
1744
1748
|
}
|
|
1745
1749
|
/**
|
|
1746
1750
|
* @category Types
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteModule, h as LinkDescriptor, L as Location, F as Func, i as Pretty, j as MetaDescriptor, G as GetLoaderData, k as ServerDataFunctionArgs, l as MiddlewareNextFunction, m as ClientDataFunctionArgs, D as DataStrategyResult, n as ServerDataFrom, N as Normalize, o as GetActionData } from '../../router-
|
|
2
|
-
import { R as RouteFiles, P as Pages } from '../../register-
|
|
1
|
+
import { R as RouteModule, h as LinkDescriptor, L as Location, F as Func, i as Pretty, j as MetaDescriptor, G as GetLoaderData, k as ServerDataFunctionArgs, l as MiddlewareNextFunction, m as ClientDataFunctionArgs, D as DataStrategyResult, n as ServerDataFrom, N as Normalize, o as GetActionData } from '../../router-CAvh_Drx.mjs';
|
|
2
|
+
import { R as RouteFiles, P as Pages } from '../../register-QkB3HGjm.mjs';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
type MaybePromise<T> = T | Promise<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as RouteModule, f as LinkDescriptor, L as Location, F as Func, g as Pretty, h as MetaDescriptor, G as GetLoaderData, i as ServerDataFunctionArgs, j as MiddlewareNextFunction, k as ClientDataFunctionArgs, D as DataStrategyResult, l as ServerDataFrom, N as Normalize, m as GetActionData } from '../../instrumentation-
|
|
2
|
-
import { R as RouteFiles, P as Pages } from '../../register-
|
|
1
|
+
import { R as RouteModule, f as LinkDescriptor, L as Location, F as Func, g as Pretty, h as MetaDescriptor, G as GetLoaderData, i as ServerDataFunctionArgs, j as MiddlewareNextFunction, k as ClientDataFunctionArgs, D as DataStrategyResult, l as ServerDataFrom, N as Normalize, m as GetActionData } from '../../instrumentation-Unc20tLk.js';
|
|
2
|
+
import { R as RouteFiles, P as Pages } from '../../register-BpU9rFBJ.js';
|
|
3
3
|
import 'react';
|
|
4
4
|
|
|
5
5
|
type MaybePromise<T> = T | Promise<T>;
|