react-router 7.15.1 → 7.16.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 +19 -2
- package/dist/development/{browser-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
- package/dist/development/{browser-3AnU12UI.d.mts → browser-nIQ4Nsyi.d.mts} +2 -2
- package/dist/development/{chunk-66UKHEGQ.js → chunk-IBI7OMNB.js} +100 -99
- package/dist/development/{chunk-4N6VE7H7.mjs → chunk-QUQL4437.mjs} +12 -11
- package/dist/development/{chunk-RJYABSBD.mjs → chunk-S54KXAEJ.mjs} +6 -6
- package/dist/development/{chunk-D6LUOGOQ.js → chunk-SRID2YZ2.js} +10 -10
- package/dist/{production/chunk-Y6IFXO7V.js → development/chunk-XEJDWL2B.js} +7 -7
- package/dist/{production/context-ByvtofY2.d.mts → development/context-m8rizgnE.d.mts} +2 -2
- 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 +3 -3
- package/dist/development/dom-export.d.ts +3 -3
- 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-BLiUx67a.d.ts} +3 -3
- package/dist/{production/index-react-server-client-DY04-103.d.mts → development/index-react-server-client-CdKROblb.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-BOdXz9dK.d.ts → browser-D3uq9sI1.d.ts} +2 -2
- package/dist/production/{browser-3AnU12UI.d.mts → browser-nIQ4Nsyi.d.mts} +2 -2
- package/dist/{development/chunk-4YRVXM2U.js → production/chunk-EAQNHM3N.js} +7 -7
- package/dist/production/{chunk-6S4627ZB.mjs → chunk-NALGHHKE.mjs} +6 -6
- package/dist/production/{chunk-JAKZPQZC.mjs → chunk-Q65P7S7Y.mjs} +12 -11
- package/dist/production/{chunk-PNZCCTKT.js → chunk-SKEDDLRM.js} +100 -99
- package/dist/production/{chunk-HUBUW7R3.js → chunk-Y7DNFQZP.js} +10 -10
- package/dist/{development/context-ByvtofY2.d.mts → production/context-m8rizgnE.d.mts} +2 -2
- 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 +3 -3
- package/dist/production/dom-export.d.ts +3 -3
- 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-BLiUx67a.d.ts} +3 -3
- package/dist/{development/index-react-server-client-DY04-103.d.mts → production/index-react-server-client-CdKROblb.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/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.16.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -325,7 +325,7 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function createURL(to) {
|
|
328
|
-
return createBrowserURLImpl(to);
|
|
328
|
+
return createBrowserURLImpl(window2, to);
|
|
329
329
|
}
|
|
330
330
|
let history = {
|
|
331
331
|
get action() {
|
|
@@ -365,10 +365,10 @@ function getUrlBasedHistory(getLocation, createHref2, validateLocation, options
|
|
|
365
365
|
};
|
|
366
366
|
return history;
|
|
367
367
|
}
|
|
368
|
-
function createBrowserURLImpl(to, isAbsolute = false) {
|
|
368
|
+
function createBrowserURLImpl(windowImpl, to, isAbsolute = false) {
|
|
369
369
|
let base = "http://localhost";
|
|
370
|
-
if (
|
|
371
|
-
base =
|
|
370
|
+
if (windowImpl) {
|
|
371
|
+
base = windowImpl.location.origin !== "null" ? windowImpl.location.origin : windowImpl.location.href;
|
|
372
372
|
}
|
|
373
373
|
invariant(base, "No window.location.(origin|href) available to create URL");
|
|
374
374
|
let href = typeof to === "string" ? to : createPath(to);
|
|
@@ -2856,7 +2856,7 @@ function createRouter(init) {
|
|
|
2856
2856
|
if (redirect2.response.headers.has("X-Remix-Reload-Document")) {
|
|
2857
2857
|
isDocumentReload = true;
|
|
2858
2858
|
} else if (isAbsoluteUrl(location)) {
|
|
2859
|
-
const url = createBrowserURLImpl(location, true);
|
|
2859
|
+
const url = createBrowserURLImpl(routerWindow, location, true);
|
|
2860
2860
|
isDocumentReload = // Hard reload if it's an absolute URL to a new origin
|
|
2861
2861
|
url.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
2862
2862
|
stripBasename(url.pathname, basename) == null;
|
|
@@ -9727,7 +9727,7 @@ function RSCPrefetchPageLinksImpl({
|
|
|
9727
9727
|
let url = singleFetchUrl(
|
|
9728
9728
|
page,
|
|
9729
9729
|
basename,
|
|
9730
|
-
future.
|
|
9730
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
9731
9731
|
"rsc"
|
|
9732
9732
|
);
|
|
9733
9733
|
let hasSomeRoutesWithShouldRevalidate = false;
|
|
@@ -9745,7 +9745,7 @@ function RSCPrefetchPageLinksImpl({
|
|
|
9745
9745
|
return [url.pathname + url.search];
|
|
9746
9746
|
}, [
|
|
9747
9747
|
basename,
|
|
9748
|
-
future.
|
|
9748
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
9749
9749
|
page,
|
|
9750
9750
|
location,
|
|
9751
9751
|
nextMatches
|
|
@@ -9808,7 +9808,7 @@ function PrefetchPageLinksImpl({
|
|
|
9808
9808
|
let url = singleFetchUrl(
|
|
9809
9809
|
page,
|
|
9810
9810
|
basename,
|
|
9811
|
-
future.
|
|
9811
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
9812
9812
|
"data"
|
|
9813
9813
|
);
|
|
9814
9814
|
if (foundOptOutRoute && routesParams.size > 0) {
|
|
@@ -9820,7 +9820,7 @@ function PrefetchPageLinksImpl({
|
|
|
9820
9820
|
return [url.pathname + url.search];
|
|
9821
9821
|
}, [
|
|
9822
9822
|
basename,
|
|
9823
|
-
future.
|
|
9823
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
9824
9824
|
loaderData,
|
|
9825
9825
|
location,
|
|
9826
9826
|
manifest,
|
|
@@ -10233,7 +10233,7 @@ var isBrowser2 = typeof window !== "undefined" && typeof window.document !== "un
|
|
|
10233
10233
|
try {
|
|
10234
10234
|
if (isBrowser2) {
|
|
10235
10235
|
window.__reactRouterVersion = // @ts-expect-error
|
|
10236
|
-
"7.
|
|
10236
|
+
"7.16.0";
|
|
10237
10237
|
}
|
|
10238
10238
|
} catch (e) {
|
|
10239
10239
|
}
|
|
@@ -11282,6 +11282,7 @@ function createStaticRouter(routes, context, opts = {}) {
|
|
|
11282
11282
|
return {
|
|
11283
11283
|
v8_middleware: false,
|
|
11284
11284
|
v8_passThroughRequests: false,
|
|
11285
|
+
v8_trailingSlashAwareDataRequests: false,
|
|
11285
11286
|
...opts?.future
|
|
11286
11287
|
};
|
|
11287
11288
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.16.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
withComponentProps,
|
|
55
55
|
withErrorBoundaryProps,
|
|
56
56
|
withHydrateFallbackProps
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-QUQL4437.mjs";
|
|
58
58
|
|
|
59
59
|
// lib/dom/ssr/server.tsx
|
|
60
60
|
import * as React from "react";
|
|
@@ -144,7 +144,7 @@ function createRoutesStub(routes, _context) {
|
|
|
144
144
|
future: {
|
|
145
145
|
v8_passThroughRequests: future?.v8_passThroughRequests === true,
|
|
146
146
|
v8_middleware: future?.v8_middleware === true,
|
|
147
|
-
|
|
147
|
+
v8_trailingSlashAwareDataRequests: future?.v8_trailingSlashAwareDataRequests === true
|
|
148
148
|
},
|
|
149
149
|
manifest: {
|
|
150
150
|
routes: {},
|
|
@@ -856,7 +856,7 @@ function getNormalizedPath(request, basename, future) {
|
|
|
856
856
|
basename = basename || "/";
|
|
857
857
|
let url = new URL(request.url);
|
|
858
858
|
let pathname = url.pathname;
|
|
859
|
-
if (future?.
|
|
859
|
+
if (future?.v8_trailingSlashAwareDataRequests) {
|
|
860
860
|
if (pathname.endsWith("/_.data")) {
|
|
861
861
|
pathname = pathname.replace(/_\.data$/, "");
|
|
862
862
|
} else {
|
|
@@ -1252,7 +1252,7 @@ function derive(build, mode) {
|
|
|
1252
1252
|
build.routeDiscovery.manifestPath,
|
|
1253
1253
|
build.basename
|
|
1254
1254
|
);
|
|
1255
|
-
if (requestUrl.pathname === manifestUrl) {
|
|
1255
|
+
if (build.routeDiscovery.mode === "lazy" && requestUrl.pathname === manifestUrl) {
|
|
1256
1256
|
try {
|
|
1257
1257
|
let res = await handleManifestRequest(
|
|
1258
1258
|
build,
|
|
@@ -2451,7 +2451,7 @@ function RSCStaticRouter({ getPayload }) {
|
|
|
2451
2451
|
// These flags have no runtime impact so can always be false. If we add
|
|
2452
2452
|
// flags that drive runtime behavior they'll need to be proxied through.
|
|
2453
2453
|
v8_middleware: false,
|
|
2454
|
-
|
|
2454
|
+
v8_trailingSlashAwareDataRequests: true,
|
|
2455
2455
|
// always on for RSC
|
|
2456
2456
|
v8_passThroughRequests: true
|
|
2457
2457
|
// always on for RSC
|
|
@@ -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.16.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -325,7 +325,7 @@ function getUrlBasedHistory(getLocation, createHref, validateLocation, options =
|
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
327
|
function createURL(to) {
|
|
328
|
-
return createBrowserURLImpl(to);
|
|
328
|
+
return createBrowserURLImpl(window2, to);
|
|
329
329
|
}
|
|
330
330
|
let history = {
|
|
331
331
|
get action() {
|
|
@@ -365,10 +365,10 @@ function getUrlBasedHistory(getLocation, createHref, validateLocation, options =
|
|
|
365
365
|
};
|
|
366
366
|
return history;
|
|
367
367
|
}
|
|
368
|
-
function createBrowserURLImpl(to, isAbsolute = false) {
|
|
368
|
+
function createBrowserURLImpl(windowImpl, to, isAbsolute = false) {
|
|
369
369
|
let base = "http://localhost";
|
|
370
|
-
if (
|
|
371
|
-
base =
|
|
370
|
+
if (windowImpl) {
|
|
371
|
+
base = windowImpl.location.origin !== "null" ? windowImpl.location.origin : windowImpl.location.href;
|
|
372
372
|
}
|
|
373
373
|
invariant(base, "No window.location.(origin|href) available to create URL");
|
|
374
374
|
let href = typeof to === "string" ? to : createPath(to);
|
|
@@ -2856,7 +2856,7 @@ function createRouter(init) {
|
|
|
2856
2856
|
if (redirect2.response.headers.has("X-Remix-Reload-Document")) {
|
|
2857
2857
|
isDocumentReload = true;
|
|
2858
2858
|
} else if (isAbsoluteUrl(location)) {
|
|
2859
|
-
const url = createBrowserURLImpl(location, true);
|
|
2859
|
+
const url = createBrowserURLImpl(routerWindow, location, true);
|
|
2860
2860
|
isDocumentReload = // Hard reload if it's an absolute URL to a new origin
|
|
2861
2861
|
url.origin !== routerWindow.location.origin || // Hard reload if it's an absolute URL that does not match our basename
|
|
2862
2862
|
stripBasename(url.pathname, basename) == null;
|
|
@@ -8881,7 +8881,7 @@ function RSCPrefetchPageLinksImpl({
|
|
|
8881
8881
|
let url = singleFetchUrl(
|
|
8882
8882
|
page,
|
|
8883
8883
|
basename,
|
|
8884
|
-
future.
|
|
8884
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
8885
8885
|
"rsc"
|
|
8886
8886
|
);
|
|
8887
8887
|
let hasSomeRoutesWithShouldRevalidate = false;
|
|
@@ -8899,7 +8899,7 @@ function RSCPrefetchPageLinksImpl({
|
|
|
8899
8899
|
return [url.pathname + url.search];
|
|
8900
8900
|
}, [
|
|
8901
8901
|
basename,
|
|
8902
|
-
future.
|
|
8902
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
8903
8903
|
page,
|
|
8904
8904
|
location,
|
|
8905
8905
|
nextMatches
|
|
@@ -8962,7 +8962,7 @@ function PrefetchPageLinksImpl({
|
|
|
8962
8962
|
let url = singleFetchUrl(
|
|
8963
8963
|
page,
|
|
8964
8964
|
basename,
|
|
8965
|
-
future.
|
|
8965
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
8966
8966
|
"data"
|
|
8967
8967
|
);
|
|
8968
8968
|
if (foundOptOutRoute && routesParams.size > 0) {
|
|
@@ -8974,7 +8974,7 @@ function PrefetchPageLinksImpl({
|
|
|
8974
8974
|
return [url.pathname + url.search];
|
|
8975
8975
|
}, [
|
|
8976
8976
|
basename,
|
|
8977
|
-
future.
|
|
8977
|
+
future.v8_trailingSlashAwareDataRequests,
|
|
8978
8978
|
loaderData,
|
|
8979
8979
|
location,
|
|
8980
8980
|
manifest,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }/**
|
|
2
|
-
* react-router v7.
|
|
2
|
+
* react-router v7.16.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkSRID2YZ2js = require('./chunk-SRID2YZ2.js');
|
|
18
18
|
|
|
19
19
|
// lib/dom/ssr/hydration.tsx
|
|
20
20
|
function getHydrationData({
|
|
@@ -29,12 +29,12 @@ function getHydrationData({
|
|
|
29
29
|
...state,
|
|
30
30
|
loaderData: { ...state.loaderData }
|
|
31
31
|
};
|
|
32
|
-
let initialMatches =
|
|
32
|
+
let initialMatches = _chunkSRID2YZ2js.matchRoutes.call(void 0, routes, location, basename);
|
|
33
33
|
if (initialMatches) {
|
|
34
34
|
for (let match of initialMatches) {
|
|
35
35
|
let routeId = match.route.id;
|
|
36
36
|
let routeInfo = getRouteInfo(routeId);
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkSRID2YZ2js.shouldHydrateRouteLoader.call(void 0,
|
|
38
38
|
routeId,
|
|
39
39
|
routeInfo.clientLoader,
|
|
40
40
|
routeInfo.hasLoader,
|
|
@@ -112,7 +112,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
);
|
|
115
|
-
if (
|
|
115
|
+
if (_chunkSRID2YZ2js.isRouteErrorResponse.call(void 0, error)) {
|
|
116
116
|
return /* @__PURE__ */ _react2.default.createElement(
|
|
117
117
|
ErrorWrapper,
|
|
118
118
|
{
|
|
@@ -120,7 +120,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
120
120
|
title: "Unhandled Thrown Response!"
|
|
121
121
|
},
|
|
122
122
|
/* @__PURE__ */ _react2.default.createElement("h1", { style: { fontSize: "24px" } }, error.status, " ", error.statusText),
|
|
123
|
-
|
|
123
|
+
_chunkSRID2YZ2js.ENABLE_DEV_WARNINGS ? heyDeveloper : null
|
|
124
124
|
);
|
|
125
125
|
}
|
|
126
126
|
let errorInstance;
|
|
@@ -146,7 +146,7 @@ function RSCDefaultRootErrorBoundaryImpl({
|
|
|
146
146
|
function RSCDefaultRootErrorBoundary({
|
|
147
147
|
hasRootLayout
|
|
148
148
|
}) {
|
|
149
|
-
let error =
|
|
149
|
+
let error = _chunkSRID2YZ2js.useRouteError.call(void 0, );
|
|
150
150
|
if (hasRootLayout === void 0) {
|
|
151
151
|
throw new Error("Missing 'hasRootLayout' prop");
|
|
152
152
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as HTMLFormMethod, n as FormEncType, o as LoaderFunctionArgs, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, r as RouteObject, s as History, t as MaybePromise, u as MapRoutePropertiesFunction, v as Action, L as Location, w as DataRouteMatch, x as Submission, y as RouteData, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, I as RouteBranch, J as RouteManifest, U as UIMatch, T as To, K as Path, P as Params, O as InitialEntry, Q as NonIndexRouteObject, V as LazyRouteFunction, W as IndexRouteObject, X as RouteMatch, Y as TrackedPromise } from './data-
|
|
1
|
+
import { m as HTMLFormMethod, n as FormEncType, o as LoaderFunctionArgs, p as MiddlewareEnabled, c as RouterContextProvider, q as AppLoadContext, r as RouteObject, s as History, t as MaybePromise, u as MapRoutePropertiesFunction, v as Action, L as Location, w as DataRouteMatch, x as Submission, y as RouteData, z as DataStrategyFunction, B as PatchRoutesOnNavigationFunction, E as DataRouteObject, I as RouteBranch, J as RouteManifest, U as UIMatch, T as To, K as Path, P as Params, O as InitialEntry, Q as NonIndexRouteObject, V as LazyRouteFunction, W as IndexRouteObject, X as RouteMatch, Y as TrackedPromise } from './data-U8FS-wNn.mjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
4
|
type ServerInstrumentation = {
|
|
@@ -1768,4 +1768,4 @@ interface RouteContextObject {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
declare const RouteContext: React.Context<RouteContextObject>;
|
|
1770
1770
|
|
|
1771
|
-
export { createRoutesFromElements as $, AwaitContextProvider as A, type BlockerFunction as B, type ClientInstrumentation as C, type RouteProps as D, type RouterProps as E, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type RoutesProps as J, Await as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateOptions as N, type OutletProps as O, type PathRouteProps as P, MemoryRouter as Q, type RouterInit as R, type StaticHandler as S, Navigate as T, Outlet as U, Route as V, Router as W, RouterProvider as X, Routes as Y, createMemoryRouter as Z, createRoutesFromChildren as _, type RouterProviderProps as a, renderMatches as a0, createRouter as a1, DataRouterContext as a2, DataRouterStateContext as a3, FetchersContext as a4, LocationContext as a5, NavigationContext as a6, RouteContext as a7, ViewTransitionContext as a8, hydrationRouteProperties as a9, mapRouteProperties as aa, WithComponentProps as ab, withComponentProps as ac, WithHydrateFallbackProps as ad, withHydrateFallbackProps as ae, WithErrorBoundaryProps as af, withErrorBoundaryProps as ag, type FutureConfig as ah, type CreateStaticHandlerOptions as ai, type ClientOnErrorFunction as b, type Router$1 as c, type NavigationStates as d, type Blocker as e, type RelativeRoutingType as f, type
|
|
1771
|
+
export { createRoutesFromElements as $, AwaitContextProvider as A, type BlockerFunction as B, type ClientInstrumentation as C, type RouteProps as D, type RouterProps as E, type Fetcher as F, type GetScrollPositionFunction as G, type HydrationState as H, type InstrumentRequestHandlerFunction as I, type RoutesProps as J, Await as K, type LayoutRouteProps as L, type MemoryRouterOpts as M, type NavigateOptions as N, type OutletProps as O, type PathRouteProps as P, MemoryRouter as Q, type RouterInit as R, type StaticHandler as S, Navigate as T, Outlet as U, Route as V, Router as W, RouterProvider as X, Routes as Y, createMemoryRouter as Z, createRoutesFromChildren as _, type RouterProviderProps as a, renderMatches as a0, createRouter as a1, DataRouterContext as a2, DataRouterStateContext as a3, FetchersContext as a4, LocationContext as a5, NavigationContext as a6, RouteContext as a7, ViewTransitionContext as a8, hydrationRouteProperties as a9, mapRouteProperties as aa, WithComponentProps as ab, withComponentProps as ac, WithHydrateFallbackProps as ad, withHydrateFallbackProps as ae, WithErrorBoundaryProps as af, withErrorBoundaryProps as ag, type FutureConfig as ah, type CreateStaticHandlerOptions as ai, type ClientOnErrorFunction as b, type Router$1 as c, type NavigationStates as d, type Blocker as e, type RelativeRoutingType as f, type RouterState as g, type GetScrollRestorationKeyFunction as h, type StaticHandlerContext as i, type Navigation as j, type RouterSubscriber as k, type RouterNavigateOptions as l, type RouterFetchOptions as m, type RevalidationState as n, type ServerInstrumentation as o, type InstrumentRouterFunction as p, type InstrumentRouteFunction as q, type InstrumentationHandlerResult as r, IDLE_NAVIGATION as s, IDLE_FETCHER as t, IDLE_BLOCKER as u, type Navigator as v, type AwaitProps as w, type IndexRouteProps as x, type MemoryRouterProps as y, type NavigateProps as z };
|
|
@@ -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-m8rizgnE.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-nIQ4Nsyi.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;
|
|
@@ -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;
|
|
@@ -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.16.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 _chunkXEJDWL2Bjs = require('./chunk-XEJDWL2B.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 _chunkSRID2YZ2js = require('./chunk-SRID2YZ2.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(`[${_chunkSRID2YZ2js.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
|
+
_chunkXEJDWL2Bjs.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 = _chunkSRID2YZ2js.createRouter.call(void 0, {
|
|
411
411
|
routes,
|
|
412
412
|
getContext,
|
|
413
413
|
basename: payload.basename,
|
|
414
|
-
history:
|
|
415
|
-
hydrationData:
|
|
414
|
+
history: _chunkSRID2YZ2js.createBrowserHistory.call(void 0, ),
|
|
415
|
+
hydrationData: _chunkXEJDWL2Bjs.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
|
+
_chunkSRID2YZ2js.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 = _chunkSRID2YZ2js.createContext.call(void 0, );
|
|
540
540
|
function getRSCSingleFetchDataStrategy(getRouter, ssr, basename, createFromReadableStream, fetchImplementation) {
|
|
541
|
-
let dataStrategy =
|
|
541
|
+
let dataStrategy = _chunkSRID2YZ2js.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 = _chunkSRID2YZ2js.singleFetchUrl.call(void 0, request.url, basename, trailingSlashAware, "rsc");
|
|
599
599
|
if (request.method === "GET") {
|
|
600
|
-
url =
|
|
600
|
+
url = _chunkSRID2YZ2js.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 _chunkSRID2YZ2js.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, _chunkSRID2YZ2js.ErrorResponseImpl)(res.status, res.statusText, await res.text());
|
|
610
610
|
}
|
|
611
|
-
|
|
611
|
+
_chunkSRID2YZ2js.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 = _chunkSRID2YZ2js.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
|
+
_chunkSRID2YZ2js.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(_chunkSRID2YZ2js.RSCRouterContext.Provider, { value: true }, /* @__PURE__ */ React3.createElement(_chunkXEJDWL2Bjs.RSCRouterGlobalErrorBoundary, { location: state.location }, /* @__PURE__ */ React3.createElement(_chunkSRID2YZ2js.FrameworkContext.Provider, { value: frameworkContext }, /* @__PURE__ */ React3.createElement(
|
|
777
|
+
_chunkSRID2YZ2js.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
|
+
_chunkSRID2YZ2js.invariant.call(void 0, window.__reactRouterRouteModules);
|
|
794
|
+
_chunkXEJDWL2Bjs.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 _chunkSRID2YZ2js.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 = _chunkSRID2YZ2js.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
|
+
_chunkSRID2YZ2js.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, _chunkSRID2YZ2js.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 > _chunkSRID2YZ2js.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 _chunkSRID2YZ2js.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.16.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-S54KXAEJ.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-QUQL4437.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 | {
|
|
@@ -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-m8rizgnE.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-m8rizgnE.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-CdKROblb.mjs';
|
|
3
|
+
import './data-U8FS-wNn.mjs';
|
|
4
4
|
import 'react';
|