@micromag/screen-video 0.3.267 → 0.3.281
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 +7 -0
- package/lib/index.js +7 -0
- package/package.json +11 -11
package/es/index.js
CHANGED
|
@@ -129,6 +129,10 @@ 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
|
+
|
|
132
136
|
setControlsTheme({
|
|
133
137
|
seekBarOnly: withSeekBar && !withControls,
|
|
134
138
|
color: color,
|
|
@@ -479,6 +483,9 @@ var definition = {
|
|
|
479
483
|
textStyle: 'cta'
|
|
480
484
|
}
|
|
481
485
|
}
|
|
486
|
+
}, {
|
|
487
|
+
name: 'shareIncentive',
|
|
488
|
+
type: 'share-incentive'
|
|
482
489
|
} // {
|
|
483
490
|
// type: 'fields',
|
|
484
491
|
// isList: true,
|
package/lib/index.js
CHANGED
|
@@ -149,6 +149,10 @@ 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
|
+
|
|
152
156
|
setControlsTheme({
|
|
153
157
|
seekBarOnly: withSeekBar && !withControls,
|
|
154
158
|
color: color,
|
|
@@ -499,6 +503,9 @@ var definition = {
|
|
|
499
503
|
textStyle: 'cta'
|
|
500
504
|
}
|
|
501
505
|
}
|
|
506
|
+
}, {
|
|
507
|
+
name: 'shareIncentive',
|
|
508
|
+
type: 'share-incentive'
|
|
502
509
|
} // {
|
|
503
510
|
// type: 'fields',
|
|
504
511
|
// isList: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-video",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.281",
|
|
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.
|
|
54
|
-
"@micromag/element-background": "^0.3.
|
|
55
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
56
|
-
"@micromag/element-closed-captions": "^0.3.
|
|
57
|
-
"@micromag/element-container": "^0.3.
|
|
58
|
-
"@micromag/element-image": "^0.3.
|
|
59
|
-
"@micromag/element-media-controls": "^0.3.
|
|
60
|
-
"@micromag/element-video": "^0.3.
|
|
61
|
-
"@micromag/transforms": "^0.3.
|
|
53
|
+
"@micromag/core": "^0.3.281",
|
|
54
|
+
"@micromag/element-background": "^0.3.281",
|
|
55
|
+
"@micromag/element-call-to-action": "^0.3.281",
|
|
56
|
+
"@micromag/element-closed-captions": "^0.3.281",
|
|
57
|
+
"@micromag/element-container": "^0.3.281",
|
|
58
|
+
"@micromag/element-image": "^0.3.281",
|
|
59
|
+
"@micromag/element-media-controls": "^0.3.281",
|
|
60
|
+
"@micromag/element-video": "^0.3.281",
|
|
61
|
+
"@micromag/transforms": "^0.3.281",
|
|
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": "
|
|
71
|
+
"gitHead": "1ccd2caafbcf2b27cde1216f97ae45abf0ae8c63"
|
|
72
72
|
}
|