@vkontakte/videoplayer 1.1.68-dev.5be32a20.0 → 1.1.68-dev.a67b8dbc.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.68-dev.5be32a20.0",
3
+ "version": "1.1.68-dev.a67b8dbc.0",
4
4
  "author": "vk.com",
5
5
  "description": "Videoplayer based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
package/types/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VKVideoPlayer } from './VKVideoPlayer/index.svelte';
2
- import type { IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from './types';
2
+ import type { IVKVideoPlayerConfig, IControlInfo, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from './types';
3
3
  import type { LanguagePack, LanguageConfig } from './translation/types';
4
4
  import type { ISDKConfig } from './config';
5
5
  import type { ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek } from '@vkontakte/videoplayer-core';
@@ -8,7 +8,7 @@ export { VERSION } from './env';
8
8
  export declare const registerPlayerWebComponent: () => void;
9
9
  export { type AdditionalSettingsMenuItem, MenuItemType, type AdditionalClickSettingsMenuItem, type AdditionalSwitchSettingsMenuItem, type AdditionalContextMenuItem, } from './components/Menus/subMenuTabs/types';
10
10
  export { type AdditionalButton, ControlButtonType, } from './components/Controls/types';
11
- export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, ISDKConfig, VideoPlayerView, };
11
+ export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, ISDKConfig, VideoPlayerView, };
12
12
  export { GridTypes, } from './constans';
13
13
  export { PlayerPhase, } from './types';
14
14
  export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack, } from '@vkontakte/videoplayer-shared';
@@ -86,8 +86,7 @@ export interface IVKVideoPlayerCallbacks {
86
86
  onAutoplaySoundProhibited?: () => void;
87
87
  onDevNullLog?: (entry: DevNullEntry) => void;
88
88
  uiInfo?: {
89
- onUpcomingLiveStateChanged?: (value: IControlInfo) => void;
90
- onWaitingLiveStateChanged?: (value: IControlInfo) => void;
89
+ onUpcomingLiveViewStateChanged?: (value: IUpcomingLiveViewControlInfo) => void;
91
90
  onControlsVisibleChanged?: (value?: boolean) => void;
92
91
  onIsMobileChanged?: (value?: boolean) => void;
93
92
  onPrevButtonChanged?: (value?: IControlInfo) => void;
@@ -305,6 +304,9 @@ export interface IControlInfo {
305
304
  bottom: number;
306
305
  isDisplayed: boolean;
307
306
  }
307
+ export interface IUpcomingLiveViewControlInfo extends IControlInfo {
308
+ view: 'default' | 'expired';
309
+ }
308
310
  export interface IPlayerControlsRef {
309
311
  prevButton?: HTMLButtonElement;
310
312
  playButton?: HTMLButtonElement;