@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 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
@@ -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,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAGnE,OAAO,EAAE,aAAa,IAAI,gBAAgB,EAAE,CAAA;AAE5C,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAC,CAAC,+BAqF1D;AAWD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BA4IpD"}
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"}