@vkontakte/videoplayer 1.1.85-dev.ffe03d52.0 → 1.1.85

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.85-dev.ffe03d52.0",
3
+ "version": "1.1.85",
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.154-dev.ffe03d52.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.60-dev.ffe03d52.0",
60
- "@vkontakte/videoplayer-shared": "1.0.83-dev.ffe03d52.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.100-dev.ffe03d52.0"
58
+ "@vkontakte/videoplayer-core": "2.0.154",
59
+ "@vkontakte/videoplayer-interactive": "1.0.60",
60
+ "@vkontakte/videoplayer-shared": "1.0.83",
61
+ "@vkontakte/videoplayer-statistics": "1.0.100"
62
62
  }
63
63
  }
@@ -67,6 +67,7 @@ export declare class VKVideoPlayer extends HTMLElement {
67
67
  private createOneStat;
68
68
  private createThinOneStat;
69
69
  private createPlayer;
70
+ private get useMinimalViewForDpip();
70
71
  private addPlayerInfoSubscriptions;
71
72
  playNextVideo(): void;
72
73
  playPrevVideo(): void;
package/types/config.d.ts CHANGED
@@ -230,6 +230,7 @@ export interface IUIConfig {
230
230
  focusedOutlineWidth: string | null;
231
231
  focusedOutlineRadius: string | null;
232
232
  controlsDesktopPaddingHorizontal: string | null;
233
+ controlsDesktopPaddingHorizontalMinimalView: string | null;
233
234
  timelinePaddingHorizontal: string | null;
234
235
  settingsBackgroundColor: string | null;
235
236
  controlsGradientHeight: string | null;
@@ -32,7 +32,7 @@ export interface IAdsState {
32
32
  }
33
33
  export interface IUIState {
34
34
  t: (key: Key, params?: Record<string, string>) => string;
35
- isMinimalMode$: Writable<boolean>;
35
+ isMinimalView$: Writable<boolean>;
36
36
  controlsVisible: Writable<boolean>;
37
37
  /**
38
38
  * Точечно скрываем контролы.
@@ -344,7 +344,7 @@ export interface IStore {
344
344
  setTrafficSavingEnabled: (trafficSavingEnabled: boolean) => void;
345
345
  setHighQualityEnabled: (highQualityEnabled: boolean) => void;
346
346
  changeAudioStream: (id: string) => void;
347
- setMinimalMode: (enabled: boolean) => void;
347
+ setMinimalView: (enabled: boolean) => void;
348
348
  };
349
349
  };
350
350
  callbacks?: IVKVideoPlayerCallbacks;
@@ -244,10 +244,9 @@ export interface AdditionalButtonDeprecated {
244
244
  /**
245
245
  * Определяет внешний вид плеера и его функциональность.
246
246
  * preview - обрезанная функциональность плеера для показать трейлеров, например;
247
- * minimal - обрезанная функциональность плеера для dpip и возможно других потребностей;
248
247
  * full - полная функциональность плеера доступна.
249
248
  */
250
- export type VideoPlayerView = 'preview' | 'minimal' | 'full';
249
+ export type VideoPlayerView = 'preview' | 'full';
251
250
  export interface IVKVideoPlayerConfig {
252
251
  videos: IVideoData[];
253
252
  videoIndex?: number;
@@ -6,3 +6,5 @@ export declare const isDpipSupported: () => boolean;
6
6
  export declare const isPiPEvent: (e: SafeAny) => e is PictureInPictureEvent;
7
7
  export declare const isPiPResizeEvent: (e: Event) => e is PictureInPictureResizeEvent;
8
8
  export declare const isDpipEnabledByConfig: (value?: IDpipConfig | boolean) => boolean;
9
+ export declare const styleSheetToString: (styleSheet: CSSStyleSheet) => string;
10
+ export declare const createStyleNode: (textContent: string, id: string) => Node;