@vkontakte/videoplayer 1.1.60 → 1.1.61-dev.e1cb6686.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.60",
3
+ "version": "1.1.61-dev.e1cb6686.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.130",
59
- "@vkontakte/videoplayer-interactive": "1.0.35",
60
- "@vkontakte/videoplayer-shared": "1.0.58",
61
- "@vkontakte/videoplayer-statistics": "1.0.76"
58
+ "@vkontakte/videoplayer-core": "2.0.131-dev.04beed26.0",
59
+ "@vkontakte/videoplayer-interactive": "1.0.36-dev.e16bef2c.0",
60
+ "@vkontakte/videoplayer-shared": "1.0.59-dev.66cb5ad5.0",
61
+ "@vkontakte/videoplayer-statistics": "1.0.77-dev.a8ce6708.0"
62
62
  }
63
63
  }
@@ -5,6 +5,7 @@ import { type QualityLimits } from '@vkontakte/videoplayer-shared';
5
5
  import { InterfaceLanguage } from '@vkontakte/videoplayer-shared';
6
6
  import { type PlaybackRate } from '@vkontakte/videoplayer-core';
7
7
  import type { IStatContext } from '@vkontakte/videoplayer-statistics';
8
+ import { ThinOneStat } from '@vkontakte/videoplayer-statistics';
8
9
  import { AnnotationsApi } from '../utils/webAPI/annotationsApi/annotationsApi';
9
10
  import type { AdditionalContextMenuItem, AdditionalSettingsMenuItem } from '../components/Menus/subMenuTabs/types';
10
11
  import type { AdditionalButton } from '../components/Controls/types';
@@ -51,6 +52,7 @@ export declare class VKVideoPlayer extends HTMLElement {
51
52
  private isControlDisabled;
52
53
  private getNextVideoInfo;
53
54
  private createOneStat;
55
+ private createThinOneStat;
54
56
  private createPlayer;
55
57
  private addPlayerInfoSubscriptions;
56
58
  playNextVideo(): void;
@@ -106,7 +108,7 @@ export declare class VKVideoPlayer extends HTMLElement {
106
108
  updateAdditionalButton(itemId: string, fields: Partial<Omit<AdditionalButton, 'id' | 'type'>>): void;
107
109
  addAdditionalButton(newButton: AdditionalButton): void;
108
110
  removeAdditionalButton(itemId: string): void;
109
- updateStatContext(statContext: Partial<IStatContext>): void;
111
+ updateStatContext(statContext: Partial<IStatContext | ThinOneStat.IStatContext>): void;
110
112
  handleTimerNextVideo(state: boolean): void;
111
113
  focus(): void;
112
114
  private unmountComponent;
@@ -1,13 +1,15 @@
1
1
  import { type ISubscription } from '@vkontakte/videoplayer-shared';
2
- import { type IOneStat } from '@vkontakte/videoplayer-statistics';
2
+ import { type IOneStat, type ThinOneStat } from '@vkontakte/videoplayer-statistics';
3
3
  export interface IUIStatistics {
4
4
  statSubscription: ISubscription;
5
- oneStat: IOneStat;
5
+ oneStat?: IOneStat;
6
+ thinOneStat?: ThinOneStat.IThinOneStat;
6
7
  destroy: () => void;
7
8
  }
8
9
  export declare class UIOneStat implements IUIStatistics {
9
- oneStat: IOneStat;
10
+ oneStat?: IOneStat | undefined;
11
+ thinOneStat?: ThinOneStat.IThinOneStat | undefined;
10
12
  statSubscription: ISubscription;
11
- constructor(oneStat: IOneStat, statSubscription?: ISubscription);
13
+ constructor(oneStat?: IOneStat | undefined, thinOneStat?: ThinOneStat.IThinOneStat | undefined, statSubscription?: ISubscription);
12
14
  destroy(): void;
13
15
  }