@wscsports/blaze-web-sdk 0.1.72 → 0.1.737
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 +33 -16
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -721,7 +721,7 @@ export declare class StoryEvent {
|
|
|
721
721
|
'story_session_id': string;
|
|
722
722
|
'story_page_index': number;
|
|
723
723
|
'is_last_page': boolean;
|
|
724
|
-
'audio_state':
|
|
724
|
+
'audio_state': string;
|
|
725
725
|
'playback_action_method': 'Press' | 'Release' | 'Click';
|
|
726
726
|
}
|
|
727
727
|
export declare class WidgetEvent {
|
|
@@ -1462,12 +1462,9 @@ export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'R
|
|
|
1462
1462
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1463
1463
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1464
1464
|
|
|
1465
|
-
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1465
|
+
export type PositionInsideType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddleTop' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight';
|
|
1466
1466
|
export type PositionOutsideType = 'outsideUnder' | 'outsideBelow' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1467
1467
|
export type PositionType = PositionInsideType | PositionOutsideType;
|
|
1468
|
-
export type PositionCircleRowLabelType = 'outsideBelow' | 'outsideAbove';
|
|
1469
|
-
export type PositionRectangleRowLabelType = PositionCircleRowLabelType | PositionInsideType;
|
|
1470
|
-
export type PositionRectangleRowHorizontalLabelType = PositionInsideType;
|
|
1471
1468
|
|
|
1472
1469
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1473
1470
|
|
|
@@ -1475,10 +1472,10 @@ export type SizeType = 'small' | 'medium' | 'large';
|
|
|
1475
1472
|
|
|
1476
1473
|
export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
|
|
1477
1474
|
export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
|
|
1478
|
-
export type ThumbnailShape = '
|
|
1475
|
+
export type ThumbnailShape = 'Circle' | 'Rectangle';
|
|
1479
1476
|
export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
|
|
1480
1477
|
|
|
1481
|
-
export type WidgetType = '
|
|
1478
|
+
export type WidgetType = 'Row' | 'Grid';
|
|
1482
1479
|
|
|
1483
1480
|
interface ChipSizeOptions {
|
|
1484
1481
|
statusLiveStyle: IndicatorStyle;
|
|
@@ -1487,6 +1484,11 @@ interface ChipSizeOptions {
|
|
|
1487
1484
|
statusUnreadStyle: IndicatorStyle;
|
|
1488
1485
|
}
|
|
1489
1486
|
export declare function getChipSize(options: ChipSizeOptions): DOMRect;
|
|
1487
|
+
export declare function getMaxChipSize(layout: LayoutStyle): DOMRect;
|
|
1488
|
+
export declare function calculateChipSize(statusIndicatorPosition: PositionType, layoutStyle: LayoutStyle): {
|
|
1489
|
+
chipHeight: number;
|
|
1490
|
+
chipWidth: number;
|
|
1491
|
+
};
|
|
1490
1492
|
|
|
1491
1493
|
export declare function delay(ms: number): Promise<void>;
|
|
1492
1494
|
|
|
@@ -1522,6 +1524,19 @@ export * from './guard.utils';
|
|
|
1522
1524
|
export * from './helper';
|
|
1523
1525
|
export * from './regex.utils';
|
|
1524
1526
|
export * from './stopwatch';
|
|
1527
|
+
export * from './position.utils';
|
|
1528
|
+
|
|
1529
|
+
export declare function calculatePosition(statusIndicatorPosition: PositionType): {
|
|
1530
|
+
isOutside: boolean;
|
|
1531
|
+
isInside: boolean;
|
|
1532
|
+
isTop: boolean;
|
|
1533
|
+
isMiddle: boolean;
|
|
1534
|
+
isBottom: boolean;
|
|
1535
|
+
isBelow: boolean;
|
|
1536
|
+
isAbove: boolean;
|
|
1537
|
+
isLeft: boolean;
|
|
1538
|
+
isRight: boolean;
|
|
1539
|
+
};
|
|
1525
1540
|
|
|
1526
1541
|
export declare const RegexHash: RegExp;
|
|
1527
1542
|
export declare const RegexHashPlayType: RegExp;
|
|
@@ -1598,11 +1613,6 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1598
1613
|
private updateInsideLabelStyles;
|
|
1599
1614
|
private updateOutsideLabelStyles;
|
|
1600
1615
|
private updateThumbnailStyles;
|
|
1601
|
-
getMaxChipSize(): DOMRect;
|
|
1602
|
-
get chipDimenssions(): {
|
|
1603
|
-
chipWidth: number;
|
|
1604
|
-
chipHeight: number;
|
|
1605
|
-
};
|
|
1606
1616
|
private updateChipStyles;
|
|
1607
1617
|
setTheme(theme: IWidgetTheme): void;
|
|
1608
1618
|
setChipStyle(): void;
|
|
@@ -1634,14 +1644,17 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1634
1644
|
preset: IWidgetTheme | undefined;
|
|
1635
1645
|
thumbnailWidth: number | undefined;
|
|
1636
1646
|
thumbnailHeight: number | undefined;
|
|
1647
|
+
widgetHeight: number;
|
|
1648
|
+
parentHeight: number | undefined;
|
|
1649
|
+
intersectionObserver: IntersectionObserver;
|
|
1650
|
+
heightObserver: MutationObserver;
|
|
1637
1651
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1638
1652
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1639
|
-
intersectionObserver: IntersectionObserver;
|
|
1640
1653
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1641
|
-
isWidgetReload: boolean | undefined;
|
|
1642
|
-
widgetHeight: number;
|
|
1643
1654
|
constructor();
|
|
1655
|
+
handleHeightChangeMutation(mutationsList: MutationRecord[]): void;
|
|
1644
1656
|
connectedCallback(): void;
|
|
1657
|
+
getParentHeightWithoutPadding(): number | null;
|
|
1645
1658
|
disconnectedCallback(): void;
|
|
1646
1659
|
set storyIds(value: string);
|
|
1647
1660
|
setContentIds(storyIds: string[]): void;
|
|
@@ -1665,6 +1678,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1665
1678
|
loadStories(): Promise<void>;
|
|
1666
1679
|
private get theme();
|
|
1667
1680
|
render(): void;
|
|
1681
|
+
calculateLabelSizes(labelStyle: LabelStyle, lineNumber: number): {
|
|
1682
|
+
labelWidth: number | "auto";
|
|
1683
|
+
labelAdditionalWidth: number;
|
|
1684
|
+
labelAdditionalHeight: number;
|
|
1685
|
+
};
|
|
1668
1686
|
maxSize(): number;
|
|
1669
1687
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1670
1688
|
isReadByLastUnIgnoredPageStatus(story: IStory): boolean;
|
|
@@ -1672,7 +1690,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1672
1690
|
reorderWidgets(): void;
|
|
1673
1691
|
connectWidgets(): void;
|
|
1674
1692
|
get thumbnailShape(): ThumbnailShape;
|
|
1675
|
-
getMaxChipSize(): DOMRect;
|
|
1676
1693
|
widgetType(): WidgetType;
|
|
1677
1694
|
}
|
|
1678
1695
|
|