@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.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
|
@@ -18010,6 +18010,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18010
18010
|
clipboardTarget;
|
|
18011
18011
|
isPromotionalCode;
|
|
18012
18012
|
state;
|
|
18013
|
+
copiedText;
|
|
18013
18014
|
msgNetworkError;
|
|
18014
18015
|
msgServiceError;
|
|
18015
18016
|
msgNoMoreCodes;
|
|
@@ -18022,6 +18023,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
18022
18023
|
this.button = this.element.querySelector(".narrative-element-text-lines");
|
|
18023
18024
|
this.clipboardTarget = getTagData(element, "clipboardTarget");
|
|
18024
18025
|
this.isPromotionalCode = getTagData(element, "clipboardType") === "promocode";
|
|
18026
|
+
this.copiedText = getTagData(element, "copiedText");
|
|
18025
18027
|
this.msgNetworkError = getTagData(this.element, "msgNetworkError");
|
|
18026
18028
|
this.msgServiceError = getTagData(this.element, "msgServiceError");
|
|
18027
18029
|
this.msgNoMoreCodes = getTagData(this.element, "msgNoMoreCodes");
|
|
@@ -18216,6 +18218,9 @@ class WidgetCopy extends WidgetBase {
|
|
|
18216
18218
|
this.onWidgetComplete();
|
|
18217
18219
|
}
|
|
18218
18220
|
});
|
|
18221
|
+
if (this.copiedText) {
|
|
18222
|
+
this.widgetDeps.slideApiDeps.showToast(this.copiedText);
|
|
18223
|
+
}
|
|
18219
18224
|
}
|
|
18220
18225
|
copyToClipboard(element) {
|
|
18221
18226
|
this._select();
|