Skip to content

Releases: fmkra/next-gallery

Release 2.1.1

26 Oct 19:06
Compare
Choose a tag to compare

Fix invalid size calculation for next Image component

Release 2.1.0

24 Dec 21:06
Compare
Choose a tag to compare

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

24 Dec 20:19
Compare
Choose a tag to compare

Fixed documentation

In version 2.0.0 property margin was renamed to gap but documentation was not updated.

Release 2.0.2

12 Dec 11:42
Compare
Choose a tag to compare

2.0.1 / 2.0.2

Fixed documentation

Removed unused files

Release 2.0.0

08 Dec 21:35
Compare
Choose a tag to compare

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.

Removed spanLastRow property in favor of lastRowBehavior