@wscsports/blaze-web-sdk 0.1.75 → 0.1.751

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.75",
3
+ "version": "0.1.751",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -109,7 +109,6 @@ export declare class URLManager {
109
109
  static isBackWasCalled: boolean;
110
110
  static resetLocation(): void;
111
111
  static updateLocationStoryHash(story?: IStory): void;
112
- static getPlayerTypeFromUrl(): "Widget" | "Share" | "SingleStory" | undefined;
113
112
  }
114
113
 
115
114
  export declare class BlazeAlert extends BaseWidget {
@@ -528,6 +527,7 @@ export interface IBlazeSDKOptions {
528
527
  doNotTrack?: boolean;
529
528
  externalUserId?: string;
530
529
  geoLocation?: string;
530
+ loadByStaticContent?: boolean;
531
531
  }
532
532
 
533
533
  export interface IDatabase {
@@ -836,6 +836,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
836
836
  totalItems: number;
837
837
  result: IMoment[];
838
838
  }>>;
839
+ getStaticStories(): Promise<IStory | null>;
839
840
  preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<IStory & {
840
841
  status: number;
841
842
  }>>;
@@ -860,6 +861,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
860
861
  private _doNotTrack;
861
862
  private _externalUserId;
862
863
  private _geoLocation;
864
+ private _staticContent;
863
865
  protected constructor();
864
866
  init(options: IBlazeSDKOptions): Promise<void>;
865
867
  private _urls;
@@ -875,6 +877,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
875
877
  set doNotTrack(value: boolean);
876
878
  get geoLocation(): string;
877
879
  set geoLocation(value: string);
880
+ get staticContent(): boolean;
881
+ set staticContent(value: boolean);
878
882
  get apiUrl(): string;
879
883
  get apiKey(): string;
880
884
  get previewUrl(): string;
@@ -1940,7 +1944,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
1940
1944
  }
1941
1945
 
1942
1946
  export declare class BlazeWidgetSDK extends BaseWidget {
1943
- modalStoryIds: BlazeWidgetStoryModal | undefined;
1947
+ modalStory: BlazeWidgetStoryModal | undefined;
1944
1948
  onResizeEvent: (this: Window, ev: UIEvent) => void;
1945
1949
  static get observedAttributes(): string[];
1946
1950
  constructor();
@@ -1948,6 +1952,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
1948
1952
  disconnectedCallback(): void;
1949
1953
  onResize(): void;
1950
1954
  loadStoriesByHash(storyIds: string): Promise<void>;
1955
+ loadStoriesByStaticContent(): Promise<void>;
1951
1956
  attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
1952
1957
  private getConfigAttributes;
1953
1958
  private initialize;
@@ -2107,7 +2112,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2107
2112
  goNext(): void;
2108
2113
  handleAnimation(distance: number, story: BlazeWidgetStory, currentAnimation?: AnimeInstance | null): void;
2109
2114
  onSmallGestures(currentAnimation: AnimeInstance, currentStory: BlazeWidgetStory): void;
2110
- onKeyDown(ev: KeyboardEvent): boolean;
2115
+ onKeyDown(ev: KeyboardEvent): false | undefined;
2111
2116
  render(): void;
2112
2117
  }
2113
2118
 
@@ -2241,7 +2246,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2241
2246
  widgetParent: BlazeWidgetItem;
2242
2247
  playCallback: any;
2243
2248
  sessionId: string;
2244
- startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | '';
2249
+ startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'Static Load' | '';
2245
2250
  exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
2246
2251
  navigationType: 'Automatic' | 'Manual' | undefined;
2247
2252
  navigationDirection: 'Forwards' | 'Backwards' | undefined;