@wscsports/blaze-web-sdk 0.3.7 → 0.3.9

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/README.md CHANGED
@@ -5,3 +5,9 @@ Welcome to WSC Sports Web SDK.
5
5
  Please visit out documentation website for installation guides:<br/>
6
6
  https://dev.wsc-sports.com/docs/sdk-integration
7
7
 
8
+ # Local Development
9
+ To run the project locally, follow these steps:
10
+ 1. Install Docker on your local machine
11
+ 2. run `npm run start:dev-docker` in the root directory of the project
12
+ 3. Open your browser and navigate to `http://localhost:3005`
13
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -8,6 +8,7 @@
8
8
  ],
9
9
  "scripts": {
10
10
  "start:dev": "webpack-dev-server --config webpack.config.dev",
11
+ "start:dev-docker": "docker compose up --build",
11
12
  "build:pr": "webpack --config webpack.config.prod-pr.js",
12
13
  "build:dev": "webpack --config webpack.config.dev-pr.js",
13
14
  "build:prod": "webpack --config webpack.config.prod.js",
@@ -1100,6 +1100,7 @@ export interface IBlazeSDKOptions {
1100
1100
  shouldAllowHorizontalStories?: boolean;
1101
1101
  shouldAutoAdvance?: boolean;
1102
1102
  autoAdvanceUrl?: string;
1103
+ layoutDirection?: LocaleDirectionType;
1103
1104
  }
1104
1105
 
1105
1106
  export interface IButtonPlayerNavigationConfig {
@@ -1419,6 +1420,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1419
1420
  private _prefetchingPolicy;
1420
1421
  private _shouldAllowHorizontalStories;
1421
1422
  private _excludeContentId;
1423
+ private _layoutDirection;
1422
1424
  protected constructor();
1423
1425
  init(options: IBlazeSDKOptions): Promise<void>;
1424
1426
  private _urls;
@@ -1457,6 +1459,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1457
1459
  set prefetchingPolicy(value: PrefetchingPolicyType);
1458
1460
  get excludeContentId(): string | undefined;
1459
1461
  set excludeContentId(value: string | undefined);
1462
+ get layoutDirection(): LocaleDirectionType;
1463
+ set layoutDirection(value: LocaleDirectionType);
1460
1464
  }
1461
1465
  export declare const ConfigService: ConfigServiceClass;
1462
1466
 
@@ -1865,7 +1869,6 @@ export interface StoryPlayerStyle {
1865
1869
  iconsButtonOrder: IconButtonType[];
1866
1870
  contentOrder: ContentOrderType[];
1867
1871
  icons: BlazeStoryIcons;
1868
- localeDirection: LocaleDirectionType;
1869
1872
  }
1870
1873
  export type BlazeMomentsPlayerTextStyle = {
1871
1874
  font: string;
@@ -1909,7 +1912,6 @@ export type BlazeMomentsPlayerCtaStyle = {
1909
1912
  textSize: string;
1910
1913
  font: string;
1911
1914
  fontWeight: FontWeightType;
1912
- width: string;
1913
1915
  height: string;
1914
1916
  layoutPositioning: BlazeMomentsPlayerCTAPositioning;
1915
1917
  horizontalAlignment: BlazeMomentsPlayerCTAHorizontalAlignment;
@@ -2377,7 +2379,7 @@ export type ClientPlatform = 'Web';
2377
2379
  export type FontWeightType = 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
2378
2380
  export type TextTransformType = 'capitalize' | 'uppercase' | 'lowercase' | 'none';
2379
2381
 
2380
- export type Direction = 'UP' | 'DOWN' | 'RIGHT' | 'LEFT';
2382
+ export type Direction = 'VerticalBackwards' | 'VerticalForwards' | 'HorizontalForwards' | 'HorizontalBackwards';
2381
2383
  export type NavigationType = 'Automatic' | 'Manual' | '';
2382
2384
  export type NavigationDirectionType = 'Forwards' | 'Backwards' | '';
2383
2385
 
@@ -2968,6 +2970,8 @@ export declare abstract class WidgetAbstractPlayer extends BaseWidget {
2968
2970
  animateContent(direction: ContentDirection): AnimeTimelineInstance | undefined;
2969
2971
  abstract createAnimation(content: BlazeWidgetStory | BlazeWidgetMoment, direction: ContentDirection, targetIndex: number): AnimeTimelineInstance;
2970
2972
  abstract handleAnimationCompletion(content: BlazeWidgetStory | BlazeWidgetMoment, mode: ContentDirection): void;
2973
+ get directionBackwards(): 2 | 4;
2974
+ get directionForwards(): 2 | 4;
2971
2975
  processAnimation(event: HammerInput, content: BlazeWidgetMoment | BlazeWidgetStory, currentAnimation?: AnimeInstance | null | undefined): void;
2972
2976
  unloadFromPlayerList(): void;
2973
2977
  handleAnimationEnd(direction: ContentDirection): void;
@@ -3279,7 +3283,7 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
3279
3283
  onAnimationEnd(): void;
3280
3284
  handleWheel(evt: WheelEvent): void;
3281
3285
  onKeyDown(event: KeyboardEvent): void;
3282
- changeContent(direction: ContentDirection): Promise<void>;
3286
+ changeContent(direction: ContentDirection): void;
3283
3287
  handleMuteClicked(): void;
3284
3288
  loadContentBatch(): void;
3285
3289
  resetStyles(): void;
@@ -3467,6 +3471,7 @@ export declare class BlazeWidgetMoment extends BlazeWidgetContent {
3467
3471
  handleOnLikeClick(): void;
3468
3472
  pause(): void;
3469
3473
  resume(): void;
3474
+ removeResumeButtonFromScreen(): void;
3470
3475
  resetPosition(): void;
3471
3476
  restartVideo(): void;
3472
3477
  adjustContentView(): void;
@@ -3664,7 +3669,6 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
3664
3669
  setPlayerButtonSize(buttonElement: HTMLElement, iconName: string): void;
3665
3670
  updatePlayerButtonsOrder(): void;
3666
3671
  updatePlayerContentOrder(): void;
3667
- updatePlayerLocaleDirection(): void;
3668
3672
  displayExitButtonOnMobileTablet(): void;
3669
3673
  resetLayout(): void;
3670
3674
  render(): void;