@wscsports/blaze-web-sdk 0.1.54 → 0.1.59
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 +21 -13
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -187,7 +187,7 @@ export declare class BlazeLoader extends HTMLElement {
|
|
|
187
187
|
|
|
188
188
|
export declare class BlazeSkeleton extends BaseWidget {
|
|
189
189
|
borderRadius: string;
|
|
190
|
-
constructor(
|
|
190
|
+
constructor(layoutStyle?: LayoutStyle);
|
|
191
191
|
connectedCallback(): void;
|
|
192
192
|
}
|
|
193
193
|
|
|
@@ -1007,11 +1007,12 @@ export interface IndicatorStyle {
|
|
|
1007
1007
|
text: string;
|
|
1008
1008
|
}
|
|
1009
1009
|
export interface LayoutStyle {
|
|
1010
|
-
|
|
1010
|
+
thumbnailShape: ThumbnailShape;
|
|
1011
1011
|
thumbnailType: ThumbnailType;
|
|
1012
1012
|
rows: number;
|
|
1013
1013
|
columns: number;
|
|
1014
1014
|
itemRatio: number;
|
|
1015
|
+
skeleton: boolean;
|
|
1015
1016
|
labelStyle: LabelStyle;
|
|
1016
1017
|
lines: number;
|
|
1017
1018
|
horizontalItemsSpacing: number;
|
|
@@ -1427,9 +1428,9 @@ export * from './label.type';
|
|
|
1427
1428
|
export * from './order.type';
|
|
1428
1429
|
export * from './play.type';
|
|
1429
1430
|
export * from './severity.type';
|
|
1430
|
-
export * from './shape.type';
|
|
1431
1431
|
export * from './size.type';
|
|
1432
1432
|
export * from './thumbnail.type';
|
|
1433
|
+
export * from './widget.type';
|
|
1433
1434
|
|
|
1434
1435
|
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1435
1436
|
|
|
@@ -1442,11 +1443,14 @@ export type PositionType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' |
|
|
|
1442
1443
|
|
|
1443
1444
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1444
1445
|
|
|
1445
|
-
export type ShapeType = 'rectangle' | 'custom' | 'circle';
|
|
1446
|
-
|
|
1447
1446
|
export type SizeType = 'small' | 'medium' | 'large';
|
|
1448
1447
|
|
|
1449
|
-
export type
|
|
1448
|
+
export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
|
|
1449
|
+
export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
|
|
1450
|
+
export type ThumbnailShape = 'circle' | 'rectangle';
|
|
1451
|
+
export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
|
|
1452
|
+
|
|
1453
|
+
export type WidgetType = 'row' | 'grid';
|
|
1450
1454
|
|
|
1451
1455
|
interface ChipSizeOptions {
|
|
1452
1456
|
statusLiveStyle: IndicatorStyle;
|
|
@@ -1542,14 +1546,20 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1542
1546
|
newChip: HTMLElement | undefined;
|
|
1543
1547
|
state: itemStateType;
|
|
1544
1548
|
isLive: boolean | undefined;
|
|
1545
|
-
|
|
1546
|
-
|
|
1549
|
+
isDisplaySkeleton: boolean;
|
|
1550
|
+
blazeSkeletonThumbnail: BlazeSkeleton | undefined;
|
|
1551
|
+
blazeSkeletonLabel: BlazeSkeleton | undefined;
|
|
1552
|
+
thumbnail: string;
|
|
1553
|
+
analyticsCalls: any;
|
|
1547
1554
|
statusIndicatorSettings: IndicatorStyle;
|
|
1548
1555
|
constructor(options: BlazeWidgetItemOptions);
|
|
1549
1556
|
setTheme(theme: IWidgetTheme): void;
|
|
1550
1557
|
setLive(): void;
|
|
1558
|
+
removeSkeleton(): void;
|
|
1551
1559
|
setData(data: IStory): void;
|
|
1552
|
-
|
|
1560
|
+
updateWidgetLayout(): void;
|
|
1561
|
+
updateLabel(): void;
|
|
1562
|
+
updateThumbnail(thumbnailUrl: string): void;
|
|
1553
1563
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1554
1564
|
get chipDimenssions(): {
|
|
1555
1565
|
chipWidth: number;
|
|
@@ -1587,7 +1597,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1587
1597
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1588
1598
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1589
1599
|
intersectionObserver: IntersectionObserver;
|
|
1590
|
-
isVisibleEventSent: boolean;
|
|
1591
1600
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1592
1601
|
constructor();
|
|
1593
1602
|
connectedCallback(): void;
|
|
@@ -1618,10 +1627,9 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1618
1627
|
updateWidgetsData(): void;
|
|
1619
1628
|
reorderWidgets(): void;
|
|
1620
1629
|
connectWidgets(): void;
|
|
1621
|
-
get
|
|
1622
|
-
get thumbnailType(): ThumbnailType;
|
|
1630
|
+
get thumbnailShape(): ThumbnailShape;
|
|
1623
1631
|
getMaxChipSize(): DOMRect;
|
|
1624
|
-
widgetType():
|
|
1632
|
+
widgetType(): WidgetType;
|
|
1625
1633
|
}
|
|
1626
1634
|
|
|
1627
1635
|
export declare class BlazeWidgetModal extends BaseWidget {
|