@websolutespa/bom-mixer-hooks 1.8.4 → 1.8.5
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
|
@@ -1706,7 +1706,7 @@ function pushSearchParams(router, params) {
|
|
|
1706
1706
|
}
|
|
1707
1707
|
function pushSearchParamsSilently(router, params) {
|
|
1708
1708
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
1709
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1709
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1710
1710
|
}
|
|
1711
1711
|
function replaceSearchParams(router, params) {
|
|
1712
1712
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
@@ -1714,7 +1714,7 @@ function replaceSearchParams(router, params) {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
function replaceSearchParamsSilently(router, params) {
|
|
1716
1716
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
1717
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1717
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1718
1718
|
}
|
|
1719
1719
|
function useSearchParams() {
|
|
1720
1720
|
const router = (0, import_router2.useRouter)();
|
|
@@ -1913,7 +1913,7 @@ function pushSearchParamsQs(router, value, key) {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
function pushSearchParamsQsSilently(router, value, key) {
|
|
1915
1915
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
1916
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1916
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1917
1917
|
}
|
|
1918
1918
|
function replaceSearchParamsQs(router, value, key) {
|
|
1919
1919
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
@@ -1921,7 +1921,7 @@ function replaceSearchParamsQs(router, value, key) {
|
|
|
1921
1921
|
}
|
|
1922
1922
|
function replaceSearchParamsQsSilently(router, value, key) {
|
|
1923
1923
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
1924
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1924
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1925
1925
|
}
|
|
1926
1926
|
function useSearchParamsQs(key) {
|
|
1927
1927
|
const router = (0, import_router4.useRouter)();
|
package/dist/index.mjs
CHANGED
|
@@ -1566,7 +1566,7 @@ function pushSearchParams(router, params) {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
function pushSearchParamsSilently(router, params) {
|
|
1568
1568
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
1569
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1569
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1570
1570
|
}
|
|
1571
1571
|
function replaceSearchParams(router, params) {
|
|
1572
1572
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
@@ -1574,7 +1574,7 @@ function replaceSearchParams(router, params) {
|
|
|
1574
1574
|
}
|
|
1575
1575
|
function replaceSearchParamsSilently(router, params) {
|
|
1576
1576
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
1577
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1577
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1578
1578
|
}
|
|
1579
1579
|
function useSearchParams() {
|
|
1580
1580
|
const router = useRouter();
|
|
@@ -1773,7 +1773,7 @@ function pushSearchParamsQs(router, value, key) {
|
|
|
1773
1773
|
}
|
|
1774
1774
|
function pushSearchParamsQsSilently(router, value, key) {
|
|
1775
1775
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
1776
|
-
router.push({ pathname, query }, void 0, { shallow: true });
|
|
1776
|
+
router.push({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1777
1777
|
}
|
|
1778
1778
|
function replaceSearchParamsQs(router, value, key) {
|
|
1779
1779
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
@@ -1781,7 +1781,7 @@ function replaceSearchParamsQs(router, value, key) {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
function replaceSearchParamsQsSilently(router, value, key) {
|
|
1783
1783
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
1784
|
-
router.replace({ pathname, query }, void 0, { shallow: true });
|
|
1784
|
+
router.replace({ pathname, query }, void 0, { shallow: true, scroll: false });
|
|
1785
1785
|
}
|
|
1786
1786
|
function useSearchParamsQs(key) {
|
|
1787
1787
|
const router = useRouter3();
|
package/package.json
CHANGED
|
@@ -49,7 +49,7 @@ export function pushSearchParams(router: NextRouter, params: IParams): void {
|
|
|
49
49
|
|
|
50
50
|
export function pushSearchParamsSilently(router: NextRouter, params: IParams): void {
|
|
51
51
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
52
|
-
router.push({ pathname, query }, undefined, { shallow: true });
|
|
52
|
+
router.push({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export function replaceSearchParams(router: NextRouter, params: IParams): void {
|
|
@@ -59,7 +59,7 @@ export function replaceSearchParams(router: NextRouter, params: IParams): void {
|
|
|
59
59
|
|
|
60
60
|
export function replaceSearchParamsSilently(router: NextRouter, params: IParams): void {
|
|
61
61
|
const { pathname, query } = updateSearchParams(router.asPath, params);
|
|
62
|
-
router.replace({ pathname, query }, undefined, { shallow: true });
|
|
62
|
+
router.replace({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type IParams = {
|
|
@@ -68,7 +68,7 @@ export function pushSearchParamsQs(router: NextRouter, value: IParamsQs, key?: s
|
|
|
68
68
|
|
|
69
69
|
export function pushSearchParamsQsSilently(router: NextRouter, value: IParamsQs, key?: string): void {
|
|
70
70
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
71
|
-
router.push({ pathname, query }, undefined, { shallow: true });
|
|
71
|
+
router.push({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
export function replaceSearchParamsQs(router: NextRouter, value: IParamsQs, key?: string): void {
|
|
@@ -78,7 +78,7 @@ export function replaceSearchParamsQs(router: NextRouter, value: IParamsQs, key?
|
|
|
78
78
|
|
|
79
79
|
export function replaceSearchParamsQsSilently(router: NextRouter, value: IParamsQs, key?: string): void {
|
|
80
80
|
const { pathname, query } = updateSearchParamsQs(router.asPath, value, key);
|
|
81
|
-
router.replace({ pathname, query }, undefined, { shallow: true });
|
|
81
|
+
router.replace({ pathname, query }, undefined, { shallow: true, scroll: false });
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export function useSearchParamsQs(key?: string): IUseSearchParamsQsResult {
|