@vkontakte/videoplayer 1.1.92-dev.04f50366b.0 → 1.1.92-dev.32ca690b7.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.92-dev.04f50366b.0",
3
+ "version": "1.1.92-dev.32ca690b7.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.161-dev.04f50366b.0",
47
- "@vkontakte/videoplayer-interactive": "1.0.67-dev.04f50366b.0",
48
- "@vkontakte/videoplayer-shared": "1.0.90-dev.04f50366b.0",
49
- "@vkontakte/videoplayer-statistics": "1.0.107-dev.04f50366b.0"
46
+ "@vkontakte/videoplayer-core": "2.0.161-dev.32ca690b7.0",
47
+ "@vkontakte/videoplayer-interactive": "1.0.67-dev.32ca690b7.0",
48
+ "@vkontakte/videoplayer-shared": "1.0.90-dev.32ca690b7.0",
49
+ "@vkontakte/videoplayer-statistics": "1.0.107-dev.32ca690b7.0"
50
50
  }
51
51
  }
package/types/config.d.ts CHANGED
@@ -20,12 +20,10 @@ export declare enum LogoType {
20
20
  * never - не показывать
21
21
  * always - показыватьв всегда
22
22
  */
23
- export type TitleShowBehaviour = "fullscreen" | "fullscreen-and-dpip" | "with-controls" | "never" | "always";
23
+ export type TitleShowBehaviour = "fullscreen" | "with-controls" | "never" | "always";
24
24
  export interface IDpipConfig {
25
- initialSize?: Size;
26
25
  minimalView?: boolean;
27
- showPrevNextButtons?: boolean;
28
- showAutoplayToggle?: boolean;
26
+ initialSize?: Size;
29
27
  }
30
28
  export interface IAdsConfig {
31
29
  enable: ForceOrRelay;
@@ -1,5 +1,5 @@
1
1
  import { BaseMicroStore } from "./base";
2
- import { type InitMicroStoreParams, type PictureInPictureMicroStore } from "../../types";
2
+ import type { InitMicroStoreParams, PictureInPictureMicroStore } from "../../types";
3
3
  import type { Subscription } from "@vkontakte/videoplayer-shared";
4
4
  export default class PictureInPicture extends BaseMicroStore {
5
5
  readonly stateName = "pictureInPicture$";
@@ -610,25 +610,19 @@ export type IToggleable<T> = T & {
610
610
  };
611
611
  type MicroStoreWritableBase<T = unknown> = Writable<T>;
612
612
  type ToggleableMicroStore = IToggleable<MicroStoreWritableBase<boolean | null>>;
613
- export interface DpipHiddenFeatures {
614
- autoplayToggle?: boolean;
615
- nextPrev?: boolean;
616
- }
617
- export interface PictureInPictureMicroStore {
618
- hiddenFeatures$: Writable<DpipHiddenFeatures | undefined>;
613
+ export type PictureInPictureMicroStore = {
619
614
  isActive$: Writable<boolean>;
620
- isDpipActive$: Writable<boolean>;
621
615
  isEnabled$: Writable<boolean>;
622
616
  type$: Writable<PictureInPictureType | undefined>;
623
- }
624
- export interface NotificationsMicroStore {
617
+ };
618
+ export type NotificationsMicroStore = {
625
619
  notificationsToShow$: Writable<Partial<Record<NotificationId, boolean>>>;
626
620
  showNotification: (id: NotificationId) => void;
627
621
  closeNotification: (id: NotificationId) => void;
628
- }
629
- export interface PreviewPlayerMicroStore {
622
+ };
623
+ export type PreviewPlayerMicroStore = {
630
624
  timelineActive$: Writable<boolean>;
631
- }
625
+ };
632
626
  export interface IMicroStores {
633
627
  fakeIsPlaying$: ToggleableMicroStore;
634
628
  interactiveControlsOpacity$: ToggleableMicroStore;