@synerise/ds-utils 1.4.2 → 1.5.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 +9 -21
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/useStableId/useStableId.d.ts +5 -0
- package/dist/useStableId/useStableId.js +14 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,51 +3,39 @@
|
|
|
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.
|
|
6
|
+
## [1.5.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.5.0...@synerise/ds-utils@1.5.1) (2025-12-15)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @synerise/ds-utils
|
|
9
9
|
|
|
10
|
+
# [1.5.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.4.2...@synerise/ds-utils@1.5.0) (2025-10-10)
|
|
10
11
|
|
|
12
|
+
### Features
|
|
11
13
|
|
|
14
|
+
- **list-item:** submenu and header ([71fa4bf](https://github.com/synerise/synerise-design/commit/71fa4bfadd5fdb52d61dfe8fe87a9e47567e5d16))
|
|
12
15
|
|
|
13
|
-
|
|
14
|
-
## [1.4.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.4.0...@synerise/ds-utils@1.4.1) (2025-08-28)
|
|
16
|
+
## [1.4.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.4.1...@synerise/ds-utils@1.4.2) (2025-09-16)
|
|
15
17
|
|
|
16
18
|
**Note:** Version bump only for package @synerise/ds-utils
|
|
17
19
|
|
|
20
|
+
## [1.4.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.4.0...@synerise/ds-utils@1.4.1) (2025-08-28)
|
|
18
21
|
|
|
19
|
-
|
|
20
|
-
|
|
22
|
+
**Note:** Version bump only for package @synerise/ds-utils
|
|
21
23
|
|
|
22
24
|
# [1.4.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.3.1...@synerise/ds-utils@1.4.0) (2025-07-24)
|
|
23
25
|
|
|
24
|
-
|
|
25
26
|
### Features
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
- **data-format:** conditionally apply timezone offset ([aa91c76](https://github.com/synerise/synerise-design/commit/aa91c76a88261745bbfd46e0a0dd779877931624))
|
|
32
29
|
|
|
33
30
|
## [1.3.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.3.0...@synerise/ds-utils@1.3.1) (2025-07-01)
|
|
34
31
|
|
|
35
32
|
**Note:** Version bump only for package @synerise/ds-utils
|
|
36
33
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
34
|
# [1.3.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-utils@1.2.0...@synerise/ds-utils@1.3.0) (2025-06-24)
|
|
42
35
|
|
|
43
|
-
|
|
44
36
|
### Features
|
|
45
37
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
- **factors:** array factor type ([195d328](https://github.com/synerise/synerise-design/commit/195d3286e98b5f07fc9c1e56001e6ae844b7a080))
|
|
51
39
|
|
|
52
40
|
# [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)
|
|
53
41
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as hexToRgba } from './hexToRgba/hexToRgba';
|
|
|
2
2
|
export { default as toCamelCase } from './toCamelCase/toCamelCase';
|
|
3
3
|
export { useOnClickOutside, type HandledEventsType, } from './useOnClickOutside/useOnClickOutside';
|
|
4
4
|
export { renderWithHighlight } from './renderWithHighlight/renderWithHighlight';
|
|
5
|
+
export { useStableId } from './useStableId/useStableId';
|
|
5
6
|
export { default as selectColorByLetter } from './selectColorByLetter/selectColorByLetter';
|
|
6
7
|
export { default as focusWithArrowKeys } from './focusWithArrowKeys/focusWithArrowKeys';
|
|
7
8
|
export { default as escapeRegEx } from './regex/regex';
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { default as hexToRgba } from './hexToRgba/hexToRgba';
|
|
|
2
2
|
export { default as toCamelCase } from './toCamelCase/toCamelCase';
|
|
3
3
|
export { useOnClickOutside } from './useOnClickOutside/useOnClickOutside';
|
|
4
4
|
export { renderWithHighlight } from './renderWithHighlight/renderWithHighlight';
|
|
5
|
+
export { useStableId } from './useStableId/useStableId';
|
|
5
6
|
export { default as selectColorByLetter } from './selectColorByLetter/selectColorByLetter';
|
|
6
7
|
export { default as focusWithArrowKeys } from './focusWithArrowKeys/focusWithArrowKeys';
|
|
7
8
|
export { default as escapeRegEx } from './regex/regex';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useRef } from 'react';
|
|
2
|
+
import { v4 as uuid } from 'uuid';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Returns a stable UUID that persists for the lifetime
|
|
6
|
+
* of the component instance.
|
|
7
|
+
*/
|
|
8
|
+
export var useStableId = function useStableId() {
|
|
9
|
+
var idRef = useRef();
|
|
10
|
+
if (!idRef.current) {
|
|
11
|
+
idRef.current = uuid();
|
|
12
|
+
}
|
|
13
|
+
return idRef.current;
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Utils UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
22
|
"build:watch": "npm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
|
-
"pack:ci": "
|
|
24
|
+
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
25
|
"prepublish": "npm run build",
|
|
26
26
|
"test": "jest",
|
|
27
27
|
"types": "tsc --noEmit",
|
|
@@ -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": "b1279d5354132a2bf0b6f0cfa343db4c6c928f72"
|
|
45
45
|
}
|