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