@micromag/screen-text 0.3.588 → 0.3.590

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 +5 -5
  2. package/package.json +11 -11
package/es/index.js CHANGED
@@ -29,7 +29,7 @@ var propTypes = {
29
29
  footer: PropTypes$1.footer,
30
30
  background: PropTypes$1.backgroundElement,
31
31
  current: PropTypes.bool,
32
- active: PropTypes.bool,
32
+ preload: PropTypes.bool,
33
33
  className: PropTypes.string
34
34
  };
35
35
  var defaultProps = {
@@ -42,7 +42,7 @@ var defaultProps = {
42
42
  footer: null,
43
43
  background: null,
44
44
  current: true,
45
- active: true,
45
+ preload: true,
46
46
  className: null
47
47
  };
48
48
  var TextScreen = function TextScreen(_ref) {
@@ -55,7 +55,7 @@ var TextScreen = function TextScreen(_ref) {
55
55
  footer = _ref.footer,
56
56
  background = _ref.background,
57
57
  current = _ref.current,
58
- active = _ref.active,
58
+ preload = _ref.preload,
59
59
  className = _ref.className;
60
60
  var _useScreenSize = useScreenSize(),
61
61
  width = _useScreenSize.width,
@@ -84,7 +84,7 @@ var TextScreen = function TextScreen(_ref) {
84
84
  var verticalAlign = isSplitted ? null : layout;
85
85
  var titleWithMargin = hasTitle && hasText && !isSplitted;
86
86
  var backgroundPlaying = current && (isView || isEdit);
87
- var backgroundShouldLoad = current || active;
87
+ var mediaShouldLoad = current || preload;
88
88
  var hasHeader = isHeaderFilled(header);
89
89
  var hasFooter = isFooterFilled(footer);
90
90
  var footerProps = getFooterProps(footer, {
@@ -167,7 +167,7 @@ var TextScreen = function TextScreen(_ref) {
167
167
  resolution: resolution,
168
168
  playing: backgroundPlaying,
169
169
  muted: muted,
170
- shouldLoad: backgroundShouldLoad,
170
+ shouldLoad: mediaShouldLoad,
171
171
  mediaRef: mediaRef,
172
172
  withoutVideo: isPreview,
173
173
  className: styles.background
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-text",
3
- "version": "0.3.588",
3
+ "version": "0.3.590",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -60,15 +60,15 @@
60
60
  },
61
61
  "dependencies": {
62
62
  "@babel/runtime": "^7.13.10",
63
- "@micromag/core": "^0.3.588",
64
- "@micromag/element-background": "^0.3.588",
65
- "@micromag/element-container": "^0.3.588",
66
- "@micromag/element-footer": "^0.3.588",
67
- "@micromag/element-header": "^0.3.588",
68
- "@micromag/element-heading": "^0.3.588",
69
- "@micromag/element-layout": "^0.3.588",
70
- "@micromag/element-text": "^0.3.588",
71
- "@micromag/transforms": "^0.3.588",
63
+ "@micromag/core": "^0.3.590",
64
+ "@micromag/element-background": "^0.3.590",
65
+ "@micromag/element-container": "^0.3.590",
66
+ "@micromag/element-footer": "^0.3.590",
67
+ "@micromag/element-header": "^0.3.590",
68
+ "@micromag/element-heading": "^0.3.590",
69
+ "@micromag/element-layout": "^0.3.590",
70
+ "@micromag/element-text": "^0.3.590",
71
+ "@micromag/transforms": "^0.3.590",
72
72
  "classnames": "^2.2.6",
73
73
  "lodash": "^4.17.21",
74
74
  "prop-types": "^15.7.2",
@@ -79,5 +79,5 @@
79
79
  "access": "public",
80
80
  "registry": "https://registry.npmjs.org/"
81
81
  },
82
- "gitHead": "c2ec51edbaf9bb6c78bbaf7996b2ad0fd1651993"
82
+ "gitHead": "aee5033c29da327111287f71fd59cb77f469306a"
83
83
  }