@wscsports/blaze-web-sdk 0.4.2 → 0.4.3
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 +18 -5
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare function playStories(dataSource: BlazeDataSourceType, style?: Sto
|
|
|
27
27
|
export declare function playContent(contentType: ContentType, options: PlayContentOptions): Promise<void>;
|
|
28
28
|
export declare function setAbTestParams(abTestParams: BlazeAbTestType): void;
|
|
29
29
|
export declare function getAppContextManager(): Record<string, any>;
|
|
30
|
+
export declare const pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
30
31
|
declare const _default: {
|
|
31
32
|
Initialize: typeof Initialize;
|
|
32
33
|
WidgetGridView: typeof WidgetGridView;
|
|
@@ -49,6 +50,7 @@ declare const _default: {
|
|
|
49
50
|
playContent: typeof playContent;
|
|
50
51
|
setAbTestParams: typeof setAbTestParams;
|
|
51
52
|
getAppContextManager: typeof getAppContextManager;
|
|
53
|
+
pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
52
54
|
};
|
|
53
55
|
export default _default;
|
|
54
56
|
|
|
@@ -80,7 +82,8 @@ export declare enum Category {
|
|
|
80
82
|
Widget = "widget",
|
|
81
83
|
Video = "video",
|
|
82
84
|
Ad = "ad",
|
|
83
|
-
Interaction = "interaction"
|
|
85
|
+
Interaction = "interaction",
|
|
86
|
+
Consent = "consent"
|
|
84
87
|
}
|
|
85
88
|
declare class UserEventInfo {
|
|
86
89
|
'generated_user_id': string;
|
|
@@ -170,6 +173,7 @@ export declare class AnalyticsEvent {
|
|
|
170
173
|
video: Partial<VideoEvent> | undefined;
|
|
171
174
|
ad: Partial<AdEvent> | undefined;
|
|
172
175
|
interaction: Partial<InteractionEvent> | undefined;
|
|
176
|
+
consent: Partial<ConsentEvent> | undefined;
|
|
173
177
|
}
|
|
174
178
|
export declare class StoryEvent {
|
|
175
179
|
'story_start_id': string;
|
|
@@ -326,6 +330,8 @@ export declare class InteractionEvent {
|
|
|
326
330
|
'audio_state': string;
|
|
327
331
|
'content_extra_info': string;
|
|
328
332
|
}
|
|
333
|
+
export declare class ConsentEvent {
|
|
334
|
+
}
|
|
329
335
|
|
|
330
336
|
export declare abstract class BaseWidget extends HTMLElement {
|
|
331
337
|
protected _animationDuration: number;
|
|
@@ -657,7 +663,7 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
657
663
|
isAnimationOnDesktopInitialized: boolean;
|
|
658
664
|
get refElement(): ShadowRoot | this;
|
|
659
665
|
constructor();
|
|
660
|
-
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "disabled" | "blaze-btn-
|
|
666
|
+
static get observedAttributes(): ("height" | "order" | "width" | "icon-color" | "disabled" | "blaze-btn-hidden" | "blaze-btn-visible" | "button-desktop-animation")[];
|
|
661
667
|
private onMouseEnter;
|
|
662
668
|
private onMouseLeave;
|
|
663
669
|
private onClick;
|
|
@@ -825,7 +831,8 @@ export declare enum VideoAction {
|
|
|
825
831
|
export declare enum WidgetAction {
|
|
826
832
|
Load = "widget_load",
|
|
827
833
|
Visible = "widget_visible",
|
|
828
|
-
Click = "widget_click"
|
|
834
|
+
Click = "widget_click",
|
|
835
|
+
SDKInit = "sdk_init"
|
|
829
836
|
}
|
|
830
837
|
export declare enum AdAction {
|
|
831
838
|
Requested = "ad_requested",
|
|
@@ -1411,6 +1418,7 @@ export interface IBlazeSDKOptions {
|
|
|
1411
1418
|
autoAdvanceUrl?: string;
|
|
1412
1419
|
layoutDirection?: LocaleDirectionType;
|
|
1413
1420
|
shouldAllowClosedCaptions?: boolean;
|
|
1421
|
+
disableAutoLoadingContent?: boolean;
|
|
1414
1422
|
}
|
|
1415
1423
|
|
|
1416
1424
|
export interface IButtonPlayerNavigationConfig {
|
|
@@ -1647,6 +1655,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
|
|
|
1647
1655
|
pushMomentEvent(action: MomentAction, body: Partial<MomentEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
1648
1656
|
pushVideoEvent(action: VideoAction, body: Partial<VideoEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
1649
1657
|
pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
1658
|
+
pushConsentEvent(action: string, body: Record<string, any>): void;
|
|
1650
1659
|
pushImaAdEvent(action: ImaAdAction, body: Partial<ImaAdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
1651
1660
|
pushInteractionEvent(action: InteractionAction, body: Partial<InteractionEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
1652
1661
|
pushWidgetEvent(action: WidgetAction, body: Partial<WidgetEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
|
|
@@ -1781,6 +1790,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1781
1790
|
private _layoutDirection;
|
|
1782
1791
|
private _shouldAllowClosedCaptions;
|
|
1783
1792
|
private _appContext;
|
|
1793
|
+
private _disableAutoLoadingContent;
|
|
1784
1794
|
protected constructor();
|
|
1785
1795
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
1786
1796
|
private _urls;
|
|
@@ -1826,6 +1836,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
1826
1836
|
get shouldAllowClosedCaptions(): boolean;
|
|
1827
1837
|
get appContext(): Record<string, any>;
|
|
1828
1838
|
set appContext(value: Record<string, any>);
|
|
1839
|
+
get disableAutoLoadingContent(): boolean;
|
|
1840
|
+
set disableAutoLoadingContent(value: boolean);
|
|
1829
1841
|
}
|
|
1830
1842
|
export declare const ConfigService: ConfigServiceClass;
|
|
1831
1843
|
|
|
@@ -4300,6 +4312,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
|
|
|
4300
4312
|
private injectFontResource;
|
|
4301
4313
|
private injectGoogleTag;
|
|
4302
4314
|
private injectIma;
|
|
4315
|
+
private pushInitEvent;
|
|
4303
4316
|
}
|
|
4304
4317
|
|
|
4305
4318
|
export interface IShareButton {
|
|
@@ -4387,7 +4400,6 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4387
4400
|
adDisplayContainer: any;
|
|
4388
4401
|
adsManager: any;
|
|
4389
4402
|
shouldShowImaAd: boolean;
|
|
4390
|
-
googleIMA: any;
|
|
4391
4403
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
4392
4404
|
hasPoster: boolean;
|
|
4393
4405
|
static get observedAttributes(): string[];
|
|
@@ -4396,6 +4408,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
4396
4408
|
connectedCallback(): void;
|
|
4397
4409
|
disconnectedCallback(): void;
|
|
4398
4410
|
setData(data: IPage): void;
|
|
4411
|
+
getGoogleIMA(): any;
|
|
4399
4412
|
private isEnableInteractions;
|
|
4400
4413
|
loadClosedCaptions(): Promise<void>;
|
|
4401
4414
|
getVideoDuration(existingVideo?: HTMLVideoElement): Promise<number>;
|
|
@@ -4450,7 +4463,6 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
4450
4463
|
private isCurrentlyDisplay;
|
|
4451
4464
|
private adContainer;
|
|
4452
4465
|
private placeholderContainer;
|
|
4453
|
-
private googletag;
|
|
4454
4466
|
private failToLoadTimeout?;
|
|
4455
4467
|
private onFail?;
|
|
4456
4468
|
private isAdFailed;
|
|
@@ -4467,6 +4479,7 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
4467
4479
|
get duration(): number;
|
|
4468
4480
|
get progress(): number;
|
|
4469
4481
|
set muted(isMuted: boolean);
|
|
4482
|
+
getGoogletag(): any;
|
|
4470
4483
|
getAdIframeRef(): HTMLIFrameElement | null;
|
|
4471
4484
|
changeAdMutedState(isMuted: boolean): void;
|
|
4472
4485
|
setData(data: IPage): void;
|