Socket
Socket
Sign inDemoInstall

lightbox.js-react

Package Overview
Dependencies
148
Maintainers
1
Versions
105
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
35
11Next

0.7.8

Diff

Changelog

Source

[0.7.8] - 2023-08-30

Added

  • Added new callbacks: onNext and onPrev - When the lightbox moves to the next image or previous image, an event is emitted, allowing the developer to be notified of when the lightbox's currently selected image has been updated

Fixed

  • Fixed image swiping bug on mobile devices. The lightbox now enables image swiping after zooming in and out of the image with pinch-to-zoom on mobile devices.
silvia-odwyer
published 0.7.7 •

Changelog

Source

[0.7.7] - 2023-08-29

Fixed

  • When the lightbox is opened, the corresponding thumbnail is displayed in the center of the device (on mobile/tablet devices) to match the selected image. For instance, if the user selects the fourth image in the gallery, the lightbox will open to display the fourth thumbnail in the center of the screen. Previously on mobile devices, the thumbnails started from the beginning, but this has been fixed.
silvia-odwyer
published 0.7.6 •

Changelog

Source

[0.7.6] - 2023-08-29

Fixed

  • For image slide rendering logic, the corresponding image object in the images prop is no longer mutated, and a new object is created and added to the array instead.
silvia-odwyer
published 0.7.5 •

Changelog

Source

[0.7.5] - 2023-08-27

Added

  • Image thumbnails move/scroll in accordance with the current image slide. For instance, if the user swipes forward three images, the thumbnail will automatically scroll also.
silvia-odwyer
published 0.7.4 •

silvia-odwyer
published 0.7.3 •

Changelog

Source

[0.7.3] - 2023-08-22

Added

  • Different image sizes for the thumbnail and original, high-resolution image can be specified via data attributes. The value of the data-lightboxjs-original data attribute specifies the high-resolution image, while the src attribute of the img element specifies the src URL for the external image that's rendered outside the lightbox.
silvia-odwyer
published 0.7.2 •

silvia-odwyer
published 0.7.1 •

silvia-odwyer
published 0.7.0 •

silvia-odwyer
published 0.6.9 •

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc