@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/es2015.cjs.js +64 -64
- package/es2015.esm.js +64 -64
- package/es2018.cjs.js +65 -65
- package/es2018.esm.js +65 -65
- package/es2024.cjs.js +62 -62
- package/es2024.esm.js +62 -62
- package/esnext.cjs.js +62 -62
- package/esnext.esm.js +62 -62
- package/evergreen.esm.js +62 -62
- package/package.json +1 -1
- package/types/index.d.ts +2 -2
- package/types/types/index.d.ts +4 -2
package/package.json
CHANGED
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';
|
package/types/types/index.d.ts
CHANGED
|
@@ -86,8 +86,7 @@ export interface IVKVideoPlayerCallbacks {
|
|
|
86
86
|
onAutoplaySoundProhibited?: () => void;
|
|
87
87
|
onDevNullLog?: (entry: DevNullEntry) => void;
|
|
88
88
|
uiInfo?: {
|
|
89
|
-
|
|
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;
|