@inappstory/slide-api 0.0.10 → 0.0.11

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 CHANGED
@@ -1133,8 +1133,8 @@ class EsModuleSdkApi {
1133
1133
  share(id, config) {
1134
1134
  this.sdkBinding().share(id, config);
1135
1135
  }
1136
- shareSlideScreenshot(shareId, hideElementsSelector) {
1137
- this.sdkBinding().shareSlideScreenshot(shareId, hideElementsSelector);
1136
+ shareSlideScreenshot(shareId, hideElementsSelector, shareText) {
1137
+ this.sdkBinding().shareSlideScreenshot(shareId, hideElementsSelector, shareText);
1138
1138
  }
1139
1139
  get isExistsShowStorySlide() {
1140
1140
  return true;
@@ -1563,7 +1563,7 @@ class WidgetCopy extends WidgetBase {
1563
1563
  si: this.slideIndex,
1564
1564
  wi: this.elementId,
1565
1565
  wl: buttonText,
1566
- wt: clipboardTarget,
1566
+ wv: clipboardTarget,
1567
1567
  }, {
1568
1568
  story_id: this.storyId,
1569
1569
  slide_index: this.slideIndex,
@@ -4411,7 +4411,7 @@ class WidgetShare extends WidgetBase {
4411
4411
  si: this.slideIndex,
4412
4412
  wi: this.elementId,
4413
4413
  wl: buttonText,
4414
- wt: this.shareTarget ?? "",
4414
+ wv: this.shareTarget ?? "",
4415
4415
  wa: result ? 1 : 0,
4416
4416
  wal: via ?? "",
4417
4417
  }, {
@@ -4443,7 +4443,7 @@ class WidgetShare extends WidgetBase {
4443
4443
  });
4444
4444
  }
4445
4445
  else if (this.shareType === "slide") {
4446
- this.sdkApi.shareSlideScreenshot(this.id, "[data-element-id='" + this.elementId + "']");
4446
+ this.sdkApi.shareSlideScreenshot(this.id, "[data-element-id='" + this.elementId + "']", this.shareTarget ? this.shareTarget : undefined);
4447
4447
  }
4448
4448
  }
4449
4449
  }