@wscsports/blaze-web-sdk 0.1.56 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wscsports/blaze-web-sdk",
3
- "version": "0.1.56",
3
+ "version": "0.1.59",
4
4
  "main": "publish/index",
5
5
  "types": "publish/index",
6
6
  "files": [
@@ -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(elementStyle?: ShapeType);
190
+ constructor(layoutStyle?: LayoutStyle);
191
191
  connectedCallback(): void;
192
192
  }
193
193
 
@@ -1007,7 +1007,7 @@ export interface IndicatorStyle {
1007
1007
  text: string;
1008
1008
  }
1009
1009
  export interface LayoutStyle {
1010
- shape: ShapeType;
1010
+ thumbnailShape: ThumbnailShape;
1011
1011
  thumbnailType: ThumbnailType;
1012
1012
  rows: number;
1013
1013
  columns: number;
@@ -1428,9 +1428,9 @@ export * from './label.type';
1428
1428
  export * from './order.type';
1429
1429
  export * from './play.type';
1430
1430
  export * from './severity.type';
1431
- export * from './shape.type';
1432
1431
  export * from './size.type';
1433
1432
  export * from './thumbnail.type';
1433
+ export * from './widget.type';
1434
1434
 
1435
1435
  export type labelType = string | string[] | BlazeWidgetLabel;
1436
1436
 
@@ -1443,11 +1443,14 @@ export type PositionType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' |
1443
1443
 
1444
1444
  export type SeverityType = 'error' | 'warning' | 'info' | 'success';
1445
1445
 
1446
- export type ShapeType = 'rectangle' | 'custom' | 'circle';
1447
-
1448
1446
  export type SizeType = 'small' | 'medium' | 'large';
1449
1447
 
1450
- export type ThumbnailType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
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';
1451
1454
 
1452
1455
  interface ChipSizeOptions {
1453
1456
  statusLiveStyle: IndicatorStyle;
@@ -1546,14 +1549,17 @@ export declare class BlazeWidgetItem extends BaseWidget {
1546
1549
  isDisplaySkeleton: boolean;
1547
1550
  blazeSkeletonThumbnail: BlazeSkeleton | undefined;
1548
1551
  blazeSkeletonLabel: BlazeSkeleton | undefined;
1552
+ thumbnail: string;
1553
+ analyticsCalls: any;
1549
1554
  statusIndicatorSettings: IndicatorStyle;
1550
1555
  constructor(options: BlazeWidgetItemOptions);
1551
1556
  setTheme(theme: IWidgetTheme): void;
1552
1557
  setLive(): void;
1558
+ removeSkeleton(): void;
1553
1559
  setData(data: IStory): void;
1560
+ updateWidgetLayout(): void;
1554
1561
  updateLabel(): void;
1555
1562
  updateThumbnail(thumbnailUrl: string): void;
1556
- analyticsCalls: any;
1557
1563
  event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
1558
1564
  get chipDimenssions(): {
1559
1565
  chipWidth: number;
@@ -1621,10 +1627,9 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
1621
1627
  updateWidgetsData(): void;
1622
1628
  reorderWidgets(): void;
1623
1629
  connectWidgets(): void;
1624
- get shape(): ShapeType;
1625
- get thumbnailType(): ThumbnailType;
1630
+ get thumbnailShape(): ThumbnailShape;
1626
1631
  getMaxChipSize(): DOMRect;
1627
- widgetType(): 'row' | 'grid';
1632
+ widgetType(): WidgetType;
1628
1633
  }
1629
1634
 
1630
1635
  export declare class BlazeWidgetModal extends BaseWidget {