@micromag/screen-video 0.3.263 → 0.3.266

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
@@ -87,7 +87,7 @@ var VideoScreen = function VideoScreen(_ref) {
87
87
  openWebView = _useViewerWebView.open;
88
88
 
89
89
  var mediaShouldLoad = current || active;
90
- var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current; // get resized video style props
90
+ var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current;
91
91
 
92
92
  var _ref2 = video || {},
93
93
  _ref2$autoPlay = _ref2.autoPlay,
@@ -129,10 +129,6 @@ var VideoScreen = function VideoScreen(_ref) {
129
129
  var videoPlaying = current && (isView || isEdit) && playing;
130
130
  var shouldDisplayPoster = isPreview || isCapture;
131
131
  useEffect(function () {
132
- if (!current) {
133
- return function () {};
134
- }
135
-
136
132
  setControlsTheme({
137
133
  seekBarOnly: withSeekBar && !withControls,
138
134
  color: color,
package/lib/index.js CHANGED
@@ -107,7 +107,7 @@ var VideoScreen = function VideoScreen(_ref) {
107
107
  openWebView = _useViewerWebView.open;
108
108
 
109
109
  var mediaShouldLoad = current || active;
110
- var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current; // get resized video style props
110
+ var shouldGotoNextScreenOnEnd = gotoNextScreenOnEnd && isView && current;
111
111
 
112
112
  var _ref2 = video || {},
113
113
  _ref2$autoPlay = _ref2.autoPlay,
@@ -149,10 +149,6 @@ var VideoScreen = function VideoScreen(_ref) {
149
149
  var videoPlaying = current && (isView || isEdit) && playing;
150
150
  var shouldDisplayPoster = isPreview || isCapture;
151
151
  React.useEffect(function () {
152
- if (!current) {
153
- return function () {};
154
- }
155
-
156
152
  setControlsTheme({
157
153
  seekBarOnly: withSeekBar && !withControls,
158
154
  color: color,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-video",
3
- "version": "0.3.263",
3
+ "version": "0.3.266",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -50,15 +50,15 @@
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@folklore/size": "^0.1.20",
53
- "@micromag/core": "^0.3.263",
54
- "@micromag/element-background": "^0.3.263",
55
- "@micromag/element-call-to-action": "^0.3.263",
56
- "@micromag/element-closed-captions": "^0.3.263",
57
- "@micromag/element-container": "^0.3.263",
58
- "@micromag/element-image": "^0.3.263",
59
- "@micromag/element-media-controls": "^0.3.263",
60
- "@micromag/element-video": "^0.3.263",
61
- "@micromag/transforms": "^0.3.263",
53
+ "@micromag/core": "^0.3.265",
54
+ "@micromag/element-background": "^0.3.266",
55
+ "@micromag/element-call-to-action": "^0.3.265",
56
+ "@micromag/element-closed-captions": "^0.3.265",
57
+ "@micromag/element-container": "^0.3.265",
58
+ "@micromag/element-image": "^0.3.265",
59
+ "@micromag/element-media-controls": "^0.3.265",
60
+ "@micromag/element-video": "^0.3.265",
61
+ "@micromag/transforms": "^0.3.265",
62
62
  "classnames": "^2.2.6",
63
63
  "lodash": "^4.17.21",
64
64
  "prop-types": "^15.7.2",
@@ -68,5 +68,5 @@
68
68
  "publishConfig": {
69
69
  "access": "public"
70
70
  },
71
- "gitHead": "711b660a3fa66a6490bdb75148e340aec0064f45"
71
+ "gitHead": "562d67e6a6146225391a02d951a98b1b5deeb06e"
72
72
  }