@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.d.cts
CHANGED
|
@@ -188,6 +188,7 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
188
188
|
private clipboardTarget;
|
|
189
189
|
private readonly isPromotionalCode;
|
|
190
190
|
private state;
|
|
191
|
+
private readonly copiedText;
|
|
191
192
|
private readonly msgNetworkError;
|
|
192
193
|
private readonly msgServiceError;
|
|
193
194
|
private readonly msgNoMoreCodes;
|
package/dist/index.d.ts
CHANGED
|
@@ -188,6 +188,7 @@ declare class WidgetCopy extends WidgetBase<WidgetCopyOptions> {
|
|
|
188
188
|
private clipboardTarget;
|
|
189
189
|
private readonly isPromotionalCode;
|
|
190
190
|
private state;
|
|
191
|
+
private readonly copiedText;
|
|
191
192
|
private readonly msgNetworkError;
|
|
192
193
|
private readonly msgServiceError;
|
|
193
194
|
private readonly msgNoMoreCodes;
|
package/dist/index.js
CHANGED
|
@@ -6783,12 +6783,13 @@ class Slider {
|
|
|
6783
6783
|
return Promise.resolve();
|
|
6784
6784
|
return new Promise(resolve => {
|
|
6785
6785
|
const handler = (e) => {
|
|
6786
|
-
if (e.propertyName === "transform") {
|
|
6786
|
+
if (e.target === sliderTrack && e.propertyName === "transform") {
|
|
6787
|
+
sliderTrack.removeEventListener("transitionend", handler);
|
|
6787
6788
|
sliderTrack.style.transitionDuration = "0ms";
|
|
6788
6789
|
resolve();
|
|
6789
6790
|
}
|
|
6790
6791
|
};
|
|
6791
|
-
sliderTrack.addEventListener("transitionend", handler
|
|
6792
|
+
sliderTrack.addEventListener("transitionend", handler);
|
|
6792
6793
|
});
|
|
6793
6794
|
}
|
|
6794
6795
|
destroy() {
|
|
@@ -18010,6 +18011,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18010
18011
|
clipboardTarget;
|
|
18011
18012
|
isPromotionalCode;
|
|
18012
18013
|
state;
|
|
18014
|
+
copiedText;
|
|
18013
18015
|
msgNetworkError;
|
|
18014
18016
|
msgServiceError;
|
|
18015
18017
|
msgNoMoreCodes;
|
|
@@ -18022,6 +18024,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18022
18024
|
this.button = this.element.querySelector(".narrative-element-text-lines");
|
|
18023
18025
|
this.clipboardTarget = getTagData(element, "clipboardTarget");
|
|
18024
18026
|
this.isPromotionalCode = getTagData(element, "clipboardType") === "promocode";
|
|
18027
|
+
this.copiedText = getTagData(element, "copiedText");
|
|
18025
18028
|
this.msgNetworkError = getTagData(this.element, "msgNetworkError");
|
|
18026
18029
|
this.msgServiceError = getTagData(this.element, "msgServiceError");
|
|
18027
18030
|
this.msgNoMoreCodes = getTagData(this.element, "msgNoMoreCodes");
|
|
@@ -18216,6 +18219,9 @@ class WidgetCopy extends WidgetBase {
|
|
|
18216
18219
|
this.onWidgetComplete();
|
|
18217
18220
|
}
|
|
18218
18221
|
});
|
|
18222
|
+
if (this.copiedText) {
|
|
18223
|
+
this.widgetDeps.slideApiDeps.showToast(this.copiedText);
|
|
18224
|
+
}
|
|
18219
18225
|
}
|
|
18220
18226
|
copyToClipboard(element) {
|
|
18221
18227
|
this._select();
|