react-router 7.9.3-pre.0 → 7.9.3
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 +10 -2
- package/dist/development/{chunk-HHJJZWWP.mjs → chunk-65XJMMLO.mjs} +2 -2
- package/dist/development/{chunk-MREZ7GBS.js → chunk-EUCGRVHH.js} +134 -134
- package/dist/development/{chunk-OUSD3CXG.js → chunk-LZYTN6SO.js} +1 -1
- package/dist/development/{chunk-TZREDCP7.mjs → chunk-NISHYRIK.mjs} +2 -2
- package/dist/development/dom-export.js +3 -3
- package/dist/development/dom-export.mjs +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.js +1 -1
- package/dist/development/index-react-server.mjs +1 -1
- package/dist/development/index.js +97 -97
- package/dist/development/index.mjs +3 -3
- package/dist/development/lib/types/internal.js +1 -1
- package/dist/development/lib/types/internal.mjs +1 -1
- package/dist/production/{chunk-AR4BV4G2.js → chunk-GWORLVRM.js} +1 -1
- package/dist/production/{chunk-YE2RU2Y2.js → chunk-LHDU32KO.js} +134 -134
- package/dist/production/{chunk-ZS4K3BVQ.mjs → chunk-LI6FX3G6.mjs} +2 -2
- package/dist/production/{chunk-RX77WZIY.mjs → chunk-VAVG4EWR.mjs} +2 -2
- package/dist/production/dom-export.js +3 -3
- package/dist/production/dom-export.mjs +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.js +1 -1
- package/dist/production/index-react-server.mjs +1 -1
- package/dist/production/index.js +97 -97
- package/dist/production/index.mjs +3 -3
- package/dist/production/lib/types/internal.js +1 -1
- package/dist/production/lib/types/internal.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
withComponentProps,
|
|
61
61
|
withErrorBoundaryProps,
|
|
62
62
|
withHydrateFallbackProps
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-VAVG4EWR.mjs";
|
|
64
64
|
|
|
65
65
|
// lib/dom/ssr/server.tsx
|
|
66
66
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -9113,7 +9113,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
9113
9113
|
try {
|
|
9114
9114
|
if (isBrowser) {
|
|
9115
9115
|
window.__reactRouterVersion = // @ts-expect-error
|
|
9116
|
-
"7.9.3
|
|
9116
|
+
"7.9.3";
|
|
9117
9117
|
}
|
|
9118
9118
|
} catch (e) {
|
|
9119
9119
|
}
|
|
@@ -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 _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"use client";
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkGWORLVRMjs = require('./chunk-GWORLVRM.js');
|
|
15
15
|
|
|
16
16
|
// lib/dom-export/dom-router-provider.tsx
|
|
17
17
|
var _react = require('react'); var React = _interopRequireWildcard(_react); var React2 = _interopRequireWildcard(_react);
|
|
@@ -180,7 +180,7 @@ function HydratedRouter(props) {
|
|
|
180
180
|
}, []);
|
|
181
181
|
React2.useEffect(() => {
|
|
182
182
|
if (process.env.NODE_ENV === "development" && criticalCss === void 0) {
|
|
183
|
-
document.querySelectorAll(`[${
|
|
183
|
+
document.querySelectorAll(`[${_chunkGWORLVRMjs.CRITICAL_CSS_DATA_ATTRIBUTE}]`).forEach((element) => element.remove());
|
|
184
184
|
}
|
|
185
185
|
}, [criticalCss]);
|
|
186
186
|
let [location, setLocation] = React2.useState(router.state.location);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import {
|
|
13
13
|
deserializeErrors,
|
|
14
14
|
getHydrationData
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LI6FX3G6.mjs";
|
|
16
16
|
import {
|
|
17
17
|
CRITICAL_CSS_DATA_ATTRIBUTE,
|
|
18
18
|
FrameworkContext,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
invariant,
|
|
30
30
|
mapRouteProperties,
|
|
31
31
|
useFogOFWarDiscovery
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-VAVG4EWR.mjs";
|
|
33
33
|
|
|
34
34
|
// lib/dom-export/dom-router-provider.tsx
|
|
35
35
|
import * as React from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkLHDU32KOjs = require('./chunk-LHDU32KO.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkGWORLVRMjs = require('./chunk-GWORLVRM.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkAR4BV4G2js = require('./chunk-AR4BV4G2.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkLHDU32KOjs.BrowserRouter; exports.Form = _chunkLHDU32KOjs.Form; exports.HashRouter = _chunkLHDU32KOjs.HashRouter; exports.Link = _chunkLHDU32KOjs.Link; exports.Links = _chunkGWORLVRMjs.Links; exports.MemoryRouter = _chunkLHDU32KOjs.MemoryRouter; exports.Meta = _chunkGWORLVRMjs.Meta; exports.NavLink = _chunkLHDU32KOjs.NavLink; exports.Navigate = _chunkLHDU32KOjs.Navigate; exports.Outlet = _chunkLHDU32KOjs.Outlet; exports.Route = _chunkLHDU32KOjs.Route; exports.Router = _chunkLHDU32KOjs.Router; exports.RouterProvider = _chunkLHDU32KOjs.RouterProvider; exports.Routes = _chunkLHDU32KOjs.Routes; exports.ScrollRestoration = _chunkLHDU32KOjs.ScrollRestoration; exports.StaticRouter = _chunkLHDU32KOjs.StaticRouter; exports.StaticRouterProvider = _chunkLHDU32KOjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkGWORLVRMjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkLHDU32KOjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkLHDU32KOjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkLHDU32KOjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkLHDU32KOjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.3
|
|
2
|
+
* react-router v7.9.3
|
|
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-VAVG4EWR.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|