@synerise/ds-utils 1.1.1 → 1.2.0
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 +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/useResizeObserver/useResizeObserver.js +10 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.2.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.1.1...@synerise/ds-utils@1.2.0) (2025-06-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **factors:** relative date type ([e3d17f1](https://github.com/synerise/synerise-design/commit/e3d17f18350044322c06c6b51263d69f97ee7dba))
|
|
12
|
+
* **filter:** change dnd lib and update ux ([f5a979e](https://github.com/synerise/synerise-design/commit/f5a979e6c9e5d9c8251c3f57da8ce57c416dadab))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [1.1.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.1.0...@synerise/ds-utils@1.1.1) (2025-05-26)
|
|
7
19
|
|
|
8
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { default as usePrevious } from './usePrevious/usePrevious';
|
|
|
14
14
|
export { default as useElementInView } from './useElementInView/useElementInView';
|
|
15
15
|
export { default as useOverscrollBlock } from './useOverscrollBlock/useOverscrollBlock';
|
|
16
16
|
export { default as useResizeToFit } from './useResizeToFit/useResizeToFit';
|
|
17
|
+
export * from './testing';
|
|
17
18
|
export * from './useScrollContain/useScrollContain';
|
|
18
19
|
export * from './useSearchResults';
|
|
19
20
|
export * from './useKeyboardShortcuts/useKeyboardShortcuts';
|
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ export { default as usePrevious } from './usePrevious/usePrevious';
|
|
|
14
14
|
export { default as useElementInView } from './useElementInView/useElementInView';
|
|
15
15
|
export { default as useOverscrollBlock } from './useOverscrollBlock/useOverscrollBlock';
|
|
16
16
|
export { default as useResizeToFit } from './useResizeToFit/useResizeToFit';
|
|
17
|
+
export * from './testing';
|
|
17
18
|
export * from './useScrollContain/useScrollContain';
|
|
18
19
|
export * from './useSearchResults';
|
|
19
20
|
export * from './useKeyboardShortcuts/useKeyboardShortcuts';
|
|
@@ -4,9 +4,16 @@ var useResizeObserver = function useResizeObserver(elementRef, resizeHandler) {
|
|
|
4
4
|
dimensions = _useState[0],
|
|
5
5
|
setDimensions = _useState[1];
|
|
6
6
|
var resizeObserver = useRef(new ResizeObserver(function (entries) {
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
var runHandler = function runHandler() {
|
|
8
|
+
var contentRect = entries[0].contentRect;
|
|
9
|
+
setDimensions(contentRect);
|
|
10
|
+
resizeHandler && resizeHandler(contentRect);
|
|
11
|
+
};
|
|
12
|
+
if ('requestAnimationFrame' in window) {
|
|
13
|
+
window.requestAnimationFrame(runHandler);
|
|
14
|
+
} else {
|
|
15
|
+
setTimeout(runHandler, 0);
|
|
16
|
+
}
|
|
10
17
|
})).current;
|
|
11
18
|
var observe = useCallback(function () {
|
|
12
19
|
elementRef.current && resizeObserver.observe(elementRef.current);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Utils UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react": ">=16.9.0 <= 18.3.1",
|
|
42
42
|
"styled-components": "^5.3.3"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "93bc81d59d20bc8f3bc80c5d56ae7f7c0838380d"
|
|
45
45
|
}
|