@synerise/ds-utils 0.28.0 → 0.28.2

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,25 @@
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
+ ## [0.28.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.28.1...@synerise/ds-utils@0.28.2) (2024-08-06)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-utils
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.28.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.28.0...@synerise/ds-utils@0.28.1) (2024-07-31)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **table:** adjust scrollbar zindex when unstuck ([902da6f](https://github.com/synerise/synerise-design/commit/902da6f82402d6b959b3827493147b8ed407062f))
20
+
21
+
22
+
23
+
24
+
6
25
  # [0.28.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.27.0...@synerise/ds-utils@0.28.0) (2024-07-05)
7
26
 
8
27
 
@@ -4,7 +4,8 @@ type IntersectionObserverOptions = {
4
4
  threshold?: number | number[];
5
5
  };
6
6
  declare const useElementInView: <T extends HTMLElement = HTMLElement>(options: IntersectionObserverOptions, rootElementRef?: MutableRefObject<HTMLDivElement | null | undefined>) => {
7
- elementRef: MutableRefObject<T | undefined>;
7
+ isIntersecting: boolean;
8
+ elementRef: import("react").RefObject<T>;
8
9
  isVisible: boolean;
9
10
  };
10
11
  export default useElementInView;
@@ -7,7 +7,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
7
7
  import { useEffect, useRef, useState } from 'react';
8
8
 
9
9
  var useElementInView = function useElementInView(options, rootElementRef) {
10
- var elementRef = useRef();
10
+ var elementRef = useRef(null);
11
11
 
12
12
  var _useState = useState(false),
13
13
  isVisible = _useState[0],
@@ -30,6 +30,7 @@ var useElementInView = function useElementInView(options, rootElementRef) {
30
30
  };
31
31
  });
32
32
  return {
33
+ isIntersecting: isVisible,
33
34
  elementRef: elementRef,
34
35
  isVisible: isVisible
35
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-utils",
3
- "version": "0.28.0",
3
+ "version": "0.28.2",
4
4
  "description": "Utils UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-data-format": "^0.5.1",
35
+ "@synerise/ds-data-format": "^0.5.2",
36
36
  "latinize": "^0.5.0"
37
37
  },
38
38
  "peerDependencies": {
@@ -40,5 +40,5 @@
40
40
  "react": ">=16.9.0 <= 17.0.2",
41
41
  "styled-components": "5.0.1"
42
42
  },
43
- "gitHead": "6e5e5202d6c6f1c2caf6bfef799009813b437b3d"
43
+ "gitHead": "14a9cfb86e5d548d5511ed7cdb23088dcb8b9a2d"
44
44
  }