@digabi/exam-engine-core 19.19.0 → 20.0.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (280) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/components/AttachmentContext.d.ts +14 -0
  3. package/dist/components/AttachmentContext.d.ts.map +1 -0
  4. package/dist/components/AttachmentContext.js +12 -0
  5. package/dist/components/AttachmentContext.js.map +1 -0
  6. package/dist/components/AttachmentLink.d.ts +6 -0
  7. package/dist/components/AttachmentLink.d.ts.map +1 -0
  8. package/dist/components/AttachmentLink.js +24 -0
  9. package/dist/components/AttachmentLink.js.map +1 -0
  10. package/dist/components/AttachmentLinkAnchor.d.ts +7 -0
  11. package/dist/components/AttachmentLinkAnchor.d.ts.map +1 -0
  12. package/dist/components/AttachmentLinkAnchor.js +4 -0
  13. package/dist/components/AttachmentLinkAnchor.js.map +1 -0
  14. package/dist/components/AttachmentLinks.d.ts +6 -0
  15. package/dist/components/AttachmentLinks.d.ts.map +1 -0
  16. package/dist/components/AttachmentLinks.js +58 -0
  17. package/dist/components/AttachmentLinks.js.map +1 -0
  18. package/dist/components/Attachments.d.ts +5 -0
  19. package/dist/components/Attachments.d.ts.map +1 -0
  20. package/dist/components/Attachments.js +43 -0
  21. package/dist/components/Attachments.js.map +1 -0
  22. package/dist/components/AttachmentsAttachment.d.ts +5 -0
  23. package/dist/components/AttachmentsAttachment.d.ts.map +1 -0
  24. package/dist/components/AttachmentsAttachment.js +8 -0
  25. package/dist/components/AttachmentsAttachment.js.map +1 -0
  26. package/dist/components/AttachmentsAttachmentTitle.d.ts +6 -0
  27. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +1 -0
  28. package/dist/components/AttachmentsAttachmentTitle.js +12 -0
  29. package/dist/components/AttachmentsAttachmentTitle.js.map +1 -0
  30. package/dist/components/AttachmentsExternalMaterial.d.ts +9 -0
  31. package/dist/components/AttachmentsExternalMaterial.d.ts.map +1 -0
  32. package/dist/components/AttachmentsExternalMaterial.js +40 -0
  33. package/dist/components/AttachmentsExternalMaterial.js.map +1 -0
  34. package/dist/components/AttachmentsQuestion.d.ts +5 -0
  35. package/dist/components/AttachmentsQuestion.d.ts.map +1 -0
  36. package/dist/components/AttachmentsQuestion.js +16 -0
  37. package/dist/components/AttachmentsQuestion.js.map +1 -0
  38. package/dist/components/AttachmentsQuestionTitle.d.ts +6 -0
  39. package/dist/components/AttachmentsQuestionTitle.d.ts.map +1 -0
  40. package/dist/components/AttachmentsQuestionTitle.js +13 -0
  41. package/dist/components/AttachmentsQuestionTitle.js.map +1 -0
  42. package/dist/components/Audio.d.ts +6 -0
  43. package/dist/components/Audio.d.ts.map +1 -0
  44. package/dist/components/Audio.js +29 -0
  45. package/dist/components/Audio.js.map +1 -0
  46. package/dist/components/AudioGroup.d.ts +6 -0
  47. package/dist/components/AudioGroup.d.ts.map +1 -0
  48. package/dist/components/AudioGroup.js +9 -0
  49. package/dist/components/AudioGroup.js.map +1 -0
  50. package/dist/components/AudioPlaybackError.d.ts +7 -0
  51. package/dist/components/AudioPlaybackError.d.ts.map +1 -0
  52. package/dist/components/AudioPlaybackError.js +12 -0
  53. package/dist/components/AudioPlaybackError.js.map +1 -0
  54. package/dist/components/AudioTest.d.ts +6 -0
  55. package/dist/components/AudioTest.d.ts.map +1 -0
  56. package/dist/components/AudioTest.js +29 -0
  57. package/dist/components/AudioTest.js.map +1 -0
  58. package/dist/components/ChoiceAnswer.d.ts +12 -0
  59. package/dist/components/ChoiceAnswer.d.ts.map +1 -0
  60. package/dist/components/ChoiceAnswer.js +60 -0
  61. package/dist/components/ChoiceAnswer.js.map +1 -0
  62. package/dist/components/CommonExamContext.d.ts +16 -0
  63. package/dist/components/CommonExamContext.d.ts.map +1 -0
  64. package/dist/components/CommonExamContext.js +22 -0
  65. package/dist/components/CommonExamContext.js.map +1 -0
  66. package/dist/components/DropdownAnswer.d.ts +12 -0
  67. package/dist/components/DropdownAnswer.d.ts.map +1 -0
  68. package/dist/components/DropdownAnswer.js +85 -0
  69. package/dist/components/DropdownAnswer.js.map +1 -0
  70. package/dist/components/Exam.d.ts +40 -0
  71. package/dist/components/Exam.d.ts.map +1 -0
  72. package/dist/components/Exam.js +106 -0
  73. package/dist/components/Exam.js.map +1 -0
  74. package/dist/components/ExamAttachment.d.ts +5 -0
  75. package/dist/components/ExamAttachment.d.ts.map +1 -0
  76. package/dist/components/ExamAttachment.js +8 -0
  77. package/dist/components/ExamAttachment.js.map +1 -0
  78. package/dist/components/ExamContext.d.ts +10 -0
  79. package/dist/components/ExamContext.d.ts.map +1 -0
  80. package/dist/components/ExamContext.js +11 -0
  81. package/dist/components/ExamContext.js.map +1 -0
  82. package/dist/components/ExamFooter.d.ts +6 -0
  83. package/dist/components/ExamFooter.d.ts.map +1 -0
  84. package/dist/components/ExamFooter.js +7 -0
  85. package/dist/components/ExamFooter.js.map +1 -0
  86. package/dist/components/ExamInstruction.d.ts +6 -0
  87. package/dist/components/ExamInstruction.d.ts.map +1 -0
  88. package/dist/components/ExamInstruction.js +6 -0
  89. package/dist/components/ExamInstruction.js.map +1 -0
  90. package/dist/components/ExamQuestion.d.ts +5 -0
  91. package/dist/components/ExamQuestion.d.ts.map +1 -0
  92. package/dist/components/ExamQuestion.js +16 -0
  93. package/dist/components/ExamQuestion.js.map +1 -0
  94. package/dist/components/ExamQuestionInstruction.d.ts +6 -0
  95. package/dist/components/ExamQuestionInstruction.d.ts.map +1 -0
  96. package/dist/components/ExamQuestionInstruction.js +6 -0
  97. package/dist/components/ExamQuestionInstruction.js.map +1 -0
  98. package/dist/components/ExamQuestionTitle.d.ts +6 -0
  99. package/dist/components/ExamQuestionTitle.d.ts.map +1 -0
  100. package/dist/components/ExamQuestionTitle.js +25 -0
  101. package/dist/components/ExamQuestionTitle.js.map +1 -0
  102. package/dist/components/ExamSection.d.ts +5 -0
  103. package/dist/components/ExamSection.d.ts.map +1 -0
  104. package/dist/components/ExamSection.js +30 -0
  105. package/dist/components/ExamSection.js.map +1 -0
  106. package/dist/components/ExamSectionTitle.d.ts +6 -0
  107. package/dist/components/ExamSectionTitle.d.ts.map +1 -0
  108. package/dist/components/ExamSectionTitle.js +21 -0
  109. package/dist/components/ExamSectionTitle.js.map +1 -0
  110. package/dist/components/ExternalMaterialList.d.ts +10 -0
  111. package/dist/components/ExternalMaterialList.d.ts.map +1 -0
  112. package/dist/components/ExternalMaterialList.js +31 -0
  113. package/dist/components/ExternalMaterialList.js.map +1 -0
  114. package/dist/components/File.d.ts +6 -0
  115. package/dist/components/File.d.ts.map +1 -0
  116. package/dist/components/File.js +15 -0
  117. package/dist/components/File.js.map +1 -0
  118. package/dist/components/Formula.d.ts +6 -0
  119. package/dist/components/Formula.d.ts.map +1 -0
  120. package/dist/components/Formula.js +12 -0
  121. package/dist/components/Formula.js.map +1 -0
  122. package/dist/components/Hints.d.ts +6 -0
  123. package/dist/components/Hints.d.ts.map +1 -0
  124. package/dist/components/Hints.js +32 -0
  125. package/dist/components/Hints.js.map +1 -0
  126. package/dist/components/Image.d.ts +6 -0
  127. package/dist/components/Image.d.ts.map +1 -0
  128. package/dist/components/Image.js +25 -0
  129. package/dist/components/Image.js.map +1 -0
  130. package/dist/components/ImageOverlay.d.ts +6 -0
  131. package/dist/components/ImageOverlay.d.ts.map +1 -0
  132. package/dist/components/ImageOverlay.js +45 -0
  133. package/dist/components/ImageOverlay.js.map +1 -0
  134. package/dist/components/ProgressBar.d.ts +6 -0
  135. package/dist/components/ProgressBar.d.ts.map +1 -0
  136. package/dist/components/ProgressBar.js +18 -0
  137. package/dist/components/ProgressBar.js.map +1 -0
  138. package/dist/components/QuestionContext.d.ts +14 -0
  139. package/dist/components/QuestionContext.d.ts.map +1 -0
  140. package/dist/components/QuestionContext.js +20 -0
  141. package/dist/components/QuestionContext.js.map +1 -0
  142. package/dist/components/Reference.d.ts +6 -0
  143. package/dist/components/Reference.d.ts.map +1 -0
  144. package/dist/components/Reference.js +63 -0
  145. package/dist/components/Reference.js.map +1 -0
  146. package/dist/components/References.d.ts +6 -0
  147. package/dist/components/References.d.ts.map +1 -0
  148. package/dist/components/References.js +23 -0
  149. package/dist/components/References.js.map +1 -0
  150. package/dist/components/ResponsiveMediaContainer.d.ts +17 -0
  151. package/dist/components/ResponsiveMediaContainer.d.ts.map +1 -0
  152. package/dist/components/ResponsiveMediaContainer.js +20 -0
  153. package/dist/components/ResponsiveMediaContainer.js.map +1 -0
  154. package/dist/components/RestrictedAudioPlayer.d.ts +11 -0
  155. package/dist/components/RestrictedAudioPlayer.d.ts.map +1 -0
  156. package/dist/components/RestrictedAudioPlayer.js +29 -0
  157. package/dist/components/RestrictedAudioPlayer.js.map +1 -0
  158. package/dist/components/RichTextAnswer.d.ts +31 -0
  159. package/dist/components/RichTextAnswer.d.ts.map +1 -0
  160. package/dist/components/RichTextAnswer.js +70 -0
  161. package/dist/components/RichTextAnswer.js.map +1 -0
  162. package/dist/components/SaveIndicator.d.ts +5 -0
  163. package/dist/components/SaveIndicator.d.ts.map +1 -0
  164. package/dist/components/SaveIndicator.js +15 -0
  165. package/dist/components/SaveIndicator.js.map +1 -0
  166. package/dist/components/Score.d.ts +6 -0
  167. package/dist/components/Score.d.ts.map +1 -0
  168. package/dist/components/Score.js +13 -0
  169. package/dist/components/Score.js.map +1 -0
  170. package/dist/components/Section.d.ts +3 -0
  171. package/dist/components/Section.d.ts.map +1 -0
  172. package/dist/components/Section.js +7 -0
  173. package/dist/components/Section.js.map +1 -0
  174. package/dist/components/SectionContext.d.ts +13 -0
  175. package/dist/components/SectionContext.d.ts.map +1 -0
  176. package/dist/components/SectionContext.js +21 -0
  177. package/dist/components/SectionContext.js.map +1 -0
  178. package/dist/components/SectionInstruction.d.ts +6 -0
  179. package/dist/components/SectionInstruction.d.ts.map +1 -0
  180. package/dist/components/SectionInstruction.js +6 -0
  181. package/dist/components/SectionInstruction.js.map +1 -0
  182. package/dist/components/TableOfContents.d.ts +13 -0
  183. package/dist/components/TableOfContents.d.ts.map +1 -0
  184. package/dist/components/TableOfContents.js +66 -0
  185. package/dist/components/TableOfContents.js.map +1 -0
  186. package/dist/components/TextAnswer.d.ts +6 -0
  187. package/dist/components/TextAnswer.d.ts.map +1 -0
  188. package/dist/components/TextAnswer.js +16 -0
  189. package/dist/components/TextAnswer.js.map +1 -0
  190. package/dist/components/TextAnswerInput.d.ts +37 -0
  191. package/dist/components/TextAnswerInput.d.ts.map +1 -0
  192. package/dist/components/TextAnswerInput.js +145 -0
  193. package/dist/components/TextAnswerInput.js.map +1 -0
  194. package/dist/components/Video.d.ts +6 -0
  195. package/dist/components/Video.d.ts.map +1 -0
  196. package/dist/components/Video.js +15 -0
  197. package/dist/components/Video.js.map +1 -0
  198. package/dist/components/exam/ExamineExam.d.ts +5 -0
  199. package/dist/components/exam/ExamineExam.d.ts.map +1 -0
  200. package/dist/components/exam/ExamineExam.js +20 -0
  201. package/dist/components/exam/ExamineExam.js.map +1 -0
  202. package/dist/components/exam/FinishExam.d.ts +5 -0
  203. package/dist/components/exam/FinishExam.d.ts.map +1 -0
  204. package/dist/components/exam/FinishExam.js +17 -0
  205. package/dist/components/exam/FinishExam.js.map +1 -0
  206. package/dist/components/results/AnnotationList.d.ts +5 -0
  207. package/dist/components/results/AnnotationList.d.ts.map +1 -0
  208. package/dist/components/results/AnnotationList.js +40 -0
  209. package/dist/components/results/AnnotationList.js.map +1 -0
  210. package/dist/components/results/ResultsChoiceAnswer.d.ts +6 -0
  211. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +1 -0
  212. package/dist/components/results/ResultsChoiceAnswer.js +60 -0
  213. package/dist/components/results/ResultsChoiceAnswer.js.map +1 -0
  214. package/dist/components/results/ResultsContext.d.ts +20 -0
  215. package/dist/components/results/ResultsContext.d.ts.map +1 -0
  216. package/dist/components/results/ResultsContext.js +68 -0
  217. package/dist/components/results/ResultsContext.js.map +1 -0
  218. package/dist/components/results/ResultsDropdownAnswer.d.ts +6 -0
  219. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +1 -0
  220. package/dist/components/results/ResultsDropdownAnswer.js +41 -0
  221. package/dist/components/results/ResultsDropdownAnswer.js.map +1 -0
  222. package/dist/components/results/ResultsExamQuestion.d.ts +5 -0
  223. package/dist/components/results/ResultsExamQuestion.d.ts.map +1 -0
  224. package/dist/components/results/ResultsExamQuestion.js +23 -0
  225. package/dist/components/results/ResultsExamQuestion.js.map +1 -0
  226. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +10 -0
  227. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +1 -0
  228. package/dist/components/results/ResultsExamQuestionAutoScore.js +16 -0
  229. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +1 -0
  230. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +11 -0
  231. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +1 -0
  232. package/dist/components/results/ResultsExamQuestionManualScore.js +62 -0
  233. package/dist/components/results/ResultsExamQuestionManualScore.js.map +1 -0
  234. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +9 -0
  235. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +1 -0
  236. package/dist/components/results/ResultsExamQuestionScoresContainer.js +8 -0
  237. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +1 -0
  238. package/dist/components/results/ResultsExamQuestionTitle.d.ts +6 -0
  239. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +1 -0
  240. package/dist/components/results/ResultsExamQuestionTitle.js +22 -0
  241. package/dist/components/results/ResultsExamQuestionTitle.js.map +1 -0
  242. package/dist/components/results/ResultsExamSection.d.ts +5 -0
  243. package/dist/components/results/ResultsExamSection.d.ts.map +1 -0
  244. package/dist/components/results/ResultsExamSection.js +17 -0
  245. package/dist/components/results/ResultsExamSection.js.map +1 -0
  246. package/dist/components/results/ResultsScoredTextAnswer.d.ts +6 -0
  247. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +1 -0
  248. package/dist/components/results/ResultsScoredTextAnswer.js +22 -0
  249. package/dist/components/results/ResultsScoredTextAnswer.js.map +1 -0
  250. package/dist/components/results/ResultsSingleLineAnswer.d.ts +12 -0
  251. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +1 -0
  252. package/dist/components/results/ResultsSingleLineAnswer.js +12 -0
  253. package/dist/components/results/ResultsSingleLineAnswer.js.map +1 -0
  254. package/dist/components/results/ResultsTextAnswer.d.ts +6 -0
  255. package/dist/components/results/ResultsTextAnswer.d.ts.map +1 -0
  256. package/dist/components/results/ResultsTextAnswer.js +51 -0
  257. package/dist/components/results/ResultsTextAnswer.js.map +1 -0
  258. package/dist/components/results/helpers.d.ts +9 -0
  259. package/dist/components/results/helpers.d.ts.map +1 -0
  260. package/dist/components/results/helpers.js +10 -0
  261. package/dist/components/results/helpers.js.map +1 -0
  262. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  263. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  264. package/dist/components/results/isExamFinishPageHook.js +7 -0
  265. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  266. package/dist/components/types.d.ts +110 -0
  267. package/dist/components/types.d.ts.map +1 -0
  268. package/dist/components/types.js +1 -0
  269. package/dist/components/types.js.map +1 -0
  270. package/dist/components/withContext.d.ts +3 -0
  271. package/dist/components/withContext.d.ts.map +1 -0
  272. package/dist/components/withContext.js +12 -0
  273. package/dist/components/withContext.js.map +1 -0
  274. package/dist/main-bundle.js +1 -1
  275. package/dist/store/answers/sagas.d.ts.map +1 -1
  276. package/dist/store/answers/sagas.js +6 -0
  277. package/dist/store/answers/sagas.js.map +1 -1
  278. package/dist/types/ExamServerAPI.d.ts +2 -0
  279. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  280. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"sagas.d.ts","sourceRoot":"","sources":["../../../src/store/answers/sagas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAuBjD,wBAAiB,WAAW,CAAC,aAAa,EAAE,aAAa;;;eAcxD;AAwBD,MAAM,CAAC,OAAO,UAAW,IAAI,CAAC,aAAa,EAAE,aAAa,2EAGzD"}
