@vkontakte/videoplayer 1.1.79-dev.f4244a7e.0 → 1.1.79

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.79-dev.f4244a7e.0",
3
+ "version": "1.1.79",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -55,9 +55,9 @@
55
55
  ],
56
56
  "dependencies": {
57
57
  "@adtech/rbadman": "2.2.57",
58
- "@vkontakte/videoplayer-core": "2.0.148-dev.f4244a7e.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.54-dev.f4244a7e.0",
60
- "@vkontakte/videoplayer-shared": "1.0.76-dev.f4244a7e.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.94-dev.f4244a7e.0"
58
+ "@vkontakte/videoplayer-core": "2.0.148",
59
+ "@vkontakte/videoplayer-interactive": "1.0.54",
60
+ "@vkontakte/videoplayer-shared": "1.0.77",
61
+ "@vkontakte/videoplayer-statistics": "1.0.94"
62
62
  }
63
63
  }
@@ -97,12 +97,8 @@ interface BaseMenuItem<Id> {
97
97
  ariaLabel?: string;
98
98
  label: string;
99
99
  }
100
- export type IconPropsType = {
101
- [key: string]: any;
102
- };
103
100
  interface BaseSettingsMenuItem extends BaseMenuItem<RootMenuId> {
104
101
  icon: TmpComponentType;
105
- iconProps?: IconPropsType;
106
102
  isHiddenFor?: UIType[];
107
103
  }
108
104
  export declare enum MenuItemType {
@@ -54,6 +54,7 @@ export interface RootProps {
54
54
  showAutoplayNext: boolean;
55
55
  keyboardControls?: KeyboardControls | undefined;
56
56
  needToRepeatPlaylist?: boolean;
57
+ getVideoDeeplink?: () => string;
57
58
  }
58
59
  export interface RootExports {
59
60
  play: () => void;
package/types/config.d.ts CHANGED
@@ -12,6 +12,14 @@ export declare enum LogoType {
12
12
  PLAY_MARKET = "play_market",
13
13
  VK_VIDEO_MOBILE = "vk_video_mobile"
14
14
  }
15
+ /**
16
+ * Определяет, когда показывать заголовок видео.
17
+ * fullscreen - только в фулскрине(дефолтное поведение)
18
+ * with-controls - показывается везде, когда контролы видны
19
+ * never - не показывать
20
+ * always - показыватьв всегда
21
+ */
22
+ export type TitleShowBehaviour = 'fullscreen' | 'with-controls' | 'never' | 'always';
15
23
  export interface IUIConfig {
16
24
  isMobile: ForceOrRelay;
17
25
  disableInvisibleComponentsTimeout: Milliseconds;
@@ -243,6 +251,7 @@ export interface IUIConfig {
243
251
  * Передаются секунды.
244
252
  */
245
253
  suitableDurationForUsingRichSeek: Seconds;
254
+ titleShowBehaviour: TitleShowBehaviour;
246
255
  }
247
256
  export declare const defaultConfig: IUIConfig;
248
257
  export type IOptionalUIConfig = RecursivePartial<IUIConfig>;
@@ -91,6 +91,7 @@ export interface IVKVideoPlayerCallbacks {
91
91
  onVSIDChanged?: (vsid?: string) => void;
92
92
  onAutoplaySoundProhibited?: () => void;
93
93
  onDevNullLog?: (entry: DevNullEntry) => void;
94
+ onTitleClicked?: () => void;
94
95
  uiInfo?: {
95
96
  onUpcomingLiveViewStateChanged?: (value: IUpcomingLiveViewControlInfo) => void;
96
97
  onControlsVisibleChanged?: (value?: boolean) => void;
@@ -306,6 +307,7 @@ export interface IVKVideoPlayerConfig {
306
307
  pipEnabled?: boolean;
307
308
  playerView?: VideoPlayerView;
308
309
  mediascopePixels?: MediascopePixelTypes.Pixel[];
310
+ getVideoDeeplink?: () => string;
309
311
  }
310
312
  export interface IControlInfo {
311
313
  left: number;