@inappstory/slide-api 0.1.29 → 0.1.31
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 +241 -156
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +23 -6
- package/dist/index.d.ts +23 -6
- package/dist/index.js +241 -156
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -77,7 +77,9 @@ declare const enum TIMELINE_ACTION {
|
|
|
77
77
|
BEFORE_START = "before_start"
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
type WidgetTimerOptions = WidgetOptionsBase
|
|
80
|
+
type WidgetTimerOptions = WidgetOptionsBase & {
|
|
81
|
+
layers: Array<HTMLElement>;
|
|
82
|
+
};
|
|
81
83
|
|
|
82
84
|
declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
83
85
|
static DEFAULTS: WidgetTimerOptions;
|
|
@@ -90,6 +92,7 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
90
92
|
private rafId;
|
|
91
93
|
private effects;
|
|
92
94
|
private abortController;
|
|
95
|
+
private readonly layers;
|
|
93
96
|
constructor(element: HTMLElement, options: Partial<WidgetTimerOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
94
97
|
isDone(): boolean;
|
|
95
98
|
private fillEffects;
|
|
@@ -115,7 +118,7 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
115
118
|
static api: {
|
|
116
119
|
widgetClassName: string;
|
|
117
120
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
118
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
121
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
119
122
|
onStart: (element: HTMLElement) => void;
|
|
120
123
|
onStop: (element: HTMLElement) => void;
|
|
121
124
|
click: (element: HTMLElement) => boolean;
|
|
@@ -768,6 +771,7 @@ declare class WidgetRate extends WidgetBase<WidgetRateOptions> {
|
|
|
768
771
|
private readonly submitToStores;
|
|
769
772
|
private readonly submitToStoresMin;
|
|
770
773
|
private readonly submitToStoresMax;
|
|
774
|
+
private readonly hasSubmitButton;
|
|
771
775
|
private readonly showDialogOnLowRate;
|
|
772
776
|
private readonly showDialogueMin;
|
|
773
777
|
private readonly showDialogueMax;
|
|
@@ -775,19 +779,32 @@ declare class WidgetRate extends WidgetBase<WidgetRateOptions> {
|
|
|
775
779
|
private answerSelectDuration;
|
|
776
780
|
private elementRect;
|
|
777
781
|
constructor(element: HTMLElement, options: Partial<WidgetRateOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
782
|
+
onStart(): void;
|
|
783
|
+
onStop(): void;
|
|
778
784
|
/**
|
|
779
785
|
* Start or restart widget
|
|
780
786
|
* @param localData
|
|
781
787
|
*/
|
|
782
788
|
onRefreshUserData(localData: Record<string, any>): void;
|
|
783
|
-
private
|
|
784
|
-
private
|
|
785
|
-
private _clearSelectedStar;
|
|
789
|
+
private sendStatistic;
|
|
790
|
+
private resetState;
|
|
786
791
|
private selectStar;
|
|
787
|
-
setUserText(text: string): void;
|
|
788
792
|
private completeWidget;
|
|
793
|
+
private saveLocalData;
|
|
794
|
+
private markWidgetCompleted;
|
|
795
|
+
private saveStarSelection;
|
|
789
796
|
isDone(): boolean;
|
|
790
797
|
slideRateIsDone(): boolean;
|
|
798
|
+
private handleSubmit;
|
|
799
|
+
private getCompletionAction;
|
|
800
|
+
private submitToAppStores;
|
|
801
|
+
private openUserDialog;
|
|
802
|
+
onUserDialogComplete(userText: string): void;
|
|
803
|
+
private showToast;
|
|
804
|
+
private showSubmitButton;
|
|
805
|
+
private hideSubmitButton;
|
|
806
|
+
private fillStars;
|
|
807
|
+
private clearStars;
|
|
791
808
|
static api: {
|
|
792
809
|
widgetClassName: string;
|
|
793
810
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
package/dist/index.d.ts
CHANGED
|
@@ -77,7 +77,9 @@ declare const enum TIMELINE_ACTION {
|
|
|
77
77
|
BEFORE_START = "before_start"
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
type WidgetTimerOptions = WidgetOptionsBase
|
|
80
|
+
type WidgetTimerOptions = WidgetOptionsBase & {
|
|
81
|
+
layers: Array<HTMLElement>;
|
|
82
|
+
};
|
|
81
83
|
|
|
82
84
|
declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
83
85
|
static DEFAULTS: WidgetTimerOptions;
|
|
@@ -90,6 +92,7 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
90
92
|
private rafId;
|
|
91
93
|
private effects;
|
|
92
94
|
private abortController;
|
|
95
|
+
private readonly layers;
|
|
93
96
|
constructor(element: HTMLElement, options: Partial<WidgetTimerOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
94
97
|
isDone(): boolean;
|
|
95
98
|
private fillEffects;
|
|
@@ -115,7 +118,7 @@ declare class WidgetTimer extends WidgetBase<WidgetTimerOptions> {
|
|
|
115
118
|
static api: {
|
|
116
119
|
widgetClassName: string;
|
|
117
120
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
118
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
121
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
119
122
|
onStart: (element: HTMLElement) => void;
|
|
120
123
|
onStop: (element: HTMLElement) => void;
|
|
121
124
|
click: (element: HTMLElement) => boolean;
|
|
@@ -768,6 +771,7 @@ declare class WidgetRate extends WidgetBase<WidgetRateOptions> {
|
|
|
768
771
|
private readonly submitToStores;
|
|
769
772
|
private readonly submitToStoresMin;
|
|
770
773
|
private readonly submitToStoresMax;
|
|
774
|
+
private readonly hasSubmitButton;
|
|
771
775
|
private readonly showDialogOnLowRate;
|
|
772
776
|
private readonly showDialogueMin;
|
|
773
777
|
private readonly showDialogueMax;
|
|
@@ -775,19 +779,32 @@ declare class WidgetRate extends WidgetBase<WidgetRateOptions> {
|
|
|
775
779
|
private answerSelectDuration;
|
|
776
780
|
private elementRect;
|
|
777
781
|
constructor(element: HTMLElement, options: Partial<WidgetRateOptions>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps);
|
|
782
|
+
onStart(): void;
|
|
783
|
+
onStop(): void;
|
|
778
784
|
/**
|
|
779
785
|
* Start or restart widget
|
|
780
786
|
* @param localData
|
|
781
787
|
*/
|
|
782
788
|
onRefreshUserData(localData: Record<string, any>): void;
|
|
783
|
-
private
|
|
784
|
-
private
|
|
785
|
-
private _clearSelectedStar;
|
|
789
|
+
private sendStatistic;
|
|
790
|
+
private resetState;
|
|
786
791
|
private selectStar;
|
|
787
|
-
setUserText(text: string): void;
|
|
788
792
|
private completeWidget;
|
|
793
|
+
private saveLocalData;
|
|
794
|
+
private markWidgetCompleted;
|
|
795
|
+
private saveStarSelection;
|
|
789
796
|
isDone(): boolean;
|
|
790
797
|
slideRateIsDone(): boolean;
|
|
798
|
+
private handleSubmit;
|
|
799
|
+
private getCompletionAction;
|
|
800
|
+
private submitToAppStores;
|
|
801
|
+
private openUserDialog;
|
|
802
|
+
onUserDialogComplete(userText: string): void;
|
|
803
|
+
private showToast;
|
|
804
|
+
private showSubmitButton;
|
|
805
|
+
private hideSubmitButton;
|
|
806
|
+
private fillStars;
|
|
807
|
+
private clearStars;
|
|
791
808
|
static api: {
|
|
792
809
|
widgetClassName: string;
|
|
793
810
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|