@wscsports/blaze-web-sdk 0.1.96 → 0.1.98
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 +63 -10
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ declare const _default: {
|
|
|
16
16
|
Initialize: typeof Initialize;
|
|
17
17
|
WidgetGridView: typeof WidgetGridView;
|
|
18
18
|
WidgetRowView: typeof WidgetRowView;
|
|
19
|
+
WidgetEmbeddedStory: typeof WidgetEmbeddedStory;
|
|
19
20
|
Theme: typeof Theme;
|
|
20
21
|
addDelegateListener: typeof addDelegateListener;
|
|
21
22
|
setDoNotTrack: typeof setDoNotTrack;
|
|
@@ -62,6 +63,7 @@ export declare abstract class BaseWidget extends HTMLElement {
|
|
|
62
63
|
constructor();
|
|
63
64
|
getAttribute<T = boolean | string | number>(qualifiedName: string): T;
|
|
64
65
|
setStyle<T extends keyof CSSStyleDeclaration | string>(styles: Record<T, string | null>): void;
|
|
66
|
+
setAttributes(attributes: Record<string, string>): void;
|
|
65
67
|
removeElement(): void;
|
|
66
68
|
}
|
|
67
69
|
|
|
@@ -175,7 +177,7 @@ export interface IDrawerOptions {
|
|
|
175
177
|
height?: string;
|
|
176
178
|
width?: string;
|
|
177
179
|
}
|
|
178
|
-
type DrawerAttributes = 'open';
|
|
180
|
+
type DrawerAttributes = 'open' | 'background-color' | 'border-color' | 'border-radius';
|
|
179
181
|
export declare class BlazeDrawer extends BaseWidget {
|
|
180
182
|
backdropContainer: BlazeDiv;
|
|
181
183
|
drawerContainer: BlazeDiv;
|
|
@@ -297,6 +299,7 @@ export declare class BlazeCtaButton extends BaseWidget {
|
|
|
297
299
|
disconnectedCallback(): void;
|
|
298
300
|
attributeChangedCallback(name: AttributeType, oldValue: string, newValue: string): void;
|
|
299
301
|
createButton(): void;
|
|
302
|
+
animateButton(): void;
|
|
300
303
|
setCtaText(value: string): void;
|
|
301
304
|
setWidth(value: string): void;
|
|
302
305
|
setMargin(value: string): void;
|
|
@@ -377,14 +380,26 @@ export declare const exposedFieldsByAction: ExposedFields;
|
|
|
377
380
|
|
|
378
381
|
export declare const TRANSPARENT = "transparent";
|
|
379
382
|
|
|
383
|
+
export declare const TABLET_PADDING_BOTTOM = "15px";
|
|
384
|
+
export declare const DESKTOP_PADDING_BOTTOM = "40px";
|
|
385
|
+
export declare const ASPECT_RATIO_16_9: number;
|
|
386
|
+
export declare const ASPECT_RATIO_9_16: number;
|
|
387
|
+
export declare const ASPECT_RATIO_4_3: number;
|
|
388
|
+
|
|
380
389
|
export * from './analytics.constants';
|
|
390
|
+
export * from './device.constants';
|
|
381
391
|
export * from './iso-country-codes.constants';
|
|
392
|
+
export * from './style.constants';
|
|
382
393
|
export * from './time.constants';
|
|
383
394
|
export * from './css.constants';
|
|
384
395
|
|
|
385
396
|
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"];
|
|
386
397
|
|
|
398
|
+
export declare const DEFAULT_CTA_HEIGHT = 40;
|
|
399
|
+
export declare const MIN_PADDING_BOTTOM = 10;
|
|
400
|
+
|
|
387
401
|
export declare const ONE_SECOND = 1000;
|
|
402
|
+
export declare const ONE_AND_HALF_SECOND = 1500;
|
|
388
403
|
export declare const FAIL_TO_LOAD_TIMEOUT_MS = 3000;
|
|
389
404
|
|
|
390
405
|
export declare class Database implements IDatabase {
|
|
@@ -576,6 +591,7 @@ export interface WidgetsTagNameMap {
|
|
|
576
591
|
'blaze-widget-moment-player': BlazeWidgetMomentPlayer;
|
|
577
592
|
'blaze-widget-moment-modal': BlazeWidgetMomentModal;
|
|
578
593
|
'blaze-widget-share-modal': BlazeWidgetShareModal;
|
|
594
|
+
'blaze-widget-cta-modal': BlazeWidgetCtaModal;
|
|
579
595
|
'blaze-widget-image': BlazeWidgetStoryImage;
|
|
580
596
|
'blaze-widget-video': BlazeWidgetStoryVideo;
|
|
581
597
|
'blaze-widget-moment-video': BlazeWidgetMomentVideo;
|
|
@@ -608,6 +624,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
608
624
|
'blaze-widget-moment-player': {};
|
|
609
625
|
'blaze-widget-moment-modal': {};
|
|
610
626
|
'blaze-widget-share-modal': {};
|
|
627
|
+
'blaze-widget-cta-modal': {};
|
|
611
628
|
'blaze-widget-image': {};
|
|
612
629
|
'blaze-widget-video': {};
|
|
613
630
|
'blaze-widget-moment-video': {};
|
|
@@ -673,6 +690,7 @@ export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiI
|
|
|
673
690
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
674
691
|
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40Yz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
|
678
696
|
type CustomNativeTargeting = Record<string, string | string[]>;
|
|
@@ -699,7 +717,7 @@ export interface IBlazeSDKOptions {
|
|
|
699
717
|
}
|
|
700
718
|
export interface ISmoothOpenCloseModal {
|
|
701
719
|
storyId?: string;
|
|
702
|
-
pageIndex
|
|
720
|
+
pageIndex: number;
|
|
703
721
|
}
|
|
704
722
|
|
|
705
723
|
export interface IButtonPlayerNavigationConfig {
|
|
@@ -984,6 +1002,7 @@ export declare class StoryEvent {
|
|
|
984
1002
|
'content_duration_viewed': number;
|
|
985
1003
|
'story_page_duration': number;
|
|
986
1004
|
'story_page_duration_viewed_percent': number;
|
|
1005
|
+
'gesture_type': string;
|
|
987
1006
|
'labels_expression': string;
|
|
988
1007
|
'story_session_id': string;
|
|
989
1008
|
'story_page_index': number;
|
|
@@ -1469,6 +1488,7 @@ export interface CtaButtonStyle {
|
|
|
1469
1488
|
color: string;
|
|
1470
1489
|
isVisible: boolean;
|
|
1471
1490
|
isAnimated: boolean;
|
|
1491
|
+
isDisplayCtaModal: boolean;
|
|
1472
1492
|
fontWeight: FontWeightType;
|
|
1473
1493
|
textTransform: TextTransformType;
|
|
1474
1494
|
padding: string;
|
|
@@ -2031,6 +2051,7 @@ export declare class Stopwatch {
|
|
|
2031
2051
|
}
|
|
2032
2052
|
|
|
2033
2053
|
export * from './widget-ad';
|
|
2054
|
+
export * from './widget-cta-modal';
|
|
2034
2055
|
export * from './widget-embedded-story';
|
|
2035
2056
|
export * from './widget-interaction';
|
|
2036
2057
|
export * from './widget-item';
|
|
@@ -2084,6 +2105,29 @@ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
|
2084
2105
|
private initStyles;
|
|
2085
2106
|
}
|
|
2086
2107
|
|
|
2108
|
+
export declare class BlazeWidgetCtaModal extends BaseWidget {
|
|
2109
|
+
ctaContainer: BlazeDiv;
|
|
2110
|
+
ctaDrawer: BlazeDrawer;
|
|
2111
|
+
ctaUrl: BlazeTypography;
|
|
2112
|
+
textContainer: BlazeDiv;
|
|
2113
|
+
labelText: BlazeTypography;
|
|
2114
|
+
iconShare: BlazeButton;
|
|
2115
|
+
iconExternalLink: BlazeButton;
|
|
2116
|
+
progressBar: BlazeDiv;
|
|
2117
|
+
fullscreenOverlay: BlazeDiv;
|
|
2118
|
+
isOpen: boolean;
|
|
2119
|
+
constructor();
|
|
2120
|
+
static observedAttributes: string[];
|
|
2121
|
+
connectedCallback(): Promise<void>;
|
|
2122
|
+
disconnectedCallback(): void;
|
|
2123
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2124
|
+
animateProgressBar(open: boolean): void;
|
|
2125
|
+
onDrawerClose(): void;
|
|
2126
|
+
open(): void;
|
|
2127
|
+
close(): void;
|
|
2128
|
+
render(): void;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2087
2131
|
export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWidgetView, Observable {
|
|
2088
2132
|
preset?: IWidgetTheme;
|
|
2089
2133
|
players: BlazeWidgetStory[];
|
|
@@ -2094,6 +2138,8 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
|
|
|
2094
2138
|
modal?: BlazeWidgetStoryModal;
|
|
2095
2139
|
skeleton?: BlazeWidgetItemSkeleton;
|
|
2096
2140
|
shouldReloadData: boolean;
|
|
2141
|
+
bindedOnStoryPlayerDidAppear: (e: Event) => void;
|
|
2142
|
+
bindedOnStoryPlayerDismissed: (e: Event) => void;
|
|
2097
2143
|
private get theme();
|
|
2098
2144
|
constructor();
|
|
2099
2145
|
static get observedAttributes(): string[];
|
|
@@ -2131,6 +2177,9 @@ export declare class BlazeWidgetEmbeddedStory extends BaseWidget implements IWid
|
|
|
2131
2177
|
onCustomNativeAdEnded(): void;
|
|
2132
2178
|
showSkeleton(): void;
|
|
2133
2179
|
hideSkeleton(): void;
|
|
2180
|
+
private onStoryPlayerDidAppear;
|
|
2181
|
+
private onStoryPlayerDismissed;
|
|
2182
|
+
private onOtherModalOpenedClosed;
|
|
2134
2183
|
}
|
|
2135
2184
|
|
|
2136
2185
|
export declare class BlazeWidgetInteraction extends BaseWidget {
|
|
@@ -2624,6 +2673,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2624
2673
|
setTheme(theme: IWidgetTheme): void;
|
|
2625
2674
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
2626
2675
|
seek(id: string): void;
|
|
2676
|
+
handleExit(): void;
|
|
2627
2677
|
onKeyDown(ev: KeyboardEvent): void;
|
|
2628
2678
|
close(): void;
|
|
2629
2679
|
open(options?: ISmoothOpenCloseModal): void;
|
|
@@ -2709,8 +2759,8 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2709
2759
|
playbackParts: HTMLElement[];
|
|
2710
2760
|
playToggleBtn: HTMLElement;
|
|
2711
2761
|
muteToggleBtn: HTMLElement;
|
|
2712
|
-
storyTitle:
|
|
2713
|
-
storyPublishedDate:
|
|
2762
|
+
storyTitle: BlazeDiv;
|
|
2763
|
+
storyPublishedDate: BlazeDiv;
|
|
2714
2764
|
storyThumbnail: HTMLElement;
|
|
2715
2765
|
storyChip: HTMLElement;
|
|
2716
2766
|
ctaButton: HTMLElement;
|
|
@@ -2828,10 +2878,12 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2828
2878
|
mode: 'Full Screen' | 'Embedded';
|
|
2829
2879
|
pages: BlazeWidgetStoryBase[];
|
|
2830
2880
|
data: IStory;
|
|
2831
|
-
shareModal
|
|
2881
|
+
shareModal?: BlazeWidgetShareModal;
|
|
2882
|
+
ctaModal?: BlazeWidgetCtaModal;
|
|
2832
2883
|
isStoryLoadCompletedTriggered: boolean;
|
|
2833
2884
|
isStoryActive: boolean;
|
|
2834
2885
|
isResumeOnFocusExecuted: boolean;
|
|
2886
|
+
isCtaWasClickedOrSwiped: boolean;
|
|
2835
2887
|
refWidget: BlazeWidgetStory[] | undefined;
|
|
2836
2888
|
pageIndex: number;
|
|
2837
2889
|
container: HTMLElement;
|
|
@@ -2850,9 +2902,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2850
2902
|
topContainer: BlazeDiv;
|
|
2851
2903
|
bottomContainer: BlazeDiv;
|
|
2852
2904
|
storyContentWrapper: BlazeDiv;
|
|
2853
|
-
storyTitle:
|
|
2854
|
-
storyPublishedDate:
|
|
2855
|
-
storyLiveChip:
|
|
2905
|
+
storyTitle: BlazeDiv;
|
|
2906
|
+
storyPublishedDate: BlazeDiv;
|
|
2907
|
+
storyLiveChip: BlazeDiv;
|
|
2856
2908
|
bottomButtonsWrapper: BlazeDiv;
|
|
2857
2909
|
ctaButtonElement: BlazeCtaButton;
|
|
2858
2910
|
prevPageButton?: BlazeButton;
|
|
@@ -2864,7 +2916,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2864
2916
|
playCallback: any;
|
|
2865
2917
|
sessionId: string;
|
|
2866
2918
|
startTrigger: 'Embedded Player in Viewport' | 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'SingleStory' | 'Share' | '';
|
|
2867
|
-
exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2919
|
+
exitTrigger: 'Swipe' | 'Swipe Down' | 'Swipe Up' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
|
|
2868
2920
|
navigationType: 'Automatic' | 'Manual' | undefined;
|
|
2869
2921
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2870
2922
|
resumeAfterfocus: boolean;
|
|
@@ -2893,7 +2945,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2893
2945
|
adjustAdView(): void;
|
|
2894
2946
|
setPlayerButtonPosition(state: 'AD' | 'NO_AD'): void;
|
|
2895
2947
|
updatePlayerButtonIcons(): void;
|
|
2896
|
-
|
|
2948
|
+
handleCtaAction(event: Event, gestureType: 'Swipe Up' | 'CTA Click'): boolean;
|
|
2897
2949
|
playToggle(): void;
|
|
2898
2950
|
muteToggle(): boolean;
|
|
2899
2951
|
setWidgetParent(parent: BlazeWidgetItem): void;
|
|
@@ -2920,6 +2972,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2920
2972
|
updateContainerLayout(): void;
|
|
2921
2973
|
connectedCallback(): void;
|
|
2922
2974
|
onShareModalClose(): void;
|
|
2975
|
+
onCtaModalClick(): void;
|
|
2923
2976
|
onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;
|
|
2924
2977
|
onVisibilityChange(): void;
|
|
2925
2978
|
onBlur(): void;
|