@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
package/types/config.d.ts CHANGED
@@ -1,275 +1,269 @@
1
- import type { ExactVideoQuality, Seconds, IAppTracerOptions } from '@vkontakte/videoplayer-shared';
2
- import type { IOptionalTuningConfig as ICoreConfig } from '@vkontakte/videoplayer-core';
3
- import { InterfaceLanguage } from '@vkontakte/videoplayer-shared';
4
- import type { RecursivePartial } from '@vkontakte/videoplayer-shared';
5
- import type { IOptionalConfig as IStatisticsConfig } from '@vkontakte/videoplayer-statistics';
6
- import type { Milliseconds } from '@vkontakte/videoplayer-shared';
7
- import type { Size } from './types';
1
+ import type { ExactVideoQuality, Seconds, IAppTracerOptions } from "@vkontakte/videoplayer-shared";
2
+ import type { IOptionalTuningConfig as ICoreConfig } from "@vkontakte/videoplayer-core";
3
+ import { InterfaceLanguage } from "@vkontakte/videoplayer-shared";
4
+ import type { RecursivePartial } from "@vkontakte/videoplayer-shared";
5
+ import type { IOptionalConfig as IStatisticsConfig } from "@vkontakte/videoplayer-statistics";
6
+ import type { Milliseconds } from "@vkontakte/videoplayer-shared";
8
7
  type ForceOrRelay = boolean | undefined;
9
8
  export declare enum LogoType {
10
- VK = "vk",
11
- VK_VIDEO = "vk_video",
12
- APP_STORE = "app_store",
13
- PLAY_MARKET = "play_market",
14
- VK_VIDEO_MOBILE = "vk_video_mobile"
9
+ VK = "vk",
10
+ VK_VIDEO = "vk_video",
11
+ APP_STORE = "app_store",
12
+ PLAY_MARKET = "play_market",
13
+ VK_VIDEO_MOBILE = "vk_video_mobile"
15
14
  }
