@vkontakte/videoplayer 1.1.39-dev.80f5e2f8.0 → 1.1.39-dev.e7a805cd.0
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/es2015.cjs.js +17 -17
- package/es2015.esm.js +17 -17
- package/es2018.cjs.js +17 -17
- package/es2018.esm.js +17 -17
- package/esnext.cjs.js +16 -16
- package/esnext.esm.js +16 -16
- package/evergreen.esm.js +16 -16
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.d.ts +2 -0
- package/types/store/index.d.ts +1 -3
- package/types/types/index.d.ts +1 -1
- package/types/utils/fullscreen.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.39-dev.
|
|
3
|
+
"version": "1.1.39-dev.e7a805cd.0",
|
|
4
4
|
"author": "vk.com",
|
|
5
5
|
"description": "Videoplayer based on the vk.com platform",
|
|
6
6
|
"homepage": "https://vk.com",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"**/*.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@vkontakte/videoplayer-core": "2.0.106-dev.
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.14-dev.
|
|
54
|
-
"@vkontakte/videoplayer-shared": "1.0.38-dev.
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.52-dev.
|
|
52
|
+
"@vkontakte/videoplayer-core": "2.0.106-dev.2c6cf63d.0",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "1.0.14-dev.cffb9cd7.0",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "1.0.38-dev.26439a3d.0",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "1.0.52-dev.e6b5faf5.0"
|
|
56
56
|
}
|
|
57
57
|
}
|
|
@@ -15,6 +15,7 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
15
15
|
private _shadowRoot;
|
|
16
16
|
private playerContainer;
|
|
17
17
|
private rootContainer;
|
|
18
|
+
private shadowRootContainer;
|
|
18
19
|
private uiConfig;
|
|
19
20
|
private coreConfig;
|
|
20
21
|
private statisticsConfig;
|
|
@@ -81,6 +82,7 @@ export declare class VKVideoPlayer extends HTMLElement {
|
|
|
81
82
|
setLiveEnd(videoData: IVideoData): void;
|
|
82
83
|
getDeviceId(): string | undefined;
|
|
83
84
|
replayInteractiveVideo(): void;
|
|
85
|
+
replayInteractiveChapter(callback?: () => void): Promise<void>;
|
|
84
86
|
showInteractiveIndicatorTooltip(newValue: boolean, useTimeout?: boolean): void;
|
|
85
87
|
switchToActiveLive(): void;
|
|
86
88
|
}
|
package/types/store/index.d.ts
CHANGED
|
@@ -105,7 +105,6 @@ export interface IStore {
|
|
|
105
105
|
isClip: boolean;
|
|
106
106
|
playerPhase: IPlayerPhase;
|
|
107
107
|
interfaceLanguage$: Readable<InterfaceLanguage | string>;
|
|
108
|
-
isCyrillicRelatedInterface$: Readable<boolean>;
|
|
109
108
|
interactiveData?: IInteractiveData;
|
|
110
109
|
vsid: Readable<string | undefined>;
|
|
111
110
|
state: {
|
|
@@ -251,7 +250,6 @@ export interface IStore {
|
|
|
251
250
|
}
|
|
252
251
|
interface IStoreParams {
|
|
253
252
|
interfaceLanguage: InterfaceLanguage | string;
|
|
254
|
-
isCyrillicRelatedInterface: boolean;
|
|
255
253
|
videoId?: number;
|
|
256
254
|
isClip: boolean;
|
|
257
255
|
isLiveCatchUpMode?: boolean;
|
|
@@ -281,5 +279,5 @@ interface IStoreParams {
|
|
|
281
279
|
* Store приложения.
|
|
282
280
|
* Если будет слишком большим - можно разделить его на модули
|
|
283
281
|
*/
|
|
284
|
-
export declare const createStore: ({ interfaceLanguage,
|
|
282
|
+
export declare const createStore: ({ interfaceLanguage, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, looped, statistics: uiStatistics, saveRate, }: IStoreParams) => IStore;
|
|
285
283
|
export {};
|
package/types/types/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
54
54
|
onDisabledSeekToInteractiveClick?: (message: string | undefined) => void;
|
|
55
55
|
onInteractiveTimeIndicatorClick?: () => void;
|
|
56
56
|
onInteractiveTimeIndicatorHintDeactivated?: () => void;
|
|
57
|
+
onExternalFullscreenExit?: () => void;
|
|
57
58
|
onPrevVideoClick?: () => boolean;
|
|
58
59
|
onNextVideoClick?: () => boolean;
|
|
59
60
|
onTrafficSavingEnabledChanged?: (isEnabled: boolean) => void;
|
|
@@ -199,7 +200,6 @@ export interface IVKVideoPlayerConfig {
|
|
|
199
200
|
adsParams?: AdsParams;
|
|
200
201
|
adsPreviewParam?: number;
|
|
201
202
|
interfaceLanguage?: InterfaceLanguage | string;
|
|
202
|
-
isCyrillicRelatedInterface?: boolean;
|
|
203
203
|
logoClickable?: boolean;
|
|
204
204
|
logoHidden?: boolean;
|
|
205
205
|
isMobile?: boolean;
|
|
@@ -14,6 +14,7 @@ interface DocumentElementWithFullscreen extends HTMLElement {
|
|
|
14
14
|
export declare const requestFullscreen: (element: DocumentElementWithFullscreen) => Promise<void>;
|
|
15
15
|
export declare const exitFullscreen: (doc: DocumentWithFullscreen) => Promise<void>;
|
|
16
16
|
export declare const exitIosSafariVideoElementFullscreen: (videoElement: HTMLVideoElement) => Promise<void>;
|
|
17
|
+
export declare const getDocumentFullscreenElement: () => Element | undefined;
|
|
17
18
|
export declare const checkIsFullscreen: () => boolean;
|
|
18
19
|
export declare const registerFullscreenChangeEvent: (callback: () => void) => void;
|
|
19
20
|
export declare const removeFullscreenChangeEvent: (callback: () => void) => void;
|