@synerise/ds-list-item 2.2.2 → 2.2.4

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,25 @@
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.2.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.3...@synerise/ds-list-item@2.2.4) (2026-10-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-list-item
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.2.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.2...@synerise/ds-list-item@2.2.3) (2026-10-26)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/Synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.2.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.1...@synerise/ds-list-item@2.2.2) (2026-10-22)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-list-item
package/CLAUDE.md CHANGED
@@ -12,7 +12,7 @@ src/
12
12
  Danger/Danger.tsx — renders DangerItem styled variant
13
13
  Divider/Divider.tsx — renders ds-divider with side margin + dashed
14
14
  Header/Header.tsx — section header row with optional tooltip icon
15
- Select/Select.tsx — select-style row (uuid key bug present)
15
+ Select/Select.tsx — select-style row
16
16
  Text/Text.tsx — default variant; all interactive logic lives here
17
17
  Text/ItemLabel.tsx — rendered <div role="menuitem"> with prefix/suffix/check slots
18
18
  Text/DynamicLabel.tsx — swaps normal label for copiedLabel via CSS transition
@@ -185,7 +185,6 @@ import ListItem, { ListWrapper, ListContextProvider, useListContext } from '@syn
185
185
  - **`size="auto"` + `renderHoverTooltip`** — `S.Wrapper` gets `height: 100%` in a tooltip, so an auto row overflows a *fixed-height* parent rather than growing it. Give it a parent that can grow.
186
186
  - **`size="auto"` + `copyable`** — `DynamicLabel` swaps only the label, not the description, so a wrapped title briefly collapses to the one-line "Copied!" and the row shrinks and regrows.
187
187
  - **`checked` in `Text` type** — renders a `CheckS` icon in the suffix slot. In `select` type, the styled component handles its own checked appearance independently via `S.SelectItem`.
188
- - **`Select.tsx` bug** — `uuid()` is called as the `key` prop on every render, generating a new key on each re-render, causing unnecessary unmount/remount cycles. (TODO comment present in source.)
189
188
  - **`copyable` boolean legacy** — when `copyable` is a plain `boolean`, it requires `copyValue` (deprecated string prop) to be set separately. Use the object form `copyable: { copyValue: '..' }` instead.
190
189
  - **`useTemporaryLabel` missing cleanup** — the `useEffect` in `useTemporaryLabel` runs on every render (no dependency array), creating a new `setTimeout` on each render. This is a bug: it resets the timer unnecessarily when other state changes.
191
190
  - **`GroupItem` uses `items?.map(ListItem)`** — passes `ListItemProps` objects directly as React elements via `.map(Component)`. This relies on all `ListItemProps` being valid props AND each item object having a `key` property (which is typed as optional). Missing `key` will produce React warnings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-list-item",
3
- "version": "2.2.2",
3
+ "version": "2.2.4",
4
4
  "description": "ListItem UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,12 +43,12 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
45
  "@floating-ui/react": "^0.27.16",
46
- "@synerise/ds-button": "^2.1.4",
47
- "@synerise/ds-divider": "^2.0.9",
48
- "@synerise/ds-icon": "^2.2.2",
49
- "@synerise/ds-popover": "^2.0.3",
50
- "@synerise/ds-tooltip": "^2.0.9",
51
- "@synerise/ds-utils": "^2.2.1",
46
+ "@synerise/ds-button": "^2.1.6",
47
+ "@synerise/ds-divider": "^2.0.11",
48
+ "@synerise/ds-icon": "^2.2.3",
49
+ "@synerise/ds-popover": "^2.1.0",
50
+ "@synerise/ds-tooltip": "^2.0.11",
51
+ "@synerise/ds-utils": "^2.2.2",
52
52
  "classnames": "^2.5.1"
53
53
  },
54
54
  "peerDependencies": {
@@ -62,5 +62,5 @@
62
62
  "@testing-library/react": "^14.0.0",
63
63
  "vitest": "^4.0.0"
64
64
  },
65
- "gitHead": "953d50843fbcbec956b6252a6185def119652282"
65
+ "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
66
66
  }