@websolutespa/bom-mixer-hooks 1.8.5 → 1.8.6
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
CHANGED
package/dist/index.js
CHANGED
|
@@ -1833,7 +1833,7 @@ function pushSearchParamsEncoded(router, value, key) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
function pushSearchParamsEncodedSilently(router, value, key) {
|
|
1835
1835
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
1836
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1836
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1837
1837
|
}
|
|
1838
1838
|
function replaceSearchParamsEncoded(router, value, key) {
|
|
1839
1839
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
@@ -1841,7 +1841,7 @@ function replaceSearchParamsEncoded(router, value, key) {
|
|
|
1841
1841
|
}
|
|
1842
1842
|
function replaceSearchParamsEncodedSilently(router, value, key) {
|
|
1843
1843
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
1844
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1844
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1845
1845
|
}
|
|
1846
1846
|
function useSearchParamsEncoded(key) {
|
|
1847
1847
|
const router = (0, import_router3.useRouter)();
|
package/dist/index.mjs
CHANGED
|
@@ -1693,7 +1693,7 @@ function pushSearchParamsEncoded(router, value, key) {
|
|
|
1693
1693
|
}
|
|
1694
1694
|
function pushSearchParamsEncodedSilently(router, value, key) {
|
|
1695
1695
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
1696
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1696
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1697
1697
|
}
|
|
1698
1698
|
function replaceSearchParamsEncoded(router, value, key) {
|
|
1699
1699
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
@@ -1701,7 +1701,7 @@ function replaceSearchParamsEncoded(router, value, key) {
|
|
|
1701
1701
|
}
|
|
1702
1702
|
function replaceSearchParamsEncodedSilently(router, value, key) {
|
|
1703
1703
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
1704
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1704
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1705
1705
|
}
|
|
1706
1706
|
function useSearchParamsEncoded(key) {
|
|
1707
1707
|
const router = useRouter2();
|
package/package.json
CHANGED
|
@@ -106,7 +106,7 @@ export function pushSearchParamsEncoded(router: NextRouter, value: IParamsEncode
|
|
|
106
106
|
|
|
107
107
|
export function pushSearchParamsEncodedSilently(router: NextRouter, value: IParamsEncoded, key?: string): void {
|
|
108
108
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
109
|
-
router.push({ pathname, query }, undefined, { shallow: true });
|
|
109
|
+
router.push({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export function replaceSearchParamsEncoded(router: NextRouter, value: IParamsEncoded, key?: string): void {
|
|
@@ -116,7 +116,7 @@ export function replaceSearchParamsEncoded(router: NextRouter, value: IParamsEnc
|
|
|
116
116
|
|
|
117
117
|
export function replaceSearchParamsEncodedSilently(router: NextRouter, value: IParamsEncoded, key?: string): void {
|
|
118
118
|
const { pathname, query } = updateSearchParamsEncoded(router.asPath, value, key);
|
|
119
|
-
router.replace({ pathname, query }, undefined, { shallow: true });
|
|
119
|
+
router.replace({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export type IParamsEncoded = {
|