@inappstory/slide-api 0.1.46 → 0.1.48
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 +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6785,12 +6785,13 @@ class Slider {
|
|
|
6785
6785
|
return Promise.resolve();
|
|
6786
6786
|
return new Promise(resolve => {
|
|
6787
6787
|
const handler = (e) => {
|
|
6788
|
-
if (e.propertyName === "transform") {
|
|
6788
|
+
if (e.target === sliderTrack && e.propertyName === "transform") {
|
|
6789
|
+
sliderTrack.removeEventListener("transitionend", handler);
|
|
6789
6790
|
sliderTrack.style.transitionDuration = "0ms";
|
|
6790
6791
|
resolve();
|
|
6791
6792
|
}
|
|
6792
6793
|
};
|
|
6793
|
-
sliderTrack.addEventListener("transitionend", handler
|
|
6794
|
+
sliderTrack.addEventListener("transitionend", handler);
|
|
6794
6795
|
});
|
|
6795
6796
|
}
|
|
6796
6797
|
destroy() {
|
|
@@ -18012,6 +18013,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18012
18013
|
clipboardTarget;
|
|
18013
18014
|
isPromotionalCode;
|
|
18014
18015
|
state;
|
|
18016
|
+
copiedText;
|
|
18015
18017
|
msgNetworkError;
|
|
18016
18018
|
msgServiceError;
|
|
18017
18019
|
msgNoMoreCodes;
|
|
@@ -18024,6 +18026,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18024
18026
|
this.button = this.element.querySelector(".narrative-element-text-lines");
|
|
18025
18027
|
this.clipboardTarget = getTagData(element, "clipboardTarget");
|
|
18026
18028
|
this.isPromotionalCode = getTagData(element, "clipboardType") === "promocode";
|
|
18029
|
+
this.copiedText = getTagData(element, "copiedText");
|
|
18027
18030
|
this.msgNetworkError = getTagData(this.element, "msgNetworkError");
|
|
18028
18031
|
this.msgServiceError = getTagData(this.element, "msgServiceError");
|
|
18029
18032
|
this.msgNoMoreCodes = getTagData(this.element, "msgNoMoreCodes");
|
|
@@ -18218,6 +18221,9 @@ class WidgetCopy extends WidgetBase {
|
|
|
18218
18221
|
this.onWidgetComplete();
|
|
18219
18222
|
}
|
|
18220
18223
|
});
|
|
18224
|
+
if (this.copiedText) {
|
|
18225
|
+
this.widgetDeps.slideApiDeps.showToast(this.copiedText);
|
|
18226
|
+
}
|
|
18221
18227
|
}
|
|
18222
18228
|
copyToClipboard(element) {
|
|
18223
18229
|
this._select();
|