@synerise/ds-list-item 2.2.1 → 2.2.3
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 +19 -0
- package/CLAUDE.md +1 -2
- package/package.json +8 -8
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.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)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove per-render random keys and guard against them with a Biome plugin ([fcea7c5](https://github.com/Synerise/synerise-design/commit/fcea7c5d60b80c28cbbd191bfa2792379782a0e8))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-list-item
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.2.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-list-item@2.2.0...@synerise/ds-list-item@2.2.1) (2026-10-20)
|
|
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
|
|
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.
|
|
3
|
+
"version": "2.2.3",
|
|
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.
|
|
47
|
-
"@synerise/ds-divider": "^2.0.
|
|
48
|
-
"@synerise/ds-icon": "^2.2.
|
|
49
|
-
"@synerise/ds-popover": "^2.0.
|
|
50
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
51
|
-
"@synerise/ds-utils": "^2.2.
|
|
46
|
+
"@synerise/ds-button": "^2.1.5",
|
|
47
|
+
"@synerise/ds-divider": "^2.0.10",
|
|
48
|
+
"@synerise/ds-icon": "^2.2.3",
|
|
49
|
+
"@synerise/ds-popover": "^2.0.4",
|
|
50
|
+
"@synerise/ds-tooltip": "^2.0.10",
|
|
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": "
|
|
65
|
+
"gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
|
|
66
66
|
}
|