@vkontakte/videoplayer 1.1.51 → 1.1.52-beta.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 +18 -18
- package/es2015.esm.js +18 -18
- package/es2018.cjs.js +18 -18
- package/es2018.esm.js +18 -18
- package/esnext.cjs.js +15 -15
- package/esnext.esm.js +15 -15
- package/evergreen.esm.js +15 -15
- package/package.json +6 -5
- package/types/VKVideoPlayer/index.d.ts +1 -0
- package/types/config.d.ts +2 -0
- package/types/index.d.ts +3 -2
- package/types/store/index.d.ts +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.52-beta.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,10 @@
|
|
|
49
49
|
"**/*.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"@vkontakte/videoplayer-
|
|
54
|
-
"@vkontakte/videoplayer-
|
|
55
|
-
"@vkontakte/videoplayer-
|
|
52
|
+
"@adtech/rbadman": "^2.2.57",
|
|
53
|
+
"@vkontakte/videoplayer-core": "2.0.119-beta.0",
|
|
54
|
+
"@vkontakte/videoplayer-interactive": "1.0.27-beta.0",
|
|
55
|
+
"@vkontakte/videoplayer-shared": "1.0.51-beta.0",
|
|
56
|
+
"@vkontakte/videoplayer-statistics": "1.0.66-beta.0"
|
|
56
57
|
}
|
|
57
58
|
}
|
package/types/config.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export interface IUIConfig {
|
|
|
28
28
|
runtimeTimeout: Milliseconds;
|
|
29
29
|
slot?: number;
|
|
30
30
|
preview?: number;
|
|
31
|
+
isMobileGoToSiteButton: boolean;
|
|
31
32
|
};
|
|
32
33
|
volumeDefault: number;
|
|
33
34
|
volumeMinRestore: number;
|
|
@@ -113,6 +114,7 @@ export interface IUIConfig {
|
|
|
113
114
|
autoplayNext: boolean;
|
|
114
115
|
nextPrevButtons: boolean;
|
|
115
116
|
previewNoEmptySpace: boolean;
|
|
117
|
+
exposeInternalsToGlobal: boolean;
|
|
116
118
|
};
|
|
117
119
|
interactive: {
|
|
118
120
|
historyMaxLength: number;
|
package/types/index.d.ts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { VKVideoPlayer } from './VKVideoPlayer';
|
|
2
|
-
import type { IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated } from './types';
|
|
2
|
+
import type { IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode } from './types';
|
|
3
3
|
import { GridTypes } from './constans';
|
|
4
4
|
import type { LanguagePack, LanguageConfig } from './translation/types';
|
|
5
|
+
import type { ISDKConfig } from './config';
|
|
5
6
|
import type { ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek } from '@vkontakte/videoplayer-core';
|
|
6
7
|
import type { Milliseconds, QualityLimits } from '@vkontakte/videoplayer-shared';
|
|
7
8
|
export { VERSION } from './env';
|
|
8
9
|
export declare const registerPlayerWebComponent: () => void;
|
|
9
10
|
export { type AdditionalSettingsMenuItem, MenuItemType, type AdditionalClickSettingsMenuItem, type AdditionalSwitchSettingsMenuItem, type AdditionalContextMenuItem, } from './components/Menus/types';
|
|
10
11
|
export { type AdditionalButton, ControlButtonType, } from './components/Controls/types';
|
|
11
|
-
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, };
|
|
12
|
+
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, ISDKConfig, };
|
|
12
13
|
export { GridTypes, };
|
|
13
14
|
export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack, } from '@vkontakte/videoplayer-shared';
|
|
14
15
|
export { VideoQuality, VideoFormat, } from '@vkontakte/videoplayer-core';
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IAudioStream, IConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, IVideoStream, PlaybackRate } from '@vkontakte/videoplayer-core';
|
|
2
2
|
import { ChromecastState, PlaybackState, VideoFormat } from '@vkontakte/videoplayer-core';
|
|
3
|
-
import { type IError, type ILogger, InterfaceLanguage, type IRectangle, type IValueObservable, type QualityLimits, VideoQuality } from '@vkontakte/videoplayer-shared';
|
|
3
|
+
import { type IError, type ILogger, InterfaceLanguage, type IRectangle, type IValueObservable, type QualityLimits, VideoQuality, type InternalsExposure } from '@vkontakte/videoplayer-shared';
|
|
4
4
|
import type { IUIConfig } from '../config';
|
|
5
5
|
import { SeekAction } from '@vkontakte/videoplayer-statistics';
|
|
6
6
|
import { type InteractiveRange } from '@vkontakte/videoplayer-interactive';
|
|
@@ -319,10 +319,11 @@ interface IStoreParams {
|
|
|
319
319
|
looped?: boolean;
|
|
320
320
|
statistics?: UIOneStat;
|
|
321
321
|
saveRate: boolean;
|
|
322
|
+
internalsExposure: InternalsExposure | null;
|
|
322
323
|
}
|
|
323
324
|
/**
|
|
324
325
|
* Store приложения.
|
|
325
326
|
* Если будет слишком большим - можно разделить его на модули
|
|
326
327
|
*/
|
|
327
|
-
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, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, looped, statistics: uiStatistics, saveRate, }: IStoreParams) => IStore;
|
|
328
|
+
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, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, looped, statistics: uiStatistics, saveRate, internalsExposure, }: IStoreParams) => IStore;
|
|
328
329
|
export {};
|