@wscsports/blaze-web-sdk 0.4.4 → 0.6.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.4.4",
3
+ "version": "0.6.0",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -20,10 +20,11 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@playwright/test": "^1.44.1",
23
- "@types/google_interactive_media_ads_types": "^1.20241219.0",
24
23
  "@types/animejs": "^3.1.7",
24
+ "@types/google_interactive_media_ads_types": "^1.20241219.0",
25
25
  "@types/hammerjs": "^2.0.45",
26
26
  "@types/ua-parser-js": "^0.7.36",
27
+ "@types/uuid": "^10.0.0",
27
28
  "@types/videojs-vtt.js": "^0.15.3",
28
29
  "css-loader": "^6.8.1",
29
30
  "fs-extra": "^11.1.1",
@@ -46,6 +47,7 @@
46
47
  "dependencies": {
47
48
  "animejs": "^3.2.1",
48
49
  "hammerjs": "^2.0.8",
49
- "ua-parser-js": "^1.0.36"
50
+ "ua-parser-js": "^1.0.36",
51
+ "uuid": "^8.3.2"
50
52
  }
51
53
  }
@@ -2,6 +2,7 @@ type PlayContentOptions = {
2
2
  dataSource: BlazeDataSourceType;
3
3
  actionHandlers?: ActionHandler[];
4
4
  style?: StoryPlayerStyle | VideoPlayerStyle | MomentPlayerStyle;
5
+ shouldOrderContentByReadStatus?: boolean;
5
6
  };
6
7
  export declare function setDoNotTrack(value: boolean): void;
7
8
  export declare function setGeoLocation(value: string): void;
@@ -147,6 +148,7 @@ export declare class ReferringEventInfo {
147
148
  'story_source': string;
148
149
  }
