@wscsports/blaze-web-sdk 0.1.98 → 0.1.99
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 +20 -2
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -69,6 +69,15 @@ export declare abstract class BaseWidget extends HTMLElement {
|
|
|
69
69
|
|
|
70
70
|
export declare function debounce<T extends Event>(func: EventHandler<T>, _delay: number): (event: T) => Promise<void>;
|
|
71
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
|
+
};
|
|
72
81
|
type ScreenOrientation = 'landscape' | 'portrait';
|
|
73
82
|
type Platform = 'console' | 'mobile' | 'tablet' | 'smarttv' | 'wearable' | 'embedded' | 'desktop';
|
|
74
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';
|
|
@@ -714,6 +723,7 @@ export interface IBlazeSDKOptions {
|
|
|
714
723
|
runInShadowDom?: boolean;
|
|
715
724
|
playerStyleCustomization?: Partial<StoryPlayerStyle>;
|
|
716
725
|
shouldModifyUrlWithStoryId?: boolean;
|
|
726
|
+
shouldDismissPlayer?: boolean;
|
|
717
727
|
}
|
|
718
728
|
export interface ISmoothOpenCloseModal {
|
|
719
729
|
storyId?: string;
|
|
@@ -887,7 +897,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
887
897
|
events: AnalyticsEvent[];
|
|
888
898
|
uaParsed?: IDevice;
|
|
889
899
|
init(): Promise<void>;
|
|
890
|
-
|
|
900
|
+
sendAnalyticsData(): Promise<void>;
|
|
891
901
|
bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
|
|
892
902
|
pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
893
903
|
pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
@@ -1129,6 +1139,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1129
1139
|
private _staticContent;
|
|
1130
1140
|
private _runInShadowDom;
|
|
1131
1141
|
private _shouldModifyUrlWithStoryId;
|
|
1142
|
+
private _shouldDismissPlayer;
|
|
1132
1143
|
private _googleCustomNativeAdHandler?;
|
|
1133
1144
|
private _playerStyleCustomization?;
|
|
1134
1145
|
protected constructor();
|
|
@@ -1156,6 +1167,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1156
1167
|
get playerStyleCustomization(): Partial<StoryPlayerStyle>;
|
|
1157
1168
|
set playerStyleCustomization(value: Partial<StoryPlayerStyle>);
|
|
1158
1169
|
get shouldModifyUrlWithStoryId(): boolean;
|
|
1170
|
+
get shouldDismissPlayer(): boolean;
|
|
1159
1171
|
get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
|
|
1160
1172
|
set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
|
|
1161
1173
|
}
|
|
@@ -2605,6 +2617,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2605
2617
|
data: IPage | undefined;
|
|
2606
2618
|
shouldShowImaAd?: boolean;
|
|
2607
2619
|
isCurrentlyTryingToRunImaAd?: boolean;
|
|
2620
|
+
_isAd?: boolean | undefined;
|
|
2608
2621
|
constructor();
|
|
2609
2622
|
setData(data: IPage): void;
|
|
2610
2623
|
loadPoster(): void;
|
|
@@ -2615,6 +2628,8 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
2615
2628
|
get currentTime(): number;
|
|
2616
2629
|
set currentTime(value: number);
|
|
2617
2630
|
get muted(): boolean;
|
|
2631
|
+
get isAd(): boolean | undefined;
|
|
2632
|
+
set isAd(value: boolean | undefined);
|
|
2618
2633
|
removeLoader(): any;
|
|
2619
2634
|
load(): void;
|
|
2620
2635
|
unload(): void;
|
|
@@ -2856,6 +2871,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2856
2871
|
get paused(): boolean;
|
|
2857
2872
|
get muted(): boolean;
|
|
2858
2873
|
set muted(value: boolean);
|
|
2874
|
+
get isAd(): boolean;
|
|
2859
2875
|
render(): void;
|
|
2860
2876
|
restartVideo(): void;
|
|
2861
2877
|
initializeIMA(): void;
|
|
@@ -2884,7 +2900,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2884
2900
|
isStoryActive: boolean;
|
|
2885
2901
|
isResumeOnFocusExecuted: boolean;
|
|
2886
2902
|
isCtaWasClickedOrSwiped: boolean;
|
|
2887
|
-
refWidget
|
|
2903
|
+
refWidget?: BlazeWidgetStory[];
|
|
2904
|
+
refPlayer?: BlazeWidgetStoryPlayer;
|
|
2905
|
+
refPlayerModal?: BlazeWidgetStoryModal;
|
|
2888
2906
|
pageIndex: number;
|
|
2889
2907
|
container: HTMLElement;
|
|
2890
2908
|
progressElement: HTMLElement;
|