@inappstory/slide-api 0.1.31 → 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.cjs +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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")) {
|
|
@@ -7671,7 +7671,7 @@ class WidgetTimer extends WidgetBase {
|
|
|
7671
7671
|
}
|
|
7672
7672
|
mountTimerGroup(timerRenderer) {
|
|
7673
7673
|
const time = this.getCurrentTime();
|
|
7674
|
-
const content = this.
|
|
7674
|
+
const content = this.element.querySelector(".narrative-element-text-lines");
|
|
7675
7675
|
content.innerHTML = "";
|
|
7676
7676
|
const timerGroup = timerRenderer.render(time);
|
|
7677
7677
|
content.appendChild(timerGroup);
|