@micromag/element-video 0.3.488 → 0.3.497

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/es/index.js CHANGED
@@ -59,7 +59,7 @@ var defaultProps = {
59
59
  loop: false,
60
60
  playsInline: true,
61
61
  preload: 'auto',
62
- disablePictureInPicture: false,
62
+ disablePictureInPicture: true,
63
63
  shouldLoad: true,
64
64
  withoutCors: false,
65
65
  className: null,
@@ -278,6 +278,7 @@ var Video = function Video(_ref) {
278
278
  }, isImageWithoutSourceFile && shouldLoad ? /*#__PURE__*/React.createElement("img", {
279
279
  src: mediaUrl,
280
280
  alt: description,
281
+ tabIndex: "-1",
281
282
  className: classNames([styles.media, _defineProperty({}, innerClassName, innerClassName !== null)])
282
283
  }) : null, !isImageWithoutSourceFile ? /*#__PURE__*/React.createElement("video", {
283
284
  key: mediaUrl,
@@ -309,7 +310,8 @@ var Video = function Video(_ref) {
309
310
  onTimeUpdate: onTimeUpdate,
310
311
  onSuspend: onSuspend,
311
312
  "data-has-audio": hasAudio,
312
- "data-is-suspended": isSuspended
313
+ "data-is-suspended": isSuspended,
314
+ "aria-hidden": true
313
315
  }, (sourceFiles || []).map(function (_ref10) {
314
316
  var sourceUrl = _ref10.url,
315
317
  sourceMime = _ref10.mime;
package/lib/index.js CHANGED
@@ -61,7 +61,7 @@ var defaultProps = {
61
61
  loop: false,
62
62
  playsInline: true,
63
63
  preload: 'auto',
64
- disablePictureInPicture: false,
64
+ disablePictureInPicture: true,
65
65
  shouldLoad: true,
66
66
  withoutCors: false,
67
67
  className: null,
@@ -280,6 +280,7 @@ var Video = function Video(_ref) {
280
280
  }, isImageWithoutSourceFile && shouldLoad ? /*#__PURE__*/React.createElement("img", {
281
281
  src: mediaUrl,
282
282
  alt: description,
283
+ tabIndex: "-1",
283
284
  className: classNames([styles.media, _defineProperty({}, innerClassName, innerClassName !== null)])
284
285
  }) : null, !isImageWithoutSourceFile ? /*#__PURE__*/React.createElement("video", {
285
286
  key: mediaUrl,
@@ -311,7 +312,8 @@ var Video = function Video(_ref) {
311
312
  onTimeUpdate: onTimeUpdate,
312
313
  onSuspend: onSuspend,
313
314
  "data-has-audio": hasAudio,
314
- "data-is-suspended": isSuspended
315
+ "data-is-suspended": isSuspended,
316
+ "aria-hidden": true
315
317
  }, (sourceFiles || []).map(function (_ref10) {
316
318
  var sourceUrl = _ref10.url,
317
319
  sourceMime = _ref10.mime;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/element-video",
3
- "version": "0.3.488",
3
+ "version": "0.3.497",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -63,8 +63,8 @@
63
63
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
64
64
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
65
65
  "@fortawesome/react-fontawesome": "^0.1.13",
66
- "@micromag/core": "^0.3.488",
67
- "@micromag/element-closed-captions": "^0.3.488",
66
+ "@micromag/core": "^0.3.497",
67
+ "@micromag/element-closed-captions": "^0.3.497",
68
68
  "classnames": "^2.2.6",
69
69
  "lodash": "^4.17.21",
70
70
  "prop-types": "^15.7.2",
@@ -75,5 +75,5 @@
75
75
  "access": "public",
76
76
  "registry": "https://registry.npmjs.org/"
77
77
  },
78
- "gitHead": "36ecbf590ebb8eabac17e47fc48ffb8bf8c8178c"
78
+ "gitHead": "94e795f19f551f20411fb12fada0906c5cdb0d4b"
79
79
  }