@wscsports/blaze-web-sdk 0.1.75 → 0.1.76

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.76",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -16,7 +16,6 @@
16
16
  "devDependencies": {
17
17
  "@types/animejs": "^3.1.7",
18
18
  "@types/hammerjs": "^2.0.41",
19
- "@types/lodash": "^4.14.195",
20
19
  "@types/ua-parser-js": "^0.7.36",
21
20
  "css-loader": "^6.8.1",
22
21
  "html-webpack-plugin": "^5.5.3",
@@ -33,6 +32,7 @@
33
32
  "dependencies": {
34
33
  "animejs": "^3.2.1",
35
34
  "hammerjs": "^2.0.8",
35
+ "intersection-observer": "^0.12.2",
36
36
  "ua-parser-js": "^1.0.36"
37
37
  }
38
38
  }
@@ -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 {
@@ -703,6 +703,7 @@ export declare class ReferringEventInfo {
703
703
  'referrer_page_type': string;
704
704
  'referrer_page_url': string;
705
705
  'referrer_page_domain': string;
706
+ 'labels_expression': string;
706
707
  'session_referrer_page_type': string;
707
708
  'session_referrer_url': string;
708
709
  'session_referrer_domain': string;
@@ -755,6 +756,7 @@ export declare class StoryEvent {
755
756
  'content_duration_viewed': number;
756
757
  'story_page_duration': number;
757
758
  'story_page_duration_viewed_percent': number;
759
+ 'labels_expression': string;
758
760
  'story_session_id': string;
759
761
  'story_page_index': number;
760
762
  'is_last_page': boolean;
@@ -772,6 +774,7 @@ export declare class WidgetEvent {
772
774
  'widget_size': string;
773
775
  'widget_content_count': number;
774
776
  'widget_content_list': string;
777
+ 'labels_expression': string;
775
778
  'content_id': string;
776
779
  'content_name': string;
777
780
  'content_version_id': string;
@@ -836,6 +839,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
836
839
  totalItems: number;
837
840
  result: IMoment[];
838
841
  }>>;
842
+ getStaticStories(): Promise<IStory | null>;
839
843
  preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<IStory & {
840
844
  status: number;
841
845
  }>>;
@@ -860,6 +864,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
860
864
  private _doNotTrack;
861
865
  private _externalUserId;
862
866
  private _geoLocation;
867
+ private _staticContent;
863
868
  protected constructor();
864
869
  init(options: IBlazeSDKOptions): Promise<void>;
865
870
  private _urls;
@@ -875,6 +880,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
875
880
  set doNotTrack(value: boolean);
876
881
  get geoLocation(): string;
877
882
  set geoLocation(value: string);
883
+ get staticContent(): boolean;
884
+ set staticContent(value: boolean);
878
885
  get apiUrl(): string;
879
886
  get apiKey(): string;
880
887
  get previewUrl(): string;
@@ -1940,7 +1947,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
1940
1947
  }
1941
1948
 
1942
1949
  export declare class BlazeWidgetSDK extends BaseWidget {
1943
- modalStoryIds: BlazeWidgetStoryModal | undefined;
1950
+ modalStory: BlazeWidgetStoryModal | undefined;
1944
1951
  onResizeEvent: (this: Window, ev: UIEvent) => void;
1945
1952
  static get observedAttributes(): string[];
1946
1953
  constructor();
@@ -1948,6 +1955,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
1948
1955
  disconnectedCallback(): void;
1949
1956
  onResize(): void;
1950
1957
  loadStoriesByHash(storyIds: string): Promise<void>;
1958
+ loadStoriesByStaticContent(): Promise<void>;
1951
1959
  attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
1952
1960
  private getConfigAttributes;
1953
1961
  private initialize;
@@ -2107,7 +2115,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2107
2115
  goNext(): void;
2108
2116
  handleAnimation(distance: number, story: BlazeWidgetStory, currentAnimation?: AnimeInstance | null): void;
2109
2117
  onSmallGestures(currentAnimation: AnimeInstance, currentStory: BlazeWidgetStory): void;
2110
- onKeyDown(ev: KeyboardEvent): boolean;
2118
+ onKeyDown(ev: KeyboardEvent): false | undefined;
2111
2119
  render(): void;
2112
2120
  }
2113
2121
 
@@ -2241,7 +2249,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2241
2249
  widgetParent: BlazeWidgetItem;
2242
2250
  playCallback: any;
2243
2251
  sessionId: string;
2244
- startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | '';
2252
+ startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'Static Load' | '';
2245
2253
  exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
2246
2254
  navigationType: 'Automatic' | 'Manual' | undefined;
2247
2255
  navigationDirection: 'Forwards' | 'Backwards' | undefined;