@wscsports/blaze-web-sdk 0.1.872 → 0.1.891
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 +4 -3
- package/publish/index.d.ts +85 -16
- package/publish/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wscsports/blaze-web-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.891",
|
|
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:
|
|
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
|
+
}
|
package/publish/index.d.ts
CHANGED
|
@@ -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
|
|
|
@@ -255,7 +259,7 @@ export declare class BlazeTypography extends BaseWidget {
|
|
|
255
259
|
get fontSize(): ".8rem" | "1rem" | ".5rem";
|
|
256
260
|
}
|
|
257
261
|
|
|
258
|
-
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width';
|
|
262
|
+
type AttributeType = 'disabled' | 'hidden' | 'height' | 'width' | 'icon-color';
|
|
259
263
|
export declare class BlazeButton extends BaseWidget {
|
|
260
264
|
buttonElement: HTMLButtonElement;
|
|
261
265
|
constructor();
|
|
@@ -272,8 +276,30 @@ export declare class BlazeButton extends BaseWidget {
|
|
|
272
276
|
private setWidth;
|
|
273
277
|
}
|
|
274
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
|
+
|
|
275
300
|
export * from './share-button';
|
|
276
301
|
export * from './button';
|
|
302
|
+
export * from './cta-button';
|
|
277
303
|
|
|
278
304
|
export type ShareButtonType = 'copy-link' | 'linked-in';
|
|
279
305
|
type AttributeType = 'size' | 'button-type';
|
|
@@ -543,6 +569,7 @@ export interface WidgetsTagNameMap {
|
|
|
543
569
|
'blaze-div': BlazeDiv;
|
|
544
570
|
'blaze-share-button': BlazeShareButton;
|
|
545
571
|
'blaze-button': BlazeButton;
|
|
572
|
+
'blaze-button-cta': BlazeCtaButton;
|
|
546
573
|
'blaze-typography': BlazeTypography;
|
|
547
574
|
}
|
|
548
575
|
interface WidgetsTagNameOptionsMap {
|
|
@@ -573,6 +600,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
573
600
|
'blaze-div': {};
|
|
574
601
|
'blaze-share-button': {};
|
|
575
602
|
'blaze-button': {};
|
|
603
|
+
'blaze-button-cta': {};
|
|
576
604
|
'blaze-typography': {};
|
|
577
605
|
}
|
|
578
606
|
export declare abstract class WidgetsFactory {
|
|
@@ -622,6 +650,8 @@ export declare const newPrevPageIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD
|
|
|
622
650
|
export declare const restartIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzVfNDg5ODEiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQiIHk9IjQ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TIiLz4KPC9nPgo8L3N2Zz4K";
|
|
623
651
|
export declare const playIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwbGF5X2Fycm93XzIiIGQ9Ik0xOCAzNlYxMkwzNiAyNEwxOCAzNloiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
624
652
|
export declare const pauseIcon = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgaWQ9InBsYXlfYXJyb3ciPgo8cmVjdCB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHJ4PSIyNCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC42Ii8+CjxwYXRoIGlkPSJwYXVzZSIgZD0iTTI3IDM2VjEySDMzVjM2SDI3Wk0xNSAzNlYxMkgyMVYzNkgxNVoiIGZpbGw9IndoaXRlIiBmaWxsLW9wYWNpdHk9IjAuOTIiLz4KPC9nPgo8L3N2Zz4K";
|
|
653
|
+
export declare const arrowUpCtaIcon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyMCA4IiB4bWxucz0iaHR0cDov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AwLjUgMC4yIDAuNS0wLjIgMS41LTEuNWMwLjUtMC41IDEuMS0wLjcgMS43LTAuN3MxLjMgMC4zIDEuNyAwLjdjMC41IDAuNSAwLjcgMS4xIDAuNyAxLjdzLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
|
|
625
655
|
|
|
626
656
|
export type EnvironmentType = 'prod' | 'uat';
|
|
627
657
|
export interface IBlazeSDKOptions {
|
|
@@ -1215,6 +1245,7 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
1215
1245
|
private _isMuted;
|
|
1216
1246
|
private _isPlaying;
|
|
1217
1247
|
private _isNavigating;
|
|
1248
|
+
private _isModalOpen;
|
|
1218
1249
|
private _playReference;
|
|
1219
1250
|
constructor();
|
|
1220
1251
|
init(): Promise<void>;
|
|
@@ -1226,6 +1257,8 @@ declare abstract class VideoPlayerServiceClass extends VideoPlayerServiceClass_b
|
|
|
1226
1257
|
set isNavigating(value: boolean);
|
|
1227
1258
|
get playReference(): PlayType;
|
|
1228
1259
|
set playReference(value: PlayType);
|
|
1260
|
+
get isModalOpen(): boolean;
|
|
1261
|
+
set isModalOpen(value: boolean);
|
|
1229
1262
|
}
|
|
1230
1263
|
export declare const VideoPlayerService: VideoPlayerServiceClass;
|
|
1231
1264
|
|
|
@@ -1246,6 +1279,8 @@ export * from './theme.interface';
|
|
|
1246
1279
|
export declare class Presets {
|
|
1247
1280
|
static widgetFont: string;
|
|
1248
1281
|
static playerFont: string;
|
|
1282
|
+
static iconDefaultStyle: IconStyle;
|
|
1283
|
+
static CtaButtonStyle: CtaButtonStyle;
|
|
1249
1284
|
static StatusLiveStyle: IndicatorStyle;
|
|
1250
1285
|
static StatusLiveUnreadStyle: IndicatorStyle;
|
|
1251
1286
|
static StatusReadStyle: IndicatorStyle;
|
|
@@ -1326,6 +1361,30 @@ export interface StoryPlayerStyle {
|
|
|
1326
1361
|
chipVisible: boolean;
|
|
1327
1362
|
chipFont: string;
|
|
1328
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;
|
|
1329
1388
|
}
|
|
1330
1389
|
export interface IWidgetTheme {
|
|
1331
1390
|
layoutStyle: LayoutStyle;
|
|
@@ -1385,7 +1444,7 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1385
1444
|
click(): void;
|
|
1386
1445
|
hidePopover(): void;
|
|
1387
1446
|
showPopover(): void;
|
|
1388
|
-
togglePopover(force?: boolean | undefined):
|
|
1447
|
+
togglePopover(force?: boolean | undefined): void;
|
|
1389
1448
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1390
1449
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1391
1450
|
removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions | undefined): void;
|
|
@@ -1520,7 +1579,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1520
1579
|
ariaColIndex: string | null;
|
|
1521
1580
|
ariaColSpan: string | null;
|
|
1522
1581
|
ariaCurrent: string | null;
|
|
1523
|
-
ariaDescription: string | null;
|
|
1524
1582
|
ariaDisabled: string | null;
|
|
1525
1583
|
ariaExpanded: string | null;
|
|
1526
1584
|
ariaHasPopup: string | null;
|
|
@@ -1591,7 +1649,6 @@ export declare function AttributeParser<TBase extends GHTMLElement>(Base: TBase)
|
|
|
1591
1649
|
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1592
1650
|
onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1593
1651
|
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1594
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1595
1652
|
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1596
1653
|
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1597
1654
|
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1698,6 +1755,10 @@ export declare enum ButtonNavigation {
|
|
|
1698
1755
|
PREV_PAGE = 2,
|
|
1699
1756
|
NEXT_PAGE = 3
|
|
1700
1757
|
}
|
|
1758
|
+
export type ButtonPositionType = 'LEFT' | 'CENTER' | 'RIGHT';
|
|
1759
|
+
export declare const positionMap: {
|
|
1760
|
+
[key: string]: string;
|
|
1761
|
+
};
|
|
1701
1762
|
|
|
1702
1763
|
export type ClientPlatform = 'Web';
|
|
1703
1764
|
|
|
@@ -1858,7 +1919,6 @@ export * from './widget-story-modal';
|
|
|
1858
1919
|
export * from './widget-story-player';
|
|
1859
1920
|
export * from './widget-story-preview';
|
|
1860
1921
|
export * from './widget-story-video';
|
|
1861
|
-
export * from './widget-interaction';
|
|
1862
1922
|
|
|
1863
1923
|
export declare class BlazeWidgetStoryAd extends BlazeWidgetStoryBase {
|
|
1864
1924
|
data: IPage | undefined;
|
|
@@ -1926,6 +1986,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1926
1986
|
connectedCallback(): void;
|
|
1927
1987
|
disconnectedCallback(): void;
|
|
1928
1988
|
updateWidget(): void;
|
|
1989
|
+
updateWidgetItemPadding(): void;
|
|
1929
1990
|
updateWidgetItemStyle(theme: IWidgetTheme): void;
|
|
1930
1991
|
private setupDOMElements;
|
|
1931
1992
|
private setupEventListeners;
|
|
@@ -1976,6 +2037,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1976
2037
|
preset: IWidgetTheme | undefined;
|
|
1977
2038
|
perItemStyleOverrides: PerItemStyleOverrides;
|
|
1978
2039
|
activeOverridesLayoutThemes: PerItemStyleOverrides;
|
|
2040
|
+
isWidgetVisible: boolean;
|
|
1979
2041
|
thumbnailWidth: number | undefined;
|
|
1980
2042
|
thumbnailHeight: number | undefined;
|
|
1981
2043
|
widgetHeight: number;
|
|
@@ -1985,6 +2047,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1985
2047
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1986
2048
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1987
2049
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
2050
|
+
shouldReloadWhenPlayerIsClosed: boolean;
|
|
1988
2051
|
constructor();
|
|
1989
2052
|
onResizeEventDelay(): void;
|
|
1990
2053
|
onResize(): void;
|
|
@@ -1995,9 +2058,10 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1995
2058
|
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1996
2059
|
onKeyDown(e: KeyboardEvent): void;
|
|
1997
2060
|
onStoryChange(mode: StoryDirectionType): void;
|
|
2061
|
+
onPlayerClose(): void;
|
|
1998
2062
|
getParentHeightWithoutPadding(): number | null;
|
|
1999
2063
|
setId(id: string): void;
|
|
2000
|
-
handlePopState(
|
|
2064
|
+
handlePopState(): void;
|
|
2001
2065
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
2002
2066
|
set storyIds(value: string);
|
|
2003
2067
|
setContentIds(storyIds: string[]): void;
|
|
@@ -2010,6 +2074,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
2010
2074
|
reload(): void;
|
|
2011
2075
|
updateActiveLayoutThemesPerItemWithEntity(key: EntitiesType, value: string, theme: IWidgetTheme): void;
|
|
2012
2076
|
updateWidgetUI(): void;
|
|
2077
|
+
setMaxPaddingOnWidgetItems(): void;
|
|
2013
2078
|
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
2014
2079
|
setMaxItemsDisplaySize(maxSize: number): void;
|
|
2015
2080
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
@@ -2070,8 +2135,6 @@ export declare class BlazeWidgetModal extends BaseWidget {
|
|
|
2070
2135
|
connectedCallback(): void;
|
|
2071
2136
|
open(): void;
|
|
2072
2137
|
close(): void;
|
|
2073
|
-
disconnectedCallback(): void;
|
|
2074
|
-
setTheme(theme: IWidgetTheme): void;
|
|
2075
2138
|
}
|
|
2076
2139
|
|
|
2077
2140
|
export declare class BlazeWidgetMomentModal extends BlazeWidgetModal {
|
|
@@ -2355,16 +2418,16 @@ export declare class BlazeWidgetStoryImage extends BlazeWidgetStoryBase {
|
|
|
2355
2418
|
/// <reference types="hammerjs" />
|
|
2356
2419
|
export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
2357
2420
|
parentWidget: HTMLElement;
|
|
2421
|
+
playerLayout: StoryPlayerStyle;
|
|
2358
2422
|
player: BlazeWidgetStoryPlayer;
|
|
2359
2423
|
exitButtonElement: BlazeButton;
|
|
2360
2424
|
exitButtonWrapperElement: BlazeDiv;
|
|
2361
2425
|
onOpen?: () => void;
|
|
2362
2426
|
onClose?: () => void;
|
|
2363
2427
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2364
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2365
2428
|
hammer: HammerManager | null;
|
|
2366
2429
|
isMultiTouch: boolean;
|
|
2367
|
-
constructor(parentWidget: HTMLElement);
|
|
2430
|
+
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2368
2431
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
2369
2432
|
setTheme(theme: IWidgetTheme): void;
|
|
2370
2433
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
@@ -2382,6 +2445,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2382
2445
|
handlePinchOut(ev: HammerInput): void;
|
|
2383
2446
|
private cleanupHammer;
|
|
2384
2447
|
render(): void;
|
|
2448
|
+
playToggleCurrentStory(): void;
|
|
2385
2449
|
}
|
|
2386
2450
|
|
|
2387
2451
|
export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
@@ -2402,7 +2466,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2402
2466
|
destBackground: HTMLCanvasElement;
|
|
2403
2467
|
onClose?: () => void;
|
|
2404
2468
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2405
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2406
2469
|
listeners: EventsListener;
|
|
2407
2470
|
backgroundAnimation?: Animation;
|
|
2408
2471
|
overlay: any;
|
|
@@ -2436,6 +2499,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2436
2499
|
onSmallGestures(animation: AnimeInstance, story: BlazeWidgetStory): void;
|
|
2437
2500
|
onKeyDown(ev: KeyboardEvent): false | undefined;
|
|
2438
2501
|
render(): void;
|
|
2502
|
+
playToggleCurrentStory(): void;
|
|
2439
2503
|
}
|
|
2440
2504
|
|
|
2441
2505
|
export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
@@ -2466,7 +2530,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2466
2530
|
modal: BlazeWidgetStoryModal;
|
|
2467
2531
|
fullscreenMode: boolean;
|
|
2468
2532
|
static isPlaying: boolean;
|
|
2469
|
-
constructor();
|
|
2533
|
+
constructor(playerStyle: StoryPlayerStyle);
|
|
2470
2534
|
updateChip(): void;
|
|
2471
2535
|
updateButtonsState(): void;
|
|
2472
2536
|
static get observedAttributes(): string[];
|
|
@@ -2524,6 +2588,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2524
2588
|
storyParent: BlazeWidgetStory;
|
|
2525
2589
|
googleIMA: any;
|
|
2526
2590
|
isCurrentlyTryingToRunImaAd: boolean;
|
|
2591
|
+
hasPoster: boolean;
|
|
2527
2592
|
constructor(storyParent: BlazeWidgetStory, disableInteraction?: boolean);
|
|
2528
2593
|
connectedCallback(): void;
|
|
2529
2594
|
disconnectedCallback(): void;
|
|
@@ -2565,6 +2630,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2565
2630
|
}
|
|
2566
2631
|
|
|
2567
2632
|
export declare class BlazeWidgetStory extends HTMLElement {
|
|
2633
|
+
playerStyle: StoryPlayerStyle;
|
|
2568
2634
|
pages: BlazeWidgetStoryBase[];
|
|
2569
2635
|
data: IStory;
|
|
2570
2636
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
@@ -2588,7 +2654,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2588
2654
|
storyTitle: HTMLElement;
|
|
2589
2655
|
storyPublishedDate: HTMLElement;
|
|
2590
2656
|
storyLiveChip: HTMLElement;
|
|
2591
|
-
|
|
2657
|
+
ctaButtonElement: BlazeCtaButton;
|
|
2658
|
+
bottomContainer: BlazeDiv;
|
|
2659
|
+
bottomButtons: BlazeDiv;
|
|
2592
2660
|
prevPageButton?: BlazeButton;
|
|
2593
2661
|
nextPageButton?: BlazeButton;
|
|
2594
2662
|
prevStoryButton?: BlazeButton;
|
|
@@ -2603,7 +2671,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2603
2671
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2604
2672
|
resumeAfterfocus: boolean;
|
|
2605
2673
|
totalPlayStopwatch: Stopwatch;
|
|
2606
|
-
playerStyle: StoryPlayerStyle;
|
|
2607
2674
|
listeners: EventsListener;
|
|
2608
2675
|
shadowTopElement: HTMLDivElement;
|
|
2609
2676
|
isNavigationPending: boolean;
|
|
@@ -2615,8 +2682,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2615
2682
|
longPressHandler?: LongPressHandler;
|
|
2616
2683
|
originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
2617
2684
|
restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
|
|
2618
|
-
constructor();
|
|
2685
|
+
constructor(playerStyle: StoryPlayerStyle);
|
|
2619
2686
|
onShareClick(): Promise<void>;
|
|
2687
|
+
updateCtaButtonLayout(): void;
|
|
2620
2688
|
updateChip(): void;
|
|
2621
2689
|
setTheme(storyPlayerStyle: StoryPlayerStyle): void;
|
|
2622
2690
|
setButtonNavigationAsDisabled(buttonType: ButtonType): void;
|
|
@@ -2653,7 +2721,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2653
2721
|
onVisibilityChange(): void;
|
|
2654
2722
|
onBlur(): void;
|
|
2655
2723
|
onFocus(): void;
|
|
2656
|
-
close(): void;
|
|
2724
|
+
close(isDirectCloseCall?: boolean): void;
|
|
2657
2725
|
pause(): void;
|
|
2658
2726
|
resume(): void;
|
|
2659
2727
|
resetPosition(): void;
|
|
@@ -2664,6 +2732,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2664
2732
|
goNextPage(navigationType?: 'Automatic' | 'Manual'): void;
|
|
2665
2733
|
goPrevPage(): void;
|
|
2666
2734
|
disconnectedCallback(): void;
|
|
2735
|
+
updateCTAButtonPosition(): void;
|
|
2667
2736
|
renderCtaButton(pageIndex: number): void;
|
|
2668
2737
|
updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
|
|
2669
2738
|
updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
|