149
150
  export declare class AnalyticsEvent {
151
+ 'sdk_event_id': string;
150
152
  'timestamp_utc': string;
151
153
  'timestamp_user_tz': string;
152
154
  'sdk_id': string;
@@ -329,6 +331,7 @@ export declare class InteractionEvent {
329
331
  'playback_action_method': string;
330
332
  'audio_state': string;
331
333
  'content_extra_info': string;
334
+ 'client_enrichment_url': string;
332
335
  }
333
336
  export declare class ConsentEvent {
334
337
  }
@@ -896,6 +899,12 @@ export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD",
896
899
 
897
900
  export declare const DEFAULT_CTA_HEIGHT = 40;
898
901
  export declare const MIN_PADDING_BOTTOM = 10;
902
+ export declare const Z_INDEX: {
903
+ readonly base: "0";
904
+ readonly player: "1";
905
+ readonly interaction: "2";
906
+ readonly onTopOfPlayer: "3";
907
+ };
899
908
 
900
909
  export declare const ONE_SECOND = 1000;
901
910
  export declare const ONE_AND_HALF_SECOND = 1500;
@@ -1042,6 +1051,7 @@ export type Interaction = {
1042
1051
  initData: string;
1043
1052
  designOverridesStr: string;
1044
1053
  bounds?: InteractionBounds;
1054
+ clientEnrichmentUrl?: string;
1045
1055
  };
1046
1056
  export type InteractionDB = Pick<Interaction, 'id' | 'initData'> & {
1047
1057
  userResponse?: string;
@@ -1064,7 +1074,33 @@ export type InteractionIframeVibrate = {
1064
1074
  type: keyof typeof ANSWER_FEEDBACK_VIBRATE_PATTERNS;
1065
1075
  };
1066
1076
  };
1067
- export type InteractionIframeCustomEvent = InteractionIframeResponse | InteractionIframeVibrate;
1077
+ export type EnrichmentIframeTriggerHaptic = {
1078
+ type: 'hapticFeedback';
1079
+ data: {
1080
+ type: keyof typeof ANSWER_FEEDBACK_VIBRATE_PATTERNS;
1081
+ };
1082
+ };
1083
+ export type EnrichmentIframePlay = {
1084
+ type: 'play';
1085
+ data: undefined;
1086
+ };
1087
+ export type EnrichmentIframePause = {
1088
+ type: 'pause';
1089
+ data: undefined;
1090
+ };
1091
+ export type EnrichmentIframeNextPage = {
1092
+ type: 'goToNextPage';
1093
+ data: undefined;
1094
+ };
1095
+ export type EnrichmentIframePreviousPage = {
1096
+ type: 'goToPreviousPage';
1097
+ data: undefined;
1098
+ };
1099
+ export type EnrichmentIframeSetAppContext = {
1100
+ type: 'setAppContext';
1101
+ data: Record<string, any>;
1102
+ };
1103
+ export type InteractionIframeCustomEvent = InteractionIframeResponse | InteractionIframeVibrate | EnrichmentIframePlay | EnrichmentIframePause | EnrichmentIframePreviousPage | EnrichmentIframeNextPage | EnrichmentIframeSetAppContext | EnrichmentIframeTriggerHaptic;
1068
1104
  export declare const INTERACTION_ANALYTICS = "INTERACTION_ANALYTICS";
1069
1105
 
1070
1106
  export interface ILayerContent {
@@ -1217,7 +1253,11 @@ export declare enum InternalEvent {
1217
1253
  AD_ENDED = "ad_ended",
1218
1254
  AD_RESUMED = "ad_resumed",
1219
1255
  AD_STARTED = "ad_started",
1220
- BANNER_ANALYTICS = "banner_analytics"
1256
+ BANNER_ANALYTICS = "banner_analytics",
1257
+ PAUSE = "pause",
1258
+ RESUME = "resume",
1259
+ NEXT_PAGE = "next_page",
1260
+ PREVIOUS_PAGE = "previous_page"
1221
1261
  }
1222
1262
  export interface InternalEventDetails {
1223
1263
  [InternalEvent.BANNER_ANALYTICS]: {
@@ -1362,7 +1402,7 @@ export declare const externalLinkIconSvg = "data:image/svg+xml;base64,PD94bWwgdm
1362
1402
  export declare const fullscreenEnterIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85MTUxXzUxODkpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVYxNUg1VjE5SDlWMjFINVpNMTUgMjFWMTlIMTlWMTVIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFIMTVaTTMgOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0g5VjVINVY5SDNaTTE5IDlWNUgxNVYzSDE5QzE5LjU1IDMgMjAuMDIwOCAzLjE5NTgzIDIwLjQxMjUgMy41ODc1QzIwLjgwNDIgMy45NzkxNyAyMSA0LjQ1IDIxIDVWOUgxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L3N2Zz4K";
1363
1403
  export declare const fullscreenExitIconSvg = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjNWY2MzY4Ij48cGF0aCBkPSJNMjQwLTEyMHYtMTIwSDEyMHYtODBoMjAwdjIwMGgtODBabTQwMCAwdi0yMDBoMjAwdjgwSDcyMHYxMjBoLTgwWk0xMjAtNjQwdi04MGgxMjB2LTEyMGg4MHYyMDBIMTIwWm01MjAgMHYtMjAwaDgwdjEyMGgxMjB2ODBINjQwWiIvPjwvc3ZnPg==";
1364
1404
  export declare const arrowDownMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
1365
- export declare const arrowUpMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgdHJhbnNmb3JtPSJzY2FsZSgxIC0xKSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTYuNjY2NjcgMThWNS43MzMzMkwxLjg2NjY3IDEwLjUzMzNMMCA4LjY2NjY2TDggMC42NjY2NTZMMTYgOC42NjY2NkwxNC4xMzMzIDEwLjUzMzNMOS4zMzMzMyA1LjczMzMyVjE4SDYuNjY2NjdaIiBmaWxsPSJ3aGl0ZSIgZmlsbC1vcGFjaXR5PSIwLjkyIi8+Cjwvc3ZnPgo=";
1405
+ export declare const arrowUpMomentIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIKICAgICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxnIHRyYW5zZm9ybT0ic2NhbGUoMSAtMSkgdHJhbnNsYXRlKDAgLTE2KSI+CiAgICA8cGF0aCBkPSJNNi42NjY2NyAxOFY1LjczMzMyTDEuODY2NjcgMTAuNTMzM0wwIDguNjY2NjZMOCAwLjY2NjY1NkwxNiA4LjY2NjY2TDE0LjEzMzMgMTAuNTMzM0w5LjMzMzMzIDUuNzMzMzJWMThINi42NjY2N1oiIAogICAgICAgICAgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgogIDwvZz4KPC9zdmc+";
1366
1406
  export declare const newPageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzk0NDlfOTc2NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85NDQ5Xzk3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
1367
1407
  export declare const closedCaptionsOnIconSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhl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jVWMTEuNjI1MkwxMyAxMC4xMjUyVjEwLjAwMDJDMTMgOS43MTY4NiAxMy4wOTU5IDkuNDc5MzYgMTMuMjg3NSA5LjI4NzdDMTMuNDc5MiA5LjA5NjAzIDEzLjcxNjcgOS4wMDAyIDE0IDkuMDAwMkgxN0MxNy4yODM0IDkuMDAwMiAxNy41MjA5IDkuMDk2MDMgMTcuNzEyNSA5LjI4NzdDMTcuOTA0MiA5LjQ3OTM2IDE4IDkuNzE2ODYgMTggMTAuMDAwMlYxMS4wMDAySDE2LjVaTTQuMjAwMDUgNC4xNzUyTDYuMDI1MDUgNi4wMDAySDUuMDAwMDVWMTguMDAwMkgxNS4xNzVMMC42NzUwNDkgMy41MDAyTDIuMTAwMDUgMi4wNzUyTDIxLjkgMjEuODc1MkwyMC40NzUgMjMuMzAwMkwxNy4xNzUgMjAuMDAwMkg1LjAwMDA1QzQuNDUwMDUgMjAuMDAwMiAzLjk3OTIyIDE5LjgwNDQgMy41ODc1NSAxOS40MTI3QzMuMTk1ODggMTkuMDIxIDMuMDAwMDUgMTguNTUwMiAzLjAwMDA1IDE4LjAwMDJWNi4wMDAyQzMuMDAwMDUgNS41ODM1MyAzLjExMjU1IDUuMjEyNyAzLjMzNzU1IDQuODg3N0MzLjU2MjU1IDQuNTYyNyAzLjg1MDA1IDQuMzI1MiA0LjIwMDA1IDQuMTc1MloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
@@ -1395,6 +1435,7 @@ export interface IBlazeSDKOptions {
1395
1435
  doNotTrack?: boolean;
1396
1436
  geoLocation?: string;
1397
1437
  staticContent?: boolean;
1438
+ staticContentType?: ContentType;
1398
1439
  runInShadowDom?: boolean;
1399
1440
  playerStyleCustomization?: Partial<StoryPlayerStyle>;
1400
1441
  shouldModifyUrlWithStoryId?: boolean;
@@ -1763,6 +1804,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1763
1804
  private _doNotTrack;
1764
1805
  private _geoLocation;
1765
1806
  private _staticContent;
1807
+ private _staticContentType?;
1766
1808
  private _runInShadowDom;
1767
1809
  private _shouldModifyUrlWithStoryId;
1768
1810
  private _shouldModifyUrlWithContentId;
@@ -1801,6 +1843,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1801
1843
  set geoLocation(value: string);
1802
1844
  get staticContent(): boolean;
1803
1845
  set staticContent(value: boolean);
1846
+ get staticContentType(): ContentType | undefined;
1847
+ set staticContentType(value: ContentType);
1804
1848
  get apiUrl(): string;
1805
1849
  get apiKey(): string;
1806
1850
  get previewUrl(): string;
@@ -2174,6 +2218,7 @@ export declare class PlayerViewTemplate {
2174
2218
  static display(type: ContentType, dataSource: BlazeDataSourceType, options: {
2175
2219
  style: StoryPlayerStyle | VideoPlayerStyle | MomentPlayerStyle;
2176
2220
  actionHandlers?: ActionHandler[];
2221
+ orderByReadStatus: boolean;
2177
2222
  }): Promise<void>;
2178
2223
  private static validateStyleType;
2179
2224
  }
@@ -2204,7 +2249,7 @@ export interface ContentResponse<T> {
2204
2249
  defaultAdsInfo?: IAdInfo;
2205
2250
  }
2206
2251
  export declare abstract class BaseModalTemplate<M extends BlazeWidgetModal, C extends IContent, S> {
2207
- render(dataSource: BlazeDataSourceType, options: ModalTemplateOptions<S>): Promise<void>;
2252
+ render(dataSource: BlazeDataSourceType, options: ModalTemplateOptions<S>, orderByReadStatus: boolean): Promise<void>;
2208
2253
  protected validateRequirements(dataSource: BlazeDataSourceType): {
2209
2254
  isValid: boolean;
2210
2255
  blazeSdk: null;
@@ -2224,7 +2269,6 @@ export declare abstract class BaseModalTemplate<M extends BlazeWidgetModal, C ex
2224
2269
  protected handleError(error: unknown, blazeSdk: BlazeWidgetSDK, dataSourceStringRep: string): void;
2225
2270
  protected fetchContent(dataSource: BlazeDataSourceType): Promise<ContentResponse<C>>;
2226
2271
  protected abstract createModal(parent: HTMLElement, style: S, actionHandlers?: ActionHandler[]): M;
2227
- protected abstract prepareContent(content: C[], service: ContentService<C>): Promise<C[]>;
2228
2272
  protected abstract configureModal(modal: M, content: C[]): void;
2229
2273
  protected abstract getService(): ContentService<C>;
2230
2274
  protected abstract getErrorCode(): ErrorCode;
@@ -2237,7 +2281,6 @@ export * from './moment.template';
2237
2281
 
2238
2282
  export declare class MomentModalTemplate extends BaseModalTemplate<BlazeWidgetMomentModal, IMoment, MomentPlayerStyle> {
2239
2283
  protected createModal(parent: HTMLElement, style: MomentPlayerStyle, actionHandlers?: ActionHandler[]): BlazeWidgetMomentModal;
2240
- protected prepareContent(content: IMoment[], service: ContentService<IMoment>): Promise<IMoment[]>;
2241
2284
  protected configureModal(modal: BlazeWidgetMomentModal, content: IMoment[]): void;
2242
2285
  protected getService(): ContentService<IMoment>;
2243
2286
  protected getErrorCode(): ErrorCode;
@@ -2245,7 +2288,6 @@ export declare class MomentModalTemplate extends BaseModalTemplate<BlazeWidgetMo
2245
2288
 
2246
2289
  export declare class StoryModalTemplate extends BaseModalTemplate<BlazeWidgetStoryModal, IStory, StoryPlayerStyle> {
2247
2290
  protected createModal(parent: HTMLElement, style: StoryPlayerStyle, actionHandlers?: ActionHandler[]): BlazeWidgetStoryModal;
2248
- protected prepareContent(content: IStory[], service: ContentService<IStory>): Promise<IStory[]>;
2249
2291
  protected configureModal(modal: BlazeWidgetStoryModal, content: IStory[]): void;
2250
2292
  protected getService(): ContentService<IStory>;
2251
2293
  protected getErrorCode(): ErrorCode;
@@ -2253,7 +2295,6 @@ export declare class StoryModalTemplate extends BaseModalTemplate<BlazeWidgetSto
2253
2295
 
2254
2296
  export declare class VideoModalTemplate extends BaseModalTemplate<BlazeWidgetVideoModal, IVideo, VideoPlayerStyle> {
2255
2297
  protected createModal(parent: HTMLElement, style: VideoPlayerStyle): BlazeWidgetVideoModal;
2256
- protected prepareContent(content: IVideo[], service: ContentService<IVideo>): Promise<IVideo[]>;
2257
2298
  protected configureModal(modal: BlazeWidgetVideoModal, content: IVideo[]): void;
2258
2299
  protected getService(): ContentService<IVideo>;
2259
2300
  protected getErrorCode(): ErrorCode;
@@ -2264,9 +2305,7 @@ export declare function getDataSourceStringRep(dataSource: BlazeDataSourceType):
2264
2305
  export * from './data-source.utils';
2265
2306
  export * from './sort.utils';
2266
2307
 
2267
- export declare function sortVideosByViewedStatus(a: IVideo, b: IVideo): number;
2268
- export declare function sortStoriesByViewedStatus(a: IStory, b: IStory): number;
2269
- export declare function sortMomentsByViewedStatus(a: IMoment, b: IMoment): number;
2308
+ export declare function sortContentByViewedStatus<T extends IContent>(a: T, b: T): number;
2270
2309
 
2271
2310
  export * from './preset';
2272
2311
  export * from './theme';
@@ -3084,8 +3123,8 @@ export type ContentOrderType = 'LIVE_CHIP' | 'STORY_TITLE' | 'PUBLISHED_DATE';
3084
3123
 
3085
3124
  export type Platform = 'mobile' | 'tablet' | 'desktop';
3086
3125
 
3087
- export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory", "AutoAdvance"];
3088
- export type PlayType = typeof PlayTypeArray[number];
3126
+ export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleContent", "AutoAdvance"];
3127
+ export type PlayType = (typeof PlayTypeArray)[number];
3089
3128
 
3090
3129
  export type PlayerLayoutDisplay = 'fullscreen' | 'normal';
3091
3130
 
@@ -3129,7 +3168,7 @@ export type ThumbnailShape = 'Circle' | 'Rectangle';
3129
3168
  export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
3130
3169
 
3131
3170
  export type ExitTriggerType = 'Swipe' | 'Swipe Left' | 'Swipe Right' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | 'Stories Completed' | 'Story Completed' | 'Video End' | '';
3132
- export type StartTriggerType = 'Embedded Player in Viewport' | 'UI Button' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | 'AutoAdvance' | '';
3171
+ export type StartTriggerType = 'Embedded Player in Viewport' | 'UI Button' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleContent' | 'Share' | 'AutoAdvance' | '';
3133
3172
 
3134
3173
  export type GetUserTokenRequest = {
3135
3174
  externalId: string | null;
@@ -3167,6 +3206,7 @@ type CountryCode = typeof CountryCodes[number];
3167
3206
  export declare function isValidCountryCode(countryCode: string): countryCode is CountryCode;
3168
3207
 
3169
3208
  export declare function GuardNullOrEmpty(name: string, value: any): void;
3209
+ export declare function isStory(content: IContent): content is IStory;
3170
3210
 
3171
3211
  export declare function formatDuration(startDate: Date): string;
3172
3212
  export declare function isCssPropertySupported(property: string): boolean;
@@ -3582,7 +3622,7 @@ export declare class BlazeVideoNavigationOverlay extends HTMLElement {
3582
3622
  loader: BlazeLoader;
3583
3623
  private _platform;
3584
3624
  constructor();
3585
- static get observedAttributes(): ("layout" | "hidden" | "has-next" | "has-prev")[];
3625
+ static get observedAttributes(): ("hidden" | "layout" | "has-next" | "has-prev")[];
3586
3626
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
3587
3627
  private applyAttribute;
3588
3628
  connectedCallback(): void;
@@ -3626,7 +3666,6 @@ export declare class BlazeWidgetVideoModal extends BlazeWidgetModal {
3626
3666
  open(): void;
3627
3667
  play(): void;
3628
3668
  onKeyDown(ev: KeyboardEvent): void;
3629
- render(): void;
3630
3669
  onResize(): void;
3631
3670
  onResizeEventDelay(): void;
3632
3671
  }
@@ -4059,6 +4098,8 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
4059
4098
  export declare class BlazeWidgetInteraction extends BaseWidget {
4060
4099
  private iframe;
4061
4100
  private interaction?;
4101
+ private isIframeLoaded;
4102
+ private isInitialized;
4062
4103
  private isActive;
4063
4104
  private shouldForceHide;
4064
4105
  private responseHandler;
@@ -4275,6 +4316,7 @@ export declare class BlazeWidgetModal extends BaseWidget {
4275
4316
  constructor(type: ContentType);
4276
4317
  connectedCallback(): void;
4277
4318
  disconnectedCallback(): void;
4319
+ private isRealResizeEvent;
4278
4320
  onResize(): void;
4279
4321
  handleOnContentChange(mode: ContentDirection): void;
4280
4322
  handlePopState(): void;
@@ -4287,6 +4329,12 @@ export declare class BlazeWidgetModal extends BaseWidget {
4287
4329
  cleanupHammer(): void;
4288
4330
  open(options?: ISmoothOpenCloseModal): void;
4289
4331
  close(): void;
4332
+ protected isAllowExitModal(config: {
4333
+ shouldDismissPlayer: boolean;
4334
+ playReference: string;
4335
+ customButtonVisibility?: boolean;
4336
+ }): boolean;
4337
+ render(): void;
4290
4338
  }
4291
4339
 
4292
4340
  export type BlazeWidgetContent = BlazeWidgetStory | BlazeWidgetMoment | BlazeVideoElement;
@@ -4372,7 +4420,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
4372
4420
  render(): void;
4373
4421
  }
4374
4422
 
4375
- export type playRefType = 'Share' | 'SingleStory' | 'AutoAdvance';
4423
+ export type playRefType = 'Share' | 'SingleContent' | 'AutoAdvance';
4376
4424
  export declare class BlazeWidgetSDK extends BaseWidget {
4377
4425
  modal: BlazeWidgetStoryModal | BlazeWidgetMomentModal | BlazeWidgetVideoModal;
4378
4426
  boundOnResizeEvent: (this: Window, ev: UIEvent) => void;
@@ -4923,10 +4971,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
4923
4971
  dispatchPlayerEvents(): void;
4924
4972
  open(options?: ISmoothOpenCloseModal): void;
4925
4973
  play(): void;
4926
- render(): void;
4927
- private shouldShowExitButton;
4928
4974
  playToggleCurrentStory(): void;
4929
- onResize(): void;
4930
4975
  onResizeEventDelay(): void;
4931
4976
  }
4932
4977
 
@@ -5024,6 +5069,10 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
5024
5069
  requestAnimationId: number | null;
5025
5070
  shouldShowImaAdOnStart: boolean;
5026
5071
  bannerAdElement?: BlazeWidgetBannerAd;
5072
+ boundOnResumeEvent: () => void;
5073
+ boundOnPauseEvent: () => void;
5074
+ boundOnNextPageEvent: () => void;
5075
+ boundOnPrevPageEvent: () => void;
5027
5076
  get currentPageIndexWithoutCustomAds(): number;
5028
5077
  constructor(playerStyle: StoryPlayerStyle, mode: ScreenMode, actionHandlers?: ActionHandler[]);
5029
5078
  isButtonVisible(iconName: IconButtonType | StoryDirectionType): boolean | undefined;
@@ -5075,6 +5124,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
5075
5124
  bannerAdEvent(detail: InternalEventDetails[InternalEvent.BANNER_ANALYTICS]): void;
5076
5125
  event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): Promise<void>;
5077
5126
  updateContainerLayout(): void;
5127
+ private addOrRemoveEventListeners;
5078
5128
  connectedCallback(): void;
5079
5129
  onShareModalClose(): void;
5080
5130
  updateStoryProgress(): void;
@@ -5104,7 +5154,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
5104
5154
  private setCtaIconVisibility;
5105
5155
  updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
5106
5156
  updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
5107
- private isSingleStoryWithAutoAdvance;
5157
+ private isSingleContentWithAutoAdvance;
5108
5158
  private isStoryPagesNavigation;
5109
5159
  isNavigationButtonActive(navigationType: ButtonNavigation): boolean;
5110
5160
  updateNavButton(state: ButtonState, navButtonElement: BlazeButton): void;
@@ -5118,6 +5168,10 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
5118
5168
  resetLayout(): void;
5119
5169
  render(): void;
5120
5170
  onExpandClick(): void;
5171
+ private onResumeEvent;
5172
+ private onPauseEvent;
5173
+ private onNextPageEvent;
5174
+ private onPrevPageEvent;
5121
5175
  }
5122
5176
 
5123
5177
  export declare const ElementId: {