@wscsports/blaze-web-sdk 0.1.95 → 0.1.97
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 +206 -35
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ 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;
|
|
@@ -265,7 +266,7 @@ export declare class BlazeTypography extends BaseWidget {
|
|
|
265
266
|
get fontSize(): ".8rem" | "1rem" | ".5rem";
|
|
266
267
|
}
|
|
267
268
|
|
|
268
|
-
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
|
|
269
|
+
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color' | 'order';
|
|
269
270
|
export declare class BlazeButton extends BaseWidget {
|
|
270
271
|
buttonElement: HTMLButtonElement;
|
|
271
272
|
get refElement(): ShadowRoot | this;
|
|
@@ -337,7 +338,9 @@ export declare enum StoryAction {
|
|
|
337
338
|
ShareSelect = "share_select",
|
|
338
339
|
ShareSuccess = "share_success",
|
|
339
340
|
PlaybackPause = "playback_pause",
|
|
340
|
-
PlaybackPlay = "playback_play"
|
|
341
|
+
PlaybackPlay = "playback_play",
|
|
342
|
+
Expand = "expand",
|
|
343
|
+
Minimize = "minimize"
|
|
341
344
|
}
|
|
342
345
|
export declare enum WidgetAction {
|
|
343
346
|
Load = "widget_load",
|
|
@@ -372,9 +375,12 @@ type ExposedFields = {
|
|
|
372
375
|
};
|
|
373
376
|
export declare const exposedFieldsByAction: ExposedFields;
|
|
374
377
|
|
|
378
|
+
export declare const TRANSPARENT = "transparent";
|
|
379
|
+
|
|
375
380
|
export * from './analytics.constants';
|
|
376
381
|
export * from './iso-country-codes.constants';
|
|
377
382
|
export * from './time.constants';
|
|
383
|
+
export * from './css.constants';
|
|
378
384
|
|
|
379
385
|
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"];
|
|
380
386
|
|
|
@@ -544,6 +550,12 @@ export declare enum Delegation {
|
|
|
544
550
|
onWidgetStoryPlayerDismissed = "blaze-widget-story-player-dismissed",
|
|
545
551
|
onWidgetTriggerCTA = "blaze-widget-trigger-CTA"
|
|
546
552
|
}
|
|
553
|
+
export declare enum InternalEvent {
|
|
554
|
+
NEXT_STORY = "next_story",
|
|
555
|
+
PREV_STORY = "prev_story",
|
|
556
|
+
FULL_SCREEN_CLICK = "full_screen_click",
|
|
557
|
+
AD_ENDED = "ad_ended"
|
|
558
|
+
}
|
|
547
559
|
|
|
548
560
|
export * from './error-codes.enum';
|
|
549
561
|
export * from './event.enum';
|
|
@@ -551,6 +563,7 @@ export * from './event.enum';
|
|
|
551
563
|
export interface WidgetsTagNameMap {
|
|
552
564
|
'blaze-sdk': BlazeWidgetSDK;
|
|
553
565
|
'blaze-widget-ad': BlazeWidgetStoryAd;
|
|
566
|
+
'blaze-widget-embedded-story': BlazeWidgetEmbeddedStory;
|
|
554
567
|
'blaze-widget-modal': BlazeWidgetModal;
|
|
555
568
|
'blaze-widget-item': BlazeWidgetItem;
|
|
556
569
|
'blaze-widget-layout': BlazeWidgetLayout;
|
|
@@ -582,6 +595,7 @@ export interface WidgetsTagNameMap {
|
|
|
582
595
|
interface WidgetsTagNameOptionsMap {
|
|
583
596
|
'blaze-sdk': {};
|
|
584
597
|
'blaze-widget-ad': {};
|
|
598
|
+
'blaze-widget-embedded-story': {};
|
|
585
599
|
'blaze-widget-modal': {};
|
|
586
600
|
'blaze-widget-item': {};
|
|
587
601
|
'blaze-widget-layout': {};
|
|
@@ -636,7 +650,7 @@ export declare const prevSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"ht
|
|
|
636
650
|
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>";
|
|
637
651
|
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>";
|
|
638
652
|
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>";
|
|
639
|
-
export declare const fullScreenSvg = "data:image/svg+xml;
|
|
653
|
+
export declare const fullScreenSvg = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzM3M18xNzMiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjAiIHk9IjAiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0iI0Q5RDlEOSIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfMzczXzE3MykiPgo8cGF0aCBkPSJNNSAyMUM0LjQ1IDIxIDMuOTc5MTcgMjAuODA0MiAzLjU4NzUgMjAuNDEyNUMzLjE5NTgzIDIwLjAyMDggMyAxOS41NSAzIDE5VjE1SDVWMTlIOVYyMUg1Wk0xNSAyMVYxOUgxOVYxNUgyMVYxOUMyMSAxOS41NSAyMC44MDQyIDIwLjAyMDggMjAuNDEyNSAyMC40MTI1QzIwLjAyMDggMjAuODA0MiAxOS41NSAyMSAxOSAyMUgxNVpNMyA5VjVDMyA0LjQ1IDMuMTk1ODMgMy45NzkxNyAzLjU4NzUgMy41ODc1QzMuOTc5MTcgMy4xOTU4MyA0LjQ1IDMgNSAzSDlWNUg1VjlIM1pNMTkgOVY1SDE1VjNIMTlDMTkuNTUgMyAyMC4wMjA4IDMuMTk1ODMgMjAuNDEyNSAzLjU4NzVDMjAuODA0MiAzLjk3OTE3IDIxIDQuNDUgMjEgNVY5SDE5WiIgZmlsbD0iI0YwRjBGMCIvPgo8L2c+Cjwvc3ZnPgo=";
|
|
640
654
|
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>";
|
|
641
655
|
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>";
|
|
642
656
|
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>";
|
|
@@ -659,6 +673,7 @@ export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiI
|
|
|
659
673
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
660
674
|
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
|
|
661
675
|
export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
|
|
676
|
+
export declare const fullscreenIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzkxNTFfNTE4OSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij4KPHJlY3Qgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSIjRDlEOUQ5Ii8+CjwvbWFzaz4KPGcgbWFzaz0idXJsKCNtYXNrMF85MTUxXzUxODkpIj4KPHBhdGggZD0iTTUgMjFDNC40NSAyMSAzLjk3OTE3IDIwLjgwNDIgMy41ODc1IDIwLjQxMjVDMy4xOTU4MyAyMC4wMjA4IDMgMTkuNTUgMyAxOVYxNUg1VjE5SDlWMjFINVpNMTUgMjFWMTlIMTlWMTVIMjFWMTlDMjEgMTkuNTUgMjAuODA0MiAyMC4wMjA4IDIwLjQxMjUgMjAuNDEyNUMyMC4wMjA4IDIwLjgwNDIgMTkuNTUgMjEgMTkgMjFIMTVaTTMgOVY1QzMgNC40NSAzLjE5NTgzIDMuOTc5MTcgMy41ODc1IDMuNTg3NUMzLjk3OTE3IDMuMTk1ODMgNC40NSAzIDUgM0g5VjVINVY5SDNaTTE5IDlWNUgxNVYzSDE5QzE5LjU1IDMgMjAuMDIwOCAzLjE5NTgzIDIwLjQxMjUgMy41ODc1QzIwLjgwNDIgMy45NzkxNyAyMSA0LjQ1IDIxIDVWOUgxOVoiIGZpbGw9IiNGMEYwRjAiLz4KPC9nPgo8L3N2Zz4K";
|
|
662
677
|
|
|
663
678
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
664
679
|
type CustomNativeArgs = {
|
|
@@ -668,7 +683,6 @@ export interface CustomNativeAdHandler {
|
|
|
668
683
|
provideAdExtraParams?: (args: CustomNativeArgs) => CustomNativeTargeting;
|
|
669
684
|
}
|
|
670
685
|
|
|
671
|
-
export type EnvironmentType = 'prod' | 'uat';
|
|
672
686
|
export interface IBlazeSDKOptions {
|
|
673
687
|
apiKey: string;
|
|
674
688
|
environment?: EnvironmentType;
|
|
@@ -680,8 +694,26 @@ export interface IBlazeSDKOptions {
|
|
|
680
694
|
geoLocation?: string;
|
|
681
695
|
staticContent?: boolean;
|
|
682
696
|
runInShadowDom?: boolean;
|
|
697
|
+
playerStyleCustomization?: Partial<StoryPlayerStyle>;
|
|
683
698
|
shouldModifyUrlWithStoryId?: boolean;
|
|
684
699
|
}
|
|
700
|
+
export interface ISmoothOpenCloseModal {
|
|
701
|
+
storyId?: string;
|
|
702
|
+
pageIndex: number;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
export interface IButtonPlayerNavigationConfig {
|
|
706
|
+
iconUrl: string;
|
|
707
|
+
position: 'left' | 'right';
|
|
708
|
+
margin: string;
|
|
709
|
+
buttonType: StoryDirectionType;
|
|
710
|
+
clickHandler: EventHandler<MouseEvent>;
|
|
711
|
+
}
|
|
712
|
+
export interface IButtonPlayerConfig {
|
|
713
|
+
iconUrl: string;
|
|
714
|
+
eventType: string;
|
|
715
|
+
clickHandler: () => void;
|
|
716
|
+
}
|
|
685
717
|
|
|
686
718
|
export interface IDatabase {
|
|
687
719
|
init: (options: IDatabaseInitOptions) => Promise<void>;
|
|
@@ -727,10 +759,30 @@ export interface IDrawable {
|
|
|
727
759
|
render: () => void;
|
|
728
760
|
}
|
|
729
761
|
|
|
762
|
+
export interface IIcons {
|
|
763
|
+
play: string;
|
|
764
|
+
pause: string;
|
|
765
|
+
mute: string;
|
|
766
|
+
unmute: string;
|
|
767
|
+
share: string;
|
|
768
|
+
fullscreen: string;
|
|
769
|
+
exitMobileTablet: string;
|
|
770
|
+
exitDesktop: string;
|
|
771
|
+
navigation: {
|
|
772
|
+
nextPage: string;
|
|
773
|
+
prevPage: string;
|
|
774
|
+
nextStory: string;
|
|
775
|
+
prevStory: string;
|
|
776
|
+
};
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export * from './ad-handler.interface';
|
|
730
780
|
export * from './blaze-sdk.interface';
|
|
781
|
+
export * from './button.interface';
|
|
731
782
|
export * from './database.interface';
|
|
732
783
|
export * from './device.interface';
|
|
733
784
|
export * from './drawable.interface';
|
|
785
|
+
export * from './icons.interface';
|
|
734
786
|
export * from './response.interface';
|
|
735
787
|
export * from './service.interface';
|
|
736
788
|
export * from './widget-label-builder.interface';
|
|
@@ -779,7 +831,7 @@ export interface IWidgetViewOptionsWithStoryIds extends IWidgetViewOptionsBase {
|
|
|
779
831
|
}
|
|
780
832
|
export type IWidgetViewOptions = IWidgetViewOptionsWithLabels | IWidgetViewOptionsWithStoryIds;
|
|
781
833
|
|
|
782
|
-
export interface IWidgetView {
|
|
834
|
+
export interface IWidgetView extends HTMLElement {
|
|
783
835
|
setTheme: (theme: IWidgetTheme) => void;
|
|
784
836
|
getTheme: () => IWidgetTheme;
|
|
785
837
|
setLabels: (labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions) => void;
|
|
@@ -790,6 +842,8 @@ export interface IWidgetView {
|
|
|
790
842
|
setMaxItemsDisplaySize: (size: number) => void;
|
|
791
843
|
setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
|
|
792
844
|
updateOverrideStyles: (perItemStyleOverrides: PerItemStyleOverrides) => void;
|
|
845
|
+
setId: (id: string) => void;
|
|
846
|
+
setMaxItemsSize: (size: number) => void;
|
|
793
847
|
}
|
|
794
848
|
export interface ISetWidgetOptions {
|
|
795
849
|
shouldReloadData?: boolean;
|
|
@@ -936,6 +990,7 @@ export declare class StoryEvent {
|
|
|
936
990
|
'is_last_page': boolean;
|
|
937
991
|
'audio_state': string;
|
|
938
992
|
'playback_action_method': 'Press' | 'Release' | 'Click';
|
|
993
|
+
'player_type': 'Embedded' | 'Full Screen';
|
|
939
994
|
}
|
|
940
995
|
export declare class WidgetEvent {
|
|
941
996
|
'page_view_id': string;
|
|
@@ -1056,6 +1111,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1056
1111
|
private _runInShadowDom;
|
|
1057
1112
|
private _shouldModifyUrlWithStoryId;
|
|
1058
1113
|
private _googleCustomNativeAdHandler?;
|
|
1114
|
+
private _playerStyleCustomization?;
|
|
1059
1115
|
protected constructor();
|
|
1060
1116
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1061
1117
|
private _urls;
|
|
@@ -1078,6 +1134,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1078
1134
|
get previewUrl(): string;
|
|
1079
1135
|
get previewMomentsUrl(): string;
|
|
1080
1136
|
get runInShadowDom(): boolean;
|
|
1137
|
+
get playerStyleCustomization(): Partial<StoryPlayerStyle>;
|
|
1138
|
+
set playerStyleCustomization(value: Partial<StoryPlayerStyle>);
|
|
1081
1139
|
get shouldModifyUrlWithStoryId(): boolean;
|
|
1082
1140
|
get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
|
|
1083
1141
|
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
@@ -1382,15 +1440,25 @@ export interface StoryPlayerStyle {
|
|
|
1382
1440
|
titleVisible: boolean;
|
|
1383
1441
|
titleFont: string;
|
|
1384
1442
|
titleFontSize: string;
|
|
1443
|
+
titleFontSizeEmbedded: string;
|
|
1385
1444
|
titleColor: string;
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
chipFontSize: string;
|
|
1445
|
+
publishedDateVisible: boolean;
|
|
1446
|
+
publishedDateFont: string;
|
|
1447
|
+
publishedDateFontSize: string;
|
|
1448
|
+
publishedDateFontSizeEmbedded: string;
|
|
1449
|
+
publishedDateColor: string;
|
|
1450
|
+
statusLiveStyle: IndicatorStyle;
|
|
1393
1451
|
ctaButton: CtaButtonStyle;
|
|
1452
|
+
iconsPosition: IconsPositionType;
|
|
1453
|
+
iconsButton: IconPropertiesType[];
|
|
1454
|
+
iconsButtonSize: string;
|
|
1455
|
+
iconsButtonEmbeddedSize: string;
|
|
1456
|
+
iconsButtonNavigation: IconPropertiesType[];
|
|
1457
|
+
iconsButtonPadding: string;
|
|
1458
|
+
iconsButtonOrder: IconButtonType[];
|
|
1459
|
+
contentOrder: ContentOrderType[];
|
|
1460
|
+
icons: IIcons;
|
|
1461
|
+
localeDirection: LocaleDirectionType;
|
|
1394
1462
|
}
|
|
1395
1463
|
export interface CtaButtonStyle {
|
|
1396
1464
|
borderRadius: string;
|
|
@@ -1401,8 +1469,8 @@ export interface CtaButtonStyle {
|
|
|
1401
1469
|
color: string;
|
|
1402
1470
|
isVisible: boolean;
|
|
1403
1471
|
isAnimated: boolean;
|
|
1404
|
-
fontWeight:
|
|
1405
|
-
textTransform:
|
|
1472
|
+
fontWeight: FontWeightType;
|
|
1473
|
+
textTransform: TextTransformType;
|
|
1406
1474
|
padding: string;
|
|
1407
1475
|
width: string;
|
|
1408
1476
|
height: string;
|
|
@@ -1429,6 +1497,8 @@ export declare const Colors: {
|
|
|
1429
1497
|
readonly LiveChip: "#FF364E";
|
|
1430
1498
|
readonly ReadGray: "#9C9C9C";
|
|
1431
1499
|
readonly TimeColor: "#B6B7B8";
|
|
1500
|
+
readonly White: "#FFFFFF";
|
|
1501
|
+
readonly Black: "#000000";
|
|
1432
1502
|
};
|
|
1433
1503
|
|
|
1434
1504
|
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';
|
|
@@ -1779,7 +1849,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1779
1849
|
|
|
1780
1850
|
export type ButtonType = 'ALL' | 'PAGE_NAVIGATION_ONLY' | 'STORY_NAVIGATION_ONLY';
|
|
1781
1851
|
export type ButtonState = 'ACTIVE' | 'DISABLED';
|
|
1782
|
-
export type NavigationButtonType = 'PREV_STORY' | 'NEXT_STORY' | 'PREV_PAGE' | 'NEXT_PAGE';
|
|
1783
1852
|
export declare enum ButtonNavigation {
|
|
1784
1853
|
PREV_STORY = 0,
|
|
1785
1854
|
NEXT_STORY = 1,
|
|
@@ -1790,25 +1859,45 @@ export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
|
1790
1859
|
export declare const positionMap: {
|
|
1791
1860
|
[key: string]: string;
|
|
1792
1861
|
};
|
|
1862
|
+
export type IconButtonType = "MUTE_UNMUTE" | "PLAY_PAUSE" | "SHARE" | "FULLSCREEN" | "EXIT_PLAYER";
|
|
1863
|
+
export type IconPropertiesType = {
|
|
1864
|
+
value: IconButtonType | StoryDirectionType;
|
|
1865
|
+
embeddedSize?: string;
|
|
1866
|
+
isEmbeddedVisible?: boolean;
|
|
1867
|
+
size?: string;
|
|
1868
|
+
isVisible?: boolean;
|
|
1869
|
+
color?: string;
|
|
1870
|
+
backgroundColor?: string;
|
|
1871
|
+
borderRadius?: string;
|
|
1872
|
+
padding?: string;
|
|
1873
|
+
};
|
|
1793
1874
|
|
|
1794
1875
|
export type ClientPlatform = 'Web';
|
|
1795
1876
|
|
|
1877
|
+
export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
1878
|
+
export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
|
|
1879
|
+
|
|
1796
1880
|
export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
|
|
1797
1881
|
|
|
1798
1882
|
export type ComponentsElementType = 'blaze-alert' | 'blaze-toast' | 'blaze-chip' | 'blaze-image';
|
|
1799
1883
|
export type WidgetElementType = 'blaze-sdk';
|
|
1800
1884
|
export type ElementType = WidgetElementType | ComponentsElementType;
|
|
1801
1885
|
|
|
1886
|
+
export type EnvironmentType = 'prod' | 'uat';
|
|
1887
|
+
|
|
1802
1888
|
export type FetchPriorityType = 'low' | 'high' | 'auto';
|
|
1803
1889
|
|
|
1804
1890
|
export * from './attribute-parser';
|
|
1805
1891
|
export * from './button.type';
|
|
1806
1892
|
export * from './client-platform.type';
|
|
1893
|
+
export * from './css.type';
|
|
1807
1894
|
export * from './direction.type';
|
|
1808
1895
|
export * from './element.type';
|
|
1896
|
+
export * from './environment.type';
|
|
1809
1897
|
export * from './fetch-priority.type';
|
|
1810
1898
|
export * from './item.type';
|
|
1811
1899
|
export * from './label.type';
|
|
1900
|
+
export * from './locale.type';
|
|
1812
1901
|
export * from './order.type';
|
|
1813
1902
|
export * from './play.type';
|
|
1814
1903
|
export * from './position.type';
|
|
@@ -1826,7 +1915,10 @@ export type PerItemStyleOverrides = Record<EntitiesType, Array<{
|
|
|
1826
1915
|
|
|
1827
1916
|
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1828
1917
|
|
|
1918
|
+
export type LocaleDirectionType = 'LTR' | 'RTL';
|
|
1919
|
+
|
|
1829
1920
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
1921
|
+
export type ContentOrderType = 'LIVE_CHIP' | 'STORY_TITLE' | 'PUBLISHED_DATE';
|
|
1830
1922
|
|
|
1831
1923
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1832
1924
|
export type PlayType = typeof PlayTypeArray[number];
|
|
@@ -1841,6 +1933,7 @@ export interface PositionOffset {
|
|
|
1841
1933
|
bottom: string;
|
|
1842
1934
|
}
|
|
1843
1935
|
export type PartialPositionOffset = Partial<PositionOffset>;
|
|
1936
|
+
export type IconsPositionType = 'HORIZONTAL' | 'VERTICAL';
|
|
1844
1937
|
|
|
1845
1938
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1846
1939
|
|
|
@@ -1882,7 +1975,8 @@ export declare function pixelsToNumber(pxString: string): number;
|
|
|
1882
1975
|
export declare function convertCssUnitToNumber(cssValue: string | number): number;
|
|
1883
1976
|
export declare function isObject(item: any): boolean;
|
|
1884
1977
|
export declare function mergeDeep(target: any, ...sources: any[]): any;
|
|
1885
|
-
export declare function
|
|
1978
|
+
export declare function mergeArrays(targetArray: any[], sourceArray: any[]): any[];
|
|
1979
|
+
export declare function cloneDeep<T>(source: T): T;
|
|
1886
1980
|
export declare function formatDate(date: Date): string;
|
|
1887
1981
|
export declare function formatUTCDate(date: Date): string;
|
|
1888
1982
|
export declare function calculatePercentage(value: number, element: BlazeDiv): string;
|
|
@@ -1897,6 +1991,12 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
1897
1991
|
export declare function flattenObject<T extends Record<string, any>>(obj: T): Record<string, any>;
|
|
1898
1992
|
export declare function mergeStyles(element: HTMLElement, styles: Partial<CSSStyleDeclaration>): object;
|
|
1899
1993
|
export declare function getMaxValue(currentMax: string, newValue: string): string;
|
|
1994
|
+
export declare function isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
1995
|
+
export declare function applyPlayerStyleChanges(defaultPlayerStyle: StoryPlayerStyle, mergedPlayerStyle: StoryPlayerStyle, themePlayerStyle: StoryPlayerStyle, playerStyleChanges: any): void;
|
|
1996
|
+
export declare function getChangedProperties(source: any, target: any, level: string, playerStyleChanges: any, parentKeys?: string): void;
|
|
1997
|
+
export declare function removeDuplicates(source: string[], checkAgainst: string[]): string[];
|
|
1998
|
+
export declare function updateStyle(styleToUpdate: any, path: string[], newValue: any): void;
|
|
1999
|
+
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
1900
2000
|
|
|
1901
2001
|
export * from './chip.utils';
|
|
1902
2002
|
export * from './common.utils';
|
|
@@ -1931,6 +2031,7 @@ export declare class Stopwatch {
|
|
|
1931
2031
|
}
|
|
1932
2032
|
|
|
1933
2033
|
export * from './widget-ad';
|
|
2034
|
+
export * from './widget-embedded-story';
|
|
1934
2035
|
export * from './widget-interaction';
|
|
1935
2036
|
export * from './widget-item';
|
|
1936
2037
|
export * from './widget-label';
|
|
@@ -1953,6 +2054,7 @@ export * from './widget-story-preview';
|
|
|
1953
2054
|
export * from './widget-story-video';
|
|
1954
2055
|
|
|
1955
2056
|
export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
2057
|
+
private storyParent;
|
|
1956
2058
|
data: IPage | undefined;
|
|
1957
2059
|
private isCurrectlyDisplay;
|
|
1958
2060
|
private adContainer;
|
|
@@ -1982,6 +2084,55 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
|
1982
2084
|
private initStyles;
|
|
1983
2085
|
}
|
|
1984
2086
|
|
|
2087
|
+
export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWidgetView, Observable {
|
|
2088
|
+
preset?: IWidgetTheme;
|
|
2089
|
+
players: BlazeWidgetStory[];
|
|
2090
|
+
intersectionObserver: IntersectionObserver;
|
|
2091
|
+
isIntersecting: boolean;
|
|
2092
|
+
currentStoryPlayerIndex: number;
|
|
2093
|
+
stories: IStory[];
|
|
2094
|
+
modal?: BlazeWidgetStoryModal;
|
|
2095
|
+
skeleton?: BlazeWidgetItemSkeleton;
|
|
2096
|
+
shouldReloadData: boolean;
|
|
2097
|
+
private get theme();
|
|
2098
|
+
constructor();
|
|
2099
|
+
static get observedAttributes(): string[];
|
|
2100
|
+
connectedCallback(): void;
|
|
2101
|
+
disconnectedCallback(): void;
|
|
2102
|
+
attributeChangedCallback(name: string, oldValue: string, _newValue: string): void;
|
|
2103
|
+
getTheme(): IWidgetTheme;
|
|
2104
|
+
setTheme(theme: IWidgetTheme | string): void;
|
|
2105
|
+
setLabels(labels: labelType, options?: ISetWidgetOptions): void;
|
|
2106
|
+
setLabelsPriority(labelsPriority: string, options?: ISetWidgetOptions): void;
|
|
2107
|
+
setContentIds(storyIds: string[], options?: ISetWidgetOptions): void;
|
|
2108
|
+
reload(): void;
|
|
2109
|
+
private reloadLogic;
|
|
2110
|
+
private setReloadData;
|
|
2111
|
+
updateWidgetUI(): void;
|
|
2112
|
+
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2113
|
+
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2114
|
+
updateOverrideStyles(perItemStyleOverrides: PerItemStyleOverrides): void;
|
|
2115
|
+
setId(id: string): void;
|
|
2116
|
+
setMaxItemsSize(size: number): void;
|
|
2117
|
+
get currentStoryPlayer(): BlazeWidgetStory | undefined;
|
|
2118
|
+
private loadStories;
|
|
2119
|
+
setCurrentStoryPlayer(storyIndex: number, pageIndex?: number): void;
|
|
2120
|
+
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
2121
|
+
nextStory(): void;
|
|
2122
|
+
prevStory(): void;
|
|
2123
|
+
removeCurrentStoryPlayer(): void;
|
|
2124
|
+
createModal(): BlazeWidgetStoryModal;
|
|
2125
|
+
private handleModalClose;
|
|
2126
|
+
private updatePlayerStyle;
|
|
2127
|
+
openFullscreen(): void;
|
|
2128
|
+
onFullScreenClickHandler(event: Event): void;
|
|
2129
|
+
pauseCurrentStoryPage(): void;
|
|
2130
|
+
playCurrentStoryPage(): void;
|
|
2131
|
+
onCustomNativeAdEnded(): void;
|
|
2132
|
+
showSkeleton(): void;
|
|
2133
|
+
hideSkeleton(): void;
|
|
2134
|
+
}
|
|
2135
|
+
|
|
1985
2136
|
export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
1986
2137
|
private iframe;
|
|
1987
2138
|
loadInteraction(interactionData: Interaction): void;
|
|
@@ -2115,6 +2266,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2115
2266
|
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2116
2267
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2117
2268
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
2269
|
+
private updatePlayerStyle;
|
|
2118
2270
|
createModal(): void;
|
|
2119
2271
|
createMomentsModal(): void;
|
|
2120
2272
|
static get observedAttributes(): string[];
|
|
@@ -2158,7 +2310,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2158
2310
|
};
|
|
2159
2311
|
maxSize(): number;
|
|
2160
2312
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
2161
|
-
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
2162
2313
|
updateWidgetsData(): void;
|
|
2163
2314
|
reorderWidgets(): void;
|
|
2164
2315
|
connectWidgets(): void;
|
|
@@ -2355,7 +2506,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
|
|
|
2355
2506
|
}
|
|
2356
2507
|
|
|
2357
2508
|
export declare class BlazeWidgetSDK extends BaseWidget {
|
|
2358
|
-
modalStory
|
|
2509
|
+
modalStory?: BlazeWidgetStoryModal;
|
|
2359
2510
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2360
2511
|
static get observedAttributes(): string[];
|
|
2361
2512
|
constructor();
|
|
@@ -2363,6 +2514,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
|
|
|
2363
2514
|
disconnectedCallback(): void;
|
|
2364
2515
|
onResizeEventDelay(): void;
|
|
2365
2516
|
onResize(): void;
|
|
2517
|
+
setPlayerStyleCustomization(playerStyleCustomization: Partial<StoryPlayerStyle>): void;
|
|
2366
2518
|
handleStoryLoad(playReference: 'Share' | 'SingleStory', storyIds: string): Promise<void>;
|
|
2367
2519
|
handleStaticContentLoad(playReference: 'Share' | 'SingleStory'): Promise<void>;
|
|
2368
2520
|
enrichContent(content: IStory[]): Promise<IStory[]>;
|
|
@@ -2461,10 +2613,11 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2461
2613
|
exitButtonElement: BlazeButton;
|
|
2462
2614
|
exitButtonWrapperElement: BlazeDiv;
|
|
2463
2615
|
onOpen?: () => void;
|
|
2464
|
-
onClose?: () => void;
|
|
2616
|
+
onClose?: (options?: ISmoothOpenCloseModal) => void;
|
|
2465
2617
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2466
2618
|
hammer: HammerManager | null;
|
|
2467
2619
|
isMultiTouch: boolean;
|
|
2620
|
+
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2468
2621
|
get refElement(): this;
|
|
2469
2622
|
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2470
2623
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
@@ -2473,7 +2626,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2473
2626
|
seek(id: string): void;
|
|
2474
2627
|
onKeyDown(ev: KeyboardEvent): void;
|
|
2475
2628
|
close(): void;
|
|
2476
|
-
open(): void;
|
|
2629
|
+
open(options?: ISmoothOpenCloseModal): void;
|
|
2477
2630
|
play(): void;
|
|
2478
2631
|
connectedCallback(): void;
|
|
2479
2632
|
disconnectedCallback(): void;
|
|
@@ -2485,6 +2638,8 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2485
2638
|
private cleanupHammer;
|
|
2486
2639
|
render(): void;
|
|
2487
2640
|
playToggleCurrentStory(): void;
|
|
2641
|
+
private onResize;
|
|
2642
|
+
private onResizeEventDelay;
|
|
2488
2643
|
}
|
|
2489
2644
|
|
|
2490
2645
|
export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
@@ -2526,7 +2681,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2526
2681
|
seek(storyId: string): void;
|
|
2527
2682
|
injectStoryToDomBasedOnUserNavigation(direction: StoryDirectionType): void;
|
|
2528
2683
|
resetPosition(): void;
|
|
2529
|
-
play(): void;
|
|
2684
|
+
play(options?: ISmoothOpenCloseModal): void;
|
|
2530
2685
|
clean(): void;
|
|
2531
2686
|
onCompleteAnimation(story: BlazeWidgetStory, mode: StoryDirectionType): void;
|
|
2532
2687
|
animateStory(direction: StoryDirectionType): AnimeTimelineInstance | undefined;
|
|
@@ -2554,8 +2709,8 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2554
2709
|
playbackParts: HTMLElement[];
|
|
2555
2710
|
playToggleBtn: HTMLElement;
|
|
2556
2711
|
muteToggleBtn: HTMLElement;
|
|
2557
|
-
storyTitle:
|
|
2558
|
-
storyPublishedDate:
|
|
2712
|
+
storyTitle: BlazeDiv;
|
|
2713
|
+
storyPublishedDate: BlazeDiv;
|
|
2559
2714
|
storyThumbnail: HTMLElement;
|
|
2560
2715
|
storyChip: HTMLElement;
|
|
2561
2716
|
ctaButton: HTMLElement;
|
|
@@ -2670,6 +2825,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2670
2825
|
|
|
2671
2826
|
export declare class BlazeWidgetStory extends HTMLElement {
|
|
2672
2827
|
playerStyle: StoryPlayerStyle;
|
|
2828
|
+
mode: 'Full Screen' | 'Embedded';
|
|
2673
2829
|
pages: BlazeWidgetStoryBase[];
|
|
2674
2830
|
data: IStory;
|
|
2675
2831
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
@@ -2687,15 +2843,18 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2687
2843
|
buttonsContainer: BlazeDiv;
|
|
2688
2844
|
playbackParts: HTMLElement[];
|
|
2689
2845
|
playButtonElement?: BlazeButton;
|
|
2690
|
-
shareButtonElement
|
|
2691
|
-
muteButtonElement
|
|
2692
|
-
exitMobileTabletButtonElement
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
storyLiveChip: HTMLElement;
|
|
2696
|
-
ctaButtonElement: BlazeCtaButton;
|
|
2846
|
+
shareButtonElement?: BlazeButton;
|
|
2847
|
+
muteButtonElement?: BlazeButton;
|
|
2848
|
+
exitMobileTabletButtonElement?: BlazeButton;
|
|
2849
|
+
fullScreenElement?: BlazeButton;
|
|
2850
|
+
topContainer: BlazeDiv;
|
|
2697
2851
|
bottomContainer: BlazeDiv;
|
|
2698
|
-
|
|
2852
|
+
storyContentWrapper: BlazeDiv;
|
|
2853
|
+
storyTitle: BlazeDiv;
|
|
2854
|
+
storyPublishedDate: BlazeDiv;
|
|
2855
|
+
storyLiveChip: BlazeDiv;
|
|
2856
|
+
bottomButtonsWrapper: BlazeDiv;
|
|
2857
|
+
ctaButtonElement: BlazeCtaButton;
|
|
2699
2858
|
prevPageButton?: BlazeButton;
|
|
2700
2859
|
nextPageButton?: BlazeButton;
|
|
2701
2860
|
prevStoryButton?: BlazeButton;
|
|
@@ -2704,7 +2863,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2704
2863
|
widgetParent: BlazeWidgetItem;
|
|
2705
2864
|
playCallback: any;
|
|
2706
2865
|
sessionId: string;
|
|
2707
|
-
startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2866
|
+
startTrigger: 'Embedded Player in Viewport' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2708
2867
|
exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2709
2868
|
navigationType: 'Automatic' | 'Manual' | undefined;
|
|
2710
2869
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
@@ -2715,19 +2874,24 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2715
2874
|
isNavigationPending: boolean;
|
|
2716
2875
|
navigationTimeout: NodeJS.Timeout | null;
|
|
2717
2876
|
lastPageIndexToResume: number;
|
|
2718
|
-
elementsToHideOnWebAds: HTMLElement[];
|
|
2877
|
+
elementsToHideOnWebAds: (HTMLElement | undefined)[];
|
|
2719
2878
|
elementsToHideOnImaAds: (HTMLElement | undefined)[];
|
|
2720
2879
|
muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
|
|
2721
2880
|
longPressHandler?: LongPressHandler;
|
|
2722
2881
|
originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
2723
2882
|
restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
|
|
2724
|
-
constructor(playerStyle: StoryPlayerStyle);
|
|
2883
|
+
constructor(playerStyle: StoryPlayerStyle, mode: 'Full Screen' | 'Embedded');
|
|
2884
|
+
private isButtonVisible;
|
|
2885
|
+
private createPlayerButtonsAndAppendToButtonsContainer;
|
|
2886
|
+
private createNavigationButtonsAndAppendToWidgetStoryContainer;
|
|
2887
|
+
private applyIconStyle;
|
|
2725
2888
|
onShareClick(): Promise<void>;
|
|
2726
2889
|
updateCtaButtonLayout(): void;
|
|
2727
2890
|
updateChip(): void;
|
|
2728
2891
|
setTheme(storyPlayerStyle: StoryPlayerStyle): void;
|
|
2729
2892
|
setButtonNavigationAsDisabled(buttonType: ButtonType): void;
|
|
2730
2893
|
adjustAdView(): void;
|
|
2894
|
+
setPlayerButtonPosition(state: 'AD' | 'NO_AD'): void;
|
|
2731
2895
|
updatePlayerButtonIcons(): void;
|
|
2732
2896
|
onCtaClick(event: Event): boolean;
|
|
2733
2897
|
playToggle(): void;
|
|
@@ -2777,8 +2941,15 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2777
2941
|
updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
|
|
2778
2942
|
isNavigationButtonActive(navigationType: ButtonNavigation): boolean;
|
|
2779
2943
|
updateNavButton(state: ButtonState, navButtonElement: BlazeButton): void;
|
|
2780
|
-
|
|
2944
|
+
updatePlayerButtonsStyleAttributes(): void;
|
|
2945
|
+
setPlayerButtonPaddings(button: BlazeButton): void;
|
|
2946
|
+
setPlayerButtonColors(button: BlazeButton, name: IconButtonType): void;
|
|
2947
|
+
setPlayerButtonSize(buttonElement: HTMLElement, iconName: string): void;
|
|
2948
|
+
updatePlayerButtonsOrder(): void;
|
|
2949
|
+
updatePlayerContentOrder(): void;
|
|
2950
|
+
updatePlayerLocaleDirection(): void;
|
|
2781
2951
|
displayExitButtonOnMobileTablet(): void;
|
|
2782
2952
|
render(): void;
|
|
2953
|
+
onExpandClick(): void;
|
|
2783
2954
|
}
|
|
2784
2955
|
|