@lynx-js/lynx-ui-sortable 3.133.1 → 3.135.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 +27 -0
- package/dist/Sortable.d.ts.map +1 -1
- package/dist/Sortable.jsx +667 -40
- package/dist/Sortable.jsx.map +1 -1
- package/dist/SortableContext.d.ts +13 -1
- package/dist/SortableContext.d.ts.map +1 -1
- package/dist/SortableContext.jsx +11 -0
- package/dist/SortableContext.jsx.map +1 -1
- package/dist/types/index.docs.d.ts +93 -0
- package/dist/types/index.docs.d.ts.map +1 -1
- package/dist/useSortable.d.ts +3 -1
- package/dist/useSortable.d.ts.map +1 -1
- package/dist/useSortable.jsx +122 -35
- package/dist/useSortable.jsx.map +1 -1
- package/package.json +1 -1
- package/src/Sortable.tsx +933 -45
- package/src/SortableContext.ts +25 -1
- package/src/types/index.docs.ts +93 -0
- package/src/useSortable.tsx +230 -74
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# @lynx-js/lynx-ui-sortable
|
|
2
2
|
|
|
3
|
+
## 3.135.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- feat(sortable): support `disabled` items that always keep their absolute position ([#220](https://github.com/lynx-family/lynx-ui/pull/220))
|
|
8
|
+
|
|
9
|
+
`SortableItem` now accepts a `disabled` prop. Disabled items cannot be dragged
|
|
10
|
+
themselves and are never displaced by other items' dragging — they always keep
|
|
11
|
+
their absolute position in the final sorted order. Other items can still
|
|
12
|
+
freely cross over them, and only the relative order of non-disabled items can
|
|
13
|
+
change.
|
|
14
|
+
|
|
15
|
+
The cross-over translate compensation is scoped to the disabled gap strictly
|
|
16
|
+
between the swap target and its previous movable neighbor, so consecutive
|
|
17
|
+
swaps across alternating locked / unlocked items land each item at the
|
|
18
|
+
expected slot without over-shooting.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- fix: delay rect refresh to avoid layout jank ([#216](https://github.com/lynx-family/lynx-ui/pull/216))
|
|
23
|
+
|
|
24
|
+
## 3.134.0
|
|
25
|
+
|
|
26
|
+
### Minor Changes
|
|
27
|
+
|
|
28
|
+
- Support dragging items inside a scrollable boundary, with auto-scroll and a sticky drag overlay. `SortableRoot` now supports `as?: 'ScrollView'` to enable setting the scrollView as the scrollable boundary. ([#211](https://github.com/lynx-family/lynx-ui/pull/211))
|
|
29
|
+
|
|
3
30
|
## 3.133.1
|
|
4
31
|
|
|
5
32
|
### Patch Changes
|
package/dist/Sortable.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Sortable.d.ts","sourceRoot":"","sources":["../src/Sortable.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAEL,aAAa,EAEd,MAAM,4BAA4B,CAAA;AAKnC,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Sortable.d.ts","sourceRoot":"","sources":["../src/Sortable.tsx"],"names":[],"mappings":"AAiBA,OAAO,EAEL,aAAa,EAEd,MAAM,4BAA4B,CAAA;AAKnC,OAAO,KAAK,EAEV,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAA;AA6D5C,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAyP1D;AAWD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAOpD"}
|