16
15
  /**
17
- * Определяет, когда показывать заголовок видео.
18
- * fullscreen - только в фулскрине(дефолтное поведение)
19
- * with-controls - показывается везде, когда контролы видны
20
- * never - не показывать
21
- * always - показыватьв всегда
22
- */
23
- export type TitleShowBehaviour = 'fullscreen' | 'with-controls' | 'never' | 'always';
24
- export interface IDpipConfig {
25
- minimalView?: boolean;
26
- initialSize?: Size;
27
- }
16
+ * Определяет, когда показывать заголовок видео.
17
+ * fullscreen - только в фулскрине(дефолтное поведение)
18
+ * with-controls - показывается везде, когда контролы видны
19
+ * never - не показывать
20
+ * always - показыватьв всегда
21
+ */
22
+ export type TitleShowBehaviour = "fullscreen" | "with-controls" | "never" | "always";
28
23
  export interface IUIConfig {
29
- isMobile: ForceOrRelay;
30
- disableInvisibleComponentsTimeout: Milliseconds;
31
- debugLog: boolean | {
32
- tag?: string;
33
- colors?: string[];
34
- };
35
- devNullLog: boolean;
36
- isSmoothVideoRotate: boolean;
37
- showSupport: boolean;
38
- supportLink: string;
39
- showLogo: ForceOrRelay;
40
- logoLink: string;
41
- logoType: LogoType;
42
- defaultLanguage: InterfaceLanguage;
43
- downloadVKLanguages: boolean;
44
- updateBuiltinLanguages: boolean;
45
- ads: {
46
- enable: ForceOrRelay;
47
- loadTimeout: Milliseconds;
48
- initTimeout: Milliseconds;
49
- runtimeTimeout: Milliseconds;
50
- slot?: number;
51
- /** @deprecated, Вместо этого используйте paramsOverride: { preview } */
52
- preview?: number;
53
- paramsOverride?: Record<string, unknown>;
54
- isMobileGoToSiteButton: boolean;
55
- useAdmanFromNPM: boolean;
56
- volumeMultiplier: number;
57
- isVsidOriginal: boolean;
58
- };
59
- /**
60
- * Если нет ранее сохранённого значения громкости будет использовано это
61
- */
62
- volumeDefault: number;
63
- volumeMinRestore: number;
64
- loaderDelay: Milliseconds;
65
- allowChangingFullscreenTarget: boolean;
66
- minSubtitlesFontSize: number;
67
- autoSubtitlesTimeout: Milliseconds;
68
- trafficSavingLimit: ExactVideoQuality;
69
- highQualityLimit: ExactVideoQuality;
70
- episodeMinWidthPc: number;
71
- controls: {
72
- showOnStartupAtAutoplay: boolean;
73
- hideTimeout: Milliseconds;
74
- hideTimeoutMobile: Milliseconds;
75
- hideTimeoutInitial: Milliseconds;
76
- hideTimeoutFullscreen: Milliseconds;
77
- hideTimeoutCursor: Milliseconds;
78
- hideTimeoutTooltips: Milliseconds;
79
- collapseMobileUnmute: Milliseconds;
80
- hide360IconTimeout: Milliseconds;
81
- volumeBarTimeout: Milliseconds;
82
- hideHotKeyHelpers: Milliseconds;
83
- playbackRateMin: number;
84
- playbackRateMax: number;
85
- playbackRateStep: number;
86
- seekStepKeyboard: Milliseconds;
87
- seekStepMobile: Milliseconds;
88
- seekStepFrame: Milliseconds;
89
- volumeStepKeyboard: number;
90
- volumeStepWheel: number;
91
- };
92
- hideThumbTimerAfterTouch: boolean;
93
- preventPauseOnVideoClick: boolean;
94
- features: {
95
- autoplay: boolean;
96
- statistics: boolean;
97
- thinStatistics: boolean;
98
- preload: boolean;
99
- subtitles: boolean;
100
- timelinePreview: boolean;
101
- episodes: boolean;
102
- fullscreen: boolean;
103
- mediaSession: boolean;
104
- /**
105
- * @deprecated Использовать slotsApi.
106
- */
107
- annotations: boolean;
108
- /**
109
- * @deprecated Использовать slotsApi.
110
- */
111
- annotationsInside: boolean;
112
- slots: boolean;
113
- download: boolean;
114
- pip: boolean;
115
- dpip: boolean | IDpipConfig;
116
- liveRewind: boolean;
117
- playbackRate: boolean;
118
- trafficSaving: boolean;
119
- episodesClustering: boolean;
120
- copyVideoLink: boolean;
121
- videoRotate: boolean;
122
- tracer: boolean;
123
- apptracer: IAppTracerOptions;
124
- interactiveGraph: boolean;
125
- interactiveResponsiveUi?: boolean;
126
- seekToInteractive: boolean;
127
- interactiveLastFrame: boolean;
128
- interactiveTextPermanent: boolean;
129
- interactiveHideTime: boolean;
130
- interactivePlayPrevChapter: boolean;
131
- interactiveTimeIndicator: boolean;
132
- interactiveTimeOpenUri: boolean;
133
- interactiveAreaControlShadow: boolean;
134
- interactiveControlsExpectTimeBlinkAnimation: boolean;
135
- interactiveControlsTapPlace: boolean;
136
- interactiveControlsFillAnimation: boolean;
137
- interactiveControlsHideAnimation: boolean;
138
- interactiveHistoryEndChapterFix: boolean;
139
- thumbTimer: boolean;
140
- hotKeyMapModal: boolean;
141
- hotKeyHelpers: boolean;
142
- saveDebugInfoToFile: boolean;
143
- saveTraceInfoToFile: boolean;
144
- additionalButtons: boolean;
145
- additionalButtonsDesktopControlPanelRight: boolean;
146
- additionalSettingsMenuItems: boolean;
147
- additionalContextMenuItems: boolean;
148
- contextMenuButton: boolean;
149
- audioLanguages: boolean;
150
- saveRate: boolean;
151
- fullscreenInternalTargetPlayerContainer: boolean;
152
- endScreen: boolean;
153
- autoplayNext: boolean;
154
- nextPrevButtons: boolean;
155
- previewNoEmptySpace: boolean;
156
- exposeInternalsToGlobal: boolean;
157
- qualityDetailsSubMenuEnabled: boolean;
158
- forceAutoQualityWhenSevereStallHappens: boolean;
159
- showSlowVideoNotification: boolean;
160
- maxCountShowSlowVideoNotification: number;
161
- timeoutShowSlowVideoNotification: number;
162
- forcePlayerDisplayBlock: boolean;
163
- /**
164
- * Отображать ли анимацию смены статуса проигрывания.
165
- */
166
- playbackStatusShow: boolean;
167
- /**
168
- * Отображать ли анимацию при переключении видео на следующее или предыдущее.
169
- */
170
- playbackStatusNextVideoShow: boolean;
171
- /**
172
- * Включает ранее выбранный язык субтитров при запуске видео
173
- */
174
- initSubtitles: boolean;
175
- /**
176
- * При запуске предыдущего/следующего видео из MediaSession
177
- * вместо переключения на видео из конфига будут вызываться соответствубщие колбэки
178
- */
179
- useCallbackForMediaSessionNextPrevClick: boolean;
180
- /**
181
- * Фикс производительности отрисовки.
182
- */
183
- usePerformanceFix: boolean;
184
- /**
185
- * Включает восстановление выбранных настроек видео,
186
- * например, звуковой дорожки и субтитров
187
- */
188
- userVideoPrefs: boolean;
189
- /**
190
- * сохраняет выбранные состояния плеера в localStorage только от user actions
191
- */
192
- savePreferredStatesOnUserActionOnly: boolean;
193
- /**
194
- * Если включен то за зацикливание одного видео будет отвечать флаг loop
195
- */
196
- useLoopSetting: boolean;
197
- doubleForwardAvailable: boolean;
198
- /**
199
- * Включает возможность точной перемотки.
200
- */
201
- useRichSeek: boolean;
202
- /**
203
- * Выключает показ thumb перед запуском видео, если включен autoplay
204
- */
205
- disableThumbUnstartedOnAutoplay: boolean;
206
- };
207
- /**
208
- * Отключает вызов колбэка uiInfo.onPlayerSizeChanged при ресайзе обычного pip
209
- */
210
- disablePiPResizeHandling: boolean;
211
- interactive: {
212
- historyMaxLength: number;
213
- noInteractionEventTimeout: number;
214
- };
215
- view: {
216
- timelineSliderColor: string | null;
217
- timelineSliderHandleColor: string | null;
218
- timelineSliderFilledColor: string | null;
219
- timelineSliderLoadedColor: string | null;
220
- volumeSliderColor: string | null;
221
- volumeSliderHandleColor: string | null;
222
- volumeSliderFilledColor: string | null;
223
- controlsTimeColor: string | null;
224
- timelineSliderHandleActiveLiveColor: string | null;
225
- timelineSliderFilledActiveLiveColor: string | null;
226
- buttonColor: string | null;
227
- buttonToggleOnColor: string | null;
228
- focusedColor: string | null;
229
- font: string | null;
230
- focusedOutlineWidth: string | null;
231
- focusedOutlineRadius: string | null;
232
- controlsDesktopPaddingHorizontal: string | null;
233
- controlsDesktopPaddingHorizontalMinimalView: string | null;
234
- timelinePaddingHorizontal: string | null;
235
- settingsBackgroundColor: string | null;
236
- controlsGradientHeight: string | null;
237
- controlsGradient: string | null;
238
- };
239
- /** уникальный идентификатор пользователя для сохранения настроек */
240
- userSalt: string;
241
- /**
242
- * Время, которое нужно зажимать горячую клавишу, чтобы включилось х2 ускорение.
243
- */
244
- doubleForwardActivationTime: number;
245
- playbackStatusAnimationDuration: number;
246
- /**
247
- * Продолжительность анимации для переключения видео.
248
- */
249
- playbackStatusNextVideoAnimationDuration: number;
250
- /**
251
- * Определяет подходящую длительность видео, после которой можно использовать точную перемотку.
252
- * Передаются секунды.
253
- */
254
- suitableDurationForUsingRichSeek: Seconds;
255
- titleShowBehaviour: TitleShowBehaviour;
256
- /**
257
- * Отключаем слоты по идентификаторам.
258
- */
259
- disabledSlotIds: string[];
260
- /**
261
- * Отключаем внешне переданные кнопки по идентификаторам.
262
- */
263
- disabledAdditionalButtonIds: string[];
24
+ isMobile: ForceOrRelay;
25
+ disableInvisibleComponentsTimeout: Milliseconds;
26
+ debugLog: boolean | {
27
+ tag?: string;
28
+ colors?: string[];
29
+ };
30
+ devNullLog: boolean;
31
+ isSmoothVideoRotate: boolean;
32
+ showSupport: boolean;
33
+ supportLink: string;
34
+ showLogo: ForceOrRelay;
35
+ logoLink: string;
36
+ logoType: LogoType;
37
+ defaultLanguage: InterfaceLanguage;
38
+ downloadVKLanguages: boolean;
39
+ updateBuiltinLanguages: boolean;
40
+ ads: {
41
+ enable: ForceOrRelay;
42
+ loadTimeout: Milliseconds;
43
+ initTimeout: Milliseconds;
44
+ runtimeTimeout: Milliseconds;
45
+ slot?: number;
46
+ /** @deprecated, Вместо этого используйте paramsOverride: { preview } */
47
+ preview?: number;
48
+ paramsOverride?: Record<string, unknown>;
49
+ isMobileGoToSiteButton: boolean;
50
+ useAdmanFromNPM: boolean;
51
+ volumeMultiplier: number;
52
+ isVsidOriginal: boolean;
53
+ };
54
+ /**
55
+ * Если нет ранее сохранённого значения громкости будет использовано это
56
+ */
57
+ volumeDefault: number;
58
+ volumeMinRestore: number;
59
+ loaderDelay: Milliseconds;
60
+ allowChangingFullscreenTarget: boolean;
61
+ minSubtitlesFontSize: number;
62
+ autoSubtitlesTimeout: Milliseconds;
63
+ trafficSavingLimit: ExactVideoQuality;
64
+ highQualityLimit: ExactVideoQuality;
65
+ episodeMinWidthPc: number;
66
+ controls: {
67
+ showOnStartupAtAutoplay: boolean;
68
+ hideTimeout: Milliseconds;
69
+ hideTimeoutMobile: Milliseconds;
70
+ hideTimeoutInitial: Milliseconds;
71
+ hideTimeoutFullscreen: Milliseconds;
72
+ hideTimeoutCursor: Milliseconds;
73
+ hideTimeoutTooltips: Milliseconds;
74
+ collapseMobileUnmute: Milliseconds;
75
+ hide360IconTimeout: Milliseconds;
76
+ volumeBarTimeout: Milliseconds;
77
+ hideHotKeyHelpers: Milliseconds;
78
+ playbackRateMin: number;
79
+ playbackRateMax: number;
80
+ playbackRateStep: number;
81
+ seekStepKeyboard: Milliseconds;
82
+ seekStepMobile: Milliseconds;
83
+ seekStepFrame: Milliseconds;
84
+ volumeStepKeyboard: number;
85
+ volumeStepWheel: number;
86
+ };
87
+ hideThumbTimerAfterTouch: boolean;
88
+ preventPauseOnVideoClick: boolean;
89
+ features: {
90
+ autoplay: boolean;
91
+ statistics: boolean;
92
+ thinStatistics: boolean;
93
+ preload: boolean;
94
+ subtitles: boolean;
95
+ timelinePreview: boolean;
96
+ episodes: boolean;
97
+ fullscreen: boolean;
98
+ mediaSession: boolean;
99
+ /**
100
+ * @deprecated Использовать slotsApi.
101
+ */
102
+ annotations: boolean;
103
+ /**
104
+ * @deprecated Использовать slotsApi.
105
+ */
106
+ annotationsInside: boolean;
107
+ slots: boolean;
108
+ download: boolean;
109
+ pip: boolean;
110
+ dpip: boolean;
111
+ liveRewind: boolean;
112
+ playbackRate: boolean;
113
+ trafficSaving: boolean;
114
+ episodesClustering: boolean;
115
+ copyVideoLink: boolean;
116
+ videoRotate: boolean;
117
+ tracer: boolean;
118
+ apptracer: IAppTracerOptions;
119
+ interactiveGraph: boolean;
120
+ interactiveResponsiveUi?: boolean;
121
+ seekToInteractive: boolean;
122
+ interactiveLastFrame: boolean;
123
+ interactiveTextPermanent: boolean;
124
+ interactiveHideTime: boolean;
125
+ interactivePlayPrevChapter: boolean;
126
+ interactiveTimeIndicator: boolean;
127
+ interactiveTimeOpenUri: boolean;
128
+ interactiveAreaControlShadow: boolean;
129
+ interactiveControlsExpectTimeBlinkAnimation: boolean;
130
+ interactiveControlsTapPlace: boolean;
131
+ interactiveControlsFillAnimation: boolean;
132
+ interactiveControlsHideAnimation: boolean;
133
+ interactiveHistoryEndChapterFix: boolean;
134
+ thumbTimer: boolean;
135
+ hotKeyMapModal: boolean;
136
+ hotKeyHelpers: boolean;
137
+ saveDebugInfoToFile: boolean;
138
+ saveTraceInfoToFile: boolean;
139
+ additionalButtons: boolean;
140
+ additionalButtonsDesktopControlPanelRight: boolean;
141
+ additionalSettingsMenuItems: boolean;
142
+ additionalContextMenuItems: boolean;
143
+ contextMenuButton: boolean;
144
+ audioLanguages: boolean;
145
+ saveRate: boolean;
146
+ fullscreenInternalTargetPlayerContainer: boolean;
147
+ endScreen: boolean;
148
+ autoplayNext: boolean;
149
+ nextPrevButtons: boolean;
150
+ previewNoEmptySpace: boolean;
151
+ exposeInternalsToGlobal: boolean;
152
+ qualityDetailsSubMenuEnabled: boolean;
153
+ forceAutoQualityWhenSevereStallHappens: boolean;
154
+ showSlowVideoNotification: boolean;
155
+ maxCountShowSlowVideoNotification: number;
156
+ timeoutShowSlowVideoNotification: number;
157
+ forcePlayerDisplayBlock: boolean;
158
+ /**
159
+ * Отображать ли анимацию смены статуса проигрывания.
160
+ */
161
+ playbackStatusShow: boolean;
162
+ /**
163
+ * Отображать ли анимацию при переключении видео на следующее или предыдущее.
164
+ */
165
+ playbackStatusNextVideoShow: boolean;
166
+ /**
167
+ * Включает ранее выбранный язык субтитров при запуске видео
168
+ */
169
+ initSubtitles: boolean;
170
+ /**
171
+ * При запуске предыдущего/следующего видео из MediaSession
172
+ * вместо переключения на видео из конфига будут вызываться соответствубщие колбэки
173
+ */
174
+ useCallbackForMediaSessionNextPrevClick: boolean;
175
+ /**
176
+ * Фикс производительности отрисовки.
177
+ */
178
+ usePerformanceFix: boolean;
179
+ /**
180
+ * Включает восстановление выбранных настроек видео,
181
+ * например, звуковой дорожки и субтитров
182
+ */
183
+ userVideoPrefs: boolean;
184
+ /**
185
+ * сохраняет выбранные состояния плеера в localStorage только от user actions
186
+ */
187
+ savePreferredStatesOnUserActionOnly: boolean;
188
+ /**
189
+ * Если включен то за зацикливание одного видео будет отвечать флаг loop
190
+ */
191
+ useLoopSetting: boolean;
192
+ doubleForwardAvailable: boolean;
193
+ /**
194
+ * Включает возможность точной перемотки.
195
+ */
196
+ useRichSeek: boolean;
197
+ /**
198
+ * Выключает показ thumb перед запуском видео, если включен autoplay
199
+ */
200
+ disableThumbUnstartedOnAutoplay: boolean;
201
+ };
202
+ /**
203
+ * Отключает вызов колбэка uiInfo.onPlayerSizeChanged при ресайзе обычного pip
204
+ */
205
+ disablePiPResizeHandling: boolean;
206
+ interactive: {
207
+ historyMaxLength: number;
208
+ noInteractionEventTimeout: number;
209
+ };
210
+ view: {
211
+ timelineSliderColor: string | null;
212
+ timelineSliderHandleColor: string | null;
213
+ timelineSliderFilledColor: string | null;
214
+ timelineSliderLoadedColor: string | null;
215
+ volumeSliderColor: string | null;
216
+ volumeSliderHandleColor: string | null;
217
+ volumeSliderFilledColor: string | null;
218
+ controlsTimeColor: string | null;
219
+ timelineSliderHandleActiveLiveColor: string | null;
220
+ timelineSliderFilledActiveLiveColor: string | null;
221
+ buttonColor: string | null;
222
+ buttonToggleOnColor: string | null;
223
+ focusedColor: string | null;
224
+ font: string | null;
225
+ focusedOutlineWidth: string | null;
226
+ focusedOutlineRadius: string | null;
227
+ controlsDesktopPaddingHorizontal: string | null;
228
+ timelinePaddingHorizontal: string | null;
229
+ settingsBackgroundColor: string | null;
230
+ controlsGradientHeight: string | null;
231
+ controlsGradient: string | null;
232
+ };
233
+ /** уникальный идентификатор пользователя для сохранения настроек */
234
+ userSalt: string;
235
+ /**
236
+ * Время, которое нужно зажимать горячую клавишу, чтобы включилось х2 ускорение.
237
+ */
238
+ doubleForwardActivationTime: number;
239
+ playbackStatusAnimationDuration: number;
240
+ /**
241
+ * Продолжительность анимации для переключения видео.
242
+ */
243
+ playbackStatusNextVideoAnimationDuration: number;
244
+ /**
245
+ * Определяет подходящую длительность видео, после которой можно использовать точную перемотку.
246
+ * Передаются секунды.
247
+ */
248
+ suitableDurationForUsingRichSeek: Seconds;
249
+ titleShowBehaviour: TitleShowBehaviour;
250
+ /**
251
+ * Отключаем слоты по идентификаторам.
252
+ */
253
+ disabledSlotIds: string[];
254
+ /**
255
+ * Отключаем внешне переданные кнопки по идентификаторам.
256
+ */
257
+ disabledAdditionalButtonIds: string[];
264
258
  }
