@wscsports/blaze-web-sdk 0.11.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -150,6 +150,7 @@ export declare class ReferringEventInfo {
150
150
  'story_source': string;
151
151
  }
152
152
  export declare class AnalyticsEvent {
153
+ 'api_scheme_version': string;
153
154
  'sdk_event_session_counter': number;
154
155
  'sdk_event_id': string;
155
156
  'timestamp_utc': string;
@@ -286,6 +287,8 @@ export declare class AdEvent {
286
287
  'ad_server': string;
287
288
  'story_id': string;
288
289
  'story_title': string;
290
+ 'story_page_id': string;
291
+ 'story_page_index': number;
289
292
  'ad_insertion_logic': string;
290
293
  'ad_index': string;
291
294
  'ad_start_trigger': string;
@@ -466,7 +469,15 @@ export * from './data-source.class';
466
469
  export * from './fullscreen-manager.class';
467
470
  export * from './visiblity-manager.class';
468
471
 
469
- export declare class BlazeWidgetLabel {
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';
470
481
  value: string;
471
482
  constructor(value: string);
472
483
  static singleLabel(label: string): BlazeWidgetLabel;
@@ -832,6 +843,7 @@ export declare const IMA_RATIOS: {
832
843
  readonly horizontal: "640x480";
833
844
  readonly vertical: "1080x1920";
834
845
  };
846
+ export declare const BANNER_REFRESH_INTERVAL: number;
835
847
 
836
848
  export declare enum StoryAction {
837
849
  Start = "story_start",
@@ -1444,7 +1456,15 @@ export declare abstract class WidgetsFactory {
1444
1456
 
1445
1457
  export * from './elements.factory';
1446
1458
 
1459
+ export declare function isValidIds(ids: unknown): ids is string[];
1460
+ export declare function hasValidIds(...sources: Array<string[] | undefined>): boolean;
1461
+
1447
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;
1448
1468
 
1449
1469
  export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
1450
1470
 
@@ -4333,6 +4353,12 @@ export declare class BlazeWidgetItem extends BaseWidget implements Observable {
4333
4353
  private setupEventListeners;
4334
4354
  private handleWidgetClick;
4335
4355
  disconnectedCallback(): void;
4356
+ debouncedIntersectionAction: {
4357
+ (): void;
4358
+ cancel(): void;
4359
+ } & {
4360
+ cancel: () => void;
4361
+ };
4336
4362
  handleIntersection(): void;
4337
4363
  private setData;
4338
4364
  isFullyVisibleInParent(): boolean;
@@ -4835,12 +4861,16 @@ export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
4835
4861
 
4836
4862
  export declare class BlazeWidgetBannerAd extends HTMLElement {
4837
4863
  private adContainer;
4864
+ private bannerAdInfo;
4865
+ private isActive;
4838
4866
  private get googletag();
4839
4867
  connectedCallback(): void;
4868
+ disconnectedCallback(): void;
4840
4869
  show(bannerAdInfo?: IBannerAdInfo): void;
4841
4870
  private setInitialStyles;
4842
4871
  private setAdContainer;
4843
4872
  private raiseAnalyticsEventToParent;
4873
+ raiseAnalyticsViewBannerAd(): void;
4844
4874
  }
4845
4875
 
4846
4876
  export declare class BlazeWidgetVastAd extends HTMLElement {
@@ -5266,6 +5296,7 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
5266
5296
  requestAnimationId: number | null;
5267
5297
  shouldShowImaAdOnStart: boolean;
5268
5298
  bannerAdElement?: BlazeWidgetBannerAd;
5299
+ lastBannerRefreshInWatchTimeMS: number;
5269
5300
  boundOnResumeEvent: () => void;
5270
5301
  boundOnPauseEvent: () => void;
5271
5302
  boundOnNextPageEvent: () => void;