@gravity-ui/page-constructor 4.40.2 → 4.40.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.
@@ -10,7 +10,7 @@ const CustomBarControls_1 = tslib_1.__importDefault(require("../ReactPlayer/Cust
10
10
  const b = (0, utils_1.block)('default-video');
11
11
  exports.DefaultVideo = react_1.default.forwardRef((props, ref) => {
12
12
  const { video, qa, customBarControlsClassName } = props;
13
- const { controls, customControlsOptions, muted: initiallyMuted } = video;
13
+ const { controls, customControlsOptions, muted: initiallyMuted = true } = video;
14
14
  const { muteButtonShown, positioning, type: customControlsType, } = customControlsOptions || {};
15
15
  const [isPaused, setIsPaused] = (0, react_1.useState)(false);
16
16
  const [isMuted, setIsMuted] = (0, react_1.useState)(initiallyMuted);
@@ -7,7 +7,7 @@ import './DefaultVideo.css';
7
7
  const b = block('default-video');
8
8
  export const DefaultVideo = React.forwardRef((props, ref) => {
9
9
  const { video, qa, customBarControlsClassName } = props;
10
- const { controls, customControlsOptions, muted: initiallyMuted } = video;
10
+ const { controls, customControlsOptions, muted: initiallyMuted = true } = video;
11
11
  const { muteButtonShown, positioning, type: customControlsType, } = customControlsOptions || {};
12
12
  const [isPaused, setIsPaused] = useState(false);
13
13
  const [isMuted, setIsMuted] = useState(initiallyMuted);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/page-constructor",
3
- "version": "4.40.2",
3
+ "version": "4.40.3",
4
4
  "description": "Gravity UI Page Constructor",
5
5
  "license": "MIT",
6
6
  "repository": {