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

@lani.ground/react-image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lani.ground/react-image-viewer - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/cjs/components/index.js

@@ -55,2 +55,3 @@ "use strict";

$images.forEach(function (img, index) {
img.style.cursor = 'zoom-in';
img.addEventListener('click', function (e) { return openImageViewer(e, index); });

@@ -75,7 +76,2 @@ });

setModalRoot($imageViewerRoot);
return function () {
if (!$imageViewerRoot)
return;
$imageViewerRoot.remove();
};
}, []);

@@ -82,0 +78,0 @@ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { ref: imageViewerProviderRef, children: children }), isOpen &&

@@ -49,2 +49,3 @@ 'use client';

$images.forEach(function (img, index) {
img.style.cursor = 'zoom-in';
img.addEventListener('click', function (e) { return openImageViewer(e, index); });

@@ -69,7 +70,2 @@ });

setModalRoot($imageViewerRoot);
return function () {
if (!$imageViewerRoot)
return;
$imageViewerRoot.remove();
};
}, []);

@@ -76,0 +72,0 @@ return (_jsxs(_Fragment, { children: [_jsx("div", { ref: imageViewerProviderRef, children: children }), isOpen &&

4

package.json
{
"name": "@lani.ground/react-image-viewer",
"description": "A React component for viewing images in a modal",
"version": "1.0.2",
"version": "1.0.3",
"license": "MIT",

@@ -80,3 +80,3 @@ "keywords": [

},
"gitHead": "3a671178c3da40cd4555ad3781758481b767e559"
"gitHead": "e5dc53e609c8e484e3679c527d0b28b56f48009a"
}
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