@wscsports/blaze-web-sdk 0.1.71 → 0.1.75

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.71",
3
+ "version": "0.1.75",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -1,4 +1,5 @@
1
1
  export declare function setDoNotTrack(value: boolean): void;
2
+ export declare function setGeoLocation(value: string): void;
2
3
  export declare function setExternalUserId(value: string): void;
3
4
  export declare function Initialize(apiKey: string, options?: Omit<IBlazeSDKOptions, "apiKey">): Promise<void>;
4
5
  export declare function WidgetRowView(containerId: string, options: IWidgetViewOptions): IWidgetView;
@@ -14,6 +15,7 @@ declare const _default: {
14
15
  Theme: typeof Theme;
15
16
  addDelegateListener: typeof addDelegateListener;
16
17
  setDoNotTrack: typeof setDoNotTrack;
18
+ setGeoLocation: typeof setGeoLocation;
17
19
  LabelBuilder: typeof LabelBuilder;
18
20
  Delegations: typeof Delegation;
19
21
  };
@@ -261,12 +263,25 @@ export declare enum WidgetAction {
261
263
  Visible = "widget_visible",
262
264
  Click = "widget_click"
263
265
  }
266
+ export declare enum AdAction {
267
+ View = "ad_view",
268
+ Exit = "ad_exit",
269
+ Click = "ad_click"
270
+ }
271
+ export declare const StoryToAdActionMapper: {
272
+ story_page_start: AdAction;
273
+ story_page_exit: AdAction;
274
+ cta_click: AdAction;
275
+ };
264
276
  type ExposedFields = {
265
- [key in StoryAction | WidgetAction]?: string[];
277
+ [key in StoryAction | WidgetAction | AdAction]?: string[];
266
278
  };
267
279
  export declare const exposedFieldsByAction: ExposedFields;
268
280
 
269
281
  export * from './analytics.constants';
282
+ export * from './iso-country-codes.constants';
283
+
284
+ 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"];
270
285
 
