@wscsports/blaze-web-sdk 0.11.1 → 0.12.0
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 +25 -1
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -287,6 +287,8 @@ export declare class AdEvent {
|
|
|
287
287
|
'ad_server': string;
|
|
288
288
|
'story_id': string;
|
|
289
289
|
'story_title': string;
|
|
290
|
+
'story_page_id': string;
|
|
291
|
+
'story_page_index': number;
|
|
290
292
|
'ad_insertion_logic': string;
|
|
291
293
|
'ad_index': string;
|
|
292
294
|
'ad_start_trigger': string;
|
|
@@ -467,7 +469,15 @@ export * from './data-source.class';
|
|
|
467
469
|
export * from './fullscreen-manager.class';
|
|
468
470
|
export * from './visiblity-manager.class';
|
|
469
471
|
|
|
470
|
-
export
|
|
472
|
+
export interface IBlazeWidgetLabel {
|
|
473
|
+
readonly _type: 'BlazeWidgetLabel';
|
|
474
|
+
value: string;
|
|
475
|
+
mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
|
|
476
|
+
atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
|
|
477
|
+
toString(): string;
|
|
478
|
+
}
|
|
479
|
+
export declare class BlazeWidgetLabel implements IBlazeWidgetLabel {
|
|
480
|
+
readonly _type: 'BlazeWidgetLabel';
|
|
471
481
|
value: string;
|
|
472
482
|
constructor(value: string);
|
|
473
483
|
static singleLabel(label: string): BlazeWidgetLabel;
|
|
@@ -833,6 +843,7 @@ export declare const IMA_RATIOS: {
|
|
|
833
843
|
readonly horizontal: "640x480";
|
|
834
844
|
readonly vertical: "1080x1920";
|
|
835
845
|
};
|
|
846
|
+
export declare const BANNER_REFRESH_INTERVAL: number;
|
|
836
847
|
|
|
837
848
|
export declare enum StoryAction {
|
|
838
849
|
Start = "story_start",
|
|
@@ -1445,7 +1456,15 @@ export declare abstract class WidgetsFactory {
|
|
|
1445
1456
|
|
|
1446
1457
|
export * from './elements.factory';
|
|
1447
1458
|
|
|
1459
|
+
export declare function isValidIds(ids: unknown): ids is string[];
|
|
1460
|
+
export declare function hasValidIds(...sources: Array<string[] | undefined>): boolean;
|
|
1461
|
+
|
|
1448
1462
|
export * from './widget-theme.guard';
|
|
1463
|
+
export * from './labels.guard';
|
|
1464
|
+
export * from './ids.guard';
|
|
1465
|
+
|
|
1466
|
+
export declare function isValidLabels(labels: unknown): labels is string | string[] | IBlazeWidgetLabel;
|
|
1467
|
+
export declare function hasValidLabels(...sources: Array<string | string[] | IBlazeWidgetLabel | undefined>): boolean;
|
|
1449
1468
|
|
|
1450
1469
|
export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
|
|
1451
1470
|
|
|
@@ -4842,12 +4861,16 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
|
4842
4861
|
|
|
4843
4862
|
export declare class BlazeWidgetBannerAd extends HTMLElement {
|
|
4844
4863
|
private adContainer;
|
|
4864
|
+
private bannerAdInfo;
|
|
4865
|
+
private isActive;
|
|
4845
4866
|
private get googletag();
|
|
4846
4867
|
connectedCallback(): void;
|
|
4868
|
+
disconnectedCallback(): void;
|
|
4847
4869
|
show(bannerAdInfo?: IBannerAdInfo): void;
|
|
4848
4870
|
private setInitialStyles;
|
|
4849
4871
|
private setAdContainer;
|
|
4850
4872
|
private raiseAnalyticsEventToParent;
|
|
4873
|
+
raiseAnalyticsViewBannerAd(): void;
|
|
4851
4874
|
}
|
|
4852
4875
|
|
|
4853
4876
|
export declare class BlazeWidgetVastAd extends HTMLElement {
|
|
@@ -5273,6 +5296,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
5273
5296
|
requestAnimationId: number | null;
|
|
5274
5297
|
shouldShowImaAdOnStart: boolean;
|
|
5275
5298
|
bannerAdElement?: BlazeWidgetBannerAd;
|
|
5299
|
+
lastBannerRefreshInWatchTimeMS: number;
|
|
5276
5300
|
boundOnResumeEvent: () => void;
|
|
5277
5301
|
boundOnPauseEvent: () => void;
|
|
5278
5302
|
boundOnNextPageEvent: () => void;
|