Breaking changes
ILBOptionsis now an exported type instead of a global. Import it
explicitly:import { ImageLightbox, type ILBOptions } from "imagelightbox";
- The jQuery adapter's method declarations (imageLightbox,
startImageLightbox, …) are now shipped in the imagelightbox/jquery entry
point rather than declared globally, so they are only visible where that entry
point is imported.
Bug fixes
- Fixed the style and types entries in package.json exports pointing at
files that don't exist. - data-ilb2-video autoplay now honours an explicit false instead of
treating any present value as enabled. - Fixed an error when closing a gallery with enableKeyboard: false — Escape no
longer lets the browser dismiss the dialog behind the lightbox's back. - Fixed a race condition when adding images to an open gallery with navigation
enabled, and the navigation is now properly removed when the gallery closes.
Other
- The demo page is no longer part of the npm package, cutting several megabytes
of demo images and video from the download. It remains available at
https://marekdedic.github.io/imagelightbox - Support for jQuery 4.