@lani.ground/react-image-viewer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -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 && |
{ | ||
"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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44191
826