@wscsports/blaze-web-sdk 0.3.1 → 0.3.3
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/package.json +1 -1
- package/publish/index.d.ts +84 -18
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ export declare class StoryEvent {
|
|
|
172
172
|
'content_duration_viewed': number;
|
|
173
173
|
'story_page_duration': number;
|
|
174
174
|
'story_page_duration_viewed_percent': number;
|
|
175
|
-
'gesture_type':
|
|
175
|
+
'gesture_type': StoryGestureType;
|
|
176
176
|
'labels_expression': string;
|
|
177
177
|
'story_session_id': string;
|
|
178
178
|
'story_page_index': number;
|
|
@@ -196,6 +196,7 @@ export declare class MomentEvent {
|
|
|
196
196
|
'playback_action_method': string;
|
|
197
197
|
'audio_state': string;
|
|
198
198
|
'loop_number': string;
|
|
199
|
+
'gesture_type': MomentGestureType;
|
|
199
200
|
}
|
|
200
201
|
export declare class WidgetEvent {
|
|
201
202
|
'page_view_id': string;
|
|
@@ -241,6 +242,7 @@ export declare class AdEvent {
|
|
|
241
242
|
'ad_path': string;
|
|
242
243
|
'ad_unit_id': string;
|
|
243
244
|
'session_id': string;
|
|
245
|
+
'gesture_type': MomentGestureType | StoryGestureType;
|
|
244
246
|
}
|
|
245
247
|
export declare class ImaAdEvent {
|
|
246
248
|
'story_id': string;
|
|
@@ -256,6 +258,7 @@ export declare class ImaAdEvent {
|
|
|
256
258
|
'failure_reason': string;
|
|
257
259
|
'ad_type': string;
|
|
258
260
|
'ima_url': string;
|
|
261
|
+
'player_orientation': ContentAspectRatio;
|
|
259
262
|
}
|
|
260
263
|
export declare class InteractionEvent {
|
|
261
264
|
'interaction_id': string;
|
|
@@ -303,7 +306,7 @@ export declare class BlazeDataSourceValidations {
|
|
|
303
306
|
static validateFormat(dataSource: BlazeDataSourceType): void;
|
|
304
307
|
}
|
|
305
308
|
|
|
306
|
-
export declare function debounce<T extends
|
|
309
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => void;
|
|
307
310
|
|
|
308
311
|
export declare const Platform: {
|
|
309
312
|
readonly Console: "console";
|
|
@@ -335,6 +338,7 @@ declare class DeviceDetector {
|
|
|
335
338
|
private detectPlatform;
|
|
336
339
|
private getScreenOrientation;
|
|
337
340
|
private handleResize;
|
|
341
|
+
isIOSMobileTabletSafari(): boolean;
|
|
338
342
|
}
|
|
339
343
|
export declare const deviceDetector: DeviceDetector;
|
|
340
344
|
|
|
@@ -536,7 +540,7 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
536
540
|
private setWidth;
|
|
537
541
|
}
|
|
538
542
|
|
|
539
|
-
type AttributeType = 'hidden-btn' | 'width' | 'height' | 'margin' | 'text' | 'href' | 'icon-url' | 'icon-size' | 'icon-color' | 'arrow-icon-display' | 'arrow-icon-color';
|
|
543
|
+
type AttributeType = 'hidden-btn' | 'width' | 'height' | 'margin' | 'text' | 'href' | 'icon-url' | 'icon-size' | 'icon-color' | 'arrow-icon-display' | 'arrow-icon-color' | 'display-icon';
|
|
540
544
|
export declare class BlazeCtaButton extends BaseWidget {
|
|
541
545
|
anchorButtonElement: HTMLAnchorElement;
|
|
542
546
|
iconButtonElement: BlazeButton;
|
|
@@ -1044,7 +1048,6 @@ export declare const externalLinkIconSvg = "data:image/svg+xml;base64,PD94bWwgdm
|
|
|
1044
1048
|
export declare const fullscreenIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkd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jaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
|
|
1046
1050
|
export declare const arrowUpMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgdHJhbnNmb3JtPSJzY2FsZSgxIC0xKSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
|
|
1047
|
-
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgM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k3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
1049
1052
|
|
|
1050
1053
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
@@ -1093,7 +1096,7 @@ export interface IButtonPlayerNavigationConfig {
|
|
|
1093
1096
|
export interface IButtonPlayerConfig {
|
|
1094
1097
|
iconUrl: string;
|
|
1095
1098
|
eventType: string;
|
|
1096
|
-
clickHandler: () => void;
|
|
1099
|
+
clickHandler: (event?: Event) => void;
|
|
1097
1100
|
dataTestId?: string;
|
|
1098
1101
|
}
|
|
1099
1102
|
|
|
@@ -1671,7 +1674,6 @@ declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_bas
|
|
|
1671
1674
|
checkCacheSize(): Promise<void>;
|
|
1672
1675
|
isVideoDownloading(url: string): boolean;
|
|
1673
1676
|
isInitialized(): boolean;
|
|
1674
|
-
private handleError;
|
|
1675
1677
|
private fetchAndCache;
|
|
1676
1678
|
private cacheResponse;
|
|
1677
1679
|
addCacheVideoByUrl(url: string): Promise<Response | void>;
|
|
@@ -1865,6 +1867,43 @@ type BlazeMomentsPlayerButtonStyle = {
|
|
|
1865
1867
|
tablet: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1866
1868
|
desktop: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1867
1869
|
};
|
|
1870
|
+
export type BlazeMomentsPlayerCtaStyle = {
|
|
1871
|
+
cornerRadius: string;
|
|
1872
|
+
textSize: string;
|
|
1873
|
+
font: string;
|
|
1874
|
+
fontWeight: FontWeightType;
|
|
1875
|
+
width: string;
|
|
1876
|
+
height: string;
|
|
1877
|
+
layoutPositioning: BlazeMomentsPlayerCTAPositioning;
|
|
1878
|
+
horizontalAlignment: BlazeMomentsPlayerCTAHorizontalAlignment;
|
|
1879
|
+
icon: BlazeMomentsPlayerCtaIconStyle;
|
|
1880
|
+
};
|
|
1881
|
+
type BlazeMomentsPlayerCTAPositioning = 'CTA_BELLOW_BOTTOM_BUTTONS_BOX' | 'CTA_NEXT_TO_BOTTOM_BUTTONS_BOX';
|
|
1882
|
+
type BlazeMomentsPlayerCTAHorizontalAlignment = 'START' | 'CENTER' | 'END' | 'FULL_AVAILABLE_WIDTH';
|
|
1883
|
+
type BlazeMomentsPlayerCtaIconStyle = {
|
|
1884
|
+
position: 'START';
|
|
1885
|
+
color: string;
|
|
1886
|
+
url: string;
|
|
1887
|
+
size: string;
|
|
1888
|
+
isVisible: boolean;
|
|
1889
|
+
};
|
|
1890
|
+
type BlazeSeekBarStyle = {
|
|
1891
|
+
isVisible: boolean;
|
|
1892
|
+
isThumbVisible: boolean;
|
|
1893
|
+
backgroundColor: string;
|
|
1894
|
+
progressColor: string;
|
|
1895
|
+
height: string;
|
|
1896
|
+
cornerRadius: string;
|
|
1897
|
+
thumbColor: string;
|
|
1898
|
+
thumbSize: string;
|
|
1899
|
+
};
|
|
1900
|
+
export type BlazeMomentsPlayerSeekBarStyle = {
|
|
1901
|
+
isVisible: boolean;
|
|
1902
|
+
bottomSpacing: string;
|
|
1903
|
+
horizontalSpacing: string;
|
|
1904
|
+
playingState: BlazeSeekBarStyle;
|
|
1905
|
+
pausedState: BlazeSeekBarStyle;
|
|
1906
|
+
};
|
|
1868
1907
|
export interface MomentPlayerStyle {
|
|
1869
1908
|
headingText: BlazeMomentsPlayerHeadingTextStyle;
|
|
1870
1909
|
bodyText: BlazeMomentsPlayerBodyTextStyle;
|
|
@@ -1873,6 +1912,9 @@ export interface MomentPlayerStyle {
|
|
|
1873
1912
|
icons: BlazeMomentIconsStyle;
|
|
1874
1913
|
iconsButtonOrder: IconButtonType[];
|
|
1875
1914
|
iconsPosition: IconsPositionType;
|
|
1915
|
+
contentBoxHorizontalSpacing: string;
|
|
1916
|
+
seekBar: BlazeMomentsPlayerSeekBarStyle;
|
|
1917
|
+
ctaButton: BlazeMomentsPlayerCtaStyle;
|
|
1876
1918
|
}
|
|
1877
1919
|
export interface CtaButtonStyle {
|
|
1878
1920
|
borderRadius: string;
|
|
@@ -2309,6 +2351,9 @@ export type ElementType = WidgetElementType | ComponentsElementType;
|
|
|
2309
2351
|
|
|
2310
2352
|
export type EnvironmentType = 'prod' | 'uat';
|
|
2311
2353
|
|
|
2354
|
+
export type StoryGestureType = 'Swipe Up' | 'CTA Click';
|
|
2355
|
+
export type MomentGestureType = 'CTA Click';
|
|
2356
|
+
|
|
2312
2357
|
export * from './attribute-parser';
|
|
2313
2358
|
export * from './button.type';
|
|
2314
2359
|
export * from './client-platform.type';
|
|
@@ -2331,6 +2376,7 @@ export * from './widget.type';
|
|
|
2331
2376
|
export * from './chip-status.type';
|
|
2332
2377
|
export * from './prefetch.type';
|
|
2333
2378
|
export * from './trigger.type';
|
|
2379
|
+
export * from './gesture.type';
|
|
2334
2380
|
|
|
2335
2381
|
export type EntitiesType = 'playerId' | 'teamId' | 'gameId' | 'roundId';
|
|
2336
2382
|
export type PerItemStyleOverrides = Partial<Record<EntitiesType, Array<{
|
|
@@ -3038,6 +3084,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
3038
3084
|
connectedCallback(): void;
|
|
3039
3085
|
disconnectedCallback(): void;
|
|
3040
3086
|
setData(data: IPage): void;
|
|
3087
|
+
getVideoDuration(): Promise<number>;
|
|
3041
3088
|
loadPoster(): void;
|
|
3042
3089
|
display(): void;
|
|
3043
3090
|
hide(): void;
|
|
@@ -3053,6 +3100,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
3053
3100
|
set currentTime(value: number);
|
|
3054
3101
|
get currentTime(): number;
|
|
3055
3102
|
get duration(): number;
|
|
3103
|
+
videoDurationMetrics(): Promise<void>;
|
|
3056
3104
|
requestFrameCallback(callback: () => void): void;
|
|
3057
3105
|
mainElement(): CanvasImageSource;
|
|
3058
3106
|
get paused(): boolean;
|
|
@@ -3089,10 +3137,13 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
3089
3137
|
private onFail?;
|
|
3090
3138
|
private isAdFailed;
|
|
3091
3139
|
private isPlaying;
|
|
3140
|
+
private boundMessageEvent;
|
|
3141
|
+
private ctaModal;
|
|
3092
3142
|
constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
|
|
3093
3143
|
connectedCallback(): void;
|
|
3094
3144
|
disconnectedCallback(): void;
|
|
3095
3145
|
render(): void;
|
|
3146
|
+
handleMessageEvent(event: MessageEvent): void;
|
|
3096
3147
|
get currentTime(): number;
|
|
3097
3148
|
set currentTime(value: number);
|
|
3098
3149
|
get duration(): number;
|
|
@@ -3114,6 +3165,7 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
3114
3165
|
private initStyles;
|
|
3115
3166
|
isAdContainerConnectedToDOM(): Promise<boolean>;
|
|
3116
3167
|
private destroyAd;
|
|
3168
|
+
handleCtaSwipeUp(): void;
|
|
3117
3169
|
}
|
|
3118
3170
|
|
|
3119
3171
|
export declare class BlazeWidgetBannerAd extends HTMLElement {
|
|
@@ -3202,9 +3254,10 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
|
|
|
3202
3254
|
|
|
3203
3255
|
export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
|
|
3204
3256
|
video: BlazeWidgetVideo | BlazeWidgetAd;
|
|
3257
|
+
seekBarStyle: BlazeMomentsPlayerSeekBarStyle;
|
|
3205
3258
|
private progress;
|
|
3206
3259
|
private playbackParts;
|
|
3207
|
-
private
|
|
3260
|
+
private isProgressBarPaused;
|
|
3208
3261
|
private listeners;
|
|
3209
3262
|
onPause?: () => void;
|
|
3210
3263
|
onResume?: () => void;
|
|
@@ -3219,13 +3272,15 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
|
|
|
3219
3272
|
private isInit;
|
|
3220
3273
|
private animationFrameId;
|
|
3221
3274
|
private lastProgress;
|
|
3275
|
+
private progressBarContainer;
|
|
3222
3276
|
private progressBarFill;
|
|
3223
3277
|
private progressBarKnob;
|
|
3224
3278
|
private isMouseIn;
|
|
3225
|
-
constructor(video: BlazeWidgetVideo | BlazeWidgetAd);
|
|
3279
|
+
constructor(video: BlazeWidgetVideo | BlazeWidgetAd, seekBarStyle: BlazeMomentsPlayerSeekBarStyle);
|
|
3226
3280
|
static get observedAttributes(): string[];
|
|
3227
3281
|
attributeChangedCallback(name: string, oldValue: string, _newValue: string): void;
|
|
3228
3282
|
connectedCallback(): void;
|
|
3283
|
+
private addTransitionStyle;
|
|
3229
3284
|
onContentPaused(): void;
|
|
3230
3285
|
onContentResumed(directReset?: boolean): void;
|
|
3231
3286
|
disconnectedCallback(): void;
|
|
@@ -3241,12 +3296,13 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
|
|
|
3241
3296
|
private onTouchMove;
|
|
3242
3297
|
private handleOnMouseOut;
|
|
3243
3298
|
private handleOnMouseIn;
|
|
3244
|
-
private
|
|
3245
|
-
private
|
|
3299
|
+
private applyPlayingSeekBarStyle;
|
|
3300
|
+
private applyPauseSeekBarStyle;
|
|
3246
3301
|
reset(): void;
|
|
3247
3302
|
private handleSeek;
|
|
3248
3303
|
private styleProgressContainer;
|
|
3249
3304
|
private createPlaybackPart;
|
|
3305
|
+
private updateProgressBarStyles;
|
|
3250
3306
|
render(): void;
|
|
3251
3307
|
}
|
|
3252
3308
|
|
|
@@ -3283,6 +3339,9 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3283
3339
|
topContainer: BlazeDiv;
|
|
3284
3340
|
bottomContainer: BlazeDiv;
|
|
3285
3341
|
bottomContentContainer: BlazeDiv;
|
|
3342
|
+
buttonsContainer: BlazeDiv;
|
|
3343
|
+
bottomContainerCtaAndContent: BlazeDiv;
|
|
3344
|
+
bottomContainerCtaContentButtons: BlazeDiv;
|
|
3286
3345
|
shadowBottomElement: BlazeDiv;
|
|
3287
3346
|
shadowTopElement: BlazeDiv;
|
|
3288
3347
|
topButtonsContainer: BlazeDiv;
|
|
@@ -3300,6 +3359,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3300
3359
|
ctaButtonElement: BlazeCtaButton;
|
|
3301
3360
|
isInit: boolean;
|
|
3302
3361
|
isActive: boolean;
|
|
3362
|
+
isMomentPausedByPlayPauseButton: boolean;
|
|
3303
3363
|
shouldShowImaAdOnStart: boolean;
|
|
3304
3364
|
imaUrl: string;
|
|
3305
3365
|
adContext?: IAdContext;
|
|
@@ -3321,10 +3381,15 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3321
3381
|
styleTopContainer(): void;
|
|
3322
3382
|
styleBottomContainer(): void;
|
|
3323
3383
|
styleHeadBodyContainer(): void;
|
|
3324
|
-
styleContent(element: BlazeDiv, textStyle: BlazeMomentsPlayerTextStyle, type:
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3384
|
+
styleContent(element: BlazeDiv, textStyle: BlazeMomentsPlayerTextStyle, type: 'HEADING_CONTENT' | 'BODY_CONTENT'): void;
|
|
3385
|
+
applyLikeStyle(): void;
|
|
3386
|
+
applyShareStyle(): void;
|
|
3387
|
+
private applyCtaButtonStyles;
|
|
3388
|
+
private setAnchorButtonStyles;
|
|
3389
|
+
private setIconAttributes;
|
|
3390
|
+
private setLayoutPositioning;
|
|
3391
|
+
private setCtaButtonAlignment;
|
|
3392
|
+
setLayoutSpacing(ctaButtonStyle: BlazeMomentsPlayerCtaStyle, horizontalSpacing: string): void;
|
|
3328
3393
|
initializeElements(): void;
|
|
3329
3394
|
appendShadowElements(): void;
|
|
3330
3395
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
@@ -3334,6 +3399,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3334
3399
|
handleMobileSpecificFeatures(): void;
|
|
3335
3400
|
configureContentBody(): void;
|
|
3336
3401
|
appendBottomContainer(): void;
|
|
3402
|
+
private updateLayoutPositioning;
|
|
3337
3403
|
createPlayPauseButton(): void;
|
|
3338
3404
|
handlePlayPauseButtonClick(): void;
|
|
3339
3405
|
setModal(modal: BlazeWidgetMomentModal): void;
|
|
@@ -3364,13 +3430,13 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3364
3430
|
onCtaClick(event: Event): boolean;
|
|
3365
3431
|
play(): void;
|
|
3366
3432
|
handleOnClose(): void;
|
|
3367
|
-
handleOnLikeClick(
|
|
3433
|
+
handleOnLikeClick(): void;
|
|
3368
3434
|
pause(): void;
|
|
3369
3435
|
resume(): void;
|
|
3370
3436
|
resetPosition(): void;
|
|
3371
3437
|
restartVideo(): void;
|
|
3372
3438
|
adjustAdView(): void;
|
|
3373
|
-
event(action: MomentAction, momentData: Partial<MomentEvent>, label?: string | undefined): void
|
|
3439
|
+
event(action: MomentAction, momentData: Partial<MomentEvent>, label?: string | undefined): Promise<void>;
|
|
3374
3440
|
render(): void;
|
|
3375
3441
|
}
|
|
3376
3442
|
|
|
@@ -3496,7 +3562,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3496
3562
|
adjustAdView(): void;
|
|
3497
3563
|
private setPlayerButtonPosition;
|
|
3498
3564
|
updatePlayerButtonIcons(): void;
|
|
3499
|
-
handleCtaAction(event: Event, gestureType:
|
|
3565
|
+
handleCtaAction(event: Event, gestureType: StoryGestureType): boolean;
|
|
3500
3566
|
playToggle(options?: {
|
|
3501
3567
|
customIsPlaying?: boolean;
|
|
3502
3568
|
}): void;
|
|
@@ -3519,7 +3585,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3519
3585
|
load(): void;
|
|
3520
3586
|
play(): void;
|
|
3521
3587
|
bannerAdEvent(detail: InternalEventDetails[InternalEvent.BANNER_ANALYTICS]): void;
|
|
3522
|
-
event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): void
|
|
3588
|
+
event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): Promise<void>;
|
|
3523
3589
|
updateContainerLayout(): void;
|
|
3524
3590
|
connectedCallback(): void;
|
|
3525
3591
|
onShareModalClose(): void;
|