@wscsports/blaze-web-sdk 0.1.872 → 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 +4 -3
- package/publish/index.d.ts +408 -58
- package/publish/index.js +1 -1
package/publish/index.d.ts
CHANGED
|
@@ -4,20 +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;
|
|
12
|
+
export declare function pauseCurrentPlayer(): void;
|
|
13
|
+
export declare function resumeCurrentPlayer(): void;
|
|
14
|
+
export declare function setGoogleCustomNativeAdsHandler(handler: CustomNativeAdHandler): void;
|
|
11
15
|
declare const _default: {
|
|
12
16
|
Initialize: typeof Initialize;
|
|
13
17
|
WidgetGridView: typeof WidgetGridView;
|
|
14
18
|
WidgetRowView: typeof WidgetRowView;
|
|
19
|
+
WidgetEmbeddedStory: typeof WidgetEmbeddedStory;
|
|
15
20
|
Theme: typeof Theme;
|
|
16
21
|
addDelegateListener: typeof addDelegateListener;
|
|
17
22
|
setDoNotTrack: typeof setDoNotTrack;
|
|
18
23
|
setGeoLocation: typeof setGeoLocation;
|
|
19
24
|
LabelBuilder: typeof LabelBuilder;
|
|
20
25
|
Delegations: typeof Delegation;
|
|
26
|
+
setGoogleCustomNativeAdsHandler: typeof setGoogleCustomNativeAdsHandler;
|
|
27
|
+
pauseCurrentPlayer: typeof pauseCurrentPlayer;
|
|
28
|
+
resumeCurrentPlayer: typeof resumeCurrentPlayer;
|
|
21
29
|
};
|
|
22
30
|
export default _default;
|
|
23
31
|
|
|
@@ -55,11 +63,21 @@ export declare abstract class BaseWidget extends HTMLElement {
|
|
|
55
63
|
constructor();
|
|
56
64
|
getAttribute<T = boolean | string | number>(qualifiedName: string): T;
|
|
57
65
|
setStyle<T extends keyof CSSStyleDeclaration | string>(styles: Record<T, string | null>): void;
|
|
66
|
+
setAttributes(attributes: Record<string, string>): void;
|
|
58
67
|
removeElement(): void;
|
|
59
68
|
}
|
|
60
69
|
|
|
61
70
|
export declare function debounce<T extends Event>(func: EventHandler<T>, _delay: number): (event: T) => Promise<void>;
|
|
62
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
|
+
};
|
|
63
81
|
type ScreenOrientation = 'landscape' | 'portrait';
|
|
64
82
|
type Platform = 'console' | 'mobile' | 'tablet' | 'smarttv' | 'wearable' | 'embedded' | 'desktop';
|
|
65
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';
|
|
@@ -134,8 +152,12 @@ export declare function throttle<T extends Event>(func: EventHandler<T>, _delay:
|
|
|
134
152
|
export declare class URLManager {
|
|
135
153
|
static isUpdateLocationByScript: boolean;
|
|
136
154
|
static isBackWasCalled: boolean;
|
|
155
|
+
static resetLocationAfterStoryClose(): void;
|
|
137
156
|
static resetLocation(): void;
|
|
138
157
|
static updateLocationStoryHash(story?: IStory): void;
|
|
158
|
+
static getHashMatch(): RegExpMatchArray | null;
|
|
159
|
+
static getHash(): string;
|
|
160
|
+
static updateStoryInHash(story: IStory): void;
|
|
139
161
|
}
|
|
140
162
|
|
|
141
163
|
export declare class BlazeAlert extends BaseWidget {
|
|
@@ -164,7 +186,7 @@ export interface IDrawerOptions {
|
|
|
164
186
|
height?: string;
|
|
165
187
|
width?: string;
|
|
166
188
|
}
|
|
167
|
-
type DrawerAttributes = 'open';
|
|
189
|
+
type DrawerAttributes = 'open' | 'background-color' | 'border-color' | 'border-radius';
|
|
168
190
|
export declare class BlazeDrawer extends BaseWidget {
|
|
169
191
|
backdropContainer: BlazeDiv;
|
|
170
192
|
drawerContainer: BlazeDiv;
|
|
@@ -255,9 +277,10 @@ export declare class BlazeTypography extends BaseWidget {
|
|
|
255
277
|
get fontSize(): ".8rem" | "1rem" | ".5rem";
|
|
256
278
|
}
|
|
257
279
|
|
|
258
|
-
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width';
|
|
280
|
+
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color' | 'order';
|
|
259
281
|
export declare class BlazeButton extends BaseWidget {
|
|
260
282
|
buttonElement: HTMLButtonElement;
|
|
283
|
+
get refElement(): ShadowRoot | this;
|
|
261
284
|
constructor();
|
|
262
285
|
static observedAttributes: string[];
|
|
263
286
|
connectedCallback(): void;
|
|
@@ -272,8 +295,31 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
272
295
|
private setWidth;
|
|
273
296
|
}
|
|
274
297
|
|
|
298
|
+
type AttributeType = 'hidden-btn' | 'width' | 'height' | 'margin' | 'text' | 'href' | 'icon-url' | 'icon-size' | 'icon-color' | 'arrow-icon-display' | 'arrow-icon-color';
|
|
299
|
+
export declare class BlazeCtaButton extends BaseWidget {
|
|
300
|
+
anchorButtonElement: HTMLAnchorElement;
|
|
301
|
+
iconButtonElement: BlazeButton;
|
|
302
|
+
iconArrowElement: BlazeButton;
|
|
303
|
+
ctaTextElement: BlazeDiv;
|
|
304
|
+
isButtonCreated: boolean;
|
|
305
|
+
constructor();
|
|
306
|
+
static observedAttributes: string[];
|
|
307
|
+
connectedCallback(): void;
|
|
308
|
+
disconnectedCallback(): void;
|
|
309
|
+
attributeChangedCallback(name: AttributeType, oldValue: string, newValue: string): void;
|
|
310
|
+
createButton(): void;
|
|
311
|
+
animateButton(): void;
|
|
312
|
+
setCtaText(value: string): void;
|
|
313
|
+
setWidth(value: string): void;
|
|
314
|
+
setMargin(value: string): void;
|
|
315
|
+
setAnchorButtonStyles(styles: Partial<CSSStyleDeclaration>): void;
|
|
316
|
+
setCtaTextStyle(styles: Partial<CSSStyleDeclaration>): void;
|
|
317
|
+
setCtaIconStyles(styles: Partial<CSSStyleDeclaration>): void;
|
|
318
|
+
}
|
|
319
|
+
|
|
275
320
|
export * from './share-button';
|
|
276
321
|
export * from './button';
|
|
322
|
+
export * from './cta-button';
|
|
277
323
|
|
|
278
324
|
export type ShareButtonType = 'copy-link' | 'linked-in';
|
|
279
325
|
type AttributeType = 'size' | 'button-type';
|
|
@@ -304,7 +350,9 @@ export declare enum StoryAction {
|
|
|
304
350
|
ShareSelect = "share_select",
|
|
305
351
|
ShareSuccess = "share_success",
|
|
306
352
|
PlaybackPause = "playback_pause",
|
|
307
|
-
PlaybackPlay = "playback_play"
|
|
353
|
+
PlaybackPlay = "playback_play",
|
|
354
|
+
Expand = "expand",
|
|
355
|
+
Minimize = "minimize"
|
|
308
356
|
}
|
|
309
357
|
export declare enum WidgetAction {
|
|
310
358
|
Load = "widget_load",
|
|
@@ -339,13 +387,28 @@ type ExposedFields = {
|
|
|
339
387
|
};
|
|
340
388
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
341
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
|
+
|
|
342
398
|
export * from './analytics.constants';
|
|
399
|
+
export * from './device.constants';
|
|
343
400
|
export * from './iso-country-codes.constants';
|
|
401
|
+
export * from './style.constants';
|
|
344
402
|
export * from './time.constants';
|
|
403
|
+
export * from './css.constants';
|
|
345
404
|
|
|
346
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"];
|
|
347
406
|
|
|
407
|
+
export declare const DEFAULT_CTA_HEIGHT = 40;
|
|
408
|
+
export declare const MIN_PADDING_BOTTOM = 10;
|
|
409
|
+
|
|
348
410
|
export declare const ONE_SECOND = 1000;
|
|
411
|
+
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
349
412
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
350
413
|
|
|
351
414
|
export declare class Database implements IDatabase {
|
|
@@ -511,6 +574,12 @@ export declare enum Delegation {
|
|
|
511
574
|
onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed",
|
|
512
575
|
onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
|
|
513
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
|
+
}
|
|
514
583
|
|
|
515
584
|
export * from './error-codes.enum';
|
|
516
585
|
export * from './event.enum';
|
|
@@ -518,6 +587,7 @@ export * from './event.enum';
|
|
|
518
587
|
export interface WidgetsTagNameMap {
|
|
519
588
|
'blaze-sdk': BlazeWidgetSDK;
|
|
520
589
|
'blaze-widget-ad': BlazeWidgetStoryAd;
|
|
590
|
+
'blaze-widget-embedded-story': BlazeWidgetEmbeddedStory;
|
|
521
591
|
'blaze-widget-modal': BlazeWidgetModal;
|
|
522
592
|
'blaze-widget-item': BlazeWidgetItem;
|
|
523
593
|
'blaze-widget-layout': BlazeWidgetLayout;
|
|
@@ -530,6 +600,7 @@ export interface WidgetsTagNameMap {
|
|
|
530
600
|
'blaze-widget-moment-player': BlazeWidgetMomentPlayer;
|
|
531
601
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
532
602
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
603
|
+
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
533
604
|
'blaze-widget-image': BlazeWidgetStoryImage;
|
|
534
605
|
'blaze-widget-video': BlazeWidgetStoryVideo;
|
|
535
606
|
'blaze-widget-moment-video': BlazeWidgetMomentVideo;
|
|
@@ -543,11 +614,13 @@ export interface WidgetsTagNameMap {
|
|
|
543
614
|
'blaze-div': BlazeDiv;
|
|
544
615
|
'blaze-share-button': BlazeShareButton;
|
|
545
616
|
'blaze-button': BlazeButton;
|
|
617
|
+
'blaze-button-cta': BlazeCtaButton;
|
|
546
618
|
'blaze-typography': BlazeTypography;
|
|
547
619
|
}
|
|
548
620
|
interface WidgetsTagNameOptionsMap {
|
|
549
621
|
'blaze-sdk': {};
|
|
550
622
|
'blaze-widget-ad': {};
|
|
623
|
+
'blaze-widget-embedded-story': {};
|
|
551
624
|
'blaze-widget-modal': {};
|
|
552
625
|
'blaze-widget-item': {};
|
|
553
626
|
'blaze-widget-layout': {};
|
|
@@ -560,6 +633,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
560
633
|
'blaze-widget-moment-player': {};
|
|
561
634
|
'blaze-widget-moment-modal': {};
|
|
562
635
|
'blaze-widget-share-modal': {};
|
|
636
|
+
'blaze-widget-cta-modal': {};
|
|
563
637
|
'blaze-widget-image': {};
|
|
564
638
|
'blaze-widget-video': {};
|
|
565
639
|
'blaze-widget-moment-video': {};
|
|
@@ -573,6 +647,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
573
647
|
'blaze-div': {};
|
|
574
648
|
'blaze-share-button': {};
|
|
575
649
|
'blaze-button': {};
|
|
650
|
+
'blaze-button-cta': {};
|
|
576
651
|
'blaze-typography': {};
|
|
577
652
|
}
|
|
578
653
|
export declare abstract class WidgetsFactory {
|
|
@@ -601,7 +676,7 @@ export declare const prevSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"ht
|
|
|
601
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>";
|
|
602
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>";
|
|
603
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>";
|
|
604
|
-
export declare const fullScreenSvg = "data:image/svg+xml;
|
|
679
|
+
export declare const fullScreenSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzM3M18xNzMiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMzczXzE3MykiPgo8cGF0aCBkPSJNNSAyMUM0LjQ1IDIxIDMuOTc5MTcgMjAuODA0MiAzLjU4NzUgMjAuNDEyNUMzLjE5NTgzIDIwLjAyMDggMyAxOS41NSAzIDE5VjE1SDVWMTlIOVYyMUg1Wk0xNSAyMVYxOUgxOVYxNUgyMVYxOUMyMSAxOS41NSAyMC44MDQyIDIwLjAyMDggMjAuNDEyNSAyMC40MTI1QzIwLjAyMDggMjAuODA0MiAxOS41NSAyMSAxOSAyMUgxNVpNMyA5VjVDMyA0LjQ1IDMuMTk1ODMgMy45NzkxNyAzLjU4NzUgMy41ODc1QzMuOTc5MTcgMy4xOTU4MyA0LjQ1IDMgNSAzSDlWNUg1VjlIM1pNMTkgOVY1SDE1VjNIMTlDMTkuNTUgMyAyMC4wMjA4IDMuMTk1ODMgMjAuNDEyNSAzLjU4NzVDMjAuODA0MiAzLjk3OTE3IDIxIDQuNDUgMjEgNVY5SDE5WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
605
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>";
|
|
606
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>";
|
|
607
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>";
|
|
@@ -622,8 +697,19 @@ export declare const newPrevPageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD
|
|
|
622
697
|
export declare const restartIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzVfNDg5ODEiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNV80ODk4MSkiPgo8cGF0aCBkPSJNMTYgMjRDMTMuNzY2NyAyNCAxMS44NzUgMjMuMjI1IDEwLjMyNSAyMS42NzVDOC43NzUgMjAuMTI1IDggMTguMjMzMyA4IDE2QzggMTMuNzY2NyA4Ljc3NSAxMS44NzUgMTAuMzI1IDEwLjMyNUMxMS44NzUgOC43NzUgMTMuNzY2NyA4IDE2IDhDMTcuMTUgOCAxOC4yNSA4LjIzNzUgMTkuMyA4LjcxMjVDMjAuMzUgOS4xODc1IDIxLjI1IDkuODY2NjcgMjIgMTAuNzVWOEgyNFYxNUgxN1YxM0gyMS4yQzIwLjY2NjcgMTIuMDY2NyAxOS45Mzc1IDExLjMzMzMgMTkuMDEyNSAxMC44QzE4LjA4NzUgMTAuMjY2NyAxNy4wODMzIDEwIDE2IDEwQzE0LjMzMzMgMTAgMTIuOTE2NyAxMC41ODMzIDExLjc1IDExLjc1QzEwLjU4MzMgMTIuOTE2NyAxMCAxNC4zMzMzIDEwIDE2QzEwIDE3LjY2NjcgMTAuNTgzMyAxOS4wODMzIDExLjc1IDIwLjI1QzEyLjkxNjcgMjEuNDE2NyAxNC4zMzMzIDIyIDE2IDIyQzE3LjI4MzMgMjIgMTguNDQxNyAyMS42MzMzIDE5LjQ3NSAyMC45QzIwLjUwODMgMjAuMTY2NyAyMS4yMzMzIDE5LjIgMjEuNjUgMThIMjMuNzVDMjMuMjgzMyAxOS43NjY3IDIyLjMzMzMgMjEuMjA4MyAyMC45IDIyLjMyNUMxOS40NjY3IDIzLjQ0MTcgMTcuODMzMyAyNCAxNiAyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
623
698
|
export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwbGF5X2Fycm93XzIiIGQ9Ik0xOCAzNlYxMkwzNiAyNEwxOCAzNloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
624
699
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
700
|
+
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
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
|
+
}
|
|
625
712
|
|
|
626
|
-
export type EnvironmentType = 'prod' | 'uat';
|
|
627
713
|
export interface IBlazeSDKOptions {
|
|
628
714
|
apiKey: string;
|
|
629
715
|
environment?: EnvironmentType;
|
|
@@ -634,6 +720,27 @@ export interface IBlazeSDKOptions {
|
|
|
634
720
|
externalUserId?: string;
|
|
635
721
|
geoLocation?: string;
|
|
636
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;
|
|
637
744
|
}
|
|
638
745
|
|
|
639
746
|
export interface IDatabase {
|
|
@@ -680,10 +787,30 @@ export interface IDrawable {
|
|
|
680
787
|
render: () => void;
|
|
681
788
|
}
|
|
682
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';
|
|
683
808
|
export * from './blaze-sdk.interface';
|
|
809
|
+
export * from './button.interface';
|
|
684
810
|
export * from './database.interface';
|
|
685
811
|
export * from './device.interface';
|
|
686
812
|
export * from './drawable.interface';
|
|
813
|
+
export * from './icons.interface';
|
|
687
814
|
export * from './response.interface';
|
|
688
815
|
export * from './service.interface';
|
|
689
816
|
export * from './widget-label-builder.interface';
|
|
@@ -720,6 +847,7 @@ export interface IWidgetViewOptionsBase {
|
|
|
720
847
|
delegates?: Record<Delegation, EventListenerOrEventListenerObject>;
|
|
721
848
|
labelsPriority?: string;
|
|
722
849
|
perItemStyleOverrides?: PerItemStyleOverrides;
|
|
850
|
+
shouldOrderWidgetByReadStatus?: boolean;
|
|
723
851
|
}
|
|
724
852
|
export interface IWidgetViewOptionsWithLabels extends IWidgetViewOptionsBase {
|
|
725
853
|
labels: string | string[] | BlazeWidgetLabel;
|
|
@@ -731,17 +859,22 @@ export interface IWidgetViewOptionsWithStoryIds extends IWidgetViewOptionsBase {
|
|
|
731
859
|
}
|
|
732
860
|
export type IWidgetViewOptions = IWidgetViewOptionsWithLabels | IWidgetViewOptionsWithStoryIds;
|
|
733
861
|
|
|
734
|
-
export interface IWidgetView {
|
|
862
|
+
export interface IWidgetView extends HTMLElement {
|
|
735
863
|
setTheme: (theme: IWidgetTheme) => void;
|
|
736
864
|
getTheme: () => IWidgetTheme;
|
|
737
|
-
setLabels: (labels: string | string[] | BlazeWidgetLabel) => void;
|
|
738
|
-
setLabelsPriority: (labelsPriority: string) => void;
|
|
739
|
-
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;
|
|
740
868
|
reload: () => void;
|
|
741
869
|
updateWidgetUI: () => void;
|
|
742
870
|
setMaxItemsDisplaySize: (size: number) => void;
|
|
743
871
|
setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
|
|
744
872
|
updateOverrideStyles: (perItemStyleOverrides: PerItemStyleOverrides) => void;
|
|
873
|
+
setId: (id: string) => void;
|
|
874
|
+
setMaxItemsSize: (size: number) => void;
|
|
875
|
+
}
|
|
876
|
+
export interface ISetWidgetOptions {
|
|
877
|
+
shouldReloadData?: boolean;
|
|
745
878
|
}
|
|
746
879
|
|
|
747
880
|
declare const AdServiceClass_base: {
|
|
@@ -764,7 +897,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
764
897
|
events: AnalyticsEvent[];
|
|
765
898
|
uaParsed?: IDevice;
|
|
766
899
|
init(): Promise<void>;
|
|
767
|
-
|
|
900
|
+
sendAnalyticsData(): Promise<void>;
|
|
768
901
|
bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
|
|
769
902
|
pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
770
903
|
pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
@@ -879,12 +1012,14 @@ export declare class StoryEvent {
|
|
|
879
1012
|
'content_duration_viewed': number;
|
|
880
1013
|
'story_page_duration': number;
|
|
881
1014
|
'story_page_duration_viewed_percent': number;
|
|
1015
|
+
'gesture_type': string;
|
|
882
1016
|
'labels_expression': string;
|
|
883
1017
|
'story_session_id': string;
|
|
884
1018
|
'story_page_index': number;
|
|
885
1019
|
'is_last_page': boolean;
|
|
886
1020
|
'audio_state': string;
|
|
887
1021
|
'playback_action_method': 'Press' | 'Release' | 'Click';
|
|
1022
|
+
'player_type': 'Embedded' | 'Full Screen';
|
|
888
1023
|
}
|
|
889
1024
|
export declare class WidgetEvent {
|
|
890
1025
|
'page_view_id': string;
|
|
@@ -1002,6 +1137,11 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1002
1137
|
private _externalUserId;
|
|
1003
1138
|
private _geoLocation;
|
|
1004
1139
|
private _staticContent;
|
|
1140
|
+
private _runInShadowDom;
|
|
1141
|
+
private _shouldModifyUrlWithStoryId;
|
|
1142
|
+
private _shouldDismissPlayer;
|
|
1143
|
+
private _googleCustomNativeAdHandler?;
|
|
1144
|
+
private _playerStyleCustomization?;
|
|
1005
1145
|
protected constructor();
|
|
1006
1146
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1007
1147
|
private _urls;
|
|
@@ -1023,6 +1163,13 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1023
1163
|
get apiKey(): string;
|
|
1024
1164
|
get previewUrl(): string;
|
|
1025
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);
|
|
1026
1173
|
}
|
|
1027
1174
|
export declare const ConfigService: ConfigServiceClass;
|
|
1028
1175
|
|
|
@@ -1215,6 +1362,7 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
1215
1362
|
private _isMuted;
|
|
1216
1363
|
private _isPlaying;
|
|
1217
1364
|
private _isNavigating;
|
|
1365
|
+
private _isModalOpen;
|
|
1218
1366
|
private _playReference;
|
|
1219
1367
|
constructor();
|
|
1220
1368
|
init(): Promise<void>;
|
|
@@ -1226,6 +1374,8 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
1226
1374
|
set isNavigating(value: boolean);
|
|
1227
1375
|
get playReference(): PlayType;
|
|
1228
1376
|
set playReference(value: PlayType);
|
|
1377
|
+
get isModalOpen(): boolean;
|
|
1378
|
+
set isModalOpen(value: boolean);
|
|
1229
1379
|
}
|
|
1230
1380
|
export declare const VideoPlayerService: VideoPlayerServiceClass;
|
|
1231
1381
|
|
|
@@ -1246,6 +1396,8 @@ export * from './theme.interface';
|
|
|
1246
1396
|
export declare class Presets {
|
|
1247
1397
|
static widgetFont: string;
|
|
1248
1398
|
static playerFont: string;
|
|
1399
|
+
static iconDefaultStyle: IconStyle;
|
|
1400
|
+
static CtaButtonStyle: CtaButtonStyle;
|
|
1249
1401
|
static StatusLiveStyle: IndicatorStyle;
|
|
1250
1402
|
static StatusLiveUnreadStyle: IndicatorStyle;
|
|
1251
1403
|
static StatusReadStyle: IndicatorStyle;
|
|
@@ -1268,6 +1420,7 @@ export interface IndicatorStyle {
|
|
|
1268
1420
|
backgroundImage: string;
|
|
1269
1421
|
borderRadius: string;
|
|
1270
1422
|
borderColor: string;
|
|
1423
|
+
thumbnailBorderColor: string;
|
|
1271
1424
|
borderWidth: number;
|
|
1272
1425
|
text: string;
|
|
1273
1426
|
textColor: string;
|
|
@@ -1298,8 +1451,8 @@ export interface LayoutStyle {
|
|
|
1298
1451
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
1299
1452
|
statusReadStyle: IndicatorStyle;
|
|
1300
1453
|
statusUnreadStyle: IndicatorStyle;
|
|
1301
|
-
badgeIndicatorStyle: IndicatorStyle;
|
|
1302
1454
|
statusIndicatorPosition: PositionType;
|
|
1455
|
+
badgeIndicatorStyle: IndicatorStyle;
|
|
1303
1456
|
badgePosition: PositionType;
|
|
1304
1457
|
}
|
|
1305
1458
|
export interface LabelStyle {
|
|
@@ -1307,7 +1460,7 @@ export interface LabelStyle {
|
|
|
1307
1460
|
gap: number;
|
|
1308
1461
|
width: number | 'auto';
|
|
1309
1462
|
color: string;
|
|
1310
|
-
height: number;
|
|
1463
|
+
height: string | number;
|
|
1311
1464
|
padding: string;
|
|
1312
1465
|
font: string;
|
|
1313
1466
|
fontSize: string;
|
|
@@ -1318,14 +1471,49 @@ export interface StoryPlayerStyle {
|
|
|
1318
1471
|
titleVisible: boolean;
|
|
1319
1472
|
titleFont: string;
|
|
1320
1473
|
titleFontSize: string;
|
|
1474
|
+
titleFontSizeEmbedded: string;
|
|
1321
1475
|
titleColor: string;
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1476
|
+
publishedDateVisible: boolean;
|
|
1477
|
+
publishedDateFont: string;
|
|
1478
|
+
publishedDateFontSize: string;
|
|
1479
|
+
publishedDateFontSizeEmbedded: string;
|
|
1480
|
+
publishedDateColor: string;
|
|
1481
|
+
statusLiveStyle: IndicatorStyle;
|
|
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;
|
|
1493
|
+
}
|
|
1494
|
+
export interface CtaButtonStyle {
|
|
1495
|
+
borderRadius: string;
|
|
1496
|
+
border: string;
|
|
1497
|
+
fontSize: string;
|
|
1498
|
+
font: string;
|
|
1499
|
+
backgroundColor: string;
|
|
1500
|
+
color: string;
|
|
1501
|
+
isVisible: boolean;
|
|
1502
|
+
isAnimated: boolean;
|
|
1503
|
+
isDisplayCtaModal: boolean;
|
|
1504
|
+
fontWeight: FontWeightType;
|
|
1505
|
+
textTransform: TextTransformType;
|
|
1506
|
+
padding: string;
|
|
1507
|
+
width: string;
|
|
1508
|
+
height: string;
|
|
1509
|
+
position: ButtonPositionType;
|
|
1510
|
+
icon: IconStyle;
|
|
1511
|
+
}
|
|
1512
|
+
export interface IconStyle {
|
|
1513
|
+
isVisible: boolean;
|
|
1514
|
+
url: string;
|
|
1515
|
+
size: string;
|
|
1516
|
+
color: string;
|
|
1329
1517
|
}
|
|
1330
1518
|
export interface IWidgetTheme {
|
|
1331
1519
|
layoutStyle: LayoutStyle;
|
|
@@ -1341,6 +1529,8 @@ export declare const Colors: {
|
|
|
1341
1529
|
readonly LiveChip: "#FF364E";
|
|
1342
1530
|
readonly ReadGray: "#9C9C9C";
|
|
1343
1531
|
readonly TimeColor: "#B6B7B8";
|
|
1532
|
+
readonly White: "#FFFFFF";
|
|
1533
|
+
readonly Black: "#000000";
|
|
1344
1534
|
};
|
|
1345
1535
|
|
|
1346
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';
|
|
@@ -1691,32 +1881,55 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1691
1881
|
|
|
1692
1882
|
export type ButtonType = 'ALL' | 'PAGE_NAVIGATION_ONLY' | 'STORY_NAVIGATION_ONLY';
|
|
1693
1883
|
export type ButtonState = 'ACTIVE' | 'DISABLED';
|
|
1694
|
-
export type NavigationButtonType = 'PREV_STORY' | 'NEXT_STORY' | 'PREV_PAGE' | 'NEXT_PAGE';
|
|
1695
1884
|
export declare enum ButtonNavigation {
|
|
1696
1885
|
PREV_STORY = 0,
|
|
1697
1886
|
NEXT_STORY = 1,
|
|
1698
1887
|
PREV_PAGE = 2,
|
|
1699
1888
|
NEXT_PAGE = 3
|
|
1700
1889
|
}
|
|
1890
|
+
export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
1891
|
+
export declare const positionMap: {
|
|
1892
|
+
[key: string]: string;
|
|
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
|
+
};
|
|
1701
1906
|
|
|
1702
1907
|
export type ClientPlatform = 'Web';
|
|
1703
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
|
+
|
|
1704
1912
|
export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
|
|
1705
1913
|
|
|
1706
1914
|
export type ComponentsElementType = 'blaze-alert' | 'blaze-toast' | 'blaze-chip' | 'blaze-image';
|
|
1707
1915
|
export type WidgetElementType = 'blaze-sdk';
|
|
1708
1916
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
1709
1917
|
|
|
1918
|
+
export type EnvironmentType = 'prod' | 'uat';
|
|
1919
|
+
|
|
1710
1920
|
export type FetchPriorityType = 'low' | 'high' | 'auto';
|
|
1711
1921
|
|
|
1712
1922
|
export * from './attribute-parser';
|
|
1713
1923
|
export * from './button.type';
|
|
1714
1924
|
export * from './client-platform.type';
|
|
1925
|
+
export * from './css.type';
|
|
1715
1926
|
export * from './direction.type';
|
|
1716
1927
|
export * from './element.type';
|
|
1928
|
+
export * from './environment.type';
|
|
1717
1929
|
export * from './fetch-priority.type';
|
|
1718
1930
|
export * from './item.type';
|
|
1719
1931
|
export * from './label.type';
|
|
1932
|
+
export * from './locale.type';
|
|
1720
1933
|
export * from './order.type';
|
|
1721
1934
|
export * from './play.type';
|
|
1722
1935
|
export * from './position.type';
|
|
@@ -1734,12 +1947,15 @@ export type PerItemStyleOverrides = Record<EntitiesType, Array<{
|
|
|
1734
1947
|
|
|
1735
1948
|
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1736
1949
|
|
|
1950
|
+
export type LocaleDirectionType = 'LTR' | 'RTL';
|
|
1951
|
+
|
|
1737
1952
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
1953
|
+
export type ContentOrderType = 'LIVE_CHIP' | 'STORY_TITLE' | 'PUBLISHED_DATE';
|
|
1738
1954
|
|
|
1739
1955
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1740
1956
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1741
1957
|
|
|
1742
|
-
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | '
|
|
1958
|
+
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideTop' | 'insideTopMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottom' | 'insideBottomMiddle' | 'insideMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1743
1959
|
export type PositionOutsideType = 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1744
1960
|
export type PositionType = PositionInsideType | PositionOutsideType;
|
|
1745
1961
|
export interface PositionOffset {
|
|
@@ -1749,6 +1965,7 @@ export interface PositionOffset {
|
|
|
1749
1965
|
bottom: string;
|
|
1750
1966
|
}
|
|
1751
1967
|
export type PartialPositionOffset = Partial<PositionOffset>;
|
|
1968
|
+
export type IconsPositionType = 'HORIZONTAL' | 'VERTICAL';
|
|
1752
1969
|
|
|
1753
1970
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1754
1971
|
|
|
@@ -1787,9 +2004,11 @@ export declare function GuardNullOrEmpty(name: string, value: any): void;
|
|
|
1787
2004
|
export declare function formatDuration(startDate: Date): string;
|
|
1788
2005
|
export declare function isCssPropertySupported(property: string): boolean;
|
|
1789
2006
|
export declare function pixelsToNumber(pxString: string): number;
|
|
2007
|
+
export declare function convertCssUnitToNumber(cssValue: string | number): number;
|
|
1790
2008
|
export declare function isObject(item: any): boolean;
|
|
1791
2009
|
export declare function mergeDeep(target: any, ...sources: any[]): any;
|
|
1792
|
-
export declare function
|
|
2010
|
+
export declare function mergeArrays(targetArray: any[], sourceArray: any[]): any[];
|
|
2011
|
+
export declare function cloneDeep<T>(source: T): T;
|
|
1793
2012
|
export declare function formatDate(date: Date): string;
|
|
1794
2013
|
export declare function formatUTCDate(date: Date): string;
|
|
1795
2014
|
export declare function calculatePercentage(value: number, element: BlazeDiv): string;
|
|
@@ -1804,6 +2023,12 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
1804
2023
|
export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
|
|
1805
2024
|
export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
|
|
1806
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;
|
|
1807
2032
|
|
|
1808
2033
|
export * from './chip.utils';
|
|
1809
2034
|
export * from './common.utils';
|
|
@@ -1838,6 +2063,8 @@ export declare class Stopwatch {
|
|
|
1838
2063
|
}
|
|
1839
2064
|
|
|
1840
2065
|
export * from './widget-ad';
|
|
2066
|
+
export * from './widget-cta-modal';
|
|
2067
|
+
export * from './widget-embedded-story';
|
|
1841
2068
|
export * from './widget-interaction';
|
|
1842
2069
|
export * from './widget-item';
|
|
1843
2070
|
export * from './widget-label';
|
|
@@ -1858,9 +2085,9 @@ export * from './widget-story-modal';
|
|
|
1858
2085
|
export * from './widget-story-player';
|
|
1859
2086
|
export * from './widget-story-preview';
|
|
1860
2087
|
export * from './widget-story-video';
|
|
1861
|
-
export * from './widget-interaction';
|
|
1862
2088
|
|
|
1863
2089
|
export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
2090
|
+
private storyParent;
|
|
1864
2091
|
data: IPage | undefined;
|
|
1865
2092
|
private isCurrectlyDisplay;
|
|
1866
2093
|
private adContainer;
|
|
@@ -1890,6 +2117,83 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
|
1890
2117
|
private initStyles;
|
|
1891
2118
|
}
|
|
1892
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
|
+
|
|
1893
2197
|
export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
1894
2198
|
private iframe;
|
|
1895
2199
|
loadInteraction(interactionData: Interaction): void;
|
|
@@ -1917,6 +2221,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1917
2221
|
private badge;
|
|
1918
2222
|
private isLive;
|
|
1919
2223
|
private analyticsCalls;
|
|
2224
|
+
get parentRef(): BlazeWidgetLayout;
|
|
1920
2225
|
private statusIndicatorSettings;
|
|
1921
2226
|
paddingItem: PositionOffset;
|
|
1922
2227
|
content: IStory;
|
|
@@ -1926,12 +2231,14 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1926
2231
|
connectedCallback(): void;
|
|
1927
2232
|
disconnectedCallback(): void;
|
|
1928
2233
|
updateWidget(): void;
|
|
2234
|
+
updateWidgetItemPadding(): void;
|
|
1929
2235
|
updateWidgetItemStyle(theme: IWidgetTheme): void;
|
|
1930
2236
|
private setupDOMElements;
|
|
1931
2237
|
private setupEventListeners;
|
|
1932
2238
|
private handleWidgetClick;
|
|
1933
2239
|
private setData;
|
|
1934
2240
|
getThumbnailUrl(): string;
|
|
2241
|
+
setThumbnailBorderColor(color: string): void;
|
|
1935
2242
|
private updateLabel;
|
|
1936
2243
|
private resetWidgetItemStyles;
|
|
1937
2244
|
private updateContainerStyles;
|
|
@@ -1976,6 +2283,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1976
2283
|
preset: IWidgetTheme | undefined;
|
|
1977
2284
|
perItemStyleOverrides: PerItemStyleOverrides;
|
|
1978
2285
|
activeOverridesLayoutThemes: PerItemStyleOverrides;
|
|
2286
|
+
isWidgetVisible: boolean;
|
|
1979
2287
|
thumbnailWidth: number | undefined;
|
|
1980
2288
|
thumbnailHeight: number | undefined;
|
|
1981
2289
|
widgetHeight: number;
|
|
@@ -1985,6 +2293,9 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1985
2293
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1986
2294
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1987
2295
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2296
|
+
shouldReloadWhenPlayerIsClosed: boolean;
|
|
2297
|
+
shouldReloadData: boolean;
|
|
2298
|
+
get refElement(): ShadowRoot | this;
|
|
1988
2299
|
constructor();
|
|
1989
2300
|
onResizeEventDelay(): void;
|
|
1990
2301
|
onResize(): void;
|
|
@@ -1995,14 +2306,16 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1995
2306
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1996
2307
|
onKeyDown(e: KeyboardEvent): void;
|
|
1997
2308
|
onStoryChange(mode: StoryDirectionType): void;
|
|
2309
|
+
onPlayerClose(): void;
|
|
1998
2310
|
getParentHeightWithoutPadding(): number | null;
|
|
1999
2311
|
setId(id: string): void;
|
|
2000
|
-
handlePopState(
|
|
2312
|
+
handlePopState(): void;
|
|
2313
|
+
private setReloadData;
|
|
2001
2314
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2002
2315
|
set storyIds(value: string);
|
|
2003
|
-
setContentIds(storyIds: string[]): void;
|
|
2004
|
-
setLabelsPriority(labelsPriority: string): void;
|
|
2005
|
-
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;
|
|
2006
2319
|
getTheme(): IWidgetTheme;
|
|
2007
2320
|
setTheme(theme: IWidgetTheme | string): void;
|
|
2008
2321
|
private get theme();
|
|
@@ -2010,9 +2323,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2010
2323
|
reload(): void;
|
|
2011
2324
|
updateActiveLayoutThemesPerItemWithEntity(key: EntitiesType, value: string, theme: IWidgetTheme): void;
|
|
2012
2325
|
updateWidgetUI(): void;
|
|
2326
|
+
setMaxPaddingOnWidgetItems(): void;
|
|
2013
2327
|
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2014
2328
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2015
2329
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
2330
|
+
private updatePlayerStyle;
|
|
2016
2331
|
createModal(): void;
|
|
2017
2332
|
createMomentsModal(): void;
|
|
2018
2333
|
static get observedAttributes(): string[];
|
|
@@ -2056,7 +2371,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2056
2371
|
};
|
|
2057
2372
|
maxSize(): number;
|
|
2058
2373
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
2059
|
-
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
2060
2374
|
updateWidgetsData(): void;
|
|
2061
2375
|
reorderWidgets(): void;
|
|
2062
2376
|
connectWidgets(): void;
|
|
@@ -2070,8 +2384,6 @@ export declare class BlazeWidgetModal extends BaseWidget {
|
|
|
2070
2384
|
connectedCallback(): void;
|
|
2071
2385
|
open(): void;
|
|
2072
2386
|
close(): void;
|
|
2073
|
-
disconnectedCallback(): void;
|
|
2074
|
-
setTheme(theme: IWidgetTheme): void;
|
|
2075
2387
|
}
|
|
2076
2388
|
|
|
2077
2389
|
export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
@@ -2255,7 +2567,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
|
|
|
2255
2567
|
}
|
|
2256
2568
|
|
|
2257
2569
|
export declare class BlazeWidgetSDK extends BaseWidget {
|
|
2258
|
-
modalStory
|
|
2570
|
+
modalStory?: BlazeWidgetStoryModal;
|
|
2259
2571
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2260
2572
|
static get observedAttributes(): string[];
|
|
2261
2573
|
constructor();
|
|
@@ -2263,6 +2575,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
|
|
|
2263
2575
|
disconnectedCallback(): void;
|
|
2264
2576
|
onResizeEventDelay(): void;
|
|
2265
2577
|
onResize(): void;
|
|
2578
|
+
setPlayerStyleCustomization(playerStyleCustomization: Partial<StoryPlayerStyle>): void;
|
|
2266
2579
|
handleStoryLoad(playReference: 'Share' | 'SingleStory', storyIds: string): Promise<void>;
|
|
2267
2580
|
handleStaticContentLoad(playReference: 'Share' | 'SingleStory'): Promise<void>;
|
|
2268
2581
|
enrichContent(content: IStory[]): Promise<IStory[]>;
|
|
@@ -2283,6 +2596,7 @@ export interface IShareButton {
|
|
|
2283
2596
|
export declare class BlazeWidgetShareModal extends BaseWidget {
|
|
2284
2597
|
shareContainer: BlazeDiv;
|
|
2285
2598
|
shareDrawer: BlazeDrawer;
|
|
2599
|
+
shareUrl: string;
|
|
2286
2600
|
onOpen: (() => void) | undefined;
|
|
2287
2601
|
onClose: (() => void) | undefined;
|
|
2288
2602
|
onClick?: ((button: BlazeShareButton) => void);
|
|
@@ -2292,7 +2606,7 @@ export declare class BlazeWidgetShareModal extends BaseWidget {
|
|
|
2292
2606
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2293
2607
|
onDarwerOpen(): void;
|
|
2294
2608
|
onDrawerClose(): void;
|
|
2295
|
-
open(): void;
|
|
2609
|
+
open(shareUrl: string): void;
|
|
2296
2610
|
close(): void;
|
|
2297
2611
|
renderButtons(): void;
|
|
2298
2612
|
renderTitle(): void;
|
|
@@ -2303,6 +2617,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2303
2617
|
data: IPage | undefined;
|
|
2304
2618
|
shouldShowImaAd?: boolean;
|
|
2305
2619
|
isCurrentlyTryingToRunImaAd?: boolean;
|
|
2620
|
+
_isAd?: boolean | undefined;
|
|
2306
2621
|
constructor();
|
|
2307
2622
|
setData(data: IPage): void;
|
|
2308
2623
|
loadPoster(): void;
|
|
@@ -2313,6 +2628,8 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2313
2628
|
get currentTime(): number;
|
|
2314
2629
|
set currentTime(value: number);
|
|
2315
2630
|
get muted(): boolean;
|
|
2631
|
+
get isAd(): boolean | undefined;
|
|
2632
|
+
set isAd(value: boolean | undefined);
|
|
2316
2633
|
removeLoader(): any;
|
|
2317
2634
|
load(): void;
|
|
2318
2635
|
unload(): void;
|
|
@@ -2355,23 +2672,26 @@ export declare class BlazeWidgetStoryImage extends BlazeWidgetStoryBase {
|
|
|
2355
2672
|
/// <reference types="hammerjs" />
|
|
2356
2673
|
export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
2357
2674
|
parentWidget: HTMLElement;
|
|
2675
|
+
playerLayout: StoryPlayerStyle;
|
|
2358
2676
|
player: BlazeWidgetStoryPlayer;
|
|
2359
2677
|
exitButtonElement: BlazeButton;
|
|
2360
2678
|
exitButtonWrapperElement: BlazeDiv;
|
|
2361
2679
|
onOpen?: () => void;
|
|
2362
|
-
onClose?: () => void;
|
|
2680
|
+
onClose?: (options?: ISmoothOpenCloseModal) => void;
|
|
2363
2681
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2364
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2365
2682
|
hammer: HammerManager | null;
|
|
2366
2683
|
isMultiTouch: boolean;
|
|
2367
|
-
|
|
2684
|
+
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2685
|
+
get refElement(): this;
|
|
2686
|
+
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2368
2687
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
2369
2688
|
setTheme(theme: IWidgetTheme): void;
|
|
2370
2689
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
2371
2690
|
seek(id: string): void;
|
|
2691
|
+
handleExit(): void;
|
|
2372
2692
|
onKeyDown(ev: KeyboardEvent): void;
|
|
2373
2693
|
close(): void;
|
|
2374
|
-
open(): void;
|
|
2694
|
+
open(options?: ISmoothOpenCloseModal): void;
|
|
2375
2695
|
play(): void;
|
|
2376
2696
|
connectedCallback(): void;
|
|
2377
2697
|
disconnectedCallback(): void;
|
|
@@ -2382,6 +2702,9 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2382
2702
|
handlePinchOut(ev: HammerInput): void;
|
|
2383
2703
|
private cleanupHammer;
|
|
2384
2704
|
render(): void;
|
|
2705
|
+
playToggleCurrentStory(): void;
|
|
2706
|
+
private onResize;
|
|
2707
|
+
private onResizeEventDelay;
|
|
2385
2708
|
}
|
|
2386
2709
|
|
|
2387
2710
|
export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
@@ -2402,7 +2725,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2402
2725
|
destBackground: HTMLCanvasElement;
|
|
2403
2726
|
onClose?: () => void;
|
|
2404
2727
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2405
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2406
2728
|
listeners: EventsListener;
|
|
2407
2729
|
backgroundAnimation?: Animation;
|
|
2408
2730
|
overlay: any;
|
|
@@ -2424,7 +2746,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2424
2746
|
seek(storyId: string): void;
|
|
2425
2747
|
injectStoryToDomBasedOnUserNavigation(direction: StoryDirectionType): void;
|
|
2426
2748
|
resetPosition(): void;
|
|
2427
|
-
play(): void;
|
|
2749
|
+
play(options?: ISmoothOpenCloseModal): void;
|
|
2428
2750
|
clean(): void;
|
|
2429
2751
|
onCompleteAnimation(story: BlazeWidgetStory, mode: StoryDirectionType): void;
|
|
2430
2752
|
animateStory(direction: StoryDirectionType): AnimeTimelineInstance | undefined;
|
|
@@ -2436,6 +2758,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2436
2758
|
onSmallGestures(animation: AnimeInstance, story: BlazeWidgetStory): void;
|
|
2437
2759
|
onKeyDown(ev: KeyboardEvent): false | undefined;
|
|
2438
2760
|
render(): void;
|
|
2761
|
+
playToggleCurrentStory(): void;
|
|
2439
2762
|
}
|
|
2440
2763
|
|
|
2441
2764
|
export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
@@ -2451,8 +2774,8 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2451
2774
|
playbackParts: HTMLElement[];
|
|
2452
2775
|
playToggleBtn: HTMLElement;
|
|
2453
2776
|
muteToggleBtn: HTMLElement;
|
|
2454
|
-
storyTitle:
|
|
2455
|
-
storyPublishedDate:
|
|
2777
|
+
storyTitle: BlazeDiv;
|
|
2778
|
+
storyPublishedDate: BlazeDiv;
|
|
2456
2779
|
storyThumbnail: HTMLElement;
|
|
2457
2780
|
storyChip: HTMLElement;
|
|
2458
2781
|
ctaButton: HTMLElement;
|
|
@@ -2466,7 +2789,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2466
2789
|
modal: BlazeWidgetStoryModal;
|
|
2467
2790
|
fullscreenMode: boolean;
|
|
2468
2791
|
static isPlaying: boolean;
|
|
2469
|
-
constructor();
|
|
2792
|
+
constructor(playerStyle: StoryPlayerStyle);
|
|
2470
2793
|
updateChip(): void;
|
|
2471
2794
|
updateButtonsState(): void;
|
|
2472
2795
|
static get observedAttributes(): string[];
|
|
@@ -2524,6 +2847,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2524
2847
|
storyParent: BlazeWidgetStory;
|
|
2525
2848
|
googleIMA: any;
|
|
2526
2849
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
2850
|
+
hasPoster: boolean;
|
|
2527
2851
|
constructor(storyParent: BlazeWidgetStory, disableInteraction?: boolean);
|
|
2528
2852
|
connectedCallback(): void;
|
|
2529
2853
|
disconnectedCallback(): void;
|
|
@@ -2547,6 +2871,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2547
2871
|
get paused(): boolean;
|
|
2548
2872
|
get muted(): boolean;
|
|
2549
2873
|
set muted(value: boolean);
|
|
2874
|
+
get isAd(): boolean;
|
|
2550
2875
|
render(): void;
|
|
2551
2876
|
restartVideo(): void;
|
|
2552
2877
|
initializeIMA(): void;
|
|
@@ -2565,13 +2890,19 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2565
2890
|
}
|
|
2566
2891
|
|
|
2567
2892
|
export declare class BlazeWidgetStory extends HTMLElement {
|
|
2893
|
+
playerStyle: StoryPlayerStyle;
|
|
2894
|
+
mode: 'Full Screen' | 'Embedded';
|
|
2568
2895
|
pages: BlazeWidgetStoryBase[];
|
|
2569
2896
|
data: IStory;
|
|
2570
|
-
shareModal
|
|
2897
|
+
shareModal?: BlazeWidgetShareModal;
|
|
2898
|
+
ctaModal?: BlazeWidgetCtaModal;
|
|
2571
2899
|
isStoryLoadCompletedTriggered: boolean;
|
|
2572
2900
|
isStoryActive: boolean;
|
|
2573
2901
|
isResumeOnFocusExecuted: boolean;
|
|
2574
|
-
|
|
2902
|
+
isCtaWasClickedOrSwiped: boolean;
|
|
2903
|
+
refWidget?: BlazeWidgetStory[];
|
|
2904
|
+
refPlayer?: BlazeWidgetStoryPlayer;
|
|
2905
|
+
refPlayerModal?: BlazeWidgetStoryModal;
|
|
2575
2906
|
pageIndex: number;
|
|
2576
2907
|
container: HTMLElement;
|
|
2577
2908
|
progressElement: HTMLElement;
|
|
@@ -2582,13 +2913,18 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2582
2913
|
buttonsContainer: BlazeDiv;
|
|
2583
2914
|
playbackParts: HTMLElement[];
|
|
2584
2915
|
playButtonElement?: BlazeButton;
|
|
2585
|
-
shareButtonElement
|
|
2586
|
-
muteButtonElement
|
|
2587
|
-
exitMobileTabletButtonElement
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2916
|
+
shareButtonElement?: BlazeButton;
|
|
2917
|
+
muteButtonElement?: BlazeButton;
|
|
2918
|
+
exitMobileTabletButtonElement?: BlazeButton;
|
|
2919
|
+
fullScreenElement?: BlazeButton;
|
|
2920
|
+
topContainer: BlazeDiv;
|
|
2921
|
+
bottomContainer: BlazeDiv;
|
|
2922
|
+
storyContentWrapper: BlazeDiv;
|
|
2923
|
+
storyTitle: BlazeDiv;
|
|
2924
|
+
storyPublishedDate: BlazeDiv;
|
|
2925
|
+
storyLiveChip: BlazeDiv;
|
|
2926
|
+
bottomButtonsWrapper: BlazeDiv;
|
|
2927
|
+
ctaButtonElement: BlazeCtaButton;
|
|
2592
2928
|
prevPageButton?: BlazeButton;
|
|
2593
2929
|
nextPageButton?: BlazeButton;
|
|
2594
2930
|
prevStoryButton?: BlazeButton;
|
|
@@ -2597,32 +2933,37 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2597
2933
|
widgetParent: BlazeWidgetItem;
|
|
2598
2934
|
playCallback: any;
|
|
2599
2935
|
sessionId: string;
|
|
2600
|
-
startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2601
|
-
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' | '';
|
|
2602
2938
|
navigationType: 'Automatic' | 'Manual' | undefined;
|
|
2603
2939
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2604
2940
|
resumeAfterfocus: boolean;
|
|
2605
2941
|
totalPlayStopwatch: Stopwatch;
|
|
2606
|
-
playerStyle: StoryPlayerStyle;
|
|
2607
2942
|
listeners: EventsListener;
|
|
2608
2943
|
shadowTopElement: HTMLDivElement;
|
|
2609
2944
|
isNavigationPending: boolean;
|
|
2610
2945
|
navigationTimeout: NodeJS.Timeout | null;
|
|
2611
2946
|
lastPageIndexToResume: number;
|
|
2612
|
-
elementsToHideOnWebAds: HTMLElement[];
|
|
2947
|
+
elementsToHideOnWebAds: (HTMLElement | undefined)[];
|
|
2613
2948
|
elementsToHideOnImaAds: (HTMLElement | undefined)[];
|
|
2614
2949
|
muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
|
|
2615
2950
|
longPressHandler?: LongPressHandler;
|
|
2616
2951
|
originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
2617
2952
|
restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
|
|
2618
|
-
constructor();
|
|
2953
|
+
constructor(playerStyle: StoryPlayerStyle, mode: 'Full Screen' | 'Embedded');
|
|
2954
|
+
private isButtonVisible;
|
|
2955
|
+
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
2956
|
+
private createNavigationButtonsAndAppendToWidgetStoryContainer;
|
|
2957
|
+
private applyIconStyle;
|
|
2619
2958
|
onShareClick(): Promise<void>;
|
|
2959
|
+
updateCtaButtonLayout(): void;
|
|
2620
2960
|
updateChip(): void;
|
|
2621
2961
|
setTheme(storyPlayerStyle: StoryPlayerStyle): void;
|
|
2622
2962
|
setButtonNavigationAsDisabled(buttonType: ButtonType): void;
|
|
2623
2963
|
adjustAdView(): void;
|
|
2964
|
+
setPlayerButtonPosition(state: 'AD' | 'NO_AD'): void;
|
|
2624
2965
|
updatePlayerButtonIcons(): void;
|
|
2625
|
-
|
|
2966
|
+
handleCtaAction(event: Event, gestureType: 'Swipe Up' | 'CTA Click'): boolean;
|
|
2626
2967
|
playToggle(): void;
|
|
2627
2968
|
muteToggle(): boolean;
|
|
2628
2969
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
@@ -2649,11 +2990,12 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2649
2990
|
updateContainerLayout(): void;
|
|
2650
2991
|
connectedCallback(): void;
|
|
2651
2992
|
onShareModalClose(): void;
|
|
2993
|
+
onCtaModalClick(): void;
|
|
2652
2994
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
2653
2995
|
onVisibilityChange(): void;
|
|
2654
2996
|
onBlur(): void;
|
|
2655
2997
|
onFocus(): void;
|
|
2656
|
-
close(): void;
|
|
2998
|
+
close(isDirectCloseCall?: boolean): void;
|
|
2657
2999
|
pause(): void;
|
|
2658
3000
|
resume(): void;
|
|
2659
3001
|
resetPosition(): void;
|
|
@@ -2664,13 +3006,21 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2664
3006
|
goNextPage(navigationType?: 'Automatic' | 'Manual'): void;
|
|
2665
3007
|
goPrevPage(): void;
|
|
2666
3008
|
disconnectedCallback(): void;
|
|
3009
|
+
updateCTAButtonPosition(): void;
|
|
2667
3010
|
renderCtaButton(pageIndex: number): void;
|
|
2668
3011
|
updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
|
|
2669
3012
|
updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
|
|
2670
3013
|
isNavigationButtonActive(navigationType: ButtonNavigation): boolean;
|
|
2671
3014
|
updateNavButton(state: ButtonState, navButtonElement: BlazeButton): void;
|
|
2672
|
-
|
|
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;
|
|
2673
3022
|
displayExitButtonOnMobileTablet(): void;
|
|
2674
3023
|
render(): void;
|
|
3024
|
+
onExpandClick(): void;
|
|
2675
3025
|
}
|
|
2676
3026
|
|