@micromag/screen-survey 0.3.587 → 0.3.589
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 +4 -4
- package/package.json +14 -14
package/es/index.js
CHANGED
|
@@ -44,7 +44,7 @@ var propTypes = {
|
|
|
44
44
|
withoutPercentage: PropTypes.bool,
|
|
45
45
|
withoutBar: PropTypes.bool,
|
|
46
46
|
current: PropTypes.bool,
|
|
47
|
-
|
|
47
|
+
preload: PropTypes.bool,
|
|
48
48
|
transitions: PropTypes$1.transitions,
|
|
49
49
|
// transitionStagger: PropTypes.number,
|
|
50
50
|
resultTransitionDuration: PropTypes.number,
|
|
@@ -66,7 +66,7 @@ var defaultProps = {
|
|
|
66
66
|
withoutPercentage: false,
|
|
67
67
|
withoutBar: false,
|
|
68
68
|
current: true,
|
|
69
|
-
|
|
69
|
+
preload: true,
|
|
70
70
|
transitions: null,
|
|
71
71
|
// transitionStagger: 100,
|
|
72
72
|
resultTransitionDuration: 500,
|
|
@@ -88,7 +88,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
88
88
|
withoutPercentage = _ref.withoutPercentage,
|
|
89
89
|
withoutBar = _ref.withoutBar,
|
|
90
90
|
current = _ref.current,
|
|
91
|
-
|
|
91
|
+
preload = _ref.preload,
|
|
92
92
|
transitions = _ref.transitions,
|
|
93
93
|
resultTransitionDuration = _ref.resultTransitionDuration,
|
|
94
94
|
type = _ref.type,
|
|
@@ -201,7 +201,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
201
201
|
var transitionPlaying = current;
|
|
202
202
|
var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
|
|
203
203
|
var backgroundPlaying = current && (isView || isEdit);
|
|
204
|
-
var mediaShouldLoad = current ||
|
|
204
|
+
var mediaShouldLoad = current || preload;
|
|
205
205
|
var onAnswerClick = useCallback(function (answerIndex) {
|
|
206
206
|
if (userAnswerIndex === null) {
|
|
207
207
|
setUserAnswerIndex(answerIndex);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-survey",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.589",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -60,18 +60,18 @@
|
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@babel/runtime": "^7.13.10",
|
|
63
|
-
"@micromag/core": "^0.3.
|
|
64
|
-
"@micromag/data": "^0.3.
|
|
65
|
-
"@micromag/element-background": "^0.3.
|
|
66
|
-
"@micromag/element-button": "^0.3.
|
|
67
|
-
"@micromag/element-container": "^0.3.
|
|
68
|
-
"@micromag/element-footer": "^0.3.
|
|
69
|
-
"@micromag/element-header": "^0.3.
|
|
70
|
-
"@micromag/element-heading": "^0.3.
|
|
71
|
-
"@micromag/element-layout": "^0.3.
|
|
72
|
-
"@micromag/element-scroll": "^0.3.
|
|
73
|
-
"@micromag/element-text": "^0.3.
|
|
74
|
-
"@micromag/transforms": "^0.3.
|
|
63
|
+
"@micromag/core": "^0.3.589",
|
|
64
|
+
"@micromag/data": "^0.3.589",
|
|
65
|
+
"@micromag/element-background": "^0.3.589",
|
|
66
|
+
"@micromag/element-button": "^0.3.589",
|
|
67
|
+
"@micromag/element-container": "^0.3.589",
|
|
68
|
+
"@micromag/element-footer": "^0.3.589",
|
|
69
|
+
"@micromag/element-header": "^0.3.589",
|
|
70
|
+
"@micromag/element-heading": "^0.3.589",
|
|
71
|
+
"@micromag/element-layout": "^0.3.589",
|
|
72
|
+
"@micromag/element-scroll": "^0.3.589",
|
|
73
|
+
"@micromag/element-text": "^0.3.589",
|
|
74
|
+
"@micromag/transforms": "^0.3.589",
|
|
75
75
|
"classnames": "^2.2.6",
|
|
76
76
|
"lodash": "^4.17.21",
|
|
77
77
|
"prop-types": "^15.7.2",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"access": "public",
|
|
83
83
|
"registry": "https://registry.npmjs.org/"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "534ea16483848cd334d4e2bd02f48beba4439a95"
|
|
86
86
|
}
|