@wscsports/blaze-web-sdk 0.1.88 → 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 +3 -2
- package/publish/index.d.ts +78 -12
- 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.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:
|
|
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",
|
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,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPG1hc2sgaWQ9Im1hc2swXzVfNDg5ODEiIHN0eWxlPSJtYXNrLXR5cGU6YWxwaGEiIG1hc2tVbml0cz0idXNlclNwYWNlT25Vc2UiIHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCI+CjxyZWN0IHg9IjQiIHk9IjQiIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgZmlsbD0id2hpdGUiIGZpbGw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zLTAuMyAxLjMtMC43IDEuN2wtMS41IDEuNS0wLjIgMC41IDAuMiAwLjUgMC41IDAuMiAwLjUtMC4yIDEuNS0xLjVjMC43LTAuNyAxLjEtMS43IDEuMS0yLjctMC4xLTEtMC41LTEuOS0xLjItMi42em0tNy45IDcuMiAwLjIgMC41IDAuNSAwLjIgMC41LTAuMiA0LjUtNC41IDAuMi0wLjUtMC4yLTAuNWMtMC4zLTAuMi0wLjgtMC4yLTEgMC4xbC00LjUgNC41eiIvPgo8L3N2Zz4K";
|
|
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
|
|
|
@@ -2357,16 +2418,16 @@ export declare class BlazeWidgetStoryImage extends BlazeWidgetStoryBase {
|
|
|
2357
2418
|
/// <reference types="hammerjs" />
|
|
2358
2419
|
export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
2359
2420
|
parentWidget: HTMLElement;
|
|
2421
|
+
playerLayout: StoryPlayerStyle;
|
|
2360
2422
|
player: BlazeWidgetStoryPlayer;
|
|
2361
2423
|
exitButtonElement: BlazeButton;
|
|
2362
2424
|
exitButtonWrapperElement: BlazeDiv;
|
|
2363
2425
|
onOpen?: () => void;
|
|
2364
2426
|
onClose?: () => void;
|
|
2365
2427
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2366
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2367
2428
|
hammer: HammerManager | null;
|
|
2368
2429
|
isMultiTouch: boolean;
|
|
2369
|
-
constructor(parentWidget: HTMLElement);
|
|
2430
|
+
constructor(parentWidget: HTMLElement, playerLayout: StoryPlayerStyle);
|
|
2370
2431
|
handleOnStoryChange(mode: StoryDirectionType): void;
|
|
2371
2432
|
setTheme(theme: IWidgetTheme): void;
|
|
2372
2433
|
setStories(stories: IStory[], showInteraction?: boolean): void;
|
|
@@ -2384,6 +2445,7 @@ export declare class BlazeWidgetStoryModal extends BlazeWidgetModal {
|
|
|
2384
2445
|
handlePinchOut(ev: HammerInput): void;
|
|
2385
2446
|
private cleanupHammer;
|
|
2386
2447
|
render(): void;
|
|
2448
|
+
playToggleCurrentStory(): void;
|
|
2387
2449
|
}
|
|
2388
2450
|
|
|
2389
2451
|
export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
@@ -2404,7 +2466,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2404
2466
|
destBackground: HTMLCanvasElement;
|
|
2405
2467
|
onClose?: () => void;
|
|
2406
2468
|
onStoryChange?: (mode: StoryDirectionType) => void;
|
|
2407
|
-
onStoryChanged?: (mode: StoryDirectionType) => void;
|
|
2408
2469
|
listeners: EventsListener;
|
|
2409
2470
|
backgroundAnimation?: Animation;
|
|
2410
2471
|
overlay: any;
|
|
@@ -2438,6 +2499,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
2438
2499
|
onSmallGestures(animation: AnimeInstance, story: BlazeWidgetStory): void;
|
|
2439
2500
|
onKeyDown(ev: KeyboardEvent): false | undefined;
|
|
2440
2501
|
render(): void;
|
|
2502
|
+
playToggleCurrentStory(): void;
|
|
2441
2503
|
}
|
|
2442
2504
|
|
|
2443
2505
|
export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
@@ -2468,7 +2530,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
2468
2530
|
modal: BlazeWidgetStoryModal;
|
|
2469
2531
|
fullscreenMode: boolean;
|
|
2470
2532
|
static isPlaying: boolean;
|
|
2471
|
-
constructor();
|
|
2533
|
+
constructor(playerStyle: StoryPlayerStyle);
|
|
2472
2534
|
updateChip(): void;
|
|
2473
2535
|
updateButtonsState(): void;
|
|
2474
2536
|
static get observedAttributes(): string[];
|
|
@@ -2568,6 +2630,7 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
2568
2630
|
}
|
|
2569
2631
|
|
|
2570
2632
|
export declare class BlazeWidgetStory extends HTMLElement {
|
|
2633
|
+
playerStyle: StoryPlayerStyle;
|
|
2571
2634
|
pages: BlazeWidgetStoryBase[];
|
|
2572
2635
|
data: IStory;
|
|
2573
2636
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
@@ -2591,7 +2654,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2591
2654
|
storyTitle: HTMLElement;
|
|
2592
2655
|
storyPublishedDate: HTMLElement;
|
|
2593
2656
|
storyLiveChip: HTMLElement;
|
|
2594
|
-
|
|
2657
|
+
ctaButtonElement: BlazeCtaButton;
|
|
2658
|
+
bottomContainer: BlazeDiv;
|
|
2659
|
+
bottomButtons: BlazeDiv;
|
|
2595
2660
|
prevPageButton?: BlazeButton;
|
|
2596
2661
|
nextPageButton?: BlazeButton;
|
|
2597
2662
|
prevStoryButton?: BlazeButton;
|
|
@@ -2606,7 +2671,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2606
2671
|
navigationDirection: 'Forwards' | 'Backwards' | undefined;
|
|
2607
2672
|
resumeAfterfocus: boolean;
|
|
2608
2673
|
totalPlayStopwatch: Stopwatch;
|
|
2609
|
-
playerStyle: StoryPlayerStyle;
|
|
2610
2674
|
listeners: EventsListener;
|
|
2611
2675
|
shadowTopElement: HTMLDivElement;
|
|
2612
2676
|
isNavigationPending: boolean;
|
|
@@ -2618,8 +2682,9 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2618
2682
|
longPressHandler?: LongPressHandler;
|
|
2619
2683
|
originalNextPageDesktopClickListener: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
2620
2684
|
restartStoryOnClickEvent: ((event: MouseEvent) => void) | undefined;
|
|
2621
|
-
constructor();
|
|
2685
|
+
constructor(playerStyle: StoryPlayerStyle);
|
|
2622
2686
|
onShareClick(): Promise<void>;
|
|
2687
|
+
updateCtaButtonLayout(): void;
|
|
2623
2688
|
updateChip(): void;
|
|
2624
2689
|
setTheme(storyPlayerStyle: StoryPlayerStyle): void;
|
|
2625
2690
|
setButtonNavigationAsDisabled(buttonType: ButtonType): void;
|
|
@@ -2656,7 +2721,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2656
2721
|
onVisibilityChange(): void;
|
|
2657
2722
|
onBlur(): void;
|
|
2658
2723
|
onFocus(): void;
|
|
2659
|
-
close(): void;
|
|
2724
|
+
close(isDirectCloseCall?: boolean): void;
|
|
2660
2725
|
pause(): void;
|
|
2661
2726
|
resume(): void;
|
|
2662
2727
|
resetPosition(): void;
|
|
@@ -2667,6 +2732,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2667
2732
|
goNextPage(navigationType?: 'Automatic' | 'Manual'): void;
|
|
2668
2733
|
goPrevPage(): void;
|
|
2669
2734
|
disconnectedCallback(): void;
|
|
2735
|
+
updateCTAButtonPosition(): void;
|
|
2670
2736
|
renderCtaButton(pageIndex: number): void;
|
|
2671
2737
|
updatePlayerButtonsState(displayPageNavigationButtons?: boolean): void;
|
|
2672
2738
|
updateButtonState(buttonType: ButtonNavigation, button: BlazeButton | undefined): void;
|