react-router 7.15.1 → 7.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -2
- package/dist/development/{browser-3AnU12UI.d.mts → browser-CGcs-0pD.d.mts} +2 -2
- package/dist/development/{browser-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
- package/dist/development/{chunk-4N6VE7H7.mjs → chunk-6CSD65Y2.mjs} +12 -11
- package/dist/development/{chunk-RJYABSBD.mjs → chunk-ASILSGTR.mjs} +6 -6
- package/dist/development/{chunk-D6LUOGOQ.js → chunk-KFNXW4AL.js} +10 -10
- package/dist/{production/chunk-Y6IFXO7V.js → development/chunk-PBLBZ3QU.js} +7 -7
- package/dist/development/{chunk-66UKHEGQ.js → chunk-PULC7NLK.js} +100 -99
- package/dist/{production/context-ByvtofY2.d.mts → development/context-CmHpk1Ws.d.mts} +3 -3
- package/dist/development/{data-BqZ2x964.d.ts → data-D4xhSy90.d.ts} +1 -1
- package/dist/{production/data-BVUf681J.d.mts → development/data-U8FS-wNn.d.mts} +1 -1
- package/dist/development/dom-export.d.mts +4 -4
- package/dist/development/dom-export.d.ts +4 -4
- package/dist/development/dom-export.js +30 -30
- package/dist/development/dom-export.mjs +5 -5
- package/dist/{production/index-react-server-client-BS5F89FR.d.ts → development/index-react-server-client-CwU9bE5R.d.ts} +4 -4
- package/dist/{production/index-react-server-client-DY04-103.d.mts → development/index-react-server-client-DPrDrCew.d.mts} +3 -3
- package/dist/development/index-react-server-client.d.mts +3 -3
- package/dist/development/index-react-server-client.d.ts +3 -3
- package/dist/development/index-react-server-client.js +4 -4
- package/dist/development/index-react-server-client.mjs +2 -2
- package/dist/development/index-react-server.d.mts +1 -1
- package/dist/development/index-react-server.d.ts +1 -1
- package/dist/development/index-react-server.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.d.mts +18 -12
- package/dist/development/index.d.ts +18 -12
- package/dist/development/index.js +89 -89
- package/dist/development/index.mjs +3 -3
- package/dist/{production/instrumentation-cRWWLfsU.d.ts → development/instrumentation-1q4YhLGP.d.ts} +2 -2
- 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-Bsscfj79.d.ts → register-CNAx3TXj.d.ts} +1 -1
- package/dist/development/{register-Df8okEea.d.mts → register-CqK96Zfk.d.mts} +1 -1
- package/dist/production/{browser-3AnU12UI.d.mts → browser-CGcs-0pD.d.mts} +2 -2
- package/dist/production/{browser-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
- package/dist/production/{chunk-6S4627ZB.mjs → chunk-5TQZEVD5.mjs} +6 -6
- package/dist/{development/chunk-4YRVXM2U.js → production/chunk-CTIXC7EV.js} +7 -7
- package/dist/production/{chunk-PNZCCTKT.js → chunk-EN242BO4.js} +100 -99
- package/dist/production/{chunk-JAKZPQZC.mjs → chunk-OSYEOCBT.mjs} +12 -11
- package/dist/production/{chunk-HUBUW7R3.js → chunk-RTRY3JFT.js} +10 -10
- package/dist/{development/context-ByvtofY2.d.mts → production/context-CmHpk1Ws.d.mts} +3 -3
- package/dist/production/{data-BqZ2x964.d.ts → data-D4xhSy90.d.ts} +1 -1
- package/dist/{development/data-BVUf681J.d.mts → production/data-U8FS-wNn.d.mts} +1 -1
- package/dist/production/dom-export.d.mts +4 -4
- package/dist/production/dom-export.d.ts +4 -4
- package/dist/production/dom-export.js +30 -30
- package/dist/production/dom-export.mjs +5 -5
- package/dist/{development/index-react-server-client-BS5F89FR.d.ts → production/index-react-server-client-CwU9bE5R.d.ts} +4 -4
- package/dist/{development/index-react-server-client-DY04-103.d.mts → production/index-react-server-client-DPrDrCew.d.mts} +3 -3
- package/dist/production/index-react-server-client.d.mts +3 -3
- package/dist/production/index-react-server-client.d.ts +3 -3
- package/dist/production/index-react-server-client.js +4 -4
- package/dist/production/index-react-server-client.mjs +2 -2
- package/dist/production/index-react-server.d.mts +1 -1
- package/dist/production/index-react-server.d.ts +1 -1
- package/dist/production/index-react-server.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.d.mts +18 -12
- package/dist/production/index.d.ts +18 -12
- package/dist/production/index.js +89 -89
- package/dist/production/index.mjs +3 -3
- package/dist/{development/instrumentation-cRWWLfsU.d.ts → production/instrumentation-1q4YhLGP.d.ts} +2 -2
- 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-Bsscfj79.d.ts → register-CNAx3TXj.d.ts} +1 -1
- package/dist/production/{register-Df8okEea.d.mts → register-CqK96Zfk.d.mts} +1 -1
- package/docs/explanation/backend-for-frontend.md +50 -0
- package/docs/explanation/code-splitting.md +61 -0
- package/docs/explanation/concurrency.md +135 -0
- package/docs/explanation/form-vs-fetcher.md +292 -0
- package/docs/explanation/hot-module-replacement.md +137 -0
- package/docs/explanation/hydration.md +14 -0
- package/docs/explanation/index-query-param.md +86 -0
- package/docs/explanation/index.md +4 -0
- package/docs/explanation/lazy-route-discovery.md +78 -0
- package/docs/explanation/location.md +6 -0
- package/docs/explanation/progressive-enhancement.md +150 -0
- package/docs/explanation/race-conditions.md +88 -0
- package/docs/explanation/react-transitions.md +160 -0
- package/docs/explanation/route-matching.md +7 -0
- package/docs/explanation/server-client-execution.md +4 -0
- package/docs/explanation/sessions-and-cookies.md +465 -0
- package/docs/explanation/special-files.md +16 -0
- package/docs/explanation/state-management.md +524 -0
- package/docs/explanation/styling.md +87 -0
- package/docs/explanation/type-safety.md +82 -0
- package/docs/how-to/accessibility.md +44 -0
- package/docs/how-to/client-data.md +199 -0
- package/docs/how-to/data-strategy.md +317 -0
- package/docs/how-to/error-boundary.md +231 -0
- package/docs/how-to/error-reporting.md +142 -0
- package/docs/how-to/fetchers.md +307 -0
- package/docs/how-to/file-route-conventions.md +410 -0
- package/docs/how-to/file-uploads.md +217 -0
- package/docs/how-to/form-validation.md +120 -0
- package/docs/how-to/headers.md +164 -0
- package/docs/how-to/index.md +4 -0
- package/docs/how-to/instrumentation.md +556 -0
- package/docs/how-to/meta.md +40 -0
- package/docs/how-to/middleware.md +763 -0
- package/docs/how-to/navigation-blocking.md +233 -0
- package/docs/how-to/optimize-revalidation.md +12 -0
- package/docs/how-to/pre-rendering.md +225 -0
- package/docs/how-to/presets.md +103 -0
- package/docs/how-to/react-server-components.md +899 -0
- package/docs/how-to/resource-routes.md +126 -0
- package/docs/how-to/route-module-type-safety.md +100 -0
- package/docs/how-to/search-params.md +4 -0
- package/docs/how-to/security.md +30 -0
- package/docs/how-to/server-bundles.md +66 -0
- package/docs/how-to/spa.md +120 -0
- package/docs/how-to/status.md +63 -0
- package/docs/how-to/suspense.md +132 -0
- package/docs/how-to/using-handle.md +117 -0
- package/docs/how-to/view-transitions.md +237 -0
- package/docs/how-to/webhook.md +50 -0
- package/docs/index.md +39 -0
- package/docs/start/data/actions.md +138 -0
- package/docs/start/data/custom.md +198 -0
- package/docs/start/data/data-loading.md +44 -0
- package/docs/start/data/index.md +4 -0
- package/docs/start/data/installation.md +52 -0
- package/docs/start/data/navigating.md +12 -0
- package/docs/start/data/pending-ui.md +12 -0
- package/docs/start/data/route-object.md +268 -0
- package/docs/start/data/routing.md +281 -0
- package/docs/start/data/testing.md +8 -0
- package/docs/start/declarative/index.md +4 -0
- package/docs/start/declarative/installation.md +43 -0
- package/docs/start/declarative/navigating.md +133 -0
- package/docs/start/declarative/routing.md +237 -0
- package/docs/start/declarative/url-values.md +65 -0
- package/docs/start/framework/actions.md +174 -0
- package/docs/start/framework/data-loading.md +201 -0
- package/docs/start/framework/deploying.md +96 -0
- package/docs/start/framework/index.md +4 -0
- package/docs/start/framework/installation.md +41 -0
- package/docs/start/framework/navigating.md +182 -0
- package/docs/start/framework/pending-ui.md +142 -0
- package/docs/start/framework/rendering.md +59 -0
- package/docs/start/framework/route-module.md +527 -0
- package/docs/start/framework/routing.md +362 -0
- package/docs/start/framework/testing.md +133 -0
- package/docs/start/index.md +4 -0
- package/docs/start/modes.md +201 -0
- package/docs/upgrading/component-routes.md +363 -0
- package/docs/upgrading/future.md +280 -0
- package/docs/upgrading/index.md +4 -0
- package/docs/upgrading/remix.md +403 -0
- package/docs/upgrading/router-provider.md +442 -0
- package/docs/upgrading/v6.md +382 -0
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { a as RouterProviderProps$1, R as RouterInit, C as ClientInstrumentation, b as ClientOnErrorFunction } from './context-
|
|
3
|
-
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-
|
|
4
|
-
import './data-
|
|
2
|
+
import { a as RouterProviderProps$1, R as RouterInit, C as ClientInstrumentation, b as ClientOnErrorFunction } from './context-CmHpk1Ws.mjs';
|
|
3
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-CGcs-0pD.mjs';
|
|
4
|
+
import './data-U8FS-wNn.mjs';
|
|
5
5
|
|
|
6
6
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
7
7
|
declare function RouterProvider(props: RouterProviderProps): React.JSX.Element;
|
|
@@ -82,7 +82,7 @@ interface HydratedRouterProps {
|
|
|
82
82
|
* and is only present for render errors.
|
|
83
83
|
*
|
|
84
84
|
* ```tsx
|
|
85
|
-
* <HydratedRouter onError=(error, info) => {
|
|
85
|
+
* <HydratedRouter onError={(error, info) => {
|
|
86
86
|
* let { location, params, pattern, errorInfo } = info;
|
|
87
87
|
* console.error(error, location, errorInfo);
|
|
88
88
|
* reportToErrorService(error, location, errorInfo);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { RouterProviderProps as RouterProviderProps$1, RouterInit, ClientOnErrorFunction } from 'react-router';
|
|
3
|
-
import { C as ClientInstrumentation } from './instrumentation-
|
|
4
|
-
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-
|
|
5
|
-
import './data-
|
|
3
|
+
import { C as ClientInstrumentation } from './instrumentation-1q4YhLGP.js';
|
|
4
|
+
export { D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, R as unstable_RSCHydratedRouter, d as unstable_RSCManifestPayload, e as unstable_RSCPayload, f as unstable_RSCRenderPayload, c as unstable_createCallServer } from './browser-D3uq9sI1.js';
|
|
5
|
+
import './data-D4xhSy90.js';
|
|
6
6
|
|
|
7
7
|
type RouterProviderProps = Omit<RouterProviderProps$1, "flushSync">;
|
|
8
8
|
declare function RouterProvider(props: RouterProviderProps): React.JSX.Element;
|
|
@@ -83,7 +83,7 @@ interface HydratedRouterProps {
|
|
|
83
83
|
* and is only present for render errors.
|
|
84
84
|
*
|
|
85
85
|
* ```tsx
|
|
86
|
-
* <HydratedRouter onError=(error, info) => {
|
|
86
|
+
* <HydratedRouter onError={(error, info) => {
|
|
87
87
|
* let { location, params, pattern, errorInfo } = info;
|
|
88
88
|
* console.error(error, location, errorInfo);
|
|
89
89
|
* reportToErrorService(error, location, errorInfo);
|
|
@@ -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.17.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPBLBZ3QUjs = require('./chunk-PBLBZ3QU.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
@@ -34,7 +34,7 @@ var _chunk4YRVXM2Ujs = require('./chunk-4YRVXM2U.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkKFNXW4ALjs = require('./chunk-KFNXW4AL.js');
|
|
38
38
|
|
|
39
39
|
// lib/dom-export/dom-router-provider.tsx
|
|
40
40
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react); var React3 = _interopRequireWildcard(_react);
|
|
@@ -175,7 +175,7 @@ function createHydratedRouter({
|
|
|
175
175
|
ssrInfo.routeModules,
|
|
176
176
|
ssrInfo.context.ssr,
|
|
177
177
|
ssrInfo.context.basename,
|
|
178
|
-
ssrInfo.context.future.
|
|
178
|
+
ssrInfo.context.future.v8_trailingSlashAwareDataRequests
|
|
179
179
|
),
|
|
180
180
|
patchRoutesOnNavigation: _reactrouter.UNSAFE_getPatchRoutesOnNavigationFunction.call(void 0,
|
|
181
181
|
() => router2,
|
|
@@ -214,7 +214,7 @@ function HydratedRouter(props) {
|
|
|
214
214
|
}, []);
|
|
215
215
|
React2.useEffect(() => {
|
|
216
216
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
217
|
-
document.querySelectorAll(`[${
|
|
217
|
+
document.querySelectorAll(`[${_chunkKFNXW4ALjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
218
218
|
}
|
|
219
219
|
}, [criticalCss]);
|
|
220
220
|
let [location2, setLocation] = React2.useState(router.state.location);
|
|
@@ -393,7 +393,7 @@ function createRouterFromPayload({
|
|
|
393
393
|
};
|
|
394
394
|
if (payload.type !== "render") throw new Error("Invalid payload type");
|
|
395
395
|
globalVar.__reactRouterRouteModules = _nullishCoalesce(globalVar.__reactRouterRouteModules, () => ( {}));
|
|
396
|
-
|
|
396
|
+
_chunkPBLBZ3QUjs.populateRSCRouteModules.call(void 0, globalVar.__reactRouterRouteModules, payload.matches);
|
|
397
397
|
let routes = payload.matches.reduceRight((previous, match) => {
|
|
398
398
|
const route = createRouteFromServerManifest(
|
|
399
399
|
match,
|
|
@@ -407,12 +407,12 @@ function createRouterFromPayload({
|
|
|
407
407
|
return [route];
|
|
408
408
|
}, []);
|
|
409
409
|
let applyPatchesPromise;
|
|
410
|
-
globalVar.__reactRouterDataRouter =
|
|
410
|
+
globalVar.__reactRouterDataRouter = _chunkKFNXW4ALjs.createRouter.call(void 0, {
|
|
411
411
|
routes,
|
|
412
412
|
getContext,
|
|
413
413
|
basename: payload.basename,
|
|
414
|
-
history:
|
|
415
|
-
hydrationData:
|
|
414
|
+
history: _chunkKFNXW4ALjs.createBrowserHistory.call(void 0, ),
|
|
415
|
+
hydrationData: _chunkPBLBZ3QUjs.getHydrationData.call(void 0, {
|
|
416
416
|
state: {
|
|
417
417
|
loaderData: payload.loaderData,
|
|
418
418
|
actionData: payload.actionData,
|
|
@@ -421,7 +421,7 @@ function createRouterFromPayload({
|
|
|
421
421
|
routes,
|
|
422
422
|
getRouteInfo: (routeId) => {
|
|
423
423
|
let match = payload.matches.find((m) => m.id === routeId);
|
|
424
|
-
|
|
424
|
+
_chunkKFNXW4ALjs.invariant.call(void 0, match, "Route not found in payload");
|
|
425
425
|
return {
|
|
426
426
|
clientLoader: match.clientLoader,
|
|
427
427
|
hasLoader: match.hasLoader,
|
|
@@ -536,9 +536,9 @@ function createRouterFromPayload({
|
|
|
536
536
|
routeModules: globalVar.__reactRouterRouteModules
|
|
537
537
|
};
|
|
538
538
|
}
|
|
539
|
-
var renderedRoutesContext =
|
|
539
|
+
var renderedRoutesContext = _chunkKFNXW4ALjs.createContext.call(void 0, );
|
|
540
540
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
541
|
-
let dataStrategy =
|
|
541
|
+
let dataStrategy = _chunkKFNXW4ALjs.getSingleFetchDataStrategyImpl.call(void 0,
|
|
542
542
|
getRouter,
|
|
543
543
|
(match) => {
|
|
544
544
|
let M = match;
|
|
@@ -595,20 +595,20 @@ function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReada
|
|
|
595
595
|
function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation) {
|
|
596
596
|
return async (args, basename, trailingSlashAware, targetRoutes) => {
|
|
597
597
|
let { request, context } = args;
|
|
598
|
-
let url =
|
|
598
|
+
let url = _chunkKFNXW4ALjs.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
|
|
599
599
|
if (request.method === "GET") {
|
|
600
|
-
url =
|
|
600
|
+
url = _chunkKFNXW4ALjs.stripIndexParam.call(void 0, url);
|
|
601
601
|
if (targetRoutes) {
|
|
602
602
|
url.searchParams.set("_routes", targetRoutes.join(","));
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
let res = await fetchImplementation(
|
|
606
|
-
new Request(url, await
|
|
606
|
+
new Request(url, await _chunkKFNXW4ALjs.createRequestInit.call(void 0, request))
|
|
607
607
|
);
|
|
608
608
|
if (res.status >= 400 && !res.headers.has("X-Remix-Response")) {
|
|
609
|
-
throw new (0,
|
|
609
|
+
throw new (0, _chunkKFNXW4ALjs.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
_chunkKFNXW4ALjs.invariant.call(void 0, res.body, "No response body to decode");
|
|
612
612
|
try {
|
|
613
613
|
const payload = await createFromReadableStream(res.body, {
|
|
614
614
|
temporaryReferences: void 0
|
|
@@ -632,7 +632,7 @@ function getFetchAndDecodeViaRSC(createFromReadableStream, fetchImplementation)
|
|
|
632
632
|
}
|
|
633
633
|
context.get(renderedRoutesContext).push(...payload.matches);
|
|
634
634
|
let results = { routes: {} };
|
|
635
|
-
const dataKey =
|
|
635
|
+
const dataKey = _chunkKFNXW4ALjs.isMutationMethod.call(void 0, request.method) ? "actionData" : "loaderData";
|
|
636
636
|
for (let [routeId, data] of Object.entries(payload[dataKey] || {})) {
|
|
637
637
|
results.routes[routeId] = { data };
|
|
638
638
|
}
|
|
@@ -665,7 +665,7 @@ function RSCHydratedRouter({
|
|
|
665
665
|
[createFromReadableStream, payload, fetchImplementation, getContext]
|
|
666
666
|
);
|
|
667
667
|
React3.useEffect(() => {
|
|
668
|
-
|
|
668
|
+
_chunkKFNXW4ALjs.setIsHydrated.call(void 0, );
|
|
669
669
|
}, []);
|
|
670
670
|
React3.useLayoutEffect(() => {
|
|
671
671
|
const globalVar = window;
|
|
@@ -750,7 +750,7 @@ function RSCHydratedRouter({
|
|
|
750
750
|
// These flags have no runtime impact so can always be false. If we add
|
|
751
751
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
752
752
|
v8_middleware: false,
|
|
753
|
-
|
|
753
|
+
v8_trailingSlashAwareDataRequests: true,
|
|
754
754
|
// always on for RSC
|
|
755
755
|
v8_passThroughRequests: true
|
|
756
756
|
// always on for RSC
|
|
@@ -773,8 +773,8 @@ function RSCHydratedRouter({
|
|
|
773
773
|
},
|
|
774
774
|
routeModules
|
|
775
775
|
};
|
|
776
|
-
return /* @__PURE__ */ React3.createElement(
|
|
777
|
-
|
|
776
|
+
return /* @__PURE__ */ React3.createElement(_chunkKFNXW4ALjs.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkPBLBZ3QUjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkKFNXW4ALjs.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
777
|
+
_chunkKFNXW4ALjs.RouterProvider,
|
|
778
778
|
{
|
|
779
779
|
router: transitionEnabledRouter,
|
|
780
780
|
flushSync: ReactDOM2.flushSync
|
|
@@ -790,8 +790,8 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
790
790
|
// the server loader flow regardless of whether the client loader calls
|
|
791
791
|
// `serverLoader` or not, otherwise we'll have nothing to render.
|
|
792
792
|
match.hasComponent && !match.element;
|
|
793
|
-
|
|
794
|
-
|
|
793
|
+
_chunkKFNXW4ALjs.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
794
|
+
_chunkPBLBZ3QUjs.populateRSCRouteModules.call(void 0, window.__reactRouterRouteModules, match);
|
|
795
795
|
let dataRoute = {
|
|
796
796
|
id: match.id,
|
|
797
797
|
element: match.element,
|
|
@@ -839,7 +839,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
839
839
|
return await callSingleFetch(singleFetch);
|
|
840
840
|
}
|
|
841
841
|
}) : match.hasAction ? (_, singleFetch) => callSingleFetch(singleFetch) : () => {
|
|
842
|
-
throw
|
|
842
|
+
throw _chunkKFNXW4ALjs.noActionDefinedError.call(void 0, "action", match.id);
|
|
843
843
|
},
|
|
844
844
|
path: match.path,
|
|
845
845
|
shouldRevalidate: match.shouldRevalidate,
|
|
@@ -851,7 +851,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
851
851
|
hasClientAction: match.clientAction != null
|
|
852
852
|
};
|
|
853
853
|
if (typeof dataRoute.loader === "function") {
|
|
854
|
-
dataRoute.loader.hydrate =
|
|
854
|
+
dataRoute.loader.hydrate = _chunkKFNXW4ALjs.shouldHydrateRouteLoader.call(void 0,
|
|
855
855
|
match.id,
|
|
856
856
|
match.clientLoader,
|
|
857
857
|
match.hasLoader,
|
|
@@ -861,7 +861,7 @@ function createRouteFromServerManifest(match, payload) {
|
|
|
861
861
|
return dataRoute;
|
|
862
862
|
}
|
|
863
863
|
function callSingleFetch(singleFetch) {
|
|
864
|
-
|
|
864
|
+
_chunkKFNXW4ALjs.invariant.call(void 0, typeof singleFetch === "function", "Invalid singleFetch parameter");
|
|
865
865
|
return singleFetch();
|
|
866
866
|
}
|
|
867
867
|
function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
@@ -869,7 +869,7 @@ function preventInvalidServerHandlerCall(type, routeId, hasHandler) {
|
|
|
869
869
|
let fn = type === "action" ? "serverAction()" : "serverLoader()";
|
|
870
870
|
let msg = `You are trying to call ${fn} on a route that does not have a server ${type} (routeId: "${routeId}")`;
|
|
871
871
|
console.error(msg);
|
|
872
|
-
throw new (0,
|
|
872
|
+
throw new (0, _chunkKFNXW4ALjs.ErrorResponseImpl)(400, "Bad Request", new Error(msg), true);
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
875
|
var nextPaths = /* @__PURE__ */ new Set();
|
|
@@ -896,7 +896,7 @@ async function fetchAndApplyManifestPatches(paths, createFromReadableStream, fet
|
|
|
896
896
|
if (url == null) {
|
|
897
897
|
return;
|
|
898
898
|
}
|
|
899
|
-
if (url.toString().length >
|
|
899
|
+
if (url.toString().length > _chunkKFNXW4ALjs.URL_LIMIT) {
|
|
900
900
|
nextPaths.clear();
|
|
901
901
|
return;
|
|
902
902
|
}
|
|
@@ -941,7 +941,7 @@ function isExternalLocation(location2) {
|
|
|
941
941
|
}
|
|
942
942
|
function hasInvalidProtocol(location2) {
|
|
943
943
|
try {
|
|
944
|
-
return
|
|
944
|
+
return _chunkKFNXW4ALjs.invalidProtocols.includes(new URL(location2).protocol);
|
|
945
945
|
} catch (e2) {
|
|
946
946
|
return false;
|
|
947
947
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.17.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
deserializeErrors,
|
|
15
15
|
getHydrationData,
|
|
16
16
|
populateRSCRouteModules
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ASILSGTR.mjs";
|
|
18
18
|
import {
|
|
19
19
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
20
20
|
ErrorResponseImpl,
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
singleFetchUrl,
|
|
45
45
|
stripIndexParam,
|
|
46
46
|
useFogOFWarDiscovery
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-6CSD65Y2.mjs";
|
|
48
48
|
|
|
49
49
|
// lib/dom-export/dom-router-provider.tsx
|
|
50
50
|
import * as React from "react";
|
|
@@ -167,7 +167,7 @@ function createHydratedRouter({
|
|
|
167
167
|
ssrInfo.routeModules,
|
|
168
168
|
ssrInfo.context.ssr,
|
|
169
169
|
ssrInfo.context.basename,
|
|
170
|
-
ssrInfo.context.future.
|
|
170
|
+
ssrInfo.context.future.v8_trailingSlashAwareDataRequests
|
|
171
171
|
),
|
|
172
172
|
patchRoutesOnNavigation: getPatchRoutesOnNavigationFunction(
|
|
173
173
|
() => router2,
|
|
@@ -742,7 +742,7 @@ function RSCHydratedRouter({
|
|
|
742
742
|
// These flags have no runtime impact so can always be false. If we add
|
|
743
743
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
744
744
|
v8_middleware: false,
|
|
745
|
-
|
|
745
|
+
v8_trailingSlashAwareDataRequests: true,
|
|
746
746
|
// always on for RSC
|
|
747
747
|
v8_passThroughRequests: true
|
|
748
748
|
// always on for RSC
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as ServerInstrumentation, H as HydrationState,
|
|
1
|
+
import { l as ServerInstrumentation, H as HydrationState, f as StaticHandlerContext, c as RelativeRoutingType, a as Router$1, d as RouterState, R as RouterInit, t as FutureConfig$1, C as ClientInstrumentation, e as GetScrollRestorationKeyFunction, F as Fetcher, B as BlockerFunction, u as CreateStaticHandlerOptions$1, S as StaticHandler } from './instrumentation-1q4YhLGP.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { p as RouteManifest, aE as ServerRouteModule, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, s as LoaderFunctionArgs, a0 as ActionFunctionArgs, O as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, o as RouteBranch, aF as TrackedPromise, f as History, T as To, L as Location, i as Action, ac as RouteMatch, Y as InitialEntry, _ as NonIndexRouteObject, a7 as LazyRouteFunction, Z as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, q as HTMLFormMethod, F as FormEncType, av as PageLinkDescriptor, Q as SerializeFrom } from './data-
|
|
3
|
+
import { p as RouteManifest, aE as ServerRouteModule, t as MiddlewareEnabled, c as RouterContextProvider, u as AppLoadContext, s as LoaderFunctionArgs, a0 as ActionFunctionArgs, O as RouteModules, n as DataRouteObject, a as ClientLoaderFunction, o as RouteBranch, aF as TrackedPromise, f as History, T as To, L as Location, i as Action, ac as RouteMatch, Y as InitialEntry, _ as NonIndexRouteObject, a7 as LazyRouteFunction, Z as IndexRouteObject, P as Params, l as DataStrategyFunction, m as PatchRoutesOnNavigationFunction, e as RouteObject, U as UIMatch, q as HTMLFormMethod, F as FormEncType, av as PageLinkDescriptor, Q as SerializeFrom } from './data-D4xhSy90.js';
|
|
4
4
|
|
|
5
5
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
6
6
|
interface ServerRoute extends Route$1 {
|
|
@@ -125,7 +125,7 @@ interface EntryContext extends FrameworkContextObject {
|
|
|
125
125
|
}
|
|
126
126
|
interface FutureConfig {
|
|
127
127
|
v8_passThroughRequests: boolean;
|
|
128
|
-
|
|
128
|
+
v8_trailingSlashAwareDataRequests: boolean;
|
|
129
129
|
v8_middleware: boolean;
|
|
130
130
|
}
|
|
131
131
|
type CriticalCss = string | {
|
|
@@ -404,7 +404,7 @@ interface RouterProviderProps {
|
|
|
404
404
|
* and is only present for render errors.
|
|
405
405
|
*
|
|
406
406
|
* ```tsx
|
|
407
|
-
* <RouterProvider onError=(error, info) => {
|
|
407
|
+
* <RouterProvider onError={(error, info) => {
|
|
408
408
|
* let { location, params, pattern, errorInfo } = info;
|
|
409
409
|
* console.error(error, location, errorInfo);
|
|
410
410
|
* reportToErrorService(error, location, errorInfo);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as ServerInstrumentation, H as HydrationState,
|
|
1
|
+
import { o as ServerInstrumentation, H as HydrationState, i as StaticHandlerContext, f as RelativeRoutingType, h as GetScrollRestorationKeyFunction, R as RouterInit, ah as FutureConfig$1, C as ClientInstrumentation, N as NavigateOptions, F as Fetcher, c as Router, B as BlockerFunction, ai as CreateStaticHandlerOptions$1, S as StaticHandler } from './context-CmHpk1Ws.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-
|
|
3
|
+
import { J as RouteManifest, aF as ServerRouteModule, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, o as LoaderFunctionArgs, a3 as ActionFunctionArgs, Z as RouteModules, E as DataRouteObject, a as ClientLoaderFunction, I as RouteBranch, m as HTMLFormMethod, n as FormEncType, aw as PageLinkDescriptor, T as To, s as History, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, r as RouteObject, _ as SerializeFrom, L as Location } from './data-U8FS-wNn.mjs';
|
|
4
4
|
|
|
5
5
|
type ServerRouteManifest = RouteManifest<Omit<ServerRoute, "children">>;
|
|
6
6
|
interface ServerRoute extends Route {
|
|
@@ -125,7 +125,7 @@ interface EntryContext extends FrameworkContextObject {
|
|
|
125
125
|
}
|
|
126
126
|
interface FutureConfig {
|
|
127
127
|
v8_passThroughRequests: boolean;
|
|
128
|
-
|
|
128
|
+
v8_trailingSlashAwareDataRequests: boolean;
|
|
129
129
|
v8_middleware: boolean;
|
|
130
130
|
}
|
|
131
131
|
type CriticalCss = string | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-
|
|
2
|
-
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-
|
|
3
|
-
import './data-
|
|
1
|
+
export { Q as MemoryRouter, T as Navigate, U as Outlet, V as Route, W as Router, X as RouterProvider, Y as Routes, A as UNSAFE_AwaitContextProvider, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps } from './context-CmHpk1Ws.mjs';
|
|
2
|
+
export { l as BrowserRouter, q as Form, m as HashRouter, n as Link, X as Links, W as Meta, p as NavLink, r as ScrollRestoration, T as StaticRouter, V as StaticRouterProvider, o as unstable_HistoryRouter } from './index-react-server-client-DPrDrCew.mjs';
|
|
3
|
+
import './data-U8FS-wNn.mjs';
|
|
4
4
|
import 'react';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-
|
|
2
|
-
import './instrumentation-
|
|
3
|
-
import './data-
|
|
1
|
+
export { W as BrowserRouter, $ as Form, X as HashRouter, Y as Link, an as Links, j as MemoryRouter, am as Meta, _ as NavLink, k as Navigate, l as Outlet, m as Route, n as Router, o as RouterProvider, p as Routes, a0 as ScrollRestoration, ak as StaticRouter, al as StaticRouterProvider, b as UNSAFE_AwaitContextProvider, aH as UNSAFE_WithComponentProps, aL as UNSAFE_WithErrorBoundaryProps, aJ as UNSAFE_WithHydrateFallbackProps, Z as unstable_HistoryRouter } from './index-react-server-client-CwU9bE5R.js';
|
|
2
|
+
import './instrumentation-1q4YhLGP.js';
|
|
3
|
+
import './data-D4xhSy90.js';
|
|
4
4
|
import 'react';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.17.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkPULC7NLKjs = require('./chunk-PULC7NLK.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
@@ -34,7 +34,7 @@ var _chunk66UKHEGQjs = require('./chunk-66UKHEGQ.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkKFNXW4ALjs = require('./chunk-KFNXW4AL.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkD6LUOGOQjs = require('./chunk-D6LUOGOQ.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkPULC7NLKjs.BrowserRouter; exports.Form = _chunkPULC7NLKjs.Form; exports.HashRouter = _chunkPULC7NLKjs.HashRouter; exports.Link = _chunkPULC7NLKjs.Link; exports.Links = _chunkKFNXW4ALjs.Links; exports.MemoryRouter = _chunkKFNXW4ALjs.MemoryRouter; exports.Meta = _chunkKFNXW4ALjs.Meta; exports.NavLink = _chunkPULC7NLKjs.NavLink; exports.Navigate = _chunkKFNXW4ALjs.Navigate; exports.Outlet = _chunkKFNXW4ALjs.Outlet; exports.Route = _chunkKFNXW4ALjs.Route; exports.Router = _chunkKFNXW4ALjs.Router; exports.RouterProvider = _chunkKFNXW4ALjs.RouterProvider; exports.Routes = _chunkKFNXW4ALjs.Routes; exports.ScrollRestoration = _chunkPULC7NLKjs.ScrollRestoration; exports.StaticRouter = _chunkPULC7NLKjs.StaticRouter; exports.StaticRouterProvider = _chunkPULC7NLKjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkKFNXW4ALjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkKFNXW4ALjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkKFNXW4ALjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkKFNXW4ALjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkPULC7NLKjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.17.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
WithComponentProps,
|
|
33
33
|
WithErrorBoundaryProps,
|
|
34
34
|
WithHydrateFallbackProps
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-6CSD65Y2.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Z as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, L as Location, P as Params, U as UIMatch, v as Action, _ as SerializeFrom, $ as PathPattern, a0 as PathMatch, a1 as ParamParseKey, K as Path, r as RouteObject, G as GetLoaderData, l as GetActionData, O as InitialEntry, W as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, Q as NonIndexRouteObject, a2 as Equal, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, a as ClientLoaderFunction } from './data-
|
|
2
|
-
export { a3 as ActionFunctionArgs, a4 as BaseRouteObject, C as ClientActionFunction, as as ClientActionFunctionArgs, at as ClientLoaderFunctionArgs, w as DataRouteMatch, a5 as DataStrategyFunctionArgs, a6 as DataStrategyMatch, D as DataStrategyResult, a8 as ErrorResponse, n as FormEncType, a9 as FormMethod, ay as Future, m as HTMLFormMethod, au as HeadersArgs, H as HeadersFunction, ax as HtmlLinkDescriptor, V as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, av as MetaArgs, g as MetaDescriptor, aa as MiddlewareFunction, aw as PageLinkDescriptor, ab as PatchRoutesOnNavigationFunctionArgs, ac as PathParam, ad as RedirectFunction, X as RouteMatch, ae as RouterContext, S as ShouldRevalidateFunction, af as ShouldRevalidateFunctionArgs, a7 as UNSAFE_DataWithResponseInit, aE as UNSAFE_ErrorResponseImpl, aB as UNSAFE_createBrowserHistory, aC as UNSAFE_createHashHistory, aA as UNSAFE_createMemoryHistory, aD as UNSAFE_invariant, ag as createContext, ah as createPath, aj as data, ak as generatePath, al as isRouteErrorResponse, am as matchPath, an as matchRoutes, ai as parsePath, ao as redirect, ap as redirectDocument, aq as replace, ar as resolvePath, az as unstable_SerializesTo } from './data-
|
|
3
|
-
import { c as Router, N as NavigateOptions, d as NavigationStates, B as BlockerFunction, e as Blocker, f as RelativeRoutingType,
|
|
4
|
-
export { K as Await, w as AwaitProps, C as ClientInstrumentation, b as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction,
|
|
1
|
+
import { Z as RouteModules, z as DataStrategyFunction, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, T as To, L as Location, P as Params, U as UIMatch, v as Action, _ as SerializeFrom, $ as PathPattern, a0 as PathMatch, a1 as ParamParseKey, K as Path, r as RouteObject, G as GetLoaderData, l as GetActionData, O as InitialEntry, W as IndexRouteObject, d as LoaderFunction, A as ActionFunction, M as MetaFunction, b as LinksFunction, Q as NonIndexRouteObject, a2 as Equal, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, a as ClientLoaderFunction } from './data-U8FS-wNn.mjs';
|
|
2
|
+
export { a3 as ActionFunctionArgs, a4 as BaseRouteObject, C as ClientActionFunction, as as ClientActionFunctionArgs, at as ClientLoaderFunctionArgs, w as DataRouteMatch, a5 as DataStrategyFunctionArgs, a6 as DataStrategyMatch, D as DataStrategyResult, a8 as ErrorResponse, n as FormEncType, a9 as FormMethod, ay as Future, m as HTMLFormMethod, au as HeadersArgs, H as HeadersFunction, ax as HtmlLinkDescriptor, V as LazyRouteFunction, e as LinkDescriptor, o as LoaderFunctionArgs, av as MetaArgs, g as MetaDescriptor, aa as MiddlewareFunction, aw as PageLinkDescriptor, ab as PatchRoutesOnNavigationFunctionArgs, ac as PathParam, ad as RedirectFunction, X as RouteMatch, ae as RouterContext, S as ShouldRevalidateFunction, af as ShouldRevalidateFunctionArgs, a7 as UNSAFE_DataWithResponseInit, aE as UNSAFE_ErrorResponseImpl, aB as UNSAFE_createBrowserHistory, aC as UNSAFE_createHashHistory, aA as UNSAFE_createMemoryHistory, aD as UNSAFE_invariant, ag as createContext, ah as createPath, aj as data, ak as generatePath, al as isRouteErrorResponse, am as matchPath, an as matchRoutes, ai as parsePath, ao as redirect, ap as redirectDocument, aq as replace, ar as resolvePath, az as unstable_SerializesTo } from './data-U8FS-wNn.mjs';
|
|
3
|
+
import { c as Router, N as NavigateOptions, d as NavigationStates, B as BlockerFunction, e as Blocker, f as RelativeRoutingType, H as HydrationState, g as RouterState } from './context-CmHpk1Ws.mjs';
|
|
4
|
+
export { K as Await, w as AwaitProps, C as ClientInstrumentation, b as ClientOnErrorFunction, F as Fetcher, G as GetScrollPositionFunction, h as GetScrollRestorationKeyFunction, u as IDLE_BLOCKER, t as IDLE_FETCHER, s as IDLE_NAVIGATION, x as IndexRouteProps, I as InstrumentRequestHandlerFunction, q as InstrumentRouteFunction, p as InstrumentRouterFunction, r as InstrumentationHandlerResult, L as LayoutRouteProps, Q as MemoryRouter, M as MemoryRouterOpts, y as MemoryRouterProps, T as Navigate, z as NavigateProps, j as Navigation, v as Navigator, U as Outlet, O as OutletProps, P as PathRouteProps, n as RevalidationState, V as Route, D as RouteProps, W as Router, m as RouterFetchOptions, R as RouterInit, l as RouterNavigateOptions, E as RouterProps, X as RouterProvider, a as RouterProviderProps, k as RouterSubscriber, Y as Routes, J as RoutesProps, o as ServerInstrumentation, S as StaticHandler, i as StaticHandlerContext, A as UNSAFE_AwaitContextProvider, a2 as UNSAFE_DataRouterContext, a3 as UNSAFE_DataRouterStateContext, a4 as UNSAFE_FetchersContext, a5 as UNSAFE_LocationContext, a6 as UNSAFE_NavigationContext, a7 as UNSAFE_RouteContext, a8 as UNSAFE_ViewTransitionContext, ab as UNSAFE_WithComponentProps, af as UNSAFE_WithErrorBoundaryProps, ad as UNSAFE_WithHydrateFallbackProps, a1 as UNSAFE_createRouter, a9 as UNSAFE_hydrationRouteProperties, aa as UNSAFE_mapRouteProperties, ac as UNSAFE_withComponentProps, ag as UNSAFE_withErrorBoundaryProps, ae as UNSAFE_withHydrateFallbackProps, Z as createMemoryRouter, _ as createRoutesFromChildren, $ as createRoutesFromElements, a0 as renderMatches } from './context-CmHpk1Ws.mjs';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import React__default, { ReactElement } from 'react';
|
|
7
|
-
import { a as RouteModules$1, P as Pages } from './register-
|
|
8
|
-
export { b as Register } from './register-
|
|
9
|
-
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-
|
|
10
|
-
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-
|
|
7
|
+
import { a as RouteModules$1, P as Pages } from './register-CqK96Zfk.mjs';
|
|
8
|
+
export { b as Register } from './register-CqK96Zfk.mjs';
|
|
9
|
+
import { A as AssetsManifest, S as ServerBuild, E as EntryContext, F as FutureConfig } from './index-react-server-client-DPrDrCew.mjs';
|
|
10
|
+
export { l as BrowserRouter, B as BrowserRouterProps, D as DOMRouterOpts, a1 as DiscoverBehavior, c as FetcherFormProps, h as FetcherSubmitFunction, G as FetcherSubmitOptions, i as FetcherWithComponents, q as Form, d as FormProps, a2 as HandleDataRequestFunction, a3 as HandleDocumentRequestFunction, a4 as HandleErrorFunction, m as HashRouter, H as HashRouterProps, a as HistoryRouterProps, n as Link, L as LinkProps, X as Links, _ as LinksProps, W as Meta, p as NavLink, N as NavLinkProps, b as NavLinkRenderProps, P as ParamKeyValuePair, a0 as PrefetchBehavior, Z as PrefetchPageLinks, Y as Scripts, $ as ScriptsProps, r as ScrollRestoration, e as ScrollRestorationProps, a5 as ServerEntryModule, f as SetURLSearchParams, T as StaticRouter, M as StaticRouterProps, V as StaticRouterProvider, O as StaticRouterProviderProps, g as SubmitFunction, I as SubmitOptions, J as SubmitTarget, a6 as UNSAFE_FrameworkContext, a7 as UNSAFE_createClientRoutes, a8 as UNSAFE_createClientRoutesWithHMRRevalidationOptOut, a9 as UNSAFE_shouldHydrateRouteLoader, aa as UNSAFE_useScrollRestoration, U as URLSearchParamsInit, j as createBrowserRouter, k as createHashRouter, K as createSearchParams, Q as createStaticHandler, R as createStaticRouter, o as unstable_HistoryRouter, z as unstable_usePrompt, y as useBeforeUnload, w as useFetcher, x as useFetchers, v as useFormAction, u as useLinkClickHandler, s as useSearchParams, t as useSubmit, C as useViewTransitionState } from './index-react-server-client-DPrDrCew.mjs';
|
|
11
11
|
import { ParseOptions, SerializeOptions } from 'cookie';
|
|
12
12
|
export { ParseOptions as CookieParseOptions, SerializeOptions as CookieSerializeOptions } from 'cookie';
|
|
13
|
-
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-
|
|
14
|
-
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-
|
|
13
|
+
import { e as RSCPayload, g as getRequest, m as matchRSCServerRequest } from './browser-CGcs-0pD.mjs';
|
|
14
|
+
export { B as unstable_BrowserCreateFromReadableStreamFunction, D as unstable_DecodeActionFunction, a as unstable_DecodeFormStateFunction, b as unstable_DecodeReplyFunction, E as unstable_EncodeReplyFunction, L as unstable_LoadServerActionFunction, h as unstable_RSCHydratedRouterProps, d as unstable_RSCManifestPayload, i as unstable_RSCMatch, f as unstable_RSCRenderPayload, n as unstable_RSCRouteConfig, l as unstable_RSCRouteConfigEntry, j as unstable_RSCRouteManifest, k as unstable_RSCRouteMatch } from './browser-CGcs-0pD.mjs';
|
|
15
15
|
|
|
16
16
|
declare const SingleFetchRedirectSymbol: unique symbol;
|
|
17
17
|
declare function getTurboStreamSingleFetchDataStrategy(getRouter: () => Router, manifest: AssetsManifest, routeModules: RouteModules, ssr: boolean, basename: string | undefined, trailingSlashAware: boolean): DataStrategyFunction;
|
|
@@ -526,6 +526,12 @@ declare function useResolvedPath(to: To, { relative }?: {
|
|
|
526
526
|
* @returns A React element to render the matched route, or `null` if no routes matched
|
|
527
527
|
*/
|
|
528
528
|
declare function useRoutes(routes: RouteObject[], locationArg?: Partial<Location> | string): React.ReactElement | null;
|
|
529
|
+
type UseNavigationResult = UseNavigationResultStates[keyof UseNavigationResultStates];
|
|
530
|
+
type UseNavigationResultStates = {
|
|
531
|
+
Idle: Omit<NavigationStates["Idle"], "matches" | "historyAction">;
|
|
532
|
+
Loading: Omit<NavigationStates["Loading"], "matches" | "historyAction">;
|
|
533
|
+
Submitting: Omit<NavigationStates["Submitting"], "matches" | "historyAction">;
|
|
534
|
+
};
|
|
529
535
|
/**
|
|
530
536
|
* Returns the current {@link Navigation}, defaulting to an "idle" navigation
|
|
531
537
|
* when no navigation is in progress. You can use this to render pending UI
|
|
@@ -548,7 +554,7 @@ declare function useRoutes(routes: RouteObject[], locationArg?: Partial<Location
|
|
|
548
554
|
* @mode data
|
|
549
555
|
* @returns The current {@link Navigation} object
|
|
550
556
|
*/
|
|
551
|
-
declare function useNavigation():
|
|
557
|
+
declare function useNavigation(): UseNavigationResult;
|
|
552
558
|
/**
|
|
553
559
|
* Revalidate the data on the page for reasons outside of normal data mutations
|
|
554
560
|
* like [`Window` focus](https://developer.mozilla.org/en-US/docs/Web/API/Window/focus_event)
|
|
@@ -1469,4 +1475,4 @@ declare function getHydrationData({ state, routes, getRouteInfo, location, basen
|
|
|
1469
1475
|
declare const unstable_getRequest: typeof getRequest;
|
|
1470
1476
|
declare const unstable_matchRSCServerRequest: typeof matchRSCServerRequest;
|
|
1471
1477
|
|
|
1472
|
-
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions,
|
|
1478
|
+
export { ActionFunction, AppLoadContext, Blocker, BlockerFunction, ClientLoaderFunction, type Cookie, type CookieOptions, type CookieSignatureOptions, type CreateRequestHandlerFunction, DataRouteObject, Router as DataRouter, DataStrategyFunction, EntryContext, type FlashSessionData, HydrationState, IndexRouteObject, InitialEntry, type IsCookieFunction, type IsSessionFunction, LinksFunction, LoaderFunction, Location, MetaFunction, type NavigateFunction, NavigateOptions, NavigationStates, Action as NavigationType, NonIndexRouteObject, ParamParseKey, Params, PatchRoutesOnNavigationFunction, Path, PathMatch, PathPattern, RelativeRoutingType, type RequestHandler, RouteObject, RouterContextProvider, RouterState, type RoutesTestStubProps, ServerBuild, ServerRouter, type ServerRouterProps, type Session, type SessionData, type SessionIdStorageStrategy, type SessionStorage, To, UIMatch, AssetsManifest as UNSAFE_AssetsManifest, MiddlewareEnabled as UNSAFE_MiddlewareEnabled, RSCDefaultRootErrorBoundary as UNSAFE_RSCDefaultRootErrorBoundary, RemixErrorBoundary as UNSAFE_RemixErrorBoundary, RouteModules as UNSAFE_RouteModules, ServerMode as UNSAFE_ServerMode, SingleFetchRedirectSymbol as UNSAFE_SingleFetchRedirectSymbol, decodeViaTurboStream as UNSAFE_decodeViaTurboStream, deserializeErrors as UNSAFE_deserializeErrors, getHydrationData as UNSAFE_getHydrationData, getPatchRoutesOnNavigationFunction as UNSAFE_getPatchRoutesOnNavigationFunction, getTurboStreamSingleFetchDataStrategy as UNSAFE_getTurboStreamSingleFetchDataStrategy, useFogOFWarDiscovery as UNSAFE_useFogOFWarDiscovery, createCookie, createCookieSessionStorage, createMemorySessionStorage, createRequestHandler, createRoutesStub, createSession, createSessionStorage, href, isCookie, isSession, RSCPayload as unstable_RSCPayload, RSCStaticRouter as unstable_RSCStaticRouter, type RSCStaticRouterProps as unstable_RSCStaticRouterProps, type unstable_RouterState, type unstable_RouterStateActiveVariant, type unstable_RouterStatePendingVariant, type SSRCreateFromReadableStreamFunction as unstable_SSRCreateFromReadableStreamFunction, unstable_getRequest, unstable_matchRSCServerRequest, routeRSCServerRequest as unstable_routeRSCServerRequest, setDevServerHooks as unstable_setDevServerHooks, useRoute as unstable_useRoute, useRouterState as unstable_useRouterState, useActionData, useAsyncError, useAsyncValue, useBlocker, useHref, useInRouterContext, useLoaderData, useLocation, useMatch, useMatches, useNavigate, useNavigation, useNavigationType, useOutlet, useOutletContext, useParams, useResolvedPath, useRevalidator, useRouteError, useRouteLoaderData, useRoutes };
|