@micromag/screen-survey 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
@@ -215,7 +215,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
215
215
  var transitionPlaying = current;
216
216
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
217
217
  var backgroundPlaying = current && (isView || isEdit);
218
- var backgroundShouldLoad = current || active || !isView;
218
+ var mediaShouldLoad = current || active;
219
219
  var onAnswerClick = useCallback(function (answerIndex) {
220
220
  if (userAnswerIndex === null) {
221
221
  setUserAnswerIndex(answerIndex);
@@ -415,7 +415,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
415
415
  height: height,
416
416
  resolution: resolution,
417
417
  playing: backgroundPlaying,
418
- shouldLoad: backgroundShouldLoad
418
+ shouldLoad: mediaShouldLoad
419
419
  }) : null, /*#__PURE__*/React.createElement(Container, {
420
420
  width: width,
421
421
  height: height
package/lib/index.js CHANGED
@@ -236,7 +236,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
236
236
  var transitionPlaying = current;
237
237
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
238
238
  var backgroundPlaying = current && (isView || isEdit);
239
- var backgroundShouldLoad = current || active || !isView;
239
+ var mediaShouldLoad = current || active;
240
240
  var onAnswerClick = React.useCallback(function (answerIndex) {
241
241
  if (userAnswerIndex === null) {
242
242
  setUserAnswerIndex(answerIndex);
@@ -436,7 +436,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
436
436
  height: height,
437
437
  resolution: resolution,
438
438
  playing: backgroundPlaying,
439
- shouldLoad: backgroundShouldLoad
439
+ shouldLoad: mediaShouldLoad
440
440
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
441
441
  width: width,
442
442
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-survey",
3
- "version": "0.3.103",
3
+ "version": "0.3.107",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "javascript"
@@ -40,26 +40,26 @@
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
- "@micromag/core": "^0.3.91",
53
- "@micromag/data": "^0.3.91",
54
- "@micromag/element-background": "^0.3.91",
55
- "@micromag/element-button": "^0.3.91",
56
- "@micromag/element-call-to-action": "^0.3.103",
57
- "@micromag/element-container": "^0.3.91",
58
- "@micromag/element-heading": "^0.3.91",
59
- "@micromag/element-layout": "^0.3.91",
60
- "@micromag/element-scroll": "^0.3.91",
61
- "@micromag/element-text": "^0.3.91",
62
- "@micromag/transforms": "^0.3.91",
52
+ "@micromag/core": "^0.3.107",
53
+ "@micromag/data": "^0.3.107",
54
+ "@micromag/element-background": "^0.3.107",
55
+ "@micromag/element-button": "^0.3.107",
56
+ "@micromag/element-call-to-action": "^0.3.107",
57
+ "@micromag/element-container": "^0.3.107",
58
+ "@micromag/element-heading": "^0.3.107",
59
+ "@micromag/element-layout": "^0.3.107",
60
+ "@micromag/element-scroll": "^0.3.107",
61
+ "@micromag/element-text": "^0.3.107",
62
+ "@micromag/transforms": "^0.3.107",
63
63
  "classnames": "^2.2.6",
64
64
  "lodash": "^4.17.21",
65
65
  "prop-types": "^15.7.2",
@@ -69,5 +69,5 @@
69
69
  "publishConfig": {
70
70
  "access": "public"
71
71
  },
72
- "gitHead": "660b2ada7b03941feb841470abf5cd2cc6e3e68f"
72
+ "gitHead": "952ef450fe62328a0ae3ab6dbb3c3079bb66d17a"
73
73
  }