@vkontakte/videoplayer 1.1.85-dev.a9d5a5e1.0 → 1.1.85-dev.b2d1f4f2.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.
Files changed (111) hide show
  1. package/es2018.cjs +413 -55
  2. package/es2018.esm.js +413 -55
  3. package/es2024.cjs +413 -55
  4. package/es2024.esm.js +413 -55
  5. package/esnext.cjs +413 -55
  6. package/esnext.esm.js +413 -55
  7. package/evergreen.esm.js +413 -55
  8. package/package.json +5 -5
  9. package/types/VKVideoPlayer/HTMLElement.d.ts +1 -1
  10. package/types/VKVideoPlayer/index.svelte.d.ts +172 -173
  11. package/types/components/Ads/admanWrapper.d.ts +75 -75
  12. package/types/components/Ads/types.d.ts +27 -27
  13. package/types/components/Controls/contants/desktopButtonsLeftIds.d.ts +8 -8
  14. package/types/components/Controls/contants/desktopButtonsLeftWeights.d.ts +2 -4
  15. package/types/components/Controls/contants/desktopButtonsRightIds.d.ts +8 -8
  16. package/types/components/Controls/contants/desktopButtonsRightWeights.d.ts +2 -4
  17. package/types/components/Controls/types.d.ts +27 -27
  18. package/types/components/Controls/utils/isInnerButtonGuard.d.ts +1 -1
  19. package/types/components/Icons/constants.d.ts +5 -5
  20. package/types/components/Icons/utils.d.ts +1 -1
  21. package/types/components/Menus/constants/contextMenuItemIds.d.ts +10 -10
  22. package/types/components/Menus/constants/contextMenuItemWeights.d.ts +2 -4
  23. package/types/components/Menus/constants/index.d.ts +4 -4
  24. package/types/components/Menus/constants/openSubMenuItemsIds.d.ts +1 -1
  25. package/types/components/Menus/constants/settingsMenuItemIds.d.ts +10 -10
  26. package/types/components/Menus/constants/settingsMenuItemWeights.d.ts +2 -4
  27. package/types/components/Menus/constants/subMenuIds.d.ts +6 -6
  28. package/types/components/Menus/subMenuTabs/rootMenuItems.d.ts +26 -26
  29. package/types/components/Menus/subMenuTabs/sharedMenuItems.d.ts +7 -7
  30. package/types/components/Menus/subMenuTabs/subMenuItems.d.ts +4 -10
  31. package/types/components/Menus/subMenuTabs/types.d.ts +108 -108
  32. package/types/components/Menus/subMenuTabs/utils.d.ts +2 -2
  33. package/types/components/Menus/types.d.ts +64 -61
  34. package/types/components/Menus/utils/getCurrentQualityDisplayValue.d.ts +12 -12
  35. package/types/components/Menus/utils/getQualityIcon.d.ts +2 -2
  36. package/types/components/Menus/utils/getSubMenusStack.svelte.d.ts +7 -7
  37. package/types/components/Menus/utils/menuNavigation.d.ts +5 -5
  38. package/types/components/Root/types.d.ts +79 -79
  39. package/types/components/Root/utils.d.ts +2 -2
  40. package/types/components/Timeline/PreviewTrack/useTransitionToPreviewTrack.svelte.d.ts +15 -15
  41. package/types/components/Timeline/consts.d.ts +2 -2
  42. package/types/components/shared/interpolateUtils.d.ts +2 -2
  43. package/types/config.d.ts +256 -262
  44. package/types/constans/controls.d.ts +21 -21
  45. package/types/constans/grid.d.ts +9 -9
  46. package/types/constans/index.d.ts +8 -8
  47. package/types/constans/interactives.d.ts +4 -4
  48. package/types/constans/keyboard.d.ts +43 -48
  49. package/types/index.d.ts +15 -16
  50. package/types/services/statistics.d.ts +13 -13
  51. package/types/store/index.d.ts +389 -391
  52. package/types/store/micro/base.d.ts +6 -6
  53. package/types/store/micro/fakeIsPlaying.d.ts +8 -10
  54. package/types/store/micro/graphIsOpened.d.ts +11 -13
  55. package/types/store/micro/index.d.ts +1 -1
  56. package/types/store/micro/interactiveControlsOpacity.d.ts +8 -10
  57. package/types/store/micro/notifications.d.ts +7 -10
  58. package/types/store/micro/pictureInPicture.d.ts +6 -9
  59. package/types/store/micro/seekToInteractiveDisabledTooltip.d.ts +8 -7
  60. package/types/store/micro/showInteractiveTimeIndicatorTooltip.d.ts +13 -12
  61. package/types/store/utils.d.ts +36 -36
  62. package/types/translation/index.d.ts +2 -2
  63. package/types/translation/labels.d.ts +1 -1
  64. package/types/translation/packs/en.d.ts +1 -1
  65. package/types/translation/packs/ru.d.ts +1 -1
  66. package/types/translation/types.d.ts +5 -5
  67. package/types/types/index.d.ts +519 -518
  68. package/types/types/svg.d.d.ts +5 -0
  69. package/types/utils/CaptionsPrepared.d.ts +15 -15
  70. package/types/utils/WebVttParser.d.ts +11 -11
  71. package/types/utils/attachments/defferedDisableByCondition.d.ts +3 -3
  72. package/types/utils/changeVolume.d.ts +6 -6
  73. package/types/utils/elementHelpers.d.ts +2 -2
  74. package/types/utils/findCurrentSubtltlePhrase.d.ts +1 -1
  75. package/types/utils/fullscreen.d.ts +14 -14
  76. package/types/utils/getActualEpisode.d.ts +7 -7
  77. package/types/utils/getControlInfo.d.ts +5 -7
  78. package/types/utils/getHotKeyMapData.d.ts +1 -1
  79. package/types/utils/grid.d.ts +1 -1
  80. package/types/utils/hooks/useIosSafariFullscreen.d.ts +2 -2
  81. package/types/utils/hooks/useIosSafariFullscreenSubtitles.d.ts +3 -3
  82. package/types/utils/keyboardHandleCases.d.ts +1 -1
  83. package/types/utils/notificationShowManager.d.ts +7 -6
  84. package/types/utils/roundFps.d.ts +1 -1
  85. package/types/utils/sanitizeHtml.d.ts +3 -3
  86. package/types/utils/sorts.d.ts +2 -2
  87. package/types/utils/stack/index.d.ts +7 -7
  88. package/types/utils/stack/node.d.ts +3 -3
  89. package/types/utils/subtitles.d.ts +8 -8
  90. package/types/utils/timeout.d.ts +2 -2
  91. package/types/utils/updatePlayerControlBlocks.d.ts +2 -2
  92. package/types/utils/updatePlayerControlsInfo.d.ts +2 -2
  93. package/types/utils/userSettings.d.ts +26 -21
  94. package/types/utils/videoConfig.d.ts +6 -2
  95. package/types/utils/volumeChange.d.ts +1 -1
  96. package/types/utils/webAPI/annotationsApi/annotationsApi.d.ts +31 -31
  97. package/types/utils/webAPI/annotationsApi/errors.d.ts +1 -1
  98. package/types/utils/webAPI/focusLock.d.ts +30 -30
  99. package/types/utils/webAPI/focusManager.d.ts +15 -15
  100. package/types/utils/webAPI/language.d.ts +1 -1
  101. package/types/utils/webAPI/mediaSessionApi.d.ts +14 -14
  102. package/types/utils/webAPI/pictureInPictureApi/documentPictureInPictureApi.svelte.d.ts +40 -41
  103. package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +46 -46
  104. package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +4 -0
  105. package/types/utils/webAPI/pictureInPictureApi/types.d.ts +4 -4
  106. package/types/utils/webAPI/pictureInPictureApi/utils.d.ts +2 -7
  107. package/types/utils/webAPI/slotsApi.d.ts +41 -41
  108. package/es2015.cjs +0 -61
  109. package/es2015.esm.js +0 -61
  110. package/types/utils/webAPI/pictureInPictureApi/factory.d.ts +0 -3
  111. package/types/utils/webAPI/pictureInPictureApi/index.d.ts +0 -4
@@ -1,53 +1,48 @@
1
1
  export declare const enum ProcessedKeysCodes {
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"
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,16 @@
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';
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 } 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, } 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';
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, ISDKConfig, VideoPlayerView, IAdmanInitParamsExternalApi, VKLogoType };
13
+ export { GridTypes } from "./constans";
14
+ export { PlayerPhase } from "./types";
15
+ export { InterfaceLanguage, VKNumericLanguage, loadVKLangPack } from "@vkontakte/videoplayer-shared";
16
+ export { VideoQuality, VideoFormat } from "@vkontakte/videoplayer-core";
@@ -1,17 +1,17 @@
1
- import { type ISubscription } from '@vkontakte/videoplayer-shared';
2
- import { type IOneStat, type ThinOneStat, type IMediascopePixel } from '@vkontakte/videoplayer-statistics';
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
- statSubscription: ISubscription;
5
- oneStat?: IOneStat;
6
- thinOneStat?: ThinOneStat.IThinOneStat;
7
- mediascopePixel?: IMediascopePixel;
8
- destroy: () => void;
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
- 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;
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
  }