0.0.3
Release 0.0.3 – Changelog Summary
A focused quality update that improves how the lightbox opens and integrates into real-world markup. You’ll get smoother clicks (including on links), small refactors for consistency, and a cleaner repo.
-
Anchor Support
Now opens images when clicking<a href="...">wrappers, not just<img>elements.
Makes it easier to use thumbnails that link to full-size media. -
Safer Click Handling
Clicks on matched elements callpreventDefault()before opening the lightbox.
Prevents accidental page navigation and ensures a reliable lightbox experience. -
Refined Listener Setup
Event binding generalized from image-only to any matched elements.
Improves compatibility with different HTML structures and reduces selector fragility. -
Internal Refactor
Code style and naming streamlined across ESM and UMD builds.
Easier to read and maintain with no behavioral changes to the public API. -
Version Bump
Library version updated to0.0.3in source and distributed bundles.
Clearer dependency tracking and package management. -
Repository Cleanup
Removed the.ideadirectory from version control.
Keeps the repository tidy and avoids editor-specific noise.
Compatibility: Backward compatible.
Full Changelog: 0.0.2...0.0.3