@inappstory/slide-api 0.1.32 → 0.1.33

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
@@ -6187,6 +6187,10 @@ class Slider {
6187
6187
  createBulletPoints(count, getLayoutDirection, position) {
6188
6188
  const bullets = document.createElement("div");
6189
6189
  bullets.classList.add("cards-slider__navbar");
6190
+ // force hide bullets container for single slide
6191
+ if (count <= 1) {
6192
+ position = 0;
6193
+ }
6190
6194
  if (position === 0) {
6191
6195
  bullets.classList.add("cards-slider__navbar--position-none");
6192
6196
  }
@@ -6224,10 +6228,6 @@ class Slider {
6224
6228
  bullets.appendChild(bullet);
6225
6229
  }
6226
6230
  }
6227
- else {
6228
- // additionally hide bullets container for single slide
6229
- bullets.classList.add("hidden");
6230
- }
6231
6231
  // const onUpdateActiveIndex = (activeIndex: number) => {
6232
6232
  // if (activeIndex >= 0 && activeIndex < count) {
6233
6233
  // for (const bullet of bullets.querySelectorAll(".cards-slider__bullet--active")) {