@inappstory/slide-api 0.0.9 → 0.0.10
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 +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -807,7 +807,7 @@ interface SDKInterface {
|
|
|
807
807
|
*/
|
|
808
808
|
setStorySessionValue(key: string, value: string): void;
|
|
809
809
|
getStorySessionValue(key: string): string | undefined;
|
|
810
|
-
updateTimeline(slideIndex: number, action: TIMELINE_ACTION, currentTime: number, duration: number, showLoader: boolean, showError: boolean): void;
|
|
810
|
+
updateTimeline?(slideIndex: number, action: TIMELINE_ACTION, currentTime: number, duration: number, showLoader: boolean, showError: boolean): void;
|
|
811
811
|
/**
|
|
812
812
|
* Get fonts from session.cache
|
|
813
813
|
*/
|
|
@@ -846,4 +846,4 @@ type SlideApi = {
|
|
|
846
846
|
};
|
|
847
847
|
declare const getSlideApi: (_sdkInterface: SDKInterface) => SlideApi;
|
|
848
848
|
export { getSlideApi, Widgets };
|
|
849
|
-
export type { SDKInterface, SlideApi, WidgetCopyApi, WidgetDataInputApi, WidgetDateCountdownApi, WidgetMultiSlideApi, WidgetPollApi, WidgetPollLayersApi, WidgetQuestApi, WidgetQuizApi, WidgetQuizGroupedApi, WidgetRangeSliderApi, WidgetRateApi, WidgetShareApi, WidgetTestApi, WidgetVoteApi, IAnimation, WidgetsSharedDataMap, WidgetRangeSliderSharedData, WidgetPollSharedData, WidgetVoteSharedData };
|
|
849
|
+
export type { SDKInterface, SlideApi, WidgetCopyApi, WidgetDataInputApi, WidgetDateCountdownApi, WidgetMultiSlideApi, WidgetPollApi, WidgetPollLayersApi, WidgetQuestApi, WidgetQuizApi, WidgetQuizGroupedApi, WidgetRangeSliderApi, WidgetRateApi, WidgetShareApi, WidgetTestApi, WidgetVoteApi, IAnimation, WidgetsSharedDataMap, WidgetRangeSliderSharedData, WidgetPollSharedData, WidgetVoteSharedData, FontDTO };
|
package/dist/index.d.ts
CHANGED
|
@@ -807,7 +807,7 @@ interface SDKInterface {
|
|
|
807
807
|
*/
|
|
808
808
|
setStorySessionValue(key: string, value: string): void;
|
|
809
809
|
getStorySessionValue(key: string): string | undefined;
|
|
810
|
-
updateTimeline(slideIndex: number, action: TIMELINE_ACTION, currentTime: number, duration: number, showLoader: boolean, showError: boolean): void;
|
|
810
|
+
updateTimeline?(slideIndex: number, action: TIMELINE_ACTION, currentTime: number, duration: number, showLoader: boolean, showError: boolean): void;
|
|
811
811
|
/**
|
|
812
812
|
* Get fonts from session.cache
|
|
813
813
|
*/
|
|
@@ -846,4 +846,4 @@ type SlideApi = {
|
|
|
846
846
|
};
|
|
847
847
|
declare const getSlideApi: (_sdkInterface: SDKInterface) => SlideApi;
|
|
848
848
|
export { getSlideApi, Widgets };
|
|
849
|
-
export type { SDKInterface, SlideApi, WidgetCopyApi, WidgetDataInputApi, WidgetDateCountdownApi, WidgetMultiSlideApi, WidgetPollApi, WidgetPollLayersApi, WidgetQuestApi, WidgetQuizApi, WidgetQuizGroupedApi, WidgetRangeSliderApi, WidgetRateApi, WidgetShareApi, WidgetTestApi, WidgetVoteApi, IAnimation, WidgetsSharedDataMap, WidgetRangeSliderSharedData, WidgetPollSharedData, WidgetVoteSharedData };
|
|
849
|
+
export type { SDKInterface, SlideApi, WidgetCopyApi, WidgetDataInputApi, WidgetDateCountdownApi, WidgetMultiSlideApi, WidgetPollApi, WidgetPollLayersApi, WidgetQuestApi, WidgetQuizApi, WidgetQuizGroupedApi, WidgetRangeSliderApi, WidgetRateApi, WidgetShareApi, WidgetTestApi, WidgetVoteApi, IAnimation, WidgetsSharedDataMap, WidgetRangeSliderSharedData, WidgetPollSharedData, WidgetVoteSharedData, FontDTO };
|
package/dist/index.js
CHANGED
|
@@ -1153,7 +1153,10 @@ class EsModuleSdkApi {
|
|
|
1153
1153
|
return this.sdkBinding().getStorySessionValue(key);
|
|
1154
1154
|
}
|
|
1155
1155
|
updateTimeline(slideIndex, action, currentTime, duration, showLoader, showError) {
|
|
1156
|
-
this.sdkBinding().updateTimeline
|
|
1156
|
+
const updateTimeline = this.sdkBinding().updateTimeline;
|
|
1157
|
+
if (updateTimeline != null) {
|
|
1158
|
+
updateTimeline(slideIndex, action, currentTime, duration, showLoader, showError);
|
|
1159
|
+
}
|
|
1157
1160
|
}
|
|
1158
1161
|
storyPausedCallback(currentTime) { }
|
|
1159
1162
|
storyResumedCallback(currentTime) { }
|