@wscsports/blaze-web-sdk 0.1.24 → 0.1.26
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 -2
- package/publish/index.d.ts +7 -8
- package/publish/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wscsports/blaze-web-sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.26",
|
|
4
4
|
"main": "publish/index",
|
|
5
5
|
"types": "publish/index",
|
|
6
6
|
"files": [
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"animejs": "^3.2.1",
|
|
34
34
|
"hammerjs": "^2.0.8",
|
|
35
|
-
"lodash": "^4.17.21",
|
|
36
35
|
"ua-parser-js": "^1.0.35"
|
|
37
36
|
}
|
|
38
37
|
}
|
package/publish/index.d.ts
CHANGED
|
@@ -342,8 +342,10 @@ export interface IThumbnail {
|
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
export declare enum ErrorCode {
|
|
345
|
+
FailedToFindContainerId = 1,
|
|
345
346
|
FailedLoadingStories = 100,
|
|
346
347
|
FailedEnrichStories = 101,
|
|
348
|
+
FailedToHaveLabels = 103,
|
|
347
349
|
FailedLoadingMoments = 110,
|
|
348
350
|
FailedEnrichMoments = 111,
|
|
349
351
|
VisualViewportScaled = 150,
|
|
@@ -511,6 +513,7 @@ export interface IWidgetViewOptions {
|
|
|
511
513
|
maxDisplayItemsCount?: number;
|
|
512
514
|
contentType: ContentType;
|
|
513
515
|
theme?: IWidgetTheme | ThemeType;
|
|
516
|
+
delegates?: Record<Delegation, EventListenerOrEventListenerObject>;
|
|
514
517
|
}
|
|
515
518
|
|
|
516
519
|
export interface IWidgetView {
|
|
@@ -886,15 +889,11 @@ declare const VideoCacheServiceClass_base: {
|
|
|
886
889
|
declare abstract class VideoCacheServiceClass extends VideoCacheServiceClass_base implements IService {
|
|
887
890
|
private cache;
|
|
888
891
|
private cacheName;
|
|
889
|
-
private ongoingRequests;
|
|
890
892
|
constructor();
|
|
891
893
|
init(): Promise<void>;
|
|
892
894
|
private fetchAndCache;
|
|
893
|
-
abortRequest(url: string): Promise<void>;
|
|
894
|
-
abortAllRequests(): Promise<void>;
|
|
895
895
|
addCacheVideoByUrl(url: string): Promise<Response>;
|
|
896
896
|
getCacheVideoByUrl(url: string): Promise<string>;
|
|
897
|
-
isFetchingVideo(url: string): boolean;
|
|
898
897
|
isVideoCached(url: string): Promise<boolean>;
|
|
899
898
|
deleteCacheVideoByUrl(url: string): Promise<boolean>;
|
|
900
899
|
clearAllCache(): Promise<void>;
|
|
@@ -1530,7 +1529,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1530
1529
|
reloadTimeout: NodeJS.Timeout | undefined;
|
|
1531
1530
|
analyticsStack: Record<WidgetAction, boolean>;
|
|
1532
1531
|
intersectionObserver: IntersectionObserver;
|
|
1533
|
-
onResizeEvent: (this: Window, ev: UIEvent) =>
|
|
1532
|
+
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1534
1533
|
constructor();
|
|
1535
1534
|
connectedCallback(): void;
|
|
1536
1535
|
disconnectedCallback(): void;
|
|
@@ -1544,6 +1543,7 @@ export declare class BlazeWidgetLayout extends BlazeWidgetScrollable implements
|
|
|
1544
1543
|
setTheme(theme: IWidgetTheme): void;
|
|
1545
1544
|
reload(labels?: string[]): void;
|
|
1546
1545
|
setLabel(label: string | BlazeWidgetLabel): void;
|
|
1546
|
+
set delegates(delegates: Record<Delegation, EventListenerOrEventListenerObject>);
|
|
1547
1547
|
setMaxSize(maxSize: number): void;
|
|
1548
1548
|
setMaxItemsSize(maxItemsSize: number): void;
|
|
1549
1549
|
handleIntersection(entries: IntersectionObserverEntry[]): void;
|
|
@@ -1719,7 +1719,7 @@ export declare class BlazeWidgetSDK extends BaseWidget {
|
|
|
1719
1719
|
static isMuted: boolean;
|
|
1720
1720
|
static isPlaying: boolean;
|
|
1721
1721
|
modalStoryIds: BlazeWidgetStoryModal | undefined;
|
|
1722
|
-
onResizeEvent: (this: Window, ev: UIEvent) =>
|
|
1722
|
+
onResizeEvent: (this: Window, ev: UIEvent) => void;
|
|
1723
1723
|
static get observedAttributes(): string[];
|
|
1724
1724
|
constructor();
|
|
1725
1725
|
connectedCallback(): Promise<void>;
|
|
@@ -1837,8 +1837,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseWidget {
|
|
|
1837
1837
|
currentNextAnimation?: anime.AnimeInstance | null;
|
|
1838
1838
|
currentPrevAnimation?: anime.AnimeInstance | null;
|
|
1839
1839
|
items: BlazeWidgetStory[];
|
|
1840
|
-
touchStartX: number;
|
|
1841
|
-
touchStartY: number;
|
|
1842
1840
|
edgeScreenThreshold: number;
|
|
1843
1841
|
isEdgeThreshold: Boolean;
|
|
1844
1842
|
isNavigationBlocked: boolean;
|
|
@@ -1986,6 +1984,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1986
1984
|
pages: BlazeWidgetStoryBase[];
|
|
1987
1985
|
data: IStory;
|
|
1988
1986
|
shareModal: BlazeWidgetShareModal | undefined;
|
|
1987
|
+
isStoryLoadCompletedTriggered: boolean;
|
|
1989
1988
|
pageIndex: number;
|
|
1990
1989
|
container: HTMLElement;
|
|
1991
1990
|
progress: HTMLElement;
|