1
+ {"version":3,"file":"sagas.d.ts","sourceRoot":"","sources":["../../../src/store/answers/sagas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEjC,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAuBjD,wBAAiB,WAAW,CAAC,aAAa,EAAE,aAAa;;;eAcxD;AA8BD,MAAM,CAAC,OAAO,UAAW,IAAI,CAAC,aAAa,EAAE,aAAa,2EAGzD"}
@@ -34,11 +34,17 @@ function* answerHistorySaga(examServerApi) {
34
34
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
35
35
  const action = yield take('SELECT_ANSWER_VERSION');
36
36
  const { questionId, questionText } = action.payload;
37
+ if (examServerApi.logActivity) {
38
+ yield call(examServerApi.logActivity, `Opened answer version history for question ${questionId}`);
39
+ }
37
40
  try {
38
41
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
39
42
  const maybeNewAnswer = yield call(examServerApi.selectAnswerVersion, questionId, questionText);
40
43
  if (maybeNewAnswer) {
41
44
  yield put(saveAnswer(maybeNewAnswer));
45
+ if (examServerApi.logActivity) {
46
+ yield call(examServerApi.logActivity, `Restored answer version for question ${questionId}: ${maybeNewAnswer}`);
47
+ }
42
48
  }
43
49
  }
44
50
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"sagas.js","sourceRoot":"","sources":["../../../src/store/answers/sagas.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAA;AAEzE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,mBAAmB,EAAuB,MAAM,WAAW,CAA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;QACD,IAAI,CAAC;YACH,mEAAmE;YACnE,MAAM,cAAc,GAA2B,MAAM,IAAI,CACvD,aAAa,CAAC,mBAAmB,EACjC,UAAU,EACV,YAAY,CACb,CAAA;YACD,IAAI,cAAc,EAAE,CAAC;gBACnB,MAAM,GAAG,CAAC,UAAU,CAAC,cAAc,CAAC,CAAC,CAAA;gBACrC,IAAI,aAAa,CAAC,WAAW,EAAE,CAAC;oBAC9B,MAAM,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,wCAAwC,UAAU,KAAK,cAAc,EAAE,CAAC,CAAA;gBAChH,CAAC;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QACtB,CAAC;IACH,CAAC;AACH,CAAC;AAED,6EAA6E;AAC7E,MAAM,CAAC,OAAO,SAAS,CAAC,CAAC,IAAI,CAAC,aAA4B;IACxD,MAAM,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC,CAAA;IACtC,MAAM,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAA;AAC9C,CAAC"}
@@ -72,5 +72,7 @@ export interface ExamServerAPI {
72
72
  /** Save screenshot to server. Should return the URL to the saved screenshot. */
73
73
  saveScreenshot: (questionId: QuestionId, screenshot: Blob) => Promise<string>;
74
74
  examineExam?: () => void;
75
+ /** Log client activity to server. Message format is free. Optional feature. */
76
+ logActivity?: (message: string) => void;
75
77
  }
76
78
  //# sourceMappingURL=ExamServerAPI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ExamServerAPI.d.ts","sourceRoot":"","sources":["../../src/types/ExamServerAPI.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAErD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAA;AACtD;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,SAAS,GAA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,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAC1D;;;;;;OAMG;IACH,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAEtH;;;;;;OAMG;IACH,kBAAkB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACpG,uGAAuG;IACvG,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,KAAK,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAA;IACxG,gFAAgF;IAChF,cAAc,EAAE,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAC7E,WAAW,CAAC,EAAE,MAAM,IAAI,CAAA;IACxB,+EAA+E;IAC/E,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digabi/exam-engine-core",
3
- "version": "19.19.0",
3
+ "version": "20.0.0-alpha.0",
4
4
  "main": "dist/main-bundle.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Matriculation Examination Board, Finland",
@@ -30,7 +30,7 @@
30
30
  "css-loader": "^6.8.1",
31
31
  "css-minimizer-webpack-plugin": "^6.0.0",
32
32
  "date-fns": "^3.3.1",
33
- "downshift": "^8.0.0",
33
+ "downshift": "^9.0.0",
34
34
  "fontfaceobserver": "^2.1.0",
35
35
  "i18next": "^23.2.11",
36
36
  "jquery": "^3.4.1",
@@ -58,5 +58,5 @@
58
58
  "webpack-bundle-analyzer": "^4.1.0",
59
59
  "webpack-cli": "^5.0.2"
60
60
  },
61
- "gitHead": "3f48f5aa89220c46008190e685e69853c3ad1d34"
61
+ "gitHead": "f7bc1cac5e742d4fe689c56d1152032c04f9326c"
62
62
  }