@websolutespa/bom-mixer-hooks 1.8.5 → 1.8.7
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 },
|
|
1709
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1717
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
1718
1718
|
}
|
|
1719
1719
|
function useSearchParams() {
|
|
1720
1720
|
const router = (0, import_router2.useRouter)();
|
|
@@ -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 },
|
|
1836
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1844
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
1845
1845
|
}
|
|
1846
1846
|
function useSearchParamsEncoded(key) {
|
|
1847
1847
|
const router = (0, import_router3.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 },
|
|
1916
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1924
|
+
router.replace(pathname, { pathname, query }, { 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 },
|
|
1569
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1577
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
1578
1578
|
}
|
|
1579
1579
|
function useSearchParams() {
|
|
1580
1580
|
const router = useRouter();
|
|
@@ -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 },
|
|
1696
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1704
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
1705
1705
|
}
|
|
1706
1706
|
function useSearchParamsEncoded(key) {
|
|
1707
1707
|
const router = useRouter2();
|
|
@@ -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 },
|
|
1776
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
1784
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
1785
1785
|
}
|
|
1786
1786
|
function useSearchParamsQs(key) {
|
|
1787
1787
|
const router = useRouter3();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@websolutespa/bom-mixer-hooks",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.7",
|
|
4
4
|
"description": "Mixer Hooks module of the BOM Repository",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bom",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@websolutespa/bom-mixer-models": "*",
|
|
29
29
|
"@websolutespa/bom-mixer-store": "*",
|
|
30
30
|
"framer-motion": ">= 7.2.1",
|
|
31
|
-
"iron-session": ">=
|
|
31
|
+
"iron-session": ">= 8.0.3",
|
|
32
32
|
"next": ">= 14.1.4",
|
|
33
33
|
"react-dom": ">= 18.2.0",
|
|
34
34
|
"react": ">= 18.2.0",
|
|
@@ -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 },
|
|
52
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
62
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type IParams = {
|
|
@@ -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 },
|
|
109
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
119
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
export type IParamsEncoded = {
|
|
@@ -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 },
|
|
71
|
+
router.push(pathname, { pathname, query }, { 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 },
|
|
81
|
+
router.replace(pathname, { pathname, query }, { shallow: true, scroll: false });
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
export function useSearchParamsQs(key?: string): IUseSearchParamsQsResult {
|