@wscsports/blaze-web-sdk 0.0.103 → 0.0.105
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 +23 -15
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -346,7 +346,6 @@ export declare class BlazeSDK {
|
|
|
346
346
|
static isMuted: boolean;
|
|
347
347
|
static isPlaying: boolean;
|
|
348
348
|
static version: string;
|
|
349
|
-
static defaultStoryPlayerStyle: StoryPlayerStyle;
|
|
350
349
|
}
|
|
351
350
|
|
|
352
351
|
export declare class BlazeWidgetLabel {
|
|
@@ -373,7 +372,9 @@ export declare function loadImage(src: string, priority?: 'low' | 'high' | 'auto
|
|
|
373
372
|
export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
|
|
374
373
|
declare let isMobile: boolean;
|
|
375
374
|
declare const isIOS: boolean;
|
|
376
|
-
|
|
375
|
+
declare const isSafari: boolean;
|
|
376
|
+
declare const isChrome: boolean;
|
|
377
|
+
export { isMobile, isIOS, isSafari, isChrome };
|
|
377
378
|
export type DeepPartial<T> = T extends object ? {
|
|
378
379
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
379
380
|
} : T;
|
|
@@ -640,11 +641,6 @@ export interface IBlazeSDKOptions {
|
|
|
640
641
|
previewUrl: string;
|
|
641
642
|
previewMomentUrl: string;
|
|
642
643
|
}
|
|
643
|
-
export interface IBlazeSDK {
|
|
644
|
-
Initialize: (apiKey: string) => Promise<void>;
|
|
645
|
-
CreateWidgetView: (id: string, options: IWidgetViewOptions) => any;
|
|
646
|
-
Theme: () => IWidgetTheme;
|
|
647
|
-
}
|
|
648
644
|
|
|
649
645
|
export interface IDatabase {
|
|
650
646
|
dbInstance: IDBDatabase;
|
|
@@ -1687,7 +1683,6 @@ export declare class BlazeWidgetSdk extends BaseHTMLElement {
|
|
|
1687
1683
|
static isMuted: boolean;
|
|
1688
1684
|
static isPlaying: boolean;
|
|
1689
1685
|
static version: string;
|
|
1690
|
-
static defaultStoryPlayerStyle: StoryPlayerStyle;
|
|
1691
1686
|
static get observedAttributes(): string[];
|
|
1692
1687
|
constructor(apiKey: string, options?: IBlazeSDKOptions);
|
|
1693
1688
|
connectedCallback(): Promise<void>;
|
|
@@ -1701,12 +1696,14 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
1701
1696
|
data: IPage | undefined;
|
|
1702
1697
|
constructor();
|
|
1703
1698
|
setData(data: IPage): void;
|
|
1699
|
+
loadPoster(): void;
|
|
1704
1700
|
play(): void;
|
|
1705
1701
|
pause(): void;
|
|
1706
1702
|
get paused(): boolean;
|
|
1707
1703
|
get currentTime(): number;
|
|
1708
1704
|
set currentTime(value: number);
|
|
1709
1705
|
get muted(): boolean;
|
|
1706
|
+
removeLoader(): any;
|
|
1710
1707
|
load(): void;
|
|
1711
1708
|
unload(): void;
|
|
1712
1709
|
display(): void;
|
|
@@ -1788,7 +1785,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseHTMLElement {
|
|
|
1788
1785
|
onClose: (() => void) | undefined;
|
|
1789
1786
|
resizeHandler: (this: Window, ev: UIEvent) => any;
|
|
1790
1787
|
listeners: EventsListener;
|
|
1791
|
-
isLooping: boolean;
|
|
1792
1788
|
backgroundAnimation?: Animation;
|
|
1793
1789
|
firstTime: boolean;
|
|
1794
1790
|
secondTime: boolean;
|
|
@@ -1880,7 +1876,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
1880
1876
|
goReplay(): void;
|
|
1881
1877
|
goPrevPage(): void;
|
|
1882
1878
|
disconnectedCallback(): void;
|
|
1883
|
-
playPage(index: number): void
|
|
1879
|
+
playPage(index: number): Promise<void>;
|
|
1884
1880
|
render(): void;
|
|
1885
1881
|
}
|
|
1886
1882
|
|
|
@@ -1888,18 +1884,25 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
1888
1884
|
data: IPage | undefined;
|
|
1889
1885
|
video: HTMLVideoElement | undefined;
|
|
1890
1886
|
loader: HTMLElement | undefined;
|
|
1887
|
+
source: HTMLElement | undefined;
|
|
1888
|
+
videoPrefetchLink: HTMLLinkElement | undefined;
|
|
1889
|
+
loaderTimeoutRefAppending: NodeJS.Timeout | undefined;
|
|
1890
|
+
LoaderTimeoutRefCheckingForIssues: NodeJS.Timeout | undefined;
|
|
1891
1891
|
isPlaying: boolean;
|
|
1892
|
+
isError: boolean;
|
|
1892
1893
|
mode: 'contain' | 'cover';
|
|
1893
1894
|
videoFrameCallback?: () => any;
|
|
1894
|
-
source: HTMLSourceElement;
|
|
1895
1895
|
constructor();
|
|
1896
1896
|
setData(data: IPage): void;
|
|
1897
|
+
loadPoster(): void;
|
|
1897
1898
|
load(): void;
|
|
1898
1899
|
display(): void;
|
|
1899
1900
|
hide(): void;
|
|
1900
1901
|
unload(): void;
|
|
1901
|
-
|
|
1902
|
-
|
|
1902
|
+
removeLoader(): void;
|
|
1903
|
+
startPlayVideo(video: HTMLVideoElement, retryTimes?: number): Promise<void>;
|
|
1904
|
+
reloadVideo(): Promise<void>;
|
|
1905
|
+
play(): Promise<void>;
|
|
1903
1906
|
pause(): void;
|
|
1904
1907
|
set currentTime(value: number);
|
|
1905
1908
|
get currentTime(): number;
|
|
@@ -1946,6 +1949,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1946
1949
|
referring: ReferringEventInfo | undefined;
|
|
1947
1950
|
resumeAfterUnfocus: boolean;
|
|
1948
1951
|
onFocusCallback: () => void;
|
|
1952
|
+
onBlurCallback: () => void;
|
|
1949
1953
|
totalPlayStopwatch: Stopwatch;
|
|
1950
1954
|
playerStyle: StoryPlayerStyle;
|
|
1951
1955
|
listeners: EventsListener;
|
|
@@ -1962,16 +1966,20 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1962
1966
|
get nextPage(): BlazeWidgetStoryBase;
|
|
1963
1967
|
get prevPage(): BlazeWidgetStoryBase;
|
|
1964
1968
|
prefetchNeighbours(distance?: number): void;
|
|
1965
|
-
|
|
1969
|
+
loadAllPostersOfStory(): void;
|
|
1970
|
+
loadAllPostersOfFirstPage(): void;
|
|
1971
|
+
loadFirstVideo(): void;
|
|
1972
|
+
playPage(pageIndexToPlayNext: number): Promise<void>;
|
|
1966
1973
|
unload(): void;
|
|
1967
1974
|
load(): void;
|
|
1968
1975
|
play(): void;
|
|
1969
1976
|
event(action: StoryAction, data: Partial<StoryEvent>, label?: string | undefined): void;
|
|
1970
1977
|
connectedCallback(): void;
|
|
1971
1978
|
onFocus(): void;
|
|
1979
|
+
onBlur(): void;
|
|
1972
1980
|
close(): void;
|
|
1973
1981
|
pause(): void;
|
|
1974
|
-
resume(): void
|
|
1982
|
+
resume(): Promise<void>;
|
|
1975
1983
|
resetPosition(): void;
|
|
1976
1984
|
prevStory(): void;
|
|
1977
1985
|
nextStory(): void;
|