@micromag/screen-survey 0.2.405 → 0.2.406
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 +5 -1
- package/lib/index.js +5 -1
- package/package.json +3 -3
package/es/index.js
CHANGED
|
@@ -37,6 +37,7 @@ var propTypes = {
|
|
|
37
37
|
callToAction: PropTypes$1.callToAction,
|
|
38
38
|
withPercentLabels: PropTypes.bool,
|
|
39
39
|
current: PropTypes.bool,
|
|
40
|
+
active: PropTypes.bool,
|
|
40
41
|
transitions: PropTypes$1.transitions,
|
|
41
42
|
transitionStagger: PropTypes.number,
|
|
42
43
|
resultTransitionDuration: PropTypes.number,
|
|
@@ -55,6 +56,7 @@ var defaultProps = {
|
|
|
55
56
|
callToAction: null,
|
|
56
57
|
withPercentLabels: true,
|
|
57
58
|
current: true,
|
|
59
|
+
active: true,
|
|
58
60
|
transitions: null,
|
|
59
61
|
transitionStagger: 100,
|
|
60
62
|
resultTransitionDuration: 500,
|
|
@@ -76,6 +78,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
76
78
|
callToAction = _ref.callToAction,
|
|
77
79
|
withPercentLabels = _ref.withPercentLabels,
|
|
78
80
|
current = _ref.current,
|
|
81
|
+
active = _ref.active,
|
|
79
82
|
transitions = _ref.transitions,
|
|
80
83
|
transitionStagger = _ref.transitionStagger,
|
|
81
84
|
resultTransitionDuration = _ref.resultTransitionDuration,
|
|
@@ -402,7 +405,8 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
402
405
|
background: background,
|
|
403
406
|
width: width,
|
|
404
407
|
height: height,
|
|
405
|
-
playing: backgroundPlaying
|
|
408
|
+
playing: backgroundPlaying,
|
|
409
|
+
shouldLoad: current || active
|
|
406
410
|
}) : null, /*#__PURE__*/React.createElement(Container, {
|
|
407
411
|
width: width,
|
|
408
412
|
height: height
|
package/lib/index.js
CHANGED
|
@@ -58,6 +58,7 @@ var propTypes = {
|
|
|
58
58
|
callToAction: core.PropTypes.callToAction,
|
|
59
59
|
withPercentLabels: PropTypes__default["default"].bool,
|
|
60
60
|
current: PropTypes__default["default"].bool,
|
|
61
|
+
active: PropTypes__default["default"].bool,
|
|
61
62
|
transitions: core.PropTypes.transitions,
|
|
62
63
|
transitionStagger: PropTypes__default["default"].number,
|
|
63
64
|
resultTransitionDuration: PropTypes__default["default"].number,
|
|
@@ -76,6 +77,7 @@ var defaultProps = {
|
|
|
76
77
|
callToAction: null,
|
|
77
78
|
withPercentLabels: true,
|
|
78
79
|
current: true,
|
|
80
|
+
active: true,
|
|
79
81
|
transitions: null,
|
|
80
82
|
transitionStagger: 100,
|
|
81
83
|
resultTransitionDuration: 500,
|
|
@@ -97,6 +99,7 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
97
99
|
callToAction = _ref.callToAction,
|
|
98
100
|
withPercentLabels = _ref.withPercentLabels,
|
|
99
101
|
current = _ref.current,
|
|
102
|
+
active = _ref.active,
|
|
100
103
|
transitions = _ref.transitions,
|
|
101
104
|
transitionStagger = _ref.transitionStagger,
|
|
102
105
|
resultTransitionDuration = _ref.resultTransitionDuration,
|
|
@@ -423,7 +426,8 @@ var SurveyScreen = function SurveyScreen(_ref) {
|
|
|
423
426
|
background: background,
|
|
424
427
|
width: width,
|
|
425
428
|
height: height,
|
|
426
|
-
playing: backgroundPlaying
|
|
429
|
+
playing: backgroundPlaying,
|
|
430
|
+
shouldLoad: current || active
|
|
427
431
|
}) : null, /*#__PURE__*/React__default["default"].createElement(Container__default["default"], {
|
|
428
432
|
width: width,
|
|
429
433
|
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.406",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"javascript"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@babel/runtime": "^7.13.10",
|
|
52
52
|
"@micromag/core": "^0.2.405",
|
|
53
53
|
"@micromag/data": "^0.2.405",
|
|
54
|
-
"@micromag/element-background": "^0.2.
|
|
54
|
+
"@micromag/element-background": "^0.2.406",
|
|
55
55
|
"@micromag/element-button": "^0.2.405",
|
|
56
56
|
"@micromag/element-call-to-action": "^0.2.405",
|
|
57
57
|
"@micromag/element-container": "^0.2.405",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "5e1a6de73674624b0cb3f9701140ea8850e6f35e"
|
|
72
72
|
}
|