@wscsports/blaze-web-sdk 0.0.105 → 0.0.106
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 +3 -3
- package/publish/index.d.ts +10 -21
- 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.0.
|
|
3
|
+
"version": "0.0.106",
|
|
4
4
|
"main": "publish/index",
|
|
5
5
|
"types": "publish/index",
|
|
6
6
|
"files": [
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
10
|
"start:dev": "webpack --config webpack.config.dev.js && webpack-dev-server --config webpack.config.dev",
|
|
11
|
-
"build:dev": "webpack
|
|
11
|
+
"build:dev": "webpack --config webpack.config.dev.js",
|
|
12
12
|
"build:prod": "webpack --config webpack.config.prod.js",
|
|
13
|
-
"publish:npm
|
|
13
|
+
"publish:npm": "npm publish --access public --tag latest"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/animejs": "^3.1.7",
|
package/publish/index.d.ts
CHANGED
|
@@ -346,6 +346,7 @@ export declare class BlazeSDK {
|
|
|
346
346
|
static isMuted: boolean;
|
|
347
347
|
static isPlaying: boolean;
|
|
348
348
|
static version: string;
|
|
349
|
+
static defaultStoryPlayerStyle: StoryPlayerStyle;
|
|
349
350
|
}
|
|
350
351
|
|
|
351
352
|
export declare class BlazeWidgetLabel {
|
|
@@ -372,9 +373,7 @@ export declare function loadImage(src: string, priority?: 'low' | 'high' | 'auto
|
|
|
372
373
|
export declare function setId(element: HTMLElement, prefix?: string, suffix?: string): void;
|
|
373
374
|
declare let isMobile: boolean;
|
|
374
375
|
declare const isIOS: boolean;
|
|
375
|
-
|
|
376
|
-
declare const isChrome: boolean;
|
|
377
|
-
export { isMobile, isIOS, isSafari, isChrome };
|
|
376
|
+
export { isMobile, isIOS };
|
|
378
377
|
export type DeepPartial<T> = T extends object ? {
|
|
379
378
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
380
379
|
} : T;
|
|
@@ -1683,6 +1682,7 @@ export declare class BlazeWidgetSdk extends BaseHTMLElement {
|
|
|
1683
1682
|
static isMuted: boolean;
|
|
1684
1683
|
static isPlaying: boolean;
|
|
1685
1684
|
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,14 +1696,12 @@ export declare class BlazeWidgetStoryBase extends HTMLElement {
|
|
|
1696
1696
|
data: IPage | undefined;
|
|
1697
1697
|
constructor();
|
|
1698
1698
|
setData(data: IPage): void;
|
|
1699
|
-
loadPoster(): void;
|
|
1700
1699
|
play(): void;
|
|
1701
1700
|
pause(): void;
|
|
1702
1701
|
get paused(): boolean;
|
|
1703
1702
|
get currentTime(): number;
|
|
1704
1703
|
set currentTime(value: number);
|
|
1705
1704
|
get muted(): boolean;
|
|
1706
|
-
removeLoader(): any;
|
|
1707
1705
|
load(): void;
|
|
1708
1706
|
unload(): void;
|
|
1709
1707
|
display(): void;
|
|
@@ -1785,6 +1783,7 @@ export declare class BlazeWidgetStoryPlayer extends BaseHTMLElement {
|
|
|
1785
1783
|
onClose: (() => void) | undefined;
|
|
1786
1784
|
resizeHandler: (this: Window, ev: UIEvent) => any;
|
|
1787
1785
|
listeners: EventsListener;
|
|
1786
|
+
isLooping: boolean;
|
|
1788
1787
|
backgroundAnimation?: Animation;
|
|
1789
1788
|
firstTime: boolean;
|
|
1790
1789
|
secondTime: boolean;
|
|
@@ -1876,7 +1875,7 @@ export declare class BlazeWidgetStoryPreview extends BlazeWidgetStory {
|
|
|
1876
1875
|
goReplay(): void;
|
|
1877
1876
|
goPrevPage(): void;
|
|
1878
1877
|
disconnectedCallback(): void;
|
|
1879
|
-
playPage(index: number):
|
|
1878
|
+
playPage(index: number): void;
|
|
1880
1879
|
render(): void;
|
|
1881
1880
|
}
|
|
1882
1881
|
|
|
@@ -1884,25 +1883,18 @@ export declare class BlazeWidgetStoryVideo extends BlazeWidgetStoryBase {
|
|
|
1884
1883
|
data: IPage | undefined;
|
|
1885
1884
|
video: HTMLVideoElement | undefined;
|
|
1886
1885
|
loader: HTMLElement | undefined;
|
|
1887
|
-
source: HTMLElement | undefined;
|
|
1888
|
-
videoPrefetchLink: HTMLLinkElement | undefined;
|
|
1889
|
-
loaderTimeoutRefAppending: NodeJS.Timeout | undefined;
|
|
1890
|
-
LoaderTimeoutRefCheckingForIssues: NodeJS.Timeout | undefined;
|
|
1891
1886
|
isPlaying: boolean;
|
|
1892
|
-
isError: boolean;
|
|
1893
1887
|
mode: 'contain' | 'cover';
|
|
1894
1888
|
videoFrameCallback?: () => any;
|
|
1889
|
+
source: HTMLSourceElement;
|
|
1895
1890
|
constructor();
|
|
1896
1891
|
setData(data: IPage): void;
|
|
1897
|
-
loadPoster(): void;
|
|
1898
1892
|
load(): void;
|
|
1899
1893
|
display(): void;
|
|
1900
1894
|
hide(): void;
|
|
1901
1895
|
unload(): void;
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
reloadVideo(): Promise<void>;
|
|
1905
|
-
play(): Promise<void>;
|
|
1896
|
+
startPlayVideo(video: HTMLVideoElement): void;
|
|
1897
|
+
play(): void;
|
|
1906
1898
|
pause(): void;
|
|
1907
1899
|
set currentTime(value: number);
|
|
1908
1900
|
get currentTime(): number;
|
|
@@ -1966,10 +1958,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1966
1958
|
get nextPage(): BlazeWidgetStoryBase;
|
|
1967
1959
|
get prevPage(): BlazeWidgetStoryBase;
|
|
1968
1960
|
prefetchNeighbours(distance?: number): void;
|
|
1969
|
-
|
|
1970
|
-
loadAllPostersOfFirstPage(): void;
|
|
1971
|
-
loadFirstVideo(): void;
|
|
1972
|
-
playPage(pageIndexToPlayNext: number): Promise<void>;
|
|
1961
|
+
playPage(pageIndexToPlayNext: number): void;
|
|
1973
1962
|
unload(): void;
|
|
1974
1963
|
load(): void;
|
|
1975
1964
|
play(): void;
|
|
@@ -1979,7 +1968,7 @@ export declare class BlazeWidgetStory extends HTMLElement {
|
|
|
1979
1968
|
onBlur(): void;
|
|
1980
1969
|
close(): void;
|
|
1981
1970
|
pause(): void;
|
|
1982
|
-
resume():
|
|
1971
|
+
resume(): void;
|
|
1983
1972
|
resetPosition(): void;
|
|
1984
1973
|
prevStory(): void;
|
|
1985
1974
|
nextStory(): void;
|