@msobiecki/react-marauders-path 1.16.0 → 1.17.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 +31 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -300,14 +300,37 @@ npm lint
300
300
 
301
301
  ## Project Status
302
302
 
303
- Hooks
304
-
305
- - 🚧 `useMouse`Mouse interaction handling
306
- - 🚧 `useMouse` – Unit test coverage
307
- - 🚧 `useTouch` – Touch interaction handling
308
- - 🚧 `useTouch` – Unit test coverage
309
- - 🚧 `useInteraction` – Unified mouse, touch, and keyboard interaction handling
310
- - 🚧 `useInteraction` – Unit test coverage
303
+ ### High-level Gesture Hook
304
+
305
+ - 🚧 **`useGesture`**high-level API for gesture handling
306
+ Supported gestures:
307
+ - `tap` – single tap / click
308
+ - `doubleTap` – quick double tap
309
+ - `press` / `longPress` – press and hold
310
+ - `swipe` – directional swipe
311
+ - `drag` / `pan` – track movement of finger or mouse
312
+ - `pinch` / `zoom` – two-finger pinch / zoom
313
+
314
+ ### Low-level Gesture Hooks
315
+
316
+ - 🚧 **`useTap`** – single tap / click
317
+ - 🚧 **`useDoubleTap`** – quick double tap
318
+ - 🚧 **`usePress`** – press and hold (longPress)
319
+ - 🚧 **`useDrag`** – dragging elements (MouseEvent / PointerEvent / TouchEvent)
320
+ - 🚧 **`usePinch`** – two-finger pinch / zoom
321
+
322
+ ### Pointer / Mouse Hooks (Unified)
323
+
324
+ - 🚧 **`usePointer`** – unified hook for MouseEvent, PointerEvent, and TouchEvent
325
+ Supported events:
326
+ - `pointerdown`, `pointermove`, `pointerup`, `pointerenter`, `pointerleave`, `pointercancel`
327
+ Filter by pointer type: `mouse` | `touch` | `pen`
328
+ Callback returns unified data e.g.: `x`, `y`, `button`, `type`, `isPrimary`
329
+
330
+ - 🚧 **`useMouse`** – alias for `usePointer` filtered to mouse only
331
+ Supported events:
332
+ - `mousemove`, `mousedown`, `mouseup`, `click`, `dblclick`
333
+ Buttons: `left`, `right`, `middle`
311
334
 
312
335
  ## License
313
336
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msobiecki/react-marauders-path",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22.17.1"