@wscsports/blaze-web-sdk 0.3.1 → 0.3.2

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.3.01",
3
+ "version": "0.3.2",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -1093,7 +1093,7 @@ export interface IButtonPlayerNavigationConfig {
1093
1093
  export interface IButtonPlayerConfig {
1094
1094
  iconUrl: string;
1095
1095
  eventType: string;
1096
- clickHandler: () => void;
1096
+ clickHandler: (event: Event) => void;
1097
1097
  dataTestId?: string;
1098
1098
  }
1099
1099
 
@@ -1671,7 +1671,6 @@ declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_bas
1671
1671
  checkCacheSize(): Promise<void>;
1672
1672
  isVideoDownloading(url: string): boolean;
1673
1673
  isInitialized(): boolean;
1674
- private handleError;
1675
1674
  private fetchAndCache;
1676
1675
  private cacheResponse;
1677
1676
  addCacheVideoByUrl(url: string): Promise<Response | void>;
@@ -1865,6 +1864,23 @@ type BlazeMomentsPlayerButtonStyle = {
1865
1864
  tablet: BlazeMomentsPlayerButtonDeviceStyle;
1866
1865
  desktop: BlazeMomentsPlayerButtonDeviceStyle;
1867
1866
  };
1867
+ type BlazeSeekBarStyle = {
1868
+ isVisible: boolean;
1869
+ isThumbVisible: boolean;
1870
+ backgroundColor: string;
1871
+ progressColor: string;
1872
+ height: string;
1873
+ cornerRadius: string;
1874
+ thumbColor: string;
1875
+ thumbSize: string;
1876
+ };
1877
+ export type BlazeMomentsPlayerSeekBarStyle = {
1878
+ isVisible: boolean;
1879
+ bottomSpacing: string;
1880
+ horizontalSpacing: string;
1881
+ playingState: BlazeSeekBarStyle;
1882
+ pausedState: BlazeSeekBarStyle;
1883
+ };
1868
1884
  export interface MomentPlayerStyle {
1869
1885
  headingText: BlazeMomentsPlayerHeadingTextStyle;
1870
1886
  bodyText: BlazeMomentsPlayerBodyTextStyle;
@@ -1873,6 +1889,7 @@ export interface MomentPlayerStyle {
1873
1889
  icons: BlazeMomentIconsStyle;
1874
1890
  iconsButtonOrder: IconButtonType[];
1875
1891
  iconsPosition: IconsPositionType;
1892
+ seekBar: BlazeMomentsPlayerSeekBarStyle;
1876
1893
  }
1877
1894
  export interface CtaButtonStyle {
1878
1895
  borderRadius: string;
@@ -3202,9 +3219,10 @@ export declare class BlazeWidgetMomentPlayer extends WidgetAbstractPlayer {
3202
3219
 
3203
3220
  export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
3204
3221
  video: BlazeWidgetVideo | BlazeWidgetAd;
3222
+ seekBarStyle: BlazeMomentsPlayerSeekBarStyle;
3205
3223
  private progress;
3206
3224
  private playbackParts;
3207
- private isEmphasized;
3225
+ private isProgressBarPaused;
3208
3226
  private listeners;
3209
3227
  onPause?: () => void;
3210
3228
  onResume?: () => void;
@@ -3219,10 +3237,11 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
3219
3237
  private isInit;
3220
3238
  private animationFrameId;
3221
3239
  private lastProgress;
3240
+ private progressBarContainer;
3222
3241
  private progressBarFill;
3223
3242
  private progressBarKnob;
3224
3243
  private isMouseIn;
3225
- constructor(video: BlazeWidgetVideo | BlazeWidgetAd);
3244
+ constructor(video: BlazeWidgetVideo | BlazeWidgetAd, seekBarStyle: BlazeMomentsPlayerSeekBarStyle);
3226
3245
  static get observedAttributes(): string[];
3227
3246
  attributeChangedCallback(name: string, oldValue: string, _newValue: string): void;
3228
3247
  connectedCallback(): void;
@@ -3241,12 +3260,13 @@ export declare class BlazeWidgetMomentSeekBar extends HTMLElement {
3241
3260
  private onTouchMove;
3242
3261
  private handleOnMouseOut;
3243
3262
  private handleOnMouseIn;
3244
- private resetSeekBarStyle;
3245
- private emphasizesSeekBarStyle;
3263
+ private applyPlayingSeekBarStyle;
3264
+ private applyPauseSeekBarStyle;
3246
3265
  reset(): void;
3247
3266
  private handleSeek;
3248
3267
  private styleProgressContainer;
3249
3268
  private createPlaybackPart;
3269
+ private updateProgressBarStyles;
3250
3270
  render(): void;
3251
3271
  }
3252
3272