@vkontakte/videoplayer 1.1.80-dev.e6e86083.0 → 1.1.81-dev.31e6196f.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.80-dev.e6e86083.0",
3
+ "version": "1.1.81-dev.31e6196f.0",
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.149-dev.e6e86083.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.55-dev.e6e86083.0",
60
- "@vkontakte/videoplayer-shared": "1.0.78-dev.e6e86083.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.95-dev.e6e86083.0"
58
+ "@vkontakte/videoplayer-core": "2.0.150-dev.31e6196f.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.56-dev.31e6196f.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.79-dev.31e6196f.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.96-dev.31e6196f.0"
62
62
  }
63
63
  }
package/types/config.d.ts CHANGED
@@ -251,6 +251,14 @@ export interface IUIConfig {
251
251
  */
252
252
  suitableDurationForUsingRichSeek: Seconds;
253
253
  titleShowBehaviour: TitleShowBehaviour;
254
+ /**
255
+ * Отключаем слоты по идентификаторам.
256
+ */
257
+ disabledSlotIds: string[];
258
+ /**
259
+ * Отключаем внешне переданные кнопки по идентификаторам.
260
+ */
261
+ disabledAdditionalButtonIds: string[];
254
262
  }
255
263
  export declare const defaultConfig: IUIConfig;
256
264
  export type IOptionalUIConfig = RecursivePartial<IUIConfig>;
@@ -18,13 +18,20 @@ type AddOptions = {
18
18
  hideAllControls?: boolean;
19
19
  controlsBehaviour?: HideControlsWhenIntersectedOptions;
20
20
  };
21
+ type AddReturnType = {
22
+ success: true;
23
+ } | {
24
+ success: false;
25
+ message: string;
26
+ };
21
27
  export declare class SlotsApi {
22
28
  private shadowRootContainer;
23
29
  private slots;
24
30
  private store;
25
- constructor();
31
+ private disabledIds;
32
+ constructor(disabledIds: string[]);
26
33
  init(shadowRootContainer: HTMLElement, store: IStore | undefined): void;
27
- add(element: HTMLElement, options: AddOptions): void;
34
+ add(element: HTMLElement, options: AddOptions): AddReturnType;
28
35
  private setupSlotStyles;
29
36
  /**
30
37
  * Запускаем отслеживание пересечения между переданным элементом внутри слота и контролами.