@micromag/screen-quiz 0.4.42 → 0.4.43
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 -1
- package/package.json +16 -16
package/es/index.js
CHANGED
|
@@ -26,6 +26,7 @@ import { faTimes } from '@fortawesome/free-solid-svg-icons/faTimes';
|
|
|
26
26
|
import Button$1, { RichButton } from '@micromag/element-button';
|
|
27
27
|
import Keypad from '@micromag/element-keypad';
|
|
28
28
|
import { useTransition, easings, animated } from '@react-spring/web';
|
|
29
|
+
import isArray from 'lodash/isArray';
|
|
29
30
|
|
|
30
31
|
var styles$4 = {"container":"micromag-screen-quiz-answers-container","items":"micromag-screen-quiz-answers-items","emptyAnswer":"micromag-screen-quiz-answers-emptyAnswer","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","button":"micromag-screen-quiz-answers-button","withIcon":"micromag-screen-quiz-answers-withIcon","withSquareItems":"micromag-screen-quiz-answers-withSquareItems","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"};
|
|
31
32
|
|
|
@@ -1330,8 +1331,9 @@ function QuizMultipleScreen(_ref) {
|
|
|
1330
1331
|
if (!isResults || !isView) {
|
|
1331
1332
|
return;
|
|
1332
1333
|
}
|
|
1334
|
+
var finalUserAnswers = isArray(userAnswers) ? JSON.stringify(userAnswers) : userAnswers;
|
|
1333
1335
|
submitQuiz({
|
|
1334
|
-
choice:
|
|
1336
|
+
choice: finalUserAnswers,
|
|
1335
1337
|
value: currentPoints
|
|
1336
1338
|
});
|
|
1337
1339
|
}, [isView, isResults, userAnswers, submitQuiz]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.43",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
65
65
|
"@fortawesome/free-solid-svg-icons": "^7.2.0",
|
|
66
66
|
"@fortawesome/react-fontawesome": "^3.2.0",
|
|
67
|
-
"@micromag/core": "^0.4.
|
|
68
|
-
"@micromag/data": "^0.4.
|
|
69
|
-
"@micromag/element-background": "^0.4.
|
|
70
|
-
"@micromag/element-button": "^0.4.
|
|
71
|
-
"@micromag/element-container": "^0.4.
|
|
72
|
-
"@micromag/element-footer": "^0.4.
|
|
73
|
-
"@micromag/element-header": "^0.4.
|
|
74
|
-
"@micromag/element-heading": "^0.4.
|
|
75
|
-
"@micromag/element-keypad": "^0.4.
|
|
76
|
-
"@micromag/element-layout": "^0.4.
|
|
77
|
-
"@micromag/element-scroll": "^0.4.
|
|
78
|
-
"@micromag/element-text": "^0.4.
|
|
79
|
-
"@micromag/element-visual": "^0.4.
|
|
80
|
-
"@micromag/transforms": "^0.4.
|
|
67
|
+
"@micromag/core": "^0.4.43",
|
|
68
|
+
"@micromag/data": "^0.4.43",
|
|
69
|
+
"@micromag/element-background": "^0.4.43",
|
|
70
|
+
"@micromag/element-button": "^0.4.43",
|
|
71
|
+
"@micromag/element-container": "^0.4.43",
|
|
72
|
+
"@micromag/element-footer": "^0.4.43",
|
|
73
|
+
"@micromag/element-header": "^0.4.43",
|
|
74
|
+
"@micromag/element-heading": "^0.4.43",
|
|
75
|
+
"@micromag/element-keypad": "^0.4.43",
|
|
76
|
+
"@micromag/element-layout": "^0.4.43",
|
|
77
|
+
"@micromag/element-scroll": "^0.4.43",
|
|
78
|
+
"@micromag/element-text": "^0.4.43",
|
|
79
|
+
"@micromag/element-visual": "^0.4.43",
|
|
80
|
+
"@micromag/transforms": "^0.4.43",
|
|
81
81
|
"@react-spring/core": "^10.0.3",
|
|
82
82
|
"@react-spring/web": "^10.0.3",
|
|
83
83
|
"classnames": "^2.2.6",
|
|
@@ -89,6 +89,6 @@
|
|
|
89
89
|
"access": "public",
|
|
90
90
|
"registry": "https://registry.npmjs.org/"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "e168b7a9990472d1cb36973e4e45334f16bbeba6",
|
|
93
93
|
"types": "es/index.d.ts"
|
|
94
94
|
}
|