@vkontakte/videoplayer 1.1.95-dev.0bbcbb01d.0 → 1.1.95-dev.89cc5ad2a.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/videoplayer",
3
- "version": "1.1.95-dev.0bbcbb01d.0",
3
+ "version": "1.1.95-dev.89cc5ad2a.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
@@ -43,9 +43,9 @@
43
43
  ],
44
44
  "dependencies": {
45
45
  "@adtech/rbadman": "2.2.57",
46
- "@vkontakte/videoplayer-core": "2.0.164-dev.0bbcbb01d.0",
47
- "@vkontakte/videoplayer-interactive": "1.0.70-dev.0bbcbb01d.0",
48
- "@vkontakte/videoplayer-shared": "1.0.93-dev.0bbcbb01d.0",
49
- "@vkontakte/videoplayer-statistics": "1.0.110-dev.0bbcbb01d.0"
46
+ "@vkontakte/videoplayer-core": "2.0.164-dev.89cc5ad2a.0",
47
+ "@vkontakte/videoplayer-interactive": "1.0.70-dev.89cc5ad2a.0",
48
+ "@vkontakte/videoplayer-shared": "1.0.93-dev.89cc5ad2a.0",
49
+ "@vkontakte/videoplayer-statistics": "1.0.110-dev.89cc5ad2a.0"
50
50
  }
51
51
  }
@@ -24,6 +24,7 @@ export declare class AdmanWrapper {
24
24
  private isVsidOriginal;
25
25
  private preserveMutedState;
26
26
  private stopAdmanOnSwitch;
27
+ private skipNoFillAds;
27
28
  private watchDogTimeout;
28
29
  private externalApi?;
29
30
  events: {
@@ -17,4 +17,5 @@ export interface IConfig {
17
17
  isVsidOriginal: boolean;
18
18
  preserveMutedState: boolean;
19
19
  stopAdmanOnSwitch: boolean;
20
+ skipNoFillAds: boolean;
20
21
  }
@@ -1,2 +1,2 @@
1
1
  import { DesktopButtonsLeftIds } from "./desktopButtonsLeftIds";
2
- export declare const desktopButtonsLeftWeights: { [key in DesktopButtonsLeftIds] : number };
2
+ export declare const desktopButtonsLeftWeights: { [key in DesktopButtonsLeftIds]: number };
@@ -1,2 +1,2 @@
1
1
  import { DesktopButtonsRightIds } from "./desktopButtonsRightIds";
2
- export declare const desktopButtonsRightWeights: { [key in DesktopButtonsRightIds] : number };
2
+ export declare const desktopButtonsRightWeights: { [key in DesktopButtonsRightIds]: number };
@@ -1,2 +1,2 @@
1
1
  import { ContextMenuItemIds } from "./contextMenuItemIds";
2
- export declare const contextMenuItemWeights: { [key in ContextMenuItemIds] : number };
2
+ export declare const contextMenuItemWeights: { [key in ContextMenuItemIds]: number };
@@ -1,2 +1,2 @@
1
1
  import { SettingsMenuItemIds } from "./settingsMenuItemIds";
2
- export declare const settingsMenuItemWeights: { [key in SettingsMenuItemIds] : number };
2
+ export declare const settingsMenuItemWeights: { [key in SettingsMenuItemIds]: number };
package/types/config.d.ts CHANGED
@@ -52,6 +52,11 @@ export interface IAdsConfig {
52
52
  */
53
53
  preserveMutedState: boolean;
54
54
  stopAdmanOnSwitch: boolean;
55
+ /**
56
+ * Пропускать no-fill рекламу (баннер с нулевой длительностью).
57
+ * Если true — started$ не стреляется, видео сразу продолжает воспроизведение.
58
+ */
59
+ skipNoFillAds: boolean;
55
60
  }
56
61
  export interface IUIConfig {
57
62
  isMobile: ForceOrRelay;
@@ -3,4 +3,4 @@ export type Module<T> = {
3
3
  token: InjectionToken<T>;
4
4
  factory: (container: IDIContainer) => T;
5
5
  };
6
- export declare const registerModules: <T extends any[]>(container: IDIContainer, modules: { [K in keyof T] : Module<T[K]> }) => void;
6
+ export declare const registerModules: <T extends any[]>(container: IDIContainer, modules: { [K in keyof T]: Module<T[K]> }) => void;
@@ -29,7 +29,7 @@ export interface IAdsStateValues {
29
29
  secondsToWatchBeforeSkip: number;
30
30
  postrollPassed: boolean;
31
31
  }
32
- export type IAdsState = { [K in keyof IAdsStateValues] : Writable<IAdsStateValues[K]> };
32
+ export type IAdsState = { [K in keyof IAdsStateValues]: Writable<IAdsStateValues[K]> };
33
33
  export interface IUIState {
34
34
  t: (key: Key, params?: Record<string, string>) => string;
35
35
  isMinimalView$: Writable<boolean>;
@@ -42,7 +42,7 @@ export interface IUIState {
42
42
  * Определяет, могут ли вообще контролы быть показаны.
43
43
  */
44
44
  isControlsAvailable: Writable<boolean>;
45
- controlBlocks: { [key in keyof Required<ControlBlocksRefs>] : Writable<IControlInfo | undefined> };
45
+ controlBlocks: { [key in keyof Required<ControlBlocksRefs>]: Writable<IControlInfo | undefined> };
46
46
  touched: Writable<boolean>;
47
47
  controls: {
48
48
  prevButton: Writable<IControlInfo | undefined>;