@inappstory/slide-api 0.1.49 → 0.1.51
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 +301 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +37 -5
- package/dist/index.d.ts +37 -5
- package/dist/index.js +301 -53
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Player } from '@inappstory/video-player';
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
2
3
|
|
|
3
4
|
declare const enum CARD_TYPE {
|
|
4
5
|
STORY = 1,
|
|
@@ -233,6 +234,7 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
233
234
|
activateAfterCreate: boolean;
|
|
234
235
|
create: boolean;
|
|
235
236
|
localData: {};
|
|
237
|
+
layers: never[];
|
|
236
238
|
};
|
|
237
239
|
static widgetClassName: string;
|
|
238
240
|
private readonly label;
|
|
@@ -240,6 +242,8 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
240
242
|
private readonly inputElement;
|
|
241
243
|
private readonly textElement;
|
|
242
244
|
private readonly inputPlaceholderValue;
|
|
245
|
+
private readonly layers;
|
|
246
|
+
private readonly actionAfterCompletion;
|
|
243
247
|
/**
|
|
244
248
|
* @throws Error
|
|
245
249
|
* @param element
|
|
@@ -260,10 +264,14 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
260
264
|
click(element: HTMLElement): boolean;
|
|
261
265
|
private _fillUserText;
|
|
262
266
|
setUserText(text: string): void;
|
|
267
|
+
private doCompletitionAction;
|
|
268
|
+
private doCompletitionActionOnRefreshUserData;
|
|
269
|
+
private showNotification;
|
|
270
|
+
private showLayer;
|
|
263
271
|
static api: {
|
|
264
272
|
widgetClassName: string;
|
|
265
273
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
266
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
274
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
267
275
|
onStart: (element: HTMLElement) => void;
|
|
268
276
|
onStop: (element: HTMLElement) => void;
|
|
269
277
|
click: (element: HTMLElement) => boolean;
|
|
@@ -481,6 +489,8 @@ declare class WidgetProducts extends WidgetBase<WidgetProductsOptions> {
|
|
|
481
489
|
closeProductsView(): void;
|
|
482
490
|
private createCardView;
|
|
483
491
|
private showProductDetails;
|
|
492
|
+
private statEventGoToCart;
|
|
493
|
+
private statEventAddToCart;
|
|
484
494
|
private createScrollView;
|
|
485
495
|
private createProductsView;
|
|
486
496
|
private scrollViewRef;
|
|
@@ -557,6 +567,9 @@ declare class WidgetProductCarousel extends WidgetBase<WidgetProductCarouselOpti
|
|
|
557
567
|
private addToCart;
|
|
558
568
|
private getBottomSheetParams;
|
|
559
569
|
private statEventWidgetCardClick;
|
|
570
|
+
private statEventClickPurchaseButton;
|
|
571
|
+
private statEventAddToCart;
|
|
572
|
+
private statEventGoToCart;
|
|
560
573
|
private isCartSupported;
|
|
561
574
|
private disableHostUIInteraction;
|
|
562
575
|
private enableHostUIInteraction;
|
|
@@ -1837,6 +1850,7 @@ interface IElement {
|
|
|
1837
1850
|
onStop(): void;
|
|
1838
1851
|
onStart(): void;
|
|
1839
1852
|
onBeforeUnmount(): Promise<void>;
|
|
1853
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1840
1854
|
handleClick(): boolean;
|
|
1841
1855
|
isLayerForcePaused: boolean;
|
|
1842
1856
|
mediaElementsLoadingPromises: Array<Promise<HTMLImageElement | HTMLVideoElement>>;
|
|
@@ -1845,12 +1859,13 @@ interface IElement {
|
|
|
1845
1859
|
declare class DataInput implements IElement {
|
|
1846
1860
|
private readonly _elementNodeRef;
|
|
1847
1861
|
private readonly _layer;
|
|
1862
|
+
private readonly _layersNodesRefs;
|
|
1848
1863
|
private readonly _widgetApi;
|
|
1849
1864
|
private readonly _widgetCallbacks;
|
|
1850
1865
|
private readonly _widgetDeps;
|
|
1851
1866
|
private static readonly _className;
|
|
1852
1867
|
static className(): string;
|
|
1853
|
-
constructor(_elementNodeRef: HTMLElement, _layer: Layer, _widgetApi: typeof WidgetDataInput.api, _widgetCallbacks: WidgetCallbacks, _widgetDeps: WidgetDeps);
|
|
1868
|
+
constructor(_elementNodeRef: HTMLElement, _layer: Layer, _layersNodesRefs: Array<HTMLElement>, _widgetApi: typeof WidgetDataInput.api, _widgetCallbacks: WidgetCallbacks, _widgetDeps: WidgetDeps);
|
|
1854
1869
|
static isTypeOf(element: IElement): element is DataInput;
|
|
1855
1870
|
mediaElementsLoadingPromises: Array<Promise<HTMLImageElement | HTMLVideoElement>>;
|
|
1856
1871
|
get nodeRef(): HTMLElement;
|
|
@@ -1860,6 +1875,7 @@ declare class DataInput implements IElement {
|
|
|
1860
1875
|
onStart(): void;
|
|
1861
1876
|
onStop(): void;
|
|
1862
1877
|
onBeforeUnmount(): Promise<void>;
|
|
1878
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1863
1879
|
handleClick(): boolean;
|
|
1864
1880
|
setUserData(id: string, text: string): void;
|
|
1865
1881
|
get isLayerForcePaused(): boolean;
|
|
@@ -1883,6 +1899,7 @@ declare class Poll implements IElement {
|
|
|
1883
1899
|
onStart(): void;
|
|
1884
1900
|
onStop(): void;
|
|
1885
1901
|
onBeforeUnmount(): Promise<void>;
|
|
1902
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1886
1903
|
handleClick(): boolean;
|
|
1887
1904
|
setUserData(id: string, text: string): void;
|
|
1888
1905
|
get isLayerForcePaused(): boolean;
|
|
@@ -1907,6 +1924,7 @@ declare class PollLayers implements IElement {
|
|
|
1907
1924
|
onStart(): void;
|
|
1908
1925
|
onStop(): void;
|
|
1909
1926
|
onBeforeUnmount(): Promise<void>;
|
|
1927
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1910
1928
|
handleClick(): boolean;
|
|
1911
1929
|
get isLayerForcePaused(): boolean;
|
|
1912
1930
|
}
|
|
@@ -1929,6 +1947,7 @@ declare class Products implements IElement {
|
|
|
1929
1947
|
onStart(): void;
|
|
1930
1948
|
onStop(): void;
|
|
1931
1949
|
onBeforeUnmount(): Promise<void>;
|
|
1950
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1932
1951
|
handleClick(): boolean;
|
|
1933
1952
|
handleBackpress(): void;
|
|
1934
1953
|
get elementNodeRef(): HTMLElement;
|
|
@@ -1954,6 +1973,7 @@ declare class ProductCarousel implements IElement {
|
|
|
1954
1973
|
onStart(): void;
|
|
1955
1974
|
onStop(): void;
|
|
1956
1975
|
onBeforeUnmount(): Promise<void>;
|
|
1976
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1957
1977
|
handleClick(): boolean;
|
|
1958
1978
|
get isClickCapturedByWidget(): boolean;
|
|
1959
1979
|
get isLayerForcePaused(): boolean;
|
|
@@ -1978,6 +1998,7 @@ declare class Quest implements IElement {
|
|
|
1978
1998
|
onStart(): void;
|
|
1979
1999
|
onStop(): void;
|
|
1980
2000
|
onBeforeUnmount(): Promise<void>;
|
|
2001
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1981
2002
|
handleClick(): boolean;
|
|
1982
2003
|
handleRouteClick(options: {
|
|
1983
2004
|
direction: "backward" | "forward";
|
|
@@ -2007,6 +2028,7 @@ declare class Quiz implements IElement {
|
|
|
2007
2028
|
onStart(): void;
|
|
2008
2029
|
onStop(): void;
|
|
2009
2030
|
onBeforeUnmount(): Promise<void>;
|
|
2031
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2010
2032
|
handleClick(): boolean;
|
|
2011
2033
|
get slideQuizIsDone(): boolean;
|
|
2012
2034
|
get isLayerForcePaused(): boolean;
|
|
@@ -2030,6 +2052,7 @@ declare class QuizGrouped implements IElement {
|
|
|
2030
2052
|
onStart(): void;
|
|
2031
2053
|
onStop(): void;
|
|
2032
2054
|
onBeforeUnmount(): Promise<void>;
|
|
2055
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2033
2056
|
handleClick(): boolean;
|
|
2034
2057
|
get slideQuizGroupedIsDone(): boolean;
|
|
2035
2058
|
get isLayerForcePaused(): boolean;
|
|
@@ -2053,9 +2076,10 @@ declare class RangeSlider implements IElement {
|
|
|
2053
2076
|
onStart(): void;
|
|
2054
2077
|
onStop(): void;
|
|
2055
2078
|
onBeforeUnmount(): Promise<void>;
|
|
2056
|
-
|
|
2079
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2057
2080
|
handleClick(): boolean;
|
|
2058
2081
|
get isLayerForcePaused(): boolean;
|
|
2082
|
+
get isClickCapturedBySlider(): boolean;
|
|
2059
2083
|
}
|
|
2060
2084
|
|
|
2061
2085
|
declare class Rate implements IElement {
|
|
@@ -2076,6 +2100,7 @@ declare class Rate implements IElement {
|
|
|
2076
2100
|
onStart(): void;
|
|
2077
2101
|
onStop(): void;
|
|
2078
2102
|
onBeforeUnmount(): Promise<void>;
|
|
2103
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2079
2104
|
handleClick(): boolean;
|
|
2080
2105
|
setUserData(id: string, text: string): void;
|
|
2081
2106
|
get isLayerForcePaused(): boolean;
|
|
@@ -2101,6 +2126,7 @@ declare class Share implements IElement {
|
|
|
2101
2126
|
onStart(): void;
|
|
2102
2127
|
onStop(): void;
|
|
2103
2128
|
onBeforeUnmount(): Promise<void>;
|
|
2129
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2104
2130
|
handleClick(): boolean;
|
|
2105
2131
|
complete(id: string, isSuccess: boolean): void;
|
|
2106
2132
|
get isLayerForcePaused(): boolean;
|
|
@@ -2121,6 +2147,7 @@ declare class SwipeUp implements IElement {
|
|
|
2121
2147
|
onStart(): void;
|
|
2122
2148
|
onStop(): void;
|
|
2123
2149
|
onBeforeUnmount(): Promise<void>;
|
|
2150
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2124
2151
|
handleClick(): boolean;
|
|
2125
2152
|
get elementNodeRef(): HTMLElement;
|
|
2126
2153
|
get isLayerForcePaused(): boolean;
|
|
@@ -2141,6 +2168,7 @@ declare class SwipeUpItems implements IElement {
|
|
|
2141
2168
|
onStart(): void;
|
|
2142
2169
|
onStop(): void;
|
|
2143
2170
|
onBeforeUnmount(): Promise<void>;
|
|
2171
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2144
2172
|
handleClick(): boolean;
|
|
2145
2173
|
get elementNodeRef(): HTMLElement;
|
|
2146
2174
|
get isLayerForcePaused(): boolean;
|
|
@@ -2164,6 +2192,7 @@ declare class Test implements IElement {
|
|
|
2164
2192
|
onStart(): void;
|
|
2165
2193
|
onStop(): void;
|
|
2166
2194
|
onBeforeUnmount(): Promise<void>;
|
|
2195
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2167
2196
|
handleClick(): boolean;
|
|
2168
2197
|
get slideTestIsDone(): boolean;
|
|
2169
2198
|
get slideTestWithTimer(): boolean;
|
|
@@ -2192,6 +2221,7 @@ declare class Video implements IElement {
|
|
|
2192
2221
|
onResume(): void;
|
|
2193
2222
|
onStart(): void;
|
|
2194
2223
|
onStop(): void;
|
|
2224
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2195
2225
|
onBeforeUnmount(): Promise<void>;
|
|
2196
2226
|
get durationMs(): number;
|
|
2197
2227
|
private _initVOD;
|
|
@@ -2276,6 +2306,7 @@ declare class ScratchCard implements IElement {
|
|
|
2276
2306
|
onStart(): void;
|
|
2277
2307
|
onStop(): void;
|
|
2278
2308
|
onBeforeUnmount(): Promise<void>;
|
|
2309
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2279
2310
|
handleClick(): boolean;
|
|
2280
2311
|
get isLayerForcePaused(): boolean;
|
|
2281
2312
|
get isClickCaptured(): boolean;
|
|
@@ -2286,7 +2317,7 @@ declare const enum ON_SLIDE_STOP_PREPARE_FOR_RESTART {
|
|
|
2286
2317
|
PREPARE = 1,
|
|
2287
2318
|
NOT_PREPARE = 2
|
|
2288
2319
|
}
|
|
2289
|
-
declare class Layer {
|
|
2320
|
+
declare class Layer extends EventEmitter {
|
|
2290
2321
|
private readonly _nodeRef;
|
|
2291
2322
|
private readonly _slide;
|
|
2292
2323
|
private readonly _layerIndex;
|
|
@@ -2310,9 +2341,10 @@ declare class Layer {
|
|
|
2310
2341
|
private readonly _scrollView;
|
|
2311
2342
|
private _layerVerticalScrollNotifier;
|
|
2312
2343
|
private _elements;
|
|
2313
|
-
private
|
|
2344
|
+
private _timeline;
|
|
2314
2345
|
private readonly _widgetDeps;
|
|
2315
2346
|
constructor(_nodeRef: HTMLElement, _slide: Slide, _layerIndex: number, _slideReadyPromise: Promise<void>, _afterAppResumeQueuePush: (cb: () => void) => void, _afterStartInitQueuePush: (cb: () => void) => void, slideApiDeps: ISlideApiDeps, _slideRoot: HTMLElement, _getLayoutDirection: () => "ltr" | "rtl", _slidePauseUI: () => Promise<void>, _slideResumeUI: () => Promise<void>, _getSdkClientVariables: GetSdkClientVariables);
|
|
2347
|
+
initTimeline(): void;
|
|
2316
2348
|
init(localData: LocalData): Array<Promise<boolean>>;
|
|
2317
2349
|
onUpdateSizeMetrics(metrics: SizeMetrics): void;
|
|
2318
2350
|
onAfterAllMediaResourcesLoaded(): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Player } from '@inappstory/video-player';
|
|
2
|
+
import { EventEmitter } from 'events';
|
|
2
3
|
|
|
3
4
|
declare const enum CARD_TYPE {
|
|
4
5
|
STORY = 1,
|
|
@@ -233,6 +234,7 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
233
234
|
activateAfterCreate: boolean;
|
|
234
235
|
create: boolean;
|
|
235
236
|
localData: {};
|
|
237
|
+
layers: never[];
|
|
236
238
|
};
|
|
237
239
|
static widgetClassName: string;
|
|
238
240
|
private readonly label;
|
|
@@ -240,6 +242,8 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
240
242
|
private readonly inputElement;
|
|
241
243
|
private readonly textElement;
|
|
242
244
|
private readonly inputPlaceholderValue;
|
|
245
|
+
private readonly layers;
|
|
246
|
+
private readonly actionAfterCompletion;
|
|
243
247
|
/**
|
|
244
248
|
* @throws Error
|
|
245
249
|
* @param element
|
|
@@ -260,10 +264,14 @@ declare class WidgetDataInput extends WidgetBase<WidgetDataInputOptions> {
|
|
|
260
264
|
click(element: HTMLElement): boolean;
|
|
261
265
|
private _fillUserText;
|
|
262
266
|
setUserText(text: string): void;
|
|
267
|
+
private doCompletitionAction;
|
|
268
|
+
private doCompletitionActionOnRefreshUserData;
|
|
269
|
+
private showNotification;
|
|
270
|
+
private showLayer;
|
|
263
271
|
static api: {
|
|
264
272
|
widgetClassName: string;
|
|
265
273
|
onRefreshUserData: typeof WidgetBase.onRefreshUserData;
|
|
266
|
-
init: (element: HTMLElement, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
274
|
+
init: (element: HTMLElement, layers: Array<HTMLElement>, localData: Record<string, any>, widgetCallbacks: WidgetCallbacks, widgetDeps: WidgetDeps) => void;
|
|
267
275
|
onStart: (element: HTMLElement) => void;
|
|
268
276
|
onStop: (element: HTMLElement) => void;
|
|
269
277
|
click: (element: HTMLElement) => boolean;
|
|
@@ -481,6 +489,8 @@ declare class WidgetProducts extends WidgetBase<WidgetProductsOptions> {
|
|
|
481
489
|
closeProductsView(): void;
|
|
482
490
|
private createCardView;
|
|
483
491
|
private showProductDetails;
|
|
492
|
+
private statEventGoToCart;
|
|
493
|
+
private statEventAddToCart;
|
|
484
494
|
private createScrollView;
|
|
485
495
|
private createProductsView;
|
|
486
496
|
private scrollViewRef;
|
|
@@ -557,6 +567,9 @@ declare class WidgetProductCarousel extends WidgetBase<WidgetProductCarouselOpti
|
|
|
557
567
|
private addToCart;
|
|
558
568
|
private getBottomSheetParams;
|
|
559
569
|
private statEventWidgetCardClick;
|
|
570
|
+
private statEventClickPurchaseButton;
|
|
571
|
+
private statEventAddToCart;
|
|
572
|
+
private statEventGoToCart;
|
|
560
573
|
private isCartSupported;
|
|
561
574
|
private disableHostUIInteraction;
|
|
562
575
|
private enableHostUIInteraction;
|
|
@@ -1837,6 +1850,7 @@ interface IElement {
|
|
|
1837
1850
|
onStop(): void;
|
|
1838
1851
|
onStart(): void;
|
|
1839
1852
|
onBeforeUnmount(): Promise<void>;
|
|
1853
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1840
1854
|
handleClick(): boolean;
|
|
1841
1855
|
isLayerForcePaused: boolean;
|
|
1842
1856
|
mediaElementsLoadingPromises: Array<Promise<HTMLImageElement | HTMLVideoElement>>;
|
|
@@ -1845,12 +1859,13 @@ interface IElement {
|
|
|
1845
1859
|
declare class DataInput implements IElement {
|
|
1846
1860
|
private readonly _elementNodeRef;
|
|
1847
1861
|
private readonly _layer;
|
|
1862
|
+
private readonly _layersNodesRefs;
|
|
1848
1863
|
private readonly _widgetApi;
|
|
1849
1864
|
private readonly _widgetCallbacks;
|
|
1850
1865
|
private readonly _widgetDeps;
|
|
1851
1866
|
private static readonly _className;
|
|
1852
1867
|
static className(): string;
|
|
1853
|
-
constructor(_elementNodeRef: HTMLElement, _layer: Layer, _widgetApi: typeof WidgetDataInput.api, _widgetCallbacks: WidgetCallbacks, _widgetDeps: WidgetDeps);
|
|
1868
|
+
constructor(_elementNodeRef: HTMLElement, _layer: Layer, _layersNodesRefs: Array<HTMLElement>, _widgetApi: typeof WidgetDataInput.api, _widgetCallbacks: WidgetCallbacks, _widgetDeps: WidgetDeps);
|
|
1854
1869
|
static isTypeOf(element: IElement): element is DataInput;
|
|
1855
1870
|
mediaElementsLoadingPromises: Array<Promise<HTMLImageElement | HTMLVideoElement>>;
|
|
1856
1871
|
get nodeRef(): HTMLElement;
|
|
@@ -1860,6 +1875,7 @@ declare class DataInput implements IElement {
|
|
|
1860
1875
|
onStart(): void;
|
|
1861
1876
|
onStop(): void;
|
|
1862
1877
|
onBeforeUnmount(): Promise<void>;
|
|
1878
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1863
1879
|
handleClick(): boolean;
|
|
1864
1880
|
setUserData(id: string, text: string): void;
|
|
1865
1881
|
get isLayerForcePaused(): boolean;
|
|
@@ -1883,6 +1899,7 @@ declare class Poll implements IElement {
|
|
|
1883
1899
|
onStart(): void;
|
|
1884
1900
|
onStop(): void;
|
|
1885
1901
|
onBeforeUnmount(): Promise<void>;
|
|
1902
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1886
1903
|
handleClick(): boolean;
|
|
1887
1904
|
setUserData(id: string, text: string): void;
|
|
1888
1905
|
get isLayerForcePaused(): boolean;
|
|
@@ -1907,6 +1924,7 @@ declare class PollLayers implements IElement {
|
|
|
1907
1924
|
onStart(): void;
|
|
1908
1925
|
onStop(): void;
|
|
1909
1926
|
onBeforeUnmount(): Promise<void>;
|
|
1927
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1910
1928
|
handleClick(): boolean;
|
|
1911
1929
|
get isLayerForcePaused(): boolean;
|
|
1912
1930
|
}
|
|
@@ -1929,6 +1947,7 @@ declare class Products implements IElement {
|
|
|
1929
1947
|
onStart(): void;
|
|
1930
1948
|
onStop(): void;
|
|
1931
1949
|
onBeforeUnmount(): Promise<void>;
|
|
1950
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1932
1951
|
handleClick(): boolean;
|
|
1933
1952
|
handleBackpress(): void;
|
|
1934
1953
|
get elementNodeRef(): HTMLElement;
|
|
@@ -1954,6 +1973,7 @@ declare class ProductCarousel implements IElement {
|
|
|
1954
1973
|
onStart(): void;
|
|
1955
1974
|
onStop(): void;
|
|
1956
1975
|
onBeforeUnmount(): Promise<void>;
|
|
1976
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1957
1977
|
handleClick(): boolean;
|
|
1958
1978
|
get isClickCapturedByWidget(): boolean;
|
|
1959
1979
|
get isLayerForcePaused(): boolean;
|
|
@@ -1978,6 +1998,7 @@ declare class Quest implements IElement {
|
|
|
1978
1998
|
onStart(): void;
|
|
1979
1999
|
onStop(): void;
|
|
1980
2000
|
onBeforeUnmount(): Promise<void>;
|
|
2001
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
1981
2002
|
handleClick(): boolean;
|
|
1982
2003
|
handleRouteClick(options: {
|
|
1983
2004
|
direction: "backward" | "forward";
|
|
@@ -2007,6 +2028,7 @@ declare class Quiz implements IElement {
|
|
|
2007
2028
|
onStart(): void;
|
|
2008
2029
|
onStop(): void;
|
|
2009
2030
|
onBeforeUnmount(): Promise<void>;
|
|
2031
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2010
2032
|
handleClick(): boolean;
|
|
2011
2033
|
get slideQuizIsDone(): boolean;
|
|
2012
2034
|
get isLayerForcePaused(): boolean;
|
|
@@ -2030,6 +2052,7 @@ declare class QuizGrouped implements IElement {
|
|
|
2030
2052
|
onStart(): void;
|
|
2031
2053
|
onStop(): void;
|
|
2032
2054
|
onBeforeUnmount(): Promise<void>;
|
|
2055
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2033
2056
|
handleClick(): boolean;
|
|
2034
2057
|
get slideQuizGroupedIsDone(): boolean;
|
|
2035
2058
|
get isLayerForcePaused(): boolean;
|
|
@@ -2053,9 +2076,10 @@ declare class RangeSlider implements IElement {
|
|
|
2053
2076
|
onStart(): void;
|
|
2054
2077
|
onStop(): void;
|
|
2055
2078
|
onBeforeUnmount(): Promise<void>;
|
|
2056
|
-
|
|
2079
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2057
2080
|
handleClick(): boolean;
|
|
2058
2081
|
get isLayerForcePaused(): boolean;
|
|
2082
|
+
get isClickCapturedBySlider(): boolean;
|
|
2059
2083
|
}
|
|
2060
2084
|
|
|
2061
2085
|
declare class Rate implements IElement {
|
|
@@ -2076,6 +2100,7 @@ declare class Rate implements IElement {
|
|
|
2076
2100
|
onStart(): void;
|
|
2077
2101
|
onStop(): void;
|
|
2078
2102
|
onBeforeUnmount(): Promise<void>;
|
|
2103
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2079
2104
|
handleClick(): boolean;
|
|
2080
2105
|
setUserData(id: string, text: string): void;
|
|
2081
2106
|
get isLayerForcePaused(): boolean;
|
|
@@ -2101,6 +2126,7 @@ declare class Share implements IElement {
|
|
|
2101
2126
|
onStart(): void;
|
|
2102
2127
|
onStop(): void;
|
|
2103
2128
|
onBeforeUnmount(): Promise<void>;
|
|
2129
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2104
2130
|
handleClick(): boolean;
|
|
2105
2131
|
complete(id: string, isSuccess: boolean): void;
|
|
2106
2132
|
get isLayerForcePaused(): boolean;
|
|
@@ -2121,6 +2147,7 @@ declare class SwipeUp implements IElement {
|
|
|
2121
2147
|
onStart(): void;
|
|
2122
2148
|
onStop(): void;
|
|
2123
2149
|
onBeforeUnmount(): Promise<void>;
|
|
2150
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2124
2151
|
handleClick(): boolean;
|
|
2125
2152
|
get elementNodeRef(): HTMLElement;
|
|
2126
2153
|
get isLayerForcePaused(): boolean;
|
|
@@ -2141,6 +2168,7 @@ declare class SwipeUpItems implements IElement {
|
|
|
2141
2168
|
onStart(): void;
|
|
2142
2169
|
onStop(): void;
|
|
2143
2170
|
onBeforeUnmount(): Promise<void>;
|
|
2171
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2144
2172
|
handleClick(): boolean;
|
|
2145
2173
|
get elementNodeRef(): HTMLElement;
|
|
2146
2174
|
get isLayerForcePaused(): boolean;
|
|
@@ -2164,6 +2192,7 @@ declare class Test implements IElement {
|
|
|
2164
2192
|
onStart(): void;
|
|
2165
2193
|
onStop(): void;
|
|
2166
2194
|
onBeforeUnmount(): Promise<void>;
|
|
2195
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2167
2196
|
handleClick(): boolean;
|
|
2168
2197
|
get slideTestIsDone(): boolean;
|
|
2169
2198
|
get slideTestWithTimer(): boolean;
|
|
@@ -2192,6 +2221,7 @@ declare class Video implements IElement {
|
|
|
2192
2221
|
onResume(): void;
|
|
2193
2222
|
onStart(): void;
|
|
2194
2223
|
onStop(): void;
|
|
2224
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2195
2225
|
onBeforeUnmount(): Promise<void>;
|
|
2196
2226
|
get durationMs(): number;
|
|
2197
2227
|
private _initVOD;
|
|
@@ -2276,6 +2306,7 @@ declare class ScratchCard implements IElement {
|
|
|
2276
2306
|
onStart(): void;
|
|
2277
2307
|
onStop(): void;
|
|
2278
2308
|
onBeforeUnmount(): Promise<void>;
|
|
2309
|
+
onRefreshUserData(localData: Record<string, any>): void;
|
|
2279
2310
|
handleClick(): boolean;
|
|
2280
2311
|
get isLayerForcePaused(): boolean;
|
|
2281
2312
|
get isClickCaptured(): boolean;
|
|
@@ -2286,7 +2317,7 @@ declare const enum ON_SLIDE_STOP_PREPARE_FOR_RESTART {
|
|
|
2286
2317
|
PREPARE = 1,
|
|
2287
2318
|
NOT_PREPARE = 2
|
|
2288
2319
|
}
|
|
2289
|
-
declare class Layer {
|
|
2320
|
+
declare class Layer extends EventEmitter {
|
|
2290
2321
|
private readonly _nodeRef;
|
|
2291
2322
|
private readonly _slide;
|
|
2292
2323
|
private readonly _layerIndex;
|
|
@@ -2310,9 +2341,10 @@ declare class Layer {
|
|
|
2310
2341
|
private readonly _scrollView;
|
|
2311
2342
|
private _layerVerticalScrollNotifier;
|
|
2312
2343
|
private _elements;
|
|
2313
|
-
private
|
|
2344
|
+
private _timeline;
|
|
2314
2345
|
private readonly _widgetDeps;
|
|
2315
2346
|
constructor(_nodeRef: HTMLElement, _slide: Slide, _layerIndex: number, _slideReadyPromise: Promise<void>, _afterAppResumeQueuePush: (cb: () => void) => void, _afterStartInitQueuePush: (cb: () => void) => void, slideApiDeps: ISlideApiDeps, _slideRoot: HTMLElement, _getLayoutDirection: () => "ltr" | "rtl", _slidePauseUI: () => Promise<void>, _slideResumeUI: () => Promise<void>, _getSdkClientVariables: GetSdkClientVariables);
|
|
2347
|
+
initTimeline(): void;
|
|
2316
2348
|
init(localData: LocalData): Array<Promise<boolean>>;
|
|
2317
2349
|
onUpdateSizeMetrics(metrics: SizeMetrics): void;
|
|
2318
2350
|
onAfterAllMediaResourcesLoaded(): void;
|