@wscsports/blaze-web-sdk 0.1.891 → 0.1.991
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 +337 -56
- package/publish/index.js +1 -1
package/publish/index.d.ts
CHANGED
|
@@ -4,24 +4,28 @@ export declare function setExternalUserId(value: string): void;
|
|
|
4
4
|
export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
|
|
5
5
|
export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
6
6
|
export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
7
|
+
export declare function WidgetEmbeddedStory(containerId: string, options: IWidgetViewOptions): IWidgetView;
|
|
7
8
|
export declare function Theme(theme: ThemeType): IWidgetTheme;
|
|
8
9
|
export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
9
10
|
export declare const Delegations: typeof Delegation;
|
|
10
11
|
export declare function LabelBuilder(): IWidgetLabelBuilder;
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function
|
|
12
|
+
export declare function pauseCurrentPlayer(): void;
|
|
13
|
+
export declare function resumeCurrentPlayer(): void;
|
|
14
|
+
export declare function setGoogleCustomNativeAdsHandler(handler: CustomNativeAdHandler): void;
|
|
13
15
|
declare const _default: {
|
|
14
16
|
Initialize: typeof Initialize;
|
|
15
17
|
WidgetGridView: typeof WidgetGridView;
|
|
16
18
|
WidgetRowView: typeof WidgetRowView;
|
|
19
|
+
WidgetEmbeddedStory: typeof WidgetEmbeddedStory;
|
|
17
20
|
Theme: typeof Theme;
|
|
18
21
|
addDelegateListener: typeof addDelegateListener;
|
|
19
22
|
setDoNotTrack: typeof setDoNotTrack;
|
|
20
23
|
setGeoLocation: typeof setGeoLocation;
|
|
21
24
|
LabelBuilder: typeof LabelBuilder;
|
|
22
25
|
Delegations: typeof Delegation;
|
|
23
|
-
|
|
24
|
-
|
|
26
|
+
setGoogleCustomNativeAdsHandler: typeof setGoogleCustomNativeAdsHandler;
|
|
27
|
+
pauseCurrentPlayer: typeof pauseCurrentPlayer;
|
|
28
|
+
resumeCurrentPlayer: typeof resumeCurrentPlayer;
|
|
25
29
|
};
|
|
26
30
|
export default _default;
|
|
27
31
|
|
|
@@ -59,11 +63,21 @@ export declare abstract class BaseWidget extends HTMLElement {
|
|
|
59
63
|
constructor();
|
|
60
64
|
getAttribute<T = boolean | string | number>(qualifiedName: string): T;
|
|
61
65
|
setStyle<T extends keyof CSSStyleDeclaration | string>(styles: Record<T, string | null>): void;
|
|
66
|
+
setAttributes(attributes: Record<string, string>): void;
|
|
62
67
|
removeElement(): void;
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
export declare function debounce<T extends Event>(func: EventHandler<T>, _delay: number): (event: T) => Promise<void>;
|
|
66
71
|
|
|
72
|
+
export declare const Platform: {
|
|
73
|
+
readonly Console: "console";
|
|
74
|
+
readonly Mobile: "mobile";
|
|
75
|
+
readonly Tablet: "tablet";
|
|
76
|
+
readonly SmartTV: "smarttv";
|
|
77
|
+
readonly Wearable: "wearable";
|
|
78
|
+
readonly Embedded: "embedded";
|
|
79
|
+
readonly Desktop: "desktop";
|
|
80
|
+
};
|
|
67
81
|
type ScreenOrientation = 'landscape' | 'portrait';
|
|
68
82
|
type Platform = 'console' | 'mobile' | 'tablet' | 'smarttv' | 'wearable' | 'embedded' | 'desktop';
|
|
69
83
|
type OS = 'AIX' | 'Amiga OS' | 'Android' | 'Arch' | 'Bada' | 'BeOS' | 'BlackBerry' | 'CentOS' | 'Chromium OS' | 'Contiki' | 'Fedora' | 'Firefox OS' | 'FreeBSD' | 'Debian' | 'DragonFly' | 'Gentoo' | 'GNU' | 'Haiku' | 'Hurd' | 'iOS' | 'Joli' | 'Linpus' | 'Linux' | 'Mac OS' | 'Mageia' | 'Mandriva' | 'MeeGo' | 'Minix' | 'Mint' | 'Morph OS' | 'NetBSD' | 'Nintendo' | 'OpenBSD' | 'OpenVMS' | 'OS/2' | 'Palm' | 'PCLinuxOS' | 'Plan9' | 'Playstation' | 'QNX' | 'RedHat' | 'RIM Tablet OS' | 'RISC OS' | 'Sailfish' | 'Series40' | 'Slackware' | 'Solaris' | 'SUSE' | 'Symbian' | 'Tizen' | 'Ubuntu' | 'UNIX' | 'VectorLinux' | 'WebOS' | 'Windows Phone/Mobile' | 'Zenwalk';
|
|
@@ -138,8 +152,12 @@ export declare function throttle<T extends Event>(func: EventHandler<T>, _delay:
|
|
|
138
152
|
export declare class URLManager {
|
|
139
153
|
static isUpdateLocationByScript: boolean;
|
|
140
154
|
static isBackWasCalled: boolean;
|
|
155
|
+
static resetLocationAfterStoryClose(): void;
|
|
141
156
|
static resetLocation(): void;
|
|
142
157
|
static updateLocationStoryHash(story?: IStory): void;
|
|
158
|
+
static getHashMatch(): RegExpMatchArray | null;
|
|
159
|
+
static getHash(): string;
|
|
160
|
+
static updateStoryInHash(story: IStory): void;
|
|
143
161
|
}
|
|
144
162
|
|
|
145
163
|
export declare class BlazeAlert extends BaseWidget {
|
|
@@ -168,7 +186,7 @@ export interface IDrawerOptions {
|
|
|
168
186
|
height?: string;
|
|
169
187
|
width?: string;
|
|
170
188
|
}
|
|
171
|
-
type DrawerAttributes = 'open';
|
|
189
|
+
type DrawerAttributes = 'open' | 'background-color' | 'border-color' | 'border-radius';
|
|
172
190
|
export declare class BlazeDrawer extends BaseWidget {
|
|
173
191
|
backdropContainer: BlazeDiv;
|
|
174
192
|
drawerContainer: BlazeDiv;
|
|
@@ -259,9 +277,10 @@ export declare class BlazeTypography extends BaseWidget {
|
|
|
259
277
|
get fontSize(): ".8rem" | "1rem" | ".5rem";
|
|
260
278
|
}
|
|
261
279
|
|
|
262
|
-
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
|
|
280
|
+
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color' | 'order';
|
|
263
281
|
export declare class BlazeButton extends BaseWidget {
|
|
264
282
|
buttonElement: HTMLButtonElement;
|
|
283
|
+
get refElement(): ShadowRoot | this;
|
|
265
284
|
constructor();
|
|
266
285
|
static observedAttributes: string[];
|
|
267
286
|
connectedCallback(): void;
|
|
@@ -289,6 +308,7 @@ export declare class BlazeCtaButton extends BaseWidget {
|
|
|
289
308
|
disconnectedCallback(): void;
|
|
290
309
|
attributeChangedCallback(name: AttributeType, oldValue: string, newValue: string): void;
|
|
291
310
|
createButton(): void;
|
|
311
|
+
animateButton(): void;
|
|
292
312
|
setCtaText(value: string): void;
|
|
293
313
|
setWidth(value: string): void;
|
|
294
314
|
setMargin(value: string): void;
|
|
@@ -330,7 +350,9 @@ export declare enum StoryAction {
|
|
|
330
350
|
ShareSelect = "share_select",
|
|
331
351
|
ShareSuccess = "share_success",
|
|
332
352
|
PlaybackPause = "playback_pause",
|
|
333
|
-
PlaybackPlay = "playback_play"
|
|
353
|
+
PlaybackPlay = "playback_play",
|
|
354
|
+
Expand = "expand",
|
|
355
|
+
Minimize = "minimize"
|
|
334
356
|
}
|
|
335
357
|
export declare enum WidgetAction {
|
|
336
358
|
Load = "widget_load",
|
|
@@ -365,13 +387,28 @@ type ExposedFields = {
|
|
|
365
387
|
};
|
|
366
388
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
367
389
|
|
|
390
|
+
export declare const TRANSPARENT = "transparent";
|
|
391
|
+
|
|
392
|
+
export declare const TABLET_PADDING_BOTTOM = "15px";
|
|
393
|
+
export declare const DESKTOP_PADDING_BOTTOM = "40px";
|
|
394
|
+
export declare const ASPECT_RATIO_16_9: number;
|
|
395
|
+
export declare const ASPECT_RATIO_9_16: number;
|
|
396
|
+
export declare const ASPECT_RATIO_4_3: number;
|
|
397
|
+
|
|
368
398
|
export * from './analytics.constants';
|
|
399
|
+
export * from './device.constants';
|
|
369
400
|
export * from './iso-country-codes.constants';
|
|
401
|
+
export * from './style.constants';
|
|
370
402
|
export * from './time.constants';
|
|
403
|
+
export * from './css.constants';
|
|
371
404
|
|
|
372
405
|
export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
|
|
373
406
|
|
|
407
|
+
export declare const DEFAULT_CTA_HEIGHT = 40;
|
|
408
|
+
export declare const MIN_PADDING_BOTTOM = 10;
|
|
409
|
+
|
|
374
410
|
export declare const ONE_SECOND = 1000;
|
|
411
|
+
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
375
412
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
376
413
|
|
|
377
414
|
export declare class Database implements IDatabase {
|
|
@@ -537,6 +574,12 @@ export declare enum Delegation {
|
|
|
537
574
|
onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed",
|
|
538
575
|
onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
|
|
539
576
|
}
|
|
577
|
+
export declare enum InternalEvent {
|
|
578
|
+
NEXT_STORY = "next_story",
|
|
579
|
+
PREV_STORY = "prev_story",
|
|
580
|
+
FULL_SCREEN_CLICK = "full_screen_click",
|
|
581
|
+
AD_ENDED = "ad_ended"
|
|
582
|
+
}
|
|
540
583
|
|
|
541
584
|
export * from './error-codes.enum';
|
|
542
585
|
export * from './event.enum';
|
|
@@ -544,6 +587,7 @@ export * from './event.enum';
|
|
|
544
587
|
export interface WidgetsTagNameMap {
|
|
545
588
|
'blaze-sdk': BlazeWidgetSDK;
|
|
546
589
|
'blaze-widget-ad': BlazeWidgetStoryAd;
|
|
590
|
+
'blaze-widget-embedded-story': BlazeWidgetEmbeddedStory;
|
|
547
591
|
'blaze-widget-modal': BlazeWidgetModal;
|
|
548
592
|
'blaze-widget-item': BlazeWidgetItem;
|
|
549
593
|
'blaze-widget-layout': BlazeWidgetLayout;
|
|
@@ -556,6 +600,7 @@ export interface WidgetsTagNameMap {
|
|
|
556
600
|
'blaze-widget-moment-player': BlazeWidgetMomentPlayer;
|
|
557
601
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
558
602
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
603
|
+
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
559
604
|
'blaze-widget-image': BlazeWidgetStoryImage;
|
|
560
605
|
'blaze-widget-video': BlazeWidgetStoryVideo;
|
|
561
606
|
'blaze-widget-moment-video': BlazeWidgetMomentVideo;
|
|
@@ -575,6 +620,7 @@ export interface WidgetsTagNameMap {
|
|
|
575
620
|
interface WidgetsTagNameOptionsMap {
|
|
576
621
|
'blaze-sdk': {};
|
|
577
622
|
'blaze-widget-ad': {};
|
|
623
|
+
'blaze-widget-embedded-story': {};
|
|
578
624
|
'blaze-widget-modal': {};
|
|
579
625
|
'blaze-widget-item': {};
|
|
580
626
|
'blaze-widget-layout': {};
|
|
@@ -587,6 +633,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
587
633
|
'blaze-widget-moment-player': {};
|
|
588
634
|
'blaze-widget-moment-modal': {};
|
|
589
635
|
'blaze-widget-share-modal': {};
|
|
636
|
+
'blaze-widget-cta-modal': {};
|
|
590
637
|
'blaze-widget-image': {};
|
|
591
638
|
'blaze-widget-video': {};
|
|
592
639
|
'blaze-widget-moment-video': {};
|
|
@@ -629,7 +676,7 @@ export declare const prevSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"ht
|
|
|
629
676
|
export declare const closeSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"CloseIcon\"><path fill=\"%23fff\" d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path></svg>";
|
|
630
677
|
export declare const closeSvgBlack = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"CloseIcon\"><path fill=\"%23000\" d=\"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"></path></svg>";
|
|
631
678
|
export declare const nextStory = "data:image/svg+xml;charset=utf-8,<svg viewBox=\"0 0 48 48\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <g> <circle cx=\"24\" cy=\"24\" r=\"20\" fill=\"rgba(1,1,1,0.2)\" fill-opacity=\"0.2\" shape-rendering=\"crispEdges\"/> </g> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 25.725 28.753 L 27.705 30.899 L 34.296 23.756 L 27.705 16.613 L 25.725 18.759 L 30.334 23.756 L 25.725 28.753 Z\" fill=\"white\"/> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M 15.098 29.053 L 17.078 31.199 L 23.669 24.056 L 17.078 16.913 L 15.098 19.059 L 19.707 24.056 L 15.098 29.053 Z\" fill=\"white\"/> </svg>";
|
|
632
|
-
export declare const fullScreenSvg = "data:image/svg+xml;
|
|
679
|
+
export declare const fullScreenSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzM3M18xNzMiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMzczXzE3MykiPgo8cGF0aCBkPSJNNSAyMUM0LjQ1IDIxIDMuOTc5MTcgMjAuODA0MiAzLjU4NzUgMjAuNDEyNUMzLjE5NTgzIDIwLjAyMDggMyAxOS41NSAzIDE5VjE1SDVWMTlIOVYyMUg1Wk0xNSAyMVYxOUgxOVYxNUgyMVYxOUMyMSAxOS41NSAyMC44MDQyIDIwLjAyMDggMjAuNDEyNSAyMC40MTI1QzIwLjAyMDggMjAuODA0MiAxOS41NSAyMSAxOSAyMUgxNVpNMyA5VjVDMyA0LjQ1IDMuMTk1ODMgMy45NzkxNyAzLjU4NzUgMy41ODc1QzMuOTc5MTcgMy4xOTU4MyA0LjQ1IDMgNSAzSDlWNUg1VjlIM1pNMTkgOVY1SDE1VjNIMTlDMTkuNTUgMyAyMC4wMjA4IDMuMTk1ODMgMjAuNDEyNSAzLjU4NzVDMjAuODA0MiAzLjk3OTE3IDIxIDQuNDUgMjEgNVY5SDE5WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
633
680
|
export declare const rightArrowSvg = "data:image/svg+xml;charset=utf-8,<svg width=\"6\" height=\"10\" viewBox=\"0 0 6 10\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M0 8.49779L1.38618 10L6 5L1.38618 0L0 1.50221L3.22686 5L0 8.49779Z\" fill=\"white\"/> </svg>";
|
|
634
681
|
export declare const replaySvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"ReplayIcon\" aria-label=\"fontSize large\"><path d=\"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z\"></path></svg>";
|
|
635
682
|
export declare const replayWhiteSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" focusable=\"false\" aria-hidden=\"true\" viewBox=\"0 0 24 24\" data-testid=\"ReplayIcon\" aria-label=\"fontSize large\"><path fill=\"white\" d=\"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z\"></path></svg>";
|
|
@@ -652,8 +699,17 @@ export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiI
|
|
|
652
699
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
653
700
|
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
654
701
|
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
|
|
702
|
+
export declare const newPageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzk0NDlfOTc2NyIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85NDQ5Xzk3NjcpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0gxMlY1SDVWMTlIMTlWMTJIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFINVpNOS43IDE1LjdMOC4zIDE0LjNMMTcuNiA1SDE0VjNIMjFWMTBIMTlWNi40TDkuNyAxNS43WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
703
|
+
export declare const fullscreenIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85MTUxXzUxODkpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVYxNUg1VjE5SDlWMjFINVpNMTUgMjFWMTlIMTlWMTVIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFIMTVaTTMgOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0g5VjVINVY5SDNaTTE5IDlWNUgxNVYzSDE5QzE5LjU1IDMgMjAuMDIwOCAzLjE5NTgzIDIwLjQxMjUgMy41ODc1QzIwLjgwNDIgMy45NzkxNyAyMSA0LjQ1IDIxIDVWOUgxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L3N2Zz4K";
|
|
704
|
+
|
|
705
|
+
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
706
|
+
type CustomNativeArgs = {
|
|
707
|
+
path: string;
|
|
708
|
+
};
|
|
709
|
+
export interface CustomNativeAdHandler {
|
|
710
|
+
provideAdExtraParams?: (args: CustomNativeArgs) => CustomNativeTargeting;
|
|
711
|
+
}
|
|
655
712
|
|
|
656
|
-
export type EnvironmentType = 'prod' | 'uat';
|
|
657
713
|
export interface IBlazeSDKOptions {
|
|
658
714
|
apiKey: string;
|
|
659
715
|
environment?: EnvironmentType;
|
|
@@ -664,6 +720,27 @@ export interface IBlazeSDKOptions {
|
|
|
664
720
|
externalUserId?: string;
|
|
665
721
|
geoLocation?: string;
|
|
666
722
|
staticContent?: boolean;
|
|
723
|
+
runInShadowDom?: boolean;
|
|
724
|
+
playerStyleCustomization?: Partial<StoryPlayerStyle>;
|
|
725
|
+
shouldModifyUrlWithStoryId?: boolean;
|
|
726
|
+
shouldDismissPlayer?: boolean;
|
|
727
|
+
}
|
|
728
|
+
export interface ISmoothOpenCloseModal {
|
|
729
|
+
storyId?: string;
|
|
730
|
+
pageIndex: number;
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
export interface IButtonPlayerNavigationConfig {
|
|
734
|
+
iconUrl: string;
|
|
735
|
+
position: 'left' | 'right';
|
|
736
|
+
margin: string;
|
|
737
|
+
buttonType: StoryDirectionType;
|
|
738
|
+
clickHandler: EventHandler<MouseEvent>;
|
|
739
|
+
}
|
|
740
|
+
export interface IButtonPlayerConfig {
|
|
741
|
+
iconUrl: string;
|
|
742
|
+
eventType: string;
|
|
743
|
+
clickHandler: () => void;
|
|
667
744
|
}
|
|
668
745
|
|
|
669
746
|
export interface IDatabase {
|
|
@@ -710,10 +787,30 @@ export interface IDrawable {
|
|
|
710
787
|
render: () => void;
|
|
711
788
|
}
|
|
712
789
|
|
|
790
|
+
export interface IIcons {
|
|
791
|
+
play: string;
|
|
792
|
+
pause: string;
|
|
793
|
+
mute: string;
|
|
794
|
+
unmute: string;
|
|
795
|
+
share: string;
|
|
796
|
+
fullscreen: string;
|
|
797
|
+
exitMobileTablet: string;
|
|
798
|
+
exitDesktop: string;
|
|
799
|
+
navigation: {
|
|
800
|
+
nextPage: string;
|
|
801
|
+
prevPage: string;
|
|
802
|
+
nextStory: string;
|
|
803
|
+
prevStory: string;
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
export * from './ad-handler.interface';
|
|
713
808
|
export * from './blaze-sdk.interface';
|
|
809
|
+
export * from './button.interface';
|
|
714
810
|
export * from './database.interface';
|
|
715
811
|
export * from './device.interface';
|
|
716
812
|
export * from './drawable.interface';
|
|
813
|
+
export * from './icons.interface';
|
|
717
814
|
export * from './response.interface';
|
|
718
815
|
export * from './service.interface';
|
|
719
816
|
export * from './widget-label-builder.interface';
|
|
@@ -750,6 +847,7 @@ export interface IWidgetViewOptionsBase {
|
|
|
750
847
|
delegates?: Record<Delegation, EventListenerOrEventListenerObject>;
|
|
751
848
|
labelsPriority?: string;
|
|
752
849
|
perItemStyleOverrides?: PerItemStyleOverrides;
|
|
850
|
+
shouldOrderWidgetByReadStatus?: boolean;
|
|
753
851
|
}
|
|
754
852
|
export interface IWidgetViewOptionsWithLabels extends IWidgetViewOptionsBase {
|
|
755
853
|
labels: string | string[] | BlazeWidgetLabel;
|
|
@@ -761,17 +859,22 @@ export interface IWidgetViewOptionsWithStoryIds extends IWidgetViewOptionsBase {
|
|
|
761
859
|
}
|
|
762
860
|
export type IWidgetViewOptions = IWidgetViewOptionsWithLabels | IWidgetViewOptionsWithStoryIds;
|
|
763
861
|
|
|
764
|
-
export interface IWidgetView {
|
|
862
|
+
export interface IWidgetView extends HTMLElement {
|
|
765
863
|
setTheme: (theme: IWidgetTheme) => void;
|
|
766
864
|
getTheme: () => IWidgetTheme;
|
|
767
|
-
setLabels: (labels: string | string[] | BlazeWidgetLabel) => void;
|
|
768
|
-
setLabelsPriority: (labelsPriority: string) => void;
|
|
769
|
-
setContentIds: (storyIds: string[]) => void;
|
|
865
|
+
setLabels: (labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions) => void;
|
|
866
|
+
setLabelsPriority: (labelsPriority: string, options?: ISetWidgetOptions) => void;
|
|
867
|
+
setContentIds: (storyIds: string[], options?: ISetWidgetOptions) => void;
|
|
770
868
|
reload: () => void;
|
|
771
869
|
updateWidgetUI: () => void;
|
|
772
870
|
setMaxItemsDisplaySize: (size: number) => void;
|
|
773
871
|
setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
|
|
774
872
|
updateOverrideStyles: (perItemStyleOverrides: PerItemStyleOverrides) => void;
|
|
873
|
+
setId: (id: string) => void;
|
|
874
|
+
setMaxItemsSize: (size: number) => void;
|
|
875
|
+
}
|
|
876
|
+
export interface ISetWidgetOptions {
|
|
877
|
+
shouldReloadData?: boolean;
|
|
775
878
|
}
|
|
776
879
|
|
|
777
880
|
declare const AdServiceClass_base: {
|
|
@@ -794,7 +897,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
794
897
|
events: AnalyticsEvent[];
|
|
795
898
|
uaParsed?: IDevice;
|
|
796
899
|
init(): Promise<void>;
|
|
797
|
-
|
|
900
|
+
sendAnalyticsData(): Promise<void>;
|
|
798
901
|
bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
|
|
799
902
|
pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
800
903
|
pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
@@ -909,12 +1012,14 @@ export declare class StoryEvent {
|
|
|
909
1012
|
'content_duration_viewed': number;
|
|
910
1013
|
'story_page_duration': number;
|
|
911
1014
|
'story_page_duration_viewed_percent': number;
|
|
1015
|
+
'gesture_type': string;
|
|
912
1016
|
'labels_expression': string;
|
|
913
1017
|
'story_session_id': string;
|
|
914
1018
|
'story_page_index': number;
|
|
915
1019
|
'is_last_page': boolean;
|
|
916
1020
|
'audio_state': string;
|
|
917
1021
|
'playback_action_method': 'Press' | 'Release' | 'Click';
|
|
1022
|
+
'player_type': 'Embedded' | 'Full Screen';
|
|
918
1023
|
}
|
|
919
1024
|
export declare class WidgetEvent {
|
|
920
1025
|
'page_view_id': string;
|
|
@@ -1032,6 +1137,11 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1032
1137
|
private _externalUserId;
|
|
1033
1138
|
private _geoLocation;
|
|
1034
1139
|
private _staticContent;
|
|
1140
|
+
private _runInShadowDom;
|
|
1141
|
+
private _shouldModifyUrlWithStoryId;
|
|
1142
|
+
private _shouldDismissPlayer;
|
|
1143
|
+
private _googleCustomNativeAdHandler?;
|
|
1144
|
+
private _playerStyleCustomization?;
|
|
1035
1145
|
protected constructor();
|
|
1036
1146
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1037
1147
|
private _urls;
|
|
@@ -1053,6 +1163,13 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1053
1163
|
get apiKey(): string;
|
|
1054
1164
|
get previewUrl(): string;
|
|
1055
1165
|
get previewMomentsUrl(): string;
|
|
1166
|
+
get runInShadowDom(): boolean;
|
|
1167
|
+
get playerStyleCustomization(): Partial<StoryPlayerStyle>;
|
|
1168
|
+
set playerStyleCustomization(value: Partial<StoryPlayerStyle>);
|
|
1169
|
+
get shouldModifyUrlWithStoryId(): boolean;
|
|
1170
|
+
get shouldDismissPlayer(): boolean;
|
|
1171
|
+
get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
|
|
1172
|
+
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
1056
1173
|
}
|
|
1057
1174
|
export declare const ConfigService: ConfigServiceClass;
|
|
1058
1175
|
|
|
@@ -1303,6 +1420,7 @@ export interface IndicatorStyle {
|
|
|
1303
1420
|
backgroundImage: string;
|
|
1304
1421
|
borderRadius: string;
|
|
1305
1422
|
borderColor: string;
|
|
1423
|
+
thumbnailBorderColor: string;
|
|
1306
1424
|
borderWidth: number;
|
|
1307
1425
|
text: string;
|
|
1308
1426
|
textColor: string;
|
|
@@ -1333,8 +1451,8 @@ export interface LayoutStyle {
|
|
|
1333
1451
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
1334
1452
|
statusReadStyle: IndicatorStyle;
|
|
1335
1453
|
statusUnreadStyle: IndicatorStyle;
|
|
1336
|
-
badgeIndicatorStyle: IndicatorStyle;
|
|
1337
1454
|
statusIndicatorPosition: PositionType;
|
|
1455
|
+
badgeIndicatorStyle: IndicatorStyle;
|
|
1338
1456
|
badgePosition: PositionType;
|
|
1339
1457
|
}
|
|
1340
1458
|
export interface LabelStyle {
|
|
@@ -1342,7 +1460,7 @@ export interface LabelStyle {
|
|
|
1342
1460
|
gap: number;
|
|
1343
1461
|
width: number | 'auto';
|
|
1344
1462
|
color: string;
|
|
1345
|
-
height: number;
|
|
1463
|
+
height: string | number;
|
|
1346
1464
|
padding: string;
|
|
1347
1465
|
font: string;
|
|
1348
1466
|
fontSize: string;
|
|
@@ -1353,15 +1471,25 @@ export interface StoryPlayerStyle {
|
|
|
1353
1471
|
titleVisible: boolean;
|
|
1354
1472
|
titleFont: string;
|
|
1355
1473
|
titleFontSize: string;
|
|
1474
|
+
titleFontSizeEmbedded: string;
|
|
1356
1475
|
titleColor: string;
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
chipFontSize: string;
|
|
1476
|
+
publishedDateVisible: boolean;
|
|
1477
|
+
publishedDateFont: string;
|
|
1478
|
+
publishedDateFontSize: string;
|
|
1479
|
+
publishedDateFontSizeEmbedded: string;
|
|
1480
|
+
publishedDateColor: string;
|
|
1481
|
+
statusLiveStyle: IndicatorStyle;
|
|
1364
1482
|
ctaButton: CtaButtonStyle;
|
|
1483
|
+
iconsPosition: IconsPositionType;
|
|
1484
|
+
iconsButton: IconPropertiesType[];
|
|
1485
|
+
iconsButtonSize: string;
|
|
1486
|
+
iconsButtonEmbeddedSize: string;
|
|
1487
|
+
iconsButtonNavigation: IconPropertiesType[];
|
|
1488
|
+
iconsButtonPadding: string;
|
|
1489
|
+
iconsButtonOrder: IconButtonType[];
|
|
1490
|
+
contentOrder: ContentOrderType[];
|
|
1491
|
+
icons: IIcons;
|
|
1492
|
+
localeDirection: LocaleDirectionType;
|
|
1365
1493
|
}
|
|
1366
1494
|
export interface CtaButtonStyle {
|
|
1367
1495
|
borderRadius: string;
|
|
@@ -1372,8 +1500,9 @@ export interface CtaButtonStyle {
|
|
|
1372
1500
|
color: string;
|
|
1373
1501
|
isVisible: boolean;
|
|
1374
1502
|
isAnimated: boolean;
|
|
1375
|
-
|
|
1376
|
-
|
|
1503
|
+
isDisplayCtaModal: boolean;
|
|
1504
|
+
fontWeight: FontWeightType;
|
|
1505
|
+
textTransform: TextTransformType;
|
|
1377
1506
|
padding: string;
|
|
1378
1507
|
width: string;
|
|
1379
1508
|
height: string;
|
|
@@ -1400,6 +1529,8 @@ export declare const Colors: {
|
|
|
1400
1529
|
readonly LiveChip: "#FF364E";
|
|
1401
1530
|
readonly ReadGray: "#9C9C9C";
|
|
1402
1531
|
readonly TimeColor: "#B6B7B8";
|
|
1532
|
+
readonly White: "#FFFFFF";
|
|
1533
|
+
readonly Black: "#000000";
|
|
1403
1534
|
};
|
|
1404
1535
|
|
|
1405
1536
|
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';
|
|
@@ -1444,7 +1575,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1444
1575
|
click(): void;
|
|
1445
1576
|
hidePopover(): void;
|
|
1446
1577
|
showPopover(): void;
|
|
1447
|
-
togglePopover(force?: boolean | undefined):
|
|
1578
|
+
togglePopover(force?: boolean | undefined): boolean;
|
|
1448
1579
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1449
1580
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1450
1581
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
@@ -1579,6 +1710,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1579
1710
|
ariaColIndex: string | null;
|
|
1580
1711
|
ariaColSpan: string | null;
|
|
1581
1712
|
ariaCurrent: string | null;
|
|
1713
|
+
ariaDescription: string | null;
|
|
1582
1714
|
ariaDisabled: string | null;
|
|
1583
1715
|
ariaExpanded: string | null;
|
|
1584
1716
|
ariaHasPopup: string | null;
|
|
@@ -1649,6 +1781,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1649
1781
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1650
1782
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1651
1783
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1784
|
+
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1652
1785
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1653
1786
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1654
1787
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1748,7 +1881,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1748
1881
|
|
|
1749
1882
|
export type ButtonType = 'ALL' | 'PAGE_NAVIGATION_ONLY' | 'STORY_NAVIGATION_ONLY';
|
|
1750
1883
|
export type ButtonState = 'ACTIVE' | 'DISABLED';
|
|
1751
|
-
export type NavigationButtonType = 'PREV_STORY' | 'NEXT_STORY' | 'PREV_PAGE' | 'NEXT_PAGE';
|
|
1752
1884
|
export declare enum ButtonNavigation {
|
|
1753
1885
|
PREV_STORY = 0,
|
|
1754
1886
|
NEXT_STORY = 1,
|
|
@@ -1759,25 +1891,45 @@ export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
|
1759
1891
|
export declare const positionMap: {
|
|
1760
1892
|
[key: string]: string;
|
|
1761
1893
|
};
|
|
1894
|
+
export type IconButtonType = "MUTE_UNMUTE" | "PLAY_PAUSE" | "SHARE" | "FULLSCREEN" | "EXIT_PLAYER";
|
|
1895
|
+
export type IconPropertiesType = {
|
|
1896
|
+
value: IconButtonType | StoryDirectionType;
|
|
1897
|
+
embeddedSize?: string;
|
|
1898
|
+
isEmbeddedVisible?: boolean;
|
|
1899
|
+
size?: string;
|
|
1900
|
+
isVisible?: boolean;
|
|
1901
|
+
color?: string;
|
|
1902
|
+
backgroundColor?: string;
|
|
1903
|
+
borderRadius?: string;
|
|
1904
|
+
padding?: string;
|
|
1905
|
+
};
|
|
1762
1906
|
|
|
1763
1907
|
export type ClientPlatform = 'Web';
|
|
1764
1908
|
|
|
1909
|
+
export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
1910
|
+
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
1911
|
+
|
|
1765
1912
|
export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
|
|
1766
1913
|
|
|
1767
1914
|
export type ComponentsElementType = 'blaze-alert' | 'blaze-toast' | 'blaze-chip' | 'blaze-image';
|
|
1768
1915
|
export type WidgetElementType = 'blaze-sdk';
|
|
1769
1916
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
1770
1917
|
|
|
1918
|
+
export type EnvironmentType = 'prod' | 'uat';
|
|
1919
|
+
|
|
1771
1920
|
export type FetchPriorityType = 'low' | 'high' | 'auto';
|
|
1772
1921
|
|
|
1773
1922
|
export * from './attribute-parser';
|
|
1774
1923
|
export * from './button.type';
|
|
1775
1924
|
export * from './client-platform.type';
|
|
1925
|
+
export * from './css.type';
|
|
1776
1926
|
export * from './direction.type';
|
|
1777
1927
|
export * from './element.type';
|
|
1928
|
+
export * from './environment.type';
|
|
1778
1929
|
export * from './fetch-priority.type';
|
|
1779
1930
|
export * from './item.type';
|
|
1780
1931
|
export * from './label.type';
|
|
1932
|
+
export * from './locale.type';
|
|
1781
1933
|
export * from './order.type';
|
|
1782
1934
|
export * from './play.type';
|
|
1783
1935
|
export * from './position.type';
|
|
@@ -1795,12 +1947,15 @@ export type PerItemStyleOverrides = Record<EntitiesType, Array<{
|
|
|
1795
1947
|
|
|
1796
1948
|
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1797
1949
|
|
|
1950
|
+
export type LocaleDirectionType = 'LTR' | 'RTL';
|
|
1951
|
+
|
|
1798
1952
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
1953
|
+
export type ContentOrderType = 'LIVE_CHIP' | 'STORY_TITLE' | 'PUBLISHED_DATE';
|
|
1799
1954
|
|
|
1800
1955
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1801
1956
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1802
1957
|
|
|
1803
|
-
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | '
|
|
1958
|
+
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideTop' | 'insideTopMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottom' | 'insideBottomMiddle' | 'insideMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1804
1959
|
export type PositionOutsideType = 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1805
1960
|
export type PositionType = PositionInsideType | PositionOutsideType;
|
|
1806
1961
|
export interface PositionOffset {
|
|
@@ -1810,6 +1965,7 @@ export interface PositionOffset {
|
|
|
1810
1965
|
bottom: string;
|
|
1811
1966
|
}
|
|
1812
1967
|
export type PartialPositionOffset = Partial<PositionOffset>;
|
|
1968
|
+
export type IconsPositionType = 'HORIZONTAL' | 'VERTICAL';
|
|
1813
1969
|
|
|
1814
1970
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1815
1971
|
|
|
@@ -1848,9 +2004,11 @@ export declare function GuardNullOrEmpty(name: string, value: any): void;
|
|
|
1848
2004
|
export declare function formatDuration(startDate: Date): string;
|
|
1849
2005
|
export declare function isCssPropertySupported(property: string): boolean;
|
|
1850
2006
|
export declare function pixelsToNumber(pxString: string): number;
|
|
2007
|
+
export declare function convertCssUnitToNumber(cssValue: string | number): number;
|
|
1851
2008
|
export declare function isObject(item: any): boolean;
|
|
1852
2009
|
export declare function mergeDeep(target: any, ...sources: any[]): any;
|
|
1853
|
-
export declare function
|
|
2010
|
+
export declare function mergeArrays(targetArray: any[], sourceArray: any[]): any[];
|
|
2011
|
+
export declare function cloneDeep<T>(source: T): T;
|
|
1854
2012
|
export declare function formatDate(date: Date): string;
|
|
1855
2013
|
export declare function formatUTCDate(date: Date): string;
|
|
1856
2014
|
export declare function calculatePercentage(value: number, element: BlazeDiv): string;
|
|
@@ -1865,6 +2023,12 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
1865
2023
|
export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
|
|
1866
2024
|
export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
|
|
1867
2025
|
export declare function getMaxValue(currentMax: string, newValue: string): string;
|
|
2026
|
+
export declare function isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
2027
|
+
export declare function applyPlayerStyleChanges(defaultPlayerStyle: StoryPlayerStyle, mergedPlayerStyle: StoryPlayerStyle, themePlayerStyle: StoryPlayerStyle, playerStyleChanges: any): void;
|
|
2028
|
+
export declare function getChangedProperties(source: any, target: any, level: string, playerStyleChanges: any, parentKeys?: string): void;
|
|
2029
|
+
export declare function removeDuplicates(source: string[], checkAgainst: string[]): string[];
|
|
2030
|
+
export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
|
|
2031
|
+
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
1868
2032
|
|
|
1869
2033
|
export * from './chip.utils';
|
|
1870
2034
|
export * from './common.utils';
|
|
@@ -1899,6 +2063,8 @@ export declare class Stopwatch {
|
|
|
1899
2063
|
}
|
|
1900
2064
|
|
|
1901
2065
|
export * from './widget-ad';
|
|
2066
|
+
export * from './widget-cta-modal';
|
|
2067
|
+
export * from './widget-embedded-story';
|
|
1902
2068
|
export * from './widget-interaction';
|
|
1903
2069
|
export * from './widget-item';
|
|
1904
2070
|
export * from './widget-label';
|
|
@@ -1921,6 +2087,7 @@ export * from './widget-story-preview';
|
|
|
1921
2087
|
export * from './widget-story-video';
|
|
1922
2088
|
|
|
1923
2089
|
export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
2090
|
+
private storyParent;
|
|
1924
2091
|
data: IPage | undefined;
|
|
1925
2092
|
private isCurrectlyDisplay;
|
|
1926
2093
|
private adContainer;
|
|
@@ -1950,6 +2117,83 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
|
1950
2117
|
private initStyles;
|
|
1951
2118
|
}
|
|
1952
2119
|
|
|
2120
|
+
export declare class BlazeWidgetCtaModal extends BaseWidget {
|
|
2121
|
+
ctaContainer: BlazeDiv;
|
|
2122
|
+
ctaDrawer: BlazeDrawer;
|
|
2123
|
+
ctaUrl: BlazeTypography;
|
|
2124
|
+
textContainer: BlazeDiv;
|
|
2125
|
+
labelText: BlazeTypography;
|
|
2126
|
+
iconShare: BlazeButton;
|
|
2127
|
+
iconExternalLink: BlazeButton;
|
|
2128
|
+
progressBar: BlazeDiv;
|
|
2129
|
+
fullscreenOverlay: BlazeDiv;
|
|
2130
|
+
isOpen: boolean;
|
|
2131
|
+
constructor();
|
|
2132
|
+
static observedAttributes: string[];
|
|
2133
|
+
connectedCallback(): Promise<void>;
|
|
2134
|
+
disconnectedCallback(): void;
|
|
2135
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2136
|
+
animateProgressBar(open: boolean): void;
|
|
2137
|
+
onDrawerClose(): void;
|
|
2138
|
+
open(): void;
|
|
2139
|
+
close(): void;
|
|
2140
|
+
render(): void;
|
|
2141
|
+
}
|
|
2142
|
+
|
|
2143
|
+
export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWidgetView, Observable {
|
|
2144
|
+
preset?: IWidgetTheme;
|
|
2145
|
+
players: BlazeWidgetStory[];
|
|
2146
|
+
intersectionObserver: IntersectionObserver;
|
|
2147
|
+
isIntersecting: boolean;
|
|
2148
|
+
currentStoryPlayerIndex: number;
|
|
2149
|
+
stories: IStory[];
|
|
2150
|
+
modal?: BlazeWidgetStoryModal;
|
|
2151
|
+
skeleton?: BlazeWidgetItemSkeleton;
|
|
2152
|
+
shouldReloadData: boolean;
|
|
2153
|
+
bindedOnStoryPlayerDidAppear: (e: Event) => void;
|
|
2154
|
+
bindedOnStoryPlayerDismissed: (e: Event) => void;
|
|
2155
|
+
private get theme();
|
|
2156
|
+
constructor();
|
|
2157
|
+
static get observedAttributes(): string[];
|
|
2158
|
+
connectedCallback(): void;
|
|
2159
|
+
disconnectedCallback(): void;
|
|
2160
|
+
attributeChangedCallback(name: string, oldValue: string, _newValue: string): void;
|
|
2161
|
+
getTheme(): IWidgetTheme;
|
|
2162
|
+
setTheme(theme: IWidgetTheme | string): void;
|
|
2163
|
+
setLabels(labels: labelType, options?: ISetWidgetOptions): void;
|
|
2164
|
+
setLabelsPriority(labelsPriority: string, options?: ISetWidgetOptions): void;
|
|
2165
|
+
setContentIds(storyIds: string[], options?: ISetWidgetOptions): void;
|
|
2166
|
+
reload(): void;
|
|
2167
|
+
private reloadLogic;
|
|
2168
|
+
private setReloadData;
|
|
2169
|
+
updateWidgetUI(): void;
|
|
2170
|
+
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2171
|
+
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2172
|
+
updateOverrideStyles(perItemStyleOverrides: PerItemStyleOverrides): void;
|
|
2173
|
+
setId(id: string): void;
|
|
2174
|
+
setMaxItemsSize(size: number): void;
|
|
2175
|
+
get currentStoryPlayer(): BlazeWidgetStory | undefined;
|
|
2176
|
+
private loadStories;
|
|
2177
|
+
setCurrentStoryPlayer(storyIndex: number, pageIndex?: number): void;
|
|
2178
|
+
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
2179
|
+
nextStory(): void;
|
|
2180
|
+
prevStory(): void;
|
|
2181
|
+
removeCurrentStoryPlayer(): void;
|
|
2182
|
+
createModal(): BlazeWidgetStoryModal;
|
|
2183
|
+
private handleModalClose;
|
|
2184
|
+
private updatePlayerStyle;
|
|
2185
|
+
openFullscreen(): void;
|
|
2186
|
+
onFullScreenClickHandler(event: Event): void;
|
|
2187
|
+
pauseCurrentStoryPage(): void;
|
|
2188
|
+
playCurrentStoryPage(): void;
|
|
2189
|
+
onCustomNativeAdEnded(): void;
|
|
2190
|
+
showSkeleton(): void;
|
|
2191
|
+
hideSkeleton(): void;
|
|
2192
|
+
private onStoryPlayerDidAppear;
|
|
2193
|
+
private onStoryPlayerDismissed;
|
|
2194
|
+
private onOtherModalOpenedClosed;
|
|
2195
|
+
}
|
|
2196
|
+
|
|
1953
2197
|
export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
1954
2198
|
private iframe;
|
|
1955
2199
|
loadInteraction(interactionData: Interaction): void;
|
|
@@ -1977,6 +2221,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1977
2221
|
private badge;
|
|
1978
2222
|
private isLive;
|
|
1979
2223
|
private analyticsCalls;
|
|
2224
|
+
get parentRef(): BlazeWidgetLayout;
|
|
1980
2225
|
private statusIndicatorSettings;
|
|
1981
2226
|
paddingItem: PositionOffset;
|
|
1982
2227
|
content: IStory;
|
|
@@ -1993,6 +2238,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1993
2238
|
private handleWidgetClick;
|
|
1994
2239
|
private setData;
|
|
1995
2240
|
getThumbnailUrl(): string;
|
|
2241
|
+
setThumbnailBorderColor(color: string): void;
|
|
1996
2242
|
private updateLabel;
|
|
1997
2243
|
private resetWidgetItemStyles;
|
|
1998
2244
|
private updateContainerStyles;
|
|
@@ -2048,6 +2294,8 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2048
2294
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
2049
2295
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2050
2296
|
shouldReloadWhenPlayerIsClosed: boolean;
|
|
2297
|
+
shouldReloadData: boolean;
|
|
2298
|
+
get refElement(): ShadowRoot | this;
|
|
2051
2299
|
constructor();
|
|
2052
2300
|
onResizeEventDelay(): void;
|
|
2053
2301
|
onResize(): void;
|
|
@@ -2062,11 +2310,12 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2062
2310
|
getParentHeightWithoutPadding(): number | null;
|
|
2063
2311
|
setId(id: string): void;
|
|
2064
2312
|
handlePopState(): void;
|
|
2313
|
+
private setReloadData;
|
|
2065
2314
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2066
2315
|
set storyIds(value: string);
|
|
2067
|
-
setContentIds(storyIds: string[]): void;
|
|
2068
|
-
setLabelsPriority(labelsPriority: string): void;
|
|
2069
|
-
setLabels(labels: labelType): void;
|
|
2316
|
+
setContentIds(storyIds: string[], options?: ISetWidgetOptions): void;
|
|
2317
|
+
setLabelsPriority(labelsPriority: string, options?: ISetWidgetOptions): void;
|
|
2318
|
+
setLabels(labels: labelType, options?: ISetWidgetOptions): void;
|
|
2070
2319
|
getTheme(): IWidgetTheme;
|
|
2071
2320
|
setTheme(theme: IWidgetTheme | string): void;
|
|
2072
2321
|
private get theme();
|
|
@@ -2078,6 +2327,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2078
2327
|
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2079
2328
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2080
2329
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
2330
|
+
private updatePlayerStyle;
|
|
2081
2331
|
createModal(): void;
|
|
2082
2332
|
createMomentsModal(): void;
|
|
2083
2333
|
static get observedAttributes(): string[];
|
|
@@ -2121,7 +2371,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2121
2371
|
};
|
|
2122
2372
|
maxSize(): number;
|
|
2123
2373
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
2124
|
-
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
2125
2374
|
updateWidgetsData(): void;
|
|
2126
2375
|
reorderWidgets(): void;
|
|
2127
2376
|
connectWidgets(): void;
|
|
@@ -2318,7 +2567,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
|
|
|
2318
2567
|
}
|
|
2319
2568
|
|
|
2320
2569
|
export declare class BlazeWidgetSDK extends BaseWidget {
|
|
2321
|
-
modalStory
|
|
2570
|
+
modalStory?: BlazeWidgetStoryModal;
|
|
2322
2571
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2323
2572
|
static get observedAttributes(): string[];
|
|
2324
2573
|
constructor();
|
|
@@ -2326,6 +2575,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
|
|
|
2326
2575
|
disconnectedCallback(): void;
|
|
2327
2576
|
onResizeEventDelay(): void;
|
|
2328
2577
|
onResize(): void;
|
|
2578
|
+
setPlayerStyleCustomization(playerStyleCustomization: Partial<StoryPlayerStyle>): void;
|
|
2329
2579
|
handleStoryLoad(playReference: 'Share' | 'SingleStory', storyIds: string): Promise<void>;
|
|
2330
2580
|
handleStaticContentLoad(playReference: 'Share' | 'SingleStory'): Promise<void>;
|
|
2331
2581
|
enrichContent(content: IStory[]): Promise<IStory[]>;
|
|
@@ -2346,6 +2596,7 @@ export interface IShareButton {
|
|
|
2346
2596
|
export declare class BlazeWidgetShareModal extends BaseWidget {
|
|
2347
2597
|
shareContainer: BlazeDiv;
|
|
2348
2598
|
shareDrawer: BlazeDrawer;
|
|
2599
|
+
shareUrl: string;
|
|
2349
2600
|
onOpen: (() => void) | undefined;
|
|
2350
2601
|
onClose: (() => void) | undefined;
|
|
2351
2602
|
onClick?: ((button: BlazeShareButton) => void);
|
|
@@ -2355,7 +2606,7 @@ export declare class BlazeWidgetShareModal extends BaseWidget {
|
|
|
2355
2606
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2356
2607
|
onDarwerOpen(): void;
|
|
2357
2608
|
onDrawerClose(): void;
|
|
2358
|
-
open(): void;
|
|
2609
|
+
open(shareUrl: string): void;
|
|
2359
2610
|
close(): void;
|
|
2360
2611
|
renderButtons(): void;
|
|
2361
2612
|
renderTitle(): void;
|
|
@@ -2366,6 +2617,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2366
2617
|
data: IPage | undefined;
|
|
2367
2618
|
shouldShowImaAd?: boolean;
|
|
2368
2619
|
isCurrentlyTryingToRunImaAd?: boolean;
|
|
2620
|
+
_isAd?: boolean | undefined;
|
|
2369
2621
|
constructor();
|
|
2370
2622
|
setData(data: IPage): void;
|
|
2371
2623
|
loadPoster(): void;
|
|
@@ -2376,6 +2628,8 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2376
2628
|
get currentTime(): number;
|
|
2377
2629
|
set currentTime(value: number);
|
|
2378
2630
|
get muted(): boolean;
|
|
2631
|
+
get isAd(): boolean | undefined;
|
|
2632
|
+
set isAd(value: boolean | undefined);
|
|
2379
2633
|
removeLoader(): any;
|
|
2380
2634
|
load(): void;
|
|
2381
2635
|
unload(): void;
|
|
@@ -2423,18 +2677,21 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2423
2677
|
exitButtonElement: BlazeButton;
|
|
2424
2678
|
exitButtonWrapperElement: BlazeDiv;
|
|
2425
2679
|
onOpen?: () => void;
|
|
2426
|
-
onClose?: () => void;
|
|
2680
|
+
onClose?: (options?: ISmoothOpenCloseModal) => void;
|
|
2427
2681
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2428
2682
|
hammer: HammerManager | null;
|
|
2429
2683
|
isMultiTouch: boolean;
|
|
2684
|
+
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2685
|
+
get refElement(): this;
|
|
2430
2686
|
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2431
2687
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
2432
2688
|
setTheme(theme: IWidgetTheme): void;
|
|
2433
2689
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
2434
2690
|
seek(id: string): void;
|
|
2691
|
+
handleExit(): void;
|
|
2435
2692
|
onKeyDown(ev: KeyboardEvent): void;
|
|
2436
2693
|
close(): void;
|
|
2437
|
-
open(): void;
|
|
2694
|
+
open(options?: ISmoothOpenCloseModal): void;
|
|
2438
2695
|
play(): void;
|
|
2439
2696
|
connectedCallback(): void;
|
|
2440
2697
|
disconnectedCallback(): void;
|
|
@@ -2446,6 +2703,8 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2446
2703
|
private cleanupHammer;
|
|
2447
2704
|
render(): void;
|
|
2448
2705
|
playToggleCurrentStory(): void;
|
|
2706
|
+
private onResize;
|
|
2707
|
+
private onResizeEventDelay;
|
|
2449
2708
|
}
|
|
2450
2709
|
|
|
2451
2710
|
export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
@@ -2487,7 +2746,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2487
2746
|
seek(storyId: string): void;
|
|
2488
2747
|
injectStoryToDomBasedOnUserNavigation(direction: StoryDirectionType): void;
|
|
2489
2748
|
resetPosition(): void;
|
|
2490
|
-
play(): void;
|
|
2749
|
+
play(options?: ISmoothOpenCloseModal): void;
|
|
2491
2750
|
clean(): void;
|
|
2492
2751
|
onCompleteAnimation(story: BlazeWidgetStory, mode: StoryDirectionType): void;
|
|
2493
2752
|
animateStory(direction: StoryDirectionType): AnimeTimelineInstance | undefined;
|
|
@@ -2515,8 +2774,8 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2515
2774
|
playbackParts: HTMLElement[];
|
|
2516
2775
|
playToggleBtn: HTMLElement;
|
|
2517
2776
|
muteToggleBtn: HTMLElement;
|
|
2518
|
-
storyTitle:
|
|
2519
|
-
storyPublishedDate:
|
|
2777
|
+
storyTitle: BlazeDiv;
|
|
2778
|
+
storyPublishedDate: BlazeDiv;
|
|
2520
2779
|
storyThumbnail: HTMLElement;
|
|
2521
2780
|
storyChip: HTMLElement;
|
|
2522
2781
|
ctaButton: HTMLElement;
|
|
@@ -2612,6 +2871,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2612
2871
|
get paused(): boolean;
|
|
2613
2872
|
get muted(): boolean;
|
|
2614
2873
|
set muted(value: boolean);
|
|
2874
|
+
get isAd(): boolean;
|
|
2615
2875
|
render(): void;
|
|
2616
2876
|
restartVideo(): void;
|
|
2617
2877
|
initializeIMA(): void;
|
|
@@ -2631,13 +2891,18 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2631
2891
|
|
|
2632
2892
|
export declare class BlazeWidgetStory extends HTMLElement {
|
|
2633
2893
|
playerStyle: StoryPlayerStyle;
|
|
2894
|
+
mode: 'Full Screen' | 'Embedded';
|
|
2634
2895
|
pages: BlazeWidgetStoryBase[];
|
|
2635
2896
|
data: IStory;
|
|
2636
|
-
shareModal
|
|
2897
|
+
shareModal?: BlazeWidgetShareModal;
|
|
2898
|
+
ctaModal?: BlazeWidgetCtaModal;
|
|
2637
2899
|
isStoryLoadCompletedTriggered: boolean;
|
|
2638
2900
|
isStoryActive: boolean;
|
|
2639
2901
|
isResumeOnFocusExecuted: boolean;
|
|
2640
|
-
|
|
2902
|
+
isCtaWasClickedOrSwiped: boolean;
|
|
2903
|
+
refWidget?: BlazeWidgetStory[];
|
|
2904
|
+
refPlayer?: BlazeWidgetStoryPlayer;
|
|
2905
|
+
refPlayerModal?: BlazeWidgetStoryModal;
|
|
2641
2906
|
pageIndex: number;
|
|
2642
2907
|
container: HTMLElement;
|
|
2643
2908
|
progressElement: HTMLElement;
|
|
@@ -2648,15 +2913,18 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2648
2913
|
buttonsContainer: BlazeDiv;
|
|
2649
2914
|
playbackParts: HTMLElement[];
|
|
2650
2915
|
playButtonElement?: BlazeButton;
|
|
2651
|
-
shareButtonElement
|
|
2652
|
-
muteButtonElement
|
|
2653
|
-
exitMobileTabletButtonElement
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
storyLiveChip: HTMLElement;
|
|
2657
|
-
ctaButtonElement: BlazeCtaButton;
|
|
2916
|
+
shareButtonElement?: BlazeButton;
|
|
2917
|
+
muteButtonElement?: BlazeButton;
|
|
2918
|
+
exitMobileTabletButtonElement?: BlazeButton;
|
|
2919
|
+
fullScreenElement?: BlazeButton;
|
|
2920
|
+
topContainer: BlazeDiv;
|
|
2658
2921
|
bottomContainer: BlazeDiv;
|
|
2659
|
-
|
|
2922
|
+
storyContentWrapper: BlazeDiv;
|
|
2923
|
+
storyTitle: BlazeDiv;
|
|
2924
|
+
storyPublishedDate: BlazeDiv;
|
|
2925
|
+
storyLiveChip: BlazeDiv;
|
|
2926
|
+
bottomButtonsWrapper: BlazeDiv;
|
|
2927
|
+
ctaButtonElement: BlazeCtaButton;
|
|
2660
2928
|
prevPageButton?: BlazeButton;
|
|
2661
2929
|
nextPageButton?: BlazeButton;
|
|
2662
2930
|
prevStoryButton?: BlazeButton;
|
|
@@ -2665,8 +2933,8 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2665
2933
|
widgetParent: BlazeWidgetItem;
|
|
2666
2934
|
playCallback: any;
|
|
2667
2935
|
sessionId: string;
|
|
2668
|
-
startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2669
|
-
exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2936
|
+
startTrigger: 'Embedded Player in Viewport' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2937
|
+
exitTrigger: 'Swipe' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2670
2938
|
navigationType: 'Automatic' | 'Manual' | undefined;
|
|
2671
2939
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2672
2940
|
resumeAfterfocus: boolean;
|
|
@@ -2676,21 +2944,26 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2676
2944
|
isNavigationPending: boolean;
|
|
2677
2945
|
navigationTimeout: NodeJS.Timeout | null;
|
|
2678
2946
|
lastPageIndexToResume: number;
|
|
2679
|
-
elementsToHideOnWebAds: HTMLElement[];
|
|
2947
|
+
elementsToHideOnWebAds: (HTMLElement | undefined)[];
|
|
2680
2948
|
elementsToHideOnImaAds: (HTMLElement | undefined)[];
|
|
2681
2949
|
muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
|
|
2682
2950
|
longPressHandler?: LongPressHandler;
|
|
2683
2951
|
originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
2684
2952
|
restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
|
|
2685
|
-
constructor(playerStyle: StoryPlayerStyle);
|
|
2953
|
+
constructor(playerStyle: StoryPlayerStyle, mode: 'Full Screen' | 'Embedded');
|
|
2954
|
+
private isButtonVisible;
|
|
2955
|
+
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
2956
|
+
private createNavigationButtonsAndAppendToWidgetStoryContainer;
|
|
2957
|
+
private applyIconStyle;
|
|
2686
2958
|
onShareClick(): Promise<void>;
|
|
2687
2959
|
updateCtaButtonLayout(): void;
|
|
2688
2960
|
updateChip(): void;
|
|
2689
2961
|
setTheme(storyPlayerStyle: StoryPlayerStyle): void;
|
|
2690
2962
|
setButtonNavigationAsDisabled(buttonType: ButtonType): void;
|
|
2691
2963
|
adjustAdView(): void;
|
|
2964
|
+
setPlayerButtonPosition(state: 'AD' | 'NO_AD'): void;
|
|
2692
2965
|
updatePlayerButtonIcons(): void;
|
|
2693
|
-
|
|
2966
|
+
handleCtaAction(event: Event, gestureType: 'Swipe Up' | 'CTA Click'): boolean;
|
|
2694
2967
|
playToggle(): void;
|
|
2695
2968
|
muteToggle(): boolean;
|
|
2696
2969
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
@@ -2717,6 +2990,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2717
2990
|
updateContainerLayout(): void;
|
|
2718
2991
|
connectedCallback(): void;
|
|
2719
2992
|
onShareModalClose(): void;
|
|
2993
|
+
onCtaModalClick(): void;
|
|
2720
2994
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
2721
2995
|
onVisibilityChange(): void;
|
|
2722
2996
|
onBlur(): void;
|
|
@@ -2738,8 +3012,15 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2738
3012
|
updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
|
|
2739
3013
|
isNavigationButtonActive(navigationType: ButtonNavigation): boolean;
|
|
2740
3014
|
updateNavButton(state: ButtonState, navButtonElement: BlazeButton): void;
|
|
2741
|
-
|
|
3015
|
+
updatePlayerButtonsStyleAttributes(): void;
|
|
3016
|
+
setPlayerButtonPaddings(button: BlazeButton): void;
|
|
3017
|
+
setPlayerButtonColors(button: BlazeButton, name: IconButtonType): void;
|
|
3018
|
+
setPlayerButtonSize(buttonElement: HTMLElement, iconName: string): void;
|
|
3019
|
+
updatePlayerButtonsOrder(): void;
|
|
3020
|
+
updatePlayerContentOrder(): void;
|
|
3021
|
+
updatePlayerLocaleDirection(): void;
|
|
2742
3022
|
displayExitButtonOnMobileTablet(): void;
|
|
2743
3023
|
render(): void;
|
|
3024
|
+
onExpandClick(): void;
|
|
2744
3025
|
}
|
|
2745
3026
|
|