@synerise/ds-utils 0.28.0 → 0.28.1
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,17 @@
|
|
|
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.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@0.28.0...@synerise/ds-utils@0.28.1) (2024-07-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **table:** adjust scrollbar zindex when unstuck ([902da6f](https://github.com/synerise/synerise-design/commit/902da6f82402d6b959b3827493147b8ed407062f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [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
18
|
|
|
8
19
|
|
|
@@ -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
|
-
|
|
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.
|
|
3
|
+
"version": "0.28.1",
|
|
4
4
|
"description": "Utils UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"react": ">=16.9.0 <= 17.0.2",
|
|
41
41
|
"styled-components": "5.0.1"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "9780605713f2ee1cb62d79a8ab027058117c4e4a"
|
|
44
44
|
}
|