@micromag/screen-survey 0.3.102 → 0.3.106

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
@@ -156,8 +156,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
156
156
  }
157
157
 
158
158
  return false;
159
- }); // console.log('finalQuizAnswers', finalQuizAnswers);
160
-
159
+ });
161
160
  var hasQuestion = isTextFilled(question);
162
161
  var showInstantAnswer = isStatic || isCapture;
163
162
 
@@ -216,7 +215,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
216
215
  var transitionPlaying = current;
217
216
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
218
217
  var backgroundPlaying = current && (isView || isEdit);
219
- var backgroundShouldLoad = current || active || !isView;
218
+ var mediaShouldLoad = current || active;
220
219
  var onAnswerClick = useCallback(function (answerIndex) {
221
220
  if (userAnswerIndex === null) {
222
221
  setUserAnswerIndex(answerIndex);
@@ -416,7 +415,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
416
415
  height: height,
417
416
  resolution: resolution,
418
417
  playing: backgroundPlaying,
419
- shouldLoad: backgroundShouldLoad
418
+ shouldLoad: mediaShouldLoad
420
419
  }) : null, /*#__PURE__*/React.createElement(Container, {
421
420
  width: width,
422
421
  height: height
package/lib/index.js CHANGED
@@ -177,8 +177,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
177
177
  }
178
178
 
179
179
  return false;
180
- }); // console.log('finalQuizAnswers', finalQuizAnswers);
181
-
180
+ });
182
181
  var hasQuestion = utils.isTextFilled(question);
183
182
  var showInstantAnswer = isStatic || isCapture;
184
183
 
@@ -237,7 +236,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
237
236
  var transitionPlaying = current;
238
237
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
239
238
  var backgroundPlaying = current && (isView || isEdit);
240
- var backgroundShouldLoad = current || active || !isView;
239
+ var mediaShouldLoad = current || active;
241
240
  var onAnswerClick = React.useCallback(function (answerIndex) {
242
241
  if (userAnswerIndex === null) {
243
242
  setUserAnswerIndex(answerIndex);
@@ -437,7 +436,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
437
436
  height: height,
438
437
  resolution: resolution,
439
438
  playing: backgroundPlaying,
440
- shouldLoad: backgroundShouldLoad
439
+ shouldLoad: mediaShouldLoad
441
440
  }) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
442
441
  width: width,
443
442
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-survey",
3
- "version": "0.3.102",
3
+ "version": "0.3.106",
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.100",
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.106",
53
+ "@micromag/data": "^0.3.106",
54
+ "@micromag/element-background": "^0.3.106",
55
+ "@micromag/element-button": "^0.3.106",
56
+ "@micromag/element-call-to-action": "^0.3.106",
57
+ "@micromag/element-container": "^0.3.106",
58
+ "@micromag/element-heading": "^0.3.106",
59
+ "@micromag/element-layout": "^0.3.106",
60
+ "@micromag/element-scroll": "^0.3.106",
61
+ "@micromag/element-text": "^0.3.106",
62
+ "@micromag/transforms": "^0.3.106",
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": "8c015961160dcdf5ee10e5a0abe50d67fe165710"
72
+ "gitHead": "865842ef7fbdc41f89dd0891857989ded63d44c4"
73
73
  }