@wscsports/blaze-web-sdk 0.1.87 → 0.1.89

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.87",
3
+ "version": "0.1.89",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -8,7 +8,8 @@
8
8
  ],
9
9
  "scripts": {
10
10
  "start:dev": "webpack-dev-server --config webpack.config.dev",
11
- "build:dev": "webpack --config webpack.config.dev.js",
11
+ "build:pr": "webpack --config webpack.config.prod-pr.js",
12
+ "build:dev": "webpack --config webpack.config.dev-pr.js",
12
13
  "build:prod": "webpack --config webpack.config.prod.js",
13
14
  "publish:latest": "npm run build:prod && npm publish --access public --tag latest",
14
15
  "publish:beta": "npm run build:prod && npm publish --access public --tag beta",
@@ -39,4 +40,4 @@
39
40
  "intersection-observer": "^0.12.2",
40
41
  "ua-parser-js": "^1.0.36"
41
42
  }
42
- }
43
+ }
@@ -8,6 +8,8 @@ export declare function Theme(theme: ThemeType): IWidgetTheme;
8
8
  export declare function addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
9
9
  export declare const Delegations: typeof Delegation;
10
10
  export declare function LabelBuilder(): IWidgetLabelBuilder;
11
+ export declare function pause(): void;
12
+ export declare function resume(): void;
11
13
  declare const _default: {
12
14
  Initialize: typeof Initialize;
13
15
  WidgetGridView: typeof WidgetGridView;
@@ -18,6 +20,8 @@ declare const _default: {
18
20
  setGeoLocation: typeof setGeoLocation;
19
21
  LabelBuilder: typeof LabelBuilder;
20
22
  Delegations: typeof Delegation;
23
+ pause: typeof pause;
24
+ resume: typeof resume;
21
25
  };
22
26
  export default _default;
23
27
 
@@ -194,6 +198,7 @@ export declare class BlazeImage extends BaseWidget {
194
198
  thumbnailElement: HTMLImageElement;
195
199
  constructor();
196
200
  load(src: string): void;
201
+ setHeight(value: string): void;
197
202
  setRatio(ratio: string): void;
198
203
  setBorderRadius(radius: string): void;
199
204
  }
@@ -254,7 +259,7 @@ export declare class BlazeTypography extends BaseWidget {
254
259
  get fontSize(): ".8rem" | "1rem" | ".5rem";
255
260
  }
256
261
 
257
- type AttributeType = 'disabled' | 'hidden' | 'height' | 'width';
262
+ type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
258
263
  export declare class BlazeButton extends BaseWidget {
259
264
  buttonElement: HTMLButtonElement;
260
265
  constructor();
@@ -271,8 +276,30 @@ export declare class BlazeButton extends BaseWidget {
271
276
  private setWidth;
272
277
  }
273
278
 
279
+ type AttributeType = 'hidden-btn' | 'width' | 'height' | 'margin' | 'text' | 'href' | 'icon-url' | 'icon-size' | 'icon-color' | 'arrow-icon-display' | 'arrow-icon-color';
280
+ export declare class BlazeCtaButton extends BaseWidget {
281
+ anchorButtonElement: HTMLAnchorElement;
282
+ iconButtonElement: BlazeButton;
283
+ iconArrowElement: BlazeButton;
284
+ ctaTextElement: BlazeDiv;
285
+ isButtonCreated: boolean;
286
+ constructor();
287
+ static observedAttributes: string[];
288
+ connectedCallback(): void;
289
+ disconnectedCallback(): void;
290
+ attributeChangedCallback(name: AttributeType, oldValue: string, newValue: string): void;
291
+ createButton(): void;
292
+ setCtaText(value: string): void;
293
+ setWidth(value: string): void;
294
+ setMargin(value: string): void;
295
+ setAnchorButtonStyles(styles: Partial<CSSStyleDeclaration>): void;
296
+ setCtaTextStyle(styles: Partial<CSSStyleDeclaration>): void;
297
+ setCtaIconStyles(styles: Partial<CSSStyleDeclaration>): void;
298
+ }
299
+
274
300
  export * from './share-button';
275
301
  export * from './button';
302
+ export * from './cta-button';
276
303
 
277
304
  export type ShareButtonType = 'copy-link' | 'linked-in';
278
305
  type AttributeType = 'size' | 'button-type';
@@ -542,6 +569,7 @@ export interface WidgetsTagNameMap {
542
569
  'blaze-div': BlazeDiv;
543
570
  'blaze-share-button': BlazeShareButton;
544
571
  'blaze-button': BlazeButton;
572
+ 'blaze-button-cta': BlazeCtaButton;
545
573
  'blaze-typography': BlazeTypography;
546
574
  }
547
575
  interface WidgetsTagNameOptionsMap {
@@ -572,6 +600,7 @@ interface WidgetsTagNameOptionsMap {
572
600
  'blaze-div': {};
573
601
  'blaze-share-button': {};
574
602
  'blaze-button': {};
603
+ 'blaze-button-cta': {};
575
604
  'blaze-typography': {};
576
605
  }
577
606
  export declare abstract class WidgetsFactory {
@@ -621,6 +650,8 @@ export declare const newPrevPageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD
621
650
  export declare const restartIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzVfNDg5ODEiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC45MiIvPgo8L21hc2s+CjxnIG1hc2s9InVybCgjbWFzazBfNV80ODk4MSkiPgo8cGF0aCBkPSJNMTYgMjRDMTMuNzY2NyAyNCAxMS44NzUgMjMuMjI1IDEwLjMyNSAyMS42NzVDOC43NzUgMjAuMTI1IDggMTguMjMzMyA4IDE2QzggMTMuNzY2NyA4Ljc3NSAxMS44NzUgMTAuMzI1IDEwLjMyNUMxMS44NzUgOC43NzUgMTMuNzY2NyA4IDE2IDhDMTcuMTUgOCAxOC4yNSA4LjIzNzUgMTkuMyA4LjcxMjVDMjAuMzUgOS4xODc1IDIxLjI1IDkuODY2NjcgMjIgMTAuNzVWOEgyNFYxNUgxN1YxM0gyMS4yQzIwLjY2NjcgMTIuMDY2NyAxOS45Mzc1IDExLjMzMzMgMTkuMDEyNSAxMC44QzE4LjA4NzUgMTAuMjY2NyAxNy4wODMzIDEwIDE2IDEwQzE0LjMzMzMgMTAgMTIuOTE2NyAxMC41ODMzIDExLjc1IDExLjc1QzEwLjU4MzMgMTIuOTE2NyAxMCAxNC4zMzMzIDEwIDE2QzEwIDE3LjY2NjcgMTAuNTgzMyAxOS4wODMzIDExLjc1IDIwLjI1QzEyLjkxNjcgMjEuNDE2NyAxNC4zMzMzIDIyIDE2IDIyQzE3LjI4MzMgMjIgMTguNDQxNyAyMS42MzMzIDE5LjQ3NSAyMC45QzIwLjUwODMgMjAuMTY2NyAyMS4yMzMzIDE5LjIgMjEuNjUgMThIMjMuNzVDMjMuMjgzMyAxOS43NjY3IDIyLjMzMzMgMjEuMjA4MyAyMC45IDIyLjMyNUMxOS40NjY3IDIzLjQ0MTcgMTcuODMzMyAyNCAxNiAyNFoiIGZpbGw9ImJsYWNrIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
622
651
  export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwbGF5X2Fycm93XzIiIGQ9Ik0xOCAzNlYxMkwzNiAyNEwxOCAzNloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
623
652
  export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
653
+ export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJtMTggNy43LTAuNy0wLjItNy4zLTQtNy4zIDRjLTAuNyAwLjQtMS42IDAuMi0yLTAuNi0wLjQtMC43LTAuMS0xLjYgMC42LTJsOC00LjRhMiAyIDAgMCAxIDEuNSAwbDggNC40YzAuNyAwLjQgMSAxLjMgMC42IDItMC40IDAuNS0wLjkgMC44LTEuNCAwLjh6Ii8+Cjwvc3ZnPgo=";
654
+ export declare const externalLinkIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgY3Jvc3NvcmlnaW49ImFub255bW91cyI+CjxwYXRoIGQ9Im0xMiAwYzYuNiAwIDEyIDUuNCAxMiAxMnMtNS40IDEyLTEyIDEyLTEyLTUuNC0xMi0xMiA1LjQtMTIgMTItMTJ6IiBmaWxsLW9wYWNpdHk9Ii4xIi8+CjxwYXRoIGQ9Im0xMy44IDE0LjYgMC4yIDAuNS0wLjIgMC41LTEuNSAxLjRjLTAuNyAwLjctMS43IDEuMS0yLjcgMS4xYTQgNCAwIDAgMS0yLjctMS4xIDMuOSAzLjkgMCAwIDEtMS4xLTIuNyA0IDQgMCAwIDEgMS4xLTIuN2wxLjUtMS41IDAuNS0wLjEgMC41IDAuMiAwLjIgMC41LTAuMiAwLjUtMS41IDEuNWMtMC41IDAuNS0wLjcgMS4xLTAuNyAxLjdzMC4zIDEuMyAwLjcgMS43YzAuNSAwLjUgMS4xIDAuNyAxLjcgMC43czEuMy0wLjMgMS43LTAuN2wxLjUtMS41YzAuMy0wLjMgMC43LTAuMyAxIDB6bTMuMi03LjZhMy45IDMuOSAwIDAgMC0yLjctMS4xIDQgNCAwIDAgMC0yLjcgMS4xbC0xLjUgMS41LTAuMSAwLjQgMC4yIDAuNSAwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
624
655
 
625
656
  export type EnvironmentType = 'prod' | 'uat';
626
657
  export interface IBlazeSDKOptions {
@@ -1214,6 +1245,7 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
1214
1245
  private _isMuted;
1215
1246
  private _isPlaying;
1216
1247
  private _isNavigating;
1248
+ private _isModalOpen;
1217
1249
  private _playReference;
1218
1250
  constructor();
1219
1251
  init(): Promise<void>;
@@ -1225,6 +1257,8 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
1225
1257
  set isNavigating(value: boolean);
1226
1258
  get playReference(): PlayType;
1227
1259
  set playReference(value: PlayType);
1260
+ get isModalOpen(): boolean;
1261
+ set isModalOpen(value: boolean);
1228
1262
  }
1229
1263
  export declare const VideoPlayerService: VideoPlayerServiceClass;
1230
1264
 
@@ -1245,6 +1279,8 @@ export * from './theme.interface';
1245
1279
  export declare class Presets {
1246
1280
  static widgetFont: string;
1247
1281
  static playerFont: string;
1282
+ static iconDefaultStyle: IconStyle;
1283
+ static CtaButtonStyle: CtaButtonStyle;
1248
1284
  static StatusLiveStyle: IndicatorStyle;
1249
1285
  static StatusLiveUnreadStyle: IndicatorStyle;
1250
1286
  static StatusReadStyle: IndicatorStyle;
@@ -1325,6 +1361,30 @@ export interface StoryPlayerStyle {
1325
1361
  chipVisible: boolean;
1326
1362
  chipFont: string;
1327
1363
  chipFontSize: string;
1364
+ ctaButton: CtaButtonStyle;
1365
+ }
1366
+ export interface CtaButtonStyle {
1367
+ borderRadius: string;
1368
+ border: string;
1369
+ fontSize: string;
1370
+ font: string;
1371
+ backgroundColor: string;
1372
+ color: string;
1373
+ isVisible: boolean;
1374
+ isAnimated: boolean;
1375
+ fontWeight: 'normal' | 'bold' | 'bolder' | 'lighter' | 'inherit' | 'initial' | 'unset' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
1376
+ textTransform: 'capitalize' | 'uppercase' | 'lowercase' | 'none';
1377
+ padding: string;
1378
+ width: string;
1379
+ height: string;
1380
+ position: ButtonPositionType;
1381
+ icon: IconStyle;
1382
+ }
1383
+ export interface IconStyle {
1384
+ isVisible: boolean;
1385
+ url: string;
1386
+ size: string;
1387
+ color: string;
1328
1388
  }
1329
1389
  export interface IWidgetTheme {
1330
1390
  layoutStyle: LayoutStyle;
@@ -1384,7 +1444,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
1384
1444
  click(): void;
1385
1445
  hidePopover(): void;
1386
1446
  showPopover(): void;
1387
- togglePopover(force?: boolean | undefined): boolean;
1447
+ togglePopover(force?: boolean | undefined): void;
1388
1448
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
1389
1449
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
1390
1450
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
@@ -1519,7 +1579,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
1519
1579
  ariaColIndex: string | null;
1520
1580
  ariaColSpan: string | null;
1521
1581
  ariaCurrent: string | null;
1522
- ariaDescription: string | null;
1523
1582
  ariaDisabled: string | null;
1524
1583
  ariaExpanded: string | null;
1525
1584
  ariaHasPopup: string | null;
@@ -1590,7 +1649,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
1590
1649
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1591
1650
  onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1592
1651
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1593
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1594
1652
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1595
1653
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1596
1654
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -1697,6 +1755,10 @@ export declare enum ButtonNavigation {
1697
1755
  PREV_PAGE = 2,
1698
1756
  NEXT_PAGE = 3
1699
1757
  }
1758
+ export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
1759
+ export declare const positionMap: {
1760
+ [key: string]: string;
1761
+ };
1700
1762
 
1701
1763
  export type ClientPlatform = 'Web';
1702
1764
 
@@ -1784,7 +1846,6 @@ export declare function isValidCountryCode(countryCode: string): countryCode is
1784
1846
  export declare function GuardNullOrEmpty(name: string, value: any): void;
1785
1847
 
1786
1848
  export declare function formatDuration(startDate: Date): string;
1787
- export declare function removeUndefined(value: any): object;
1788
1849
  export declare function isCssPropertySupported(property: string): boolean;
1789
1850
  export declare function pixelsToNumber(pxString: string): number;
1790
1851
  export declare function isObject(item: any): boolean;
@@ -1793,6 +1854,8 @@ export declare function cloneDeep<T>(target: T): T;
1793
1854
  export declare function formatDate(date: Date): string;
1794
1855
  export declare function formatUTCDate(date: Date): string;
1795
1856
  export declare function calculatePercentage(value: number, element: BlazeDiv): string;
1857
+ type RatioType = '16/9' | '9/16' | '2/3' | 'Custom Ratio';
1858
+ export declare function checkAspectRatios(decimal: number): RatioType;
1796
1859
  export declare function getRandomId(): string;
1797
1860
  export declare function isEmpty(obj: Record<string, any>): boolean;
1798
1861
  export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
@@ -1856,7 +1919,6 @@ export * from './widget-story-modal';
1856
1919
  export * from './widget-story-player';
1857
1920
  export * from './widget-story-preview';
1858
1921
  export * from './widget-story-video';
1859
- export * from './widget-interaction';
1860
1922
 
1861
1923
  export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
1862
1924
  data: IPage | undefined;
@@ -1924,6 +1986,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
1924
1986
  connectedCallback(): void;
1925
1987
  disconnectedCallback(): void;
1926
1988
  updateWidget(): void;
1989
+ updateWidgetItemPadding(): void;
1927
1990
  updateWidgetItemStyle(theme: IWidgetTheme): void;
1928
1991
  private setupDOMElements;
1929
1992
  private setupEventListeners;
@@ -1974,6 +2037,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1974
2037
  preset: IWidgetTheme | undefined;
1975
2038
  perItemStyleOverrides: PerItemStyleOverrides;
1976
2039
  activeOverridesLayoutThemes: PerItemStyleOverrides;
2040
+ isWidgetVisible: boolean;
1977
2041
  thumbnailWidth: number | undefined;
1978
2042
  thumbnailHeight: number | undefined;
1979
2043
  widgetHeight: number;
@@ -1983,6 +2047,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1983
2047
  reloadTimeout: NodeJS.Timeout | undefined;
1984
2048
  analyticsStack: Record<WidgetAction, boolean>;
1985
2049
  onResizeEvent: (this: Window, ev: UIEvent) => void;
2050
+ shouldReloadWhenPlayerIsClosed: boolean;
1986
2051
  constructor();
1987
2052
  onResizeEventDelay(): void;
1988
2053
  onResize(): void;
@@ -1993,9 +2058,10 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1993
2058
  attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
1994
2059
  onKeyDown(e: KeyboardEvent): void;
1995
2060
  onStoryChange(mode: StoryDirectionType): void;
2061
+ onPlayerClose(): void;
1996
2062
  getParentHeightWithoutPadding(): number | null;
1997
2063
  setId(id: string): void;
1998
- handlePopState(_event: Event): void;
2064
+ handlePopState(): void;
1999
2065
  addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
2000
2066
  set storyIds(value: string);
2001
2067
  setContentIds(storyIds: string[]): void;
@@ -2008,6 +2074,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
2008
2074
  reload(): void;
2009
2075
  updateActiveLayoutThemesPerItemWithEntity(key: EntitiesType, value: string, theme: IWidgetTheme): void;
2010
2076
  updateWidgetUI(): void;
2077
+ setMaxPaddingOnWidgetItems(): void;
2011
2078
  setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
2012
2079
  setMaxItemsDisplaySize(maxSize: number): void;
2013
2080
  setMaxItemsSize(maxItemsSize: number): void;
@@ -2068,8 +2135,6 @@ export declare class BlazeWidgetModal extends BaseWidget {
2068
2135
  connectedCallback(): void;
2069
2136
  open(): void;
2070
2137
  close(): void;
2071
- disconnectedCallback(): void;
2072
- setTheme(theme: IWidgetTheme): void;
2073
2138
  }
2074
2139
 
2075
2140
  export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
@@ -2353,16 +2418,16 @@ export declare class BlazeWidgetStoryImage extends BlazeWidgetStoryBase {
2353
2418
  /// <reference types="hammerjs" />
2354
2419
  export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
2355
2420
  parentWidget: HTMLElement;
2421
+ playerLayout: StoryPlayerStyle;
2356
2422
  player: BlazeWidgetStoryPlayer;
2357
2423
  exitButtonElement: BlazeButton;
2358
2424
  exitButtonWrapperElement: BlazeDiv;
2359
2425
  onOpen?: () => void;
2360
2426
  onClose?: () => void;
2361
2427
  onStoryChange?: (mode: StoryDirectionType) => void;
2362
- onStoryChanged?: (mode: StoryDirectionType) => void;
2363
2428
  hammer: HammerManager | null;
2364
2429
  isMultiTouch: boolean;
2365
- constructor(parentWidget: HTMLElement);
2430
+ constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
2366
2431
  handleOnStoryChange(mode: StoryDirectionType): void;
2367
2432
  setTheme(theme: IWidgetTheme): void;
2368
2433
  setStories(stories: IStory[], showInteraction?: boolean): void;
@@ -2380,6 +2445,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
2380
2445
  handlePinchOut(ev: HammerInput): void;
2381
2446
  private cleanupHammer;
2382
2447
  render(): void;
2448
+ playToggleCurrentStory(): void;
2383
2449
  }
2384
2450
 
2385
2451
  export declare class BlazeWidgetStoryPlayer extends BaseWidget {
@@ -2400,7 +2466,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2400
2466
  destBackground: HTMLCanvasElement;
2401
2467
  onClose?: () => void;
2402
2468
  onStoryChange?: (mode: StoryDirectionType) => void;
2403
- onStoryChanged?: (mode: StoryDirectionType) => void;
2404
2469
  listeners: EventsListener;
2405
2470
  backgroundAnimation?: Animation;
2406
2471
  overlay: any;
@@ -2434,6 +2499,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
2434
2499
  onSmallGestures(animation: AnimeInstance, story: BlazeWidgetStory): void;
2435
2500
  onKeyDown(ev: KeyboardEvent): false | undefined;
2436
2501
  render(): void;
2502
+ playToggleCurrentStory(): void;
2437
2503
  }
2438
2504
 
2439
2505
  export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
@@ -2464,7 +2530,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
2464
2530
  modal: BlazeWidgetStoryModal;
2465
2531
  fullscreenMode: boolean;
2466
2532
  static isPlaying: boolean;
2467
- constructor();
2533
+ constructor(playerStyle: StoryPlayerStyle);
2468
2534
  updateChip(): void;
2469
2535
  updateButtonsState(): void;
2470
2536
  static get observedAttributes(): string[];
@@ -2522,6 +2588,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
2522
2588
  storyParent: BlazeWidgetStory;
2523
2589
  googleIMA: any;
2524
2590
  isCurrentlyTryingToRunImaAd: boolean;
2591
+ hasPoster: boolean;
2525
2592
  constructor(storyParent: BlazeWidgetStory, disableInteraction?: boolean);
2526
2593
  connectedCallback(): void;
2527
2594
  disconnectedCallback(): void;
@@ -2563,6 +2630,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
2563
2630
  }
2564
2631
 
2565
2632
  export declare class BlazeWidgetStory extends HTMLElement {
2633
+ playerStyle: StoryPlayerStyle;
2566
2634
  pages: BlazeWidgetStoryBase[];
2567
2635
  data: IStory;
2568
2636
  shareModal: BlazeWidgetShareModal | undefined;
@@ -2586,7 +2654,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
2586
2654
  storyTitle: HTMLElement;
2587
2655
  storyPublishedDate: HTMLElement;
2588
2656
  storyLiveChip: HTMLElement;
2589
- ctaButton: HTMLElement;
2657
+ ctaButtonElement: BlazeCtaButton;
2658
+ bottomContainer: BlazeDiv;
2659
+ bottomButtons: BlazeDiv;
2590
2660
  prevPageButton?: BlazeButton;
2591
2661
  nextPageButton?: BlazeButton;
2592
2662
  prevStoryButton?: BlazeButton;
@@ -2601,7 +2671,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
2601
2671
  navigationDirection: 'Forwards' | 'Backwards' | undefined;
2602
2672
  resumeAfterfocus: boolean;
2603
2673
  totalPlayStopwatch: Stopwatch;
2604
- playerStyle: StoryPlayerStyle;
2605
2674
  listeners: EventsListener;
2606
2675
  shadowTopElement: HTMLDivElement;
2607
2676
  isNavigationPending: boolean;
@@ -2613,8 +2682,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
2613
2682
  longPressHandler?: LongPressHandler;
2614
2683
  originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
2615
2684
  restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
2616
- constructor();
2685
+ constructor(playerStyle: StoryPlayerStyle);
2617
2686
  onShareClick(): Promise<void>;
2687
+ updateCtaButtonLayout(): void;
2618
2688
  updateChip(): void;
2619
2689
  setTheme(storyPlayerStyle: StoryPlayerStyle): void;
2620
2690
  setButtonNavigationAsDisabled(buttonType: ButtonType): void;
@@ -2651,7 +2721,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2651
2721
  onVisibilityChange(): void;
2652
2722
  onBlur(): void;
2653
2723
  onFocus(): void;
2654
- close(): void;
2724
+ close(isDirectCloseCall?: boolean): void;
2655
2725
  pause(): void;
2656
2726
  resume(): void;
2657
2727
  resetPosition(): void;
@@ -2662,6 +2732,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
2662
2732
  goNextPage(navigationType?: 'Automatic' | 'Manual'): void;
2663
2733
  goPrevPage(): void;
2664
2734
  disconnectedCallback(): void;
2735
+ updateCTAButtonPosition(): void;
2665
2736
  renderCtaButton(pageIndex: number): void;
2666
2737
  updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
2667
2738
  updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;