react-router 7.9.0-pre.1 → 7.9.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 +11 -8
- package/dist/development/{chunk-AVXIT45F.mjs → chunk-AKKEMMKB.mjs} +2 -2
- package/dist/development/{chunk-QZH3B547.mjs → chunk-S5YDGZLY.mjs} +2 -2
- package/dist/development/{chunk-XYB2GISA.js → chunk-UGCJQSTX.js} +131 -131
- package/dist/development/{chunk-RGB6BZUL.js → chunk-VHEBI3C5.js} +1 -1
- 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 +96 -96
- 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-IR3XRH6J.js → chunk-HDA5IKPB.js} +131 -131
- package/dist/production/{chunk-BQLQLXP4.mjs → chunk-MOZTWV63.mjs} +2 -2
- package/dist/production/{chunk-A6EU7LHU.js → chunk-VNPMQDPD.js} +1 -1
- package/dist/production/{chunk-WMHWIEJV.mjs → chunk-WOZJCBVO.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 +96 -96
- 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.0
|
|
2
|
+
* react-router v7.9.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -8964,7 +8964,7 @@ var isBrowser = typeof window !== "undefined" && typeof window.document !== "und
|
|
|
8964
8964
|
try {
|
|
8965
8965
|
if (isBrowser) {
|
|
8966
8966
|
window.__reactRouterVersion = // @ts-expect-error
|
|
8967
|
-
"7.9.0
|
|
8967
|
+
"7.9.0";
|
|
8968
8968
|
}
|
|
8969
8969
|
} catch (e) {
|
|
8970
8970
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }/**
|
|
2
|
-
* react-router v7.9.0
|
|
2
|
+
* react-router v7.9.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.0
|
|
2
|
+
* react-router v7.9.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
withComponentProps,
|
|
60
60
|
withErrorBoundaryProps,
|
|
61
61
|
withHydrateFallbackProps
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-MOZTWV63.mjs";
|
|
63
63
|
|
|
64
64
|
// lib/dom/ssr/server.tsx
|
|
65
65
|
import * as React from "react";
|
|
@@ -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.0
|
|
2
|
+
* react-router v7.9.0
|
|
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 _chunkVNPMQDPDjs = require('./chunk-VNPMQDPD.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(`[${_chunkVNPMQDPDjs.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.0
|
|
2
|
+
* react-router v7.9.0
|
|
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-WOZJCBVO.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-MOZTWV63.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.0
|
|
2
|
+
* react-router v7.9.0
|
|
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 _chunkHDA5IKPBjs = require('./chunk-HDA5IKPB.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkVNPMQDPDjs = require('./chunk-VNPMQDPD.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -58,4 +58,4 @@ var _chunkA6EU7LHUjs = require('./chunk-A6EU7LHU.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
exports.BrowserRouter =
|
|
61
|
+
exports.BrowserRouter = _chunkHDA5IKPBjs.BrowserRouter; exports.Form = _chunkHDA5IKPBjs.Form; exports.HashRouter = _chunkHDA5IKPBjs.HashRouter; exports.Link = _chunkHDA5IKPBjs.Link; exports.Links = _chunkVNPMQDPDjs.Links; exports.MemoryRouter = _chunkHDA5IKPBjs.MemoryRouter; exports.Meta = _chunkVNPMQDPDjs.Meta; exports.NavLink = _chunkHDA5IKPBjs.NavLink; exports.Navigate = _chunkHDA5IKPBjs.Navigate; exports.Outlet = _chunkHDA5IKPBjs.Outlet; exports.Route = _chunkHDA5IKPBjs.Route; exports.Router = _chunkHDA5IKPBjs.Router; exports.RouterProvider = _chunkHDA5IKPBjs.RouterProvider; exports.Routes = _chunkHDA5IKPBjs.Routes; exports.ScrollRestoration = _chunkHDA5IKPBjs.ScrollRestoration; exports.StaticRouter = _chunkHDA5IKPBjs.StaticRouter; exports.StaticRouterProvider = _chunkHDA5IKPBjs.StaticRouterProvider; exports.UNSAFE_AwaitContextProvider = _chunkVNPMQDPDjs.AwaitContextProvider; exports.UNSAFE_WithComponentProps = _chunkHDA5IKPBjs.WithComponentProps; exports.UNSAFE_WithErrorBoundaryProps = _chunkHDA5IKPBjs.WithErrorBoundaryProps; exports.UNSAFE_WithHydrateFallbackProps = _chunkHDA5IKPBjs.WithHydrateFallbackProps; exports.unstable_HistoryRouter = _chunkHDA5IKPBjs.HistoryRouter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* react-router v7.9.0
|
|
2
|
+
* react-router v7.9.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-MOZTWV63.mjs";
|
|
36
36
|
export {
|
|
37
37
|
BrowserRouter,
|
|
38
38
|
Form,
|