@inappstory/slide-api 0.0.9 → 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 +9 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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;
|
|
@@ -1155,7 +1155,10 @@ class EsModuleSdkApi {
|
|
|
1155
1155
|
return this.sdkBinding().getStorySessionValue(key);
|
|
1156
1156
|
}
|
|
1157
1157
|
updateTimeline(slideIndex, action, currentTime, duration, showLoader, showError) {
|
|
1158
|
-
this.sdkBinding().updateTimeline
|
|
1158
|
+
const updateTimeline = this.sdkBinding().updateTimeline;
|
|
1159
|
+
if (updateTimeline != null) {
|
|
1160
|
+
updateTimeline(slideIndex, action, currentTime, duration, showLoader, showError);
|
|
1161
|
+
}
|
|
1159
1162
|
}
|
|
1160
1163
|
storyPausedCallback(currentTime) { }
|
|
1161
1164
|
storyResumedCallback(currentTime) { }
|
|
@@ -1560,7 +1563,7 @@ class WidgetCopy extends WidgetBase {
|
|
|
1560
1563
|
si: this.slideIndex,
|
|
1561
1564
|
wi: this.elementId,
|
|
1562
1565
|
wl: buttonText,
|
|
1563
|
-
|
|
1566
|
+
wv: clipboardTarget,
|
|
1564
1567
|
}, {
|
|
1565
1568
|
story_id: this.storyId,
|
|
1566
1569
|
slide_index: this.slideIndex,
|
|
@@ -4408,7 +4411,7 @@ class WidgetShare extends WidgetBase {
|
|
|
4408
4411
|
si: this.slideIndex,
|
|
4409
4412
|
wi: this.elementId,
|
|
4410
4413
|
wl: buttonText,
|
|
4411
|
-
|
|
4414
|
+
wv: this.shareTarget ?? "",
|
|
4412
4415
|
wa: result ? 1 : 0,
|
|
4413
4416
|
wal: via ?? "",
|
|
4414
4417
|
}, {
|
|
@@ -4440,7 +4443,7 @@ class WidgetShare extends WidgetBase {
|
|
|
4440
4443
|
});
|
|
4441
4444
|
}
|
|
4442
4445
|
else if (this.shareType === "slide") {
|
|
4443
|
-
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);
|
|
4444
4447
|
}
|
|
4445
4448
|
}
|
|
4446
4449
|
}
|