@micromag/screen-quiz 0.3.606 → 0.3.608

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.
@@ -1,4 +1,4 @@
1
- .micromag-screen-quiz-answers-emptyAnswer{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-quiz-answers-button:focus-visible{outline:3px solid #a13dff;outline-offset:4px}.micromag-screen-quiz-answers-container,.micromag-screen-quiz-answers-items{position:relative}.micromag-screen-quiz-answers-emptyAnswer{font-size:.75em;height:40px;margin:0 auto;width:100%}.micromag-screen-quiz-answers-item{margin:0;padding:0;position:relative;-webkit-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.micromag-screen-quiz-answers-isPlaceholder .micromag-screen-quiz-answers-item{padding:1px 0}.micromag-screen-quiz-answers-item.micromag-screen-quiz-answers-userAnswer{opacity:1!important}.micromag-screen-quiz-answers-item.micromag-screen-quiz-answers-otherAnswer{opacity:.6!important}.micromag-screen-quiz-answers-button{color:#fff;padding:10px;position:relative;width:100%}.micromag-screen-quiz-answers-button:disabled{opacity:1;pointer-events:none}.micromag-screen-quiz-answers-withIcon .micromag-screen-quiz-answers-button{padding-left:42px;padding-right:42px}.micromag-screen-quiz-answers-resultIcon{display:-ms-flexbox;display:flex;left:5px;position:absolute;top:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:#ff2945;border:2px solid #1c1c1c;border-radius:50%;height:32px;justify-content:center;margin-top:-16px;opacity:0;padding:5px;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;width:32px}.micromag-screen-quiz-answers-answered .micromag-screen-quiz-answers-resultIcon{opacity:1}.micromag-screen-quiz-answers-rightAnswer .micromag-screen-quiz-answers-resultIcon{background-color:#0ed88f}.micromag-screen-quiz-answers-resultIcon .micromag-screen-quiz-answers-faIcon{display:block}.micromag-screen-quiz-answers-itemContent{padding:5px 0}
1
+ .micromag-screen-quiz-answers-emptyAnswer{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-quiz-answers-button:focus-visible{outline:3px solid #a13dff;outline-offset:4px}.micromag-screen-quiz-answers-container,.micromag-screen-quiz-answers-items{position:relative}.micromag-screen-quiz-answers-emptyAnswer{font-size:.75em;height:40px;margin:0 auto;width:100%}.micromag-screen-quiz-answers-item{margin:0;padding:0;position:relative;-webkit-transition:opacity .6s ease-out;transition:opacity .6s ease-out}.micromag-screen-quiz-answers-isPlaceholder .micromag-screen-quiz-answers-item{padding:1px 0}.micromag-screen-quiz-answers-item.micromag-screen-quiz-answers-userAnswer{opacity:1!important}.micromag-screen-quiz-answers-item.micromag-screen-quiz-answers-otherAnswer{opacity:.6!important}.micromag-screen-quiz-answers-item.micromag-screen-quiz-answers-withoutOpacity{opacity:1!important}.micromag-screen-quiz-answers-button{color:#fff;padding:10px;position:relative;width:100%}.micromag-screen-quiz-answers-button:disabled{opacity:1;pointer-events:none}.micromag-screen-quiz-answers-withIcon .micromag-screen-quiz-answers-button{padding-left:42px;padding-right:42px}.micromag-screen-quiz-answers-resultIcon{display:-ms-flexbox;display:flex;left:5px;position:absolute;top:50%;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;background-color:#ff2945;border:2px solid #1c1c1c;border-radius:50%;height:32px;justify-content:center;margin-top:-16px;opacity:0;padding:5px;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;width:32px}.micromag-screen-quiz-answers-answered .micromag-screen-quiz-answers-resultIcon{opacity:1}.micromag-screen-quiz-answers-rightAnswer .micromag-screen-quiz-answers-resultIcon{background-color:#0ed88f}.micromag-screen-quiz-answers-resultIcon .micromag-screen-quiz-answers-faIcon{display:block}.micromag-screen-quiz-answers-itemContent{padding:5px 0}
2
2
  .micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyQuestion,.micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyResult{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-question{margin-bottom:10px}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-index{display:block;margin-bottom:1em;text-align:center;width:100%}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-result{opacity:0;pointer-events:none;position:absolute;-webkit-transition:opacity .5s ease;transition:opacity .5s ease;-webkit-transition-delay:.3s;transition-delay:.3s}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-resultContent{padding:20px 0}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyQuestion,.micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyResult{margin:0 auto;width:100%}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyQuestion{height:60px;margin-bottom:10px}.micromag-screen-quiz-question-container .micromag-screen-quiz-question-emptyResult{height:100px}.micromag-screen-quiz-question-container.micromag-screen-quiz-question-resultVisible .micromag-screen-quiz-question-result{opacity:1;pointer-events:all;position:relative}.micromag-screen-quiz-question-container.micromag-screen-quiz-question-isPlaceholder{padding:10px}.micromag-screen-quiz-question-container.micromag-screen-quiz-question-isPlaceholder .micromag-screen-quiz-question-index{color:hsla(0,0%,100%,.6);font-size:8px;mix-blend-mode:difference}
3
3
  .micromag-screen-quiz-container .micromag-screen-quiz-background{height:100%;left:0;position:absolute;top:0;width:100%}.micromag-screen-quiz-container{height:100%;overflow:hidden;position:relative;width:100%}.micromag-screen-quiz-disabled.micromag-screen-quiz-container{overflow:hidden;pointer-events:none}.micromag-screen-quiz-hidden.micromag-screen-quiz-container{display:none;visibility:hidden}.micromag-screen-quiz-placeholder.micromag-screen-quiz-container .micromag-screen-quiz-content{padding:6px;position:relative}.micromag-screen-quiz-container .micromag-screen-quiz-background{z-index:0}.micromag-screen-quiz-container .micromag-screen-quiz-content{z-index:2}.micromag-screen-quiz-container.micromag-screen-quiz-disabled{pointer-events:none}.micromag-screen-quiz-reset{border:0;padding:10px;position:absolute;right:0;top:0;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-transition:opacity .15s ease-out,-webkit-transform .15s ease-out;transition:opacity .15s ease-out,-webkit-transform .15s ease-out;transition:opacity .15s ease-out,transform .15s ease-out;transition:opacity .15s ease-out,transform .15s ease-out,-webkit-transform .15s ease-out;z-index:1000}.micromag-screen-quiz-reset:hover{border:0;opacity:.8}.micromag-screen-quiz-reset:hover:active{-webkit-transform:rotate(30deg);-ms-transform:rotate(30deg);transform:rotate(30deg)}.micromag-screen-quiz-points{color:#fff;left:0;padding:10px;position:absolute;top:0;z-index:1000}.micromag-screen-quiz-layout{bottom:0;left:0;position:absolute;right:0;top:0}.micromag-screen-quiz-header{left:0;position:absolute;top:0;-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;width:100%}.micromag-screen-quiz-header.micromag-screen-quiz-disabled{opacity:0;pointer-events:none}.micromag-screen-quiz-footer{bottom:0;left:0;position:absolute;-webkit-transition:opacity .2s ease-out;transition:opacity .2s ease-out;width:100%}.micromag-screen-quiz-footer a{padding:0}.micromag-screen-quiz-footer.micromag-screen-quiz-disabled{opacity:0;pointer-events:none}.micromag-screen-quiz-transition{bottom:0;left:0;position:absolute;right:0;top:0}.micromag-screen-quiz-intro,.micromag-screen-quiz-question,.micromag-screen-quiz-results{overflow:hidden}.micromag-screen-quiz-intro.micromag-screen-quiz-enter,.micromag-screen-quiz-question.micromag-screen-quiz-enter,.micromag-screen-quiz-results.micromag-screen-quiz-enter{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.micromag-screen-quiz-left .micromag-screen-quiz-intro.micromag-screen-quiz-enter,.micromag-screen-quiz-left .micromag-screen-quiz-question.micromag-screen-quiz-enter,.micromag-screen-quiz-left .micromag-screen-quiz-results.micromag-screen-quiz-enter{-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%)}.micromag-screen-quiz-intro.micromag-screen-quiz-enterActive,.micromag-screen-quiz-left .micromag-screen-quiz-intro.micromag-screen-quiz-enterActive,.micromag-screen-quiz-left .micromag-screen-quiz-question.micromag-screen-quiz-enterActive,.micromag-screen-quiz-left .micromag-screen-quiz-results.micromag-screen-quiz-enterActive,.micromag-screen-quiz-question.micromag-screen-quiz-enterActive,.micromag-screen-quiz-results.micromag-screen-quiz-enterActive{left:0;min-height:100%;position:absolute;top:0;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0);-webkit-transition:-webkit-transform 1s ease;transition:-webkit-transform 1s ease;transition:transform 1s ease;transition:transform 1s ease,-webkit-transform 1s ease;width:100%}.micromag-screen-quiz-intro.micromag-screen-quiz-exit,.micromag-screen-quiz-question.micromag-screen-quiz-exit,.micromag-screen-quiz-results.micromag-screen-quiz-exit{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.micromag-screen-quiz-intro.micromag-screen-quiz-exitActive,.micromag-screen-quiz-question.micromag-screen-quiz-exitActive,.micromag-screen-quiz-results.micromag-screen-quiz-exitActive{left:0;min-height:100%;position:absolute;top:0;-webkit-transform:translateX(-100%);-ms-transform:translateX(-100%);transform:translateX(-100%);-webkit-transition:-webkit-transform 1s ease;transition:-webkit-transform 1s ease;transition:transform 1s ease;transition:transform 1s ease,-webkit-transform 1s ease;width:100%}.micromag-screen-quiz-left .micromag-screen-quiz-intro.micromag-screen-quiz-exitActive,.micromag-screen-quiz-left .micromag-screen-quiz-question.micromag-screen-quiz-exitActive,.micromag-screen-quiz-left .micromag-screen-quiz-results.micromag-screen-quiz-exitActive{-webkit-transform:translateX(100%);-ms-transform:translateX(100%);transform:translateX(100%)}.micromag-screen-quiz-background.micromag-screen-quiz-enter{opacity:0}.micromag-screen-quiz-background.micromag-screen-quiz-enterActive{opacity:1;-webkit-transition:opacity 1s ease;transition:opacity 1s ease;z-index:1}.micromag-screen-quiz-background.micromag-screen-quiz-exit{opacity:1}.micromag-screen-quiz-background.micromag-screen-quiz-exitActive{opacity:0;-webkit-transition:opacity 1s ease;transition:opacity 1s ease;z-index:0}
4
4
  .micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyDescription,.micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyTitle{border:2px dashed #343434;color:#343434;margin:5px auto}.micromag-screen-quiz-results-container .micromag-screen-quiz-results-title{margin-bottom:10px}.micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyDescription,.micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyTitle{margin:0 auto;width:100%}.micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyTitle{height:60px}.micromag-screen-quiz-results-container .micromag-screen-quiz-results-emptyDescription{height:100px}.micromag-screen-quiz-results-container.micromag-screen-quiz-results-isPlaceholder{padding:10px}
package/es/index.js CHANGED
@@ -29,14 +29,16 @@ import { animated, useTransition, easings } from '@react-spring/web';
29
29
  import Button from '@micromag/element-button';
30
30
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
31
31
 
32
- var styles$4 = {"emptyAnswer":"micromag-screen-quiz-answers-emptyAnswer","button":"micromag-screen-quiz-answers-button","container":"micromag-screen-quiz-answers-container","items":"micromag-screen-quiz-answers-items","item":"micromag-screen-quiz-answers-item","isPlaceholder":"micromag-screen-quiz-answers-isPlaceholder","userAnswer":"micromag-screen-quiz-answers-userAnswer","otherAnswer":"micromag-screen-quiz-answers-otherAnswer","withIcon":"micromag-screen-quiz-answers-withIcon","resultIcon":"micromag-screen-quiz-answers-resultIcon","answered":"micromag-screen-quiz-answers-answered","rightAnswer":"micromag-screen-quiz-answers-rightAnswer","faIcon":"micromag-screen-quiz-answers-faIcon","itemContent":"micromag-screen-quiz-answers-itemContent"};
32
+ var styles$4 = {"emptyAnswer":"micromag-screen-quiz-answers-emptyAnswer","button":"micromag-screen-quiz-answers-button","container":"micromag-screen-quiz-answers-container","items":"micromag-screen-quiz-answers-items","item":"micromag-screen-quiz-answers-item","isPlaceholder":"micromag-screen-quiz-answers-isPlaceholder","userAnswer":"micromag-screen-quiz-answers-userAnswer","otherAnswer":"micromag-screen-quiz-answers-otherAnswer","withoutOpacity":"micromag-screen-quiz-answers-withoutOpacity","withIcon":"micromag-screen-quiz-answers-withIcon","resultIcon":"micromag-screen-quiz-answers-resultIcon","answered":"micromag-screen-quiz-answers-answered","rightAnswer":"micromag-screen-quiz-answers-rightAnswer","faIcon":"micromag-screen-quiz-answers-faIcon","itemContent":"micromag-screen-quiz-answers-itemContent"};
33
33
 
34
34
  var propTypes$5 = {
35
35
  items: PropTypes.quizAnswers.isRequired,
36
36
  answeredIndex: PropTypes$1.number,
37
37
  answersCollapseDelay: PropTypes$1.number,
38
38
  buttonsStyle: PropTypes.boxStyle,
39
+ inactiveButtonsStyle: PropTypes.boxStyle,
39
40
  buttonsTextStyle: PropTypes.textStyle,
41
+ inactiveButtonsTextStyle: PropTypes.textStyle,
40
42
  goodAnswerColor: PropTypes.color,
41
43
  badAnswerColor: PropTypes.color,
42
44
  showUserAnswer: PropTypes$1.bool,
@@ -55,7 +57,9 @@ var defaultProps$5 = {
55
57
  answeredIndex: null,
56
58
  answersCollapseDelay: 1000,
57
59
  buttonsStyle: null,
60
+ inactiveButtonsStyle: null,
58
61
  buttonsTextStyle: null,
62
+ inactiveButtonsTextStyle: null,
59
63
  goodAnswerColor: null,
60
64
  badAnswerColor: null,
61
65
  showUserAnswer: false,
@@ -75,7 +79,9 @@ var Answers = function Answers(_ref) {
75
79
  answeredIndex = _ref.answeredIndex,
76
80
  answersCollapseDelay = _ref.answersCollapseDelay,
77
81
  buttonsStyle = _ref.buttonsStyle,
82
+ inactiveButtonsStyle = _ref.inactiveButtonsStyle,
78
83
  buttonsTextStyle = _ref.buttonsTextStyle,
84
+ inactiveButtonsTextStyle = _ref.inactiveButtonsTextStyle,
79
85
  goodAnswerColor = _ref.goodAnswerColor,
80
86
  badAnswerColor = _ref.badAnswerColor,
81
87
  showUserAnswer = _ref.showUserAnswer,
@@ -97,14 +103,14 @@ var Answers = function Answers(_ref) {
97
103
  var answered = answeredIndex !== null;
98
104
  var _ref2 = answeredIndex !== null ? items[answeredIndex] : {},
99
105
  _ref2$good = _ref2.good,
100
- hasAnsweredRight = _ref2$good === void 0 ? false : _ref2$good;
106
+ hasAnsweredRight = _ref2$good === undefined ? false : _ref2$good;
101
107
  var _useState = useState(true),
102
108
  _useState2 = _slicedToArray(_useState, 1),
103
109
  visible = _useState2[0];
104
110
  var hasRightAnswer = items !== null && !isPlaceholder ? items.reduce(function (hasGood, answer) {
105
111
  var _ref3 = answer || {},
106
112
  _ref3$good = _ref3.good,
107
- good = _ref3$good === void 0 ? false : _ref3$good;
113
+ good = _ref3$good === undefined ? false : _ref3$good;
108
114
  return hasGood || good;
109
115
  }, false) : false;
110
116
  var finalShowUserAnswer = showUserAnswer || !hasRightAnswer;
@@ -173,7 +179,7 @@ var Answers = function Answers(_ref) {
173
179
  if (itemsRefs.current[i] && collapseAnimated) {
174
180
  var _ref4 = itemsRefs.current[i].getBoundingClientRect() || {},
175
181
  _ref4$height = _ref4.height,
176
- height = _ref4$height === void 0 ? 0 : _ref4$height;
182
+ height = _ref4$height === undefined ? 0 : _ref4$height;
177
183
  acc.push(height);
178
184
  }
179
185
  return acc;
@@ -188,7 +194,7 @@ var Answers = function Answers(_ref) {
188
194
  var userAnswer = answerI === answeredIndex;
189
195
  var _ref5 = answer || {},
190
196
  _ref5$good = _ref5.good,
191
- rightAnswer = _ref5$good === void 0 ? false : _ref5$good;
197
+ rightAnswer = _ref5$good === undefined ? false : _ref5$good;
192
198
  var hidden = false;
193
199
  if (answeredIndex !== null && showAnimation && answersDidCollapse && !rightAnswer && (hasRightAnswer || !userAnswer)) {
194
200
  hidden = true;
@@ -206,16 +212,16 @@ var Answers = function Answers(_ref) {
206
212
  var transitions = useTransition(filteredListOfItems, {
207
213
  key: function key(_ref6) {
208
214
  var _ref6$index = _ref6.index,
209
- index = _ref6$index === void 0 ? 0 : _ref6$index,
215
+ index = _ref6$index === undefined ? 0 : _ref6$index,
210
216
  _ref6$label = _ref6.label,
211
- label = _ref6$label === void 0 ? null : _ref6$label;
212
- return "key-".concat(index, "-").concat((label === null || label === void 0 ? void 0 : label.body) || null);
217
+ label = _ref6$label === undefined ? null : _ref6$label;
218
+ return "key-".concat(index, "-").concat((label === null || label === undefined ? undefined : label.body) || null);
213
219
  },
214
220
  update: function update(_ref7) {
215
221
  var _ref7$hidden = _ref7.hidden,
216
- hidden = _ref7$hidden === void 0 ? false : _ref7$hidden,
222
+ hidden = _ref7$hidden === undefined ? false : _ref7$hidden,
217
223
  _ref7$maxHeight = _ref7.maxHeight,
218
- maxHeight = _ref7$maxHeight === void 0 ? 0 : _ref7$maxHeight;
224
+ maxHeight = _ref7$maxHeight === undefined ? 0 : _ref7$maxHeight;
219
225
  return {
220
226
  opacity: hidden && showAnimation && !withoutGoodAnswer ? 0 : 1,
221
227
  // Animate this, not height
@@ -236,28 +242,38 @@ var Answers = function Answers(_ref) {
236
242
  onTransitionEnd();
237
243
  }
238
244
  }, [transitioned, onTransitionEnd]);
245
+ var hasOpacity = useMemo(function () {
246
+ var _ref8 = inactiveButtonsStyle || {},
247
+ _ref8$backgroundColor = _ref8.backgroundColor,
248
+ backgroundColor = _ref8$backgroundColor === undefined ? null : _ref8$backgroundColor;
249
+ return backgroundColor === null;
250
+ }, [inactiveButtonsStyle]);
239
251
  return /*#__PURE__*/React.createElement("div", {
240
252
  className: classNames([styles$4.container, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$4.answered, answered), styles$4.withIcon, !withoutIcon), styles$4.isPlaceholder, isPlaceholder), className, className !== null)])
241
253
  }, filteredListOfItems !== null || isPlaceholder ? /*#__PURE__*/React.createElement("div", {
242
254
  className: styles$4.items
243
255
  }, transitions(function (style, answer, t, answerI) {
244
256
  var userAnswer = answerI === answeredIndex;
245
- var _ref9 = answer || {},
246
- _ref9$good = _ref9.good,
247
- rightAnswer = _ref9$good === void 0 ? null : _ref9$good,
248
- _ref9$label = _ref9.label,
249
- label = _ref9$label === void 0 ? null : _ref9$label,
250
- _ref9$buttonStyle = _ref9.buttonStyle,
251
- answerButtonStyle = _ref9$buttonStyle === void 0 ? null : _ref9$buttonStyle,
252
- _ref9$textStyle = _ref9.textStyle,
253
- answerButtonTextStyle = _ref9$textStyle === void 0 ? null : _ref9$textStyle;
254
- var _ref10 = label || {},
257
+ var _ref10 = answer || {},
258
+ _ref10$good = _ref10.good,
259
+ rightAnswer = _ref10$good === undefined ? null : _ref10$good,
260
+ _ref10$label = _ref10.label,
261
+ label = _ref10$label === undefined ? null : _ref10$label,
262
+ _ref10$buttonStyle = _ref10.buttonStyle,
263
+ answerButtonStyle = _ref10$buttonStyle === undefined ? null : _ref10$buttonStyle,
255
264
  _ref10$textStyle = _ref10.textStyle,
256
- textStyle = _ref10$textStyle === void 0 ? null : _ref10$textStyle;
265
+ answerButtonTextStyle = _ref10$textStyle === undefined ? null : _ref10$textStyle;
266
+ var _ref11 = label || {},
267
+ _ref11$textStyle = _ref11.textStyle,
268
+ textStyle = _ref11$textStyle === undefined ? null : _ref11$textStyle;
257
269
  var hasAnswer = isTextFilled(label);
270
+ var isUserAnswer = withoutGoodAnswer && userAnswer;
271
+ var isOtherAnswer = withoutGoodAnswer && !userAnswer;
272
+ var inactiveButtonStyle = isOtherAnswer ? inactiveButtonsStyle : null;
273
+ var inactiveButtonTextStyle = isOtherAnswer ? inactiveButtonsTextStyle : null;
258
274
  return /*#__PURE__*/React.createElement(animated.div, {
259
275
  key: "answer-".concat(answerI),
260
- className: classNames([styles$4.item, _defineProperty(_defineProperty(_defineProperty({}, styles$4.rightAnswer, !withoutGoodAnswer && rightAnswer === true), styles$4.userAnswer, withoutGoodAnswer && userAnswer), styles$4.otherAnswer, withoutGoodAnswer && !userAnswer)]),
276
+ className: classNames([styles$4.item, _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, styles$4.rightAnswer, !withoutGoodAnswer && rightAnswer === true), styles$4.userAnswer, isUserAnswer), styles$4.otherAnswer, isOtherAnswer), styles$4.withoutOpacity, !hasOpacity)]),
261
277
  onTransitionEnd: onAnswerTransitionEnd,
262
278
  style: _objectSpread({}, style)
263
279
  }, /*#__PURE__*/React.createElement("div", {
@@ -292,8 +308,8 @@ var Answers = function Answers(_ref) {
292
308
  },
293
309
  disabled: !visible || isPreview || answered,
294
310
  focusable: focusable,
295
- buttonStyle: _objectSpread(_objectSpread({}, buttonsStyle), answerButtonStyle),
296
- textStyle: _objectSpread(_objectSpread({}, buttonsTextStyle), answerButtonTextStyle)
311
+ buttonStyle: _objectSpread(_objectSpread(_objectSpread({}, buttonsStyle), inactiveButtonStyle), answerButtonStyle),
312
+ textStyle: _objectSpread(_objectSpread(_objectSpread({}, buttonsTextStyle), inactiveButtonTextStyle), answerButtonTextStyle)
297
313
  }, answered && !withoutIcon && rightAnswer === true ? /*#__PURE__*/React.createElement("span", {
298
314
  className: styles$4.resultIcon,
299
315
  style: getStyleFromColor(goodAnswerColor, 'backgroundColor')
@@ -329,7 +345,9 @@ var propTypes$4 = {
329
345
  totalCount: PropTypes$1.number,
330
346
  answeredIndex: PropTypes$1.number,
331
347
  buttonsStyle: PropTypes.boxStyle,
348
+ inactiveButtonsStyle: PropTypes.boxStyle,
332
349
  buttonsTextStyle: PropTypes.textStyle,
350
+ inactiveButtonsTextStyle: PropTypes.textStyle,
333
351
  questionsHeadingStyle: PropTypes.textStyle,
334
352
  goodAnswerColor: PropTypes.color,
335
353
  badAnswerColor: PropTypes.color,
@@ -359,7 +377,9 @@ var defaultProps$4 = {
359
377
  totalCount: null,
360
378
  answeredIndex: null,
361
379
  buttonsStyle: null,
380
+ inactiveButtonsStyle: null,
362
381
  buttonsTextStyle: null,
382
+ inactiveButtonsTextStyle: null,
363
383
  questionsHeadingStyle: null,
364
384
  goodAnswerColor: null,
365
385
  badAnswerColor: null,
@@ -389,7 +409,9 @@ var Question = function Question(_ref) {
389
409
  totalCount = _ref.totalCount,
390
410
  answeredIndex = _ref.answeredIndex,
391
411
  buttonsStyle = _ref.buttonsStyle,
412
+ inactiveButtonsStyle = _ref.inactiveButtonsStyle,
392
413
  buttonsTextStyle = _ref.buttonsTextStyle,
414
+ inactiveButtonsTextStyle = _ref.inactiveButtonsTextStyle,
393
415
  questionsHeadingStyle = _ref.questionsHeadingStyle,
394
416
  goodAnswerColor = _ref.goodAnswerColor,
395
417
  badAnswerColor = _ref.badAnswerColor,
@@ -416,7 +438,7 @@ var Question = function Question(_ref) {
416
438
  var hasQuestion = isTextFilled(question);
417
439
  var _ref2 = question || {},
418
440
  _ref2$textStyle = _ref2.textStyle,
419
- questionTextStyle = _ref2$textStyle === void 0 ? null : _ref2$textStyle;
441
+ questionTextStyle = _ref2$textStyle === undefined ? null : _ref2$textStyle;
420
442
  var _useState = useState(showInstantAnswer),
421
443
  _useState2 = _slicedToArray(_useState, 2),
422
444
  resultVisible = _useState2[0],
@@ -425,9 +447,9 @@ var Question = function Question(_ref) {
425
447
  var answer = answeredIndex !== null && answers[answeredIndex] ? answers[answeredIndex] : null;
426
448
  var _ref3 = answer || {},
427
449
  _ref3$customAnswerLab = _ref3.customAnswerLabel,
428
- customAnswerLabel = _ref3$customAnswerLab === void 0 ? null : _ref3$customAnswerLab,
450
+ customAnswerLabel = _ref3$customAnswerLab === undefined ? null : _ref3$customAnswerLab,
429
451
  _ref3$answerImage = _ref3.answerImage,
430
- answerImage = _ref3$answerImage === void 0 ? null : _ref3$answerImage;
452
+ answerImage = _ref3$answerImage === undefined ? null : _ref3$answerImage;
431
453
  var hasResult = isTextFilled(customAnswerLabel) || isTextFilled(result);
432
454
  var hasResultVisual = isImageFilled(answerImage) || isImageFilled(resultImage);
433
455
  var defaultResult = isTextFilled(result) ? result : null;
@@ -482,7 +504,9 @@ var Question = function Question(_ref) {
482
504
  withoutIcon: withoutTrueFalse,
483
505
  showUserAnswer: withoutTrueFalse,
484
506
  buttonsStyle: buttonsStyle,
507
+ inactiveButtonsStyle: inactiveButtonsStyle,
485
508
  buttonsTextStyle: buttonsTextStyle,
509
+ inactiveButtonsTextStyle: inactiveButtonsTextStyle,
486
510
  focusable: focusable,
487
511
  animated: animated,
488
512
  transitions: transitions,
@@ -536,7 +560,9 @@ var propTypes$3 = {
536
560
  }),
537
561
  resultImage: PropTypes.visualElement,
538
562
  buttonsStyle: PropTypes.boxStyle,
563
+ inactiveButtonsStyle: PropTypes.boxStyle,
539
564
  buttonsTextStyle: PropTypes.textStyle,
565
+ inactiveButtonsTextStyle: PropTypes.textStyle,
540
566
  goodAnswerColor: PropTypes.color,
541
567
  badAnswerColor: PropTypes.color,
542
568
  withoutTrueFalse: PropTypes$1.bool,
@@ -560,7 +586,9 @@ var defaultProps$3 = {
560
586
  result: null,
561
587
  resultImage: null,
562
588
  buttonsStyle: null,
589
+ inactiveButtonsStyle: null,
563
590
  buttonsTextStyle: null,
591
+ inactiveButtonsTextStyle: null,
564
592
  goodAnswerColor: null,
565
593
  badAnswerColor: null,
566
594
  withoutTrueFalse: false,
@@ -584,7 +612,9 @@ var QuizScreen = function QuizScreen(_ref) {
584
612
  result = _ref.result,
585
613
  resultImage = _ref.resultImage,
586
614
  buttonsStyle = _ref.buttonsStyle,
615
+ inactiveButtonsStyle = _ref.inactiveButtonsStyle,
587
616
  buttonsTextStyle = _ref.buttonsTextStyle,
617
+ inactiveButtonsTextStyle = _ref.inactiveButtonsTextStyle,
588
618
  goodAnswerColor = _ref.goodAnswerColor,
589
619
  badAnswerColor = _ref.badAnswerColor,
590
620
  withoutTrueFalse = _ref.withoutTrueFalse,
@@ -637,11 +667,11 @@ var QuizScreen = function QuizScreen(_ref) {
637
667
  var _useDimensionObserver = useDimensionObserver(),
638
668
  headerRef = _useDimensionObserver.ref,
639
669
  _useDimensionObserver2 = _useDimensionObserver.height,
640
- headerHeight = _useDimensionObserver2 === void 0 ? 0 : _useDimensionObserver2;
670
+ headerHeight = _useDimensionObserver2 === undefined ? 0 : _useDimensionObserver2;
641
671
  var _useDimensionObserver3 = useDimensionObserver(),
642
672
  footerRef = _useDimensionObserver3.ref,
643
673
  _useDimensionObserver4 = _useDimensionObserver3.height,
644
- footerHeight = _useDimensionObserver4 === void 0 ? 0 : _useDimensionObserver4;
674
+ footerHeight = _useDimensionObserver4 === undefined ? 0 : _useDimensionObserver4;
645
675
  var showInstantAnswer = isStatic || isCapture;
646
676
  var goodAnswerIndex = answers !== null ? answers.findIndex(function (answer) {
647
677
  return answer !== null && answer.good;
@@ -677,12 +707,12 @@ var QuizScreen = function QuizScreen(_ref) {
677
707
  if (userAnswerIndex !== null) {
678
708
  var _ref2 = userAnswerIndex !== null && answers ? answers[userAnswerIndex] : {},
679
709
  _ref2$good = _ref2.good,
680
- isGood = _ref2$good === void 0 ? false : _ref2$good,
710
+ isGood = _ref2$good === undefined ? false : _ref2$good,
681
711
  _ref2$label = _ref2.label,
682
- label = _ref2$label === void 0 ? {} : _ref2$label;
712
+ label = _ref2$label === undefined ? {} : _ref2$label;
683
713
  var _ref3 = label || {},
684
714
  _ref3$body = _ref3.body,
685
- body = _ref3$body === void 0 ? '' : _ref3$body;
715
+ body = _ref3$body === undefined ? '' : _ref3$body;
686
716
  submitQuiz({
687
717
  choice: body || userAnswerIndex,
688
718
  value: isGood ? 1 : 0
@@ -710,7 +740,7 @@ var QuizScreen = function QuizScreen(_ref) {
710
740
  setHasScroll = _useState6[1];
711
741
  var onScrollHeightChange = useCallback(function (_ref5) {
712
742
  var _ref5$canScroll = _ref5.canScroll,
713
- canScroll = _ref5$canScroll === void 0 ? false : _ref5$canScroll;
743
+ canScroll = _ref5$canScroll === undefined ? false : _ref5$canScroll;
714
744
  setHasScroll(canScroll);
715
745
  }, [setHasScroll]);
716
746
  var onQuizReset = useCallback(function () {
@@ -764,6 +794,8 @@ var QuizScreen = function QuizScreen(_ref) {
764
794
  answeredIndex: userAnswerIndex,
765
795
  buttonsStyle: buttonsStyle,
766
796
  buttonsTextStyle: buttonsTextStyle,
797
+ inactiveButtonsStyle: inactiveButtonsStyle,
798
+ inactiveButtonsTextStyle: inactiveButtonsTextStyle,
767
799
  goodAnswerColor: goodAnswerColor,
768
800
  badAnswerColor: badAnswerColor,
769
801
  withoutTrueFalse: withoutTrueFalse,
@@ -855,11 +887,11 @@ var Results = function Results(_ref) {
855
887
  var hasTitle = isTextFilled(title);
856
888
  var _ref2 = title || {},
857
889
  _ref2$textStyle = _ref2.textStyle,
858
- titleTextStyle = _ref2$textStyle === void 0 ? null : _ref2$textStyle;
890
+ titleTextStyle = _ref2$textStyle === undefined ? null : _ref2$textStyle;
859
891
  var hasDescription = isTextFilled(description);
860
892
  var _ref3 = description || {},
861
893
  _ref3$textStyle = _ref3.textStyle,
862
- descriptionTextStyle = _ref3$textStyle === void 0 ? null : _ref3$textStyle;
894
+ descriptionTextStyle = _ref3$textStyle === undefined ? null : _ref3$textStyle;
863
895
  return /*#__PURE__*/React.createElement(Layout, {
864
896
  className: classNames([styles$1.container, _defineProperty({}, className, className !== null)]),
865
897
  fullscreen: true,
@@ -1023,7 +1055,9 @@ var propTypes = {
1023
1055
  description: PropTypes.textElement
1024
1056
  })),
1025
1057
  buttonsStyle: PropTypes.boxStyle,
1058
+ inactiveButtonsStyle: PropTypes.boxStyle,
1026
1059
  buttonsTextStyle: PropTypes.textStyle,
1060
+ inactiveButtonsTextStyle: PropTypes.textStyle,
1027
1061
  questionsHeadingStyle: PropTypes.textStyle,
1028
1062
  resultsHeadingStyle: PropTypes.textStyle,
1029
1063
  resultsTextStyle: PropTypes.textStyle,
@@ -1051,7 +1085,9 @@ var defaultProps = {
1051
1085
  questions: null,
1052
1086
  results: null,
1053
1087
  buttonsStyle: null,
1088
+ inactiveButtonsStyle: null,
1054
1089
  buttonsTextStyle: null,
1090
+ inactiveButtonsTextStyle: null,
1055
1091
  questionsHeadingStyle: null,
1056
1092
  resultsHeadingStyle: null,
1057
1093
  resultsTextStyle: null,
@@ -1079,7 +1115,9 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1079
1115
  questions = _ref.questions,
1080
1116
  results = _ref.results,
1081
1117
  buttonsStyle = _ref.buttonsStyle,
1118
+ inactiveButtonsStyle = _ref.inactiveButtonsStyle,
1082
1119
  buttonsTextStyle = _ref.buttonsTextStyle,
1120
+ inactiveButtonsTextStyle = _ref.inactiveButtonsTextStyle,
1083
1121
  questionsHeadingStyle = _ref.questionsHeadingStyle,
1084
1122
  resultsHeadingStyle = _ref.resultsHeadingStyle,
1085
1123
  resultsTextStyle = _ref.resultsTextStyle,
@@ -1123,9 +1161,9 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1123
1161
  var _ref2 = screenState !== null ? screenState.split('.') : [],
1124
1162
  _ref3 = _slicedToArray(_ref2, 2),
1125
1163
  _ref3$ = _ref3[0],
1126
- stateId = _ref3$ === void 0 ? null : _ref3$,
1164
+ stateId = _ref3$ === undefined ? null : _ref3$,
1127
1165
  _ref3$2 = _ref3[1],
1128
- stateIndex = _ref3$2 === void 0 ? 0 : _ref3$2;
1166
+ stateIndex = _ref3$2 === undefined ? 0 : _ref3$2;
1129
1167
  var transitionPlaying = current;
1130
1168
  var transitionDisabled = isStatic || isCapture || isPlaceholder || isPreview || isEdit;
1131
1169
  var backgroundPlaying = current && (isView || isEdit);
@@ -1144,11 +1182,11 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1144
1182
  var _useDimensionObserver = useDimensionObserver(),
1145
1183
  headerRef = _useDimensionObserver.ref,
1146
1184
  _useDimensionObserver2 = _useDimensionObserver.height,
1147
- headerHeight = _useDimensionObserver2 === void 0 ? 0 : _useDimensionObserver2;
1185
+ headerHeight = _useDimensionObserver2 === undefined ? 0 : _useDimensionObserver2;
1148
1186
  var _useDimensionObserver3 = useDimensionObserver(),
1149
1187
  footerRef = _useDimensionObserver3.ref,
1150
1188
  _useDimensionObserver4 = _useDimensionObserver3.height,
1151
- callToActionHeight = _useDimensionObserver4 === void 0 ? 0 : _useDimensionObserver4;
1189
+ callToActionHeight = _useDimensionObserver4 === undefined ? 0 : _useDimensionObserver4;
1152
1190
  var showInstantAnswer = isStatic || isCapture;
1153
1191
  var hasIntro = title !== null || description !== null || isEdit || stateId === 'intro';
1154
1192
  var _useState = useState(null),
@@ -1202,23 +1240,23 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1202
1240
  var hasQuestions = questions !== null && questions.length > 0;
1203
1241
  var currentQuestion = hasQuestions ? questions[questionIndex] || {} : {};
1204
1242
  var _currentQuestion$text = currentQuestion.text,
1205
- text = _currentQuestion$text === void 0 ? null : _currentQuestion$text,
1243
+ text = _currentQuestion$text === undefined ? null : _currentQuestion$text,
1206
1244
  _currentQuestion$answ = currentQuestion.answers,
1207
- answers = _currentQuestion$answ === void 0 ? [] : _currentQuestion$answ,
1245
+ answers = _currentQuestion$answ === undefined ? [] : _currentQuestion$answ,
1208
1246
  _currentQuestion$back = currentQuestion.background,
1209
- questionBackground = _currentQuestion$back === void 0 ? null : _currentQuestion$back,
1247
+ questionBackground = _currentQuestion$back === undefined ? null : _currentQuestion$back,
1210
1248
  _currentQuestion$layo = currentQuestion.layout,
1211
- questionLayout = _currentQuestion$layo === void 0 ? null : _currentQuestion$layo;
1249
+ questionLayout = _currentQuestion$layo === undefined ? null : _currentQuestion$layo;
1212
1250
  var currentAnsweredIndex = userAnswers !== null && typeof userAnswers[questionIndex] !== 'undefined' ? userAnswers[questionIndex] : null;
1213
1251
  var currentPoints = useMemo(function () {
1214
1252
  return userAnswers !== null ? Object.keys(userAnswers).reduce(function (totalPoints, answerQuestionIndex) {
1215
1253
  var _ref4 = questions !== null ? questions[answerQuestionIndex] || {} : {},
1216
1254
  _ref4$answers = _ref4.answers,
1217
- questionAnswers = _ref4$answers === void 0 ? [] : _ref4$answers;
1255
+ questionAnswers = _ref4$answers === undefined ? [] : _ref4$answers;
1218
1256
  var answerIndex = userAnswers[answerQuestionIndex];
1219
1257
  var _ref5 = questionAnswers[answerIndex] || {},
1220
1258
  _ref5$points = _ref5.points,
1221
- points = _ref5$points === void 0 ? 0 : _ref5$points;
1259
+ points = _ref5$points === undefined ? 0 : _ref5$points;
1222
1260
  return points + totalPoints;
1223
1261
  }, 0) : 0;
1224
1262
  }, [userAnswers, questions]);
@@ -1234,9 +1272,9 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1234
1272
  }
1235
1273
  return (results || []).sort(function (_ref6, _ref7) {
1236
1274
  var _ref6$points = _ref6.points,
1237
- pointsA = _ref6$points === void 0 ? 0 : _ref6$points;
1275
+ pointsA = _ref6$points === undefined ? 0 : _ref6$points;
1238
1276
  var _ref7$points = _ref7.points,
1239
- pointsB = _ref7$points === void 0 ? 0 : _ref7$points;
1277
+ pointsB = _ref7$points === undefined ? 0 : _ref7$points;
1240
1278
  if (pointsA === pointsB) {
1241
1279
  return 0;
1242
1280
  }
@@ -1244,18 +1282,18 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1244
1282
  }).reduce(function (lastResult, result) {
1245
1283
  var _ref8 = lastResult || {},
1246
1284
  _ref8$points = _ref8.points,
1247
- lastPoints = _ref8$points === void 0 ? 0 : _ref8$points;
1285
+ lastPoints = _ref8$points === undefined ? 0 : _ref8$points;
1248
1286
  var _ref9 = result || {},
1249
1287
  _ref9$points = _ref9.points,
1250
- points = _ref9$points === void 0 ? 0 : _ref9$points;
1288
+ points = _ref9$points === undefined ? 0 : _ref9$points;
1251
1289
  return currentPoints >= (lastPoints || 0) && currentPoints >= points ? result : lastResult;
1252
1290
  }, null);
1253
1291
  }, [isResults, results, currentPoints, stateId, stateIndex]);
1254
1292
  var _ref10 = currentResult || {},
1255
1293
  _ref10$background = _ref10.background,
1256
- resultBackground = _ref10$background === void 0 ? null : _ref10$background,
1294
+ resultBackground = _ref10$background === undefined ? null : _ref10$background,
1257
1295
  _ref10$layout = _ref10.layout,
1258
- resultLayout = _ref10$layout === void 0 ? null : _ref10$layout;
1296
+ resultLayout = _ref10$layout === undefined ? null : _ref10$layout;
1259
1297
  var _useQuizCreate = useQuizCreate({
1260
1298
  screenId: screenId
1261
1299
  }),
@@ -1331,7 +1369,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1331
1369
  setHasScroll = _useState8[1];
1332
1370
  var onScrollHeightChange = useCallback(function (_ref12) {
1333
1371
  var _ref12$canScroll = _ref12.canScroll,
1334
- canScroll = _ref12$canScroll === void 0 ? false : _ref12$canScroll;
1372
+ canScroll = _ref12$canScroll === undefined ? false : _ref12$canScroll;
1335
1373
  setHasScroll(canScroll);
1336
1374
  }, [setHasScroll]);
1337
1375
  var onQuizReset = useCallback(function () {
@@ -1420,7 +1458,9 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1420
1458
  answers: answers,
1421
1459
  answeredIndex: currentAnsweredIndex,
1422
1460
  buttonsStyle: buttonsStyle,
1461
+ inactiveButtonsStyle: inactiveButtonsStyle,
1423
1462
  buttonsTextStyle: buttonsTextStyle,
1463
+ inactiveButtonsTextStyle: inactiveButtonsTextStyle,
1424
1464
  questionsHeadingStyle: questionsHeadingStyle,
1425
1465
  goodAnswerColor: goodAnswerColor,
1426
1466
  badAnswerColor: badAnswerColor,
@@ -1613,24 +1653,44 @@ var definition = [{
1613
1653
  "value": "Buttons"
1614
1654
  }]
1615
1655
  })
1656
+ }, {
1657
+ name: 'inactiveButtonsTextStyle',
1658
+ type: 'text-style-form',
1659
+ label: defineMessage({
1660
+ id: "my7Kox",
1661
+ defaultMessage: [{
1662
+ "type": 0,
1663
+ "value": "Inactive buttons text"
1664
+ }]
1665
+ })
1666
+ }, {
1667
+ name: 'inactiveButtonsStyle',
1668
+ type: 'box-style-form',
1669
+ label: defineMessage({
1670
+ id: "xlFOg3",
1671
+ defaultMessage: [{
1672
+ "type": 0,
1673
+ "value": "Inactive buttons"
1674
+ }]
1675
+ })
1616
1676
  }, {
1617
1677
  name: 'goodAnswerColor',
1618
1678
  type: 'color',
1619
1679
  label: defineMessage({
1620
- id: "I2bIHm",
1680
+ id: "hZcXoa",
1621
1681
  defaultMessage: [{
1622
1682
  "type": 0,
1623
- "value": "Good answer color"
1683
+ "value": "Good answer icon color"
1624
1684
  }]
1625
1685
  })
1626
1686
  }, {
1627
1687
  name: 'badAnswerColor',
1628
1688
  type: 'color',
1629
1689
  label: defineMessage({
1630
- id: "ru3tjH",
1690
+ id: "NbTtNk",
1631
1691
  defaultMessage: [{
1632
1692
  "type": 0,
1633
- "value": "Bad answer color"
1693
+ "value": "Bad answer icon color"
1634
1694
  }]
1635
1695
  })
1636
1696
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-quiz",
3
- "version": "0.3.606",
3
+ "version": "0.3.608",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -63,19 +63,19 @@
63
63
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
64
64
  "@fortawesome/free-solid-svg-icons": "^6.5.2",
65
65
  "@fortawesome/react-fontawesome": "^0.2.0",
66
- "@micromag/core": "^0.3.606",
67
- "@micromag/data": "^0.3.606",
68
- "@micromag/element-background": "^0.3.606",
69
- "@micromag/element-button": "^0.3.606",
70
- "@micromag/element-container": "^0.3.606",
71
- "@micromag/element-footer": "^0.3.606",
72
- "@micromag/element-header": "^0.3.606",
73
- "@micromag/element-heading": "^0.3.606",
74
- "@micromag/element-layout": "^0.3.606",
75
- "@micromag/element-scroll": "^0.3.606",
76
- "@micromag/element-text": "^0.3.606",
77
- "@micromag/element-visual": "^0.3.606",
78
- "@micromag/transforms": "^0.3.606",
66
+ "@micromag/core": "^0.3.608",
67
+ "@micromag/data": "^0.3.608",
68
+ "@micromag/element-background": "^0.3.608",
69
+ "@micromag/element-button": "^0.3.608",
70
+ "@micromag/element-container": "^0.3.608",
71
+ "@micromag/element-footer": "^0.3.608",
72
+ "@micromag/element-header": "^0.3.608",
73
+ "@micromag/element-heading": "^0.3.608",
74
+ "@micromag/element-layout": "^0.3.608",
75
+ "@micromag/element-scroll": "^0.3.608",
76
+ "@micromag/element-text": "^0.3.608",
77
+ "@micromag/element-visual": "^0.3.608",
78
+ "@micromag/transforms": "^0.3.608",
79
79
  "@react-spring/core": "^9.6.1",
80
80
  "@react-spring/web": "^9.6.1",
81
81
  "classnames": "^2.2.6",
@@ -89,5 +89,5 @@
89
89
  "access": "public",
90
90
  "registry": "https://registry.npmjs.org/"
91
91
  },
92
- "gitHead": "0e2ee772952cc24e6824806bd23a7c65c8858c73"
92
+ "gitHead": "02f8cfe4dde0c33bec9ed7c3bdb671cd8acf78bc"
93
93
  }