@wscsports/blaze-web-sdk 0.1.53 → 0.1.54
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 +41 -17
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -172,9 +172,11 @@ export declare class BlazeImage extends BaseWidget {
|
|
|
172
172
|
export * from './alert';
|
|
173
173
|
export * from './buttons';
|
|
174
174
|
export * from './chip';
|
|
175
|
+
export * from './div';
|
|
175
176
|
export * from './drawer';
|
|
176
177
|
export * from './image';
|
|
177
178
|
export * from './loader';
|
|
179
|
+
export * from './skeleton';
|
|
178
180
|
export * from './toast';
|
|
179
181
|
export * from './typography';
|
|
180
182
|
|
|
@@ -183,6 +185,12 @@ export declare class BlazeLoader extends HTMLElement {
|
|
|
183
185
|
connectedCallback(): void;
|
|
184
186
|
}
|
|
185
187
|
|
|
188
|
+
export declare class BlazeSkeleton extends BaseWidget {
|
|
189
|
+
borderRadius: string;
|
|
190
|
+
constructor(elementStyle?: ShapeType);
|
|
191
|
+
connectedCallback(): void;
|
|
192
|
+
}
|
|
193
|
+
|
|
186
194
|
export declare class BlazeToast extends BaseWidget {
|
|
187
195
|
constructor();
|
|
188
196
|
static get observedAttributes(): string[];
|
|
@@ -395,6 +403,7 @@ export interface WidgetsTagNameMap {
|
|
|
395
403
|
'blaze-widget-image': BlazeWidgetStoryImage;
|
|
396
404
|
'blaze-widget-video': BlazeWidgetStoryVideo;
|
|
397
405
|
'blaze-loader': BlazeLoader;
|
|
406
|
+
'blaze-skeleton': BlazeSkeleton;
|
|
398
407
|
'blaze-chip': BlazeChip;
|
|
399
408
|
'blaze-image': BlazeImage;
|
|
400
409
|
'blaze-toast': BlazeToast;
|
|
@@ -421,6 +430,7 @@ interface WidgetsTagNameOptionsMap {
|
|
|
421
430
|
'blaze-widget-image': {};
|
|
422
431
|
'blaze-widget-video': {};
|
|
423
432
|
'blaze-loader': {};
|
|
433
|
+
'blaze-skeleton': {};
|
|
424
434
|
'blaze-chip': {};
|
|
425
435
|
'blaze-image': {};
|
|
426
436
|
'blaze-toast': {};
|
|
@@ -438,6 +448,10 @@ export declare abstract class WidgetsFactory {
|
|
|
438
448
|
|
|
439
449
|
export * from './elements.factory';
|
|
440
450
|
|
|
451
|
+
export * from './widget-theme.guard';
|
|
452
|
+
|
|
453
|
+
export declare function isWidgetTheme(theme: any): theme is IWidgetTheme;
|
|
454
|
+
|
|
441
455
|
export * from './svgs';
|
|
442
456
|
|
|
443
457
|
export declare const playSvg = "data:image/svg+xml;charset=utf-8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"48\" height=\"48\" fill=\"none\"><path stroke=\"%23fff\" stroke-linecap=\"round\" stroke-width=\"1.9\" d=\"M17.74 30.34V18.53a1.8 1.8 0 0 1 2.77-1.52l9.23 5.92a1.8 1.8 0 0 1 0 3.03l-9.23 5.9a1.8 1.8 0 0 1-2.77-1.52z\"/></svg>";
|
|
@@ -542,8 +556,8 @@ export interface IWidgetView {
|
|
|
542
556
|
setTheme: (theme: IWidgetTheme) => void;
|
|
543
557
|
getTheme: () => IWidgetTheme;
|
|
544
558
|
setLabels: (labels: string[]) => void;
|
|
545
|
-
reload: (
|
|
546
|
-
|
|
559
|
+
reload: () => void;
|
|
560
|
+
setDelegations: (delegates: Record<Delegation, EventListenerOrEventListenerObject>) => void;
|
|
547
561
|
}
|
|
548
562
|
|
|
549
563
|
declare const AlertServiceClass_base: {
|
|
@@ -971,8 +985,11 @@ export declare class Presets {
|
|
|
971
985
|
static LabelStyle: LabelStyle;
|
|
972
986
|
static Grid2Column: LayoutStyle;
|
|
973
987
|
static Grid3Column: LayoutStyle;
|
|
988
|
+
static Grid2ColumnHorizontal: LayoutStyle;
|
|
989
|
+
static Grid3ColumnHorizontal: LayoutStyle;
|
|
974
990
|
static RowCircle: LayoutStyle;
|
|
975
991
|
static RowRectangle: LayoutStyle;
|
|
992
|
+
static RowHorizontalRectangle: LayoutStyle;
|
|
976
993
|
static Default: LayoutStyle;
|
|
977
994
|
static DefaultStoryStyle: StoryPlayerStyle;
|
|
978
995
|
}
|
|
@@ -990,7 +1007,8 @@ export interface IndicatorStyle {
|
|
|
990
1007
|
text: string;
|
|
991
1008
|
}
|
|
992
1009
|
export interface LayoutStyle {
|
|
993
|
-
shape:
|
|
1010
|
+
shape: ShapeType;
|
|
1011
|
+
thumbnailType: ThumbnailType;
|
|
994
1012
|
rows: number;
|
|
995
1013
|
columns: number;
|
|
996
1014
|
itemRatio: number;
|
|
@@ -1005,7 +1023,7 @@ export interface LayoutStyle {
|
|
|
1005
1023
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
1006
1024
|
statusReadStyle: IndicatorStyle;
|
|
1007
1025
|
statusUnreadStyle: IndicatorStyle;
|
|
1008
|
-
statusIndicatorPosition:
|
|
1026
|
+
statusIndicatorPosition: PositionType;
|
|
1009
1027
|
}
|
|
1010
1028
|
export interface LabelStyle {
|
|
1011
1029
|
visible: boolean;
|
|
@@ -1016,7 +1034,7 @@ export interface LabelStyle {
|
|
|
1016
1034
|
padding: string;
|
|
1017
1035
|
font: string;
|
|
1018
1036
|
fontSize: string;
|
|
1019
|
-
position:
|
|
1037
|
+
position: PositionType;
|
|
1020
1038
|
}
|
|
1021
1039
|
export interface StoryPlayerStyle {
|
|
1022
1040
|
titleVisible: boolean;
|
|
@@ -1047,7 +1065,7 @@ export declare const Colors: {
|
|
|
1047
1065
|
readonly TimeColor: "#7F7F7F";
|
|
1048
1066
|
};
|
|
1049
1067
|
|
|
1050
|
-
export type ThemeType = '
|
|
1068
|
+
export type ThemeType = 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle' | 'row-rectangle-horizontal' | 'grid-2-columns-horizontal' | 'grid-3-columns-horizontal' | 'default';
|
|
1051
1069
|
export declare class ThemeFactory {
|
|
1052
1070
|
static create(name?: ThemeType): IWidgetTheme;
|
|
1053
1071
|
}
|
|
@@ -1405,25 +1423,30 @@ export * from './client-platform.type';
|
|
|
1405
1423
|
export * from './direction.type';
|
|
1406
1424
|
export * from './element.type';
|
|
1407
1425
|
export * from './fetch-priority.type';
|
|
1426
|
+
export * from './label.type';
|
|
1408
1427
|
export * from './order.type';
|
|
1428
|
+
export * from './play.type';
|
|
1409
1429
|
export * from './severity.type';
|
|
1410
1430
|
export * from './shape.type';
|
|
1411
1431
|
export * from './size.type';
|
|
1412
1432
|
export * from './thumbnail.type';
|
|
1413
|
-
|
|
1433
|
+
|
|
1434
|
+
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1414
1435
|
|
|
1415
1436
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
1416
1437
|
|
|
1417
1438
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1418
1439
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1419
1440
|
|
|
1441
|
+
export type PositionType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideUnder' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1442
|
+
|
|
1420
1443
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1421
1444
|
|
|
1422
1445
|
export type ShapeType = 'rectangle' | 'custom' | 'circle';
|
|
1423
1446
|
|
|
1424
1447
|
export type SizeType = 'small' | 'medium' | 'large';
|
|
1425
1448
|
|
|
1426
|
-
export type ThumbnailType = 'SquareIcon' | 'VerticalTwoByThree';
|
|
1449
|
+
export type ThumbnailType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
|
|
1427
1450
|
|
|
1428
1451
|
interface ChipSizeOptions {
|
|
1429
1452
|
statusLiveStyle: IndicatorStyle;
|
|
@@ -1500,8 +1523,8 @@ export * from './widget-story-video';
|
|
|
1500
1523
|
export interface BlazeWidgetItemOptions {
|
|
1501
1524
|
theme: IWidgetTheme;
|
|
1502
1525
|
story: IStory;
|
|
1503
|
-
thumbnailType: string;
|
|
1504
1526
|
}
|
|
1527
|
+
export type itemStateType = 'loading' | 'done' | 'failed';
|
|
1505
1528
|
export declare class BlazeWidgetItem extends BaseWidget {
|
|
1506
1529
|
protected options: BlazeWidgetItemOptions;
|
|
1507
1530
|
wrapper: HTMLElement;
|
|
@@ -1517,13 +1540,15 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1517
1540
|
onClick: (() => void) | undefined;
|
|
1518
1541
|
chip: HTMLElement;
|
|
1519
1542
|
newChip: HTMLElement | undefined;
|
|
1520
|
-
state:
|
|
1543
|
+
state: itemStateType;
|
|
1521
1544
|
isLive: boolean | undefined;
|
|
1545
|
+
blazeSkeletonThumbnail: BlazeSkeleton;
|
|
1546
|
+
blazeSkeletonLabel: BlazeSkeleton;
|
|
1522
1547
|
statusIndicatorSettings: IndicatorStyle;
|
|
1523
1548
|
constructor(options: BlazeWidgetItemOptions);
|
|
1524
1549
|
setTheme(theme: IWidgetTheme): void;
|
|
1525
1550
|
setLive(): void;
|
|
1526
|
-
setData(data: IStory
|
|
1551
|
+
setData(data: IStory): void;
|
|
1527
1552
|
analyticsCalls: any;
|
|
1528
1553
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1529
1554
|
get chipDimenssions(): {
|
|
@@ -1562,6 +1587,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1562
1587
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1563
1588
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1564
1589
|
intersectionObserver: IntersectionObserver;
|
|
1590
|
+
isVisibleEventSent: boolean;
|
|
1565
1591
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1566
1592
|
constructor();
|
|
1567
1593
|
connectedCallback(): void;
|
|
@@ -1572,12 +1598,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1572
1598
|
onResize(): void;
|
|
1573
1599
|
handlePopState(_event: Event): void;
|
|
1574
1600
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1575
|
-
setLabels(labels:
|
|
1601
|
+
setLabels(labels: labelType): void;
|
|
1576
1602
|
getTheme(): IWidgetTheme;
|
|
1577
|
-
setTheme(theme: IWidgetTheme): void;
|
|
1578
|
-
reload(
|
|
1579
|
-
|
|
1580
|
-
set delegates(delegates: Record<Delegation, EventListenerOrEventListenerObject>);
|
|
1603
|
+
setTheme(theme: IWidgetTheme | string): void;
|
|
1604
|
+
reload(): void;
|
|
1605
|
+
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
1581
1606
|
setMaxSize(maxSize: number): void;
|
|
1582
1607
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
1583
1608
|
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
@@ -1589,7 +1614,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1589
1614
|
private get theme();
|
|
1590
1615
|
render(): void;
|
|
1591
1616
|
maxSize(): number;
|
|
1592
|
-
loadMoments(): Promise<void>;
|
|
1593
1617
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1594
1618
|
updateWidgetsData(): void;
|
|
1595
1619
|
reorderWidgets(): void;
|