Repository navigation
Releases
Releases · sauravhathi/react-modal-registry
v0.1.2
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
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
Type-safe, promise-based modal and dialog management for React.