@wscsports/blaze-web-sdk 0.10.0 → 0.11.0
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 +29 -6
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -378,7 +378,12 @@ export declare class BlazeDataSourceValidations {
|
|
|
378
378
|
static validateFormat(dataSource: BlazeDataSourceType): void;
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
export declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number):
|
|
381
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number): {
|
|
382
|
+
(...args: Parameters<T>): void;
|
|
383
|
+
cancel(): void;
|
|
384
|
+
} & {
|
|
385
|
+
cancel: () => void;
|
|
386
|
+
};
|
|
382
387
|
|
|
383
388
|
export declare const Platform: {
|
|
384
389
|
readonly Console: "console";
|
|
@@ -1240,7 +1245,7 @@ export interface IStory extends IContent {
|
|
|
1240
1245
|
}
|
|
1241
1246
|
|
|
1242
1247
|
export interface IThumbnail {
|
|
1243
|
-
type:
|
|
1248
|
+
type: ThumbnailApiType;
|
|
1244
1249
|
rendition: IRendition;
|
|
1245
1250
|
renditions?: IRendition[];
|
|
1246
1251
|
}
|
|
@@ -1649,6 +1654,7 @@ export * from './service.interface';
|
|
|
1649
1654
|
export * from './widget-label-builder.interface';
|
|
1650
1655
|
export * from './widget-options.interface';
|
|
1651
1656
|
export * from './widget-view.interface';
|
|
1657
|
+
export { default as Observable } from './observable';
|
|
1652
1658
|
|
|
1653
1659
|
export default interface IntersectionObservable {
|
|
1654
1660
|
intersectionObserver: IntersectionObserver;
|
|
@@ -2400,7 +2406,9 @@ export declare class Presets {
|
|
|
2400
2406
|
static Grid3ColumnHorizontal: LayoutStyle;
|
|
2401
2407
|
static RowCircle: LayoutStyle;
|
|
2402
2408
|
static RowRectangle: LayoutStyle;
|
|
2409
|
+
static RowRectangleAnimated: LayoutStyle;
|
|
2403
2410
|
static RowHorizontalRectangle: LayoutStyle;
|
|
2411
|
+
static RowHorizontalRectangleAnimated: LayoutStyle;
|
|
2404
2412
|
static Default: LayoutStyle;
|
|
2405
2413
|
static DefaultStoryStyle: StoryPlayerStyle;
|
|
2406
2414
|
static DefaultMomentStyle: MomentPlayerStyle;
|
|
@@ -2703,7 +2711,7 @@ export declare const Colors: {
|
|
|
2703
2711
|
readonly Yellow: "#FFD325";
|
|
2704
2712
|
};
|
|
2705
2713
|
|
|
2706
|
-
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';
|
|
2714
|
+
export type ThemeType = 'grid-2-columns' | 'grid-3-columns' | 'row-circle' | 'row-rectangle' | 'row-rectangle-animated' | 'row-rectangle-horizontal' | 'grid-2-columns-horizontal' | 'grid-3-columns-horizontal' | 'default';
|
|
2707
2715
|
export declare class ThemeFactory {
|
|
2708
2716
|
static create(name: ThemeType, contentType: 'moment'): IWidgetTheme<MomentPlayerStyle>;
|
|
2709
2717
|
static create(name: ThemeType, contentType: 'story'): IWidgetTheme<StoryPlayerStyle>;
|
|
@@ -3257,8 +3265,8 @@ export type SizeType = 'small' | 'medium' | 'large';
|
|
|
3257
3265
|
export type StoryDirectionType = 'PREV_STORY' | 'NEXT_STORY' | 'PREV_PAGE' | 'NEXT_PAGE';
|
|
3258
3266
|
export type ContentDirection = 'PREV' | 'NEXT';
|
|
3259
3267
|
|
|
3260
|
-
export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'MainThumbnail';
|
|
3261
|
-
export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'CUSTOM';
|
|
3268
|
+
export type ThumbnailApiType = 'SquareIcon' | 'VerticalTwoByThree' | 'Gif' | 'AnimatedThumbnailPoster' | 'MainThumbnail';
|
|
3269
|
+
export type ThumbnailType = 'SQUARE_ICON' | 'VERTICAL_TWO_BY_THREE' | 'GIF' | 'ANIMATED_THUMBNAIL_POSTER' | 'CUSTOM';
|
|
3262
3270
|
export type ThumbnailShape = 'Circle' | 'Rectangle';
|
|
3263
3271
|
export declare function thumbnailMapping(thumbnailType: ThumbnailType): ThumbnailApiType;
|
|
3264
3272
|
|
|
@@ -3336,6 +3344,9 @@ export declare function updateStyle(styleToUpdate: any, path: string[], newValue
|
|
|
3336
3344
|
export declare function getNestedValue(obj: any, path: string[]): any;
|
|
3337
3345
|
export declare function formatLikes(count: number): string;
|
|
3338
3346
|
export declare function isElementInsideTarget(target: EventTarget | null, selectors: string[]): boolean;
|
|
3347
|
+
export declare function findParentOfType<T>(target: EventTarget | null, type: {
|
|
3348
|
+
new (...args: any[]): T;
|
|
3349
|
+
}, stopAt: Element): T | null;
|
|
3339
3350
|
|
|
3340
3351
|
export * from './chip.utils';
|
|
3341
3352
|
export * from './common.utils';
|
|
@@ -4288,7 +4299,7 @@ export interface BlazeWidgetItemOptions {
|
|
|
4288
4299
|
layout: LayoutStyle;
|
|
4289
4300
|
content: IStory | IMoment | IVideo;
|
|
4290
4301
|
}
|
|
4291
|
-
export declare class BlazeWidgetItem extends BaseWidget {
|
|
4302
|
+
export declare class BlazeWidgetItem extends BaseWidget implements Observable {
|
|
4292
4303
|
protected options: BlazeWidgetItemOptions;
|
|
4293
4304
|
private wrapper;
|
|
4294
4305
|
private container;
|
|
@@ -4305,6 +4316,7 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
4305
4316
|
private analyticsCalls;
|
|
4306
4317
|
contentType: ContentType | undefined;
|
|
4307
4318
|
chipType: ChipStatusType;
|
|
4319
|
+
intersectionObserver: IntersectionObserver;
|
|
4308
4320
|
get parentRef(): BlazeWidgetLayout;
|
|
4309
4321
|
statusIndicatorSettings: IndicatorStyle;
|
|
4310
4322
|
paddingItem: PositionOffset;
|
|
@@ -4321,7 +4333,10 @@ export declare class BlazeWidgetItem extends BaseWidget {
|
|
|
4321
4333
|
private setupEventListeners;
|
|
4322
4334
|
private handleWidgetClick;
|
|
4323
4335
|
disconnectedCallback(): void;
|
|
4336
|
+
handleIntersection(): void;
|
|
4324
4337
|
private setData;
|
|
4338
|
+
isFullyVisibleInParent(): boolean;
|
|
4339
|
+
loadNewThumbnail(): void;
|
|
4325
4340
|
getThumbnailUrl(): string;
|
|
4326
4341
|
setThumbnailBorderColor(color: string): void;
|
|
4327
4342
|
private updateLabel;
|
|
@@ -4367,9 +4382,15 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
4367
4382
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
4368
4383
|
actionHandlers: ActionHandler[];
|
|
4369
4384
|
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
4385
|
+
onMouseMoveEvent: ((e: MouseEvent) => void) & {
|
|
4386
|
+
cancel: () => void;
|
|
4387
|
+
};
|
|
4388
|
+
onMouseLeaveEvent: (e: MouseEvent) => void;
|
|
4370
4389
|
shouldReloadWhenPlayerIsClosed: boolean;
|
|
4371
4390
|
shouldReloadData: boolean;
|
|
4372
4391
|
private personalized?;
|
|
4392
|
+
currentlyAnimatedItem: BlazeWidgetItem | undefined;
|
|
4393
|
+
firstVisibleItem: BlazeWidgetItem | undefined;
|
|
4373
4394
|
get refElement(): ShadowRoot | BlazeWidgetLayout;
|
|
4374
4395
|
constructor();
|
|
4375
4396
|
connectedCallback(): void;
|
|
@@ -4384,6 +4405,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
4384
4405
|
onContentChange(mode: ContentDirection): void;
|
|
4385
4406
|
onPlayerClose(): void;
|
|
4386
4407
|
onPlayerOpen(): void;
|
|
4408
|
+
setFirstVisibleItem(): void;
|
|
4387
4409
|
getParentHeightWithoutPadding(): number | null;
|
|
4388
4410
|
setId(id: string): void;
|
|
4389
4411
|
private setReloadData;
|
|
@@ -4436,6 +4458,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
4436
4458
|
maxChipHeight: number;
|
|
4437
4459
|
maxChipWidth: number;
|
|
4438
4460
|
};
|
|
4461
|
+
isAnimatedThumbnail(): boolean;
|
|
4439
4462
|
getMaxSizes(badge: {
|
|
4440
4463
|
height: number;
|
|
4441
4464
|
width: number;
|