github magicasaservice/vue-equipment v1.2.0
Release 1.2.0

2 hours ago

⚠️ Breaking Changes

  • threshold.lock defaults to 8 in MagicCarousel, MagicDrawer, MagicDraggable and MagicTray, as in MagicToast. A release within 8px is a tap and keeps its click; before, a click that moved a pixel counted as a drag.
  • MagicTray content in inset mode sits flush with its frame. It was padded by the overshoot on every side; the overshoot stays reserved outside the frame.
  • @maas/vue-primitive ^1.5 is required. It fixes asChild slots dropping the slotted element’s classes after a re-render.

🍿 Features

  • MagicTrayTrigger makes any element a drag surface for one side of the tray, inside the provider or anywhere else by id. Taps pass their click through, drags swallow it, and form fields never start a drag. Its preventEdgeNavigation prop overrides the tray option per trigger, and --magic-tray-trigger-touch-action sets how it shares touches with scrolling.
  • MagicDrawer derives progress from its position while dragging and snapping, and measures the panel only during its open and close transitions.

❗️ Bug Fixes

  • MagicDrawer sets activeSnapPoint as soon as it opens, not after the first drag or snap.
  • Links and images inside a dragged MagicTray handle or trigger, or a dragged MagicDrawer, no longer start the browser’s own drag in Chromium and WebKit.

📖 Docs

  • MagicTray documents MagicTrayTrigger, with a phone-sized sidebar demo, and every drag plugin describes threshold.lock the same way.
  • The MagicDrawer willSnapTo demo shows the pending target inside the drawer.

Full Changelog: v1.1.0...v1.2.0

Don't miss a new vue-equipment release

NewReleases is sending notifications on new releases.