@micromag/screen-quiz 0.3.480 → 0.3.482
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 +14 -8
- package/lib/index.js +15 -9
- package/package.json +16 -15
package/es/index.js
CHANGED
|
@@ -303,6 +303,7 @@ var Answers = function Answers(_ref) {
|
|
|
303
303
|
};
|
|
304
304
|
Answers.propTypes = propTypes$5;
|
|
305
305
|
Answers.defaultProps = defaultProps$5;
|
|
306
|
+
var Answers$1 = Answers;
|
|
306
307
|
|
|
307
308
|
var styles$3 = {"container":"micromag-screen-quiz-question-container","emptyQuestion":"micromag-screen-quiz-question-emptyQuestion","emptyResult":"micromag-screen-quiz-question-emptyResult","question":"micromag-screen-quiz-question-question","index":"micromag-screen-quiz-question-index","result":"micromag-screen-quiz-question-result","resultContent":"micromag-screen-quiz-question-resultContent","resultVisible":"micromag-screen-quiz-question-resultVisible","isPlaceholder":"micromag-screen-quiz-question-isPlaceholder"};
|
|
308
309
|
|
|
@@ -461,7 +462,7 @@ var Question = function Question(_ref) {
|
|
|
461
462
|
textStyle: _objectSpread(_objectSpread({}, questionsHeadingStyle), questionTextStyle)
|
|
462
463
|
}))) : null), isSplitted ? /*#__PURE__*/React.createElement(Spacer, {
|
|
463
464
|
key: "spacer"
|
|
464
|
-
}) : null, /*#__PURE__*/React.createElement(Answers, {
|
|
465
|
+
}) : null, /*#__PURE__*/React.createElement(Answers$1, {
|
|
465
466
|
key: "answers",
|
|
466
467
|
items: answers || [],
|
|
467
468
|
answeredIndex: answeredIndex,
|
|
@@ -511,6 +512,7 @@ var Question = function Question(_ref) {
|
|
|
511
512
|
};
|
|
512
513
|
Question.propTypes = propTypes$4;
|
|
513
514
|
Question.defaultProps = defaultProps$4;
|
|
515
|
+
var Question$1 = Question;
|
|
514
516
|
|
|
515
517
|
var styles$2 = {"container":"micromag-screen-quiz-container","background":"micromag-screen-quiz-background","disabled":"micromag-screen-quiz-disabled","hidden":"micromag-screen-quiz-hidden","placeholder":"micromag-screen-quiz-placeholder","content":"micromag-screen-quiz-content","reset":"micromag-screen-quiz-reset","points":"micromag-screen-quiz-points","layout":"micromag-screen-quiz-layout","header":"micromag-screen-quiz-header","footer":"micromag-screen-quiz-footer","transition":"micromag-screen-quiz-transition","question":"micromag-screen-quiz-question","results":"micromag-screen-quiz-results","intro":"micromag-screen-quiz-intro","enter":"micromag-screen-quiz-enter","left":"micromag-screen-quiz-left","enterActive":"micromag-screen-quiz-enterActive","exit":"micromag-screen-quiz-exit","exitActive":"micromag-screen-quiz-exitActive"};
|
|
516
518
|
|
|
@@ -745,7 +747,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
745
747
|
paddingBottom: spacing,
|
|
746
748
|
transform: !isPreview ? "translate(0, ".concat(viewerTopHeight, "px)") : null
|
|
747
749
|
}
|
|
748
|
-
}, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question, {
|
|
750
|
+
}, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question$1, {
|
|
749
751
|
question: question,
|
|
750
752
|
answers: answers,
|
|
751
753
|
result: result,
|
|
@@ -798,6 +800,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
798
800
|
};
|
|
799
801
|
QuizScreen.propTypes = propTypes$3;
|
|
800
802
|
QuizScreen.defaultProps = defaultProps$3;
|
|
803
|
+
var QuizScreen$1 = QuizScreen;
|
|
801
804
|
|
|
802
805
|
var styles$1 = {"container":"micromag-screen-quiz-results-container","emptyTitle":"micromag-screen-quiz-results-emptyTitle","emptyDescription":"micromag-screen-quiz-results-emptyDescription","title":"micromag-screen-quiz-results-title","isPlaceholder":"micromag-screen-quiz-results-isPlaceholder"};
|
|
803
806
|
|
|
@@ -899,6 +902,7 @@ var Results = function Results(_ref) {
|
|
|
899
902
|
};
|
|
900
903
|
Results.propTypes = propTypes$2;
|
|
901
904
|
Results.defaultProps = defaultProps$2;
|
|
905
|
+
var Results$1 = Results;
|
|
902
906
|
|
|
903
907
|
var styles = {"container":"micromag-screen-quiz-title-container","emptyTitle":"micromag-screen-quiz-title-emptyTitle","emptyDescription":"micromag-screen-quiz-title-emptyDescription","title":"micromag-screen-quiz-title-title","description":"micromag-screen-quiz-title-description","isPlaceholder":"micromag-screen-quiz-title-isPlaceholder"};
|
|
904
908
|
|
|
@@ -996,6 +1000,7 @@ var Title = function Title(_ref) {
|
|
|
996
1000
|
};
|
|
997
1001
|
Title.propTypes = propTypes$1;
|
|
998
1002
|
Title.defaultProps = defaultProps$1;
|
|
1003
|
+
var Title$1 = Title;
|
|
999
1004
|
|
|
1000
1005
|
var propTypes = {
|
|
1001
1006
|
id: PropTypes$1.string,
|
|
@@ -1379,7 +1384,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1379
1384
|
key: "intro",
|
|
1380
1385
|
classNames: styles$2,
|
|
1381
1386
|
timeout: 1000
|
|
1382
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
1387
|
+
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
1383
1388
|
title: title,
|
|
1384
1389
|
description: description,
|
|
1385
1390
|
layout: introLayout || layout,
|
|
@@ -1402,7 +1407,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1402
1407
|
key: "question-".concat(questionIndex),
|
|
1403
1408
|
classNames: styles$2,
|
|
1404
1409
|
timeout: 1000
|
|
1405
|
-
}, /*#__PURE__*/React.createElement(Question, {
|
|
1410
|
+
}, /*#__PURE__*/React.createElement(Question$1, {
|
|
1406
1411
|
index: questionIndex,
|
|
1407
1412
|
totalCount: (questions || []).length,
|
|
1408
1413
|
question: text,
|
|
@@ -1434,7 +1439,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1434
1439
|
key: "results",
|
|
1435
1440
|
classNames: styles$2,
|
|
1436
1441
|
timeout: 2000
|
|
1437
|
-
}, /*#__PURE__*/React.createElement(Results, Object.assign({}, currentResult, {
|
|
1442
|
+
}, /*#__PURE__*/React.createElement(Results$1, Object.assign({}, currentResult, {
|
|
1438
1443
|
resultsHeadingStyle: resultsHeadingStyle,
|
|
1439
1444
|
resultsTextStyle: resultsTextStyle,
|
|
1440
1445
|
layout: resultLayout || layout,
|
|
@@ -1477,6 +1482,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1477
1482
|
};
|
|
1478
1483
|
QuizMultipleScreen.propTypes = propTypes;
|
|
1479
1484
|
QuizMultipleScreen.defaultProps = defaultProps;
|
|
1485
|
+
var QuizMultipleScreen$1 = QuizMultipleScreen;
|
|
1480
1486
|
|
|
1481
1487
|
var definition = [{
|
|
1482
1488
|
id: 'quiz',
|
|
@@ -1498,7 +1504,7 @@ var definition = [{
|
|
|
1498
1504
|
"value": "Quiz"
|
|
1499
1505
|
}]
|
|
1500
1506
|
}),
|
|
1501
|
-
component: QuizScreen,
|
|
1507
|
+
component: QuizScreen$1,
|
|
1502
1508
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
1503
1509
|
fields: [{
|
|
1504
1510
|
name: 'layout',
|
|
@@ -1690,7 +1696,7 @@ var definition = [{
|
|
|
1690
1696
|
"value": "Quiz with multiple questions"
|
|
1691
1697
|
}]
|
|
1692
1698
|
}),
|
|
1693
|
-
component: QuizMultipleScreen,
|
|
1699
|
+
component: QuizMultipleScreen$1,
|
|
1694
1700
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
1695
1701
|
states: [{
|
|
1696
1702
|
id: 'intro',
|
|
@@ -2012,4 +2018,4 @@ var definition = [{
|
|
|
2012
2018
|
}]
|
|
2013
2019
|
}];
|
|
2014
2020
|
|
|
2015
|
-
export { QuizMultipleScreen, QuizScreen, definition as default };
|
|
2021
|
+
export { QuizMultipleScreen$1 as QuizMultipleScreen, QuizScreen$1 as QuizScreen, definition as default };
|
package/lib/index.js
CHANGED
|
@@ -307,6 +307,7 @@ var Answers = function Answers(_ref) {
|
|
|
307
307
|
};
|
|
308
308
|
Answers.propTypes = propTypes$5;
|
|
309
309
|
Answers.defaultProps = defaultProps$5;
|
|
310
|
+
var Answers$1 = Answers;
|
|
310
311
|
|
|
311
312
|
var styles$3 = {"container":"micromag-screen-quiz-question-container","emptyQuestion":"micromag-screen-quiz-question-emptyQuestion","emptyResult":"micromag-screen-quiz-question-emptyResult","question":"micromag-screen-quiz-question-question","index":"micromag-screen-quiz-question-index","result":"micromag-screen-quiz-question-result","resultContent":"micromag-screen-quiz-question-resultContent","resultVisible":"micromag-screen-quiz-question-resultVisible","isPlaceholder":"micromag-screen-quiz-question-isPlaceholder"};
|
|
312
313
|
|
|
@@ -465,7 +466,7 @@ var Question = function Question(_ref) {
|
|
|
465
466
|
textStyle: _objectSpread(_objectSpread({}, questionsHeadingStyle), questionTextStyle)
|
|
466
467
|
}))) : null), isSplitted ? /*#__PURE__*/React.createElement(Layout.Spacer, {
|
|
467
468
|
key: "spacer"
|
|
468
|
-
}) : null, /*#__PURE__*/React.createElement(Answers, {
|
|
469
|
+
}) : null, /*#__PURE__*/React.createElement(Answers$1, {
|
|
469
470
|
key: "answers",
|
|
470
471
|
items: answers || [],
|
|
471
472
|
answeredIndex: answeredIndex,
|
|
@@ -515,6 +516,7 @@ var Question = function Question(_ref) {
|
|
|
515
516
|
};
|
|
516
517
|
Question.propTypes = propTypes$4;
|
|
517
518
|
Question.defaultProps = defaultProps$4;
|
|
519
|
+
var Question$1 = Question;
|
|
518
520
|
|
|
519
521
|
var styles$2 = {"container":"micromag-screen-quiz-container","background":"micromag-screen-quiz-background","disabled":"micromag-screen-quiz-disabled","hidden":"micromag-screen-quiz-hidden","placeholder":"micromag-screen-quiz-placeholder","content":"micromag-screen-quiz-content","reset":"micromag-screen-quiz-reset","points":"micromag-screen-quiz-points","layout":"micromag-screen-quiz-layout","header":"micromag-screen-quiz-header","footer":"micromag-screen-quiz-footer","transition":"micromag-screen-quiz-transition","question":"micromag-screen-quiz-question","results":"micromag-screen-quiz-results","intro":"micromag-screen-quiz-intro","enter":"micromag-screen-quiz-enter","left":"micromag-screen-quiz-left","enterActive":"micromag-screen-quiz-enterActive","exit":"micromag-screen-quiz-exit","exitActive":"micromag-screen-quiz-exitActive"};
|
|
520
522
|
|
|
@@ -749,7 +751,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
749
751
|
paddingBottom: spacing,
|
|
750
752
|
transform: !isPreview ? "translate(0, ".concat(viewerTopHeight, "px)") : null
|
|
751
753
|
}
|
|
752
|
-
}, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question, {
|
|
754
|
+
}, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question$1, {
|
|
753
755
|
question: question,
|
|
754
756
|
answers: answers,
|
|
755
757
|
result: result,
|
|
@@ -802,6 +804,7 @@ var QuizScreen = function QuizScreen(_ref) {
|
|
|
802
804
|
};
|
|
803
805
|
QuizScreen.propTypes = propTypes$3;
|
|
804
806
|
QuizScreen.defaultProps = defaultProps$3;
|
|
807
|
+
var QuizScreen$1 = QuizScreen;
|
|
805
808
|
|
|
806
809
|
var styles$1 = {"container":"micromag-screen-quiz-results-container","emptyTitle":"micromag-screen-quiz-results-emptyTitle","emptyDescription":"micromag-screen-quiz-results-emptyDescription","title":"micromag-screen-quiz-results-title","isPlaceholder":"micromag-screen-quiz-results-isPlaceholder"};
|
|
807
810
|
|
|
@@ -903,6 +906,7 @@ var Results = function Results(_ref) {
|
|
|
903
906
|
};
|
|
904
907
|
Results.propTypes = propTypes$2;
|
|
905
908
|
Results.defaultProps = defaultProps$2;
|
|
909
|
+
var Results$1 = Results;
|
|
906
910
|
|
|
907
911
|
var styles = {"container":"micromag-screen-quiz-title-container","emptyTitle":"micromag-screen-quiz-title-emptyTitle","emptyDescription":"micromag-screen-quiz-title-emptyDescription","title":"micromag-screen-quiz-title-title","description":"micromag-screen-quiz-title-description","isPlaceholder":"micromag-screen-quiz-title-isPlaceholder"};
|
|
908
912
|
|
|
@@ -1000,6 +1004,7 @@ var Title = function Title(_ref) {
|
|
|
1000
1004
|
};
|
|
1001
1005
|
Title.propTypes = propTypes$1;
|
|
1002
1006
|
Title.defaultProps = defaultProps$1;
|
|
1007
|
+
var Title$1 = Title;
|
|
1003
1008
|
|
|
1004
1009
|
var propTypes = {
|
|
1005
1010
|
id: PropTypes.string,
|
|
@@ -1383,7 +1388,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1383
1388
|
key: "intro",
|
|
1384
1389
|
classNames: styles$2,
|
|
1385
1390
|
timeout: 1000
|
|
1386
|
-
}, /*#__PURE__*/React.createElement(Title, {
|
|
1391
|
+
}, /*#__PURE__*/React.createElement(Title$1, {
|
|
1387
1392
|
title: title,
|
|
1388
1393
|
description: description,
|
|
1389
1394
|
layout: introLayout || layout,
|
|
@@ -1406,7 +1411,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1406
1411
|
key: "question-".concat(questionIndex),
|
|
1407
1412
|
classNames: styles$2,
|
|
1408
1413
|
timeout: 1000
|
|
1409
|
-
}, /*#__PURE__*/React.createElement(Question, {
|
|
1414
|
+
}, /*#__PURE__*/React.createElement(Question$1, {
|
|
1410
1415
|
index: questionIndex,
|
|
1411
1416
|
totalCount: (questions || []).length,
|
|
1412
1417
|
question: text,
|
|
@@ -1438,7 +1443,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1438
1443
|
key: "results",
|
|
1439
1444
|
classNames: styles$2,
|
|
1440
1445
|
timeout: 2000
|
|
1441
|
-
}, /*#__PURE__*/React.createElement(Results, Object.assign({}, currentResult, {
|
|
1446
|
+
}, /*#__PURE__*/React.createElement(Results$1, Object.assign({}, currentResult, {
|
|
1442
1447
|
resultsHeadingStyle: resultsHeadingStyle,
|
|
1443
1448
|
resultsTextStyle: resultsTextStyle,
|
|
1444
1449
|
layout: resultLayout || layout,
|
|
@@ -1481,6 +1486,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
|
|
|
1481
1486
|
};
|
|
1482
1487
|
QuizMultipleScreen.propTypes = propTypes;
|
|
1483
1488
|
QuizMultipleScreen.defaultProps = defaultProps;
|
|
1489
|
+
var QuizMultipleScreen$1 = QuizMultipleScreen;
|
|
1484
1490
|
|
|
1485
1491
|
var definition = [{
|
|
1486
1492
|
id: 'quiz',
|
|
@@ -1502,7 +1508,7 @@ var definition = [{
|
|
|
1502
1508
|
"value": "Quiz"
|
|
1503
1509
|
}]
|
|
1504
1510
|
}),
|
|
1505
|
-
component: QuizScreen,
|
|
1511
|
+
component: QuizScreen$1,
|
|
1506
1512
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
1507
1513
|
fields: [{
|
|
1508
1514
|
name: 'layout',
|
|
@@ -1694,7 +1700,7 @@ var definition = [{
|
|
|
1694
1700
|
"value": "Quiz with multiple questions"
|
|
1695
1701
|
}]
|
|
1696
1702
|
}),
|
|
1697
|
-
component: QuizMultipleScreen,
|
|
1703
|
+
component: QuizMultipleScreen$1,
|
|
1698
1704
|
layouts: ['top', 'middle', 'bottom', 'split'],
|
|
1699
1705
|
states: [{
|
|
1700
1706
|
id: 'intro',
|
|
@@ -2016,6 +2022,6 @@ var definition = [{
|
|
|
2016
2022
|
}]
|
|
2017
2023
|
}];
|
|
2018
2024
|
|
|
2019
|
-
exports.QuizMultipleScreen = QuizMultipleScreen;
|
|
2020
|
-
exports.QuizScreen = QuizScreen;
|
|
2025
|
+
exports.QuizMultipleScreen = QuizMultipleScreen$1;
|
|
2026
|
+
exports.QuizScreen = QuizScreen$1;
|
|
2021
2027
|
exports.default = definition;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromag/screen-quiz",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.482",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"assets"
|
|
48
48
|
],
|
|
49
49
|
"scripts": {
|
|
50
|
+
"clean": "rm -rf es && rm -rf lib && rm -rf assets",
|
|
50
51
|
"prepare": "../../scripts/prepare-package.sh"
|
|
51
52
|
},
|
|
52
53
|
"devDependencies": {
|
|
@@ -62,19 +63,19 @@
|
|
|
62
63
|
"@fortawesome/fontawesome-svg-core": "^1.2.32",
|
|
63
64
|
"@fortawesome/free-solid-svg-icons": "^5.15.1",
|
|
64
65
|
"@fortawesome/react-fontawesome": "^0.1.13",
|
|
65
|
-
"@micromag/core": "^0.3.
|
|
66
|
-
"@micromag/data": "^0.3.
|
|
67
|
-
"@micromag/element-background": "^0.3.
|
|
68
|
-
"@micromag/element-button": "^0.3.
|
|
69
|
-
"@micromag/element-container": "^0.3.
|
|
70
|
-
"@micromag/element-footer": "^0.3.
|
|
71
|
-
"@micromag/element-header": "^0.3.
|
|
72
|
-
"@micromag/element-heading": "^0.3.
|
|
73
|
-
"@micromag/element-layout": "^0.3.
|
|
74
|
-
"@micromag/element-scroll": "^0.3.
|
|
75
|
-
"@micromag/element-text": "^0.3.
|
|
76
|
-
"@micromag/element-visual": "^0.3.
|
|
77
|
-
"@micromag/transforms": "^0.3.
|
|
66
|
+
"@micromag/core": "^0.3.482",
|
|
67
|
+
"@micromag/data": "^0.3.482",
|
|
68
|
+
"@micromag/element-background": "^0.3.482",
|
|
69
|
+
"@micromag/element-button": "^0.3.482",
|
|
70
|
+
"@micromag/element-container": "^0.3.482",
|
|
71
|
+
"@micromag/element-footer": "^0.3.482",
|
|
72
|
+
"@micromag/element-header": "^0.3.482",
|
|
73
|
+
"@micromag/element-heading": "^0.3.482",
|
|
74
|
+
"@micromag/element-layout": "^0.3.482",
|
|
75
|
+
"@micromag/element-scroll": "^0.3.482",
|
|
76
|
+
"@micromag/element-text": "^0.3.482",
|
|
77
|
+
"@micromag/element-visual": "^0.3.482",
|
|
78
|
+
"@micromag/transforms": "^0.3.482",
|
|
78
79
|
"@react-spring/core": "^9.6.1",
|
|
79
80
|
"@react-spring/web": "^9.6.1",
|
|
80
81
|
"classnames": "^2.2.6",
|
|
@@ -88,5 +89,5 @@
|
|
|
88
89
|
"access": "public",
|
|
89
90
|
"registry": "https://registry.npmjs.org/"
|
|
90
91
|
},
|
|
91
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "931f86bb7dd77a05d196cadda88c8a170e665c3d"
|
|
92
93
|
}
|