@micromag/screen-quiz 0.3.541 → 0.3.556

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.
Files changed (3) hide show
  1. package/es/index.js +8 -14
  2. package/package.json +16 -17
  3. package/lib/index.js +0 -2027
package/es/index.js CHANGED
@@ -303,7 +303,6 @@ var Answers = function Answers(_ref) {
303
303
  };
304
304
  Answers.propTypes = propTypes$5;
305
305
  Answers.defaultProps = defaultProps$5;
306
- var Answers$1 = Answers;
307
306
 
308
307
  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"};
309
308
 
@@ -462,7 +461,7 @@ var Question = function Question(_ref) {
462
461
  textStyle: _objectSpread(_objectSpread({}, questionsHeadingStyle), questionTextStyle)
463
462
  }))) : null), isSplitted ? /*#__PURE__*/React.createElement(Spacer, {
464
463
  key: "spacer"
465
- }) : null, /*#__PURE__*/React.createElement(Answers$1, {
464
+ }) : null, /*#__PURE__*/React.createElement(Answers, {
466
465
  key: "answers",
467
466
  items: answers || [],
468
467
  answeredIndex: answeredIndex,
@@ -512,7 +511,6 @@ var Question = function Question(_ref) {
512
511
  };
513
512
  Question.propTypes = propTypes$4;
514
513
  Question.defaultProps = defaultProps$4;
515
- var Question$1 = Question;
516
514
 
517
515
  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"};
518
516
 
@@ -747,7 +745,7 @@ var QuizScreen = function QuizScreen(_ref) {
747
745
  paddingBottom: spacing,
748
746
  transform: !isPreview ? "translate(0, ".concat(viewerTopHeight, "px)") : null
749
747
  }
750
- }, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question$1, {
748
+ }, /*#__PURE__*/React.createElement(Header, header)) : null, /*#__PURE__*/React.createElement(Question, {
751
749
  question: question,
752
750
  answers: answers,
753
751
  result: result,
@@ -800,7 +798,6 @@ var QuizScreen = function QuizScreen(_ref) {
800
798
  };
801
799
  QuizScreen.propTypes = propTypes$3;
802
800
  QuizScreen.defaultProps = defaultProps$3;
803
- var QuizScreen$1 = QuizScreen;
804
801
 
805
802
  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"};
806
803
 
@@ -902,7 +899,6 @@ var Results = function Results(_ref) {
902
899
  };
903
900
  Results.propTypes = propTypes$2;
904
901
  Results.defaultProps = defaultProps$2;
905
- var Results$1 = Results;
906
902
 
907
903
  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
904
 
@@ -1000,7 +996,6 @@ var Title = function Title(_ref) {
1000
996
  };
1001
997
  Title.propTypes = propTypes$1;
1002
998
  Title.defaultProps = defaultProps$1;
1003
- var Title$1 = Title;
1004
999
 
1005
1000
  var propTypes = {
1006
1001
  id: PropTypes$1.string,
@@ -1384,7 +1379,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1384
1379
  key: "intro",
1385
1380
  classNames: styles$2,
1386
1381
  timeout: 1000
1387
- }, /*#__PURE__*/React.createElement(Title$1, {
1382
+ }, /*#__PURE__*/React.createElement(Title, {
1388
1383
  title: title,
1389
1384
  description: description,
1390
1385
  layout: introLayout || layout,
@@ -1407,7 +1402,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1407
1402
  key: "question-".concat(questionIndex),
1408
1403
  classNames: styles$2,
1409
1404
  timeout: 1000
1410
- }, /*#__PURE__*/React.createElement(Question$1, {
1405
+ }, /*#__PURE__*/React.createElement(Question, {
1411
1406
  index: questionIndex,
1412
1407
  totalCount: (questions || []).length,
1413
1408
  question: text,
@@ -1439,7 +1434,7 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1439
1434
  key: "results",
1440
1435
  classNames: styles$2,
1441
1436
  timeout: 2000
1442
- }, /*#__PURE__*/React.createElement(Results$1, Object.assign({}, currentResult, {
1437
+ }, /*#__PURE__*/React.createElement(Results, Object.assign({}, currentResult, {
1443
1438
  resultsHeadingStyle: resultsHeadingStyle,
1444
1439
  resultsTextStyle: resultsTextStyle,
1445
1440
  layout: resultLayout || layout,
@@ -1482,7 +1477,6 @@ var QuizMultipleScreen = function QuizMultipleScreen(_ref) {
1482
1477
  };
1483
1478
  QuizMultipleScreen.propTypes = propTypes;
1484
1479
  QuizMultipleScreen.defaultProps = defaultProps;
1485
- var QuizMultipleScreen$1 = QuizMultipleScreen;
1486
1480
 
1487
1481
  var definition = [{
1488
1482
  id: 'quiz',
@@ -1504,7 +1498,7 @@ var definition = [{
1504
1498
  "value": "Quiz"
1505
1499
  }]
1506
1500
  }),
1507
- component: QuizScreen$1,
1501
+ component: QuizScreen,
1508
1502
  layouts: ['top', 'middle', 'bottom', 'split'],
1509
1503
  fields: [{
1510
1504
  name: 'layout',
@@ -1696,7 +1690,7 @@ var definition = [{
1696
1690
  "value": "Quiz with multiple questions"
1697
1691
  }]
1698
1692
  }),
1699
- component: QuizMultipleScreen$1,
1693
+ component: QuizMultipleScreen,
1700
1694
  layouts: ['top', 'middle', 'bottom', 'split'],
1701
1695
  states: [{
1702
1696
  id: 'intro',
@@ -2018,4 +2012,4 @@ var definition = [{
2018
2012
  }]
2019
2013
  }];
2020
2014
 
2021
- export { QuizMultipleScreen$1 as QuizMultipleScreen, QuizScreen$1 as QuizScreen, definition as default };
2015
+ export { QuizMultipleScreen, QuizScreen, definition as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromag/screen-quiz",
3
- "version": "0.3.541",
3
+ "version": "0.3.556",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [
@@ -30,12 +30,11 @@
30
30
  }
31
31
  ],
32
32
  "license": "ISC",
33
- "main": "lib/index.js",
33
+ "type": "module",
34
34
  "module": "es/index.js",
35
35
  "style": "assets/css/styles.css",
36
36
  "exports": {
37
37
  ".": {
38
- "require": "./lib/index.js",
39
38
  "import": "./es/index.js"
40
39
  },
41
40
  "./assets/css/styles": "./assets/css/styles.css",
@@ -64,19 +63,19 @@
64
63
  "@fortawesome/fontawesome-svg-core": "^6.5.2",
65
64
  "@fortawesome/free-solid-svg-icons": "^6.5.2",
66
65
  "@fortawesome/react-fontawesome": "^0.2.0",
67
- "@micromag/core": "^0.3.541",
68
- "@micromag/data": "^0.3.541",
69
- "@micromag/element-background": "^0.3.541",
70
- "@micromag/element-button": "^0.3.541",
71
- "@micromag/element-container": "^0.3.541",
72
- "@micromag/element-footer": "^0.3.541",
73
- "@micromag/element-header": "^0.3.541",
74
- "@micromag/element-heading": "^0.3.541",
75
- "@micromag/element-layout": "^0.3.541",
76
- "@micromag/element-scroll": "^0.3.541",
77
- "@micromag/element-text": "^0.3.541",
78
- "@micromag/element-visual": "^0.3.541",
79
- "@micromag/transforms": "^0.3.541",
66
+ "@micromag/core": "^0.3.547",
67
+ "@micromag/data": "^0.3.556",
68
+ "@micromag/element-background": "^0.3.547",
69
+ "@micromag/element-button": "^0.3.547",
70
+ "@micromag/element-container": "^0.3.547",
71
+ "@micromag/element-footer": "^0.3.547",
72
+ "@micromag/element-header": "^0.3.547",
73
+ "@micromag/element-heading": "^0.3.547",
74
+ "@micromag/element-layout": "^0.3.547",
75
+ "@micromag/element-scroll": "^0.3.547",
76
+ "@micromag/element-text": "^0.3.547",
77
+ "@micromag/element-visual": "^0.3.547",
78
+ "@micromag/transforms": "^0.3.547",
80
79
  "@react-spring/core": "^9.6.1",
81
80
  "@react-spring/web": "^9.6.1",
82
81
  "classnames": "^2.2.6",
@@ -90,5 +89,5 @@
90
89
  "access": "public",
91
90
  "registry": "https://registry.npmjs.org/"
92
91
  },
93
- "gitHead": "6c04a7e327b5fbc096785c11320b3fbd3c5751c8"
92
+ "gitHead": "12a6092859319d01fdff72d65c6b28d3a33a6af9"
94
93
  }