Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-grid-gallery

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-grid-gallery - npm Package Versions

1234

0.2.2

Diff

Changelog

Source

v0.2.2 / 2016-09-11

  • Fixes bug on small edge case whereby duplicate images causes an error (two children cannot have the same key) and subsequently only the first of any repeated image src can be rendered.
benhowell
published 0.2.1 •

Changelog

Source

v0.2.1 / 2016-09-11

  • Fixes Bug where updating an image caused wrong aspect due to thumb not resizing. Bug caused by using array index as react key rather than something unique to the image. Thanks to cust0dian for the pull request which fixes this issue by assigning src attribute as key.

  • Fixes bug where only thumbnails are updated when images props changes, meaning re-render doesn't happen until window is resized. Thanks again to cust0dian for the pull request which fixes this issue.

benhowell
published 0.2.0 •

Changelog

Source

v0.2.0 / 2016-09-03

  • Construction of thumbnail images and image rows removed from render. Thumbnails and rows now only rebuilt when container size changes.

  • selectedImages state now set via props change.

  • onSelectedImagesChange callback now called directly from onToggleSelected. Previously, a combination of setting selectedImages state and triggering onSelectedImagesChange inside componentWillUpdate caused a double render.

  • Internal image access now via state instead of props.

  • Thumbnail generation now atomic function rather than whole array at once.


benhowell
published 0.1.14 •

Changelog

Source

v0.1.14 / 2016-08-22

  • selectedImages state set on componentWillReceiveProps allowing selections from outside component to trigger state update.
benhowell
published 0.1.13 •

Changelog

Source

v0.1.13 / 2016-08-22

  • Replaced legacy ref string with ref callback. Fixes multiple react owner issue when using react-grid-gallery inside a reagent project :)
benhowell
published 0.1.12 •

Changelog

Source

v0.1.12 / 2016-08-22

  • Replaced ReactDOM.findDOMNode(this) with ref, removed react-dom deps
  • Added conditional to ensure image onClick not fired when no function specified
  • Moved CheckButton styling (color, hoverColor, selectedColor) to props
benhowell
published 0.1.11 •

Changelog

Source

v0.1.11 / 2016-08-21

  • Fixed react-dom typo
benhowell
published 0.1.10 •

Changelog

Source

v0.1.10 / 2016-08-21

  • Added option to allow disabling of lightbox image display. enableLightbox (PropType.bool, default true)

  • Added option to allow passing in of function to execute on thumbnail click. onClickThumbnail (PropType.func, default openLightbox)

benhowell
published 0.1.9 •

Changelog

Source

v0.1.9 / 2016-08-19

  • Removed darkening effect on thumbnail hover when enableImageSelection: false
benhowell
published 0.1.8 •

Changelog

Source

v0.1.8 / 2016-08-17

  • Handful of code samples and demos added to project page.
  • PropType bugs fixed on Gallery and Image
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc