@wscsports/blaze-web-sdk 0.1.26 → 0.1.27

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.1.26",
3
+ "version": "0.1.27",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -1,3 +1,4 @@
1
+ export declare function setDoNotTrack(value: boolean): void;
1
2
  export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
2
3
  export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
3
4
  export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
@@ -10,6 +11,7 @@ declare const _default: {
10
11
  WidgetRowView: typeof WidgetRowView;
11
12
  Theme: typeof Theme;
12
13
  addDelegateListener: typeof addDelegateListener;
14
+ setDoNotTrack: typeof setDoNotTrack;
13
15
  Delegations: typeof Delegation;
14
16
  };
15
17
  export default _default;
@@ -458,9 +460,10 @@ export type EnvironmentType = 'prod' | 'uat';
458
460
  export interface IBlazeSDKOptions {
459
461
  apiKey: string;
460
462
  environment?: EnvironmentType;
461
- sendAnalytics?: boolean | undefined;
463
+ sendAnalytics?: boolean;
462
464
  previewUrl?: string;
463
465
  previewMomentUrl?: string;
466
+ doNotTrack?: boolean;
464
467
  }
465
468
 
466
469
  export interface IDatabase {
@@ -683,6 +686,7 @@ export declare class WidgetEvent {
683
686
  'widget_type': string;
684
687
  'widget_size': string;
685
688
  'widget_content_count': number;
689
+ 'widget_content_list': string;
686
690
  'content_id': string;
687
691
  'content_name': string;
688
692
  'content_version_id': string;
@@ -693,7 +697,6 @@ export declare class WidgetEvent {
693
697
  'thumbnail_type': string;
694
698
  'page_type': string;
695
699
  'page_size': string;
696
- 'widget_content_list': string;
697
700
  }
698
701
 
699
702
  declare const ApiServiceClass_base: {
@@ -737,9 +740,10 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
737
740
  private _apiUrl;
738
741
  private _analyticsApiUrl;
739
742
  private _apiKey;
740
- private _sendAnaltyics;
741
743
  private _previewUrl;
742
744
  private _previewMomentUrl;
745
+ private _sendAnaltyics;
746
+ private _doNotTrack;
743
747
  protected constructor();
744
748
  init(options: IBlazeSDKOptions): Promise<void>;
745
749
  private _urls;
@@ -747,8 +751,10 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
747
751
  private _analyticsUrls;
748
752
  get environment(): EnvironmentType;
749
753
  private set environment(value);
750
- get sendAnalytics(): boolean | undefined;
754
+ get sendAnalytics(): boolean;
751
755
  get analyticsApiUrl(): string;
756
+ get doNotTrack(): boolean;
757
+ set doNotTrack(value: boolean);
752
758
  get apiUrl(): string;
753
759
  get apiKey(): string;
754
760
  get previewUrl(): string;
@@ -832,9 +838,8 @@ declare abstract class EventServiceClass extends EventServiceClass_base implemen
832
838
  init(): Promise<void>;
833
839
  dispatch(el: HTMLElement, event: Delegation, params?: object): {
834
840
  mainEvent: CustomEvent;
835
- globalEvent: CustomEvent;
836
841
  };
837
- raiseAnalyticsEvent(name: string, event: any): {
842
+ dispatchAnaltyicsEvent(name: string, event: any): {
838
843
  mainEvent: CustomEvent;
839
844
  };
840
845
  }
@@ -1535,6 +1540,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1535
1540
  disconnectedCallback(): void;
1536
1541
  set storyIds(value: string);
1537
1542
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1543
+ setId(id: string): void;
1538
1544
  onResize(): void;
1539
1545
  handlePopState(_event: Event): void;
1540
1546
  addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
@@ -1581,8 +1587,8 @@ export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
1581
1587
  exitPopup: HTMLElement;
1582
1588
  exitButton: HTMLElement;
1583
1589
  resizeCallback: any;
1584
- onClose: (() => void) | undefined;
1585
1590
  parentWidget: HTMLElement;
1591
+ onClose: (() => void) | undefined;
1586
1592
  constructor();
1587
1593
  setMoments(data: IMoment[]): void;
1588
1594
  seekMoment(id: string): void;
@@ -1615,6 +1621,7 @@ export declare class BlazeWidgetMomentPlayer extends HTMLElement {
1615
1621
  populatePrev(): Promise<void>;
1616
1622
  populateNext(): Promise<void>;
1617
1623
  play(): void;
1624
+ pause(): void;
1618
1625
  clean(): void;
1619
1626
  nextAnimation(): AnimeTimelineInstance;
1620
1627
  prevAnimation(): AnimeTimelineInstance;
@@ -1634,7 +1641,6 @@ export declare class BlazeWidgetMomentPlayer extends HTMLElement {
1634
1641
  }
1635
1642
 
1636
1643
  export declare class BlazeWidgetMomentPreview extends BlazeWidgetMoment {
1637
- static isPlaying: boolean;
1638
1644
  constructor();
1639
1645
  disconnectedCallback(): void;
1640
1646
  loadMoments(): Promise<void>;