6.0.0
Updates
- add eslint, prettier checks
- update react, react-dom, react-measure
- new optional ImageComponent prop on Gallery
Breaking changes
- cols props is columns
- srcset props is srcSet
- onClickPhoto is onClick
- onClick (previously onClickPhoto) returns parameters in a different order and different data:
onClick(event, {
index,
photo: photos[index],
previous: photos[index - 1] || null,
next: photos[index + 1] || null,
});
Special thanks to @smeijer for lots of guidance, ideas, and contributed code.