@wscsports/blaze-web-sdk 0.2.7 → 0.3.0
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 +175 -52
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ export declare function Initialize(apiKey: string, userOptions?: Partial<IBlazeS
|
|
|
5
5
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
6
6
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
7
7
|
export declare function WidgetEmbeddedStory(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
8
|
-
export declare function Theme(theme: ThemeType): IWidgetTheme
|
|
8
|
+
export declare function Theme(theme: ThemeType, contentType: 'moment'): IWidgetTheme<MomentPlayerStyle>;
|
|
9
|
+
export declare function Theme(theme: ThemeType, contentType: 'story'): IWidgetTheme<StoryPlayerStyle>;
|
|
10
|
+
export declare function Theme(theme: ThemeType): IWidgetTheme<StoryPlayerStyle>;
|
|
9
11
|
export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
10
12
|
export declare const Delegations: typeof Delegation;
|
|
11
13
|
export declare function LabelBuilder(): IWidgetLabelBuilder;
|
|
@@ -178,6 +180,7 @@ export declare class StoryEvent {
|
|
|
178
180
|
'audio_state': string;
|
|
179
181
|
'playback_action_method': PlaybackActionType;
|
|
180
182
|
'player_type': PlayerType;
|
|
183
|
+
'player_orientation': ContentAspectRatio;
|
|
181
184
|
}
|
|
182
185
|
export declare class MomentEvent {
|
|
183
186
|
'moments_session_id': string;
|
|
@@ -236,6 +239,8 @@ export declare class AdEvent {
|
|
|
236
239
|
'skip_config': string;
|
|
237
240
|
'content_type': string;
|
|
238
241
|
'ad_path': string;
|
|
242
|
+
'ad_unit_id': string;
|
|
243
|
+
'session_id': string;
|
|
239
244
|
}
|
|
240
245
|
export declare class ImaAdEvent {
|
|
241
246
|
'story_id': string;
|
|
@@ -480,7 +485,6 @@ export * from './drawer';
|
|
|
480
485
|
export * from './image';
|
|
481
486
|
export * from './loader';
|
|
482
487
|
export * from './skeleton';
|
|
483
|
-
export * from './toast';
|
|
484
488
|
export * from './typography';
|
|
485
489
|
|
|
486
490
|
export declare class BlazeLoader extends HTMLElement {
|
|
@@ -497,21 +501,6 @@ export declare class BlazeWidgetItemSkeleton extends BaseWidget {
|
|
|
497
501
|
connectedCallback(): void;
|
|
498
502
|
}
|
|
499
503
|
|
|
500
|
-
export declare class BlazeToast extends BaseWidget {
|
|
501
|
-
constructor();
|
|
502
|
-
static get observedAttributes(): string[];
|
|
503
|
-
connectedCallback(): void;
|
|
504
|
-
disconnectedCallback(): void;
|
|
505
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
506
|
-
show(options: {
|
|
507
|
-
show: boolean;
|
|
508
|
-
sevrity: SeverityType;
|
|
509
|
-
title?: string;
|
|
510
|
-
text: string;
|
|
511
|
-
}): void;
|
|
512
|
-
protected render(): void;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
504
|
type AttributeType = 'size' | 'text';
|
|
516
505
|
export declare class BlazeTypography extends BaseWidget {
|
|
517
506
|
constructor();
|
|
@@ -591,6 +580,12 @@ export declare class BlazeShareButton extends BaseWidget {
|
|
|
591
580
|
createButton(text: string, svgIcon: string): void;
|
|
592
581
|
}
|
|
593
582
|
|
|
583
|
+
export declare const IMA_RATIOS: {
|
|
584
|
+
readonly general: "1x1";
|
|
585
|
+
readonly horizontal: "640x480";
|
|
586
|
+
readonly vertical: "1080x1920";
|
|
587
|
+
};
|
|
588
|
+
|
|
594
589
|
export declare enum StoryAction {
|
|
595
590
|
Start = "story_start",
|
|
596
591
|
Exit = "story_exit",
|
|
@@ -628,7 +623,10 @@ export declare enum WidgetAction {
|
|
|
628
623
|
export declare enum AdAction {
|
|
629
624
|
View = "ad_view",
|
|
630
625
|
Exit = "ad_exit",
|
|
631
|
-
Click = "ad_click"
|
|
626
|
+
Click = "ad_click",
|
|
627
|
+
BannerView = "banner_ad_view",
|
|
628
|
+
BannerLoad = "banner_ad_load",
|
|
629
|
+
BannerClick = "banner_ad_click"
|
|
632
630
|
}
|
|
633
631
|
export declare enum ImaAdAction {
|
|
634
632
|
ALL_ADS_COMPLETED = "ima_all_ads_completed",
|
|
@@ -679,6 +677,7 @@ export declare const ASPECT_RATIO_16_9_STRING = "16 / 9";
|
|
|
679
677
|
export declare const ASPECT_RATIO_9_16_STRING = "9 / 16";
|
|
680
678
|
export declare const ASPECT_RATIO_4_3_STRING = "4 / 3";
|
|
681
679
|
|
|
680
|
+
export * from './ads.constants';
|
|
682
681
|
export * from './analytics.constants';
|
|
683
682
|
export * from './device.constants';
|
|
684
683
|
export * from './iso-country-codes.constants';
|
|
@@ -722,7 +721,13 @@ export interface IAdInfo {
|
|
|
722
721
|
configuration?: IAdInfoConfiguration;
|
|
723
722
|
context?: IAdContext;
|
|
724
723
|
}
|
|
724
|
+
export interface IBannerAdInfo {
|
|
725
|
+
adUnitId: string;
|
|
726
|
+
size: 'Banner';
|
|
727
|
+
type: 'Banner';
|
|
728
|
+
}
|
|
725
729
|
|
|
730
|
+
export type ContentAspectRatio = 'Vertical' | 'Horizontal';
|
|
726
731
|
export interface IContent {
|
|
727
732
|
id: string;
|
|
728
733
|
title: string;
|
|
@@ -737,6 +742,7 @@ export interface IContent {
|
|
|
737
742
|
teamId: string | null;
|
|
738
743
|
playerId: string | null;
|
|
739
744
|
};
|
|
745
|
+
bannerAdInfo?: IBannerAdInfo;
|
|
740
746
|
}
|
|
741
747
|
|
|
742
748
|
export interface ICTA {
|
|
@@ -818,6 +824,8 @@ export interface IMoment extends IContent {
|
|
|
818
824
|
};
|
|
819
825
|
cta: ICTA;
|
|
820
826
|
adPath?: string;
|
|
827
|
+
subtitle?: string;
|
|
828
|
+
description?: string;
|
|
821
829
|
}
|
|
822
830
|
export type MomentDB = {
|
|
823
831
|
id: string;
|
|
@@ -856,6 +864,7 @@ export type IPage = IAdPage | IContentPage;
|
|
|
856
864
|
|
|
857
865
|
export interface IRendition {
|
|
858
866
|
url: string;
|
|
867
|
+
aspectRatio: ContentAspectRatio;
|
|
859
868
|
}
|
|
860
869
|
|
|
861
870
|
export interface IStory extends IContent {
|
|
@@ -868,6 +877,7 @@ export interface IStory extends IContent {
|
|
|
868
877
|
export interface IThumbnail {
|
|
869
878
|
type: 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail' | 'PosterPortrait';
|
|
870
879
|
rendition: IRendition;
|
|
880
|
+
renditions?: IRendition[];
|
|
871
881
|
}
|
|
872
882
|
|
|
873
883
|
export declare enum ErrorCode {
|
|
@@ -905,7 +915,14 @@ export declare enum InternalEvent {
|
|
|
905
915
|
PREV_STORY = "prev_story",
|
|
906
916
|
FULL_SCREEN_CLICK = "full_screen_click",
|
|
907
917
|
AD_ENDED = "ad_ended",
|
|
908
|
-
AD_RESUMED = "ad_resumed"
|
|
918
|
+
AD_RESUMED = "ad_resumed",
|
|
919
|
+
BANNER_ANALYTICS = "banner_analytics"
|
|
920
|
+
}
|
|
921
|
+
export interface InternalEventDetails {
|
|
922
|
+
[InternalEvent.BANNER_ANALYTICS]: {
|
|
923
|
+
type: AdAction;
|
|
924
|
+
adUnitId: string;
|
|
925
|
+
};
|
|
909
926
|
}
|
|
910
927
|
|
|
911
928
|
export declare const HttpStatus: {
|
|
@@ -941,10 +958,10 @@ export interface WidgetsTagNameMap {
|
|
|
941
958
|
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
942
959
|
'blaze-widget-video': BlazeWidgetVideo;
|
|
943
960
|
'blaze-widget-interaction': BlazeWidgetInteraction;
|
|
961
|
+
'blaze-widget-banner-ad': BlazeWidgetBannerAd;
|
|
944
962
|
'blaze-loader': BlazeLoader;
|
|
945
963
|
'blaze-chip': BlazeChip;
|
|
946
964
|
'blaze-image': BlazeImage;
|
|
947
|
-
'blaze-toast': BlazeToast;
|
|
948
965
|
'blaze-alert': BlazeAlert;
|
|
949
966
|
'blaze-modal': BlazeDrawer;
|
|
950
967
|
'blaze-div': BlazeDiv;
|
|
@@ -973,10 +990,10 @@ interface WidgetsTagNameOptionsMap {
|
|
|
973
990
|
'blaze-widget-video': {};
|
|
974
991
|
'blaze-widget-moment-video': {};
|
|
975
992
|
'blaze-widget-interaction': {};
|
|
993
|
+
'blaze-widget-banner-ad': {};
|
|
976
994
|
'blaze-loader': {};
|
|
977
995
|
'blaze-chip': {};
|
|
978
996
|
'blaze-image': {};
|
|
979
|
-
'blaze-toast': {};
|
|
980
997
|
'blaze-alert': {};
|
|
981
998
|
'blaze-modal': {};
|
|
982
999
|
'blaze-div': {};
|
|
@@ -1004,8 +1021,8 @@ export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
|
|
|
1004
1021
|
|
|
1005
1022
|
export * from './svgs';
|
|
1006
1023
|
|
|
1007
|
-
export declare const
|
|
1008
|
-
export declare const
|
|
1024
|
+
export declare const unlikeIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyOCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjAwMDMgMjVMMTIuMDY3IDIzLjI2NjdDOS44MjI1NSAyMS4yNDQ1IDcuOTY2OTkgMTkuNSA2LjUwMDMzIDE4LjAzMzRDNS4wMzM2NiAxNi41NjY3IDMuODY2OTkgMTUuMjUgMy4wMDAzMyAxNC4wODM0QzIuMTMzNjYgMTIuOTE2NyAxLjUyODEgMTEuODQ0NSAxLjE4MzY2IDEwLjg2NjdDMC44MzkyMTQgOS44ODg5MSAwLjY2Njk5MiA4Ljg4ODkxIDAuNjY2OTkyIDcuODY2NjlDMC42NjY5OTIgNS43Nzc4IDEuMzY2OTkgNC4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ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi45NDczIDIzLjM3NDhDMTMuMSAyMy43NTI2IDEzLjQ2NjggMjQgMTMuODc0NCAyNEgxNC4zNzE5QzE0Ljc4OTYgMjQgMTUuMTYzMyAyMy43NDAzIDE1LjMwOSAyMy4zNDg4TDIzLjIzNzUgMi4wNDg1QzIzLjUzNjIgMS4yNDYwNCAyMi43NTM5IDAuNDYzNzg1IDIxLjk1MTUgMC43NjI0OEwwLjY1MTE2IDguNjkwOTNDMC4yNTk2NjUgOC44MzY2NSAwIDkuMjEwMzcgMCA5LjYyODExVjEwLjEyNTZDMCAxMC41MzMyIDAuMjQ3MzQ5IDEwLjkgMC42MjUyMTEgMTEuMDUyN0w5LjQgMTQuNkwxMi45NDczIDIzLjM3NDhaTTE4LjM1MTggNy41MzM4OUwxNC4wNjY3IDE5LjA2NjZMMTIuMDAzNSAxMy44ODIyTDE4LjM1MTggNy41MzM4OVpNMTYuNDY2MyA1LjY0ODEyTDEwLjExNzkgMTEuOTk2NUw0LjkzMzMzIDkuOTMzMzFMMTYuNDY2MyA1LjY0ODEyWiIgZmlsbD0iI0YwRjBGMCIvPgo8L3N2Zz4K";
|
|
1010
1027
|
export declare const IconLink = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"10\" viewBox=\"0 0 20 10\" fill=\"none\"><path d=\"M9 10H5C3.61667 10 2.4375 9.5125 1.4625 8.5375C0.4875 7.5625 0 6.38333 0 5C0 3.61667 0.4875 2.4375 1.4625 1.4625C2.4375 0.4875 3.61667 0 5 0H9V2H5C4.16667 2 3.45833 2.29167 2.875 2.875C2.29167 3.45833 2 4.16667 2 5C2 5.83333 2.29167 6.54167 2.875 7.125C3.45833 7.70833 4.16667 8 5 8H9V10ZM6 6V4H14V6H6ZM11 10V8H15C15.8333 8 16.5417 7.70833 17.125 7.125C17.7083 6.54167 18 5.83333 18 5C18 4.16667 17.7083 3.45833 17.125 2.875C16.5417 2.29167 15.8333 2 15 2H11V0H15C16.3833 0 17.5625 0.4875 18.5375 1.4625C19.5125 2.4375 20 3.61667 20 5C20 6.38333 19.5125 7.5625 18.5375 8.5375C17.5625 9.5125 16.3833 10 15 10H11Z\" fill=\"white\" fill-opacity=\"0.92\"/></svg>";
|
|
1011
1028
|
export declare const IconGlobe = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"><path d=\"M10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM9 17.95V16C8.45 16 7.97917 15.8042 7.5875 15.4125C7.19583 15.0208 7 14.55 7 14V13L2.2 8.2C2.15 8.5 2.10417 8.8 2.0625 9.1C2.02083 9.4 2 9.7 2 10C2 12.0167 2.6625 13.7833 3.9875 15.3C5.3125 16.8167 6.98333 17.7 9 17.95ZM15.9 15.4C16.2333 15.0333 16.5333 14.6375 16.8 14.2125C17.0667 13.7875 17.2875 13.3458 17.4625 12.8875C17.6375 12.4292 17.7708 11.9583 17.8625 11.475C17.9542 10.9917 18 10.5 18 10C18 8.36667 17.5458 6.875 16.6375 5.525C15.7292 4.175 14.5167 3.2 13 2.6V3C13 3.55 12.8042 4.02083 12.4125 4.4125C12.0208 4.80417 11.55 5 11 5H9V7C9 7.28333 8.90417 7.52083 8.7125 7.7125C8.52083 7.90417 8.28333 8 8 8H6V10H12C12.2833 10 12.5208 10.0958 12.7125 10.2875C12.9042 10.4792 13 10.7167 13 11V14H14C14.4333 14 14.825 14.1292 15.175 14.3875C15.525 14.6458 15.7667 14.9833 15.9 15.4Z\" fill=\"%23131313\"/></svg>";
|
|
@@ -1025,7 +1042,8 @@ export declare const pauseResumeIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR
|
|
|
1025
1042
|
export declare const arrowUpCtaIconSvg = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
1026
1043
|
export declare const externalLinkIconSvg = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0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3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85NDQ5Xzk3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
1031
1049
|
|
|
@@ -1062,6 +1080,7 @@ export interface IBlazeSDKOptions {
|
|
|
1062
1080
|
shouldCreateUser?: boolean;
|
|
1063
1081
|
externalUserId?: string | null;
|
|
1064
1082
|
prefetchingPolicy?: PrefetchingPolicyType;
|
|
1083
|
+
shouldAllowHorizontalStories?: boolean;
|
|
1065
1084
|
}
|
|
1066
1085
|
|
|
1067
1086
|
export interface IButtonPlayerNavigationConfig {
|
|
@@ -1141,7 +1160,7 @@ export interface IHttpResponse<T = any> extends IResponse<T> {
|
|
|
1141
1160
|
httpStatus?: number;
|
|
1142
1161
|
}
|
|
1143
1162
|
|
|
1144
|
-
export interface
|
|
1163
|
+
export interface BlazeStoryIcons {
|
|
1145
1164
|
play: string;
|
|
1146
1165
|
pause: string;
|
|
1147
1166
|
mute: string;
|
|
@@ -1157,6 +1176,20 @@ export interface IIcons {
|
|
|
1157
1176
|
prevStory: string;
|
|
1158
1177
|
};
|
|
1159
1178
|
}
|
|
1179
|
+
export interface BlazeMomentIconsStyle {
|
|
1180
|
+
play: string;
|
|
1181
|
+
pause: string;
|
|
1182
|
+
mute: string;
|
|
1183
|
+
unmute: string;
|
|
1184
|
+
share: string;
|
|
1185
|
+
exit: string;
|
|
1186
|
+
like: string;
|
|
1187
|
+
unlike: string;
|
|
1188
|
+
navigation: {
|
|
1189
|
+
nextMoment: string;
|
|
1190
|
+
prevMoment: string;
|
|
1191
|
+
};
|
|
1192
|
+
}
|
|
1160
1193
|
|
|
1161
1194
|
export * from './ad-handler.interface';
|
|
1162
1195
|
export * from './behaviors.interface';
|
|
@@ -1363,6 +1396,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1363
1396
|
private _shouldCreateUser;
|
|
1364
1397
|
private _externalUserId;
|
|
1365
1398
|
private _prefetchingPolicy;
|
|
1399
|
+
private _shouldAllowHorizontalStories;
|
|
1366
1400
|
protected constructor();
|
|
1367
1401
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1368
1402
|
private _urls;
|
|
@@ -1377,6 +1411,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1377
1411
|
set externalUserId(value: string | null);
|
|
1378
1412
|
get doNotTrack(): boolean;
|
|
1379
1413
|
set doNotTrack(value: boolean);
|
|
1414
|
+
get shouldAllowHorizontalStories(): boolean;
|
|
1380
1415
|
get geoLocation(): string;
|
|
1381
1416
|
set geoLocation(value: string);
|
|
1382
1417
|
get staticContent(): boolean;
|
|
@@ -1714,6 +1749,7 @@ export declare class Presets {
|
|
|
1714
1749
|
static RowHorizontalRectangle: LayoutStyle;
|
|
1715
1750
|
static Default: LayoutStyle;
|
|
1716
1751
|
static DefaultStoryStyle: StoryPlayerStyle;
|
|
1752
|
+
static DefaultMomentStyle: MomentPlayerStyle;
|
|
1717
1753
|
}
|
|
1718
1754
|
|
|
1719
1755
|
export interface IndicatorStyle {
|
|
@@ -1789,9 +1825,55 @@ export interface StoryPlayerStyle {
|
|
|
1789
1825
|
iconsButtonPadding: string;
|
|
1790
1826
|
iconsButtonOrder: IconButtonType[];
|
|
1791
1827
|
contentOrder: ContentOrderType[];
|
|
1792
|
-
icons:
|
|
1828
|
+
icons: BlazeStoryIcons;
|
|
1793
1829
|
localeDirection: LocaleDirectionType;
|
|
1794
1830
|
}
|
|
1831
|
+
export type BlazeMomentsPlayerTextStyle = {
|
|
1832
|
+
font: string;
|
|
1833
|
+
textSizeMobile: string;
|
|
1834
|
+
textSizeTablet: string;
|
|
1835
|
+
textSizeDesktop: string;
|
|
1836
|
+
textColor: string;
|
|
1837
|
+
fontWeight: FontWeightType;
|
|
1838
|
+
textTransform: TextTransformType;
|
|
1839
|
+
isVisible: boolean;
|
|
1840
|
+
lineHeight: string;
|
|
1841
|
+
};
|
|
1842
|
+
type BlazeMomentsPlayerHeadingTextStyle = BlazeMomentsPlayerTextStyle & {
|
|
1843
|
+
contentSource: 'TITLE' | 'SUBTITLE';
|
|
1844
|
+
};
|
|
1845
|
+
type BlazeMomentsPlayerBodyTextStyle = BlazeMomentsPlayerTextStyle & {
|
|
1846
|
+
contentSource: 'TITLE' | 'SUBTITLE' | 'DESCRIPTION';
|
|
1847
|
+
};
|
|
1848
|
+
type BlazeMomentsPlayerButtonsStyle = {
|
|
1849
|
+
mute_unmute: BlazeMomentsPlayerButtonStyle;
|
|
1850
|
+
exit: BlazeMomentsPlayerButtonStyle;
|
|
1851
|
+
share: BlazeMomentsPlayerButtonStyle;
|
|
1852
|
+
like_unlike: BlazeMomentsPlayerButtonStyle;
|
|
1853
|
+
};
|
|
1854
|
+
export type BlazeMomentsPlayerButtonDeviceStyle = {
|
|
1855
|
+
width: string;
|
|
1856
|
+
height: string;
|
|
1857
|
+
color: string;
|
|
1858
|
+
padding: string;
|
|
1859
|
+
isVisible: boolean;
|
|
1860
|
+
borderRadius: string;
|
|
1861
|
+
backgroundColor: string;
|
|
1862
|
+
};
|
|
1863
|
+
type BlazeMomentsPlayerButtonStyle = {
|
|
1864
|
+
mobile: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1865
|
+
tablet: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1866
|
+
desktop: BlazeMomentsPlayerButtonDeviceStyle;
|
|
1867
|
+
};
|
|
1868
|
+
export interface MomentPlayerStyle {
|
|
1869
|
+
headingText: BlazeMomentsPlayerHeadingTextStyle;
|
|
1870
|
+
bodyText: BlazeMomentsPlayerBodyTextStyle;
|
|
1871
|
+
likeText: BlazeMomentsPlayerTextStyle;
|
|
1872
|
+
buttons: BlazeMomentsPlayerButtonsStyle;
|
|
1873
|
+
icons: BlazeMomentIconsStyle;
|
|
1874
|
+
iconsButtonOrder: IconButtonType[];
|
|
1875
|
+
iconsPosition: IconsPositionType;
|
|
1876
|
+
}
|
|
1795
1877
|
export interface CtaButtonStyle {
|
|
1796
1878
|
borderRadius: string;
|
|
1797
1879
|
border: string;
|
|
@@ -1816,9 +1898,9 @@ export interface IconStyle {
|
|
|
1816
1898
|
size: string;
|
|
1817
1899
|
color: string;
|
|
1818
1900
|
}
|
|
1819
|
-
export interface IWidgetTheme {
|
|
1901
|
+
export interface IWidgetTheme<T = MomentPlayerStyle | StoryPlayerStyle> {
|
|
1820
1902
|
layoutStyle: LayoutStyle;
|
|
1821
|
-
playerStyle:
|
|
1903
|
+
playerStyle: T;
|
|
1822
1904
|
}
|
|
1823
1905
|
export declare const Colors: {
|
|
1824
1906
|
readonly DarkPrimary: "#0D0F14";
|
|
@@ -1837,8 +1919,12 @@ export declare const Colors: {
|
|
|
1837
1919
|
|
|
1838
1920
|
export type ThemeType = 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle' | 'row-rectangle-horizontal' | 'grid-2-columns-horizontal' | 'grid-3-columns-horizontal' | 'default';
|
|
1839
1921
|
export declare class ThemeFactory {
|
|
1840
|
-
static create(name
|
|
1922
|
+
static create(name: ThemeType, contentType: 'moment'): IWidgetTheme<MomentPlayerStyle>;
|
|
1923
|
+
static create(name: ThemeType, contentType: 'story'): IWidgetTheme<StoryPlayerStyle>;
|
|
1924
|
+
static create(name: ThemeType): IWidgetTheme<StoryPlayerStyle>;
|
|
1841
1925
|
}
|
|
1926
|
+
export declare function isStoryPlayerStyle(playerStyle: StoryPlayerStyle | MomentPlayerStyle): playerStyle is StoryPlayerStyle;
|
|
1927
|
+
export declare function isMomentPlayerStyle(playerStyle: StoryPlayerStyle | MomentPlayerStyle): playerStyle is MomentPlayerStyle;
|
|
1842
1928
|
|
|
1843
1929
|
|
|
1844
1930
|
export interface IAttributeParser {
|
|
@@ -2217,7 +2303,7 @@ export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
|
|
|
2217
2303
|
export type NavigationType = 'Automatic' | 'Manual' | '';
|
|
2218
2304
|
export type NavigationDirectionType = 'Forwards' | 'Backwards' | '';
|
|
2219
2305
|
|
|
2220
|
-
export type ComponentsElementType = 'blaze-alert' | 'blaze-
|
|
2306
|
+
export type ComponentsElementType = 'blaze-alert' | 'blaze-chip' | 'blaze-image';
|
|
2221
2307
|
export type WidgetElementType = 'blaze-sdk';
|
|
2222
2308
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
2223
2309
|
|
|
@@ -2397,6 +2483,7 @@ export declare class Stopwatch {
|
|
|
2397
2483
|
export * from './widget-video-base';
|
|
2398
2484
|
export * from './widget-player';
|
|
2399
2485
|
export * from './ad/widget-ad';
|
|
2486
|
+
export * from './ad/widget-banner-ad';
|
|
2400
2487
|
export * from './widget-embedded-story';
|
|
2401
2488
|
export * from './widget-interaction';
|
|
2402
2489
|
export * from './widget-item';
|
|
@@ -2433,6 +2520,7 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
|
|
|
2433
2520
|
widgetParentItem: BlazeWidgetItem;
|
|
2434
2521
|
sessionId: string;
|
|
2435
2522
|
refContentModal?: BlazeWidgetStoryModal | BlazeWidgetMomentModal;
|
|
2523
|
+
abstract aspectRatio?: ContentAspectRatio;
|
|
2436
2524
|
constructor();
|
|
2437
2525
|
connectedCallback(): void;
|
|
2438
2526
|
disconnectedCallback(): void;
|
|
@@ -2545,7 +2633,7 @@ export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
|
2545
2633
|
}
|
|
2546
2634
|
|
|
2547
2635
|
export interface BlazeWidgetItemOptions {
|
|
2548
|
-
|
|
2636
|
+
layout: LayoutStyle;
|
|
2549
2637
|
content: IStory | IMoment;
|
|
2550
2638
|
}
|
|
2551
2639
|
export declare class BlazeWidgetItem extends BaseWidget {
|
|
@@ -2558,7 +2646,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2558
2646
|
private label;
|
|
2559
2647
|
private labelContainer;
|
|
2560
2648
|
private labelBackground;
|
|
2561
|
-
|
|
2649
|
+
layoutStyle: LayoutStyle;
|
|
2562
2650
|
private chip;
|
|
2563
2651
|
private badge;
|
|
2564
2652
|
private isLive;
|
|
@@ -2576,7 +2664,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2576
2664
|
connectedCallback(): void;
|
|
2577
2665
|
updateWidget(): void;
|
|
2578
2666
|
updateWidgetItemPadding(): void;
|
|
2579
|
-
updateWidgetItemStyle(
|
|
2667
|
+
updateWidgetItemStyle(layoutStyle: LayoutStyle): void;
|
|
2580
2668
|
private setupDOMElements;
|
|
2581
2669
|
private setupEventListeners;
|
|
2582
2670
|
private handleWidgetClick;
|
|
@@ -2595,7 +2683,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
2595
2683
|
private handleOutsidePosition;
|
|
2596
2684
|
private handleInsidePosition;
|
|
2597
2685
|
private applyCommonStyles;
|
|
2598
|
-
setTheme(
|
|
2686
|
+
setTheme(layoutStyle: LayoutStyle): void;
|
|
2599
2687
|
initializeAndRenderWidget(): void;
|
|
2600
2688
|
getPaddingOnContainer(): PositionOffset;
|
|
2601
2689
|
setPaddingOnContainer(padding: PositionOffset): void;
|
|
@@ -2642,7 +2730,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2642
2730
|
onPlayerOpen(): void;
|
|
2643
2731
|
getParentHeightWithoutPadding(): number | null;
|
|
2644
2732
|
setId(id: string): void;
|
|
2645
|
-
handlePopState(): void;
|
|
2646
2733
|
private setReloadData;
|
|
2647
2734
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2648
2735
|
set storyIds(value: string);
|
|
@@ -2669,10 +2756,12 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2669
2756
|
static get observedAttributes(): string[];
|
|
2670
2757
|
private onItemClick;
|
|
2671
2758
|
private loadContent;
|
|
2759
|
+
private handleStoryContent;
|
|
2760
|
+
private handleMomentContent;
|
|
2672
2761
|
handleAssetsExpiry(data: {
|
|
2673
2762
|
assetsExpiryTime: string;
|
|
2674
2763
|
}): void;
|
|
2675
|
-
|
|
2764
|
+
handleWidgetContent(): void;
|
|
2676
2765
|
calculateChipSizes(theme: IWidgetTheme): {
|
|
2677
2766
|
badge: {
|
|
2678
2767
|
width: number;
|
|
@@ -2727,12 +2816,14 @@ export declare class BlazeWidgetModal extends BaseWidget {
|
|
|
2727
2816
|
hammer: HammerManager | null;
|
|
2728
2817
|
isMultiTouch: boolean;
|
|
2729
2818
|
boundOnResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2819
|
+
boundOnPopStateEvent: (ev: PopStateEvent) => void;
|
|
2730
2820
|
onContentChange?: (mode: ContentDirection) => void;
|
|
2731
2821
|
constructor(type: 'story' | 'moment');
|
|
2732
2822
|
connectedCallback(): void;
|
|
2733
2823
|
disconnectedCallback(): void;
|
|
2734
2824
|
onResize(): void;
|
|
2735
2825
|
handleOnContentChange(mode: ContentDirection): void;
|
|
2826
|
+
handlePopState(ev: PopStateEvent): void;
|
|
2736
2827
|
seek(id: string): void;
|
|
2737
2828
|
setupHammer(): void;
|
|
2738
2829
|
handlePanStart(ev: HammerInput): void;
|
|
@@ -3025,10 +3116,20 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
3025
3116
|
private destroyAd;
|
|
3026
3117
|
}
|
|
3027
3118
|
|
|
3119
|
+
export declare class BlazeWidgetBannerAd extends HTMLElement {
|
|
3120
|
+
private adContainer;
|
|
3121
|
+
private get googletag();
|
|
3122
|
+
connectedCallback(): void;
|
|
3123
|
+
show(bannerAdInfo?: IBannerAdInfo): void;
|
|
3124
|
+
private setInitialStyles;
|
|
3125
|
+
private setAdContainer;
|
|
3126
|
+
private raiseAnalyticsEventToParent;
|
|
3127
|
+
}
|
|
3128
|
+
|
|
3028
3129
|
export type BlazeWidgetContentType = BlazeWidgetMoment[] & BlazeWidgetStory[];
|
|
3029
3130
|
export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
3030
3131
|
parentWidget: HTMLElement;
|
|
3031
|
-
playerLayout:
|
|
3132
|
+
playerLayout: MomentPlayerStyle;
|
|
3032
3133
|
data: IMoment[];
|
|
3033
3134
|
playlistSessionId: string;
|
|
3034
3135
|
navigationButtonsContainerElement: BlazeDiv;
|
|
@@ -3039,9 +3140,10 @@ export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
|
3039
3140
|
boundOnKeyDown: (ev: KeyboardEvent) => void;
|
|
3040
3141
|
boundOnNavigationChange: (ev: Event) => void;
|
|
3041
3142
|
boundOnResizeEventDelay: (this: Window, ev: UIEvent) => void;
|
|
3042
|
-
constructor(parentWidget: HTMLElement, playerLayout:
|
|
3143
|
+
constructor(parentWidget: HTMLElement, playerLayout: MomentPlayerStyle);
|
|
3043
3144
|
connectedCallback(): void;
|
|
3044
3145
|
disconnectedCallback(): void;
|
|
3146
|
+
setTheme(playerStyle: MomentPlayerStyle): void;
|
|
3045
3147
|
onNavigationChange(ev: Event): void;
|
|
3046
3148
|
navigateContent(direction: ContentDirection): void;
|
|
3047
3149
|
createNavigationButton(direction: ContentDirection): BlazeButton;
|
|
@@ -3077,6 +3179,7 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
|
|
|
3077
3179
|
handleEndSwipe(ev: HammerInput): void;
|
|
3078
3180
|
handlePrevDirection(): void;
|
|
3079
3181
|
handleNextDirection(): void;
|
|
3182
|
+
releaseMomentFromMemory(moment: BlazeWidgetMoment): void;
|
|
3080
3183
|
updateItemData(itemToReplaceWith: BlazeWidgetMoment & BlazeWidgetStory, nextItemToInsert: BlazeWidgetMoment | BlazeWidgetStory): void;
|
|
3081
3184
|
createAnimation(content: BlazeWidgetMoment, direction: ContentDirection, targetIndex: number): AnimeTimelineInstance;
|
|
3082
3185
|
handleAnimationStart(content: BlazeWidgetMoment, direction: ContentDirection): void;
|
|
@@ -3149,12 +3252,23 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
|
|
|
3149
3252
|
|
|
3150
3253
|
interface ButtonElementOptions {
|
|
3151
3254
|
iconUrl: string;
|
|
3152
|
-
|
|
3255
|
+
width: string;
|
|
3256
|
+
height: string;
|
|
3153
3257
|
onClick?: (this: GlobalEventHandlers, ev: MouseEvent) => void;
|
|
3154
3258
|
backgroundColor?: string;
|
|
3259
|
+
padding?: string;
|
|
3260
|
+
color?: string;
|
|
3261
|
+
borderRadius?: string;
|
|
3262
|
+
}
|
|
3263
|
+
interface MomentContentParams {
|
|
3264
|
+
title: string;
|
|
3265
|
+
description: string;
|
|
3266
|
+
subtitle: string;
|
|
3155
3267
|
}
|
|
3156
3268
|
export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
3269
|
+
playerStyle?: MomentPlayerStyle | undefined;
|
|
3157
3270
|
video?: BlazeWidgetVideo | BlazeWidgetAd;
|
|
3271
|
+
aspectRatio?: ContentAspectRatio | undefined;
|
|
3158
3272
|
modal: BlazeWidgetMomentModal;
|
|
3159
3273
|
seekBar: BlazeWidgetMomentSeekBar;
|
|
3160
3274
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
@@ -3173,14 +3287,16 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3173
3287
|
shadowTopElement: BlazeDiv;
|
|
3174
3288
|
topButtonsContainer: BlazeDiv;
|
|
3175
3289
|
bottomButtonsContainer: BlazeDiv;
|
|
3290
|
+
likeWrapperElement: BlazeDiv;
|
|
3291
|
+
likeCountElement: BlazeDiv;
|
|
3176
3292
|
closeButtonElement: BlazeButton;
|
|
3177
3293
|
muteButtonElement: BlazeButton;
|
|
3178
|
-
likeWrapperElement: BlazeDiv;
|
|
3179
3294
|
likeButtonElement: BlazeButton;
|
|
3180
|
-
likeCountElement: BlazeDiv;
|
|
3181
3295
|
shareButtonElement: BlazeButton;
|
|
3182
3296
|
playPauseButtonElement: BlazeButton;
|
|
3183
|
-
|
|
3297
|
+
headBodyContainer: BlazeDiv;
|
|
3298
|
+
headElement: BlazeDiv;
|
|
3299
|
+
bodyElement: BlazeDiv;
|
|
3184
3300
|
ctaButtonElement: BlazeCtaButton;
|
|
3185
3301
|
isInit: boolean;
|
|
3186
3302
|
isActive: boolean;
|
|
@@ -3189,19 +3305,23 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3189
3305
|
adContext?: IAdContext;
|
|
3190
3306
|
elementsToHideOnImaAds: (HTMLElement | undefined)[];
|
|
3191
3307
|
elementsToHideOnCustomAds: (HTMLElement | undefined)[];
|
|
3192
|
-
|
|
3308
|
+
originalVideoRef: BlazeWidgetVideo | undefined;
|
|
3309
|
+
constructor(playerStyle?: MomentPlayerStyle | undefined);
|
|
3310
|
+
setPlayerStyle(style: MomentPlayerStyle): void;
|
|
3193
3311
|
connectedCallback(): void;
|
|
3194
3312
|
disconnectedCallback(): void;
|
|
3313
|
+
setTheme(playerStyle: MomentPlayerStyle): void;
|
|
3195
3314
|
initializeStyles(): void;
|
|
3196
|
-
styleBottomContentContainer(): void;
|
|
3197
3315
|
styleMainContainer(): void;
|
|
3316
|
+
styleBottomContentContainer(): void;
|
|
3198
3317
|
styleShadowElements(): void;
|
|
3199
3318
|
styleShadowTopElement(): void;
|
|
3200
3319
|
styleShadowBottomElement(): void;
|
|
3201
3320
|
styleButtonsContainer(): void;
|
|
3202
3321
|
styleTopContainer(): void;
|
|
3203
3322
|
styleBottomContainer(): void;
|
|
3204
|
-
|
|
3323
|
+
styleHeadBodyContainer(): void;
|
|
3324
|
+
styleContent(element: BlazeDiv, textStyle: BlazeMomentsPlayerTextStyle, type: string): void;
|
|
3205
3325
|
styleLike(): void;
|
|
3206
3326
|
styleShare(): void;
|
|
3207
3327
|
styleCta(): void;
|
|
@@ -3209,11 +3329,10 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3209
3329
|
appendShadowElements(): void;
|
|
3210
3330
|
createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
|
|
3211
3331
|
configureShareModal(): void;
|
|
3212
|
-
configureButtons(): void
|
|
3213
|
-
createLikeButton(size: string): Promise<void>;
|
|
3332
|
+
configureButtons(): Promise<void>;
|
|
3214
3333
|
appendButtonsContainer(): void;
|
|
3215
3334
|
handleMobileSpecificFeatures(): void;
|
|
3216
|
-
|
|
3335
|
+
configureContentBody(): void;
|
|
3217
3336
|
appendBottomContainer(): void;
|
|
3218
3337
|
createPlayPauseButton(): void;
|
|
3219
3338
|
handlePlayPauseButtonClick(): void;
|
|
@@ -3222,6 +3341,8 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3222
3341
|
onBlur(): void;
|
|
3223
3342
|
onFocus(): void;
|
|
3224
3343
|
onContentClick(): void;
|
|
3344
|
+
expandBodyText(lineClamp: string): void;
|
|
3345
|
+
collapseBodyText(lineClamp: string): void;
|
|
3225
3346
|
onMuteUnmuteChange(): void;
|
|
3226
3347
|
updatePlayerButtonIcons(): void;
|
|
3227
3348
|
handleOnShareClick(): Promise<void>;
|
|
@@ -3237,7 +3358,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3237
3358
|
shouldShowImaAdOnStart: boolean;
|
|
3238
3359
|
imaUrl: string;
|
|
3239
3360
|
}): Promise<void>;
|
|
3240
|
-
|
|
3361
|
+
updateContent(momentContentData: MomentContentParams): void;
|
|
3241
3362
|
updateLikeCount(likes?: number): Promise<void>;
|
|
3242
3363
|
updateCta(cta: ICTA): void;
|
|
3243
3364
|
onCtaClick(event: Event): boolean;
|
|
@@ -3250,7 +3371,6 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
|
|
|
3250
3371
|
restartVideo(): void;
|
|
3251
3372
|
adjustAdView(): void;
|
|
3252
3373
|
event(action: MomentAction, momentData: Partial<MomentEvent>, label?: string | undefined): void;
|
|
3253
|
-
adjustStylesForDevice(): void;
|
|
3254
3374
|
render(): void;
|
|
3255
3375
|
}
|
|
3256
3376
|
|
|
@@ -3264,7 +3384,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
3264
3384
|
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
3265
3385
|
connectedCallback(): void;
|
|
3266
3386
|
disconnectedCallback(): void;
|
|
3267
|
-
setTheme(
|
|
3387
|
+
setTheme(playerStyle: StoryPlayerStyle): void;
|
|
3268
3388
|
setModalContent(stories: IStory[], indexOfContentInWidget: number, defaultAdsInfo?: IAdInfo): void;
|
|
3269
3389
|
onKeyDown(ev: KeyboardEvent): void;
|
|
3270
3390
|
close(): void;
|
|
@@ -3310,6 +3430,7 @@ export declare class BlazeWidgetStoryPlayer extends WidgetAbstractPlayer {
|
|
|
3310
3430
|
export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
3311
3431
|
playerStyle: StoryPlayerStyle;
|
|
3312
3432
|
mode: ScreenMode;
|
|
3433
|
+
aspectRatio?: ContentAspectRatio;
|
|
3313
3434
|
pages: BlazeWidgetVideoBase[];
|
|
3314
3435
|
data: IStory;
|
|
3315
3436
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
@@ -3361,6 +3482,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3361
3482
|
shouldShowImaAdOnStart: boolean;
|
|
3362
3483
|
imaUrl: string;
|
|
3363
3484
|
adContext?: IAdContext;
|
|
3485
|
+
bannerAdElement?: BlazeWidgetBannerAd;
|
|
3364
3486
|
constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode);
|
|
3365
3487
|
private isButtonVisible;
|
|
3366
3488
|
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
@@ -3369,7 +3491,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3369
3491
|
onShareClick(): Promise<void>;
|
|
3370
3492
|
private updateCtaButtonLayout;
|
|
3371
3493
|
private updateChip;
|
|
3372
|
-
setTheme(
|
|
3494
|
+
setTheme(playerStyle: StoryPlayerStyle): void;
|
|
3373
3495
|
private setButtonNavigationAsDisabled;
|
|
3374
3496
|
adjustAdView(): void;
|
|
3375
3497
|
private setPlayerButtonPosition;
|
|
@@ -3396,6 +3518,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
3396
3518
|
displayCurrentStoryPageAndHideTheRest(): void;
|
|
3397
3519
|
load(): void;
|
|
3398
3520
|
play(): void;
|
|
3521
|
+
bannerAdEvent(detail: InternalEventDetails[InternalEvent.BANNER_ANALYTICS]): void;
|
|
3399
3522
|
event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): void;
|
|
3400
3523
|
updateContainerLayout(): void;
|
|
3401
3524
|
connectedCallback(): void;
|