@synerise/ds-utils 1.4.2 → 1.5.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 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
+ # [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)
7
+
8
+
9
+ ### Features
10
+
11
+ * **list-item:** submenu and header ([71fa4bf](https://github.com/synerise/synerise-design/commit/71fa4bfadd5fdb52d61dfe8fe87a9e47567e5d16))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [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)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-utils
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,5 @@
1
+ /**
2
+ * Returns a stable UUID that persists for the lifetime
3
+ * of the component instance.
4
+ */
5
+ export declare const useStableId: () => string;
@@ -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.4.2",
3
+ "version": "1.5.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": "5beb6ab5f2d77b9e98e04caab7dff20b8436078b"
44
+ "gitHead": "4e09fc37fa21ff2e27655e7bb305b136db0ca199"
45
45
  }