@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 +3 -4
- package/lib/index.js +3 -4
- package/package.json +17 -17
package/es/index.js
CHANGED
|
@@ -156,8 +156,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
return false;
|
|
159
|
-
});
|
|
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
|
|
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:
|
|
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
|
-
});
|
|
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
|
|
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:
|
|
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.
|
|
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.
|
|
53
|
-
"@micromag/data": "^0.3.
|
|
54
|
-
"@micromag/element-background": "^0.3.
|
|
55
|
-
"@micromag/element-button": "^0.3.
|
|
56
|
-
"@micromag/element-call-to-action": "^0.3.
|
|
57
|
-
"@micromag/element-container": "^0.3.
|
|
58
|
-
"@micromag/element-heading": "^0.3.
|
|
59
|
-
"@micromag/element-layout": "^0.3.
|
|
60
|
-
"@micromag/element-scroll": "^0.3.
|
|
61
|
-
"@micromag/element-text": "^0.3.
|
|
62
|
-
"@micromag/transforms": "^0.3.
|
|
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": "
|
|
72
|
+
"gitHead": "865842ef7fbdc41f89dd0891857989ded63d44c4"
|
|
73
73
|
}
|