@wscsports/blaze-web-sdk 0.1.93 → 0.1.95

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.93",
3
+ "version": "0.1.95",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -140,8 +140,12 @@ export declare function throttle<T extends Event>(func: EventHandler<T>, _delay:
140
140
  export declare class URLManager {
141
141
  static isUpdateLocationByScript: boolean;
142
142
  static isBackWasCalled: boolean;
143
+ static resetLocationAfterStoryClose(): void;
143
144
  static resetLocation(): void;
144
145
  static updateLocationStoryHash(story?: IStory): void;
146
+ static getHashMatch(): RegExpMatchArray | null;
147
+ static getHash(): string;
148
+ static updateStoryInHash(story: IStory): void;
145
149
  }
146
150
 
147
151
  export declare class BlazeAlert extends BaseWidget {
@@ -676,6 +680,7 @@ export interface IBlazeSDKOptions {
676
680
  geoLocation?: string;
677
681
  staticContent?: boolean;
678
682
  runInShadowDom?: boolean;
683
+ shouldModifyUrlWithStoryId?: boolean;
679
684
  }
680
685
 
681
686
  export interface IDatabase {
@@ -777,15 +782,18 @@ export type IWidgetViewOptions = IWidgetViewOptionsWithLabels | IWidgetViewOptio
777
782
  export interface IWidgetView {
778
783
  setTheme: (theme: IWidgetTheme) => void;
779
784
  getTheme: () => IWidgetTheme;
780
- setLabels: (labels: string | string[] | BlazeWidgetLabel) => void;
781
- setLabelsPriority: (labelsPriority: string) => void;
782
- setContentIds: (storyIds: string[]) => void;
785
+ setLabels: (labels: string | string[] | BlazeWidgetLabel, options?: ISetWidgetOptions) => void;
786
+ setLabelsPriority: (labelsPriority: string, options?: ISetWidgetOptions) => void;
787
+ setContentIds: (storyIds: string[], options?: ISetWidgetOptions) => void;
783
788
  reload: () => void;
784
789
  updateWidgetUI: () => void;
785
790
  setMaxItemsDisplaySize: (size: number) => void;
786
791
  setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
787
792
  updateOverrideStyles: (perItemStyleOverrides: PerItemStyleOverrides) => void;
788
793
  }
794
+ export interface ISetWidgetOptions {
795
+ shouldReloadData?: boolean;
796
+ }
789
797
 
790
798
  declare const AdServiceClass_base: {
791
799
  new (): {};
@@ -1046,6 +1054,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1046
1054
  private _geoLocation;
1047
1055
  private _staticContent;
1048
1056
  private _runInShadowDom;
1057
+ private _shouldModifyUrlWithStoryId;
1049
1058
  private _googleCustomNativeAdHandler?;
1050
1059
  protected constructor();
1051
1060
  init(options: IBlazeSDKOptions): Promise<void>;
@@ -1069,6 +1078,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
1069
1078
  get previewUrl(): string;
1070
1079
  get previewMomentsUrl(): string;
1071
1080
  get runInShadowDom(): boolean;
1081
+ get shouldModifyUrlWithStoryId(): boolean;
1072
1082
  get googleCustomNativeAdHandler(): CustomNativeAdHandler | undefined;
1073
1083
  set googleCustomNativeAdHandler(value: CustomNativeAdHandler | undefined);
1074
1084
  }
@@ -1321,6 +1331,7 @@ export interface IndicatorStyle {
1321
1331
  backgroundImage: string;
1322
1332
  borderRadius: string;
1323
1333
  borderColor: string;
1334
+ thumbnailBorderColor: string;
1324
1335
  borderWidth: number;
1325
1336
  text: string;
1326
1337
  textColor: string;
@@ -1351,8 +1362,8 @@ export interface LayoutStyle {
1351
1362
  statusLiveUnreadStyle: IndicatorStyle;
1352
1363
  statusReadStyle: IndicatorStyle;
1353
1364
  statusUnreadStyle: IndicatorStyle;
1354
- badgeIndicatorStyle: IndicatorStyle;
1355
1365
  statusIndicatorPosition: PositionType;
1366
+ badgeIndicatorStyle: IndicatorStyle;
1356
1367
  badgePosition: PositionType;
1357
1368
  }
1358
1369
  export interface LabelStyle {
@@ -1360,7 +1371,7 @@ export interface LabelStyle {
1360
1371
  gap: number;
1361
1372
  width: number | 'auto';
1362
1373
  color: string;
1363
- height: number;
1374
+ height: string | number;
1364
1375
  padding: string;
1365
1376
  font: string;
1366
1377
  fontSize: string;
@@ -1868,6 +1879,7 @@ export declare function GuardNullOrEmpty(name: string, value: any): void;
1868
1879
  export declare function formatDuration(startDate: Date): string;
1869
1880
  export declare function isCssPropertySupported(property: string): boolean;
1870
1881
  export declare function pixelsToNumber(pxString: string): number;
1882
+ export declare function convertCssUnitToNumber(cssValue: string | number): number;
1871
1883
  export declare function isObject(item: any): boolean;
1872
1884
  export declare function mergeDeep(target: any, ...sources: any[]): any;
1873
1885
  export declare function cloneDeep<T>(target: T): T;
@@ -2014,6 +2026,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
2014
2026
  private handleWidgetClick;
2015
2027
  private setData;
2016
2028
  getThumbnailUrl(): string;
2029
+ setThumbnailBorderColor(color: string): void;
2017
2030
  private updateLabel;
2018
2031
  private resetWidgetItemStyles;
2019
2032
  private updateContainerStyles;
@@ -2069,6 +2082,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
2069
2082
  analyticsStack: Record<WidgetAction, boolean>;
2070
2083
  onResizeEvent: (this: Window, ev: UIEvent) => void;
2071
2084
  shouldReloadWhenPlayerIsClosed: boolean;
2085
+ shouldReloadData: boolean;
2072
2086
  get refElement(): ShadowRoot | this;
2073
2087
  constructor();
2074
2088
  onResizeEventDelay(): void;
@@ -2084,11 +2098,12 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
2084
2098
  getParentHeightWithoutPadding(): number | null;
2085
2099
  setId(id: string): void;
2086
2100
  handlePopState(): void;
2101
+ private setReloadData;
2087
2102
  addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
2088
2103
  set storyIds(value: string);
2089
- setContentIds(storyIds: string[]): void;
2090
- setLabelsPriority(labelsPriority: string): void;
2091
- setLabels(labels: labelType): void;
2104
+ setContentIds(storyIds: string[], options?: ISetWidgetOptions): void;
2105
+ setLabelsPriority(labelsPriority: string, options?: ISetWidgetOptions): void;
2106
+ setLabels(labels: labelType, options?: ISetWidgetOptions): void;
2092
2107
  getTheme(): IWidgetTheme;
2093
2108
  setTheme(theme: IWidgetTheme | string): void;
2094
2109
  private get theme();
@@ -2368,6 +2383,7 @@ export interface IShareButton {
2368
2383
  export declare class BlazeWidgetShareModal extends BaseWidget {
2369
2384
  shareContainer: BlazeDiv;
2370
2385
  shareDrawer: BlazeDrawer;
2386
+ shareUrl: string;
2371
2387
  onOpen: (() => void) | undefined;
2372
2388
  onClose: (() => void) | undefined;
2373
2389
  onClick?: ((button: BlazeShareButton) => void);
@@ -2377,7 +2393,7 @@ export declare class BlazeWidgetShareModal extends BaseWidget {
2377
2393
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
2378
2394
  onDarwerOpen(): void;
2379
2395
  onDrawerClose(): void;
2380
- open(): void;
2396
+ open(shareUrl: string): void;
2381
2397
  close(): void;
2382
2398
  renderButtons(): void;
2383
2399
  renderTitle(): void;