@vkontakte/videoplayer 1.1.85-dev.a9123e27.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.
- package/es2018.cjs +413 -55
- package/es2018.esm.js +413 -55
- package/es2024.cjs +413 -55
- package/es2024.esm.js +413 -55
- package/esnext.cjs +413 -55
- package/esnext.esm.js +413 -55
- package/evergreen.esm.js +413 -55
- package/package.json +5 -5
- package/types/VKVideoPlayer/HTMLElement.d.ts +1 -1
- package/types/VKVideoPlayer/index.svelte.d.ts +172 -172
- package/types/components/Ads/admanWrapper.d.ts +75 -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 +256 -256
- 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 +15 -15
- package/types/services/statistics.d.ts +13 -13
- package/types/store/index.d.ts +389 -389
- 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 +517 -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 +40 -40
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApi.d.ts +46 -46
- package/types/utils/webAPI/pictureInPictureApi/pictureInPictureApiFactory.d.ts +2 -2
- package/types/utils/webAPI/pictureInPictureApi/types.d.ts +4 -4
- package/types/utils/webAPI/pictureInPictureApi/utils.d.ts +2 -2
- package/types/utils/webAPI/slotsApi.d.ts +41 -41
- package/es2015.cjs +0 -61
- package/es2015.esm.js +0 -61
package/types/config.d.ts
CHANGED
|
@@ -1,269 +1,269 @@
|
|
|
1
|
-
import type { ExactVideoQuality, Seconds, IAppTracerOptions } from
|
|
2
|
-
import type { IOptionalTuningConfig as ICoreConfig } from
|
|
3
|
-
import { InterfaceLanguage } from
|
|
4
|
-
import type { RecursivePartial } from
|
|
5
|
-
import type { IOptionalConfig as IStatisticsConfig } from
|
|
6
|
-
import type { Milliseconds } from
|
|
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
7
|
type ForceOrRelay = boolean | undefined;
|
|
8
8
|
export declare enum LogoType {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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"
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export type TitleShowBehaviour =
|
|
16
|
+
* Определяет, когда показывать заголовок видео.
|
|
17
|
+
* fullscreen - только в фулскрине(дефолтное поведение)
|
|
18
|
+
* with-controls - показывается везде, когда контролы видны
|
|
19
|
+
* never - не показывать
|
|
20
|
+
* always - показыватьв всегда
|
|
21
|
+
*/
|
|
22
|
+
export type TitleShowBehaviour = "fullscreen" | "with-controls" | "never" | "always";
|
|
23
23
|
export interface IUIConfig {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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[];
|
|
258
258
|
}
|
|
259
259
|
export declare const defaultConfig: IUIConfig;
|
|
260
260
|
export type IOptionalUIConfig = RecursivePartial<IUIConfig>;
|
|
261
261
|
export declare const fillDefault: (partial: IOptionalUIConfig) => IUIConfig;
|
|
262
262
|
export interface ISDKConfig {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
263
|
+
ui: RecursivePartial<IUIConfig>;
|
|
264
|
+
core: ICoreConfig;
|
|
265
|
+
statistics: IStatisticsConfig;
|
|
266
|
+
meta?: string[];
|
|
267
267
|
}
|
|
268
268
|
export declare const setConfig: (config: IUIConfig) => IUIConfig;
|
|
269
269
|
export declare const getConfig: () => IUIConfig;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export declare enum Controls {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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;
|
package/types/constans/grid.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export declare enum GridBreakPoints {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
XS = 320,
|
|
3
|
+
S = 509,
|
|
4
|
+
M = 599,
|
|
5
|
+
L = 699
|
|
6
6
|
}
|
|
7
7
|
export declare enum GridTypes {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
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
|
|
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">;
|