@cntrl-site/components 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1944,6 +1944,10 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
1944
1944
  e.stopPropagation();
1945
1945
  return;
1946
1946
  }
1947
+ const target = e.target;
1948
+ if (target && (target.closest(`.${classes.thumbsContainer}`) || target.closest(`.${classes.thumbItem}`))) {
1949
+ return;
1950
+ }
1947
1951
  if (e.touches.length === 0 && e.changedTouches.length > 0) {
1948
1952
  const currentImage = content[currentIndex];
1949
1953
  const isCover = (currentImage == null ? void 0 : currentImage.image.objectFit) === "cover";
package/dist/index.mjs CHANGED
@@ -1942,6 +1942,10 @@ const Lightbox = ({ isOpen, onClose, content, lightboxStyles, settings, portalId
1942
1942
  e.stopPropagation();
1943
1943
  return;
1944
1944
  }
1945
+ const target = e.target;
1946
+ if (target && (target.closest(`.${classes.thumbsContainer}`) || target.closest(`.${classes.thumbItem}`))) {
1947
+ return;
1948
+ }
1945
1949
  if (e.touches.length === 0 && e.changedTouches.length > 0) {
1946
1950
  const currentImage = content[currentIndex];
1947
1951
  const isCover = (currentImage == null ? void 0 : currentImage.image.objectFit) === "cover";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",