lightgallery 2.6.0-beta.1 → 2.6.0-beta.2
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/lib/lightgallery.js +15 -10
- package/lib/lightgallery.js.map +1 -1
- package/lightgallery.d.ts +1 -0
- package/lightgallery.es5.js +16 -11
- package/lightgallery.es5.js.map +1 -1
- package/lightgallery.min.js +2 -2
- package/lightgallery.umd.js +16 -11
- package/lightgallery.umd.js.map +1 -1
- package/lit/lightgallery.esm.js +2 -2
- package/lit/lightgallery.umd.js +2 -2
- package/package.json +1 -1
- package/plugins/autoplay/lg-autoplay.es5.js +1 -1
- package/plugins/autoplay/lg-autoplay.min.js +1 -1
- package/plugins/autoplay/lg-autoplay.umd.js +1 -1
- package/plugins/comment/lg-comment.es5.js +1 -1
- package/plugins/comment/lg-comment.min.js +1 -1
- package/plugins/comment/lg-comment.umd.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.es5.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.min.js +1 -1
- package/plugins/fullscreen/lg-fullscreen.umd.js +1 -1
- package/plugins/hash/lg-hash.es5.js +1 -1
- package/plugins/hash/lg-hash.min.js +1 -1
- package/plugins/hash/lg-hash.umd.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.es5.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.min.js +1 -1
- package/plugins/mediumZoom/lg-medium-zoom.umd.js +1 -1
- package/plugins/pager/lg-pager.es5.js +1 -1
- package/plugins/pager/lg-pager.min.js +1 -1
- package/plugins/pager/lg-pager.umd.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.es5.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.min.js +1 -1
- package/plugins/relativeCaption/lg-relative-caption.umd.js +1 -1
- package/plugins/rotate/lg-rotate.es5.js +1 -1
- package/plugins/rotate/lg-rotate.min.js +1 -1
- package/plugins/rotate/lg-rotate.umd.js +1 -1
- package/plugins/share/lg-share.es5.js +1 -1
- package/plugins/share/lg-share.min.js +1 -1
- package/plugins/share/lg-share.umd.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.es5.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.min.js +1 -1
- package/plugins/thumbnail/lg-thumbnail.umd.js +1 -1
- package/plugins/video/lg-video.es5.js +1 -1
- package/plugins/video/lg-video.min.js +1 -1
- package/plugins/video/lg-video.umd.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.es5.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.min.js +1 -1
- package/plugins/vimeoThumbnail/lg-vimeo-thumbnail.umd.js +1 -1
- package/plugins/zoom/lg-zoom.es5.js +1 -1
- package/plugins/zoom/lg-zoom.min.js +1 -1
- package/plugins/zoom/lg-zoom.umd.js +1 -1
- package/react/Lightgallery.es5.js +17 -12
- package/react/Lightgallery.es5.js.map +1 -1
- package/react/Lightgallery.umd.js +17 -12
- package/react/Lightgallery.umd.js.map +1 -1
- package/vue/LightGalleryVue.common.js +18 -13
- package/vue/LightGalleryVue.common.js.map +1 -1
- package/vue/LightGalleryVue.umd.js +18 -13
- package/vue/LightGalleryVue.umd.js.map +1 -1
- package/vue/LightGalleryVue.umd.min.js +1 -1
- package/vue/LightGalleryVue.umd.min.js.map +1 -1
|
@@ -28,7 +28,7 @@ function __rest(s, e) {
|
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
/*!
|
|
31
|
-
* lightgallery | 2.6.0-beta.
|
|
31
|
+
* lightgallery | 2.6.0-beta.2 | August 3rd 2022
|
|
32
32
|
* http://www.lightgalleryjs.com/
|
|
33
33
|
* Copyright (c) 2020 Sachin Neravath;
|
|
34
34
|
* @license GPLv3
|
|
@@ -2716,6 +2716,15 @@ var LightGallery = /** @class */ (function () {
|
|
|
2716
2716
|
this.updateCounterTotal();
|
|
2717
2717
|
this.manageSingleSlideClassName();
|
|
2718
2718
|
};
|
|
2719
|
+
LightGallery.prototype.destroyGallery = function () {
|
|
2720
|
+
this.destroyModules(true);
|
|
2721
|
+
if (!this.settings.dynamic) {
|
|
2722
|
+
this.invalidateItems();
|
|
2723
|
+
}
|
|
2724
|
+
$LG(window).off(".lg.global" + this.lgId);
|
|
2725
|
+
this.LGel.off('.lg');
|
|
2726
|
+
this.$container.remove();
|
|
2727
|
+
};
|
|
2719
2728
|
/**
|
|
2720
2729
|
* Destroy lightGallery.
|
|
2721
2730
|
* Destroy lightGallery and its plugin instances completely
|
|
@@ -2730,17 +2739,13 @@ var LightGallery = /** @class */ (function () {
|
|
|
2730
2739
|
*
|
|
2731
2740
|
*/
|
|
2732
2741
|
LightGallery.prototype.destroy = function () {
|
|
2733
|
-
var _this = this;
|
|
2734
2742
|
var closeTimeout = this.closeGallery(true);
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
_this.LGel.off('.lg');
|
|
2742
|
-
_this.$container.remove();
|
|
2743
|
-
}, closeTimeout);
|
|
2743
|
+
if (closeTimeout) {
|
|
2744
|
+
setTimeout(this.destroyGallery.bind(this), closeTimeout);
|
|
2745
|
+
}
|
|
2746
|
+
else {
|
|
2747
|
+
this.destroyGallery();
|
|
2748
|
+
}
|
|
2744
2749
|
return closeTimeout;
|
|
2745
2750
|
};
|
|
2746
2751
|
return LightGallery;
|
|
@@ -2919,7 +2924,7 @@ var LG = function (_a) {
|
|
|
2919
2924
|
return function cleanup() {
|
|
2920
2925
|
lightGallery$1.destroy();
|
|
2921
2926
|
};
|
|
2922
|
-
}, []);
|
|
2927
|
+
}, [registerEvents, restProps]);
|
|
2923
2928
|
return (createElement("div", { className: "lg-react-element " + (elementClassNames ? elementClassNames : ''), ref: $lg }, children));
|
|
2924
2929
|
};
|
|
2925
2930
|
|