@synerise/ds-sortable 1.3.11 → 1.3.13

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,14 @@
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.3.13](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.12...@synerise/ds-sortable@1.3.13) (2026-03-20)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-sortable
9
+
10
+ ## [1.3.12](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.11...@synerise/ds-sortable@1.3.12) (2026-02-05)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-sortable
13
+
6
14
  ## [1.3.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-sortable@1.3.10...@synerise/ds-sortable@1.3.11) (2026-01-29)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-sortable
package/README.md CHANGED
@@ -28,5 +28,22 @@ import Sortable from '@synerise/ds-sortable'
28
28
 
29
29
  ## API
30
30
 
31
- | Property | Description | Type | Default |
32
- | -------- | ----------- | ---- | ------- |
31
+ ### Sortable
32
+
33
+ | Property | Description | Type | Default |
34
+ | --------------- | --------------------------------------------------------------------------------------- | --------------------------------- | ------- |
35
+ | items | Array of items to render (must have `id: string \| number`) | ItemType[] | - |
36
+ | ItemComponent | Component to render each item; receives item props + `index` and `dragHandleProps` | ComponentType<WithIndex<ItemType>> | - |
37
+ | onOrderChange | Called after a drag completes with the new order | (newOrder: ItemType[]) => void | - |
38
+ | axis | Constrain drag direction; omit for free 2D movement | 'x' / 'y' | - |
39
+ | placeholderCss | Custom styled-components CSS for the blue dashed drag placeholder | Interpolation<ThemeProps> | - |
40
+
41
+ ### SortableContainer
42
+
43
+ Lower-level DnD context for custom layouts.
44
+
45
+ | Property | Description | Type | Default |
46
+ | ------------- | -------------------------------------------------------- | ------------------------------ | ------- |
47
+ | items | Items with `id: string \| number` | ItemType[] | - |
48
+ | axis | Movement axis constraint | 'x' / 'y' | - |
49
+ | onOrderChange | Called after reorder with new order | (newOrder: ItemType[]) => void | - |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-sortable",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Sortable UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -39,7 +39,7 @@
39
39
  "@dnd-kit/modifiers": "^7.0.0",
40
40
  "@dnd-kit/sortable": "^8.0.0",
41
41
  "@dnd-kit/utilities": "^3.2.2",
42
- "@synerise/ds-utils": "^1.5.4",
42
+ "@synerise/ds-utils": "^1.7.0",
43
43
  "uuid": "^8.3.2"
44
44
  },
45
45
  "peerDependencies": {
@@ -47,5 +47,5 @@
47
47
  "react": ">=16.9.0 <= 18.3.1",
48
48
  "styled-components": "^5.3.3"
49
49
  },
50
- "gitHead": "e1a3b7417480ba1bbf0b68becf985dd2d5f5a924"
50
+ "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
51
51
  }