@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.cjs
CHANGED
|
@@ -6189,6 +6189,10 @@ class Slider {
|
|
|
6189
6189
|
createBulletPoints(count, getLayoutDirection, position) {
|
|
6190
6190
|
const bullets = document.createElement("div");
|
|
6191
6191
|
bullets.classList.add("cards-slider__navbar");
|
|
6192
|
+
// force hide bullets container for single slide
|
|
6193
|
+
if (count <= 1) {
|
|
6194
|
+
position = 0;
|
|
6195
|
+
}
|
|
6192
6196
|
if (position === 0) {
|
|
6193
6197
|
bullets.classList.add("cards-slider__navbar--position-none");
|
|
6194
6198
|
}
|
|
@@ -6226,10 +6230,6 @@ class Slider {
|
|
|
6226
6230
|
bullets.appendChild(bullet);
|
|
6227
6231
|
}
|
|
6228
6232
|
}
|
|
6229
|
-
else {
|
|
6230
|
-
// additionally hide bullets container for single slide
|
|
6231
|
-
bullets.classList.add("hidden");
|
|
6232
|
-
}
|
|
6233
6233
|
// const onUpdateActiveIndex = (activeIndex: number) => {
|
|
6234
6234
|
// if (activeIndex >= 0 && activeIndex < count) {
|
|
6235
6235
|
// for (const bullet of bullets.querySelectorAll(".cards-slider__bullet--active")) {
|
|
@@ -7673,7 +7673,7 @@ class WidgetTimer extends WidgetBase {
|
|
|
7673
7673
|
}
|
|
7674
7674
|
mountTimerGroup(timerRenderer) {
|
|
7675
7675
|
const time = this.getCurrentTime();
|
|
7676
|
-
const content = this.
|
|
7676
|
+
const content = this.element.querySelector(".narrative-element-text-lines");
|
|
7677
7677
|
content.innerHTML = "";
|
|
7678
7678
|
const timerGroup = timerRenderer.render(time);
|
|
7679
7679
|
content.appendChild(timerGroup);
|