271
286
  export declare class Database implements IDatabase {
272
287
  private readonly options;
@@ -281,6 +296,16 @@ export declare class Database implements IDatabase {
281
296
 
282
297
  export * from './database';
283
298
 
299
+ interface IAdInfoConfiguration {
300
+ adLocationsIndexes: Array<number>;
301
+ isActive: boolean;
302
+ }
303
+ export interface IAdInfo {
304
+ path: string;
305
+ type: string;
306
+ configuration: IAdInfoConfiguration;
307
+ }
308
+
284
309
  export interface IContent {
285
310
  id: string;
286
311
  title: string;
@@ -328,7 +353,7 @@ export interface IMoment extends IContent {
328
353
  };
329
354
  }
330
355
 
331
- export interface IPage {
356
+ export interface IContentPage {
332
357
  id: string;
333
358
  type: 'Content';
334
359
  index: number;
@@ -339,7 +364,18 @@ export interface IPage {
339
364
  cta: ICTA;
340
365
  hasViewed: boolean;
341
366
  ignoreReadStatusForStory: boolean;
367
+ createTime: string;
368
+ }
369
+ export interface IAdPage {
370
+ id: string;
371
+ type: 'Ad';
372
+ duration: number;
373
+ hasViewed: boolean;
374
+ ignoreReadStatusForStory: boolean;
375
+ createTime: string;
376
+ adPath: string;
342
377
  }
378
+ export type IPage = IAdPage | IContentPage;
343
379
 
344
380
  export interface IRendition {
345
381
  url: string;
@@ -350,6 +386,7 @@ export interface IStory extends IContent {
350
386
  isLive: boolean;
351
387
  pages: IPage[];
352
388
  isAd: boolean;
389
+ adInfo?: IAdInfo;
353
390
  }
354
391
 
355
392
  export interface IThumbnail {
@@ -392,6 +429,7 @@ export * from './event.enum';
392
429
 
393
430
  export interface WidgetsTagNameMap {
394
431
  'blaze-sdk': BlazeWidgetSDK;
432
+ 'blaze-widget-ad': BlazeWidgetStoryAd;
395
433
  'blaze-widget-modal': BlazeWidgetModal;
396
434
  'blaze-widget-item': BlazeWidgetItem;
397
435
  'blaze-widget-layout': BlazeWidgetLayout;
@@ -419,6 +457,7 @@ export interface WidgetsTagNameMap {
419
457
  }
420
458
  interface WidgetsTagNameOptionsMap {
421
459
  'blaze-sdk': {};
460
+ 'blaze-widget-ad': {};
422
461
  'blaze-widget-modal': {};
423
462
  'blaze-widget-item': {};
424
463
  'blaze-widget-layout': {};
@@ -488,6 +527,7 @@ export interface IBlazeSDKOptions {
488
527
  previewMomentUrl?: string;
489
528
  doNotTrack?: boolean;
490
529
  externalUserId?: string;
530
+ geoLocation?: string;
491
531
  }
492
532
 
493
533
  export interface IDatabase {
@@ -567,6 +607,17 @@ export interface IWidgetView {
567
607
  setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
568
608
  }
569
609
 
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
+
570
621
  declare const AlertServiceClass_base: {
571
622
  new (): {};
572
623
  _instance: AlertServiceClass;
@@ -578,16 +629,6 @@ declare abstract class AlertServiceClass extends AlertServiceClass_base implemen
578
629
  }
579
630
  export declare const AlertService: AlertServiceClass;
580
631
 
581
- export declare enum AdAction {
582
- Request = "ad_request",
583
- Load = "ad_load",
584
- Insert = "ad_insert",
585
- View = "ad_view",
586
- Click = "ad_click",
587
- Exit = "ad_exit",
588
- Pause = "ad_playback_pause",
589
- Play = "ad_playback_play"
590
- }
591
632
  export declare enum SessionAction {
592
633
  Start = "start",
593
634
  End = "end"
@@ -604,6 +645,7 @@ declare abstract class AnalyticsServiceClass extends AnalyticsServiceClass_base
604
645
  bulkEvent(body: Partial<AnalyticsEvent>[]): Promise<any>;
605
646
  pushSessionEvent(action: SessionAction, body: Partial<WidgetEvent>, label?: string | undefined): void;
606
647
  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;
607
649
  pushWidgetEvent(action: WidgetAction, body: Partial<WidgetEvent>, label?: string | undefined, referrer?: ReferringEventInfo | undefined): void;
608
650
  setupEvent(category: Category, action: string, body: object, label?: string | undefined, referrer?: ReferringEventInfo | undefined): AnalyticsEvent;
609
651
  }
@@ -611,6 +653,7 @@ export declare const AnalyticsService: AnalyticsServiceClass;
611
653
  export declare enum Category {
612
654
  Story = "story",
613
655
  Widget = "widget",
656
+ Ad = "ad",
614
657
  Session = "session"
615
658
  }
616
659
  declare class UserEventInfo {
@@ -693,6 +736,7 @@ export declare class AnalyticsEvent {
693
736
  'referring': ReferringEventInfo;
694
737
  story: Partial<StoryEvent> | undefined;
695
738
  widget: Partial<WidgetEvent> | undefined;
739
+ ad: Partial<AdEvent> | undefined;
696
740
  }
697
741
  export declare class StoryEvent {
698
742
  'story_start_id': string;
@@ -714,7 +758,7 @@ export declare class StoryEvent {
714
758
  'story_session_id': string;
715
759
  'story_page_index': number;
716
760
  'is_last_page': boolean;
717
- 'audio_state': boolean;
761
+ 'audio_state': string;
718
762
  'playback_action_method': 'Press' | 'Release' | 'Click';
719
763
  }
720
764
  export declare class WidgetEvent {
@@ -739,6 +783,26 @@ export declare class WidgetEvent {
739
783
  'page_type': string;
740
784
  'page_size': string;
741
785
  }
786
+ export declare class AdEvent {
787
+ 'advertiser_id': string;
788
+ 'advertiser_name': string;
789
+ 'campaign_id': string;
790
+ 'campaign_name': string;
791
+ 'ad_server': string;
792
+ 'story_id': string;
793
+ 'story_title': string;
794
+ 'ad_insertion_logic': string;
795
+ 'ad_index': string;
796
+ 'ad_start_trigger': string;
797
+ 'ad_exit_trigger': string;
798
+ 'ad_duration': string;
799
+ 'ad_duration_viewed_percent': string;
800
+ 'playback_action_method': string;
801
+ 'audio_state': string;
802
+ 'skip_config': string;
803
+ 'content_type': string;
804
+ 'ad_path': string;
805
+ }
742
806
 
743
807
  declare const ApiServiceClass_base: {
744
808
  new (): {};
@@ -748,16 +812,25 @@ declare const ApiServiceClass_base: {
748
812
  declare abstract class ApiServiceClass extends ApiServiceClass_base implements IService {
749
813
  api: API;
750
814
  init(): Promise<void>;
751
- getStoriesByIds(storyIds: string[], orderType?: OrderType): Promise<IResponse<{
752
- assetsExpiryTime: string;
753
- totalItems: number;
815
+ private setAdsOnStories;
816
+ getStoriesByIds(storyIds: string[], orderType?: OrderType): Promise<{
754
817
  result: IStory[];
755
- }>>;
756
- getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
757
- assetsExpiryTime: string;
758
- totalItems: number;
818
+ data: {
819
+ assetsExpiryTime: string;
820
+ totalItems: number;
821
+ result: IStory[];
822
+ };
823
+ error?: Error | undefined;
824
+ }>;
825
+ getStories(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<{
759
826
  result: IStory[];
760
- }>>;
827
+ data: {
828
+ assetsExpiryTime: string;
829
+ totalItems: number;
830
+ result: IStory[];
831
+ };
832
+ error?: Error | undefined;
833
+ }>;
761
834
  getShorts(labels: string, orderType: OrderType, maxItemsSize?: number): Promise<IResponse<{
762
835
  assetsExpiryTime: string;
763
836
  totalItems: number;
@@ -786,6 +859,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
786
859
  private _sendAnaltyics;
787
860
  private _doNotTrack;
788
861
  private _externalUserId;
862
+ private _geoLocation;
789
863
  protected constructor();
790
864
  init(options: IBlazeSDKOptions): Promise<void>;
791
865
  private _urls;
@@ -799,6 +873,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
799
873
  set externalUserId(value: string);
800
874
  get doNotTrack(): boolean;
801
875
  set doNotTrack(value: boolean);
876
+ get geoLocation(): string;
877
+ set geoLocation(value: string);
802
878
  get apiUrl(): string;
803
879
  get apiKey(): string;
804
880
  get previewUrl(): string;
@@ -1452,12 +1528,9 @@ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'R
1452
1528
  export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
1453
1529
  export type PlayType = typeof PlayTypeArray[number];
1454
1530
 
1455
- export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
1531
+ export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddleTop' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
1456
1532
  export type PositionOutsideType = 'outsideUnder' | 'outsideBelow' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
1457
1533
  export type PositionType = PositionInsideType | PositionOutsideType;
1458
- export type PositionCircleRowLabelType = 'outsideBelow' | 'outsideAbove';
1459
- export type PositionRectangleRowLabelType = PositionCircleRowLabelType | PositionInsideType;
1460
- export type PositionRectangleRowHorizontalLabelType = PositionInsideType;
1461
1534
 
1462
1535
  export type SeverityType = 'error' | 'warning' | 'info' | 'success';
1463
1536
 
@@ -1465,10 +1538,10 @@ export type SizeType = 'small' | 'medium' | 'large';
1465
1538
 
1466
1539
  export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
1467
1540
  export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
1468
- export type ThumbnailShape = 'circle' | 'rectangle';
1541
+ export type ThumbnailShape = 'Circle' | 'Rectangle';
1469
1542
  export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
1470
1543
 
1471
- export type WidgetType = 'row' | 'grid';
1544
+ export type WidgetType = 'Row' | 'Grid';
1472
1545
 
1473
1546
  interface ChipSizeOptions {
1474
1547
  statusLiveStyle: IndicatorStyle;
@@ -1477,9 +1550,17 @@ interface ChipSizeOptions {
1477
1550
  statusUnreadStyle: IndicatorStyle;
1478
1551
  }
1479
1552
  export declare function getChipSize(options: ChipSizeOptions): DOMRect;
1553
+ export declare function getMaxChipSize(layout: LayoutStyle): DOMRect;
1554
+ export declare function calculateChipSize(statusIndicatorPosition: PositionType, layoutStyle: LayoutStyle): {
1555
+ chipHeight: number;
1556
+ chipWidth: number;
1557
+ };
1480
1558
 
1481
1559
  export declare function delay(ms: number): Promise<void>;
1482
1560
 
1561
+ type CountryCode = typeof CountryCodes[number];
1562
+ export declare function isValidCountryCode(countryCode: string): countryCode is CountryCode;
1563
+
1483
1564
  export declare function GuardNullOrEmpty(name: string, value: any): void;
1484
1565
 
1485
1566
  export declare function formatDuration(startDate: Date): string;
@@ -1504,10 +1585,24 @@ export declare function flattenObject<T extends Record<string, any>>(obj: T): Re
1504
1585
 
1505
1586
  export * from './chip.utils';
1506
1587
  export * from './common.utils';
1588
+ export * from './country-location.utils';
1507
1589
  export * from './guard.utils';
1508
1590
  export * from './helper';
1509
1591
  export * from './regex.utils';
1510
1592
  export * from './stopwatch';
1593
+ export * from './position.utils';
1594
+
1595
+ export declare function calculatePosition(statusIndicatorPosition: PositionType): {
1596
+ isOutside: boolean;
1597
+ isInside: boolean;
1598
+ isTop: boolean;
1599
+ isMiddle: boolean;
1600
+ isBottom: boolean;
1601
+ isBelow: boolean;
1602
+ isAbove: boolean;
1603
+ isLeft: boolean;
1604
+ isRight: boolean;
1605
+ };
1511
1606
 
1512
1607
  export declare const RegexHash: RegExp;
1513
1608
  export declare const RegexHashPlayType: RegExp;
@@ -1541,6 +1636,37 @@ export * from './widget-story-player';
1541
1636
  export * from './widget-story-preview';
1542
1637
  export * from './widget-story-video';
1543
1638
 
1639
+ export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
1640
+ data: IPage | undefined;
1641
+ private isCurrectlyDisplay;
1642
+ private adContainer;
1643
+ private placeholderContainer;
1644
+ private googletag;
1645
+ private isMuted;
1646
+ private failToLoadTimeout?;
1647
+ constructor(storyParent: BlazeWidgetStory);
1648
+ connectedCallback(): void;
1649
+ disconnectedCallback(): void;
1650
+ render(): void;
1651
+ get currentTime(): number;
1652
+ set currentTime(value: number);
1653
+ get duration(): number;
1654
+ get progress(): number;
1655
+ set muted(isMuted: boolean);
1656
+ getAdIframeRef(): HTMLIFrameElement | null;
1657
+ changeAdMutedState(isMuted: boolean): void;
1658
+ setData(data: IPage): void;
1659
+ play(): void;
1660
+ get paused(): boolean;
1661
+ pause(): void;
1662
+ removeLoader(): void;
1663
+ loadPoster(): void;
1664
+ hide(): void;
1665
+ display(onFail?: () => void): void;
1666
+ mainElement(): CanvasImageSource;
1667
+ private initStyles;
1668
+ }
1669
+
1544
1670
  export interface BlazeWidgetItemOptions {
1545
1671
  theme: IWidgetTheme;
1546
1672
  content: IStory;
@@ -1584,11 +1710,6 @@ export declare class BlazeWidgetItem extends BaseWidget {
1584
1710
  private updateInsideLabelStyles;
1585
1711
  private updateOutsideLabelStyles;
1586
1712
  private updateThumbnailStyles;
1587
- getMaxChipSize(): DOMRect;
1588
- get chipDimenssions(): {
1589
- chipWidth: number;
1590
- chipHeight: number;
1591
- };
1592
1713
  private updateChipStyles;
1593
1714
  setTheme(theme: IWidgetTheme): void;
1594
1715
  setChipStyle(): void;
@@ -1620,14 +1741,17 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1620
1741
  preset: IWidgetTheme | undefined;
1621
1742
  thumbnailWidth: number | undefined;
1622
1743
  thumbnailHeight: number | undefined;
1744
+ widgetHeight: number;
1745
+ parentHeight: number | undefined;
1746
+ intersectionObserver: IntersectionObserver;
1747
+ heightObserver: MutationObserver;
1623
1748
  reloadTimeout: NodeJS.Timeout | undefined;
1624
1749
  analyticsStack: Record<WidgetAction, boolean>;
1625
- intersectionObserver: IntersectionObserver;
1626
1750
  onResizeEvent: (this: Window, ev: UIEvent) => void;
1627
- isWidgetReload: boolean | undefined;
1628
- widgetHeight: number;
1629
1751
  constructor();
1752
+ handleHeightChangeMutation(mutationsList: MutationRecord[]): void;
1630
1753
  connectedCallback(): void;
1754
+ getParentHeightWithoutPadding(): number | null;
1631
1755
  disconnectedCallback(): void;
1632
1756
  set storyIds(value: string);
1633
1757
  setContentIds(storyIds: string[]): void;
@@ -1651,6 +1775,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1651
1775
  loadStories(): Promise<void>;
1652
1776
  private get theme();
1653
1777
  render(): void;
1778
+ calculateLabelSizes(labelStyle: LabelStyle, lineNumber: number): {
1779
+ labelWidth: number | "auto";
1780
+ labelAdditionalWidth: number;
1781
+ labelAdditionalHeight: number;
1782
+ };
1654
1783
  maxSize(): number;
1655
1784
  event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1656
1785
  isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
@@ -1658,7 +1787,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1658
1787
  reorderWidgets(): void;
1659
1788
  connectWidgets(): void;
1660
1789
  get thumbnailShape(): ThumbnailShape;
1661
- getMaxChipSize(): DOMRect;
1662
1790
  widgetType(): WidgetType;
1663
1791
  }
1664
1792
 
@@ -1823,7 +1951,9 @@ export declare class BlazeWidgetSDK extends BaseWidget {
1823
1951
  attributeChangedCallback(name: string, oldValue: string, newValue: string): Promise<void>;
1824
1952
  private getConfigAttributes;
1825
1953
  private initialize;
1954
+ private injectToHead;
1826
1955
  private injectFontResource;
1956
+ private injectGoogleTag;
1827
1957
  }
1828
1958
 
1829
1959
  export interface IShareButton {
@@ -1863,7 +1993,7 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
1863
1993
  removeLoader(): any;
1864
1994
  load(): void;
1865
1995
  unload(): void;
1866
- display(): void;
1996
+ display(onFail?: () => void): void;
1867
1997
  hide(): void;
1868
1998
  set muted(value: boolean);
1869
1999
  get duration(): number;
@@ -2125,10 +2255,13 @@ export declare class BlazeWidgetStory extends HTMLElement {
2125
2255
  isNavigationPending: boolean;
2126
2256
  navigationTimeout: NodeJS.Timeout | null;
2127
2257
  lastPageIndexToResume: number;
2258
+ elementsToHideOnAds: HTMLElement[];
2259
+ muteStateBeforeAd: 'mute' | 'unmute' | 'no-ad';
2128
2260
  constructor();
2129
2261
  onShareClick(): Promise<void>;
2130
2262
  updateChip(): void;
2131
2263
  setTheme(storyPlayerStyle: StoryPlayerStyle): void;
2264
+ adjustAdView(): void;
2132
2265
  updatePlayerButtonIcons(): void;
2133
2266
  onCtaClick(event: Event): boolean;
2134
2267
  playToggle(): void;
@@ -2150,7 +2283,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2150
2283
  removeFromCache(): void;
2151
2284
  load(): void;
2152
2285
  play(): void;
2153
- event(action: StoryAction, data: Partial<StoryEvent>, label?: string | undefined): void;
2286
+ event(action: StoryAction, storyData: Partial<StoryEvent>, label?: string | undefined): void;
2154
2287
  connectedCallback(): void;
2155
2288
  onShareModalClose(): void;
2156
2289
  onShareModalButtonClick(shareButton: BlazeShareButton): Promise<void>;