@mk-drag-and-drop/react 0.4.4 → 0.4.5
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/README.md +11 -7
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -461,11 +461,13 @@ enters a different DOM container, the initial side is based on the current
|
|
|
461
461
|
sortable placement position against the target midpoint on the sortable axis:
|
|
462
462
|
above or left of midpoint places before, while below or right of midpoint places
|
|
463
463
|
after. Pointer-based targeting uses the pointer as that position; rect-based
|
|
464
|
-
targeting such as `centerToCenter` uses the overlay center.
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
464
|
+
targeting such as `centerToCenter` uses the overlay center. A container-only
|
|
465
|
+
preview keeps that cross-container entry state through active recomputes until
|
|
466
|
+
the first item target in the destination list receives a before/after placement.
|
|
467
|
+
`placementBoundary` remains a same-target reversal and hysteresis control after
|
|
468
|
+
preview placement has an established movement direction; it does not decide the
|
|
469
|
+
initial side for cross-container sortable entry or delay the first movement that
|
|
470
|
+
follows midpoint-based entry into a list.
|
|
469
471
|
|
|
470
472
|
Examples may rerender a full list for simplicity, but granular state management,
|
|
471
473
|
external stores, server commits, and imperative rendering strategies are
|
|
@@ -576,8 +578,10 @@ behavior.
|
|
|
576
578
|
- `restrictToContainer(refOrResolver)`
|
|
577
579
|
|
|
578
580
|
`restrictToContainer` accepts either a React ref object or a resolver function.
|
|
579
|
-
|
|
580
|
-
|
|
581
|
+
The ref or resolver selects the bounds element at drag setup; the DOM modifier
|
|
582
|
+
remeasures that element during movement so growing or shrinking containers keep
|
|
583
|
+
constraining against current bounds. Use the DOM package directly when you are
|
|
584
|
+
building non-React integrations or imperative DOM behavior.
|
|
581
585
|
|
|
582
586
|
### Memoize Modifiers And Composed Refs
|
|
583
587
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mk-drag-and-drop/react",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"description": "React hooks and provider for the mk drag-and-drop DOM runtime.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://mkramer.dev",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
],
|
|
40
40
|
"sideEffects": false,
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@mk-drag-and-drop/dom": "^0.4.
|
|
42
|
+
"@mk-drag-and-drop/dom": "^0.4.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react": "^19.0.0"
|