react-router-dom 6.30.3 → 6.30.4
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 +8 -0
- package/dist/index.js +24 -32
- package/dist/index.js.map +1 -1
- package/dist/main.js +1 -1
- package/dist/react-router-dom.development.js +5 -3
- package/dist/react-router-dom.development.js.map +1 -1
- package/dist/react-router-dom.production.min.js +2 -2
- package/dist/react-router-dom.production.min.js.map +1 -1
- package/dist/server.js +2 -2
- package/dist/umd/react-router-dom.development.js +25 -31
- package/dist/umd/react-router-dom.development.js.map +1 -1
- package/dist/umd/react-router-dom.production.min.js +2 -2
- package/dist/umd/react-router-dom.production.min.js.map +1 -1
- package/package.json +3 -3
- package/server.js +2 -2
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React Router DOM v6.30.
|
|
2
|
+
* React Router DOM v6.30.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Remix Software Inc.
|
|
5
5
|
*
|
|
@@ -38,9 +38,8 @@ function shouldProcessLinkClick(event, target) {
|
|
|
38
38
|
!target || target === "_self") &&
|
|
39
39
|
// Let browser handle "target=_blank" etc.
|
|
40
40
|
!isModifiedEvent(event) // Ignore clicks with modifier keys
|
|
41
|
-
|
|
41
|
+
;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
43
|
/**
|
|
45
44
|
* Creates a URLSearchParams object using the given initializer.
|
|
46
45
|
*
|
|
@@ -224,6 +223,7 @@ try {
|
|
|
224
223
|
////////////////////////////////////////////////////////////////////////////////
|
|
225
224
|
//#region Routers
|
|
226
225
|
////////////////////////////////////////////////////////////////////////////////
|
|
226
|
+
|
|
227
227
|
function createBrowserRouter(routes, opts) {
|
|
228
228
|
return createRouter({
|
|
229
229
|
basename: opts?.basename,
|
|
@@ -315,6 +315,7 @@ function deserializeErrors(errors) {
|
|
|
315
315
|
////////////////////////////////////////////////////////////////////////////////
|
|
316
316
|
//#region Contexts
|
|
317
317
|
////////////////////////////////////////////////////////////////////////////////
|
|
318
|
+
|
|
318
319
|
const ViewTransitionContext = /*#__PURE__*/React.createContext({
|
|
319
320
|
isTransitioning: false
|
|
320
321
|
});
|
|
@@ -1203,6 +1204,7 @@ function useFormAction(action, {
|
|
|
1203
1204
|
return createPath(path);
|
|
1204
1205
|
}
|
|
1205
1206
|
// TODO: (v7) Change the useFetcher generic default from `any` to `unknown`
|
|
1207
|
+
|
|
1206
1208
|
/**
|
|
1207
1209
|
* Interacts with route loaders and actions without causing a navigation. Great
|
|
1208
1210
|
* for any interaction that stays on the same page.
|