@wscsports/blaze-web-sdk 0.1.63 → 0.1.66
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 +1 -1
- package/publish/index.d.ts +55 -36
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -356,6 +356,7 @@ export interface IThumbnail {
|
|
|
356
356
|
|
|
357
357
|
export declare enum ErrorCode {
|
|
358
358
|
FailedToFindContainerId = 1,
|
|
359
|
+
FailedContainerIdHasWidgetAlready = 2,
|
|
359
360
|
FailedLoadingStories = 100,
|
|
360
361
|
FailedEnrichStories = 101,
|
|
361
362
|
FailedToHaveLabels = 103,
|
|
@@ -689,7 +690,7 @@ export declare class AnalyticsEvent {
|
|
|
689
690
|
export declare class StoryEvent {
|
|
690
691
|
'story_start_id': string;
|
|
691
692
|
'story_id': string;
|
|
692
|
-
'
|
|
693
|
+
'story_title': string;
|
|
693
694
|
'story_page_id': string;
|
|
694
695
|
'story_page_count': number;
|
|
695
696
|
'story_page_type': string;
|
|
@@ -1035,6 +1036,7 @@ export interface LabelStyle {
|
|
|
1035
1036
|
padding: string;
|
|
1036
1037
|
font: string;
|
|
1037
1038
|
fontSize: string;
|
|
1039
|
+
textAlign?: string;
|
|
1038
1040
|
position: PositionType;
|
|
1039
1041
|
}
|
|
1040
1042
|
export interface StoryPlayerStyle {
|
|
@@ -1439,7 +1441,12 @@ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'R
|
|
|
1439
1441
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1440
1442
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1441
1443
|
|
|
1442
|
-
export type
|
|
1444
|
+
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1445
|
+
export type PositionOutsideType = 'outsideUnder' | 'outsideBelow' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1446
|
+
export type PositionType = PositionInsideType | PositionOutsideType;
|
|
1447
|
+
export type PositionCircleRowLabelType = 'outsideBelow' | 'outsideAbove';
|
|
1448
|
+
export type PositionRectangleRowLabelType = PositionCircleRowLabelType | PositionInsideType;
|
|
1449
|
+
export type PositionRectangleRowHorizontalLabelType = PositionInsideType;
|
|
1443
1450
|
|
|
1444
1451
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1445
1452
|
|
|
@@ -1528,48 +1535,54 @@ export interface BlazeWidgetItemOptions {
|
|
|
1528
1535
|
theme: IWidgetTheme;
|
|
1529
1536
|
story: IStory;
|
|
1530
1537
|
}
|
|
1531
|
-
export type itemStateType = 'loading' | 'done' | 'failed';
|
|
1532
1538
|
export declare class BlazeWidgetItem extends BaseWidget {
|
|
1533
1539
|
protected options: BlazeWidgetItemOptions;
|
|
1534
|
-
wrapper
|
|
1535
|
-
container
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
thumbnailType
|
|
1542
|
-
theme
|
|
1543
|
-
|
|
1540
|
+
private wrapper;
|
|
1541
|
+
private container;
|
|
1542
|
+
private thumbnail;
|
|
1543
|
+
private thumbnailString;
|
|
1544
|
+
private label;
|
|
1545
|
+
private labelContainer;
|
|
1546
|
+
private labelBackground;
|
|
1547
|
+
private thumbnailType;
|
|
1548
|
+
private theme;
|
|
1549
|
+
private chip;
|
|
1550
|
+
private isLive;
|
|
1551
|
+
private isDisplaySkeleton;
|
|
1552
|
+
private blazeSkeletonThumbnail;
|
|
1553
|
+
private blazeSkeletonLabel;
|
|
1554
|
+
private analyticsCalls;
|
|
1555
|
+
private statusIndicatorSettings;
|
|
1556
|
+
story: IStory;
|
|
1544
1557
|
onClick: (() => void) | undefined;
|
|
1545
|
-
chip: HTMLElement;
|
|
1546
|
-
newChip: HTMLElement | undefined;
|
|
1547
|
-
state: itemStateType;
|
|
1548
|
-
isLive: boolean | undefined;
|
|
1549
|
-
isDisplaySkeleton: boolean;
|
|
1550
|
-
blazeSkeletonThumbnail: BlazeSkeleton | undefined;
|
|
1551
|
-
blazeSkeletonLabel: BlazeSkeleton | undefined;
|
|
1552
|
-
thumbnail: string;
|
|
1553
|
-
analyticsCalls: any;
|
|
1554
|
-
statusIndicatorSettings: IndicatorStyle;
|
|
1555
1558
|
constructor(options: BlazeWidgetItemOptions);
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1559
|
+
private initializeWidget;
|
|
1560
|
+
connectedCallback(): void;
|
|
1561
|
+
disconnectedCallback(): void;
|
|
1562
|
+
updateWidget(): void;
|
|
1563
|
+
private setupDOMElements;
|
|
1564
|
+
private setupEventListeners;
|
|
1565
|
+
private handleWidgetClick;
|
|
1566
|
+
private setData;
|
|
1567
|
+
thumbnailUrl(): string;
|
|
1568
|
+
private removeSkeleton;
|
|
1569
|
+
private updateWidgetLayout;
|
|
1570
|
+
private updateLabel;
|
|
1571
|
+
private updateThumbnail;
|
|
1572
|
+
private updateContainerStyles;
|
|
1573
|
+
private updateLabelStyles;
|
|
1574
|
+
private updateInsideLabelStyles;
|
|
1575
|
+
private updateOutsideLabelStyles;
|
|
1576
|
+
private updateThumbnailStyles;
|
|
1577
|
+
getMaxChipSize(): DOMRect;
|
|
1564
1578
|
get chipDimenssions(): {
|
|
1565
1579
|
chipWidth: number;
|
|
1566
1580
|
chipHeight: number;
|
|
1567
1581
|
};
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
thumbnailUrl(): string;
|
|
1582
|
+
private updateChipStyles;
|
|
1583
|
+
setTheme(theme: IWidgetTheme): void;
|
|
1584
|
+
setLive(): void;
|
|
1585
|
+
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1573
1586
|
render(): void;
|
|
1574
1587
|
}
|
|
1575
1588
|
|
|
@@ -1582,6 +1595,10 @@ export declare class BlazeWidgetLabel {
|
|
|
1582
1595
|
mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
|
|
1583
1596
|
atLeastOneOf(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
|
|
1584
1597
|
toString(): string;
|
|
1598
|
+
private static createLabel;
|
|
1599
|
+
private static validateAndProceed;
|
|
1600
|
+
private static validateNoCommas;
|
|
1601
|
+
private static isValidLabelFormat;
|
|
1585
1602
|
}
|
|
1586
1603
|
|
|
1587
1604
|
/// <reference types="node" />
|
|
@@ -2058,6 +2075,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2058
2075
|
isStoryLoadCompletedTriggered: boolean;
|
|
2059
2076
|
isStoryActive: boolean;
|
|
2060
2077
|
isResumeOnFocusExecuted: boolean;
|
|
2078
|
+
refWidget: BlazeWidgetStory[] | undefined;
|
|
2061
2079
|
pageIndex: number;
|
|
2062
2080
|
container: HTMLElement;
|
|
2063
2081
|
progress: HTMLElement;
|
|
@@ -2140,5 +2158,6 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
2140
2158
|
disconnectedCallback(): void;
|
|
2141
2159
|
renderCtaButton(pageIndex: number): void;
|
|
2142
2160
|
render(): void;
|
|
2161
|
+
shouldDisplayButton(navType: string): string;
|
|
2143
2162
|
}
|
|
2144
2163
|
|