@gem-sdk/swiper 0.0.11 → 0.0.12

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 0.0.11
2
+ * Swiper 0.0.12
3
3
  * Gem SDK - Swiper, Customized of swiper
4
4
  * https://swiperjs.com
5
5
  *
package/swiper-bundle.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 0.0.11
2
+ * Swiper 0.0.12
3
3
  * Gem SDK - Swiper, Customized of swiper
4
4
  * https://swiperjs.com
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 0.0.11
2
+ * Swiper 0.0.12
3
3
  * Gem SDK - Swiper, Customized of swiper
4
4
  * https://swiperjs.com
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper 0.0.11
2
+ * Swiper 0.0.12
3
3
  * Gem SDK - Swiper, Customized of swiper
4
4
  * https://swiperjs.com
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Swiper Custom Element 0.0.11
2
+ * Swiper Custom Element 0.0.12
3
3
  * Gem SDK - Swiper, Customized of swiper
4
4
  * https://swiperjs.com
5
5
  *
@@ -3652,9 +3652,10 @@
3652
3652
  if (swiper.params.cssMode || swiper.params.slidesPerView !== 'auto' && !swiper.params.autoHeight) {
3653
3653
  return;
3654
3654
  }
3655
- if (e?.target?.tagName !== 'IMG') {
3656
- return;
3657
- }
3655
+ const el = e?.target;
3656
+ // IMG, IFRAME, EMBED with width/height attributes don't change slide size — no need to call swiper.update()
3657
+ if (!el || !['IMG', 'IFRAME', 'EMBED'].includes(el.tagName)) return;
3658
+ if (el.hasAttribute('width') && el.hasAttribute('height')) return;
3658
3659
  swiper.update();
3659
3660
  }
3660
3661
 
@@ -10225,7 +10226,7 @@
10225
10226
  }
10226
10227
 
10227
10228
  /**
10228
- * Swiper 0.0.11
10229
+ * Swiper 0.0.12
10229
10230
  * Gem SDK - Swiper, Customized of swiper
10230
10231
  * https://swiperjs.com
10231
10232
  *
@@ -10567,7 +10568,7 @@
10567
10568
  }
10568
10569
 
10569
10570
  /**
10570
- * Swiper Custom Element 0.0.11
10571
+ * Swiper Custom Element 0.0.12
10571
10572
  * Gem SDK - Swiper, Customized of swiper
10572
10573
  * https://swiperjs.com
10573
10574
  *