@zauru-sdk/hooks 1.0.20 → 1.0.21

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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.21](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.20...v1.0.21) (2024-03-22)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/hooks
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.20](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.19...v1.0.20) (2024-03-22)
7
15
 
8
16
  **Note:** Version bump only for package @zauru-sdk/hooks
@@ -1 +1 @@
1
- export default function useWindowDimensions(): number;
1
+ export declare const useWindowDimensions: () => number;
@@ -7,7 +7,7 @@ function getWindowDimensions() {
7
7
  // Devolver un valor predeterminado si window no está definido
8
8
  return 1000;
9
9
  }
10
- export default function useWindowDimensions() {
10
+ export const useWindowDimensions = () => {
11
11
  const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions);
12
12
  useEffect(() => {
13
13
  if (typeof window !== "undefined") {
@@ -24,4 +24,4 @@ export default function useWindowDimensions() {
24
24
  }
25
25
  }, []);
26
26
  return windowDimensions;
27
- }
27
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/hooks",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Hooks reutilizables dentro de las webapps de Zauru.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -42,5 +42,5 @@
42
42
  "engines": {
43
43
  "node": ">=18.0.0"
44
44
  },
45
- "gitHead": "84391740f5024f39c8795e006bdb676d6808ed56"
45
+ "gitHead": "2b4ee5098eea60b35239818f089e724ef7c1575a"
46
46
  }
@@ -10,7 +10,7 @@ function getWindowDimensions() {
10
10
  return 1000;
11
11
  }
12
12
 
13
- export default function useWindowDimensions() {
13
+ export const useWindowDimensions = () => {
14
14
  const [windowDimensions, setWindowDimensions] = useState(getWindowDimensions);
15
15
 
16
16
  useEffect(() => {
@@ -31,4 +31,4 @@ export default function useWindowDimensions() {
31
31
  }, []);
32
32
 
33
33
  return windowDimensions;
34
- }
34
+ };