@crystaldesign/widget-library 25.9.0-beta.34 → 25.9.0-beta.36
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/build/esm/index.js +3 -3
- package/package.json +2 -2
package/build/esm/index.js
CHANGED
|
@@ -819,13 +819,13 @@ function useGallery(_ref) {
|
|
|
819
819
|
var _swiper$params;
|
|
820
820
|
setCurrentMediaIndex(mediaIndex);
|
|
821
821
|
if (swiper !== null && swiper !== void 0 && (_swiper$params = swiper.params) !== null && _swiper$params !== void 0 && _swiper$params.loop) {
|
|
822
|
-
swiper === null || swiper === void 0 || swiper.slideToLoop(mediaIndex);
|
|
822
|
+
swiper === null || swiper === void 0 || swiper.slideToLoop(mediaIndex, 0);
|
|
823
823
|
} else {
|
|
824
|
-
swiper === null || swiper === void 0 || swiper.slideTo(mediaIndex);
|
|
824
|
+
swiper === null || swiper === void 0 || swiper.slideTo(mediaIndex, 0);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
}, [currentProductId]);
|
|
828
|
+
}, [currentProductId, swiper]);
|
|
829
829
|
var hasSirvMedia = useMemo(function () {
|
|
830
830
|
var _loop = function _loop(i) {
|
|
831
831
|
if (medias.find(function (m) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/widget-library",
|
|
3
|
-
"version": "25.9.0-beta.
|
|
3
|
+
"version": "25.9.0-beta.36",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"storybook": "storybook dev -p 6006",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"suiteName": "widget-library",
|
|
37
37
|
"outputDirectory": "./test-reports"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "321ad3d745732c4cb2d3d41f6fb886ba19077922"
|
|
40
40
|
}
|