@vkontakte/videoplayer 1.1.81-dev.ea6e4e42.0 → 1.1.81-dev.f4d0e2c9.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 +35 -35
- package/es2015.esm.js +36 -36
- package/es2018.cjs +39 -39
- package/es2018.esm.js +40 -40
- package/es2024.cjs +38 -38
- package/es2024.esm.js +38 -38
- package/esnext.cjs +38 -38
- package/esnext.esm.js +38 -38
- package/evergreen.esm.js +38 -38
- package/package.json +5 -5
- package/types/VKVideoPlayer/index.svelte.d.ts +1 -0
- package/types/components/Root/types.d.ts +1 -1
- package/types/config.d.ts +1 -0
- package/types/store/index.d.ts +3 -2
- package/types/store/utils.d.ts +2 -1
- package/types/types/index.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vkontakte/videoplayer",
|
|
3
|
-
"version": "1.1.81-dev.
|
|
3
|
+
"version": "1.1.81-dev.f4d0e2c9.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.150-dev.
|
|
59
|
-
"@vkontakte/videoplayer-interactive": "1.0.56-dev.
|
|
60
|
-
"@vkontakte/videoplayer-shared": "1.0.79-dev.
|
|
61
|
-
"@vkontakte/videoplayer-statistics": "1.0.96-dev.
|
|
58
|
+
"@vkontakte/videoplayer-core": "2.0.150-dev.f4d0e2c9.0",
|
|
59
|
+
"@vkontakte/videoplayer-interactive": "1.0.56-dev.f4d0e2c9.0",
|
|
60
|
+
"@vkontakte/videoplayer-shared": "1.0.79-dev.f4d0e2c9.0",
|
|
61
|
+
"@vkontakte/videoplayer-statistics": "1.0.96-dev.f4d0e2c9.0"
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -54,7 +54,7 @@ export interface RootProps {
|
|
|
54
54
|
showAutoplayNext: boolean;
|
|
55
55
|
keyboardControls?: KeyboardControls | undefined;
|
|
56
56
|
needToRepeatPlaylist?: boolean;
|
|
57
|
-
getVideoDeeplink?: () => string;
|
|
57
|
+
getVideoDeeplink?: (timestamp: number) => string;
|
|
58
58
|
}
|
|
59
59
|
export interface RootExports {
|
|
60
60
|
play: () => void;
|
package/types/config.d.ts
CHANGED
|
@@ -267,6 +267,7 @@ export interface ISDKConfig {
|
|
|
267
267
|
ui: RecursivePartial<IUIConfig>;
|
|
268
268
|
core: ICoreConfig;
|
|
269
269
|
statistics: IStatisticsConfig;
|
|
270
|
+
meta?: string[];
|
|
270
271
|
}
|
|
271
272
|
export declare const setConfig: (config: IUIConfig) => IUIConfig;
|
|
272
273
|
export declare const getConfig: () => IUIConfig;
|
package/types/store/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IAudioStream, IConfig, IExternalTextTrack, IOptionalTuningConfig, IPlayer, ISources, ITextTrack, IVideoStream, PlaybackRate } from '@vkontakte/videoplayer-core';
|
|
2
2
|
import { ChromecastState, PlaybackState, VideoFormat } from '@vkontakte/videoplayer-core';
|
|
3
3
|
import { type IError, type ILogger, InterfaceLanguage, type IRectangle, type IValueObservable, type QualityLimits, VideoQuality, type InternalsExposure } from '@vkontakte/videoplayer-shared';
|
|
4
|
-
import type { IUIConfig } from '../config';
|
|
4
|
+
import type { ISDKConfig, IUIConfig } from '../config';
|
|
5
5
|
import { SeekAction } from '@vkontakte/videoplayer-statistics';
|
|
6
6
|
import type { InteractiveRange } from '@vkontakte/videoplayer-interactive';
|
|
7
7
|
import type { Readable, Writable } from 'svelte/store';
|
|
@@ -370,6 +370,7 @@ interface IStoreParams {
|
|
|
370
370
|
previewThumbsData?: ITimelinePreviewThumbsData;
|
|
371
371
|
uiConfig: IUIConfig;
|
|
372
372
|
coreConfig: IOptionalTuningConfig;
|
|
373
|
+
metaConfig: ISDKConfig['meta'];
|
|
373
374
|
player?: IPlayer;
|
|
374
375
|
isInteractive: boolean;
|
|
375
376
|
interactiveRanges$?: IValueObservable<InteractiveRange[]>;
|
|
@@ -400,5 +401,5 @@ interface IStoreParams {
|
|
|
400
401
|
* Store приложения.
|
|
401
402
|
* Если будет слишком большим - можно разделить его на модули
|
|
402
403
|
*/
|
|
403
|
-
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, onVideoChanged, looped, statistics: uiStatistics, saveRate, internalsExposure, playerView, playerId, }: IStoreParams) => IStore;
|
|
404
|
+
export declare const createStore: ({ interfaceLanguage, isCyrillicRelatedInterface, videoId, isClip, isLiveCatchUpMode, statAuthToken, isAudioDisabled, canDownload, callbacks, webApi, videoEpisodes, previewThumbsData, uiConfig, coreConfig, player: playerInstance, disabledControls, isInteractive, interactiveRanges$, isInteractiveTime$, replayInteractive, stopPlayer, hasInteractiveBranches, playPrevChapterDisabledTooltip, additionalButtons, additionalSettingsMenuItems, additionalContextMenuItems, playPrevVideo, playNextVideo, onVideoChanged, looped, statistics: uiStatistics, saveRate, internalsExposure, playerView, playerId, metaConfig, }: IStoreParams) => IStore;
|
|
404
405
|
export {};
|
package/types/store/utils.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { IPlayer, IConfig, IObservable } from '@vkontakte/videoplayer-core'
|
|
|
4
4
|
import type { IStore } from '.';
|
|
5
5
|
import type { AdditionalButtonDeprecated, IMicroStores } from '../types';
|
|
6
6
|
import type { AdditionalDesktopControlPanelButton } from '../components/Controls/types';
|
|
7
|
+
import type { ISDKConfig } from '../config';
|
|
7
8
|
export declare const setStores: (store: IStore, microStores: IMicroStores) => void;
|
|
8
9
|
export declare const getStore: () => IStore;
|
|
9
10
|
export declare const getMicroStores: () => IMicroStores;
|
|
@@ -12,7 +13,7 @@ export declare const getMicroStores: () => IMicroStores;
|
|
|
12
13
|
*/
|
|
13
14
|
export declare const storeFromObservable: <T>(observable$: IValueObservable<T>, onNewValueEmitted?: (value: T) => void) => Readable<T>;
|
|
14
15
|
export declare const storeFromObservableWithInitValue: <T>(observable$: IObservable<T>, initValue: T, onNewValueEmitted?: (value: T) => void) => Readable<T>;
|
|
15
|
-
export declare const constructDebugTextData: (player: IPlayer, config: IConfig | undefined, store: IStore, traceId: string) => string;
|
|
16
|
+
export declare const constructDebugTextData: (player: IPlayer, config: IConfig | undefined, store: IStore, traceId: string, metaConfig?: ISDKConfig["meta"]) => string;
|
|
16
17
|
export type DebugData = {
|
|
17
18
|
version: string;
|
|
18
19
|
viewport: string;
|
package/types/types/index.d.ts
CHANGED
|
@@ -307,7 +307,7 @@ export interface IVKVideoPlayerConfig {
|
|
|
307
307
|
pipEnabled?: boolean;
|
|
308
308
|
playerView?: VideoPlayerView;
|
|
309
309
|
mediascopePixels?: MediascopePixelTypes.Pixel[];
|
|
310
|
-
getVideoDeeplink?: () => string;
|
|
310
|
+
getVideoDeeplink?: (timestamp: number) => string;
|
|
311
311
|
}
|
|
312
312
|
export interface IControlInfo {
|
|
313
313
|
left: number;
|