@digabi/exam-engine-core 19.7.1 → 19.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (179) hide show
  1. package/dist/__tests__/AnsweringInstructions.test.js +11 -11
  2. package/dist/__tests__/AnsweringInstructions.test.js.map +1 -1
  3. package/dist/__tests__/examServerApi.js +2 -2
  4. package/dist/__tests__/examServerApi.js.map +1 -1
  5. package/dist/__tests__/renderAnnotations.test.js +18 -18
  6. package/dist/__tests__/results/AnnotationList.test.js +27 -27
  7. package/dist/__tests__/results/ResultsContext.test.js +37 -37
  8. package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
  9. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +4 -4
  10. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +19 -19
  11. package/dist/__tests__/testExamRendering.js +14 -16
  12. package/dist/__tests__/testExamRendering.js.map +1 -1
  13. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  14. package/dist/__tests__/validateAnswers.test.js +28 -28
  15. package/dist/__tests__/validateAnswers.test.js.map +1 -1
  16. package/dist/components/AnswerToolbar.d.ts +1 -1
  17. package/dist/components/AnswerToolbar.d.ts.map +1 -1
  18. package/dist/components/AnswerToolbar.js +2 -2
  19. package/dist/components/AnswerToolbar.js.map +1 -1
  20. package/dist/components/AnsweringInstructions.js +1 -1
  21. package/dist/components/AnsweringInstructions.js.map +1 -1
  22. package/dist/components/DocumentTitle.js +1 -1
  23. package/dist/components/DocumentTitle.js.map +1 -1
  24. package/dist/components/SectionElement.js +1 -1
  25. package/dist/components/SectionElement.js.map +1 -1
  26. package/dist/components/attachments/Attachments.js +1 -1
  27. package/dist/components/attachments/ExternalMaterial.d.ts.map +1 -1
  28. package/dist/components/attachments/ExternalMaterial.js +5 -1
  29. package/dist/components/attachments/ExternalMaterial.js.map +1 -1
  30. package/dist/components/attachments/Question.js +1 -1
  31. package/dist/components/attachments/Question.js.map +1 -1
  32. package/dist/components/context/CommonExamContext.js +1 -1
  33. package/dist/components/context/ExamContext.js +1 -1
  34. package/dist/components/context/QuestionContext.js +1 -1
  35. package/dist/components/context/ResultsContext.js +6 -6
  36. package/dist/components/context/ResultsContext.js.map +1 -1
  37. package/dist/components/context/SectionContext.js +2 -2
  38. package/dist/components/context/SectionContext.js.map +1 -1
  39. package/dist/components/exam/ChoiceAnswer.js +6 -6
  40. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  41. package/dist/components/exam/DropdownAnswer.js +10 -10
  42. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  43. package/dist/components/exam/Exam.d.ts.map +1 -1
  44. package/dist/components/exam/Exam.js +6 -2
  45. package/dist/components/exam/Exam.js.map +1 -1
  46. package/dist/components/exam/ExternalMaterial.js +1 -1
  47. package/dist/components/exam/Hints.js +3 -3
  48. package/dist/components/exam/Hints.js.map +1 -1
  49. package/dist/components/exam/Question.js +1 -1
  50. package/dist/components/exam/QuestionTitle.js +1 -1
  51. package/dist/components/exam/RichTextAnswer.d.ts +6 -1
  52. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  53. package/dist/components/exam/RichTextAnswer.js +1 -1
  54. package/dist/components/exam/RichTextAnswer.js.map +1 -1
  55. package/dist/components/exam/Section.js +2 -2
  56. package/dist/components/exam/Section.js.map +1 -1
  57. package/dist/components/exam/internal/ErrorIndicator.d.ts +1 -1
  58. package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
  59. package/dist/components/exam/internal/ErrorIndicator.js +4 -4
  60. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  61. package/dist/components/exam/internal/ProgressBar.js +1 -1
  62. package/dist/components/exam/internal/ProgressBar.js.map +1 -1
  63. package/dist/components/exam/internal/TextAnswerInput.js +6 -6
  64. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  65. package/dist/components/grading/AnswerCharacterCounter.d.ts +1 -1
  66. package/dist/components/grading/AnswerCharacterCounter.d.ts.map +1 -1
  67. package/dist/components/grading/AnswerCharacterCounter.js +3 -3
  68. package/dist/components/grading/AnswerCharacterCounter.js.map +1 -1
  69. package/dist/components/grading/GradingAnswer.js +9 -9
  70. package/dist/components/grading/GradingAnswer.js.map +1 -1
  71. package/dist/components/grading/GradingAnswerAnnotationList.d.ts +1 -1
  72. package/dist/components/grading/GradingAnswerAnnotationList.d.ts.map +1 -1
  73. package/dist/components/grading/GradingAnswerAnnotationList.js +2 -2
  74. package/dist/components/grading/GradingAnswerAnnotationList.js.map +1 -1
  75. package/dist/components/grading/editAnnotations.js +14 -14
  76. package/dist/components/grading/editAnnotations.js.map +1 -1
  77. package/dist/components/grading/largeImageDetector.js +2 -2
  78. package/dist/components/grading/largeImageDetector.js.map +1 -1
  79. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  80. package/dist/components/grading-instructions/GradingInstructions.js +6 -2
  81. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  82. package/dist/components/grading-instructions/Question.js +1 -1
  83. package/dist/components/grading-instructions/QuestionTitle.js +1 -1
  84. package/dist/components/results/ChoiceAnswer.js +7 -7
  85. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  86. package/dist/components/results/DropdownAnswer.js +5 -5
  87. package/dist/components/results/DropdownAnswer.js.map +1 -1
  88. package/dist/components/results/Question.js +2 -2
  89. package/dist/components/results/Question.js.map +1 -1
  90. package/dist/components/results/QuestionTitle.js +1 -1
  91. package/dist/components/results/Results.d.ts.map +1 -1
  92. package/dist/components/results/Results.js +5 -1
  93. package/dist/components/results/Results.js.map +1 -1
  94. package/dist/components/results/Section.js +1 -1
  95. package/dist/components/results/Section.js.map +1 -1
  96. package/dist/components/results/SingleLineAnswer.d.ts +1 -1
  97. package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
  98. package/dist/components/results/SingleLineAnswer.js +1 -1
  99. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  100. package/dist/components/results/internal/AnnotationList.js +2 -2
  101. package/dist/components/results/internal/AnnotationList.js.map +1 -1
  102. package/dist/components/results/internal/QuestionManualScore.js +3 -3
  103. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
  104. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  105. package/dist/components/results/internal/QuestionScoresContainer.js +2 -2
  106. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  107. package/dist/components/shared/AnnotationLists.d.ts +1 -1
  108. package/dist/components/shared/AnnotationLists.d.ts.map +1 -1
  109. package/dist/components/shared/AnnotationLists.js +1 -1
  110. package/dist/components/shared/AnnotationLists.js.map +1 -1
  111. package/dist/components/shared/AttachmentLink.js +1 -1
  112. package/dist/components/shared/AttachmentLink.js.map +1 -1
  113. package/dist/components/shared/AttachmentLinks.js +3 -3
  114. package/dist/components/shared/AttachmentLinks.js.map +1 -1
  115. package/dist/components/shared/ExamTranslation.d.ts +6 -0
  116. package/dist/components/shared/ExamTranslation.d.ts.map +1 -0
  117. package/dist/components/shared/ExamTranslation.js +10 -0
  118. package/dist/components/shared/ExamTranslation.js.map +1 -0
  119. package/dist/components/shared/ImageOverlay.js +3 -3
  120. package/dist/components/shared/ImageOverlay.js.map +1 -1
  121. package/dist/components/shared/QuestionNumber.d.ts +4 -0
  122. package/dist/components/shared/QuestionNumber.d.ts.map +1 -0
  123. package/dist/components/shared/QuestionNumber.js +12 -0
  124. package/dist/components/shared/QuestionNumber.js.map +1 -0
  125. package/dist/components/shared/Reference.js +1 -1
  126. package/dist/components/shared/References.js +1 -1
  127. package/dist/components/shared/References.js.map +1 -1
  128. package/dist/components/shared/Score.js +1 -1
  129. package/dist/components/shared/TableOfContents.js +2 -2
  130. package/dist/components/shared/internal/ResponsiveMediaContainer.js +3 -3
  131. package/dist/components/shared/internal/ResponsiveMediaContainer.js.map +1 -1
  132. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -1
  133. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  134. package/dist/components/shared/internal/RestrictedAudioPlayer.js +2 -2
  135. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  136. package/dist/dom-utils.js +1 -1
  137. package/dist/dom-utils.js.map +1 -1
  138. package/dist/fonts.js +1 -1
  139. package/dist/fonts.js.map +1 -1
  140. package/dist/i18n/A_E.js +2 -2
  141. package/dist/i18n/BA.js +1 -1
  142. package/dist/i18n/CA.js +1 -1
  143. package/dist/i18n/EA.js +2 -2
  144. package/dist/i18n/FA.js +2 -2
  145. package/dist/i18n/GC.js +2 -2
  146. package/dist/i18n/I.js +3 -3
  147. package/dist/i18n/M.js +1 -1
  148. package/dist/i18n/O_E.js +2 -2
  149. package/dist/i18n/PA.js +2 -2
  150. package/dist/i18n/SA.js +2 -2
  151. package/dist/i18n/TC.js +2 -2
  152. package/dist/i18n/VA.js +2 -2
  153. package/dist/i18n/Z.js +3 -3
  154. package/dist/i18n/fi-FI.js +13 -13
  155. package/dist/i18n/index.d.ts +2 -137
  156. package/dist/i18n/index.d.ts.map +1 -1
  157. package/dist/i18n/index.js +8 -8
  158. package/dist/i18n/index.js.map +1 -1
  159. package/dist/i18n/sv-FI.js +13 -13
  160. package/dist/main-bundle.js +1 -1
  161. package/dist/main-bundle.js.LICENSE.txt +0 -5
  162. package/dist/main.css +1 -1
  163. package/dist/parser/parseExam.js +5 -5
  164. package/dist/parser/parseExam.js.map +1 -1
  165. package/dist/parser/parseExamStructure.js +4 -4
  166. package/dist/renderAnnotations.js +8 -8
  167. package/dist/renderAnnotations.js.map +1 -1
  168. package/dist/store/answers/reducer.js +2 -2
  169. package/dist/store/audio/reducer.js +3 -3
  170. package/dist/store/audio/sagas.js +1 -1
  171. package/dist/store/audio/sagas.js.map +1 -1
  172. package/dist/store/cas/reducer.js +1 -1
  173. package/dist/store/cas/sagas.js +1 -1
  174. package/dist/store/countdown.js +1 -1
  175. package/dist/store/countdown.js.map +1 -1
  176. package/dist/store/index.js +4 -4
  177. package/dist/validateAnswers.js +8 -8
  178. package/dist/validateAnswers.js.map +1 -1
  179. package/package.json +18 -18
