Releases: fmkra/next-gallery
Release 2.1.1
Release 2.1.0
Add nextImageProps to Image type
Image type now has additional property nextImageProps which allows to pass additional props to nextjs' Image component
Release 2.0.3
Fixed documentation
In version 2.0.0 property margin was renamed to gap but documentation was not updated.
Release 2.0.2
2.0.1 / 2.0.2
Fixed documentation
Removed unused files
Release 2.0.0
Moved resize handling from JS to CSS
Image dimensions are now determined in the initial component render and stored in CSS variables. It allows to server render the component with images of proper dimensions. If the Gallery component is used as a Server Component, it is shipped to the user with 0kB of JS.
Removed all state logic
Including initialState property as well as state and setState arguments of overlay function if favor of user defined state management (for example using react context API).
Removed name optional attribute of images property
Also changed first (and now only) overlay function argument from name to index which is the element index in images array.