@wscsports/blaze-web-sdk 0.0.104 → 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 +21 -10
- 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;
|
|
@@ -1682,7 +1683,6 @@ export declare class BlazeWidgetSdk extends BaseHTMLElement {
|
|
|
1682
1683
|
static isMuted: boolean;
|
|
1683
1684
|
static isPlaying: boolean;
|
|
1684
1685
|
static version: string;
|
|
1685
|
-
static defaultStoryPlayerStyle: StoryPlayerStyle;
|
|
1686
1686
|
static get observedAttributes(): string[];
|
|
1687
1687
|
constructor(apiKey: string, options?: IBlazeSDKOptions);
|
|
1688
1688
|
connectedCallback(): Promise<void>;
|
|
@@ -1696,12 +1696,14 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
1696
1696
|
data: IPage | undefined;
|
|
1697
1697
|
constructor();
|
|
1698
1698
|
setData(data: IPage): void;
|
|
1699
|
+
loadPoster(): void;
|
|
1699
1700
|
play(): void;
|
|
1700
1701
|
pause(): void;
|
|
1701
1702
|
get paused(): boolean;
|
|
1702
1703
|
get currentTime(): number;
|
|
1703
1704
|
set currentTime(value: number);
|
|
1704
1705
|
get muted(): boolean;
|
|
1706
|
+
removeLoader(): any;
|
|
1705
1707
|
load(): void;
|
|
1706
1708
|
unload(): void;
|
|
1707
1709
|
display(): void;
|
|
@@ -1783,7 +1785,6 @@ export declare class BlazeWidgetStoryPlayer extends BaseHTMLElement {
|
|
|
1783
1785
|
onClose: (() => void) | undefined;
|
|
1784
1786
|
resizeHandler: (this: Window, ev: UIEvent) => any;
|
|
1785
1787
|
listeners: EventsListener;
|
|
1786
|
-
isLooping: boolean;
|
|
1787
1788
|
backgroundAnimation?: Animation;
|
|
1788
1789
|
firstTime: boolean;
|
|
1789
1790
|
secondTime: boolean;
|
|
@@ -1875,7 +1876,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
1875
1876
|
goReplay(): void;
|
|
1876
1877
|
goPrevPage(): void;
|
|
1877
1878
|
disconnectedCallback(): void;
|
|
1878
|
-
playPage(index: number): void
|
|
1879
|
+
playPage(index: number): Promise<void>;
|
|
1879
1880
|
render(): void;
|
|
1880
1881
|
}
|
|
1881
1882
|
|
|
@@ -1883,18 +1884,25 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
1883
1884
|
data: IPage | undefined;
|
|
1884
1885
|
video: HTMLVideoElement | undefined;
|
|
1885
1886
|
loader: HTMLElement | undefined;
|
|
1887
|
+
source: HTMLElement | undefined;
|
|
1888
|
+
videoPrefetchLink: HTMLLinkElement | undefined;
|
|
1889
|
+
loaderTimeoutRefAppending: NodeJS.Timeout | undefined;
|
|
1890
|
+
LoaderTimeoutRefCheckingForIssues: NodeJS.Timeout | undefined;
|
|
1886
1891
|
isPlaying: boolean;
|
|
1892
|
+
isError: boolean;
|
|
1887
1893
|
mode: 'contain' | 'cover';
|
|
1888
1894
|
videoFrameCallback?: () => any;
|
|
1889
|
-
source: HTMLSourceElement;
|
|
1890
1895
|
constructor();
|
|
1891
1896
|
setData(data: IPage): void;
|
|
1897
|
+
loadPoster(): void;
|
|
1892
1898
|
load(): void;
|
|
1893
1899
|
display(): void;
|
|
1894
1900
|
hide(): void;
|
|
1895
1901
|
unload(): void;
|
|
1896
|
-
|
|
1897
|
-
|
|
1902
|
+
removeLoader(): void;
|
|
1903
|
+
startPlayVideo(video: HTMLVideoElement, retryTimes?: number): Promise<void>;
|
|
1904
|
+
reloadVideo(): Promise<void>;
|
|
1905
|
+
play(): Promise<void>;
|
|
1898
1906
|
pause(): void;
|
|
1899
1907
|
set currentTime(value: number);
|
|
1900
1908
|
get currentTime(): number;
|
|
@@ -1958,7 +1966,10 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1958
1966
|
get nextPage(): BlazeWidgetStoryBase;
|
|
1959
1967
|
get prevPage(): BlazeWidgetStoryBase;
|
|
1960
1968
|
prefetchNeighbours(distance?: number): void;
|
|
1961
|
-
|
|
1969
|
+
loadAllPostersOfStory(): void;
|
|
1970
|
+
loadAllPostersOfFirstPage(): void;
|
|
1971
|
+
loadFirstVideo(): void;
|
|
1972
|
+
playPage(pageIndexToPlayNext: number): Promise<void>;
|
|
1962
1973
|
unload(): void;
|
|
1963
1974
|
load(): void;
|
|
1964
1975
|
play(): void;
|
|
@@ -1968,7 +1979,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1968
1979
|
onBlur(): void;
|
|
1969
1980
|
close(): void;
|
|
1970
1981
|
pause(): void;
|
|
1971
|
-
resume(): void
|
|
1982
|
+
resume(): Promise<void>;
|
|
1972
1983
|
resetPosition(): void;
|
|
1973
1984
|
prevStory(): void;
|
|
1974
1985
|
nextStory(): void;
|