@wscsports/blaze-web-sdk 0.1.97 → 0.1.99
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 +77 -6
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const _default: {
|
|
|
16
16
|
Initialize: typeof Initialize;
|
|
17
17
|
WidgetGridView: typeof WidgetGridView;
|
|
18
18
|
WidgetRowView: typeof WidgetRowView;
|
|
19
|
+
WidgetEmbeddedStory: typeof WidgetEmbeddedStory;
|
|
19
20
|
Theme: typeof Theme;
|
|
20
21
|
addDelegateListener: typeof addDelegateListener;
|
|
21
22
|
setDoNotTrack: typeof setDoNotTrack;
|
|
@@ -62,11 +63,21 @@ export declare abstract class BaseWidget extends HTMLElement {
|
|
|
62
63
|
constructor();
|
|
63
64
|
getAttribute<T = boolean | string | number>(qualifiedName: string): T;
|
|
64
65
|
setStyle<T extends keyof CSSStyleDeclaration | string>(styles: Record<T, string | null>): void;
|
|
66
|
+
setAttributes(attributes: Record<string, string>): void;
|
|
65
67
|
removeElement(): void;
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
export declare function debounce<T extends Event>(func: EventHandler<T>, _delay: number): (event: T) => Promise<void>;
|
|
69
71
|
|
|
72
|
+
export declare const Platform: {
|
|
73
|
+
readonly Console: "console";
|
|
74
|
+
readonly Mobile: "mobile";
|
|
75
|
+
readonly Tablet: "tablet";
|
|
76
|
+
readonly SmartTV: "smarttv";
|
|
77
|
+
readonly Wearable: "wearable";
|
|
78
|
+
readonly Embedded: "embedded";
|
|
79
|
+
readonly Desktop: "desktop";
|
|
80
|
+
};
|
|
70
81
|
type ScreenOrientation = 'landscape' | 'portrait';
|
|
71
82
|
type Platform = 'console' | 'mobile' | 'tablet' | 'smarttv' | 'wearable' | 'embedded' | 'desktop';
|
|
72
83
|
type OS = 'AIX' | 'Amiga OS' | 'Android' | 'Arch' | 'Bada' | 'BeOS' | 'BlackBerry' | 'CentOS' | 'Chromium OS' | 'Contiki' | 'Fedora' | 'Firefox OS' | 'FreeBSD' | 'Debian' | 'DragonFly' | 'Gentoo' | 'GNU' | 'Haiku' | 'Hurd' | 'iOS' | 'Joli' | 'Linpus' | 'Linux' | 'Mac OS' | 'Mageia' | 'Mandriva' | 'MeeGo' | 'Minix' | 'Mint' | 'Morph OS' | 'NetBSD' | 'Nintendo' | 'OpenBSD' | 'OpenVMS' | 'OS/2' | 'Palm' | 'PCLinuxOS' | 'Plan9' | 'Playstation' | 'QNX' | 'RedHat' | 'RIM Tablet OS' | 'RISC OS' | 'Sailfish' | 'Series40' | 'Slackware' | 'Solaris' | 'SUSE' | 'Symbian' | 'Tizen' | 'Ubuntu' | 'UNIX' | 'VectorLinux' | 'WebOS' | 'Windows Phone/Mobile' | 'Zenwalk';
|
|
@@ -175,7 +186,7 @@ export interface IDrawerOptions {
|
|
|
175
186
|
height?: string;
|
|
176
187
|
width?: string;
|
|
177
188
|
}
|
|
178
|
-
type DrawerAttributes = 'open';
|
|
189
|
+
type DrawerAttributes = 'open' | 'background-color' | 'border-color' | 'border-radius';
|
|
179
190
|
export declare class BlazeDrawer extends BaseWidget {
|
|
180
191
|
backdropContainer: BlazeDiv;
|
|
181
192
|
drawerContainer: BlazeDiv;
|
|
@@ -297,6 +308,7 @@ export declare class BlazeCtaButton extends BaseWidget {
|
|
|
297
308
|
disconnectedCallback(): void;
|
|
298
309
|
attributeChangedCallback(name: AttributeType, oldValue: string, newValue: string): void;
|
|
299
310
|
createButton(): void;
|
|
311
|
+
animateButton(): void;
|
|
300
312
|
setCtaText(value: string): void;
|
|
301
313
|
setWidth(value: string): void;
|
|
302
314
|
setMargin(value: string): void;
|
|
@@ -377,14 +389,26 @@ export declare const exposedFieldsByAction: ExposedFields;
|
|
|
377
389
|
|
|
378
390
|
export declare const TRANSPARENT = "transparent";
|
|
379
391
|
|
|
392
|
+
export declare const TABLET_PADDING_BOTTOM = "15px";
|
|
393
|
+
export declare const DESKTOP_PADDING_BOTTOM = "40px";
|
|
394
|
+
export declare const ASPECT_RATIO_16_9: number;
|
|
395
|
+
export declare const ASPECT_RATIO_9_16: number;
|
|
396
|
+
export declare const ASPECT_RATIO_4_3: number;
|
|
397
|
+
|
|
380
398
|
export * from './analytics.constants';
|
|
399
|
+
export * from './device.constants';
|
|
381
400
|
export * from './iso-country-codes.constants';
|
|
401
|
+
export * from './style.constants';
|
|
382
402
|
export * from './time.constants';
|
|
383
403
|
export * from './css.constants';
|
|
384
404
|
|
|
385
405
|
export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
386
406
|
|
|
407
|
+
export declare const DEFAULT_CTA_HEIGHT = 40;
|
|
408
|
+
export declare const MIN_PADDING_BOTTOM = 10;
|
|
409
|
+
|
|
387
410
|
export declare const ONE_SECOND = 1000;
|
|
411
|
+
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
388
412
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
389
413
|
|
|
390
414
|
export declare class Database implements IDatabase {
|
|
@@ -576,6 +600,7 @@ export interface WidgetsTagNameMap {
|
|
|
576
600
|
'blaze-widget-moment-player': BlazeWidgetMomentPlayer;
|
|
577
601
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
578
602
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
603
|
+
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
579
604
|
'blaze-widget-image': BlazeWidgetStoryImage;
|
|
580
605
|
'blaze-widget-video': BlazeWidgetStoryVideo;
|
|
581
606
|
'blaze-widget-moment-video': BlazeWidgetMomentVideo;
|
|
@@ -608,6 +633,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
608
633
|
'blaze-widget-moment-player': {};
|
|
609
634
|
'blaze-widget-moment-modal': {};
|
|
610
635
|
'blaze-widget-share-modal': {};
|
|
636
|
+
'blaze-widget-cta-modal': {};
|
|
611
637
|
'blaze-widget-image': {};
|
|
612
638
|
'blaze-widget-video': {};
|
|
613
639
|
'blaze-widget-moment-video': {};
|
|
@@ -673,6 +699,7 @@ export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiI
|
|
|
673
699
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
674
700
|
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
675
701
|
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB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m9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85MTUxXzUxODkpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVYxNUg1VjE5SDlWMjFINVpNMTUgMjFWMTlIMTlWMTVIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFIMTVaTTMgOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0g5VjVINVY5SDNaTTE5IDlWNUgxNVYzSDE5QzE5LjU1IDMgMjAuMDIwOCAzLjE5NTgzIDIwLjQxMjUgMy41ODc1QzIwLjgwNDIgMy45NzkxNyAyMSA0LjQ1IDIxIDVWOUgxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L3N2Zz4K";
|
|
677
704
|
|
|
678
705
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
@@ -696,6 +723,7 @@ export interface IBlazeSDKOptions {
|
|
|
696
723
|
runInShadowDom?: boolean;
|
|
697
724
|
playerStyleCustomization?: Partial<StoryPlayerStyle>;
|
|
698
725
|
shouldModifyUrlWithStoryId?: boolean;
|
|
726
|
+
shouldDismissPlayer?: boolean;
|
|
699
727
|
}
|
|
700
728
|
export interface ISmoothOpenCloseModal {
|
|
701
729
|
storyId?: string;
|
|
@@ -869,7 +897,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
869
897
|
events: AnalyticsEvent[];
|
|
870
898
|
uaParsed?: IDevice;
|
|
871
899
|
init(): Promise<void>;
|
|
872
|
-
|
|
900
|
+
sendAnalyticsData(): Promise<void>;
|
|
873
901
|
bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
|
|
874
902
|
pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
875
903
|
pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
@@ -984,6 +1012,7 @@ export declare class StoryEvent {
|
|
|
984
1012
|
'content_duration_viewed': number;
|
|
985
1013
|
'story_page_duration': number;
|
|
986
1014
|
'story_page_duration_viewed_percent': number;
|
|
1015
|
+
'gesture_type': string;
|
|
987
1016
|
'labels_expression': string;
|
|
988
1017
|
'story_session_id': string;
|
|
989
1018
|
'story_page_index': number;
|
|
@@ -1110,6 +1139,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1110
1139
|
private _staticContent;
|
|
1111
1140
|
private _runInShadowDom;
|
|
1112
1141
|
private _shouldModifyUrlWithStoryId;
|
|
1142
|
+
private _shouldDismissPlayer;
|
|
1113
1143
|
private _googleCustomNativeAdHandler?;
|
|
1114
1144
|
private _playerStyleCustomization?;
|
|
1115
1145
|
protected constructor();
|
|
@@ -1137,6 +1167,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1137
1167
|
get playerStyleCustomization(): Partial<StoryPlayerStyle>;
|
|
1138
1168
|
set playerStyleCustomization(value: Partial<StoryPlayerStyle>);
|
|
1139
1169
|
get shouldModifyUrlWithStoryId(): boolean;
|
|
1170
|
+
get shouldDismissPlayer(): boolean;
|
|
1140
1171
|
get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
|
|
1141
1172
|
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
1142
1173
|
}
|
|
@@ -1469,6 +1500,7 @@ export interface CtaButtonStyle {
|
|
|
1469
1500
|
color: string;
|
|
1470
1501
|
isVisible: boolean;
|
|
1471
1502
|
isAnimated: boolean;
|
|
1503
|
+
isDisplayCtaModal: boolean;
|
|
1472
1504
|
fontWeight: FontWeightType;
|
|
1473
1505
|
textTransform: TextTransformType;
|
|
1474
1506
|
padding: string;
|
|
@@ -2031,6 +2063,7 @@ export declare class Stopwatch {
|
|
|
2031
2063
|
}
|
|
2032
2064
|
|
|
2033
2065
|
export * from './widget-ad';
|
|
2066
|
+
export * from './widget-cta-modal';
|
|
2034
2067
|
export * from './widget-embedded-story';
|
|
2035
2068
|
export * from './widget-interaction';
|
|
2036
2069
|
export * from './widget-item';
|
|
@@ -2084,6 +2117,29 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
|
2084
2117
|
private initStyles;
|
|
2085
2118
|
}
|
|
2086
2119
|
|
|
2120
|
+
export declare class BlazeWidgetCtaModal extends BaseWidget {
|
|
2121
|
+
ctaContainer: BlazeDiv;
|
|
2122
|
+
ctaDrawer: BlazeDrawer;
|
|
2123
|
+
ctaUrl: BlazeTypography;
|
|
2124
|
+
textContainer: BlazeDiv;
|
|
2125
|
+
labelText: BlazeTypography;
|
|
2126
|
+
iconShare: BlazeButton;
|
|
2127
|
+
iconExternalLink: BlazeButton;
|
|
2128
|
+
progressBar: BlazeDiv;
|
|
2129
|
+
fullscreenOverlay: BlazeDiv;
|
|
2130
|
+
isOpen: boolean;
|
|
2131
|
+
constructor();
|
|
2132
|
+
static observedAttributes: string[];
|
|
2133
|
+
connectedCallback(): Promise<void>;
|
|
2134
|
+
disconnectedCallback(): void;
|
|
2135
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2136
|
+
animateProgressBar(open: boolean): void;
|
|
2137
|
+
onDrawerClose(): void;
|
|
2138
|
+
open(): void;
|
|
2139
|
+
close(): void;
|
|
2140
|
+
render(): void;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2087
2143
|
export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWidgetView, Observable {
|
|
2088
2144
|
preset?: IWidgetTheme;
|
|
2089
2145
|
players: BlazeWidgetStory[];
|
|
@@ -2094,6 +2150,8 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
|
|
|
2094
2150
|
modal?: BlazeWidgetStoryModal;
|
|
2095
2151
|
skeleton?: BlazeWidgetItemSkeleton;
|
|
2096
2152
|
shouldReloadData: boolean;
|
|
2153
|
+
bindedOnStoryPlayerDidAppear: (e: Event) => void;
|
|
2154
|
+
bindedOnStoryPlayerDismissed: (e: Event) => void;
|
|
2097
2155
|
private get theme();
|
|
2098
2156
|
constructor();
|
|
2099
2157
|
static get observedAttributes(): string[];
|
|
@@ -2131,6 +2189,9 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
|
|
|
2131
2189
|
onCustomNativeAdEnded(): void;
|
|
2132
2190
|
showSkeleton(): void;
|
|
2133
2191
|
hideSkeleton(): void;
|
|
2192
|
+
private onStoryPlayerDidAppear;
|
|
2193
|
+
private onStoryPlayerDismissed;
|
|
2194
|
+
private onOtherModalOpenedClosed;
|
|
2134
2195
|
}
|
|
2135
2196
|
|
|
2136
2197
|
export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
@@ -2556,6 +2617,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2556
2617
|
data: IPage | undefined;
|
|
2557
2618
|
shouldShowImaAd?: boolean;
|
|
2558
2619
|
isCurrentlyTryingToRunImaAd?: boolean;
|
|
2620
|
+
_isAd?: boolean | undefined;
|
|
2559
2621
|
constructor();
|
|
2560
2622
|
setData(data: IPage): void;
|
|
2561
2623
|
loadPoster(): void;
|
|
@@ -2566,6 +2628,8 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2566
2628
|
get currentTime(): number;
|
|
2567
2629
|
set currentTime(value: number);
|
|
2568
2630
|
get muted(): boolean;
|
|
2631
|
+
get isAd(): boolean | undefined;
|
|
2632
|
+
set isAd(value: boolean | undefined);
|
|
2569
2633
|
removeLoader(): any;
|
|
2570
2634
|
load(): void;
|
|
2571
2635
|
unload(): void;
|
|
@@ -2624,6 +2688,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2624
2688
|
setTheme(theme: IWidgetTheme): void;
|
|
2625
2689
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
2626
2690
|
seek(id: string): void;
|
|
2691
|
+
handleExit(): void;
|
|
2627
2692
|
onKeyDown(ev: KeyboardEvent): void;
|
|
2628
2693
|
close(): void;
|
|
2629
2694
|
open(options?: ISmoothOpenCloseModal): void;
|
|
@@ -2806,6 +2871,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2806
2871
|
get paused(): boolean;
|
|
2807
2872
|
get muted(): boolean;
|
|
2808
2873
|
set muted(value: boolean);
|
|
2874
|
+
get isAd(): boolean;
|
|
2809
2875
|
render(): void;
|
|
2810
2876
|
restartVideo(): void;
|
|
2811
2877
|
initializeIMA(): void;
|
|
@@ -2828,11 +2894,15 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2828
2894
|
mode: 'Full Screen' | 'Embedded';
|
|
2829
2895
|
pages: BlazeWidgetStoryBase[];
|
|
2830
2896
|
data: IStory;
|
|
2831
|
-
shareModal
|
|
2897
|
+
shareModal?: BlazeWidgetShareModal;
|
|
2898
|
+
ctaModal?: BlazeWidgetCtaModal;
|
|
2832
2899
|
isStoryLoadCompletedTriggered: boolean;
|
|
2833
2900
|
isStoryActive: boolean;
|
|
2834
2901
|
isResumeOnFocusExecuted: boolean;
|
|
2835
|
-
|
|
2902
|
+
isCtaWasClickedOrSwiped: boolean;
|
|
2903
|
+
refWidget?: BlazeWidgetStory[];
|
|
2904
|
+
refPlayer?: BlazeWidgetStoryPlayer;
|
|
2905
|
+
refPlayerModal?: BlazeWidgetStoryModal;
|
|
2836
2906
|
pageIndex: number;
|
|
2837
2907
|
container: HTMLElement;
|
|
2838
2908
|
progressElement: HTMLElement;
|
|
@@ -2864,7 +2934,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2864
2934
|
playCallback: any;
|
|
2865
2935
|
sessionId: string;
|
|
2866
2936
|
startTrigger: 'Embedded Player in Viewport' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2867
|
-
exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2937
|
+
exitTrigger: 'Swipe' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2868
2938
|
navigationType: 'Automatic' | 'Manual' | undefined;
|
|
2869
2939
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2870
2940
|
resumeAfterfocus: boolean;
|
|
@@ -2893,7 +2963,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2893
2963
|
adjustAdView(): void;
|
|
2894
2964
|
setPlayerButtonPosition(state: 'AD' | 'NO_AD'): void;
|
|
2895
2965
|
updatePlayerButtonIcons(): void;
|
|
2896
|
-
|
|
2966
|
+
handleCtaAction(event: Event, gestureType: 'Swipe Up' | 'CTA Click'): boolean;
|
|
2897
2967
|
playToggle(): void;
|
|
2898
2968
|
muteToggle(): boolean;
|
|
2899
2969
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
@@ -2920,6 +2990,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2920
2990
|
updateContainerLayout(): void;
|
|
2921
2991
|
connectedCallback(): void;
|
|
2922
2992
|
onShareModalClose(): void;
|
|
2993
|
+
onCtaModalClick(): void;
|
|
2923
2994
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
2924
2995
|
onVisibilityChange(): void;
|
|
2925
2996
|
onBlur(): void;
|