@wscsports/blaze-web-sdk 0.2.3 → 0.2.4

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.
@@ -54,6 +54,212 @@ export declare class API {
54
54
 
55
55
  export * from './api';
56
56
 
57
+ export declare enum Category {
58
+ Story = "story",
59
+ Moment = "moment",
60
+ Widget = "widget",
61
+ Ad = "ad",
62
+ Interaction = "interaction"
63
+ }
64
+ declare class UserEventInfo {
65
+ 'generated_user_id': string;
66
+ 'external_user_id': string;
67
+ 'user_id': string;
68
+ 'age': number;
69
+ 'gender': string;
70
+ 'locale': string;
71
+ 'user_email_address': string;
72
+ 'ip_address': string;
73
+ 'mac_address': string;
74
+ 'user_type': string;
75
+ 'is_bot': true;
76
+ }
77
+ declare class TechEventInfo {
78
+ 'device_type': string;
79
+ 'device_brand': string;
80
+ 'device_model': string;
81
+ 'network_domain': string;
82
+ 'os': string;
83
+ 'os_version': string;
84
+ 'screen_color': string;
85
+ 'screen_resolution': string;
86
+ 'browser': string;
87
+ 'browser_size': string;
88
+ 'browser_version': string;
89
+ 'app_id': string;
90
+ 'app_version': string;
91
+ 'user_agent': string;
92
+ 'connection_type': string;
93
+ }
94
+ declare class GeoEventInfo {
95
+ 'latitude': string;
96
+ 'longitude': string;
97
+ 'city': string;
98
+ 'city_id': string;
99
+ 'region': string;
100
+ 'region_id': string;
101
+ 'country': string;
102
+ 'sub_continent': string;
103
+ 'sub_continent_code': string;
104
+ 'continent': string;
105
+ 'continent_id': string;
106
+ }
107
+ export declare class ReferringEventInfo {
108
+ 'referrer_page_type': string;
109
+ 'referrer_page_url': string;
110
+ 'referrer_page_domain': string;
111
+ 'labels_expression': string;
112
+ 'session_referrer_page_type': string;
113
+ 'session_referrer_url': string;
114
+ 'session_referrer_domain': string;
115
+ 'session_referrer_type': string;
116
+ 'origin_widget_id': string;
117
+ 'origin_widget_name': string;
118
+ 'origin_widget_type': string;
119
+ 'origin_placement_id': string;
120
+ 'origin_placement_name': string;
121
+ 'story_source': string;
122
+ }
123
+ export declare class AnalyticsEvent {
124
+ 'timestamp_utc': string;
125
+ 'timestamp_user_tz': string;
126
+ 'sdk_id': string;
127
+ 'sdk_version': string;
128
+ 'sdk_type': string;
129
+ 'event_category': string;
130
+ 'event_action': string;
131
+ 'event_label': string;
132
+ 'session_id': string;
133
+ 'user': UserEventInfo;
134
+ 'tech': TechEventInfo;
135
+ 'geo': GeoEventInfo;
136
+ 'wsc_internal': {
137
+ customer_name: string;
138
+ customer_id: string;
139
+ };
140
+ 'page': {
141
+ page_url: string;
142
+ };
143
+ 'referring': ReferringEventInfo;
144
+ story: Partial<StoryEvent> | undefined;
145
+ moment: Partial<MomentEvent> | undefined;
146
+ widget: Partial<WidgetEvent> | undefined;
147
+ ad: Partial<AdEvent> | undefined;
148
+ interaction: Partial<InteractionEvent> | undefined;
149
+ }
150
+ export declare class StoryEvent {
151
+ 'story_start_id': string;
152
+ 'story_id': string;
153
+ 'story_title': string;
154
+ 'story_page_id': string;
155
+ 'story_page_count': number;
156
+ 'story_page_type': string;
157
+ 'story_page_action_type': string;
158
+ 'story_page_player_name': string;
159
+ 'story_page_game_name': string;
160
+ 'story_page_navigation_type': string;
161
+ 'story_page_navigation_direction': string;
162
+ 'story_start_trigger': string;
163
+ 'story_exit_trigger': string;
164
+ 'content_duration_viewed': number;
165
+ 'story_page_duration': number;
166
+ 'story_page_duration_viewed_percent': number;
167
+ 'gesture_type': string;
168
+ 'labels_expression': string;
169
+ 'story_session_id': string;
170
+ 'story_page_index': number;
171
+ 'is_last_page': boolean;
172
+ 'audio_state': string;
173
+ 'playback_action_method': PlaybackActionType;
174
+ 'player_type': PlayerType;
175
+ }
176
+ export declare class MomentEvent {
177
+ 'moments_session_id': string;
178
+ 'moment_id': string;
179
+ 'moment_title': string;
180
+ 'moment_index': number;
181
+ 'moment_navigation_type': string;
182
+ 'moment_navigation_direction': string;
183
+ 'moment_start_trigger': string;
184
+ 'moment_exit_trigger': string;
185
+ 'moment_duration': number;
186
+ 'moment_duration_viewed_percent': number;
187
+ 'playback_action_method': string;
188
+ 'audio_state': string;
189
+ 'loop_number': string;
190
+ }
191
+ export declare class WidgetEvent {
192
+ 'page_view_id': string;
193
+ 'placement_id': string;
194
+ 'placement_name': string;
195
+ 'placement_distance': string;
196
+ 'widget_id': string;
197
+ 'widget_name': string;
198
+ 'widget_type': string;
199
+ 'widget_size': string;
200
+ 'widget_content_count': number;
201
+ 'widget_content_list': string;
202
+ 'labels_expression': string;
203
+ 'content_id': string;
204
+ 'content_name': string;
205
+ 'content_version_id': string;
206
+ 'content_type': string;
207
+ 'content_index': number;
208
+ 'thumbnail_size': string;
209
+ 'thumbnail_aspect_ratio': string;
210
+ 'thumbnail_type': string;
211
+ 'page_type': string;
212
+ 'page_size': string;
213
+ }
214
+ export declare class AdEvent {
215
+ 'advertiser_id': string;
216
+ 'advertiser_name': string;
217
+ 'campaign_id': string;
218
+ 'campaign_name': string;
219
+ 'ad_server': string;
220
+ 'story_id': string;
221
+ 'story_title': string;
222
+ 'ad_insertion_logic': string;
223
+ 'ad_index': string;
224
+ 'ad_start_trigger': string;
225
+ 'ad_exit_trigger': string;
226
+ 'ad_duration': string;
227
+ 'ad_duration_viewed_percent': string;
228
+ 'playback_action_method': string;
229
+ 'audio_state': string;
230
+ 'skip_config': string;
231
+ 'content_type': string;
232
+ 'ad_path': string;
233
+ }
234
+ export declare class ImaAdEvent {
235
+ 'story_id': string;
236
+ 'story_title': string;
237
+ 'ad_id': string;
238
+ 'ad_title': string;
239
+ 'ad_description': string;
240
+ 'ad_system': string;
241
+ 'ad_duration': string;
242
+ 'skippable': string;
243
+ 'skip_time_offset': string;
244
+ 'advertiser_name': string;
245
+ 'failure_reason': string;
246
+ 'ad_type': string;
247
+ 'ima_url': string;
248
+ }
249
+ export declare class InteractionEvent {
250
+ 'interaction_id': string;
251
+ 'interaction_type': string;
252
+ 'interaction_text': string;
253
+ 'interaction_selected_answer': string;
254
+ 'content_session_id': string;
255
+ 'content_type': string;
256
+ 'content_id': string;
257
+ 'content_title': string;
258
+ 'content_page_id': string;
259
+ 'playback_action_method': string;
260
+ 'audio_state': string;
261
+ }
262
+
57
263
  export declare abstract class BaseWidget extends HTMLElement {
58
264
  protected _animationDuration: number;
59
265
  constructor();
@@ -109,16 +315,16 @@ export declare class EventsListener {
109
315
  removeAll(): void;
110
316
  }
111
317
 
318
+ export * from './analytics.class';
112
319
  export * from './base-element.class';
113
320
  export * from './debounce';
114
321
  export * from './device-detector.class';
115
322
  export * from './events-listener';
323
+ export * from './label-builder.class';
116
324
  export * from './long-press.handler';
117
325
  export * from './singleton.class';
118
326
  export * from './throttle';
119
327
  export * from './url';
120
- export * from './device-detector.class';
121
- export * from './label-builder.class';
122
328
 
123
329
  export declare class BlazeWidgetLabel {
124
330
  value: string;
@@ -355,7 +561,7 @@ export declare enum StoryAction {
355
561
  Exit = "story_exit",
356
562
  PageStart = "story_page_start",
357
563
  PageExit = "story_page_exit",
358
- CTAClick = "cta_click",
564
+ CtaClick = "cta_click",
359
565
  Audio = "audio",
360
566
  ShareClick = "share_click",
361
567
  ShareSelect = "share_select",
@@ -365,6 +571,20 @@ export declare enum StoryAction {
365
571
  Expand = "expand",
366
572
  Minimize = "minimize"
367
573
  }
574
+ export declare enum MomentAction {
575
+ MomentsPlaylistStart = "moments_playlist_start",
576
+ MomentsPlaylistExit = "moments_playlist_exit",
577
+ MomentStart = "moment_start",
578
+ MomentExit = "moment_exit",
579
+ CtaClick = "cta_click",
580
+ Like = "like",
581
+ Unlike = "unlike",
582
+ Audio = "audio",
583
+ ShareClick = "share_click",
584
+ ShareSuccess = "share_success",
585
+ PlaybackPause = "playback_pause",
586
+ PlaybackPlay = "playback_play"
587
+ }
368
588
  export declare enum WidgetAction {
369
589
  Load = "widget_load",
370
590
  Visible = "widget_visible",
@@ -404,7 +624,7 @@ export declare const StoryToAdActionMapper: {
404
624
  cta_click: AdAction;
405
625
  };
406
626
  type ExposedFields = {
407
- [key in StoryAction | WidgetAction | AdAction]?: string[];
627
+ [key in StoryAction | MomentAction | WidgetAction | AdAction]?: string[];
408
628
  };
409
629
  export declare const exposedFieldsByAction: ExposedFields;
410
630
 
@@ -445,10 +665,12 @@ export declare class Database implements IDatabase {
445
665
 
446
666
  export * from './database';
447
667
 
668
+ type ContentType = 'Story' | 'Moment';
448
669
  interface IAdInfoConfiguration {
449
670
  adLocationsIndexes: Array<number>;
450
671
  isActive: boolean;
451
672
  adsLocationType: 'FixedPages' | 'EveryXStories';
673
+ type: ContentType;
452
674
  }
453
675
  export interface IAdInfo {
454
676
  path?: string;
@@ -539,6 +761,7 @@ export interface ILayer {
539
761
  }
540
762
 
541
763
  export interface IMoment extends IContent {
764
+ momentIndexInPlaylist: number;
542
765
  type: string;
543
766
  duration: string;
544
767
  thumbnails: IThumbnail[];
@@ -550,6 +773,10 @@ export interface IMoment extends IContent {
550
773
  };
551
774
  cta: ICTA;
552
775
  }
776
+ export type MomentDB = {
777
+ id: string;
778
+ liked: boolean;
779
+ };
553
780
 
554
781
  export interface IContentPage {
555
782
  id: string;
@@ -614,15 +841,16 @@ export declare enum ErrorCode {
614
841
  export declare enum Delegation {
615
842
  onEventTriggered = "blaze-event-triggered",
616
843
  onErrorThrown = "blaze-error-event",
617
- onStoryPlayerDidAppear = "blaze-story-player-did-appear",
618
- onStoryPlayerDismissed = "blaze-story-player-dismissed",
619
- onStoryLoadStarted = "blaze-story-load-started",
620
- onStoryLoadComplete = "blaze-story-load-completed",
844
+ onPlayerDidAppear = "blaze-player-did-appear",
845
+ onPlayerDismissed = "blaze-player-dismissed",
621
846
  onGetAds = "blaze-get-ads",
622
847
  onWidgetDataLoadStarted = "blaze-widget-data-load-started",
623
848
  onWidgetDataLoadCompleted = "blaze-widget-data-load-completed",
624
- onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed",
625
- onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
849
+ onWidgetPlayerDismissed = "blaze-widget-player-dismissed",
850
+ onWidgetTriggerCTA = "blaze-widget-trigger-CTA",
851
+ onStoryPlayerDidAppear = "blaze-story-player-did-appear",
852
+ onStoryPlayerDismissed = "blaze-story-player-dismissed",
853
+ onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed"
626
854
  }
627
855
  export declare enum InternalEvent {
628
856
  NEXT_STORY = "next_story",
@@ -724,6 +952,7 @@ export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
724
952
  export * from './svgs';
725
953
 
726
954
  export declare const likeIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCAyOCAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE0LjAwMDMgMjVMMTIuMDY3IDIzLjI2NjdDOS44MjI1NSAyMS4yNDQ1IDcuOTY2OTkgMTkuNSA2LjUwMDMzIDE4LjAzMzRDNS4wMzM2NiAxNi41NjY3IDMuODY2OTkgMTUuMjUgMy4wMDAzMyAxNC4wODM0QzIuMTMzNjYgMTIuOTE2NyAxLjUyODEgMTEuODQ0NSAxLjE4MzY2IDEwLjg2NjdDMC44MzkyMTQgOS44ODg5MSAwLjY2Njk5MiA4Ljg4ODkxIDAuNjY2OTkyIDcuODY2NjlDMC42NjY5OTIgNS43Nzc4IDEuMzY2OTkgNC4wMzMzNiAyLjc2Njk5IDIuNjMzMzZDNC4xNjY5OSAxLjIzMzM2IDUuOTExNDQgMC41MzMzNTYgOC4wMDAzMyAwLjUzMzM1NkM5LjE1NTg4IDAuNTMzMzU2IDEwLjI1NTkgMC43Nzc4IDExLjMwMDMgMS4yNjY2OUMxMi4zNDQ4IDEuNzU1NTggMTMuMjQ0OCAyLjQ0NDQ3IDE0LjAwMDMgMy4zMzMzNkMxNC43NTU5IDIuNDQ0NDcgMTUuNjU1OSAxLjc1NTU4IDE2LjcwMDMgMS4yNjY2OUMxNy43N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NjI0OEwwLjY1MTE2IDguNjkwOTNDMC4yNTk2NjUgOC44MzY2NSAwIDkuMjEwMzcgMCA5LjYyODExVjEwLjEyNTZDMCAxMC41MzMyIDAuMjQ3MzQ5IDEwLjkgMC42MjUyMTEgMTEuMDUyN0w5LjQgMTQuNkwxMi45NDczIDIzLjM3NDhaTTE4LjM1MTggNy41MzM4OUwxNC4wNjY3IDE5LjA2NjZMMTIuMDAzNSAxMy44ODIyTDE4LjM1MTggNy41MzM4OVpNMTYuNDY2MyA1LjY0ODEyTDEwLjExNzkgMTEuOTk2NUw0LjkzMzMzIDkuOTMzMzFMMTYuNDY2MyA1LjY0ODEyWiIgZmlsbD0iI0YwRjBGMCIvPgo8L3N2Zz4K";
728
957
  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>";
729
958
  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>";
@@ -946,10 +1175,14 @@ declare const AdServiceClass_base: {
946
1175
  declare abstract class AdServiceClass extends AdServiceClass_base implements IService {
947
1176
  canRunAds: boolean;
948
1177
  init(): Promise<void>;
949
- pushCustomNativeAdsBetweenStories(defaultAdsInfo: IAdInfo | undefined, widgets: BlazeWidgetStory[], stories: IStory[], index: number, playerLayout: StoryPlayerStyle, mode?: ScreenMode): void;
1178
+ pushAdsBetweenStories(defaultAdsInfo: IAdInfo | undefined, widgets: BlazeWidgetStory[], stories: IStory[], index: number, indexOfContentInWidget: number, playerLayout: StoryPlayerStyle, mode?: ScreenMode): void;
1179
+ pushAdsBetweenMoments(defaultAdsInfo: IAdInfo | undefined, widgets: BlazeWidgetMoment[], index: number, indexOfContentInWidget: number): void;
950
1180
  }
951
1181
  export declare const AdService: AdServiceClass;
952
1182
 
1183
+ export type PlaybackActionType = 'Press' | 'Release' | 'Click';
1184
+ export type PlayerType = 'Embedded' | 'Full Screen';
1185
+ export type AudioType = 'Mute' | 'Unmute';
953
1186
  declare const AnalyticsServiceClass_base: {
954
1187
  new (): {};
955
1188
  _instance: AnalyticsServiceClass;
@@ -962,6 +1195,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
962
1195
  sendAnalyticsData(): Promise<void>;
963
1196
  bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
964
1197
  pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
1198
+ pushMomentEvent(action: MomentAction, body: Partial<MomentEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
965
1199
  pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
966
1200
  pushImaAdEvent(action: ImaAdAction, body: Partial<ImaAdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
967
1201
  pushInteractionEvent(action: InteractionAction, body: Partial<InteractionEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
@@ -969,194 +1203,6 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
969
1203
  setupEvent(category: Category, action: string, body: object, label?: string | undefined, referrer?: ReferringEventInfo | undefined): AnalyticsEvent;
970
1204
  }
971
1205
  export declare const AnalyticsService: AnalyticsServiceClass;
972
- export declare enum Category {
973
- Story = "story",
974
- Widget = "widget",
975
- Ad = "ad",
976
- Interaction = "interaction"
977
- }
978
- declare class UserEventInfo {
979
- 'generated_user_id': string;
980
- 'external_user_id': string;
981
- 'user_id': string;
982
- 'age': number;
983
- 'gender': string;
984
- 'locale': string;
985
- 'user_email_address': string;
986
- 'ip_address': string;
987
- 'mac_address': string;
988
- 'user_type': string;
989
- 'is_bot': true;
990
- }
991
- declare class TechEventInfo {
992
- 'device_type': string;
993
- 'device_brand': string;
994
- 'device_model': string;
995
- 'network_domain': string;
996
- 'os': string;
997
- 'os_version': string;
998
- 'screen_color': string;
999
- 'screen_resolution': string;
1000
- 'browser': string;
1001
- 'browser_size': string;
1002
- 'browser_version': string;
1003
- 'app_id': string;
1004
- 'app_version': string;
1005
- 'user_agent': string;
1006
- 'connection_type': string;
1007
- }
1008
- declare class GeoEventInfo {
1009
- 'latitude': string;
1010
- 'longitude': string;
1011
- 'city': string;
1012
- 'city_id': string;
1013
- 'region': string;
1014
- 'region_id': string;
1015
- 'country': string;
1016
- 'sub_continent': string;
1017
- 'sub_continent_code': string;
1018
- 'continent': string;
1019
- 'continent_id': string;
1020
- }
1021
- export declare class ReferringEventInfo {
1022
- 'referrer_page_type': string;
1023
- 'referrer_page_url': string;
1024
- 'referrer_page_domain': string;
1025
- 'labels_expression': string;
1026
- 'session_referrer_page_type': string;
1027
- 'session_referrer_url': string;
1028
- 'session_referrer_domain': string;
1029
- 'session_referrer_type': string;
1030
- 'origin_widget_id': string;
1031
- 'origin_widget_name': string;
1032
- 'origin_widget_type': string;
1033
- 'origin_placement_id': string;
1034
- 'origin_placement_name': string;
1035
- 'story_source': string;
1036
- }
1037
- export declare class AnalyticsEvent {
1038
- 'timestamp_utc': string;
1039
- 'timestamp_user_tz': string;
1040
- 'sdk_id': string;
1041
- 'sdk_version': string;
1042
- 'sdk_type': string;
1043
- 'event_category': string;
1044
- 'event_action': string;
1045
- 'event_label': string;
1046
- 'session_id': string;
1047
- 'user': UserEventInfo;
1048
- 'tech': TechEventInfo;
1049
- 'geo': GeoEventInfo;
1050
- 'wsc_internal': {
1051
- customer_name: string;
1052
- customer_id: string;
1053
- };
1054
- 'page': {
1055
- page_url: string;
1056
- };
1057
- 'referring': ReferringEventInfo;
1058
- story: Partial<StoryEvent> | undefined;
1059
- widget: Partial<WidgetEvent> | undefined;
1060
- ad: Partial<AdEvent> | undefined;
1061
- interaction: Partial<InteractionEvent> | undefined;
1062
- }
1063
- export declare class StoryEvent {
1064
- 'story_start_id': string;
1065
- 'story_id': string;
1066
- 'story_title': string;
1067
- 'story_page_id': string;
1068
- 'story_page_count': number;
1069
- 'story_page_type': string;
1070
- 'story_page_action_type': string;
1071
- 'story_page_player_name': string;
1072
- 'story_page_game_name': string;
1073
- 'story_page_navigation_type': string;
1074
- 'story_page_navigation_direction': string;
1075
- 'story_start_trigger': string;
1076
- 'story_exit_trigger': string;
1077
- 'content_duration_viewed': number;
1078
- 'story_page_duration': number;
1079
- 'story_page_duration_viewed_percent': number;
1080
- 'gesture_type': string;
1081
- 'labels_expression': string;
1082
- 'story_session_id': string;
1083
- 'story_page_index': number;
1084
- 'is_last_page': boolean;
1085
- 'audio_state': string;
1086
- 'playback_action_method': 'Press' | 'Release' | 'Click';
1087
- 'player_type': 'Embedded' | 'Full Screen';
1088
- }
1089
- export declare class WidgetEvent {
1090
- 'page_view_id': string;
1091
- 'placement_id': string;
1092
- 'placement_name': string;
1093
- 'placement_distance': string;
1094
- 'widget_id': string;
1095
- 'widget_name': string;
1096
- 'widget_type': string;
1097
- 'widget_size': string;
1098
- 'widget_content_count': number;
1099
- 'widget_content_list': string;
1100
- 'labels_expression': string;
1101
- 'content_id': string;
1102
- 'content_name': string;
1103
- 'content_version_id': string;
1104
- 'content_type': string;
1105
- 'content_index': number;
1106
- 'thumbnail_size': string;
1107
- 'thumbnail_aspect_ratio': string;
1108
- 'thumbnail_type': string;
1109
- 'page_type': string;
1110
- 'page_size': string;
1111
- }
1112
- export declare class AdEvent {
1113
- 'advertiser_id': string;
1114
- 'advertiser_name': string;
1115
- 'campaign_id': string;
1116
- 'campaign_name': string;
1117
- 'ad_server': string;
1118
- 'story_id': string;
1119
- 'story_title': string;
1120
- 'ad_insertion_logic': string;
1121
- 'ad_index': string;
1122
- 'ad_start_trigger': string;
1123
- 'ad_exit_trigger': string;
1124
- 'ad_duration': string;
1125
- 'ad_duration_viewed_percent': string;
1126
- 'playback_action_method': string;
1127
- 'audio_state': string;
1128
- 'skip_config': string;
1129
- 'content_type': string;
1130
- 'ad_path': string;
1131
- }
1132
- export declare class ImaAdEvent {
1133
- 'story_id': string;
1134
- 'story_title': string;
1135
- 'ad_id': string;
1136
- 'ad_title': string;
1137
- 'ad_description': string;
1138
- 'ad_system': string;
1139
- 'ad_duration': string;
1140
- 'skippable': string;
1141
- 'skip_time_offset': string;
1142
- 'advertiser_name': string;
1143
- 'failure_reason': string;
1144
- 'ad_type': string;
1145
- 'ima_url': string;
1146
- }
1147
- export declare class InteractionEvent {
1148
- 'interaction_id': string;
1149
- 'interaction_type': string;
1150
- 'interaction_text': string;
1151
- 'interaction_selected_answer': string;
1152
- 'content_session_id': string;
1153
- 'content_type': string;
1154
- 'content_id': string;
1155
- 'content_title': string;
1156
- 'content_page_id': string;
1157
- 'playback_action_method': string;
1158
- 'audio_state': string;
1159
- }
1160
1206
 
1161
1207
  declare const ApiServiceClass_base: {
1162
1208
  new (): {};
@@ -1202,13 +1248,18 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
1202
1248
  assetsExpiryTime: string;
1203
1249
  totalItems: number;
1204
1250
  result: IMoment[];
1251
+ defaultAdsInfo?: IAdInfo | undefined;
1205
1252
  }>>;
1253
+ updateMomentLikeStatus(options: {
1254
+ momentId: string;
1255
+ setLiked: boolean;
1256
+ }): Promise<void>;
1206
1257
  getStaticStories(): Promise<IStory | null>;
1207
1258
  preview(storyId: string, publishedOnly?: boolean): Promise<import("../interfaces").IHttpResponse<IStory & {
1208
1259
  status: number;
1209
1260
  }>>;
1210
1261
  preivewMoment(momentId: string, publishedOnly?: boolean): Promise<IResponse<any>>;
1211
- analyticsEvents(body: Partial<AnalyticsEvent>[]): Promise<import("../interfaces").IHttpResponse<unknown>>;
1262
+ sendAnaltyicsEvents(body: Partial<AnalyticsEvent>[]): Promise<import("../interfaces").IHttpResponse<unknown>>;
1212
1263
  sendInteractionResponse(options: {
1213
1264
  interactionId: Interaction['id'];
1214
1265
  responseId: string;
@@ -1303,6 +1354,8 @@ declare abstract class DatabaseServiceClass extends DatabaseServiceClass_base im
1303
1354
  isPageViewed(id: string): Promise<boolean>;
1304
1355
  updateInteraction(data: InteractionDB): Promise<any>;
1305
1356
  getInteraction(id: string): Promise<IResponse<InteractionDB> | null>;
1357
+ updateLike(momentId: string, isLike: boolean): Promise<IResponse | null>;
1358
+ getLike(momentId: string): Promise<IResponse<MomentDB> | null>;
1306
1359
  }
1307
1360
  export declare const DatabaseService: DatabaseServiceClass;
1308
1361
 
@@ -1353,10 +1406,10 @@ declare abstract class EventServiceClass extends EventServiceClass_base implemen
1353
1406
  private rootElement;
1354
1407
  constructor();
1355
1408
  init(): Promise<void>;
1356
- dispatch(el: HTMLElement | undefined, event: Delegation, params?: object): {
1409
+ dispatch(el: HTMLElement, event: Delegation, params?: object): {
1357
1410
  mainEvent: CustomEvent;
1358
1411
  };
1359
- dispatchAnaltyicsEvent(name: string, event: any): {
1412
+ dispatchAnaltyicsEvents(name: string, event: any): {
1360
1413
  mainEvent: CustomEvent;
1361
1414
  };
1362
1415
  }
@@ -1371,6 +1424,7 @@ export * from './error.service';
1371
1424
  export * from './event-bus.service';
1372
1425
  export * from './event.service';
1373
1426
  export * from './interaction.service';
1427
+ export * from './like.service';
1374
1428
  export * from './logger.service';
1375
1429
  export * from './startup.service';
1376
1430
  export * from './user.service';
@@ -1391,6 +1445,19 @@ declare abstract class InteractionServiceClass extends InteractionServiceClass_b
1391
1445
  }
1392
1446
  export declare const InteractionService: InteractionServiceClass;
1393
1447
 
1448
+ declare const LikeServiceClass_base: {
1449
+ new (): {};
1450
+ _instance: LikeServiceClass;
1451
+ getInstance(): LikeServiceClass;
1452
+ };
1453
+ declare abstract class LikeServiceClass extends LikeServiceClass_base implements IService {
1454
+ constructor();
1455
+ init(): Promise<void>;
1456
+ updateLike(isLike: boolean, momentId: string): Promise<void>;
1457
+ isLiked(momentId: string): Promise<boolean>;
1458
+ }
1459
+ export declare const LikeService: LikeServiceClass;
1460
+
1394
1461
  interface LoggerParams {
1395
1462
  message: string;
1396
1463
  level?: LogLevel;
@@ -2042,6 +2109,8 @@ export type IconPropertiesType = {
2042
2109
  padding?: string;
2043
2110
  };
2044
2111
 
2112
+ export type ChipStatusType = 'statusReadStyle' | 'statusUnreadStyle' | 'statusLiveUnreadStyle' | 'statusLiveStyle';
2113
+
2045
2114
  export type ClientPlatform = 'Web';
2046
2115
 
2047
2116
  export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
@@ -2074,6 +2143,7 @@ export * from './story-direction.type';
2074
2143
  export * from './thumbnail.type';
2075
2144
  export * from './user.type';
2076
2145
  export * from './widget.type';
2146
+ export * from './chip-status.type';
2077
2147
 
2078
2148
  export type EntitiesType = 'playerId' | 'teamId' | 'gameId';
2079
2149
  export type PerItemStyleOverrides = Record<EntitiesType, Array<{
@@ -2178,6 +2248,7 @@ export declare function getChangedProperties(source: any, target: any, level: st
2178
2248
  export declare function removeDuplicates(source: string[], checkAgainst: string[]): string[];
2179
2249
  export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
2180
2250
  export declare function getNestedValue(obj: any, path: string[]): any;
2251
+ export declare function formatLikes(count: number): string;
2181
2252
 
2182
2253
  export * from './chip.utils';
2183
2254
  export * from './common.utils';
@@ -2231,6 +2302,7 @@ export * from './story/widget-story-modal';
2231
2302
  export * from './story/widget-story-player';
2232
2303
  export * from './widget-video';
2233
2304
  export * from './moment/widget-moment-seek-bar';
2305
+ export * from './widget-cta-modal';
2234
2306
 
2235
2307
  export type ExitTriggerType = 'Swipe' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
2236
2308
  export type StartTriggerType = 'Embedded Player in Viewport' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
@@ -2244,7 +2316,6 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
2244
2316
  navigationType: NavigationType;
2245
2317
  navigationDirection: NavigationDirectionType;
2246
2318
  listeners: EventsListener;
2247
- isLoadCompletedTriggered: boolean;
2248
2319
  isActive: boolean;
2249
2320
  isResumeOnFocusExecuted: boolean;
2250
2321
  isNavigationPending: boolean;
@@ -2253,10 +2324,13 @@ export declare abstract class BlazeWidgetContent extends HTMLElement {
2253
2324
  boundOnBlurEvent: () => void;
2254
2325
  boundOnVisibilityChangeEvent: () => void;
2255
2326
  widgetParent: BlazeWidgetItem;
2327
+ sessionId: string;
2328
+ refContentModal?: BlazeWidgetStoryModal | BlazeWidgetMomentModal;
2256
2329
  constructor();
2257
2330
  connectedCallback(): void;
2258
2331
  disconnectedCallback(): void;
2259
2332
  setWidgetParent(parent: BlazeWidgetItem): void;
2333
+ getRefferingObject(): ReferringEventInfo;
2260
2334
  render(): void;
2261
2335
  }
2262
2336
 
@@ -2285,7 +2359,7 @@ export declare class BlazeWidgetCtaModal extends BaseWidget {
2285
2359
 
2286
2360
  export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWidgetView, Observable {
2287
2361
  preset?: IWidgetTheme;
2288
- players: BlazeWidgetStory[];
2362
+ contents: BlazeWidgetStory[];
2289
2363
  intersectionObserver: IntersectionObserver;
2290
2364
  isIntersecting: boolean;
2291
2365
  currentStoryPlayerIndex: number;
@@ -2295,8 +2369,8 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
2295
2369
  shouldReloadData: boolean;
2296
2370
  defaultAdsInfo?: IAdInfo;
2297
2371
  isCurrentPlayerFirstPlay: boolean;
2298
- bindedOnStoryPlayerDidAppear: (e: Event) => void;
2299
- bindedOnStoryPlayerDismissed: (e: Event) => void;
2372
+ bindedOnPlayerDidAppear: (e: Event) => void;
2373
+ bindedOnPlayerDismissed: (e: Event) => void;
2300
2374
  private get theme();
2301
2375
  constructor();
2302
2376
  static get observedAttributes(): string[];
@@ -2336,8 +2410,8 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
2336
2410
  onVastAdResumedEnded(): void;
2337
2411
  showSkeleton(): void;
2338
2412
  hideSkeleton(): void;
2339
- private onStoryPlayerDidAppear;
2340
- private onStoryPlayerDismissed;
2413
+ private onPlayerDidAppear;
2414
+ private onPlayerDismissed;
2341
2415
  private onOtherModalOpenedClosed;
2342
2416
  }
2343
2417
 
@@ -2379,22 +2453,24 @@ export declare class BlazeWidgetItem extends BaseWidget {
2379
2453
  private badge;
2380
2454
  private isLive;
2381
2455
  private analyticsCalls;
2382
- chipType: 'statusReadStyle' | 'statusUnreadStyle' | 'statusLiveUnreadStyle' | 'statusLiveStyle';
2456
+ contentType: ContentType | undefined;
2457
+ chipType: ChipStatusType;
2383
2458
  get parentRef(): BlazeWidgetLayout;
2384
2459
  statusIndicatorSettings: IndicatorStyle;
2385
2460
  paddingItem: PositionOffset;
2386
2461
  content: IStory | IMoment;
2387
2462
  onClick: (() => void) | undefined;
2463
+ private boundOnWidgetClick;
2388
2464
  constructor(options: BlazeWidgetItemOptions);
2389
2465
  private initializeWidget;
2390
2466
  connectedCallback(): void;
2391
- disconnectedCallback(): void;
2392
2467
  updateWidget(): void;
2393
2468
  updateWidgetItemPadding(): void;
2394
2469
  updateWidgetItemStyle(theme: IWidgetTheme): void;
2395
2470
  private setupDOMElements;
2396
2471
  private setupEventListeners;
2397
2472
  private handleWidgetClick;
2473
+ disconnectedCallback(): void;
2398
2474
  private setData;
2399
2475
  getThumbnailUrl(): string;
2400
2476
  setThumbnailBorderColor(color: string): void;
@@ -2410,6 +2486,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
2410
2486
  private handleInsidePosition;
2411
2487
  private applyCommonStyles;
2412
2488
  setTheme(theme: IWidgetTheme): void;
2489
+ initializeAndRenderWidget(): void;
2413
2490
  getPaddingOnContainer(): PositionOffset;
2414
2491
  setPaddingOnContainer(padding: PositionOffset): void;
2415
2492
  setChipStyle(): void;
@@ -2551,15 +2628,15 @@ export declare class BlazeWidgetModal extends BaseWidget {
2551
2628
  export type BlazeWidgetContent = BlazeWidgetStory | BlazeWidgetMoment;
2552
2629
  export declare abstract class WidgetAbstractPlayer extends BaseWidget {
2553
2630
  index: number;
2631
+ container: BlazeDiv;
2554
2632
  numberOfContentInList: number;
2555
2633
  contentList: BlazeWidgetStory[] | BlazeWidgetMoment[];
2556
2634
  playerContentList: BlazeWidgetStory[] | BlazeWidgetMoment[];
2557
2635
  srcBackground: HTMLCanvasElement;
2558
2636
  destBackground: HTMLCanvasElement;
2559
2637
  backgroundAnimation?: Animation;
2560
- hammer: HammerManager;
2561
- container: BlazeDiv;
2562
2638
  playerFullscreenOverlay: BlazeDiv;
2639
+ hammer: HammerManager;
2563
2640
  gestureActionLimitThreshold: number;
2564
2641
  edgeScreenThreshold: number;
2565
2642
  isEdgeThreshold: Boolean;
@@ -2573,7 +2650,7 @@ export declare abstract class WidgetAbstractPlayer extends BaseWidget {
2573
2650
  boundHandlePanMove: (ev: HammerInput) => void;
2574
2651
  boundHandlePanEnd: (ev: HammerInput) => void;
2575
2652
  constructor();
2576
- seek(contentId: string): void;
2653
+ seekContentById(contentId: string): void;
2577
2654
  cleanPlayerContentList(): void;
2578
2655
  abstract setContent(content: BlazeWidgetStory[] | BlazeWidgetMoment[]): void;
2579
2656
  muteVideoOnIOSOrMacTablet(): void;
@@ -2646,8 +2723,8 @@ export declare class BlazeWidgetSDK extends BaseWidget {
2646
2723
  momentIds: string | null;
2647
2724
  };
2648
2725
  setPlayerStyleCustomization(playerStyleCustomization: Partial<StoryPlayerStyle>): void;
2649
- handleContentLoad(contentType: 'Moment' | 'Story', playReference: 'Share' | 'SingleStory', contentIds: string): Promise<void>;
2650
- handleStaticContentLoad(playReference: 'Share' | 'SingleStory'): Promise<void>;
2726
+ handleContentLoad(contentType: 'Moment' | 'Story', playReference: playRefType, contentIds: string): Promise<void>;
2727
+ handleStaticContentLoad(playReference: playRefType): Promise<void>;
2651
2728
  enrichContent(content: IStory[]): Promise<IStory[]>;
2652
2729
  setupModalAndLoadContent(contentType: 'Moment' | 'Story', playReference: 'Share' | 'SingleStory', content: IStory | IMoment): Promise<void>;
2653
2730
  attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
@@ -2721,6 +2798,7 @@ export declare class BlazeWidgetVideoBase extends HTMLElement {
2721
2798
  }
2722
2799
 
2723
2800
  export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
2801
+ contentParent: BlazeWidgetStory | BlazeWidgetMoment;
2724
2802
  data: IPage | undefined;
2725
2803
  video: HTMLVideoElement;
2726
2804
  loader: HTMLElement;
@@ -2741,11 +2819,10 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
2741
2819
  adDisplayContainer: any;
2742
2820
  adsManager: any;
2743
2821
  shouldShowImaAd: boolean;
2744
- storyParent: BlazeWidgetStory | BlazeWidgetMoment;
2745
2822
  googleIMA: any;
2746
2823
  isCurrentlyTryingToRunImaAd: boolean;
2747
2824
  hasPoster: boolean;
2748
- constructor(storyParent: BlazeWidgetStory | BlazeWidgetMoment);
2825
+ constructor(contentParent: BlazeWidgetStory | BlazeWidgetMoment);
2749
2826
  connectedCallback(): void;
2750
2827
  disconnectedCallback(): void;
2751
2828
  setData(data: IPage): void;
@@ -2830,27 +2907,32 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetVideoBase {
2830
2907
  export type BlazeWidgetContentType = BlazeWidgetMoment[] & BlazeWidgetStory[];
2831
2908
  export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
2832
2909
  parentWidget: HTMLElement;
2910
+ playerLayout: StoryPlayerStyle;
2833
2911
  data: IMoment[];
2912
+ playlistSessionId: string;
2834
2913
  navigationButtonsContainerElement: BlazeDiv;
2835
- nextContentButtonElement: BlazeButton;
2836
- prevContentButtonElement: BlazeButton;
2914
+ nextContentButtonElement?: BlazeButton;
2915
+ prevContentButtonElement?: BlazeButton;
2837
2916
  onClose: (() => void) | undefined;
2838
2917
  onOpen: (() => void) | undefined;
2839
2918
  boundOnKeyDown: (ev: KeyboardEvent) => void;
2840
2919
  boundOnNavigationChange: (ev: Event) => void;
2841
- constructor();
2920
+ boundOnResizeEventDelay: (this: Window, ev: UIEvent) => void;
2921
+ constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
2842
2922
  connectedCallback(): void;
2843
2923
  disconnectedCallback(): void;
2844
2924
  onNavigationChange(ev: Event): void;
2845
2925
  navigateContent(direction: ContentDirection): void;
2846
2926
  createNavigationButton(direction: ContentDirection): BlazeButton;
2847
- setModalContent(data: IMoment[]): void;
2927
+ setModalContent(data: IMoment[], indexOfContentInWidget: number, defaultAdsInfo?: IAdInfo): void;
2848
2928
  onKeyDown(ev: KeyboardEvent): void;
2849
2929
  close(): void;
2850
2930
  open(): void;
2851
2931
  play(): void;
2852
2932
  setExitButtonDisplay(): void;
2853
2933
  render(): void;
2934
+ onResize(): void;
2935
+ onResizeEventDelay(): void;
2854
2936
  }
2855
2937
 
2856
2938
  export declare const MUTE_UNMUTE_EVENT = "muteButtonClicked";
@@ -2872,6 +2954,7 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
2872
2954
  handleEndSwipe(ev: HammerInput): void;
2873
2955
  handlePrevDirection(): void;
2874
2956
  handleNextDirection(): void;
2957
+ updateItemData(itemToReplaceWith: BlazeWidgetMoment & BlazeWidgetStory, nextItemToInsert: BlazeWidgetMoment | BlazeWidgetStory): void;
2875
2958
  createAnimation(content: BlazeWidgetMoment, direction: ContentDirection, targetIndex: number): AnimeTimelineInstance;
2876
2959
  loadAndPlayContent(): Promise<void>;
2877
2960
  handleAnimationCompletion(content: BlazeWidgetMoment, mode: ContentDirection): Promise<void>;
@@ -2894,6 +2977,7 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
2894
2977
  video: BlazeWidgetVideo;
2895
2978
  private progress;
2896
2979
  private playbackParts;
2980
+ private isEmphasized;
2897
2981
  private listeners;
2898
2982
  onPause?: () => void;
2899
2983
  onResume?: () => void;
@@ -2910,10 +2994,13 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
2910
2994
  private lastProgress;
2911
2995
  private progressBarFill;
2912
2996
  private progressBarKnob;
2997
+ private isMouseIn;
2913
2998
  constructor(video: BlazeWidgetVideo);
2914
2999
  static get observedAttributes(): string[];
2915
3000
  attributeChangedCallback(name: string, oldValue: string, _newValue: string): void;
2916
3001
  connectedCallback(): void;
3002
+ onContentPaused(): void;
3003
+ onContentResumed(directReset?: boolean): void;
2917
3004
  disconnectedCallback(): void;
2918
3005
  private initialize;
2919
3006
  setVideo(video: BlazeWidgetVideo): void;
@@ -2929,6 +3016,7 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
2929
3016
  private handleOnMouseIn;
2930
3017
  private resetSeekBarStyle;
2931
3018
  private emphasizesSeekBarStyle;
3019
+ reset(): void;
2932
3020
  private handleSeek;
2933
3021
  private styleProgressContainer;
2934
3022
  private createPlaybackPart;
@@ -2948,8 +3036,12 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
2948
3036
  shareModal: BlazeWidgetShareModal | undefined;
2949
3037
  data: IMoment;
2950
3038
  type: string;
2951
- onClose: (() => void);
3039
+ momentIndex: number;
3040
+ loopNumber: number;
3041
+ isLiked: boolean;
3042
+ onClose: () => void;
2952
3043
  boundOnCtaClicked: (event: Event) => void;
3044
+ boundPlayPauseButtonClick: (event: MouseEvent) => void;
2953
3045
  topContainer: BlazeDiv;
2954
3046
  bottomContainer: BlazeDiv;
2955
3047
  bottomContentContainer: BlazeDiv;
@@ -2965,9 +3057,12 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
2965
3057
  shareButtonElement: BlazeButton;
2966
3058
  playPauseButtonElement: BlazeButton;
2967
3059
  contentTitleElement: BlazeDiv;
2968
- ctaElement: BlazeCtaButton;
3060
+ ctaButtonElement: BlazeCtaButton;
2969
3061
  isInit: boolean;
2970
3062
  isActive: boolean;
3063
+ shouldShowImaAdOnStart: boolean;
3064
+ imaUrl: string;
3065
+ elementsToHideOnImaAds: (HTMLElement | undefined)[];
2971
3066
  constructor();
2972
3067
  connectedCallback(): void;
2973
3068
  disconnectedCallback(): void;
@@ -2986,14 +3081,16 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
2986
3081
  styleCta(): void;
2987
3082
  initializeElements(): void;
2988
3083
  appendShadowElements(): void;
2989
- createButtonElement(options: ButtonElementOptions): BlazeButton;
3084
+ createButtonElement(options: ButtonElementOptions, button: BlazeButton): void;
2990
3085
  configureShareModal(): void;
2991
3086
  configureButtons(): void;
3087
+ createLikeButton(size: string): Promise<void>;
2992
3088
  appendButtonsContainer(): void;
2993
3089
  handleMobileSpecificFeatures(): void;
2994
3090
  configureContentTitle(): void;
2995
3091
  appendBottomContainer(): void;
2996
3092
  createPlayPauseButton(): void;
3093
+ handlePlayPauseButtonClick(): void;
2997
3094
  setModal(modal: BlazeWidgetMomentModal): void;
2998
3095
  onVisibilityChange(): void;
2999
3096
  onBlur(): void;
@@ -3009,22 +3106,24 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
3009
3106
  playToggle(): void;
3010
3107
  handleOnMuteUnmuteToggle(): void;
3011
3108
  setData(data: IMoment | null): void;
3012
- updateData(data: IMoment): void;
3109
+ updateData(options: {
3110
+ data: IMoment;
3111
+ shouldShowImaAdOnStart: boolean;
3112
+ imaUrl: string;
3113
+ }): Promise<void>;
3013
3114
  updateContentTitle(title: string): void;
3014
- updateLikeCount(likes?: number): void;
3115
+ updateLikeCount(likes?: number): Promise<void>;
3015
3116
  updateCta(cta: ICTA): void;
3016
- onCtaClick(event: Event): void;
3117
+ onCtaClick(event: Event): boolean;
3017
3118
  play(): void;
3018
3119
  handleOnClose(): void;
3019
- handleOnLikeClick(): void;
3120
+ handleOnLikeClick(e: Event): void;
3020
3121
  pause(): void;
3021
3122
  resume(): void;
3022
3123
  resetPosition(): void;
3023
- resetLayout(): void;
3024
3124
  restartVideo(): void;
3025
3125
  adjustAdView(): void;
3026
- event(): void;
3027
- getRefferingObject(): undefined;
3126
+ event(action: MomentAction, momentData: Partial<MomentEvent>, label?: string | undefined): void;
3028
3127
  adjustStylesForDevice(): void;
3029
3128
  render(): void;
3030
3129
  }
@@ -3042,9 +3141,10 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
3042
3141
  disconnectedCallback(): void;
3043
3142
  handleOnStoryChange(mode: ContentDirection): void;
3044
3143
  setTheme(theme: IWidgetTheme): void;
3045
- setModalContent(stories: IStory[], defaultAdsInfo?: IAdInfo): void;
3144
+ setModalContent(stories: IStory[], indexOfContentInWidget: number, defaultAdsInfo?: IAdInfo): void;
3046
3145
  onKeyDown(ev: KeyboardEvent): void;
3047
3146
  close(): void;
3147
+ dispatchPlayerEvent(): void;
3048
3148
  open(options?: ISmoothOpenCloseModal): void;
3049
3149
  play(): void;
3050
3150
  render(): void;
@@ -3094,11 +3194,9 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3094
3194
  refWidget: BlazeWidgetStory[] | undefined;
3095
3195
  ctaModal: BlazeWidgetCtaModal;
3096
3196
  isCtaWasClickedOrSwiped: boolean;
3097
- refPlayer?: BlazeWidgetStoryPlayer;
3098
- refPlayerModal?: BlazeWidgetStoryModal;
3197
+ resumeAfterBlurButton: BlazeButton | undefined;
3099
3198
  pageIndex: number;
3100
3199
  type: string;
3101
- container: HTMLElement;
3102
3200
  progressElement: HTMLElement;
3103
3201
  onPageStart?: () => void;
3104
3202
  onPrevStory?: () => void;
@@ -3123,9 +3221,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3123
3221
  nextPageButton?: BlazeButton;
3124
3222
  prevStoryButton?: BlazeButton;
3125
3223
  nextStoryButton?: BlazeButton;
3126
- resumeAfterBlurButton?: BlazeButton;
3127
3224
  playCallback: any;
3128
- sessionId: string;
3129
3225
  resumeAfterfocus: boolean;
3130
3226
  totalPlayStopwatch: Stopwatch;
3131
3227
  shadowTopElement: HTMLDivElement;
@@ -3137,6 +3233,8 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3137
3233
  originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
3138
3234
  restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
3139
3235
  requestAnimationId: number | null;
3236
+ shouldShowImaAdOnStart: boolean;
3237
+ imaUrl: string;
3140
3238
  constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode);
3141
3239
  private isButtonVisible;
3142
3240
  private createPlayerButtonsAndAppendToButtonsContainer;
@@ -3150,7 +3248,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3150
3248
  adjustAdView(): void;
3151
3249
  private setPlayerButtonPosition;
3152
3250
  updatePlayerButtonIcons(): void;
3153
- private handleCtaAction;
3251
+ handleCtaAction(event: Event, gestureType: 'Swipe Up' | 'CTA Click'): boolean;
3154
3252
  playToggle(options?: {
3155
3253
  customIsPlaying?: boolean;
3156
3254
  }): void;
@@ -3172,7 +3270,6 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3172
3270
  displayCurrentStoryPageAndHideTheRest(): void;
3173
3271
  load(): void;
3174
3272
  play(): void;
3175
- getRefferingObject(): ReferringEventInfo;
3176
3273
  event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): void;
3177
3274
  updateContainerLayout(): void;
3178
3275
  connectedCallback(): void;
@@ -3194,7 +3291,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3194
3291
  goPrevPage(): void;
3195
3292
  disconnectedCallback(): void;
3196
3293
  updateCTAButtonPosition(): void;
3197
- updateCta(pageIndex?: number): void;
3294
+ updateCta(pageIndex: number): void;
3198
3295
  updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
3199
3296
  updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
3200
3297
  isNavigationButtonActive(navigationType: ButtonNavigation): boolean;