Skip to content

Releases: benhowell/react-grid-gallery

v0.3.6

07 Jun 09:54
Compare
Choose a tag to compare
  • Added optional lightbox prop showLightboxThumbnails to display thumbnails beneath the Lightbox image.

  • Added optional lightbox prop onClickLightboxThumbnail as a fn to execute when lightbox thumbnail clicked. Overrides internal function: gotoImage.

v0.3.5

04 Jun 05:32
Compare
Choose a tag to compare
  • Bumped to react 15.5.4

  • Refactored for react 16 (moved from PropTypes to prop-types package).

  • Bumped react-images to 0.5.4 which has been refactored for react 16.

  • Added theme pass-though prop PR 27. Thanks danalloway.

  • Updated acknowledgements.

v0.3.3

22 Apr 04:58
Compare
Choose a tag to compare
  • Added customOverlay functionality PR 22. Thanks ValYouW.

  • Added demo to project page for customOverlay.

  • Updated documentation

  • Updated acknowledgements

v0.3.2

06 Apr 23:22
Compare
Choose a tag to compare

v0.3.1

03 Apr 22:45
Compare
Choose a tag to compare

v0.3.1 / 2017-04-04

  • Added lightboxWillOpen and lightBoxWillClose functionality PR 20. Thanks ValYouW.

  • Updated documentation for onClickThumbnail fn issue #19

  • Updated acknowledgements

v0.3.0

13 Jan 23:45
Compare
Choose a tag to compare
  • Fixed bug where lightboxWidth does not exceed 1024px
  • Bumped react-images to 0.5.2

v0.2.10

13 Jan 09:14
Compare
Choose a tag to compare
  • Fixed bug in passing lightboxWidth prop

v0.2.9

21 Dec 08:31
Compare
Choose a tag to compare
  • Added prop to set maximum width of lightbox carousel. Defaults to 1024px.

v0.2.8

10 Dec 09:00
Compare
Choose a tag to compare
  • Updated documentation including correction of onSelectImage prop documentation.
  • More descriptive package keywords.
  • Grammatical tweaks.

v0.2.7

04 Nov 01:01
Compare
Choose a tag to compare

Breaking Changes

  • Consistent naming scheme implemented both internally and externally. External breaking change to the onImageSelected prop which has been renamed onSelectImage. All internal instances of Func refactored to Fn. handleClickImage refactored to onClickImage. handleResize refactored to onResize.

The following changes in v0.2.7 allow react-grid-gallery to be used in an (optionally) stateless way.

  • Added optional prop onClickImage. This prop takes a function and is triggered when a lightbox displayed image is clicked. Supplying this prop will override the default onClickImage function.
  • Added optional prop onClickPrev. This prop takes a function and is triggered when the left arrow in lightbox is clicked. Supplying this prop will override the default onClickPrev function.
  • Added optional prop onClickNext. This prop takes a function and is triggered when the right arrow in lightbox is clicked. Supplying this prop will override the default onClickNext function.
  • Added explicit closeLightbox function to the lightbox onClose prop.