@micromag/screen-video 0.3.651 → 0.3.656

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.
Files changed (2) hide show
  1. package/es/index.js +15 -15
  2. package/package.json +11 -11
package/es/index.js CHANGED
@@ -86,25 +86,25 @@ var VideoScreen = function VideoScreen(_ref) {
86
86
  var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current;
87
87
  var _ref2 = video || {},
88
88
  _ref2$autoPlay = _ref2.autoPlay,
89
- autoPlay = _ref2$autoPlay === undefined ? true : _ref2$autoPlay,
89
+ autoPlay = _ref2$autoPlay === void 0 ? true : _ref2$autoPlay,
90
90
  _ref2$loop = _ref2.loop,
91
- loop = _ref2$loop === undefined ? false : _ref2$loop,
91
+ loop = _ref2$loop === void 0 ? false : _ref2$loop,
92
92
  _ref2$media = _ref2.media,
93
- videoMedia = _ref2$media === undefined ? null : _ref2$media,
93
+ videoMedia = _ref2$media === void 0 ? null : _ref2$media,
94
94
  _ref2$thumbnail = _ref2.thumbnail,
95
- thumbnail = _ref2$thumbnail === undefined ? null : _ref2$thumbnail,
95
+ thumbnail = _ref2$thumbnail === void 0 ? null : _ref2$thumbnail,
96
96
  _ref2$captions = _ref2.captions,
97
- captions = _ref2$captions === undefined ? null : _ref2$captions,
97
+ captions = _ref2$captions === void 0 ? null : _ref2$captions,
98
98
  _ref2$closedCaptions = _ref2.closedCaptions,
99
- closedCaptions = _ref2$closedCaptions === undefined ? null : _ref2$closedCaptions,
99
+ closedCaptions = _ref2$closedCaptions === void 0 ? null : _ref2$closedCaptions,
100
100
  _ref2$withSeekBar = _ref2.withSeekBar,
101
- withSeekBar = _ref2$withSeekBar === undefined ? false : _ref2$withSeekBar,
101
+ withSeekBar = _ref2$withSeekBar === void 0 ? false : _ref2$withSeekBar,
102
102
  _ref2$withControls = _ref2.withControls,
103
- withControls = _ref2$withControls === undefined ? false : _ref2$withControls,
103
+ withControls = _ref2$withControls === void 0 ? false : _ref2$withControls,
104
104
  _ref2$color = _ref2.color,
105
- color = _ref2$color === undefined ? null : _ref2$color,
105
+ color = _ref2$color === void 0 ? null : _ref2$color,
106
106
  _ref2$progressColor = _ref2.progressColor,
107
- progressColor = _ref2$progressColor === undefined ? null : _ref2$progressColor;
107
+ progressColor = _ref2$progressColor === void 0 ? null : _ref2$progressColor;
108
108
  var _usePlaybackContext = usePlaybackContext(),
109
109
  playing = _usePlaybackContext.playing,
110
110
  muted = _usePlaybackContext.muted,
@@ -183,7 +183,7 @@ var VideoScreen = function VideoScreen(_ref) {
183
183
  if (time !== null && typeof time.currentTarget !== 'undefined') {
184
184
  var _ref3 = time.currentTarget || {},
185
185
  _ref3$currentTime = _ref3.currentTime,
186
- targetTime = _ref3$currentTime === undefined ? 0 : _ref3$currentTime;
186
+ targetTime = _ref3$currentTime === void 0 ? 0 : _ref3$currentTime;
187
187
  setCurrentTime(targetTime);
188
188
  } else {
189
189
  setCurrentTime(0);
@@ -242,16 +242,16 @@ var VideoScreen = function VideoScreen(_ref) {
242
242
  }, [hasVideo, video, isPreview, isStatic, isCapture, autoPlay, current]);
243
243
  var _ref6 = videoMedia || {},
244
244
  _ref6$metadata = _ref6.metadata,
245
- videoMetadata = _ref6$metadata === undefined ? null : _ref6$metadata,
245
+ videoMetadata = _ref6$metadata === void 0 ? null : _ref6$metadata,
246
246
  _ref6$url = _ref6.url,
247
- videoUrl = _ref6$url === undefined ? null : _ref6$url;
247
+ videoUrl = _ref6$url === void 0 ? null : _ref6$url;
248
248
  var finalThumbnail = useMediaThumbnail(videoMedia, thumbnail);
249
249
  var hasVideoUrl = videoUrl !== null;
250
250
  var _ref7 = videoMetadata || {},
251
251
  _ref7$width = _ref7.width,
252
- videoWidth = _ref7$width === undefined ? 0 : _ref7$width,
252
+ videoWidth = _ref7$width === void 0 ? 0 : _ref7$width,
253
253
  _ref7$height = _ref7.height,
254
- videoHeight = _ref7$height === undefined ? 0 : _ref7$height;
254
+ videoHeight = _ref7$height === void 0 ? 0 : _ref7$height;
255
255
  var _getSizeWithinBounds = getSizeWithinBounds(videoWidth, videoHeight, width, height, {
256
256
  cover: fullscreen
257
257
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video",
3
- "version": "0.3.651",
3
+ "version": "0.3.656",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -61,15 +61,15 @@
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.13.10",
63
63
  "@folklore/size": "^0.1.20",
64
- "@micromag/core": "^0.3.651",
65
- "@micromag/element-background": "^0.3.651",
66
- "@micromag/element-closed-captions": "^0.3.651",
67
- "@micromag/element-container": "^0.3.651",
68
- "@micromag/element-footer": "^0.3.651",
69
- "@micromag/element-header": "^0.3.651",
70
- "@micromag/element-image": "^0.3.651",
71
- "@micromag/element-video": "^0.3.651",
72
- "@micromag/transforms": "^0.3.651",
64
+ "@micromag/core": "^0.3.656",
65
+ "@micromag/element-background": "^0.3.656",
66
+ "@micromag/element-closed-captions": "^0.3.656",
67
+ "@micromag/element-container": "^0.3.656",
68
+ "@micromag/element-footer": "^0.3.656",
69
+ "@micromag/element-header": "^0.3.656",
70
+ "@micromag/element-image": "^0.3.656",
71
+ "@micromag/element-video": "^0.3.656",
72
+ "@micromag/transforms": "^0.3.656",
73
73
  "classnames": "^2.2.6",
74
74
  "lodash": "^4.17.21",
75
75
  "prop-types": "^15.7.2",
@@ -80,5 +80,5 @@
80
80
  "access": "public",
81
81
  "registry": "https://registry.npmjs.org/"
82
82
  },
83
- "gitHead": "9639dccc046f7adfe9673f53ede77360b8b75d51"
83
+ "gitHead": "fd956cc4a183b621df124f3f3afbae4af974db27"
84
84
  }