@vkontakte/videoplayer 1.1.39-dev.f5a04250.0 → 1.1.39
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 +17 -17
- package/esnext.esm.js +17 -17
- package/evergreen.esm.js +17 -17
- package/package.json +5 -5
- package/types/components/Ads/admanWrapper.d.ts +1 -0
- package/types/store/index.d.ts +3 -2
- package/types/types/index.d.ts +1 -3
- package/types/utils/webAPI/mediaSessionApi.d.ts +0 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.39
|
|
3
|
+
"version": "1.1.39",
|
|
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
|
|
53
|
-
"@vkontakte/videoplayer-interactive": "1.0.14
|
|
54
|
-
"@vkontakte/videoplayer-shared": "1.0.38
|
|
55
|
-
"@vkontakte/videoplayer-statistics": "1.0.52
|
|
52
|
+
"@vkontakte/videoplayer-core": "^2.0.106",
|
|
53
|
+
"@vkontakte/videoplayer-interactive": "^1.0.14",
|
|
54
|
+
"@vkontakte/videoplayer-shared": "^1.0.38",
|
|
55
|
+
"@vkontakte/videoplayer-statistics": "^1.0.52"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/types/store/index.d.ts
CHANGED
|
@@ -45,7 +45,6 @@ export interface IUIState {
|
|
|
45
45
|
pip: Writable<IControlInfo | undefined>;
|
|
46
46
|
vkLogo: Writable<IControlInfo | undefined>;
|
|
47
47
|
interactiveTimeIndicator: Writable<IControlInfo | undefined>;
|
|
48
|
-
timeline: Writable<IControlInfo | undefined>;
|
|
49
48
|
disabledControls$: IDisabledControls;
|
|
50
49
|
additionalButtons: Writable<IControlInfo | undefined>[];
|
|
51
50
|
};
|
|
@@ -106,6 +105,7 @@ export interface IStore {
|
|
|
106
105
|
isClip: boolean;
|
|
107
106
|
playerPhase: IPlayerPhase;
|
|
108
107
|
interfaceLanguage$: Readable<InterfaceLanguage | string>;
|
|
108
|
+
isCyrillicRelatedInterface$: Readable<boolean>;
|
|
109
109
|
interactiveData?: IInteractiveData;
|
|
110
110
|
vsid: Readable<string | undefined>;
|
|
111
111
|
state: {
|
|
@@ -251,6 +251,7 @@ export interface IStore {
|
|
|
251
251
|
}
|
|
252
252
|
interface IStoreParams {
|
|
253
253
|
interfaceLanguage: InterfaceLanguage | string;
|
|
254
|
+
isCyrillicRelatedInterface: boolean;
|
|
254
255
|
videoId?: number;
|
|
255
256
|
isClip: boolean;
|
|
256
257
|
isLiveCatchUpMode?: boolean;
|
|
@@ -280,5 +281,5 @@ interface IStoreParams {
|
|
|
280
281
|
* Store приложения.
|
|
281
282
|
* Если будет слишком большим - можно разделить его на модули
|
|
282
283
|
*/
|
|
283
|
-
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;
|
|
284
|
+
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, 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;
|
|
284
285
|
export {};
|
package/types/types/index.d.ts
CHANGED
|
@@ -52,7 +52,6 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
52
52
|
onDisabledInteractiveClick?: () => void;
|
|
53
53
|
onDisabledPlayPrevChapterClick?: (message: string | undefined) => void;
|
|
54
54
|
onDisabledSeekToInteractiveClick?: (message: string | undefined) => void;
|
|
55
|
-
onDisabledTimelineClick?: (position: number) => void;
|
|
56
55
|
onInteractiveTimeIndicatorClick?: () => void;
|
|
57
56
|
onInteractiveTimeIndicatorHintDeactivated?: () => void;
|
|
58
57
|
onExternalFullscreenExit?: () => void;
|
|
@@ -83,7 +82,6 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
83
82
|
onChromecastChanged?: (value?: IControlInfo) => void;
|
|
84
83
|
onPipChanged?: (value?: IControlInfo) => void;
|
|
85
84
|
onVkLogoChanged?: (value?: IControlInfo) => void;
|
|
86
|
-
onTimelineChanged?: (value?: IControlInfo) => void;
|
|
87
85
|
onInteractiveTimeIndicatorChanged?: (value?: IControlInfo) => void;
|
|
88
86
|
onPlayerSizeChanged?: (value?: {
|
|
89
87
|
width: number;
|
|
@@ -202,6 +200,7 @@ export interface IVKVideoPlayerConfig {
|
|
|
202
200
|
adsParams?: AdsParams;
|
|
203
201
|
adsPreviewParam?: number;
|
|
204
202
|
interfaceLanguage?: InterfaceLanguage | string;
|
|
203
|
+
isCyrillicRelatedInterface?: boolean;
|
|
205
204
|
logoClickable?: boolean;
|
|
206
205
|
logoHidden?: boolean;
|
|
207
206
|
isMobile?: boolean;
|
|
@@ -253,7 +252,6 @@ export interface IPlayerControlsRef {
|
|
|
253
252
|
pip?: HTMLElement;
|
|
254
253
|
vkLogo?: HTMLElement;
|
|
255
254
|
interactiveTimeIndicator?: HTMLElement;
|
|
256
|
-
timeline?: HTMLElement;
|
|
257
255
|
}
|
|
258
256
|
export interface IPlayerDesktopControlsWidth {
|
|
259
257
|
prevButton: number;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import type { MediaSessionApiActionHandler, MediaSessionApiMetadata } from '../../types';
|
|
2
|
-
import type { IStore } from '../../store';
|
|
3
2
|
export declare class MediaSessionApi {
|
|
4
|
-
private subscription;
|
|
5
|
-
constructor();
|
|
6
3
|
isSupported(): boolean;
|
|
7
4
|
setMetaData({ title, artist, thumbUrl }: MediaSessionApiMetadata): void;
|
|
8
5
|
updateActionHandlers(actionHandlers: MediaSessionApiActionHandler[]): void;
|
|
9
6
|
private resetActionHandlers;
|
|
10
7
|
private setActionHandlers;
|
|
11
|
-
attachToStore(store?: IStore): void;
|
|
12
|
-
clearSubscriptions(): void;
|
|
13
|
-
destroy(): void;
|
|
14
8
|
}
|