@gravity-ui/page-constructor 4.6.0 → 4.7.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/build/cjs/components/Media/Video/Video.js +2 -2
- package/build/cjs/components/ReactPlayer/CustomBarControls.css +46 -14
- package/build/cjs/components/ReactPlayer/CustomBarControls.d.ts +4 -1
- package/build/cjs/components/ReactPlayer/CustomBarControls.js +33 -9
- package/build/cjs/components/ReactPlayer/ReactPlayer.css +12 -0
- package/build/cjs/components/ReactPlayer/ReactPlayer.js +48 -26
- package/build/cjs/components/ReactPlayer/i18n/en.json +4 -1
- package/build/cjs/components/ReactPlayer/i18n/ru.json +4 -1
- package/build/cjs/components/VideoBlock/VideoBlock.js +6 -5
- package/build/cjs/icons/Mute.d.ts +2 -0
- package/build/cjs/icons/Mute.js +12 -0
- package/build/cjs/icons/MuteSmall.d.ts +2 -0
- package/build/cjs/icons/MuteSmall.js +15 -0
- package/build/cjs/icons/Unmute.d.ts +2 -0
- package/build/cjs/icons/Unmute.js +12 -0
- package/build/cjs/icons/UnmuteSmall.d.ts +2 -0
- package/build/cjs/icons/UnmuteSmall.js +17 -0
- package/build/cjs/icons/VideoControlPause.d.ts +2 -0
- package/build/cjs/icons/VideoControlPause.js +16 -0
- package/build/cjs/icons/VideoControlPlay.d.ts +2 -0
- package/build/cjs/icons/VideoControlPlay.js +12 -0
- package/build/cjs/models/constructor-items/common.d.ts +9 -30
- package/build/cjs/models/constructor-items/common.js +6 -1
- package/build/esm/components/Media/Video/Video.js +2 -2
- package/build/esm/components/ReactPlayer/CustomBarControls.css +46 -14
- package/build/esm/components/ReactPlayer/CustomBarControls.d.ts +4 -1
- package/build/esm/components/ReactPlayer/CustomBarControls.js +34 -10
- package/build/esm/components/ReactPlayer/ReactPlayer.css +12 -0
- package/build/esm/components/ReactPlayer/ReactPlayer.js +49 -27
- package/build/esm/components/ReactPlayer/i18n/en.json +4 -1
- package/build/esm/components/ReactPlayer/i18n/ru.json +4 -1
- package/build/esm/components/VideoBlock/VideoBlock.js +6 -5
- package/build/esm/icons/Mute.d.ts +2 -0
- package/build/esm/icons/Mute.js +7 -0
- package/build/esm/icons/MuteSmall.d.ts +2 -0
- package/build/esm/icons/MuteSmall.js +10 -0
- package/build/esm/icons/Unmute.d.ts +2 -0
- package/build/esm/icons/Unmute.js +7 -0
- package/build/esm/icons/UnmuteSmall.d.ts +2 -0
- package/build/esm/icons/UnmuteSmall.js +12 -0
- package/build/esm/icons/VideoControlPause.d.ts +2 -0
- package/build/esm/icons/VideoControlPause.js +11 -0
- package/build/esm/icons/VideoControlPlay.d.ts +2 -0
- package/build/esm/icons/VideoControlPlay.js +7 -0
- package/build/esm/models/constructor-items/common.d.ts +9 -30
- package/build/esm/models/constructor-items/common.js +5 -0
- package/package.json +1 -1
- package/server/models/constructor-items/common.d.ts +9 -30
- package/server/models/constructor-items/common.js +6 -1
- package/widget/index.js +1 -1
|
@@ -25,6 +25,10 @@ export declare enum PlayButtonThemes {
|
|
|
25
25
|
Blue = "blue",
|
|
26
26
|
Grey = "grey"
|
|
27
27
|
}
|
|
28
|
+
export declare enum CustomControlsType {
|
|
29
|
+
WithMuteButton = "with-mute-button",
|
|
30
|
+
WithPlayPauseButton = "with-play-pause-button"
|
|
31
|
+
}
|
|
28
32
|
export declare enum MediaVideoType {
|
|
29
33
|
Default = "default",
|
|
30
34
|
Player = "player"
|
|
@@ -110,7 +114,9 @@ export interface MediaVideoProps extends AnalyticsEventsBase {
|
|
|
110
114
|
elapsedTime?: number;
|
|
111
115
|
playButton?: PlayButtonProps;
|
|
112
116
|
controls?: MediaVideoControlsType;
|
|
117
|
+
customControlsOptions?: CustomControlsOptions;
|
|
113
118
|
metrika?: MetrikaVideo;
|
|
119
|
+
ariaLabel?: string;
|
|
114
120
|
}
|
|
115
121
|
export interface LinkProps extends AnalyticsEventsBase, Stylable, Tabbable {
|
|
116
122
|
url: string;
|
|
@@ -148,23 +154,14 @@ export interface ButtonImageProps {
|
|
|
148
154
|
position?: ButtonImagePosition;
|
|
149
155
|
alt?: string;
|
|
150
156
|
}
|
|
157
|
+
export interface CustomControlsOptions {
|
|
158
|
+
type?: CustomControlsType;
|
|
159
|
+
}
|
|
151
160
|
export interface PlayButtonProps extends ClassNameProps {
|
|
152
161
|
type?: PlayButtonType;
|
|
153
162
|
theme?: PlayButtonThemes;
|
|
154
163
|
text?: string;
|
|
155
164
|
}
|
|
156
|
-
export interface MediaVideoProps {
|
|
157
|
-
src: string[];
|
|
158
|
-
type?: MediaVideoType;
|
|
159
|
-
loop?: LoopProps | boolean;
|
|
160
|
-
muted?: boolean;
|
|
161
|
-
autoplay?: boolean;
|
|
162
|
-
elapsedTime?: number;
|
|
163
|
-
playButton?: PlayButtonProps;
|
|
164
|
-
controls?: MediaVideoControlsType;
|
|
165
|
-
metrika?: MetrikaVideo;
|
|
166
|
-
ariaLabel?: string;
|
|
167
|
-
}
|
|
168
165
|
export type ThemedMediaVideoProps = ThemeSupporting<MediaVideoProps>;
|
|
169
166
|
export interface MediaComponentVideoProps extends AnalyticsEventsBase {
|
|
170
167
|
video: MediaVideoProps;
|
|
@@ -315,24 +312,6 @@ export interface PriceDetailedProps extends CardBaseProps {
|
|
|
315
312
|
foldable?: PriceFoldableDetailsProps;
|
|
316
313
|
labelsDefaultText?: Record<PriceLabelColor, string>;
|
|
317
314
|
}
|
|
318
|
-
export interface PriceDetailedProps extends CardBaseProps {
|
|
319
|
-
items: PriceItemProps[];
|
|
320
|
-
description?: {
|
|
321
|
-
titleSize?: TextSize;
|
|
322
|
-
descriptionSize?: TextSize;
|
|
323
|
-
titleColor?: PriceDescriptionColor;
|
|
324
|
-
};
|
|
325
|
-
details?: {
|
|
326
|
-
titleSize?: TextSize;
|
|
327
|
-
descriptionSize?: TextSize;
|
|
328
|
-
};
|
|
329
|
-
priceType?: PriceDetailsType;
|
|
330
|
-
numberGroupItems?: 3 | 4 | 5;
|
|
331
|
-
isCombined?: boolean;
|
|
332
|
-
useMixedView?: boolean;
|
|
333
|
-
foldable?: PriceFoldableDetailsProps;
|
|
334
|
-
labelsDefaultText?: Record<PriceLabelColor, string>;
|
|
335
|
-
}
|
|
336
315
|
export interface AuthorProps extends QAProps {
|
|
337
316
|
author: AuthorItem;
|
|
338
317
|
className?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MediaVideoControlsType = exports.MediaVideoType = exports.PlayButtonThemes = exports.PlayButtonType = exports.PriceLabelColor = exports.PriceDetailsType = exports.AuthorType = void 0;
|
|
3
|
+
exports.MediaVideoControlsType = exports.MediaVideoType = exports.CustomControlsType = exports.PlayButtonThemes = exports.PlayButtonType = exports.PriceLabelColor = exports.PriceDetailsType = exports.AuthorType = void 0;
|
|
4
4
|
// enums
|
|
5
5
|
var AuthorType;
|
|
6
6
|
(function (AuthorType) {
|
|
@@ -30,6 +30,11 @@ var PlayButtonThemes;
|
|
|
30
30
|
PlayButtonThemes["Blue"] = "blue";
|
|
31
31
|
PlayButtonThemes["Grey"] = "grey";
|
|
32
32
|
})(PlayButtonThemes = exports.PlayButtonThemes || (exports.PlayButtonThemes = {}));
|
|
33
|
+
var CustomControlsType;
|
|
34
|
+
(function (CustomControlsType) {
|
|
35
|
+
CustomControlsType["WithMuteButton"] = "with-mute-button";
|
|
36
|
+
CustomControlsType["WithPlayPauseButton"] = "with-play-pause-button";
|
|
37
|
+
})(CustomControlsType = exports.CustomControlsType || (exports.CustomControlsType = {}));
|
|
33
38
|
var MediaVideoType;
|
|
34
39
|
(function (MediaVideoType) {
|
|
35
40
|
MediaVideoType["Default"] = "default";
|