@vkontakte/videoplayer 1.1.61-dev.4affc441.0 → 1.1.61-dev.7a92fe9e.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.61-dev.4affc441.0",
3
+ "version": "1.1.61-dev.7a92fe9e.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.131-dev.5dfc4a50.0",
59
- "@vkontakte/videoplayer-interactive": "1.0.36-dev.0b2b6978.0",
60
- "@vkontakte/videoplayer-shared": "1.0.59-dev.2e0f9025.0",
61
- "@vkontakte/videoplayer-statistics": "1.0.77-dev.38c1ddaf.0"
58
+ "@vkontakte/videoplayer-core": "2.0.131-dev.abb2b2b1.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.36-dev.7c4fc80f.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.58",
61
+ "@vkontakte/videoplayer-statistics": "1.0.77-dev.0169afe3.0"
62
62
  }
63
63
  }
@@ -51,7 +51,6 @@ export declare class VKVideoPlayer extends HTMLElement {
51
51
  private isControlDisabled;
52
52
  private getNextVideoInfo;
53
53
  private createOneStat;
54
- private createThinOneStat;
55
54
  private createPlayer;
56
55
  private addPlayerInfoSubscriptions;
57
56
  playNextVideo(): void;
package/types/config.d.ts CHANGED
@@ -145,6 +145,22 @@ export interface IUIConfig {
145
145
  maxCountShowSlowVideoNotification: number;
146
146
  timeoutShowSlowVideoNotification: number;
147
147
  forcePlayerDisplayBlock: boolean;
148
+ /**
149
+ * Отображать ли анимацию смены статуса проигрывания.
150
+ */
151
+ playbackStatusShow: boolean;
152
+ /**
153
+ * Продолжительность анимации.
154
+ */
155
+ playbackStatusAnimationDuration: number;
156
+ /**
157
+ * Отображать ли анимацию при переключении видео на следующее или предыдущее.
158
+ */
159
+ playbackStatusNextVideoShow: boolean;
160
+ /**
161
+ * Продолжительность анимации для переключения видео.
162
+ */
163
+ playbackStatusNextVideoAnimationDuration: number;
148
164
  };
149
165
  interactive: {
150
166
  historyMaxLength: number;
@@ -1,15 +1,13 @@
1
1
  import { type ISubscription } from '@vkontakte/videoplayer-shared';
2
- import { type IOneStat, type ThinOneStat } from '@vkontakte/videoplayer-statistics';
2
+ import { type IOneStat } from '@vkontakte/videoplayer-statistics';
3
3
  export interface IUIStatistics {
4
4
  statSubscription: ISubscription;
5
- oneStat?: IOneStat;
6
- thinOneStat?: ThinOneStat.IThinOneStat;
5
+ oneStat: IOneStat;
7
6
  destroy: () => void;
8
7
  }
9
8
  export declare class UIOneStat implements IUIStatistics {
10
- oneStat?: IOneStat | undefined;
11
- thinOneStat?: ThinOneStat.IThinOneStat | undefined;
9
+ oneStat: IOneStat;
12
10
  statSubscription: ISubscription;
13
- constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, statSubscription?: ISubscription);
11
+ constructor(oneStat: IOneStat, statSubscription?: ISubscription);
14
12
  destroy(): void;
15
13
  }
@@ -112,6 +112,11 @@ export interface IUIState {
112
112
  ref$: Writable<HTMLElement | undefined>;
113
113
  name$: Writable<string | undefined>;
114
114
  };
115
+ aboutToGoNextVideo: Writable<'next' | 'prev' | undefined>;
116
+ /**
117
+ * Отключаем любое действие пользователя.
118
+ */
119
+ userActionsDisabled: Writable<boolean>;
115
120
  }
116
121
  export interface IWebApi {
117
122
  pictureInPictureApi?: IPictureInPictureApi;