@wscsports/blaze-web-sdk 0.1.77 → 0.1.691

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.77",
3
+ "version": "0.1.691",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -16,6 +16,7 @@
16
16
  "devDependencies": {
17
17
  "@types/animejs": "^3.1.7",
18
18
  "@types/hammerjs": "^2.0.41",
19
+ "@types/lodash": "^4.14.195",
19
20
  "@types/ua-parser-js": "^0.7.36",
20
21
  "css-loader": "^6.8.1",
21
22
  "html-webpack-plugin": "^5.5.3",
@@ -32,7 +33,6 @@
32
33
  "dependencies": {
33
34
  "animejs": "^3.2.1",
34
35
  "hammerjs": "^2.0.8",
35
- "intersection-observer": "^0.12.2",
36
36
  "ua-parser-js": "^1.0.36"
37
37
  }
38
38
  }
@@ -1,6 +1,4 @@
1
1
  export declare function setDoNotTrack(value: boolean): void;
2
- export declare function setGeoLocation(value: string): void;
3
- export declare function setExternalUserId(value: string): void;
4
2
  export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
5
3
  export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
6
4
  export declare function WidgetGridView(containerId: string, options: IWidgetViewOptions): IWidgetView;
@@ -15,7 +13,6 @@ declare const _default: {
15
13
  Theme: typeof Theme;
16
14
  addDelegateListener: typeof addDelegateListener;
17
15
  setDoNotTrack: typeof setDoNotTrack;
18
- setGeoLocation: typeof setGeoLocation;
19
16
  LabelBuilder: typeof LabelBuilder;
20
17
  Delegations: typeof Delegation;
21
18
  };
@@ -109,6 +106,7 @@ export declare class URLManager {
109
106
  static isBackWasCalled: boolean;
110
107
  static resetLocation(): void;
111
108
  static updateLocationStoryHash(story?: IStory): void;
109
+ static getPlayerTypeFromUrl(): "Widget" | "Share" | "SingleStory" | undefined;
112
110
  }
113
111
 
