@micromag/screen-contribution 0.3.103 → 0.3.107

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
@@ -113,7 +113,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
113
113
  isCapture = _useScreenRenderConte.isCapture;
114
114
 
115
115
  var backgroundPlaying = current && (isView || isEdit);
116
- var backgroundShouldLoad = current || active || !isView;
116
+ var mediaShouldLoad = current || active;
117
117
  var transitionPlaying = current;
118
118
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
119
119
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
@@ -425,7 +425,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
425
425
  height: height,
426
426
  resolution: resolution,
427
427
  playing: backgroundPlaying,
428
- shouldLoad: backgroundShouldLoad
428
+ shouldLoad: mediaShouldLoad
429
429
  }) : null, /*#__PURE__*/React.createElement(Container, {
430
430
  width: width,
431
431
  height: height
package/lib/index.js CHANGED
@@ -134,7 +134,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
134
134
  isCapture = _useScreenRenderConte.isCapture;
135
135
 
136
136
  var backgroundPlaying = current && (isView || isEdit);
137
- var backgroundShouldLoad = current || active || !isView;
137
+ var mediaShouldLoad = current || active;
138
138
  var transitionPlaying = current;
139
139
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
140
140
  var scrollingDisabled = !isEdit && transitionDisabled || !current;
@@ -446,7 +446,7 @@ var ContributionScreen = function ContributionScreen(_ref) {
446
446
  height: height,
447
447
  resolution: resolution,
448
448
  playing: backgroundPlaying,
449
- shouldLoad: backgroundShouldLoad
449
+ shouldLoad: mediaShouldLoad
450
450
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
451
451
  width: width,
452
452
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-contribution",
3
- "version": "0.3.103",
3
+ "version": "0.3.107",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -40,29 +40,29 @@
40
40
  "prepare": "../../scripts/prepare-package.sh"
41
41
  },
42
42
  "devDependencies": {
43
- "react": "^16.8.0 || ^17.0.0",
44
- "react-dom": "^16.8.0 || ^17.0.0"
43
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
44
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "react": "^16.8.0 || ^17.0.0",
48
- "react-dom": "^16.8.0 || ^17.0.0"
47
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
48
+ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
49
49
  },
50
50
  "dependencies": {
51
51
  "@babel/runtime": "^7.13.10",
52
52
  "@fortawesome/fontawesome-svg-core": "^1.2.32",
53
53
  "@fortawesome/free-solid-svg-icons": "^5.15.1",
54
54
  "@fortawesome/react-fontawesome": "^0.1.13",
55
- "@micromag/core": "^0.3.91",
56
- "@micromag/data": "^0.3.91",
57
- "@micromag/element-background": "^0.3.91",
58
- "@micromag/element-button": "^0.3.91",
59
- "@micromag/element-call-to-action": "^0.3.103",
60
- "@micromag/element-container": "^0.3.91",
61
- "@micromag/element-heading": "^0.3.91",
62
- "@micromag/element-scroll": "^0.3.91",
63
- "@micromag/element-text": "^0.3.91",
64
- "@micromag/element-text-input": "^0.3.91",
65
- "@micromag/transforms": "^0.3.91",
55
+ "@micromag/core": "^0.3.107",
56
+ "@micromag/data": "^0.3.107",
57
+ "@micromag/element-background": "^0.3.107",
58
+ "@micromag/element-button": "^0.3.107",
59
+ "@micromag/element-call-to-action": "^0.3.107",
60
+ "@micromag/element-container": "^0.3.107",
61
+ "@micromag/element-heading": "^0.3.107",
62
+ "@micromag/element-scroll": "^0.3.107",
63
+ "@micromag/element-text": "^0.3.107",
64
+ "@micromag/element-text-input": "^0.3.107",
65
+ "@micromag/transforms": "^0.3.107",
66
66
  "classnames": "^2.2.6",
67
67
  "lodash": "^4.17.21",
68
68
  "prop-types": "^15.7.2",
@@ -72,5 +72,5 @@
72
72
  "publishConfig": {
73
73
  "access": "public"
74
74
  },
75
- "gitHead": "660b2ada7b03941feb841470abf5cd2cc6e3e68f"
75
+ "gitHead": "952ef450fe62328a0ae3ab6dbb3c3079bb66d17a"
76
76
  }