@micromag/screen-survey 0.2.406 → 0.2.412
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 +2 -1
- package/lib/index.js +2 -1
- package/package.json +12 -12
package/es/index.js
CHANGED
|
@@ -177,6 +177,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
177
177
|
var transitionPlaying = current;
|
|
178
178
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
179
179
|
var backgroundPlaying = current && (isView || isEdit);
|
|
180
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
180
181
|
var onAnswerClick = useCallback(function (answerIndex) {
|
|
181
182
|
if (userAnswerIndex === null) {
|
|
182
183
|
setUserAnswerIndex(answerIndex);
|
|
@@ -406,7 +407,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
406
407
|
width: width,
|
|
407
408
|
height: height,
|
|
408
409
|
playing: backgroundPlaying,
|
|
409
|
-
shouldLoad:
|
|
410
|
+
shouldLoad: backgroundShouldLoad
|
|
410
411
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
411
412
|
width: width,
|
|
412
413
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -198,6 +198,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
198
198
|
var transitionPlaying = current;
|
|
199
199
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
200
200
|
var backgroundPlaying = current && (isView || isEdit);
|
|
201
|
+
var backgroundShouldLoad = current || active || !isView;
|
|
201
202
|
var onAnswerClick = React.useCallback(function (answerIndex) {
|
|
202
203
|
if (userAnswerIndex === null) {
|
|
203
204
|
setUserAnswerIndex(answerIndex);
|
|
@@ -427,7 +428,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
427
428
|
width: width,
|
|
428
429
|
height: height,
|
|
429
430
|
playing: backgroundPlaying,
|
|
430
|
-
shouldLoad:
|
|
431
|
+
shouldLoad: backgroundShouldLoad
|
|
431
432
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
432
433
|
width: width,
|
|
433
434
|
height: height
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-survey",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.412",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
|
-
"@micromag/core": "^0.2.
|
|
53
|
-
"@micromag/data": "^0.2.
|
|
54
|
-
"@micromag/element-background": "^0.2.
|
|
55
|
-
"@micromag/element-button": "^0.2.
|
|
56
|
-
"@micromag/element-call-to-action": "^0.2.
|
|
57
|
-
"@micromag/element-container": "^0.2.
|
|
58
|
-
"@micromag/element-heading": "^0.2.
|
|
59
|
-
"@micromag/element-layout": "^0.2.
|
|
60
|
-
"@micromag/element-text": "^0.2.
|
|
61
|
-
"@micromag/transforms": "^0.2.
|
|
52
|
+
"@micromag/core": "^0.2.412",
|
|
53
|
+
"@micromag/data": "^0.2.412",
|
|
54
|
+
"@micromag/element-background": "^0.2.412",
|
|
55
|
+
"@micromag/element-button": "^0.2.412",
|
|
56
|
+
"@micromag/element-call-to-action": "^0.2.412",
|
|
57
|
+
"@micromag/element-container": "^0.2.412",
|
|
58
|
+
"@micromag/element-heading": "^0.2.412",
|
|
59
|
+
"@micromag/element-layout": "^0.2.412",
|
|
60
|
+
"@micromag/element-text": "^0.2.412",
|
|
61
|
+
"@micromag/transforms": "^0.2.412",
|
|
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": "e16acc4643a563f4b7e98ddc1b778ea8a6c8b320"
|
|
72
72
|
}
|