@gravity-ui/page-constructor 5.14.2 → 5.14.3

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.
@@ -207,13 +207,15 @@ exports.ReactPlayerBlock = react_1.default.forwardRef((props, originRef) => {
207
207
  }
208
208
  }, [isPlaying, onPlay, onPause]);
209
209
  const handleClick = (0, react_1.useCallback)(() => {
210
- if (customControlsType === models_1.CustomControlsType.WithMuteButton) {
211
- changeMute(muted);
212
- }
213
- else {
214
- onPlayClick();
210
+ if (controls === models_1.MediaVideoControlsType.Custom) {
211
+ if (customControlsType === models_1.CustomControlsType.WithMuteButton) {
212
+ changeMute(muted);
213
+ }
214
+ else {
215
+ onPlayClick();
216
+ }
215
217
  }
216
- }, [changeMute, customControlsType, muted, onPlayClick]);
218
+ }, [changeMute, customControlsType, muted, onPlayClick, controls]);
217
219
  const onFocusIn = (0, react_1.useCallback)(() => setHovered(true), []);
218
220
  const onFocusOut = (0, react_1.useCallback)(() => setHovered(false), []);
219
221
  return (react_1.default.createElement("div", { className: b({
@@ -204,13 +204,15 @@ export const ReactPlayerBlock = React.forwardRef((props, originRef) => {
204
204
  }
205
205
  }, [isPlaying, onPlay, onPause]);
206
206
  const handleClick = useCallback(() => {
207
- if (customControlsType === CustomControlsType.WithMuteButton) {
208
- changeMute(muted);
209
- }
210
- else {
211
- onPlayClick();
207
+ if (controls === MediaVideoControlsType.Custom) {
208
+ if (customControlsType === CustomControlsType.WithMuteButton) {
209
+ changeMute(muted);
210
+ }
211
+ else {
212
+ onPlayClick();
213
+ }
212
214
  }
213
- }, [changeMute, customControlsType, muted, onPlayClick]);
215
+ }, [changeMute, customControlsType, muted, onPlayClick, controls]);
214
216
  const onFocusIn = useCallback(() => setHovered(true), []);
215
217
  const onFocusOut = useCallback(() => setHovered(false), []);
216
218
  return (React.createElement("div", { className: b({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "5.14.2",
3
+ "version": "5.14.3",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {