@gravity-ui/page-constructor 5.28.5 → 5.28.6

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.
@@ -70,6 +70,9 @@ unpredictable css rules order in build */
70
70
  .pc-ReactPlayer_contain video {
71
71
  object-fit: contain;
72
72
  }
73
+ .pc-ReactPlayer_auto-ratio video {
74
+ object-fit: cover;
75
+ }
73
76
  @media only screen and (max-width: 577px) {
74
77
  .pc-ReactPlayer__button_text {
75
78
  font-size: 20px;
@@ -235,6 +235,7 @@ exports.ReactPlayerBlock = react_1.default.forwardRef((props, originRef) => {
235
235
  wrapper: !currentHeight,
236
236
  controls,
237
237
  contain,
238
+ 'auto-ratio': autoRatio,
238
239
  }, className), ref: ref, onClick: handleClick, onMouseEnter: onFocusIn, onMouseLeave: onFocusOut, onFocus: onFocusIn, onBlur: onFocusOut }, isMounted ? (react_1.default.createElement(react_1.Fragment, null,
239
240
  react_1.default.createElement(react_player_1.default, { className: b('player'), url: videoSrc, muted: muted, controls: controls === models_1.MediaVideoControlsType.Default, height: currentHeight || '100%', width: width || '100%', light: previewImgUrl, playing: isPlaying, playIcon: playIcon, progressInterval: FPS, onClickPreview: handleClickPreview, onStart: onStart, onReady: onReady, onPlay: onPlay, onPause: autoPlay && customControlsType !== models_1.CustomControlsType.WithMuteButton
240
241
  ? undefined
@@ -70,6 +70,9 @@ unpredictable css rules order in build */
70
70
  .pc-ReactPlayer_contain video {
71
71
  object-fit: contain;
72
72
  }
73
+ .pc-ReactPlayer_auto-ratio video {
74
+ object-fit: cover;
75
+ }
73
76
  @media only screen and (max-width: 577px) {
74
77
  .pc-ReactPlayer__button_text {
75
78
  font-size: 20px;
@@ -232,6 +232,7 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
232
232
  wrapper: !currentHeight,
233
233
  controls,
234
234
  contain,
235
+ 'auto-ratio': autoRatio,
235
236
  }, className), ref: ref, onClick: handleClick, onMouseEnter: onFocusIn, onMouseLeave: onFocusOut, onFocus: onFocusIn, onBlur: onFocusOut }, isMounted ? (React.createElement(Fragment, null,
236
237
  React.createElement(ReactPlayer, { className: b('player'), url: videoSrc, muted: muted, controls: controls === MediaVideoControlsType.Default, height: currentHeight || '100%', width: width || '100%', light: previewImgUrl, playing: isPlaying, playIcon: playIcon, progressInterval: FPS, onClickPreview: handleClickPreview, onStart: onStart, onReady: onReady, onPlay: onPlay, onPause: autoPlay && customControlsType !== CustomControlsType.WithMuteButton
237
238
  ? undefined
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.28.5",
3
+ "version": "5.28.6",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {