@msobiecki/react-marauders-path 1.19.0 → 1.21.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.
Files changed (2) hide show
  1. package/README.md +3 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -171,7 +171,7 @@ interface UseWheelOptions {
171
171
  }
172
172
  ```
173
173
 
174
- **Delta Data:**
174
+ **Wheel Data:**
175
175
 
176
176
  ```typescript
177
177
  interface WheelData {
@@ -196,6 +196,7 @@ Hook for handling touch swipe gestures with configurable distance and velocity t
196
196
 
197
197
  ```typescript
198
198
  interface UseSwipeOptions {
199
+ eventPointerTypes?: Array<"touch" | "mouse" | "pen">; // Default: ["touch", "mouse", "pen"]
199
200
  eventCapture?: boolean; // Default: false
200
201
  eventOnce?: boolean; // Default: false
201
202
  eventStopImmediatePropagation?: boolean; // Default: false
@@ -235,6 +236,7 @@ interface UseDragOptions {
235
236
  eventStopImmediatePropagation?: boolean; // Default: false
236
237
  threshold?: number; // Default: 0 (px) - Minimum drag distance
237
238
  container?: RefObject<HTMLElement>; // Default: window
239
+ raf?: boolean; // Default: false - Use requestAnimationFrame for batching
238
240
  }
239
241
  ```
240
242
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msobiecki/react-marauders-path",
3
- "version": "1.19.0",
3
+ "version": "1.21.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22.17.1"