114
112
  export declare class BlazeAlert extends BaseWidget {
@@ -262,49 +260,25 @@ export declare enum WidgetAction {
262
260
  Visible = "widget_visible",
263
261
  Click = "widget_click"
264
262
  }
265
- export declare enum AdAction {
266
- View = "ad_view",
267
- Exit = "ad_exit",
268
- Click = "ad_click"
269
- }
270
- export declare const StoryToAdActionMapper: {
271
- story_page_start: AdAction;
272
- story_page_exit: AdAction;
273
- cta_click: AdAction;
274
- };
275
263
  type ExposedFields = {
276
- [key in StoryAction | WidgetAction | AdAction]?: string[];
264
+ [key in StoryAction | WidgetAction]?: string[];
277
265
  };
278
266
  export declare const exposedFieldsByAction: ExposedFields;
279
267
 
280
268
  export * from './analytics.constants';
281
- export * from './iso-country-codes.constants';
282
-
283
- export declare const CountryCodes: readonly ["AF", "AX", "AL", "DZ", "AS", "AD", "AO", "AI", "AQ", "AG", "AR", "AM", "AW", "AU", "AT", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "UG", "UA", "AE", "GB", "US", "UM", "UY", "UZ", "VU", "VE", "VN", "VG", "VI", "WF", "EH", "YE", "ZM", "ZW"];
284
269
 
285
270
  export declare class Database implements IDatabase {
286
271
  private readonly options;
287
272
  constructor(options: IDatabaseOptions);
288
273
  dbInstance: IDBDatabase;
289
274
  init(options: IDatabaseInitOptions): Promise<void>;
290
- createTransaction(tableName: string, mode: 'readonly' | 'readwrite'): IDBObjectStore | undefined;
275
+ createTransaction(tableName: string, mode: 'readonly' | 'readwrite'): IDBObjectStore;
291
276
  get<T>(tableName: string, key: string): Promise<IResponse<T>>;
292
277
  update<T>(tableName: string, value: any): Promise<IResponse<T>>;
293
- private clearAndRecreateDatabase;
294
278
  }
295
279
 
296
280
  export * from './database';
297
281
 
298
- interface IAdInfoConfiguration {
299
- adLocationsIndexes: Array<number>;
300
- isActive: boolean;
301
- }
302
- export interface IAdInfo {
303
- path: string;
304
- type: string;
305
- configuration: IAdInfoConfiguration;
306
- }
307
-
308
282
  export interface IContent {
309
283
  id: string;
310
284
  title: string;
@@ -352,7 +326,7 @@ export interface IMoment extends IContent {
352
326
  };
353
327
  }
354
328
 
355
- export interface IContentPage {
329
+ export interface IPage {
356
330
  id: string;
357
331
  type: 'Content';
358
332
  index: number;
@@ -362,19 +336,7 @@ export interface IContentPage {
362
336
  baseLayer: ILayer;
363
337
  cta: ICTA;
364
338
  hasViewed: boolean;
365
- ignoreReadStatusForStory: boolean;
366
- createTime: string;
367
- }
368
- export interface IAdPage {
369
- id: string;
370
- type: 'Ad';
371
- duration: number;
372
- hasViewed: boolean;
373
- ignoreReadStatusForStory: boolean;
374
- createTime: string;
375
- adPath: string;
376
339
  }
377
- export type IPage = IAdPage | IContentPage;
378
340
 
379
341
  export interface IRendition {
380
342
  url: string;
@@ -385,7 +347,6 @@ export interface IStory extends IContent {
385
347
  isLive: boolean;
386
348
  pages: IPage[];
387
349
  isAd: boolean;
388
- adInfo?: IAdInfo;
389
350
  }
390
351
 
391
352
  export interface IThumbnail {
@@ -428,7 +389,6 @@ export * from './event.enum';
428
389
 
429
390
  export interface WidgetsTagNameMap {
430
391
  'blaze-sdk': BlazeWidgetSDK;
431
- 'blaze-widget-ad': BlazeWidgetStoryAd;
432
392
  'blaze-widget-modal': BlazeWidgetModal;
433
393
  'blaze-widget-item': BlazeWidgetItem;
434
394
  'blaze-widget-layout': BlazeWidgetLayout;
@@ -456,7 +416,6 @@ export interface WidgetsTagNameMap {
456
416
  }
457
417
  interface WidgetsTagNameOptionsMap {
458
418
  'blaze-sdk': {};
459
- 'blaze-widget-ad': {};
460
419
  'blaze-widget-modal': {};
461
420
  'blaze-widget-item': {};
462
421
  'blaze-widget-layout': {};
@@ -525,9 +484,6 @@ export interface IBlazeSDKOptions {
525
484
  previewUrl?: string;
526
485
  previewMomentUrl?: string;
527
486
  doNotTrack?: boolean;
528
- externalUserId?: string;
529
- geoLocation?: string;
530
- loadByStaticContent?: boolean;
531
487
  }
532
488
 
533
489
  export interface IDatabase {
@@ -607,17 +563,6 @@ export interface IWidgetView {
607
563
  setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
608
564
  }
609
565
 
610
- declare const AdServiceClass_base: {
611
- new (): {};
612
- _instance: AdServiceClass;
613
- getInstance(): AdServiceClass;
614
- };
615
- declare abstract class AdServiceClass extends AdServiceClass_base implements IService {
616
- canRunAds: boolean;
617
- init(): Promise<void>;
618
- }
619
- export declare const AdService: AdServiceClass;
620
-
621
566
  declare const AlertServiceClass_base: {
622
567
  new (): {};
623
568
  _instance: AlertServiceClass;
@@ -629,6 +574,16 @@ declare abstract class AlertServiceClass extends AlertServiceClass_base implemen
629
574
  }
630
575
  export declare const AlertService: AlertServiceClass;
631
576
 
577
+ export declare enum AdAction {
578
+ Request = "ad_request",
579
+ Load = "ad_load",
580
+ Insert = "ad_insert",
581
+ View = "ad_view",
582
+ Click = "ad_click",
583
+ Exit = "ad_exit",
584
+ Pause = "ad_playback_pause",
585
+ Play = "ad_playback_play"
586
+ }
632
587
  export declare enum SessionAction {
633
588
  Start = "start",
634
589
  End = "end"
@@ -645,7 +600,6 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
645
600
  bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
646
601
  pushSessionEvent(action: SessionAction, body: Partial<WidgetEvent>, label?: string | undefined): void;
647
602
  pushStoryEvent(action: StoryAction, body: Partial<StoryEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
648
- pushAdEvent(action: AdAction, body: Partial<AdEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
649
603
  pushWidgetEvent(action: WidgetAction, body: Partial<WidgetEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
650
604
  setupEvent(category: Category, action: string, body: object, label?: string | undefined, referrer?: ReferringEventInfo | undefined): AnalyticsEvent;
651
605
  }
@@ -653,12 +607,10 @@ export declare const AnalyticsService: AnalyticsServiceClass;
653
607
  export declare enum Category {
654
608
  Story = "story",
655
609
  Widget = "widget",
656
- Ad = "ad",
657
610
  Session = "session"
658
611
  }
659
612
  declare class UserEventInfo {
660
613
  'generated_user_id': string;
661
- 'external_user_id': string;
662
614
  'user_id': string;
663
615
  'age': number;
664
616
  'gender': string;
@@ -703,7 +655,6 @@ export declare class ReferringEventInfo {
703
655
  'referrer_page_type': string;
704
656
  'referrer_page_url': string;
705
657
  'referrer_page_domain': string;
706
- 'labels_expression': string;
707
658
  'session_referrer_page_type': string;
708
659
  'session_referrer_url': string;
709
660
  'session_referrer_domain': string;
@@ -737,7 +688,6 @@ export declare class AnalyticsEvent {
737
688
  'referring': ReferringEventInfo;
738
689
  story: Partial<StoryEvent> | undefined;
739
690
  widget: Partial<WidgetEvent> | undefined;
740
- ad: Partial<AdEvent> | undefined;
741
691
  }
742
692
  export declare class StoryEvent {
743
693
  'story_start_id': string;
@@ -756,11 +706,10 @@ export declare class StoryEvent {
756
706
  'content_duration_viewed': number;
757
707
  'story_page_duration': number;
758
708
  'story_page_duration_viewed_percent': number;
759
- 'labels_expression': string;
760
709
  'story_session_id': string;
761
710
  'story_page_index': number;
762
711
  'is_last_page': boolean;
763
- 'audio_state': string;
712
+ 'audio_state': boolean;
764
713
  'playback_action_method': 'Press' | 'Release' | 'Click';
765
714
  }
766
715
  export declare class WidgetEvent {
@@ -774,7 +723,6 @@ export declare class WidgetEvent {
774
723
  'widget_size': string;
775
724
  'widget_content_count': number;
776
725
  'widget_content_list': string;
777
- 'labels_expression': string;
778
726
  'content_id': string;
779
727
  'content_name': string;
780
728
  'content_version_id': string;
@@ -786,26 +734,6 @@ export declare class WidgetEvent {
786
734
  'page_type': string;
787
735
  'page_size': string;
788
736
  }
789
- export declare class AdEvent {
790
- 'advertiser_id': string;
791
- 'advertiser_name': string;
792
- 'campaign_id': string;
793
- 'campaign_name': string;
794
- 'ad_server': string;
795
- 'story_id': string;
796
- 'story_title': string;
797
- 'ad_insertion_logic': string;
798
- 'ad_index': string;
799
- 'ad_start_trigger': string;
800
- 'ad_exit_trigger': string;
801
- 'ad_duration': string;
802
- 'ad_duration_viewed_percent': string;
803
- 'playback_action_method': string;
804
- 'audio_state': string;
805
- 'skip_config': string;
806
- 'content_type': string;
807
- 'ad_path': string;
808
- }
809
737
 
810
738
  declare const ApiServiceClass_base: {
811
739
  new (): {};
@@ -815,31 +743,21 @@ declare const ApiServiceClass_base: {
815
743
  declare abstract class ApiServiceClass extends ApiServiceClass_base implements IService {
816
744
  api: API;
817
745
  init(): Promise<void>;
818
- private setAdsOnStories;
819
- getStoriesByIds(storyIds: string[], orderType?: OrderType): Promise<{
746
+ getStoriesByIds(storyIds: string[], orderType?: OrderType): Promise<IResponse<{
747
+ assetsExpiryTime: string;
748
+ totalItems: number;
820
749
  result: IStory[];
821
- data: {
822
- assetsExpiryTime: string;
823
- totalItems: number;
824
- result: IStory[];
825
- };
826
- error?: Error | undefined;
827
- }>;
828
- getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<{
750
+ }>>;
751
+ getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
752
+ assetsExpiryTime: string;
753
+ totalItems: number;
829
754
  result: IStory[];
830
- data: {
831
- assetsExpiryTime: string;
832
- totalItems: number;
833
- result: IStory[];
834
- };
835
- error?: Error | undefined;
836
- }>;
755
+ }>>;
837
756
  getShorts(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
838
757
  assetsExpiryTime: string;
839
758
  totalItems: number;
840
759
  result: IMoment[];
841
760
  }>>;
842
- getStaticStories(): Promise<IStory | null>;
843
761
  preview(storyId: string, publishedOnly?: boolean): Promise<IResponse<IStory & {
844
762
  status: number;
845
763
  }>>;
@@ -862,9 +780,6 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
862
780
  private _previewMomentUrl;
863
781
  private _sendAnaltyics;
864
782
  private _doNotTrack;
865
- private _externalUserId;
866
- private _geoLocation;
867
- private _staticContent;
868
783
  protected constructor();
869
784
  init(options: IBlazeSDKOptions): Promise<void>;
870
785
  private _urls;
@@ -874,14 +789,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
874
789
  private set environment(value);
875
790
  get sendAnalytics(): boolean;
876
791
  get analyticsApiUrl(): string;
877
- get externalUserId(): string;
878
- set externalUserId(value: string);
879
792
  get doNotTrack(): boolean;
880
793
  set doNotTrack(value: boolean);
881
- get geoLocation(): string;
882
- set geoLocation(value: string);
883
- get staticContent(): boolean;
884
- set staticContent(value: boolean);
885
794
  get apiUrl(): string;
886
795
  get apiKey(): string;
887
796
  get previewUrl(): string;
@@ -1535,9 +1444,12 @@ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'R
1535
1444
  export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
1536
1445
  export type PlayType = typeof PlayTypeArray[number];
1537
1446
 
1538
- export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddleTop' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
1447
+ export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
1539
1448
  export type PositionOutsideType = 'outsideUnder' | 'outsideBelow' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
1540
1449
  export type PositionType = PositionInsideType | PositionOutsideType;
1450
+ export type PositionCircleRowLabelType = 'outsideBelow' | 'outsideAbove';
1451
+ export type PositionRectangleRowLabelType = PositionCircleRowLabelType | PositionInsideType;
1452
+ export type PositionRectangleRowHorizontalLabelType = PositionInsideType;
1541
1453
 
1542
1454
  export type SeverityType = 'error' | 'warning' | 'info' | 'success';
1543
1455
 
@@ -1545,10 +1457,10 @@ export type SizeType = 'small' | 'medium' | 'large';
1545
1457
 
1546
1458
  export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
1547
1459
  export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
1548
- export type ThumbnailShape = 'Circle' | 'Rectangle';
1460
+ export type ThumbnailShape = 'circle' | 'rectangle';
1549
1461
  export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
1550
1462
 
1551
- export type WidgetType = 'Row' | 'Grid';
1463
+ export type WidgetType = 'row' | 'grid';
1552
1464
 
1553
1465
  interface ChipSizeOptions {
1554
1466
  statusLiveStyle: IndicatorStyle;
@@ -1557,17 +1469,9 @@ interface ChipSizeOptions {
1557
1469
  statusUnreadStyle: IndicatorStyle;
1558
1470
  }
1559
1471
  export declare function getChipSize(options: ChipSizeOptions): DOMRect;
1560
- export declare function getMaxChipSize(layout: LayoutStyle): DOMRect;
1561
- export declare function calculateChipSize(statusIndicatorPosition: PositionType, layoutStyle: LayoutStyle): {
1562
- chipHeight: number;
1563
- chipWidth: number;
1564
- };
1565
1472
 
1566
1473
  export declare function delay(ms: number): Promise<void>;
1567
1474
 
1568
- type CountryCode = typeof CountryCodes[number];
1569
- export declare function isValidCountryCode(countryCode: string): countryCode is CountryCode;
1570
-
1571
1475
  export declare function GuardNullOrEmpty(name: string, value: any): void;
1572
1476
 
1573
1477
  export declare function formatDuration(startDate: Date): string;
@@ -1592,24 +1496,10 @@ export declare function flattenObject<T extends Record<string, any>>(obj: T): Re
1592
1496
 
1593
1497
  export * from './chip.utils';
1594
1498
  export * from './common.utils';
1595
- export * from './country-location.utils';
1596
1499
  export * from './guard.utils';
1597
1500
  export * from './helper';
1598
1501
  export * from './regex.utils';
1599
1502
  export * from './stopwatch';
1600
- export * from './position.utils';
1601
-
1602
- export declare function calculatePosition(statusIndicatorPosition: PositionType): {
1603
- isOutside: boolean;
1604
- isInside: boolean;
1605
- isTop: boolean;
1606
- isMiddle: boolean;
1607
- isBottom: boolean;
1608
- isBelow: boolean;
1609
- isAbove: boolean;
1610
- isLeft: boolean;
1611
- isRight: boolean;
1612
- };
1613
1503
 
1614
1504
  export declare const RegexHash: RegExp;
1615
1505
  export declare const RegexHashPlayType: RegExp;
@@ -1643,37 +1533,6 @@ export * from './widget-story-player';
1643
1533
  export * from './widget-story-preview';
1644
1534
  export * from './widget-story-video';
1645
1535
 
1646
- export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
1647
- data: IPage | undefined;
1648
- private isCurrectlyDisplay;
1649
- private adContainer;
1650
- private placeholderContainer;
1651
- private googletag;
1652
- private isMuted;
1653
- private failToLoadTimeout?;
1654
- constructor(storyParent: BlazeWidgetStory);
1655
- connectedCallback(): void;
1656
- disconnectedCallback(): void;
1657
- render(): void;
1658
- get currentTime(): number;
1659
- set currentTime(value: number);
1660
- get duration(): number;
1661
- get progress(): number;
1662
- set muted(isMuted: boolean);
1663
- getAdIframeRef(): HTMLIFrameElement | null;
1664
- changeAdMutedState(isMuted: boolean): void;
1665
- setData(data: IPage): void;
1666
- play(): void;
1667
- get paused(): boolean;
1668
- pause(): void;
1669
- removeLoader(): void;
1670
- loadPoster(): void;
1671
- hide(): void;
1672
- display(onFail?: () => void): void;
1673
- mainElement(): CanvasImageSource;
1674
- private initStyles;
1675
- }
1676
-
1677
1536
  export interface BlazeWidgetItemOptions {
1678
1537
  theme: IWidgetTheme;
1679
1538
  content: IStory;
@@ -1709,17 +1568,23 @@ export declare class BlazeWidgetItem extends BaseWidget {
1709
1568
  private setData;
1710
1569
  getThumbnailUrl(): string;
1711
1570
  private removeSkeleton;
1571
+ private updateWidgetLayout;
1712
1572
  handelOnCompleteLoadingThumbnail(): void;
1713
1573
  private updateLabel;
1714
- private loadThumbnail;
1574
+ private updateThumbnail;
1715
1575
  private updateContainerStyles;
1716
1576
  private updateLabelStyles;
1717
1577
  private updateInsideLabelStyles;
1718
1578
  private updateOutsideLabelStyles;
1719
1579
  private updateThumbnailStyles;
1580
+ getMaxChipSize(): DOMRect;
1581
+ get chipDimenssions(): {
1582
+ chipWidth: number;
1583
+ chipHeight: number;
1584
+ };
1720
1585
  private updateChipStyles;
1721
1586
  setTheme(theme: IWidgetTheme): void;
1722
- setChipStyle(): void;
1587
+ setLive(): void;
1723
1588
  event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1724
1589
  render(): void;
1725
1590
  }
@@ -1735,6 +1600,7 @@ export declare class BlazeWidgetLabel {
1735
1600
  toString(): string;
1736
1601
  private static createLabel;
1737
1602
  private static validateAndProceed;
1603
+ private static validateNoCommas;
1738
1604
  private static isValidLabelFormat;
1739
1605
  }
1740
1606
 
@@ -1748,17 +1614,14 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1748
1614
  preset: IWidgetTheme | undefined;
1749
1615
  thumbnailWidth: number | undefined;
1750
1616
  thumbnailHeight: number | undefined;
1751
- widgetHeight: number;
1752
- parentHeight: number | undefined;
1753
- intersectionObserver: IntersectionObserver;
1754
- heightObserver: MutationObserver;
1755
1617
  reloadTimeout: NodeJS.Timeout | undefined;
1756
1618
  analyticsStack: Record<WidgetAction, boolean>;
1619
+ intersectionObserver: IntersectionObserver;
1757
1620
  onResizeEvent: (this: Window, ev: UIEvent) => void;
1621
+ isWidgetReload: boolean | undefined;
1622
+ widgetHeight: number;
1758
1623
  constructor();
1759
- handleHeightChangeMutation(mutationsList: MutationRecord[]): void;
1760
1624
  connectedCallback(): void;
1761
- getParentHeightWithoutPadding(): number | null;
1762
1625
  disconnectedCallback(): void;
1763
1626
  set storyIds(value: string);
1764
1627
  setContentIds(storyIds: string[]): void;
@@ -1782,18 +1645,13 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1782
1645
  loadStories(): Promise<void>;
1783
1646
  private get theme();
1784
1647
  render(): void;
1785
- calculateLabelSizes(labelStyle: LabelStyle, lineNumber: number): {
1786
- labelWidth: number | "auto";
1787
- labelAdditionalWidth: number;
1788
- labelAdditionalHeight: number;
1789
- };
1790
1648
  maxSize(): number;
1791
1649
  event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1792
- isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
1793
1650
  updateWidgetsData(): void;
1794
1651
  reorderWidgets(): void;
1795
1652
  connectWidgets(): void;
1796
1653
  get thumbnailShape(): ThumbnailShape;
1654
+ getMaxChipSize(): DOMRect;
1797
1655
  widgetType(): WidgetType;
1798
1656
  }
1799
1657
 
@@ -1947,7 +1805,7 @@ export declare class BlazeWidgetScrollable extends BaseWidget {
1947
1805
  }
1948
1806
 
1949
1807
  export declare class BlazeWidgetSDK extends BaseWidget {
1950
- modalStory: BlazeWidgetStoryModal | undefined;
1808
+ modalStoryIds: BlazeWidgetStoryModal | undefined;
1951
1809
  onResizeEvent: (this: Window, ev: UIEvent) => void;
1952
1810
  static get observedAttributes(): string[];
1953
1811
  constructor();
@@ -1955,13 +1813,10 @@ export declare class BlazeWidgetSDK extends BaseWidget {
1955
1813
  disconnectedCallback(): void;
1956
1814
  onResize(): void;
1957
1815
  loadStoriesByHash(storyIds: string): Promise<void>;
1958
- loadStoriesByStaticContent(): Promise<void>;
1959
1816
  attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
1960
1817
  private getConfigAttributes;
1961
1818
  private initialize;
1962
- private injectToHead;
1963
1819
  private injectFontResource;
1964
- private injectGoogleTag;
1965
1820
  }
1966
1821
 
1967
1822
  export interface IShareButton {
@@ -2001,7 +1856,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
2001
1856
  removeLoader(): any;
2002
1857
  load(): void;
2003
1858
  unload(): void;
2004
- display(onFail?: () => void): void;
1859
+ display(): void;
2005
1860
  hide(): void;
2006
1861
  set muted(value: boolean);
2007
1862
  get duration(): number;
@@ -2097,6 +1952,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2097
1952
  private cleanupHammer;
2098
1953
  renderBackground(): void;
2099
1954
  prefetchNeighbours(storyLocation: number, action: string): void;
1955
+ fetch(labels: string, ordering?: OrderType): Promise<void>;
2100
1956
  setStories(stories: BlazeWidgetStory[]): void;
2101
1957
  close(): Promise<void>;
2102
1958
  seek(storyId: string): void;
@@ -2105,7 +1961,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2105
1961
  resetPosition(): void;
2106
1962
  play(): void;
2107
1963
  clean(): void;
2108
- onCompleteAnimation(currStory: BlazeWidgetStory, mode: 'NEXT' | 'PREV'): void;
2109
1964
  nextAnimation(): AnimeTimelineInstance | undefined;
2110
1965
  prevAnimation(): AnimeTimelineInstance | undefined;
2111
1966
  onAnimationEnd(): void;
@@ -2115,7 +1970,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2115
1970
  goNext(): void;
2116
1971
  handleAnimation(distance: number, story: BlazeWidgetStory, currentAnimation?: AnimeInstance | null): void;
2117
1972
  onSmallGestures(currentAnimation: AnimeInstance, currentStory: BlazeWidgetStory): void;
2118
- onKeyDown(ev: KeyboardEvent): false | undefined;
1973
+ onKeyDown(ev: KeyboardEvent): boolean;
2119
1974
  render(): void;
2120
1975
  }
2121
1976
 
@@ -2249,7 +2104,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2249
2104
  widgetParent: BlazeWidgetItem;
2250
2105
  playCallback: any;
2251
2106
  sessionId: string;
2252
- startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | 'Static Load' | '';
2107
+ startTrigger: 'Widget' | 'Deeplink' | 'Swipe' | 'Skip' | '';
2253
2108
  exitTrigger: 'Swipe' | 'Swipe Down' | 'Skip' | 'Close Button' | 'CTA Click' | 'Escape Button' | '';
2254
2109
  navigationType: 'Automatic' | 'Manual' | undefined;
2255
2110
  navigationDirection: 'Forwards' | 'Backwards' | undefined;
@@ -2263,19 +2118,17 @@ export declare class BlazeWidgetStory extends HTMLElement {
2263
2118
  isNavigationPending: boolean;
2264
2119
  navigationTimeout: NodeJS.Timeout | null;
2265
2120
  lastPageIndexToResume: number;
2266
- elementsToHideOnAds: HTMLElement[];
2267
- muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
2268
2121
  constructor();
2269
2122
  onShareClick(): Promise<void>;
2270
2123
  updateChip(): void;
2271
2124
  setTheme(storyPlayerStyle: StoryPlayerStyle): void;
2272
- adjustAdView(): void;
2273
2125
  updatePlayerButtonIcons(): void;
2274
2126
  onCtaClick(event: Event): boolean;
2275
2127
  playToggle(): void;
2276
2128
  muteToggle(): boolean;
2277
2129
  setWidgetParent(parent: BlazeWidgetItem): void;
2278
2130
  resetStoryLocationIndexToLastUnseen(): void;
2131
+ areAllPagesBeenReadByUser(): boolean;
2279
2132
  setData(data: any, modal?: any): void;
2280
2133
  get currentPage(): BlazeWidgetStoryBase;
2281
2134
  get nextPage(): BlazeWidgetStoryBase;
@@ -2291,7 +2144,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2291
2144
  removeFromCache(): void;
2292
2145
  load(): void;
2293
2146
  play(): void;
2294
- event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): void;
2147
+ event(action: StoryAction, data: Partial<StoryEvent>, label?: string | undefined): void;
2295
2148
  connectedCallback(): void;
2296
2149
  onShareModalClose(): void;
2297
2150
  onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;