@vkontakte/videoplayer 1.1.86 → 1.1.87-dev.04ce2cd1.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 +423 -56
- package/es2015.esm.js +423 -56
- package/es2018.cjs +423 -56
- package/es2018.esm.js +423 -56
- package/es2024.cjs +423 -56
- package/es2024.esm.js +423 -56
- package/esnext.cjs +423 -56
- package/esnext.esm.js +423 -56
- package/evergreen.esm.js +423 -56
- package/package.json +5 -5
- package/types/VKVideoPlayer/HTMLElement.d.ts +1 -1
- package/types/VKVideoPlayer/index.svelte.d.ts +173 -173
- package/types/components/Ads/admanWrapper.d.ts +79 -75
- package/types/components/Ads/types.d.ts +27 -27
- package/types/components/Controls/contants/desktopButtonsLeftIds.d.ts +8 -8
- package/types/components/Controls/contants/desktopButtonsLeftWeights.d.ts +2 -4
- package/types/components/Controls/contants/desktopButtonsRightIds.d.ts +8 -8
- package/types/components/Controls/contants/desktopButtonsRightWeights.d.ts +2 -4
- package/types/components/Controls/types.d.ts +27 -27
- package/types/components/Controls/utils/isInnerButtonGuard.d.ts +1 -1
- package/types/components/Icons/constants.d.ts +5 -5
- package/types/components/Icons/utils.d.ts +1 -1
- package/types/components/Menus/constants/contextMenuItemIds.d.ts +10 -10
- package/types/components/Menus/constants/contextMenuItemWeights.d.ts +2 -4
- package/types/components/Menus/constants/index.d.ts +4 -4
- package/types/components/Menus/constants/openSubMenuItemsIds.d.ts +1 -1
- package/types/components/Menus/constants/settingsMenuItemIds.d.ts +10 -10
- package/types/components/Menus/constants/settingsMenuItemWeights.d.ts +2 -4
- package/types/components/Menus/constants/subMenuIds.d.ts +6 -6
- package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +26 -26
- package/types/components/Menus/subMenuTabs/sharedMenuItems.d.ts +7 -7
- package/types/components/Menus/subMenuTabs/subMenuItems.d.ts +4 -10
- package/types/components/Menus/subMenuTabs/types.d.ts +108 -108
- package/types/components/Menus/subMenuTabs/utils.d.ts +2 -2
- package/types/components/Menus/types.d.ts +64 -61
- package/types/components/Menus/utils/getCurrentQualityDisplayValue.d.ts +12 -12
- package/types/components/Menus/utils/getQualityIcon.d.ts +2 -2
- package/types/components/Menus/utils/getSubMenusStack.svelte.d.ts +7 -7
- package/types/components/Menus/utils/menuNavigation.d.ts +5 -5
- package/types/components/Root/types.d.ts +79 -79
- package/types/components/Root/utils.d.ts +2 -2
- package/types/components/Timeline/PreviewTrack/useTransitionToPreviewTrack.svelte.d.ts +15 -15
- package/types/components/Timeline/consts.d.ts +2 -2
- package/types/components/shared/interpolateUtils.d.ts +2 -2
- package/types/config.d.ts +270 -260
- package/types/constans/controls.d.ts +21 -21
- package/types/constans/grid.d.ts +9 -9
- package/types/constans/index.d.ts +8 -8
- package/types/constans/interactives.d.ts +4 -4
- package/types/constans/keyboard.d.ts +43 -48
- package/types/index.d.ts +16 -16
- package/types/services/statistics.d.ts +13 -13
- package/types/store/index.d.ts +391 -391
- package/types/store/micro/base.d.ts +6 -6
- package/types/store/micro/fakeIsPlaying.d.ts +8 -10
- package/types/store/micro/graphIsOpened.d.ts +11 -13
- package/types/store/micro/index.d.ts +1 -1
- package/types/store/micro/interactiveControlsOpacity.d.ts +8 -10
- package/types/store/micro/notifications.d.ts +7 -10
- package/types/store/micro/pictureInPicture.d.ts +6 -9
- package/types/store/micro/seekToInteractiveDisabledTooltip.d.ts +8 -7
- package/types/store/micro/showInteractiveTimeIndicatorTooltip.d.ts +13 -12
- package/types/store/utils.d.ts +36 -36
- package/types/translation/index.d.ts +2 -2
- package/types/translation/labels.d.ts +1 -1
- package/types/translation/packs/en.d.ts +1 -1
- package/types/translation/packs/ru.d.ts +1 -1
- package/types/translation/types.d.ts +5 -5
- package/types/types/index.d.ts +534 -516
- package/types/types/svg.d.d.ts +5 -0
- package/types/utils/CaptionsPrepared.d.ts +15 -15
- package/types/utils/WebVttParser.d.ts +11 -11
- package/types/utils/attachments/defferedDisableByCondition.d.ts +3 -3
- package/types/utils/changeVolume.d.ts +6 -6
- package/types/utils/elementHelpers.d.ts +2 -2
- package/types/utils/findCurrentSubtltlePhrase.d.ts +1 -1
- package/types/utils/fullscreen.d.ts +14 -14
- package/types/utils/getActualEpisode.d.ts +7 -7
- package/types/utils/getControlInfo.d.ts +5 -7
- package/types/utils/getHotKeyMapData.d.ts +1 -1
- package/types/utils/grid.d.ts +1 -1
- package/types/utils/hooks/useIosSafariFullscreen.d.ts +2 -2
- package/types/utils/hooks/useIosSafariFullscreenSubtitles.d.ts +3 -3
- package/types/utils/keyboardHandleCases.d.ts +1 -1
- package/types/utils/notificationShowManager.d.ts +7 -6
- package/types/utils/roundFps.d.ts +1 -1
- package/types/utils/sanitizeHtml.d.ts +3 -3
- package/types/utils/sorts.d.ts +2 -2
- package/types/utils/stack/index.d.ts +7 -7
- package/types/utils/stack/node.d.ts +3 -3
- package/types/utils/subtitles.d.ts +8 -8
- package/types/utils/timeout.d.ts +2 -2
- package/types/utils/updatePlayerControlBlocks.d.ts +2 -2
- package/types/utils/updatePlayerControlsInfo.d.ts +2 -2
- package/types/utils/userSettings.d.ts +26 -21
- package/types/utils/videoConfig.d.ts +6 -2
- package/types/utils/volumeChange.d.ts +1 -1
- package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +31 -31
- package/types/utils/webAPI/annotationsApi/errors.d.ts +1 -1
- package/types/utils/webAPI/focusLock.d.ts +30 -30
- package/types/utils/webAPI/focusManager.d.ts +15 -15
- package/types/utils/webAPI/language.d.ts +1 -1
- package/types/utils/webAPI/mediaSessionApi.d.ts +14 -14
- package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.svelte.d.ts +41 -41
- package/types/utils/webAPI/pictureInPictureApi/factory.d.ts +2 -2
- package/types/utils/webAPI/pictureInPictureApi/index.d.ts +4 -4
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +46 -46
- package/types/utils/webAPI/pictureInPictureApi/types.d.ts +4 -4
- package/types/utils/webAPI/pictureInPictureApi/utils.d.ts +3 -3
- package/types/utils/webAPI/slotsApi.d.ts +41 -41
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Controls } from
|
|
2
|
-
import type { Key } from
|
|
1
|
+
import { Controls } from "./controls";
|
|
2
|
+
import type { Key } from "../translation/types";
|
|
3
3
|
export declare const InteractiveActionDisabledControls: Controls[];
|
|
4
4
|
export declare const OpenedGraphDisabledControls: Controls[];
|
|
5
5
|
export declare const ActionChoiceDisabledControls: Controls[];
|
|
6
|
-
export type PlayPrevChapterDisabledTooltipKey = Extract<Key,
|
|
7
|
-
export type SeekToInteractiveDisabledTooltipKey = Extract<Key,
|
|
6
|
+
export type PlayPrevChapterDisabledTooltipKey = Extract<Key, "tooltip_interactive_go_back_disabled" | "tooltip_interactive_go_back_disabled_first" | "tooltip_interactive_go_back_disabled_limit">;
|
|
7
|
+
export type SeekToInteractiveDisabledTooltipKey = Extract<Key, "tooltip_chapter_without_interactive" | "tooltip_interactive_of_chapter_completed" | "tooltip_disabled_when_interactive">;
|
|
@@ -1,53 +1,48 @@
|
|
|
1
1
|
export declare const enum ProcessedKeysCodes {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
2
|
+
ArrowLeft = "ArrowLeft",
|
|
3
|
+
ArrowUp = "ArrowUp",
|
|
4
|
+
ArrowRight = "ArrowRight",
|
|
5
|
+
ArrowDown = "ArrowDown",
|
|
6
|
+
Comma = "Comma",
|
|
7
|
+
Period = "Period",
|
|
8
|
+
Space = "Space",
|
|
9
|
+
KeyC = "KeyC",
|
|
10
|
+
KeyF = "KeyF",
|
|
11
|
+
KeyI = "KeyI",
|
|
12
|
+
KeyJ = "KeyJ",
|
|
13
|
+
KeyK = "KeyK",
|
|
14
|
+
KeyL = "KeyL",
|
|
15
|
+
KeyM = "KeyM",
|
|
16
|
+
KeyN = "KeyN",
|
|
17
|
+
KeyP = "KeyP",
|
|
18
|
+
Digit1 = "Digit1",
|
|
19
|
+
Digit2 = "Digit2",
|
|
20
|
+
Digit3 = "Digit3",
|
|
21
|
+
Digit4 = "Digit4",
|
|
22
|
+
Digit5 = "Digit5",
|
|
23
|
+
Digit6 = "Digit6",
|
|
24
|
+
Digit7 = "Digit7",
|
|
25
|
+
Digit8 = "Digit8",
|
|
26
|
+
Digit9 = "Digit9",
|
|
27
|
+
Digit0 = "Digit0",
|
|
28
|
+
Numpad1 = "Numpad1",
|
|
29
|
+
Numpad2 = "Numpad2",
|
|
30
|
+
Numpad3 = "Numpad3",
|
|
31
|
+
Numpad4 = "Numpad4",
|
|
32
|
+
Numpad5 = "Numpad5",
|
|
33
|
+
Numpad6 = "Numpad6",
|
|
34
|
+
Numpad7 = "Numpad7",
|
|
35
|
+
Numpad8 = "Numpad8",
|
|
36
|
+
Numpad9 = "Numpad9",
|
|
37
|
+
Numpad0 = "Numpad0",
|
|
38
|
+
ShiftLeft = "ShiftLeft",
|
|
39
|
+
ShiftRight = "ShiftRight",
|
|
40
|
+
Slash = "Slash",
|
|
41
|
+
Tab = "Tab",
|
|
42
|
+
Escape = "Escape",
|
|
43
|
+
Enter = "Enter"
|
|
44
44
|
}
|
|
45
|
-
export declare const processedKeysCodesToKeyLabelMap:
|
|
46
|
-
KeyF: string;
|
|
47
|
-
KeyK: string;
|
|
48
|
-
KeyC: string;
|
|
49
|
-
KeyM: string;
|
|
50
|
-
};
|
|
45
|
+
export declare const processedKeysCodesToKeyLabelMap: Record<string, string>;
|
|
51
46
|
export declare const seekKeys: Set<ProcessedKeysCodes>;
|
|
52
47
|
export declare const menuNavigationKeys: Set<ProcessedKeysCodes>;
|
|
53
48
|
export declare const doNotCloseMenuKeys: Set<ProcessedKeysCodes>;
|
package/types/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { VKVideoPlayer } from
|
|
2
|
-
import type { IVKVideoPlayerConfig, IControlInfo, ITimelinePreviewThumbsData, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from
|
|
3
|
-
import type { LanguagePack, LanguageConfig } from
|
|
4
|
-
import type { LogoType as VKLogoType, ISDKConfig, IDpipConfig } from
|
|
5
|
-
import type { AdsParams, IAdmanInitParamsExternalApi } from
|
|
6
|
-
import type { ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek } from
|
|
7
|
-
import type { Milliseconds, QualityLimits } from
|
|
8
|
-
export { VERSION } from
|
|
1
|
+
import { VKVideoPlayer } from "./VKVideoPlayer/index.svelte";
|
|
2
|
+
import type { IVKVideoPlayerConfig, IControlInfo, ITimelinePreviewThumbsData, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, IVideoEpisode, VideoPlayerView } from "./types";
|
|
3
|
+
import type { LanguagePack, LanguageConfig } from "./translation/types";
|
|
4
|
+
import type { LogoType as VKLogoType, ISDKConfig, IDpipConfig } from "./config";
|
|
5
|
+
import type { AdsParams, IAdmanInitParamsExternalApi } from "./components/Ads/types";
|
|
6
|
+
import type { ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek } from "@vkontakte/videoplayer-core";
|
|
7
|
+
import type { Milliseconds, QualityLimits } from "@vkontakte/videoplayer-shared";
|
|
8
|
+
export { VERSION } from "./env";
|
|
9
9
|
export declare const registerPlayerWebComponent: () => void;
|
|
10
|
-
export { type AdditionalSettingsMenuItem, MenuItemType, type AdditionalClickSettingsMenuItem, type AdditionalSwitchSettingsMenuItem, type AdditionalContextMenuItem
|
|
11
|
-
export { type AdditionalButton, ControlButtonType
|
|
12
|
-
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, ITimelinePreviewThumbsData, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, IDpipConfig, ISDKConfig, VideoPlayerView, IAdmanInitParamsExternalApi, VKLogoType
|
|
13
|
-
export { GridTypes
|
|
14
|
-
export { PlayerPhase
|
|
15
|
-
export { isPiPSupported, isDpipSupported } from
|
|
16
|
-
export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack
|
|
17
|
-
export { VideoQuality, VideoFormat
|
|
10
|
+
export { type AdditionalSettingsMenuItem, MenuItemType, type AdditionalClickSettingsMenuItem, type AdditionalSwitchSettingsMenuItem, type AdditionalContextMenuItem } from "./components/Menus/subMenuTabs/types";
|
|
11
|
+
export { type AdditionalButton, ControlButtonType } from "./components/Controls/types";
|
|
12
|
+
export type { VKVideoPlayer, IVKVideoPlayerConfig, IControlInfo, ITimelinePreviewThumbsData, IUpcomingLiveViewControlInfo, IVKVideoPlayerCallbacks, IVideoData, AdsParams, HotKeyMapData, HotKeyMapItem, HotKeyMapGroup, ISources, IDashSource, URLSource, RawSource, URLSourceWithSeek, LanguagePack, LanguageConfig, Milliseconds, IVideoLive, IInteractiveData, AdditionalButtonDeprecated, QualityLimits, IVideoEpisode, IDpipConfig, ISDKConfig, VideoPlayerView, IAdmanInitParamsExternalApi, VKLogoType };
|
|
13
|
+
export { GridTypes } from "./constans";
|
|
14
|
+
export { PlayerPhase } from "./types";
|
|
15
|
+
export { isPiPSupported, isDpipSupported } from "./utils/webAPI/pictureInPictureApi";
|
|
16
|
+
export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack } from "@vkontakte/videoplayer-shared";
|
|
17
|
+
export { VideoQuality, VideoFormat } from "@vkontakte/videoplayer-core";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { type ISubscription } from
|
|
2
|
-
import { type IOneStat, type ThinOneStat, type IMediascopePixel } from
|
|
1
|
+
import { type ISubscription } from "@vkontakte/videoplayer-shared";
|
|
2
|
+
import { type IOneStat, type ThinOneStat, type IMediascopePixel } from "@vkontakte/videoplayer-statistics";
|
|
3
3
|
export interface IUIStatistics {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
statSubscription: ISubscription;
|
|
5
|
+
oneStat?: IOneStat;
|
|
6
|
+
thinOneStat?: ThinOneStat.IThinOneStat;
|
|
7
|
+
mediascopePixel?: IMediascopePixel;
|
|
8
|
+
destroy: () => void;
|
|
9
9
|
}
|
|
10
10
|
export declare class UIOneStat implements IUIStatistics {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
oneStat: IOneStat | undefined;
|
|
12
|
+
thinOneStat: ThinOneStat.IThinOneStat | undefined;
|
|
13
|
+
mediascopePixel: IMediascopePixel | undefined;
|
|
14
|
+
statSubscription: ISubscription;
|
|
15
|
+
constructor(oneStat: IOneStat | undefined, thinOneStat: ThinOneStat.IThinOneStat | undefined, mediascopePixel: IMediascopePixel | undefined, statSubscription?: ISubscription);
|
|
16
|
+
destroy(): void;
|
|
17
17
|
}
|