265
259
  export declare const defaultConfig: IUIConfig;
266
260
  export type IOptionalUIConfig = RecursivePartial<IUIConfig>;
267
261
  export declare const fillDefault: (partial: IOptionalUIConfig) => IUIConfig;
268
262
  export interface ISDKConfig {
269
- ui: RecursivePartial<IUIConfig>;
270
- core: ICoreConfig;
271
- statistics: IStatisticsConfig;
272
- meta?: string[];
263
+ ui: RecursivePartial<IUIConfig>;
264
+ core: ICoreConfig;
265
+ statistics: IStatisticsConfig;
266
+ meta?: string[];
273
267
  }
274
268
  export declare const setConfig: (config: IUIConfig) => IUIConfig;
275
269
  export declare const getConfig: () => IUIConfig;
@@ -1,25 +1,25 @@
1
1
  export declare enum Controls {
2
- PLAY_BUTTON = "PLAY_BUTTON",
3
- REPLAY_BUTTON = "REPLAY_BUTTON",
4
- NEXT_BUTTON = "NEXT_BUTTON",
5
- PREV_BUTTON = "PREV_BUTTON",
6
- PICTURE_IN_PICTURE = "PICTURE_IN_PICTURE",
7
- FULLSCREEN_BUTTON = "FULLSCREEN_BUTTON",
8
- SETTINGS_BUTTON = "SETTINGS_BUTTON",
9
- LIVE_BUTTON = "LIVE_BUTTON",
10
- GRAPH_BUTTON = "GRAPH_BUTTON",
11
- PLAY_PREV_CHAPTER_BUTTON = "PLAY_PREV_CHAPTER_BUTTON",
12
- SEEK_TO_INTERACTIVE_BUTTON = "SEEK_TO_INTERACTIVE_BUTTON",
13
- TIMELINE = "TIMELINE",
14
- VOLUME_BAR = "VOLUME_BAR",
15
- MUTE_BUTTON = "MUTE_BUTTON",
16
- SUBTITLES_BUTTON = "SUBTITLES_BUTTON",
17
- CHROMECAST_BUTTON = "CHROMECAST_BUTTON",
18
- VK_BUTTON = "VK_BUTTON",
19
- EPISODE_BUTTON = "EPISODE_BUTTON",
20
- INCREMENT_PLAYBACK_RATE = "INCREMENT_PLAYBACK_RATE",
21
- DECREMENT_PLAYBACK_RATE = "DECREMENT_PLAYBACK_RATE",
22
- AUTOPLAY_NEXT_TOGGLE = "AUTOPLAY_NEXT_TOGGLE"
2
+ PLAY_BUTTON = "PLAY_BUTTON",
3
+ REPLAY_BUTTON = "REPLAY_BUTTON",
4
+ NEXT_BUTTON = "NEXT_BUTTON",
5
+ PREV_BUTTON = "PREV_BUTTON",
6
+ PICTURE_IN_PICTURE = "PICTURE_IN_PICTURE",
7
+ FULLSCREEN_BUTTON = "FULLSCREEN_BUTTON",
8
+ SETTINGS_BUTTON = "SETTINGS_BUTTON",
9
+ LIVE_BUTTON = "LIVE_BUTTON",
10
+ GRAPH_BUTTON = "GRAPH_BUTTON",
11
+ PLAY_PREV_CHAPTER_BUTTON = "PLAY_PREV_CHAPTER_BUTTON",
12
+ SEEK_TO_INTERACTIVE_BUTTON = "SEEK_TO_INTERACTIVE_BUTTON",
13
+ TIMELINE = "TIMELINE",
14
+ VOLUME_BAR = "VOLUME_BAR",
15
+ MUTE_BUTTON = "MUTE_BUTTON",
16
+ SUBTITLES_BUTTON = "SUBTITLES_BUTTON",
17
+ CHROMECAST_BUTTON = "CHROMECAST_BUTTON",
18
+ VK_BUTTON = "VK_BUTTON",
19
+ EPISODE_BUTTON = "EPISODE_BUTTON",
20
+ INCREMENT_PLAYBACK_RATE = "INCREMENT_PLAYBACK_RATE",
21
+ DECREMENT_PLAYBACK_RATE = "DECREMENT_PLAYBACK_RATE",
22
+ AUTOPLAY_NEXT_TOGGLE = "AUTOPLAY_NEXT_TOGGLE"
23
23
  }
