@inappstory/slide-api 0.1.46 → 0.1.47
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 -0
- 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 +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -18012,6 +18012,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18012
18012
|
clipboardTarget;
|
|
18013
18013
|
isPromotionalCode;
|
|
18014
18014
|
state;
|
|
18015
|
+
copiedText;
|
|
18015
18016
|
msgNetworkError;
|
|
18016
18017
|
msgServiceError;
|
|
18017
18018
|
msgNoMoreCodes;
|
|
@@ -18024,6 +18025,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18024
18025
|
this.button = this.element.querySelector(".narrative-element-text-lines");
|
|
18025
18026
|
this.clipboardTarget = getTagData(element, "clipboardTarget");
|
|
18026
18027
|
this.isPromotionalCode = getTagData(element, "clipboardType") === "promocode";
|
|
18028
|
+
this.copiedText = getTagData(element, "copiedText");
|
|
18027
18029
|
this.msgNetworkError = getTagData(this.element, "msgNetworkError");
|
|
18028
18030
|
this.msgServiceError = getTagData(this.element, "msgServiceError");
|
|
18029
18031
|
this.msgNoMoreCodes = getTagData(this.element, "msgNoMoreCodes");
|
|
@@ -18218,6 +18220,9 @@ class WidgetCopy extends WidgetBase {
|
|
|
18218
18220
|
this.onWidgetComplete();
|
|
18219
18221
|
}
|
|
18220
18222
|
});
|
|
18223
|
+
if (this.copiedText) {
|
|
18224
|
+
this.widgetDeps.slideApiDeps.showToast(this.copiedText);
|
|
18225
|
+
}
|
|
18221
18226
|
}
|
|
18222
18227
|
copyToClipboard(element) {
|
|
18223
18228
|
this._select();
|