@@ -16,8 +16,8 @@ function validateAnswerLength(examStructure, answersById) {
16
16
  {
17
17
  type: 'AnswerTooLong',
18
18
  displayNumber: element.attributes.displayNumber,
19
- characterCount: maybeAnswer.characterCount,
20
- },
19
+ characterCount: maybeAnswer.characterCount
20
+ }
21
21
  ]
22
22
  : errors;
23
23
  }
@@ -39,7 +39,7 @@ function validateExtraAnswers(examStructure, answersById) {
39
39
  case 'section':
40
40
  case 'question': {
41
41
  const children = element.childNodes.map(go);
42
- const childrenWithAnswers = children.filter((v) => v.answerCount > 0);
42
+ const childrenWithAnswers = children.filter(v => v.answerCount > 0);
43
43
  const maxAnswers = (_a = element.attributes.maxAnswers) !== null && _a !== void 0 ? _a : Infinity;
44
44
  // Currently, min-answers exists only at section level.
45
45
  const minAnswers = element.name === 'section' ? element.attributes.minAnswers : undefined;
@@ -49,7 +49,7 @@ function validateExtraAnswers(examStructure, answersById) {
49
49
  const answerCount = element.name === 'exam'
50
50
  ? childrenWithAnswers.reduce((acc, section) => acc + section.answerCount, 0)
51
51
  : childrenWithAnswers.length;
52
- const childExtraAnswers = _.flatMap(children, (v) => v.extraAnswers);
52
+ const childExtraAnswers = _.flatMap(children, v => v.extraAnswers);
53
53
  // If there are extra answers on the current level, we prepend them to
54
54
  // the extra answers array, so it is ordered naturally in document
55
55
  // order.
@@ -59,11 +59,11 @@ function validateExtraAnswers(examStructure, answersById) {
59
59
  type: 'ExtraAnswer',
60
60
  elementType: element.name,
61
61
  displayNumber,
62
- childQuestions: children.map((v) => v.displayNumber),
62
+ childQuestions: children.map(v => v.displayNumber),
63
63
  maxAnswers,
64
- minAnswers,
64
+ minAnswers
65
65
  },
66
- ...childExtraAnswers,
66
+ ...childExtraAnswers
67
67
  ]
68
68
  : childExtraAnswers;
69
69
  return { answerCount, displayNumber, extraAnswers };
@@ -83,6 +83,6 @@ function validateExtraAnswers(examStructure, answersById) {
83
83
  return go(examStructure).extraAnswers;
84
84
  }
85
85
  export function validateAnswers(examStructure, answersById) {
86
- return _.flatMap([validateAnswerLength, validateExtraAnswers], (validationFn) => validationFn(examStructure, answersById));
86
+ return _.flatMap([validateAnswerLength, validateExtraAnswers], validationFn => validationFn(examStructure, answersById));
87
87
  }
88
88
  //# sourceMappingURL=validateAnswers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validateAnswers.js","sourceRoot":"","sources":["../src/validateAnswers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAgB9B,SAAS,UAAU,CACjB,aAA0B,EAC1B,OAAoD,EACpD,YAAe;IAEf,SAAS,EAAE,CAAC,WAAc,EAAE,OAAoB;QAC9C,OAAO,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAA;IACrE,CAAC;IAED,OAAO,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC,CAAA;AACxC,CAAC;AAED,SAAS,oBAAoB,CAC3B,aAA0B,EAC1B,WAA2C;IAE3C,OAAO,UAAU,CACf,aAAa,EACb,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;QAClB,IAAI,OAAO,CAAC,IAAI,KAAK,aAAa,IAAI,OAAO,CAAC,UAAU,CAAC,SAAS,IAAI,IAAI,EAAE;YAC1E,MAAM,WAAW,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;YAC9D,IAAI,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,MAAK,UAAU,IAAI,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,MAAK,MAAM,EAAE;gBACpE,OAAO,WAAW,CAAC,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS;oBAC9D,CAAC,CAAC;wBACE,GAAG,MAAM;wBACT;4BACE,IAAI,EAAE,eAAe;4BACrB,aAAa,EAAE,OAAO,CAAC,UAAU,CAAC,aAAa;4BAC/C,cAAc,EAAE,WAAW,CAAC,cAAc;yBAC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AW,CAAC,CACzC,CAAA;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digabi/exam-engine-core",
3
- "version": "19.7.1",
3
+ "version": "19.8.1",
4
4
  "main": "dist/main-bundle.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Matriculation Examination Board, Finland",
@@ -19,21 +19,21 @@
19
19
  "prepublishOnly": "webpack --mode=production && perl -pi -e 's|&&define.amd||' dist/main-bundle.js # Compatibility with our 💩 AMD loader"
20
20
  },
21
21
  "peerDependencies": {
22
- "react": "^17.0.2"
22
+ "react": "^18.2.0"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@digabi/noto-sans": "^2.1.0",
26
- "@fortawesome/fontawesome-svg-core": "^1.2.25",
27
- "@fortawesome/free-solid-svg-icons": "^5.11.2",
26
+ "@fortawesome/fontawesome-svg-core": "^6.4.0",
27
+ "@fortawesome/free-solid-svg-icons": "^6.4.0",
28
28
  "@fortawesome/react-fontawesome": "^0.2.0",
29
29
  "classnames": "^2.2.6",
30
30
  "css-loader": "^5.0.0",
31
- "css-minimizer-webpack-plugin": "^4.2.2",
31
+ "css-minimizer-webpack-plugin": "^5.0.1",
32
32
  "date-fns": "^2.8.1",
33
- "downshift": "^6.0.0",
33
+ "downshift": "^8.0.0",
34
34
  "file-loader": "^6.1.0",
35
35
  "fontfaceobserver": "^2.1.0",
36
- "i18next": "^21.6.12",
36
+ "i18next": "^23.2.11",
37
37
  "jquery": "^3.4.1",
38
38
  "less": "^4.1.0",
39
39
  "less-loader": "^11.0.0",
@@ -42,16 +42,16 @@
42
42
  "optimize-css-assets-webpack-plugin": "^6.0.0",
43
43
  "postcss": "^8.0.5",
44
44
  "postcss-loader": "^7.0.0",
45
- "postcss-preset-env": "^7.2.0",
46
- "react": "^17.0.2",
47
- "react-css-transition-replace": "^4.0.2",
48
- "react-dom": "^17.0.2",
49
- "react-i18next": "^11.2.5",
50
- "react-redux": "^8.0.4",
51
- "react-test-renderer": "^17.0.2",
52
- "redux": "^4.0.1",
53
- "redux-saga": "^1.1.3",
54
- "redux-saga-test-plan": "^4.0.0-rc.3",
45
+ "postcss-preset-env": "^9.1.0",
46
+ "react": "^18.2.0",
47
+ "react-css-transition-replace": "^5.0.1",
48
+ "react-dom": "^18.2.0",
49
+ "react-i18next": "^13.0.2",
50
+ "react-redux": "^8.1.1",
51
+ "react-test-renderer": "^18.2.0",
52
+ "redux": "^4.2.1",
53
+ "redux-saga": "^1.2.3",
54
+ "redux-saga-test-plan": "^4.0.6",
55
55
  "rich-text-editor": "^7.1.6",
56
56
  "sanitize-html": "^2.0.0",
57
57
  "typesafe-actions": "^5.1.0",
@@ -60,5 +60,5 @@
60
60
  "webpack-bundle-analyzer": "^4.1.0",
61
61
  "webpack-cli": "^5.0.2"
62
62
  },
63
- "gitHead": "458e4107a9c03e1d8cdae3e4d44676262f41bc9b"
63
+ "gitHead": "9896044f3a9b1070e788d4a8b4ab011e211151af"
64
64
  }