@synerise/ds-input 2.0.10 → 2.0.11

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,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
+ ## [2.0.11](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@2.0.10...@synerise/ds-input@2.0.11) (2026-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * drop vitest peer dependency and bump vulnerable runtime deps ([2467d36](https://github.com/synerise/synerise-design/commit/2467d3606aa97141a3a2d80c3ef396e78bee285c))
12
+ * remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
13
+
14
+
15
+
16
+
17
+
6
18
  ## [2.0.10](https://github.com/synerise/synerise-design/compare/@synerise/ds-input@2.0.9...@synerise/ds-input@2.0.10) (2026-10-22)
7
19
 
8
20
  **Note:** Version bump only for package @synerise/ds-input
package/CLAUDE.md CHANGED
@@ -293,7 +293,6 @@ Styles live in `Input.styles.tsx` using `@synerise/ds-core` theme tokens. Error
293
293
  - `@synerise/ds-form-field` — `FormField` wrapper providing label, tooltip, description, errorText slots
294
294
  - `@floating-ui/react` — `useMergeRefs` for combining forwarded ref with internal wrapper ref
295
295
  - `@synerise/ds-utils` — `useResizeObserver` for `stretchToFit` auto-resize
296
- - `uuid` — generates a stable `id` per instance for `<label htmlFor>` association
297
296
  - `react-intl` — default `showText`/`hideText` strings in `PasswordInput`
298
297
 
299
298
  ## Implementation notes
package/dist/Input.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useMergeRefs } from "@floating-ui/react";
3
3
  import { forwardRef, useMemo, useRef, useState, useEffect, useCallback } from "react";
4
- import { v4 } from "uuid";
5
4
  import FormField from "@synerise/ds-form-field";
6
5
  import Icon, { CloseS } from "@synerise/ds-icon";
6
+ import { generateUuid } from "@synerise/ds-utils";
7
7
  import { useAutosizeWidth, SIZER_STYLE } from "./AutosizeInput/useAutosizeWidth.js";
8
8
  import { useStretchToFit } from "./AutosizeInput/useStretchToFit.js";
9
9
  import { ElementIcons } from "./components/ElementIcons.js";
@@ -53,7 +53,7 @@ const Input = forwardRef(({
53
53
  addonAfter,
54
54
  ...inputProps
55
55
  }, forwardedRef) => {
56
- const id = useMemo(() => v4(), []);
56
+ const id = useMemo(() => generateUuid(), []);
57
57
  const charCount = getCharCount(inputProps.value, counterLimit);
58
58
  const expandableTextAreaRef = useRef(null);
59
59
  const [expanded, setExpanded] = useState(false);
package/dist/TextArea.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { useMemo, useRef, useEffect, useCallback } from "react";
3
- import { v4 } from "uuid";
4
3
  import FormField from "@synerise/ds-form-field";
4
+ import { generateUuid } from "@synerise/ds-utils";
5
5
  import { ElementIcons } from "./components/ElementIcons.js";
6
6
  import { useElementFocus } from "./hooks/useElementFocus.js";
7
7
  import { useCounterLimit } from "./hooks/useCounterLimit.js";
@@ -28,7 +28,7 @@ const TextArea = ({
28
28
  renderCustomCounter,
29
29
  ...antdTextareaProps
30
30
  }) => {
31
- const id = useMemo(() => v4(), []);
31
+ const id = useMemo(() => generateUuid(), []);
32
32
  const charCount = getCharCount(antdTextareaProps.value, counterLimit);
33
33
  const hasErrorMessage = Boolean(errorText);
34
34
  const ref = useRef(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-input",
3
- "version": "2.0.10",
3
+ "version": "2.0.11",
4
4
  "description": "Input UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -40,24 +40,23 @@
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
42
  "@floating-ui/react": "^0.27.16",
43
- "@synerise/ds-form-field": "^2.0.9",
44
- "@synerise/ds-icon": "^2.2.2",
45
- "@synerise/ds-scrollbar": "^2.0.8",
46
- "@synerise/ds-tooltip": "^2.0.9",
47
- "@synerise/ds-utils": "^2.2.1",
43
+ "@synerise/ds-form-field": "^2.0.10",
44
+ "@synerise/ds-icon": "^2.2.3",
45
+ "@synerise/ds-scrollbar": "^2.0.9",
46
+ "@synerise/ds-tooltip": "^2.0.10",
47
+ "@synerise/ds-utils": "^2.2.2",
48
48
  "classnames": "^2.3.2",
49
- "csstype": "^2.6.9",
50
- "uuid": "^8.3.2"
49
+ "csstype": "^2.6.9"
51
50
  },
52
51
  "devDependencies": {
53
- "@testing-library/user-event": "^14.6.1"
52
+ "@testing-library/user-event": "^14.6.1",
53
+ "vitest": "4"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@synerise/ds-core": "*",
57
57
  "react": ">=16.9.0 <= 18.3.1",
58
58
  "react-intl": ">= 3.12.0 <= 6.8",
59
- "styled-components": "^5.3.3",
60
- "vitest": "4"
59
+ "styled-components": "^5.3.3"
61
60
  },
62
- "gitHead": "953d50843fbcbec956b6252a6185def119652282"
61
+ "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
63
62
  }