@wscsports/blaze-web-sdk 0.1.53 → 0.1.56
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 +44 -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,10 +1007,12 @@ 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;
|
|
1015
|
+
skeleton: boolean;
|
|
997
1016
|
labelStyle: LabelStyle;
|
|
998
1017
|
lines: number;
|
|
999
1018
|
horizontalItemsSpacing: number;
|
|
@@ -1005,7 +1024,7 @@ export interface LayoutStyle {
|
|
|
1005
1024
|
statusLiveUnreadStyle: IndicatorStyle;
|
|
1006
1025
|
statusReadStyle: IndicatorStyle;
|
|
1007
1026
|
statusUnreadStyle: IndicatorStyle;
|
|
1008
|
-
statusIndicatorPosition:
|
|
1027
|
+
statusIndicatorPosition: PositionType;
|
|
1009
1028
|
}
|
|
1010
1029
|
export interface LabelStyle {
|
|
1011
1030
|
visible: boolean;
|
|
@@ -1016,7 +1035,7 @@ export interface LabelStyle {
|
|
|
1016
1035
|
padding: string;
|
|
1017
1036
|
font: string;
|
|
1018
1037
|
fontSize: string;
|
|
1019
|
-
position:
|
|
1038
|
+
position: PositionType;
|
|
1020
1039
|
}
|
|
1021
1040
|
export interface StoryPlayerStyle {
|
|
1022
1041
|
titleVisible: boolean;
|
|
@@ -1047,7 +1066,7 @@ export declare const Colors: {
|
|
|
1047
1066
|
readonly TimeColor: "#7F7F7F";
|
|
1048
1067
|
};
|
|
1049
1068
|
|
|
1050
|
-
export type ThemeType = '
|
|
1069
|
+
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
1070
|
export declare class ThemeFactory {
|
|
1052
1071
|
static create(name?: ThemeType): IWidgetTheme;
|
|
1053
1072
|
}
|
|
@@ -1405,25 +1424,30 @@ export * from './client-platform.type';
|
|
|
1405
1424
|
export * from './direction.type';
|
|
1406
1425
|
export * from './element.type';
|
|
1407
1426
|
export * from './fetch-priority.type';
|
|
1427
|
+
export * from './label.type';
|
|
1408
1428
|
export * from './order.type';
|
|
1429
|
+
export * from './play.type';
|
|
1409
1430
|
export * from './severity.type';
|
|
1410
1431
|
export * from './shape.type';
|
|
1411
1432
|
export * from './size.type';
|
|
1412
1433
|
export * from './thumbnail.type';
|
|
1413
|
-
|
|
1434
|
+
|
|
1435
|
+
export type labelType = string | string[] | BlazeWidgetLabel;
|
|
1414
1436
|
|
|
1415
1437
|
export type OrderType = 'Manual' | 'AtoZ' | 'ZtoA' | 'RecentlyUpdatedFirst' | 'RecentlyUpdatedLast' | 'RecentlyCreatedFirst' | 'RecentlyCreatedLast';
|
|
1416
1438
|
|
|
1417
1439
|
export declare const PlayTypeArray: readonly ["Widget", "Share", "SingleStory"];
|
|
1418
1440
|
export type PlayType = typeof PlayTypeArray[number];
|
|
1419
1441
|
|
|
1442
|
+
export type PositionType = 'insideTopLeft' | 'insideTopRight' | 'insideMiddle' | 'insideBottomRight' | 'insideBottomLeft' | 'insideBottomMiddle' | 'insideMiddleLeft' | 'insideMiddleRight' | 'outsideUnder' | 'outsideAbove' | 'outsideTop' | 'outsideTopLeft' | 'outsideTopRight' | 'outsideBottomLeft' | 'outsideBottomRight' | 'outsideBottom' | 'outsideRight' | 'outsideLeft';
|
|
1443
|
+
|
|
1420
1444
|
export type SeverityType = 'error' | 'warning' | 'info' | 'success';
|
|
1421
1445
|
|
|
1422
1446
|
export type ShapeType = 'rectangle' | 'custom' | 'circle';
|
|
1423
1447
|
|
|
1424
1448
|
export type SizeType = 'small' | 'medium' | 'large';
|
|
1425
1449
|
|
|
1426
|
-
export type ThumbnailType = 'SquareIcon' | 'VerticalTwoByThree';
|
|
1450
|
+
export type ThumbnailType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
|
|
1427
1451
|
|
|
1428
1452
|
interface ChipSizeOptions {
|
|
1429
1453
|
statusLiveStyle: IndicatorStyle;
|
|
@@ -1500,8 +1524,8 @@ export * from './widget-story-video';
|
|
|
1500
1524
|
export interface BlazeWidgetItemOptions {
|
|
1501
1525
|
theme: IWidgetTheme;
|
|
1502
1526
|
story: IStory;
|
|
1503
|
-
thumbnailType: string;
|
|
1504
1527
|
}
|
|
1528
|
+
export type itemStateType = 'loading' | 'done' | 'failed';
|
|
1505
1529
|
export declare class BlazeWidgetItem extends BaseWidget {
|
|
1506
1530
|
protected options: BlazeWidgetItemOptions;
|
|
1507
1531
|
wrapper: HTMLElement;
|
|
@@ -1517,13 +1541,18 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
1517
1541
|
onClick: (() => void) | undefined;
|
|
1518
1542
|
chip: HTMLElement;
|
|
1519
1543
|
newChip: HTMLElement | undefined;
|
|
1520
|
-
state:
|
|
1544
|
+
state: itemStateType;
|
|
1521
1545
|
isLive: boolean | undefined;
|
|
1546
|
+
isDisplaySkeleton: boolean;
|
|
1547
|
+
blazeSkeletonThumbnail: BlazeSkeleton | undefined;
|
|
1548
|
+
blazeSkeletonLabel: BlazeSkeleton | undefined;
|
|
1522
1549
|
statusIndicatorSettings: IndicatorStyle;
|
|
1523
1550
|
constructor(options: BlazeWidgetItemOptions);
|
|
1524
1551
|
setTheme(theme: IWidgetTheme): void;
|
|
1525
1552
|
setLive(): void;
|
|
1526
|
-
setData(data: IStory
|
|
1553
|
+
setData(data: IStory): void;
|
|
1554
|
+
updateLabel(): void;
|
|
1555
|
+
updateThumbnail(thumbnailUrl: string): void;
|
|
1527
1556
|
analyticsCalls: any;
|
|
1528
1557
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1529
1558
|
get chipDimenssions(): {
|
|
@@ -1572,12 +1601,11 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1572
1601
|
onResize(): void;
|
|
1573
1602
|
handlePopState(_event: Event): void;
|
|
1574
1603
|
addDelegateListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
1575
|
-
setLabels(labels:
|
|
1604
|
+
setLabels(labels: labelType): void;
|
|
1576
1605
|
getTheme(): IWidgetTheme;
|
|
1577
|
-
setTheme(theme: IWidgetTheme): void;
|
|
1578
|
-
reload(
|
|
1579
|
-
|
|
1580
|
-
set delegates(delegates: Record<Delegation, EventListenerOrEventListenerObject>);
|
|
1606
|
+
setTheme(theme: IWidgetTheme | string): void;
|
|
1607
|
+
reload(): void;
|
|
1608
|
+
setDelegations(delegates: Record<Delegation, EventListenerOrEventListenerObject>): void;
|
|
1581
1609
|
setMaxSize(maxSize: number): void;
|
|
1582
1610
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
1583
1611
|
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
@@ -1589,7 +1617,6 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1589
1617
|
private get theme();
|
|
1590
1618
|
render(): void;
|
|
1591
1619
|
maxSize(): number;
|
|
1592
|
-
loadMoments(): Promise<void>;
|
|
1593
1620
|
event(action: WidgetAction, data: Partial<WidgetEvent>, label?: string | undefined): void;
|
|
1594
1621
|
updateWidgetsData(): void;
|
|
1595
1622
|
reorderWidgets(): void;
|