Skip to content

Releases

v0.1.2

Choose a tag to compare

@sauravhathi sauravhathi released this 10 Oct 16:43

Improvements & Fixes

  • Automatic Focus Restoration: Captures the active DOM trigger/element on modal invocation and restores focus seamlessly back to the page when the modal closes.
  • Stacked Modal Focus Stacking: Supports nested / stacked modals, sequentially restoring focus backwards through modal callers before returning to the original page element.

v0.1.1

Choose a tag to compare

@sauravhathi sauravhathi released this 09 Oct 08:27

Features & Improvements

  • URL Synchronization & Deep Linking: First-class browser URL sync (#modal= or ?modal=) with browser Back button dismissal and anchor preservation.
  • Promise-Based Dialogs: Imperative �wait modal.open(data) with typed returns and non-blocking dismissal handling.
  • Dynamic & Declarative Registration: Scoped registrations with useRegisterModal and static app-root mounting with .
  • Exit Animation Coordination: Clean transition handling with unmountDelay before unmounting from the DOM.
  • Type Safety Hardening: Solved RegisteredComponent parameter contravariance in unaugmented and augmented environments.
  • SSR Utility: Exported isBrowser() helper for universal rendering.
  • Production Performance: Zero caller re-renders via isolated context dispatchers.

v0.1.0

Choose a tag to compare

@sauravhathi sauravhathi released this 07 Oct 14:17

Type-safe, promise-based modal and dialog management for React.