24
24
  export declare const PLAYER_CONTROLS_HEIGHT = 40;
25
25
  export declare const PLAYER_CONTROLS_DESKTOP_MARGIN_LEFT_ELEMENTS = 4;
@@ -1,14 +1,14 @@
1
1
  export declare enum GridBreakPoints {
2
- XS = 320,
3
- S = 509,
4
- M = 599,
5
- L = 699
2
+ XS = 320,
3
+ S = 509,
4
+ M = 599,
5
+ L = 699
6
6
  }
7
7
  export declare enum GridTypes {
8
- XS = "xs",
9
- S = "s",
10
- M = "m",
11
- L = "l",
12
- XL = "xl"
8
+ XS = "xs",
9
+ S = "s",
10
+ M = "m",
11
+ L = "l",
12
+ XL = "xl"
13
13
  }
14
14
  export declare const gridWeights: Record<GridTypes, number>;
@@ -1,8 +1,8 @@
1
- export * from './storage-keys';
2
- export * from './throttle-timers';
3
- export * from './debounce-timers';
4
- export * from './lang';
5
- export * from './keyboard';
6
- export * from './controls';
7
- export * from './interactives';
8
- export * from './grid';
1
+ export * from "./storage-keys";
2
+ export * from "./throttle-timers";
3
+ export * from "./debounce-timers";
4
+ export * from "./lang";
5
+ export * from "./keyboard";
6
+ export * from "./controls";
7
+ export * from "./interactives";
8
+ export * from "./grid";
@@ -1,7 +1,7 @@
1
- import { Controls } from './controls';
2
- import type { Key } from '../translation/types';
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, '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'>;
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">;