@digabi/exam-engine-core 23.8.4 → 23.8.5-alpha.0

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 (712) hide show
  1. package/dist/__tests__/playwright/Annotations.test.js +60 -28
  2. package/dist/__tests__/playwright/Annotations.test.js.map +1 -1
  3. package/dist/__tests__/playwright/attachments/Attachments.test.js +1 -1
  4. package/dist/__tests__/playwright/attachments/Attachments.test.js.map +1 -1
  5. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js +1 -1
  6. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js.map +1 -1
  7. package/dist/__tests__/playwright/stories/Annotations.story.d.ts +2 -2
  8. package/dist/__tests__/playwright/stories/Annotations.story.d.ts.map +1 -1
  9. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts +2 -2
  10. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts.map +1 -1
  11. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts +2 -2
  12. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts.map +1 -1
  13. package/dist/components/grading/examAnnotationUtils.d.ts +2 -1
  14. package/dist/components/grading/examAnnotationUtils.d.ts.map +1 -1
  15. package/dist/components/grading/examAnnotationUtils.js +29 -10
  16. package/dist/components/grading/examAnnotationUtils.js.map +1 -1
  17. package/dist/components/results/DNDAnswerContainer.d.ts +4 -0
  18. package/dist/components/results/DNDAnswerContainer.d.ts.map +1 -0
  19. package/dist/components/results/DNDAnswerContainer.js +22 -0
  20. package/dist/components/results/DNDAnswerContainer.js.map +1 -0
  21. package/dist/components/shared/AnnotatableText.d.ts.map +1 -1
  22. package/dist/components/shared/AnnotatableText.js +6 -6
  23. package/dist/components/shared/AnnotatableText.js.map +1 -1
  24. package/dist/components/shared/AnnotationImageMark.d.ts +16 -0
  25. package/dist/components/shared/AnnotationImageMark.d.ts.map +1 -0
  26. package/dist/components/shared/AnnotationImageMark.js +99 -0
  27. package/dist/components/shared/AnnotationImageMark.js.map +1 -0
  28. package/dist/components/shared/AnnotationPopup.d.ts.map +1 -1
  29. package/dist/components/shared/AnnotationPopup.js +5 -2
  30. package/dist/components/shared/AnnotationPopup.js.map +1 -1
  31. package/dist/components/shared/AnnotationTextMark.d.ts +11 -0
  32. package/dist/components/shared/AnnotationTextMark.d.ts.map +1 -0
  33. package/dist/components/shared/AnnotationTextMark.js +21 -0
  34. package/dist/components/shared/AnnotationTextMark.js.map +1 -0
  35. package/dist/components/shared/markText.d.ts +4 -3
  36. package/dist/components/shared/markText.d.ts.map +1 -1
  37. package/dist/components/shared/markText.js +10 -5
  38. package/dist/components/shared/markText.js.map +1 -1
  39. package/dist/eslint.config.d.ts +22 -0
  40. package/dist/eslint.config.d.ts.map +1 -0
  41. package/dist/eslint.config.js +31 -0
  42. package/dist/eslint.config.js.map +1 -0
  43. package/dist/i18n/exam_titles_fi-FI.d.ts +46 -0
  44. package/dist/i18n/exam_titles_fi-FI.d.ts.map +1 -0
  45. package/dist/i18n/exam_titles_fi-FI.js +46 -0
  46. package/dist/i18n/exam_titles_fi-FI.js.map +1 -0
  47. package/dist/i18n/exam_titles_fi-FI.json +45 -0
  48. package/dist/i18n/exam_titles_sv-FI.d.ts +46 -0
  49. package/dist/i18n/exam_titles_sv-FI.d.ts.map +1 -0
  50. package/dist/i18n/exam_titles_sv-FI.js +46 -0
  51. package/dist/i18n/exam_titles_sv-FI.js.map +1 -0
  52. package/dist/i18n/exam_titles_sv-FI.json +45 -0
  53. package/dist/i18n/exams.d.ts +11 -0
  54. package/dist/i18n/exams.d.ts.map +1 -0
  55. package/dist/i18n/exams.js +10 -0
  56. package/dist/i18n/exams.js.map +1 -0
  57. package/dist/main-bundle.js +1 -1
  58. package/dist/main.css +1 -1
  59. package/dist/types/ExamAnnotations.d.ts +46 -0
  60. package/dist/types/ExamAnnotations.d.ts.map +1 -0
  61. package/dist/types/ExamAnnotations.js +2 -0
  62. package/dist/types/ExamAnnotations.js.map +1 -0
  63. package/package.json +3 -3
  64. package/dist/components/exam/ExamineExam.d.ts +0 -5
  65. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  66. package/dist/components/exam/ExamineExam.js +0 -20
  67. package/dist/components/exam/ExamineExam.js.map +0 -1
  68. package/dist/src/components/AnswerToolbar.d.ts +0 -18
  69. package/dist/src/components/AnswerToolbar.d.ts.map +0 -1
  70. package/dist/src/components/AnswerToolbar.js +0 -36
  71. package/dist/src/components/AnswerToolbar.js.map +0 -1
  72. package/dist/src/components/AnsweringInstructions.d.ts +0 -12
  73. package/dist/src/components/AnsweringInstructions.d.ts.map +0 -1
  74. package/dist/src/components/AnsweringInstructions.js +0 -24
  75. package/dist/src/components/AnsweringInstructions.js.map +0 -1
  76. package/dist/src/components/DocumentTitle.d.ts +0 -5
  77. package/dist/src/components/DocumentTitle.d.ts.map +0 -1
  78. package/dist/src/components/DocumentTitle.js +0 -13
  79. package/dist/src/components/DocumentTitle.js.map +0 -1
  80. package/dist/src/components/NotificationIcon.d.ts +0 -4
  81. package/dist/src/components/NotificationIcon.d.ts.map +0 -1
  82. package/dist/src/components/NotificationIcon.js +0 -6
  83. package/dist/src/components/NotificationIcon.js.map +0 -1
  84. package/dist/src/components/RenderChildNodes.d.ts +0 -5
  85. package/dist/src/components/RenderChildNodes.d.ts.map +0 -1
  86. package/dist/src/components/RenderChildNodes.js +0 -7
  87. package/dist/src/components/RenderChildNodes.js.map +0 -1
  88. package/dist/src/components/RenderExamElements.d.ts +0 -6
  89. package/dist/src/components/RenderExamElements.d.ts.map +0 -1
  90. package/dist/src/components/RenderExamElements.js +0 -6
  91. package/dist/src/components/RenderExamElements.js.map +0 -1
  92. package/dist/src/components/RenderIf.d.ts +0 -4
  93. package/dist/src/components/RenderIf.d.ts.map +0 -1
  94. package/dist/src/components/RenderIf.js +0 -8
  95. package/dist/src/components/RenderIf.js.map +0 -1
  96. package/dist/src/components/ScreenReaderOnly.d.ts +0 -5
  97. package/dist/src/components/ScreenReaderOnly.d.ts.map +0 -1
  98. package/dist/src/components/ScreenReaderOnly.js +0 -3
  99. package/dist/src/components/ScreenReaderOnly.js.map +0 -1
  100. package/dist/src/components/SectionElement.d.ts +0 -4
  101. package/dist/src/components/SectionElement.d.ts.map +0 -1
  102. package/dist/src/components/SectionElement.js +0 -8
  103. package/dist/src/components/SectionElement.js.map +0 -1
  104. package/dist/src/components/attachments/Attachment.d.ts +0 -4
  105. package/dist/src/components/attachments/Attachment.d.ts.map +0 -1
  106. package/dist/src/components/attachments/Attachment.js +0 -8
  107. package/dist/src/components/attachments/Attachment.js.map +0 -1
  108. package/dist/src/components/attachments/AttachmentTitle.d.ts +0 -6
  109. package/dist/src/components/attachments/AttachmentTitle.d.ts.map +0 -1
  110. package/dist/src/components/attachments/AttachmentTitle.js +0 -12
  111. package/dist/src/components/attachments/AttachmentTitle.js.map +0 -1
  112. package/dist/src/components/attachments/Attachments.d.ts +0 -5
  113. package/dist/src/components/attachments/Attachments.d.ts.map +0 -1
  114. package/dist/src/components/attachments/Attachments.js +0 -55
  115. package/dist/src/components/attachments/Attachments.js.map +0 -1
  116. package/dist/src/components/attachments/ExternalMaterial.d.ts +0 -9
  117. package/dist/src/components/attachments/ExternalMaterial.d.ts.map +0 -1
  118. package/dist/src/components/attachments/ExternalMaterial.js +0 -46
  119. package/dist/src/components/attachments/ExternalMaterial.js.map +0 -1
  120. package/dist/src/components/attachments/Question.d.ts +0 -4
  121. package/dist/src/components/attachments/Question.d.ts.map +0 -1
  122. package/dist/src/components/attachments/Question.js +0 -16
  123. package/dist/src/components/attachments/Question.js.map +0 -1
  124. package/dist/src/components/attachments/QuestionTitle.d.ts +0 -6
  125. package/dist/src/components/attachments/QuestionTitle.d.ts.map +0 -1
  126. package/dist/src/components/attachments/QuestionTitle.js +0 -15
  127. package/dist/src/components/attachments/QuestionTitle.js.map +0 -1
  128. package/dist/src/components/context/AnnotationProvider.d.ts +0 -16
  129. package/dist/src/components/context/AnnotationProvider.d.ts.map +0 -1
  130. package/dist/src/components/context/AnnotationProvider.js +0 -35
  131. package/dist/src/components/context/AnnotationProvider.js.map +0 -1
  132. package/dist/src/components/context/AttachmentContext.d.ts +0 -13
  133. package/dist/src/components/context/AttachmentContext.d.ts.map +0 -1
  134. package/dist/src/components/context/AttachmentContext.js +0 -12
  135. package/dist/src/components/context/AttachmentContext.js.map +0 -1
  136. package/dist/src/components/context/CommonExamContext.d.ts +0 -22
  137. package/dist/src/components/context/CommonExamContext.d.ts.map +0 -1
  138. package/dist/src/components/context/CommonExamContext.js +0 -28
  139. package/dist/src/components/context/CommonExamContext.js.map +0 -1
  140. package/dist/src/components/context/ExamContext.d.ts +0 -9
  141. package/dist/src/components/context/ExamContext.d.ts.map +0 -1
  142. package/dist/src/components/context/ExamContext.js +0 -11
  143. package/dist/src/components/context/ExamContext.js.map +0 -1
  144. package/dist/src/components/context/IsInSidebarContext.d.ts +0 -6
  145. package/dist/src/components/context/IsInSidebarContext.d.ts.map +0 -1
  146. package/dist/src/components/context/IsInSidebarContext.js +0 -3
  147. package/dist/src/components/context/IsInSidebarContext.js.map +0 -1
  148. package/dist/src/components/context/QuestionContext.d.ts +0 -14
  149. package/dist/src/components/context/QuestionContext.d.ts.map +0 -1
  150. package/dist/src/components/context/QuestionContext.js +0 -27
  151. package/dist/src/components/context/QuestionContext.js.map +0 -1
  152. package/dist/src/components/context/ResultsContext.d.ts +0 -17
  153. package/dist/src/components/context/ResultsContext.d.ts.map +0 -1
  154. package/dist/src/components/context/ResultsContext.js +0 -69
  155. package/dist/src/components/context/ResultsContext.js.map +0 -1
  156. package/dist/src/components/context/SectionContext.d.ts +0 -12
  157. package/dist/src/components/context/SectionContext.d.ts.map +0 -1
  158. package/dist/src/components/context/SectionContext.js +0 -21
  159. package/dist/src/components/context/SectionContext.js.map +0 -1
  160. package/dist/src/components/context/TOCContext.d.ts +0 -7
  161. package/dist/src/components/context/TOCContext.d.ts.map +0 -1
  162. package/dist/src/components/context/TOCContext.js +0 -3
  163. package/dist/src/components/context/TOCContext.js.map +0 -1
  164. package/dist/src/components/context/withContext.d.ts +0 -3
  165. package/dist/src/components/context/withContext.d.ts.map +0 -1
  166. package/dist/src/components/context/withContext.js +0 -12
  167. package/dist/src/components/context/withContext.js.map +0 -1
  168. package/dist/src/components/exam/Attachment.d.ts +0 -4
  169. package/dist/src/components/exam/Attachment.d.ts.map +0 -1
  170. package/dist/src/components/exam/Attachment.js +0 -8
  171. package/dist/src/components/exam/Attachment.js.map +0 -1
  172. package/dist/src/components/exam/ChoiceAnswer.d.ts +0 -5
  173. package/dist/src/components/exam/ChoiceAnswer.d.ts.map +0 -1
  174. package/dist/src/components/exam/ChoiceAnswer.js +0 -53
  175. package/dist/src/components/exam/ChoiceAnswer.js.map +0 -1
  176. package/dist/src/components/exam/DropdownAnswer.d.ts +0 -5
  177. package/dist/src/components/exam/DropdownAnswer.d.ts.map +0 -1
  178. package/dist/src/components/exam/DropdownAnswer.js +0 -101
  179. package/dist/src/components/exam/DropdownAnswer.js.map +0 -1
  180. package/dist/src/components/exam/Exam.d.ts +0 -48
  181. package/dist/src/components/exam/Exam.d.ts.map +0 -1
  182. package/dist/src/components/exam/Exam.js +0 -195
  183. package/dist/src/components/exam/Exam.js.map +0 -1
  184. package/dist/src/components/exam/ExamFooter.d.ts +0 -6
  185. package/dist/src/components/exam/ExamFooter.d.ts.map +0 -1
  186. package/dist/src/components/exam/ExamFooter.js +0 -6
  187. package/dist/src/components/exam/ExamFooter.js.map +0 -1
  188. package/dist/src/components/exam/ExamInstruction.d.ts +0 -6
  189. package/dist/src/components/exam/ExamInstruction.d.ts.map +0 -1
  190. package/dist/src/components/exam/ExamInstruction.js +0 -6
  191. package/dist/src/components/exam/ExamInstruction.js.map +0 -1
  192. package/dist/src/components/exam/ExternalMaterial.d.ts +0 -10
  193. package/dist/src/components/exam/ExternalMaterial.d.ts.map +0 -1
  194. package/dist/src/components/exam/ExternalMaterial.js +0 -33
  195. package/dist/src/components/exam/ExternalMaterial.js.map +0 -1
  196. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts +0 -5
  197. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
  198. package/dist/src/components/exam/GoToExamineAnswersButton.js +0 -18
  199. package/dist/src/components/exam/GoToExamineAnswersButton.js.map +0 -1
  200. package/dist/src/components/exam/Hints.d.ts +0 -5
  201. package/dist/src/components/exam/Hints.d.ts.map +0 -1
  202. package/dist/src/components/exam/Hints.js +0 -31
  203. package/dist/src/components/exam/Hints.js.map +0 -1
  204. package/dist/src/components/exam/Question.d.ts +0 -8
  205. package/dist/src/components/exam/Question.d.ts.map +0 -1
  206. package/dist/src/components/exam/Question.js +0 -75
  207. package/dist/src/components/exam/Question.js.map +0 -1
  208. package/dist/src/components/exam/QuestionInstruction.d.ts +0 -6
  209. package/dist/src/components/exam/QuestionInstruction.d.ts.map +0 -1
  210. package/dist/src/components/exam/QuestionInstruction.js +0 -8
  211. package/dist/src/components/exam/QuestionInstruction.js.map +0 -1
  212. package/dist/src/components/exam/QuestionTitle.d.ts +0 -5
  213. package/dist/src/components/exam/QuestionTitle.d.ts.map +0 -1
  214. package/dist/src/components/exam/QuestionTitle.js +0 -26
  215. package/dist/src/components/exam/QuestionTitle.js.map +0 -1
  216. package/dist/src/components/exam/RichTextAnswer.d.ts +0 -41
  217. package/dist/src/components/exam/RichTextAnswer.d.ts.map +0 -1
  218. package/dist/src/components/exam/RichTextAnswer.js +0 -79
  219. package/dist/src/components/exam/RichTextAnswer.js.map +0 -1
  220. package/dist/src/components/exam/Section.d.ts +0 -4
  221. package/dist/src/components/exam/Section.d.ts.map +0 -1
  222. package/dist/src/components/exam/Section.js +0 -49
  223. package/dist/src/components/exam/Section.js.map +0 -1
  224. package/dist/src/components/exam/SectionInstruction.d.ts +0 -6
  225. package/dist/src/components/exam/SectionInstruction.d.ts.map +0 -1
  226. package/dist/src/components/exam/SectionInstruction.js +0 -6
  227. package/dist/src/components/exam/SectionInstruction.js.map +0 -1
  228. package/dist/src/components/exam/SectionTitle.d.ts +0 -6
  229. package/dist/src/components/exam/SectionTitle.d.ts.map +0 -1
  230. package/dist/src/components/exam/SectionTitle.js +0 -30
  231. package/dist/src/components/exam/SectionTitle.js.map +0 -1
  232. package/dist/src/components/exam/StudentNameHeader.d.ts +0 -8
  233. package/dist/src/components/exam/StudentNameHeader.d.ts.map +0 -1
  234. package/dist/src/components/exam/StudentNameHeader.js +0 -3
  235. package/dist/src/components/exam/StudentNameHeader.js.map +0 -1
  236. package/dist/src/components/exam/TextAnswer.d.ts +0 -6
  237. package/dist/src/components/exam/TextAnswer.d.ts.map +0 -1
  238. package/dist/src/components/exam/TextAnswer.js +0 -20
  239. package/dist/src/components/exam/TextAnswer.js.map +0 -1
  240. package/dist/src/components/exam/UndoHistoryEntry.d.ts +0 -19
  241. package/dist/src/components/exam/UndoHistoryEntry.d.ts.map +0 -1
  242. package/dist/src/components/exam/UndoHistoryEntry.js +0 -39
  243. package/dist/src/components/exam/UndoHistoryEntry.js.map +0 -1
  244. package/dist/src/components/exam/UndoView.d.ts +0 -35
  245. package/dist/src/components/exam/UndoView.d.ts.map +0 -1
  246. package/dist/src/components/exam/UndoView.js +0 -162
  247. package/dist/src/components/exam/UndoView.js.map +0 -1
  248. package/dist/src/components/exam/internal/ErrorIndicator.d.ts +0 -9
  249. package/dist/src/components/exam/internal/ErrorIndicator.d.ts.map +0 -1
  250. package/dist/src/components/exam/internal/ErrorIndicator.js +0 -63
  251. package/dist/src/components/exam/internal/ErrorIndicator.js.map +0 -1
  252. package/dist/src/components/exam/internal/ProgressBar.d.ts +0 -8
  253. package/dist/src/components/exam/internal/ProgressBar.d.ts.map +0 -1
  254. package/dist/src/components/exam/internal/ProgressBar.js +0 -19
  255. package/dist/src/components/exam/internal/ProgressBar.js.map +0 -1
  256. package/dist/src/components/exam/internal/SaveIndicator.d.ts +0 -5
  257. package/dist/src/components/exam/internal/SaveIndicator.d.ts.map +0 -1
  258. package/dist/src/components/exam/internal/SaveIndicator.js +0 -16
  259. package/dist/src/components/exam/internal/SaveIndicator.js.map +0 -1
  260. package/dist/src/components/exam/internal/TextAnswerInput.d.ts +0 -6
  261. package/dist/src/components/exam/internal/TextAnswerInput.d.ts.map +0 -1
  262. package/dist/src/components/exam/internal/TextAnswerInput.js +0 -128
  263. package/dist/src/components/exam/internal/TextAnswerInput.js.map +0 -1
  264. package/dist/src/components/grading/AnswerCharacterCounter.d.ts +0 -6
  265. package/dist/src/components/grading/AnswerCharacterCounter.d.ts.map +0 -1
  266. package/dist/src/components/grading/AnswerCharacterCounter.js +0 -21
  267. package/dist/src/components/grading/AnswerCharacterCounter.js.map +0 -1
  268. package/dist/src/components/grading/GradingAnswer.d.ts +0 -24
  269. package/dist/src/components/grading/GradingAnswer.d.ts.map +0 -1
  270. package/dist/src/components/grading/GradingAnswer.js +0 -306
  271. package/dist/src/components/grading/GradingAnswer.js.map +0 -1
  272. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts +0 -9
  273. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts.map +0 -1
  274. package/dist/src/components/grading/GradingAnswerAnnotationList.js +0 -19
  275. package/dist/src/components/grading/GradingAnswerAnnotationList.js.map +0 -1
  276. package/dist/src/components/grading/editAnnotations.d.ts +0 -29
  277. package/dist/src/components/grading/editAnnotations.d.ts.map +0 -1
  278. package/dist/src/components/grading/editAnnotations.js +0 -190
  279. package/dist/src/components/grading/editAnnotations.js.map +0 -1
  280. package/dist/src/components/grading/examAnnotationUtils.d.ts +0 -3
  281. package/dist/src/components/grading/examAnnotationUtils.d.ts.map +0 -1
  282. package/dist/src/components/grading/examAnnotationUtils.js +0 -44
  283. package/dist/src/components/grading/examAnnotationUtils.js.map +0 -1
  284. package/dist/src/components/grading/largeImageDetector.d.ts +0 -3
  285. package/dist/src/components/grading/largeImageDetector.d.ts.map +0 -1
  286. package/dist/src/components/grading/largeImageDetector.js +0 -45
  287. package/dist/src/components/grading/largeImageDetector.js.map +0 -1
  288. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts +0 -5
  289. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts.map +0 -1
  290. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js +0 -4
  291. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js.map +0 -1
  292. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts +0 -5
  293. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts.map +0 -1
  294. package/dist/src/components/grading-instructions/AutogradedAnswer.js +0 -34
  295. package/dist/src/components/grading-instructions/AutogradedAnswer.js.map +0 -1
  296. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts +0 -5
  297. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts.map +0 -1
  298. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js +0 -17
  299. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js.map +0 -1
  300. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts +0 -5
  301. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts.map +0 -1
  302. package/dist/src/components/grading-instructions/ExamGradingInstruction.js +0 -4
  303. package/dist/src/components/grading-instructions/ExamGradingInstruction.js.map +0 -1
  304. package/dist/src/components/grading-instructions/GradingInstructions.d.ts +0 -6
  305. package/dist/src/components/grading-instructions/GradingInstructions.d.ts.map +0 -1
  306. package/dist/src/components/grading-instructions/GradingInstructions.js +0 -109
  307. package/dist/src/components/grading-instructions/GradingInstructions.js.map +0 -1
  308. package/dist/src/components/grading-instructions/Question.d.ts +0 -4
  309. package/dist/src/components/grading-instructions/Question.d.ts.map +0 -1
  310. package/dist/src/components/grading-instructions/Question.js +0 -14
  311. package/dist/src/components/grading-instructions/Question.js.map +0 -1
  312. package/dist/src/components/grading-instructions/QuestionTitle.d.ts +0 -5
  313. package/dist/src/components/grading-instructions/QuestionTitle.d.ts.map +0 -1
  314. package/dist/src/components/grading-instructions/QuestionTitle.js +0 -19
  315. package/dist/src/components/grading-instructions/QuestionTitle.js.map +0 -1
  316. package/dist/src/components/grading-instructions/Recording.d.ts +0 -5
  317. package/dist/src/components/grading-instructions/Recording.d.ts.map +0 -1
  318. package/dist/src/components/grading-instructions/Recording.js +0 -19
  319. package/dist/src/components/grading-instructions/Recording.js.map +0 -1
  320. package/dist/src/components/grading-instructions/Section.d.ts +0 -4
  321. package/dist/src/components/grading-instructions/Section.d.ts.map +0 -1
  322. package/dist/src/components/grading-instructions/Section.js +0 -10
  323. package/dist/src/components/grading-instructions/Section.js.map +0 -1
  324. package/dist/src/components/grading-instructions/SectionTitle.d.ts +0 -5
  325. package/dist/src/components/grading-instructions/SectionTitle.d.ts.map +0 -1
  326. package/dist/src/components/grading-instructions/SectionTitle.js +0 -16
  327. package/dist/src/components/grading-instructions/SectionTitle.js.map +0 -1
  328. package/dist/src/components/results/ChoiceAnswer.d.ts +0 -6
  329. package/dist/src/components/results/ChoiceAnswer.d.ts.map +0 -1
  330. package/dist/src/components/results/ChoiceAnswer.js +0 -57
  331. package/dist/src/components/results/ChoiceAnswer.js.map +0 -1
  332. package/dist/src/components/results/DropdownAnswer.d.ts +0 -6
  333. package/dist/src/components/results/DropdownAnswer.d.ts.map +0 -1
  334. package/dist/src/components/results/DropdownAnswer.js +0 -43
  335. package/dist/src/components/results/DropdownAnswer.js.map +0 -1
  336. package/dist/src/components/results/EndExamSession.d.ts +0 -8
  337. package/dist/src/components/results/EndExamSession.d.ts.map +0 -1
  338. package/dist/src/components/results/EndExamSession.js +0 -20
  339. package/dist/src/components/results/EndExamSession.js.map +0 -1
  340. package/dist/src/components/results/MultiLineAnswer.d.ts +0 -8
  341. package/dist/src/components/results/MultiLineAnswer.d.ts.map +0 -1
  342. package/dist/src/components/results/MultiLineAnswer.js +0 -22
  343. package/dist/src/components/results/MultiLineAnswer.js.map +0 -1
  344. package/dist/src/components/results/Question.d.ts +0 -4
  345. package/dist/src/components/results/Question.d.ts.map +0 -1
  346. package/dist/src/components/results/Question.js +0 -31
  347. package/dist/src/components/results/Question.js.map +0 -1
  348. package/dist/src/components/results/QuestionTitle.d.ts +0 -6
  349. package/dist/src/components/results/QuestionTitle.d.ts.map +0 -1
  350. package/dist/src/components/results/QuestionTitle.js +0 -26
  351. package/dist/src/components/results/QuestionTitle.js.map +0 -1
  352. package/dist/src/components/results/Results.d.ts +0 -19
  353. package/dist/src/components/results/Results.d.ts.map +0 -1
  354. package/dist/src/components/results/Results.js +0 -136
  355. package/dist/src/components/results/Results.js.map +0 -1
  356. package/dist/src/components/results/ScoredTextAnswer.d.ts +0 -6
  357. package/dist/src/components/results/ScoredTextAnswer.d.ts.map +0 -1
  358. package/dist/src/components/results/ScoredTextAnswer.js +0 -22
  359. package/dist/src/components/results/ScoredTextAnswer.js.map +0 -1
  360. package/dist/src/components/results/Section.d.ts +0 -4
  361. package/dist/src/components/results/Section.d.ts.map +0 -1
  362. package/dist/src/components/results/Section.js +0 -11
  363. package/dist/src/components/results/Section.js.map +0 -1
  364. package/dist/src/components/results/SingleLineAnswer.d.ts +0 -12
  365. package/dist/src/components/results/SingleLineAnswer.d.ts.map +0 -1
  366. package/dist/src/components/results/SingleLineAnswer.js +0 -26
  367. package/dist/src/components/results/SingleLineAnswer.js.map +0 -1
  368. package/dist/src/components/results/TextAnswer.d.ts +0 -7
  369. package/dist/src/components/results/TextAnswer.d.ts.map +0 -1
  370. package/dist/src/components/results/TextAnswer.js +0 -48
  371. package/dist/src/components/results/TextAnswer.js.map +0 -1
  372. package/dist/src/components/results/internal/AnnotationList.d.ts +0 -5
  373. package/dist/src/components/results/internal/AnnotationList.d.ts.map +0 -1
  374. package/dist/src/components/results/internal/AnnotationList.js +0 -32
  375. package/dist/src/components/results/internal/AnnotationList.js.map +0 -1
  376. package/dist/src/components/results/internal/QuestionAutoScore.d.ts +0 -11
  377. package/dist/src/components/results/internal/QuestionAutoScore.d.ts.map +0 -1
  378. package/dist/src/components/results/internal/QuestionAutoScore.js +0 -17
  379. package/dist/src/components/results/internal/QuestionAutoScore.js.map +0 -1
  380. package/dist/src/components/results/internal/QuestionManualScore.d.ts +0 -13
  381. package/dist/src/components/results/internal/QuestionManualScore.d.ts.map +0 -1
  382. package/dist/src/components/results/internal/QuestionManualScore.js +0 -66
  383. package/dist/src/components/results/internal/QuestionManualScore.js.map +0 -1
  384. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts +0 -11
  385. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts.map +0 -1
  386. package/dist/src/components/results/internal/QuestionScoresContainer.js +0 -27
  387. package/dist/src/components/results/internal/QuestionScoresContainer.js.map +0 -1
  388. package/dist/src/components/results/isExamineExamPageHook.d.ts +0 -2
  389. package/dist/src/components/results/isExamineExamPageHook.d.ts.map +0 -1
  390. package/dist/src/components/results/isExamineExamPageHook.js +0 -7
  391. package/dist/src/components/results/isExamineExamPageHook.js.map +0 -1
  392. package/dist/src/components/shared/AnnotatableText.d.ts +0 -5
  393. package/dist/src/components/shared/AnnotatableText.d.ts.map +0 -1
  394. package/dist/src/components/shared/AnnotatableText.js +0 -73
  395. package/dist/src/components/shared/AnnotatableText.js.map +0 -1
  396. package/dist/src/components/shared/AnnotationLists.d.ts +0 -13
  397. package/dist/src/components/shared/AnnotationLists.d.ts.map +0 -1
  398. package/dist/src/components/shared/AnnotationLists.js +0 -17
  399. package/dist/src/components/shared/AnnotationLists.js.map +0 -1
  400. package/dist/src/components/shared/AnnotationPopup.d.ts +0 -3
  401. package/dist/src/components/shared/AnnotationPopup.d.ts.map +0 -1
  402. package/dist/src/components/shared/AnnotationPopup.js +0 -74
  403. package/dist/src/components/shared/AnnotationPopup.js.map +0 -1
  404. package/dist/src/components/shared/AnswerIndicator.d.ts +0 -12
  405. package/dist/src/components/shared/AnswerIndicator.d.ts.map +0 -1
  406. package/dist/src/components/shared/AnswerIndicator.js +0 -27
  407. package/dist/src/components/shared/AnswerIndicator.js.map +0 -1
  408. package/dist/src/components/shared/AnswerLengthInfo.d.ts +0 -7
  409. package/dist/src/components/shared/AnswerLengthInfo.d.ts.map +0 -1
  410. package/dist/src/components/shared/AnswerLengthInfo.js +0 -11
  411. package/dist/src/components/shared/AnswerLengthInfo.js.map +0 -1
  412. package/dist/src/components/shared/AttachmentLink.d.ts +0 -5
  413. package/dist/src/components/shared/AttachmentLink.d.ts.map +0 -1
  414. package/dist/src/components/shared/AttachmentLink.js +0 -28
  415. package/dist/src/components/shared/AttachmentLink.js.map +0 -1
  416. package/dist/src/components/shared/AttachmentLinks.d.ts +0 -5
  417. package/dist/src/components/shared/AttachmentLinks.d.ts.map +0 -1
  418. package/dist/src/components/shared/AttachmentLinks.js +0 -58
  419. package/dist/src/components/shared/AttachmentLinks.js.map +0 -1
  420. package/dist/src/components/shared/Audio.d.ts +0 -6
  421. package/dist/src/components/shared/Audio.d.ts.map +0 -1
  422. package/dist/src/components/shared/Audio.js +0 -31
  423. package/dist/src/components/shared/Audio.js.map +0 -1
  424. package/dist/src/components/shared/AudioGroup.d.ts +0 -6
  425. package/dist/src/components/shared/AudioGroup.d.ts.map +0 -1
  426. package/dist/src/components/shared/AudioGroup.js +0 -9
  427. package/dist/src/components/shared/AudioGroup.js.map +0 -1
  428. package/dist/src/components/shared/AudioTest.d.ts +0 -6
  429. package/dist/src/components/shared/AudioTest.d.ts.map +0 -1
  430. package/dist/src/components/shared/AudioTest.js +0 -34
  431. package/dist/src/components/shared/AudioTest.js.map +0 -1
  432. package/dist/src/components/shared/ExamTranslation.d.ts +0 -6
  433. package/dist/src/components/shared/ExamTranslation.d.ts.map +0 -1
  434. package/dist/src/components/shared/ExamTranslation.js +0 -9
  435. package/dist/src/components/shared/ExamTranslation.js.map +0 -1
  436. package/dist/src/components/shared/File.d.ts +0 -6
  437. package/dist/src/components/shared/File.d.ts.map +0 -1
  438. package/dist/src/components/shared/File.js +0 -15
  439. package/dist/src/components/shared/File.js.map +0 -1
  440. package/dist/src/components/shared/Footer.d.ts +0 -5
  441. package/dist/src/components/shared/Footer.d.ts.map +0 -1
  442. package/dist/src/components/shared/Footer.js +0 -3
  443. package/dist/src/components/shared/Footer.js.map +0 -1
  444. package/dist/src/components/shared/Formula.d.ts +0 -6
  445. package/dist/src/components/shared/Formula.d.ts.map +0 -1
  446. package/dist/src/components/shared/Formula.js +0 -13
  447. package/dist/src/components/shared/Formula.js.map +0 -1
  448. package/dist/src/components/shared/Image.d.ts +0 -6
  449. package/dist/src/components/shared/Image.d.ts.map +0 -1
  450. package/dist/src/components/shared/Image.js +0 -30
  451. package/dist/src/components/shared/Image.js.map +0 -1
  452. package/dist/src/components/shared/ImageOverlay.d.ts +0 -6
  453. package/dist/src/components/shared/ImageOverlay.d.ts.map +0 -1
  454. package/dist/src/components/shared/ImageOverlay.js +0 -43
  455. package/dist/src/components/shared/ImageOverlay.js.map +0 -1
  456. package/dist/src/components/shared/QuestionNumber.d.ts +0 -4
  457. package/dist/src/components/shared/QuestionNumber.d.ts.map +0 -1
  458. package/dist/src/components/shared/QuestionNumber.js +0 -12
  459. package/dist/src/components/shared/QuestionNumber.js.map +0 -1
  460. package/dist/src/components/shared/Reference.d.ts +0 -6
  461. package/dist/src/components/shared/Reference.d.ts.map +0 -1
  462. package/dist/src/components/shared/Reference.js +0 -72
  463. package/dist/src/components/shared/Reference.js.map +0 -1
  464. package/dist/src/components/shared/References.d.ts +0 -6
  465. package/dist/src/components/shared/References.d.ts.map +0 -1
  466. package/dist/src/components/shared/References.js +0 -26
  467. package/dist/src/components/shared/References.js.map +0 -1
  468. package/dist/src/components/shared/Score.d.ts +0 -8
  469. package/dist/src/components/shared/Score.d.ts.map +0 -1
  470. package/dist/src/components/shared/Score.js +0 -13
  471. package/dist/src/components/shared/Score.js.map +0 -1
  472. package/dist/src/components/shared/TOCQuestion.d.ts +0 -4
  473. package/dist/src/components/shared/TOCQuestion.d.ts.map +0 -1
  474. package/dist/src/components/shared/TOCQuestion.js +0 -77
  475. package/dist/src/components/shared/TOCQuestion.js.map +0 -1
  476. package/dist/src/components/shared/TOCSection.d.ts +0 -7
  477. package/dist/src/components/shared/TOCSection.d.ts.map +0 -1
  478. package/dist/src/components/shared/TOCSection.js +0 -15
  479. package/dist/src/components/shared/TOCSection.js.map +0 -1
  480. package/dist/src/components/shared/TOCSectionTitle.d.ts +0 -4
  481. package/dist/src/components/shared/TOCSectionTitle.d.ts.map +0 -1
  482. package/dist/src/components/shared/TOCSectionTitle.js +0 -34
  483. package/dist/src/components/shared/TOCSectionTitle.js.map +0 -1
  484. package/dist/src/components/shared/TableOfContents.d.ts +0 -8
  485. package/dist/src/components/shared/TableOfContents.d.ts.map +0 -1
  486. package/dist/src/components/shared/TableOfContents.js +0 -61
  487. package/dist/src/components/shared/TableOfContents.js.map +0 -1
  488. package/dist/src/components/shared/VersionNumber.d.ts +0 -3
  489. package/dist/src/components/shared/VersionNumber.d.ts.map +0 -1
  490. package/dist/src/components/shared/VersionNumber.js +0 -10
  491. package/dist/src/components/shared/VersionNumber.js.map +0 -1
  492. package/dist/src/components/shared/Video.d.ts +0 -6
  493. package/dist/src/components/shared/Video.d.ts.map +0 -1
  494. package/dist/src/components/shared/Video.js +0 -22
  495. package/dist/src/components/shared/Video.js.map +0 -1
  496. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts +0 -8
  497. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts.map +0 -1
  498. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js +0 -4
  499. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js.map +0 -1
  500. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts +0 -8
  501. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts.map +0 -1
  502. package/dist/src/components/shared/internal/AudioPlaybackError.js +0 -17
  503. package/dist/src/components/shared/internal/AudioPlaybackError.js.map +0 -1
  504. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts +0 -18
  505. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts.map +0 -1
  506. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js +0 -21
  507. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js.map +0 -1
  508. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts +0 -12
  509. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts.map +0 -1
  510. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js +0 -46
  511. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js.map +0 -1
  512. package/dist/src/components/surround.d.ts +0 -8
  513. package/dist/src/components/surround.d.ts.map +0 -1
  514. package/dist/src/components/surround.js +0 -19
  515. package/dist/src/components/surround.js.map +0 -1
  516. package/dist/src/createRenderChildNodes.d.ts +0 -17
  517. package/dist/src/createRenderChildNodes.d.ts.map +0 -1
  518. package/dist/src/createRenderChildNodes.js +0 -64
  519. package/dist/src/createRenderChildNodes.js.map +0 -1
  520. package/dist/src/dom-utils.d.ts +0 -20
  521. package/dist/src/dom-utils.d.ts.map +0 -1
  522. package/dist/src/dom-utils.js +0 -164
  523. package/dist/src/dom-utils.js.map +0 -1
  524. package/dist/src/fonts.d.ts +0 -5
  525. package/dist/src/fonts.d.ts.map +0 -1
  526. package/dist/src/fonts.js +0 -16
  527. package/dist/src/fonts.js.map +0 -1
  528. package/dist/src/formatting.d.ts +0 -2
  529. package/dist/src/formatting.d.ts.map +0 -1
  530. package/dist/src/formatting.js +0 -4
  531. package/dist/src/formatting.js.map +0 -1
  532. package/dist/src/getDisplayName.d.ts +0 -4
  533. package/dist/src/getDisplayName.d.ts.map +0 -1
  534. package/dist/src/getDisplayName.js +0 -5
  535. package/dist/src/getDisplayName.js.map +0 -1
  536. package/dist/src/i18n/A_E.d.ts +0 -3
  537. package/dist/src/i18n/A_E.d.ts.map +0 -1
  538. package/dist/src/i18n/A_E.js +0 -8
  539. package/dist/src/i18n/A_E.js.map +0 -1
  540. package/dist/src/i18n/BA.d.ts +0 -3
  541. package/dist/src/i18n/BA.d.ts.map +0 -1
  542. package/dist/src/i18n/BA.js +0 -11
  543. package/dist/src/i18n/BA.js.map +0 -1
  544. package/dist/src/i18n/CA.d.ts +0 -3
  545. package/dist/src/i18n/CA.d.ts.map +0 -1
  546. package/dist/src/i18n/CA.js +0 -11
  547. package/dist/src/i18n/CA.js.map +0 -1
  548. package/dist/src/i18n/EA.d.ts +0 -3
  549. package/dist/src/i18n/EA.d.ts.map +0 -1
  550. package/dist/src/i18n/EA.js +0 -16
  551. package/dist/src/i18n/EA.js.map +0 -1
  552. package/dist/src/i18n/FA.d.ts +0 -3
  553. package/dist/src/i18n/FA.d.ts.map +0 -1
  554. package/dist/src/i18n/FA.js +0 -17
  555. package/dist/src/i18n/FA.js.map +0 -1
  556. package/dist/src/i18n/GC.d.ts +0 -3
  557. package/dist/src/i18n/GC.d.ts.map +0 -1
  558. package/dist/src/i18n/GC.js +0 -16
  559. package/dist/src/i18n/GC.js.map +0 -1
  560. package/dist/src/i18n/I.d.ts +0 -3
  561. package/dist/src/i18n/I.d.ts.map +0 -1
  562. package/dist/src/i18n/I.js +0 -21
  563. package/dist/src/i18n/I.js.map +0 -1
  564. package/dist/src/i18n/M.d.ts +0 -3
  565. package/dist/src/i18n/M.d.ts.map +0 -1
  566. package/dist/src/i18n/M.js +0 -4
  567. package/dist/src/i18n/M.js.map +0 -1
  568. package/dist/src/i18n/O_E.d.ts +0 -3
  569. package/dist/src/i18n/O_E.d.ts.map +0 -1
  570. package/dist/src/i18n/O_E.js +0 -7
  571. package/dist/src/i18n/O_E.js.map +0 -1
  572. package/dist/src/i18n/PA.d.ts +0 -3
  573. package/dist/src/i18n/PA.d.ts.map +0 -1
  574. package/dist/src/i18n/PA.js +0 -16
  575. package/dist/src/i18n/PA.js.map +0 -1
  576. package/dist/src/i18n/SA.d.ts +0 -3
  577. package/dist/src/i18n/SA.d.ts.map +0 -1
  578. package/dist/src/i18n/SA.js +0 -16
  579. package/dist/src/i18n/SA.js.map +0 -1
  580. package/dist/src/i18n/TC.d.ts +0 -3
  581. package/dist/src/i18n/TC.d.ts.map +0 -1
  582. package/dist/src/i18n/TC.js +0 -16
  583. package/dist/src/i18n/TC.js.map +0 -1
  584. package/dist/src/i18n/VA.d.ts +0 -3
  585. package/dist/src/i18n/VA.d.ts.map +0 -1
  586. package/dist/src/i18n/VA.js +0 -16
  587. package/dist/src/i18n/VA.js.map +0 -1
  588. package/dist/src/i18n/Z.d.ts +0 -3
  589. package/dist/src/i18n/Z.d.ts.map +0 -1
  590. package/dist/src/i18n/Z.js +0 -22
  591. package/dist/src/i18n/Z.js.map +0 -1
  592. package/dist/src/i18n/fi-FI.d.ts +0 -192
  593. package/dist/src/i18n/fi-FI.d.ts.map +0 -1
  594. package/dist/src/i18n/fi-FI.js +0 -182
  595. package/dist/src/i18n/fi-FI.js.map +0 -1
  596. package/dist/src/i18n/index.d.ts +0 -20
  597. package/dist/src/i18n/index.d.ts.map +0 -1
  598. package/dist/src/i18n/index.js +0 -128
  599. package/dist/src/i18n/index.js.map +0 -1
  600. package/dist/src/i18n/sv-FI.d.ts +0 -3
  601. package/dist/src/i18n/sv-FI.d.ts.map +0 -1
  602. package/dist/src/i18n/sv-FI.js +0 -181
  603. package/dist/src/i18n/sv-FI.js.map +0 -1
  604. package/dist/src/ids.d.ts +0 -14
  605. package/dist/src/ids.d.ts.map +0 -1
  606. package/dist/src/ids.js +0 -28
  607. package/dist/src/ids.js.map +0 -1
  608. package/dist/src/index.d.ts +0 -19
  609. package/dist/src/index.d.ts.map +0 -1
  610. package/dist/src/index.js +0 -12
  611. package/dist/src/index.js.map +0 -1
  612. package/dist/src/parser/parseExam.d.ts +0 -2
  613. package/dist/src/parser/parseExam.d.ts.map +0 -1
  614. package/dist/src/parser/parseExam.js +0 -54
  615. package/dist/src/parser/parseExam.js.map +0 -1
  616. package/dist/src/parser/parseExamStructure.d.ts +0 -58
  617. package/dist/src/parser/parseExamStructure.d.ts.map +0 -1
  618. package/dist/src/parser/parseExamStructure.js +0 -40
  619. package/dist/src/parser/parseExamStructure.js.map +0 -1
  620. package/dist/src/renderAnnotations.d.ts +0 -7
  621. package/dist/src/renderAnnotations.d.ts.map +0 -1
  622. package/dist/src/renderAnnotations.js +0 -193
  623. package/dist/src/renderAnnotations.js.map +0 -1
  624. package/dist/src/scrollToHash.d.ts +0 -2
  625. package/dist/src/scrollToHash.d.ts.map +0 -1
  626. package/dist/src/scrollToHash.js +0 -24
  627. package/dist/src/scrollToHash.js.map +0 -1
  628. package/dist/src/shortDisplayNumber.d.ts +0 -2
  629. package/dist/src/shortDisplayNumber.d.ts.map +0 -1
  630. package/dist/src/shortDisplayNumber.js +0 -5
  631. package/dist/src/shortDisplayNumber.js.map +0 -1
  632. package/dist/src/store/answers/actions.d.ts +0 -33
  633. package/dist/src/store/answers/actions.d.ts.map +0 -1
  634. package/dist/src/store/answers/actions.js +0 -9
  635. package/dist/src/store/answers/actions.js.map +0 -1
  636. package/dist/src/store/answers/reducer.d.ts +0 -39
  637. package/dist/src/store/answers/reducer.d.ts.map +0 -1
  638. package/dist/src/store/answers/reducer.js +0 -55
  639. package/dist/src/store/answers/reducer.js.map +0 -1
  640. package/dist/src/store/answers/sagas.d.ts +0 -8
  641. package/dist/src/store/answers/sagas.d.ts.map +0 -1
  642. package/dist/src/store/answers/sagas.js +0 -60
  643. package/dist/src/store/answers/sagas.js.map +0 -1
  644. package/dist/src/store/audio/actions.d.ts +0 -29
  645. package/dist/src/store/audio/actions.d.ts.map +0 -1
  646. package/dist/src/store/audio/actions.js +0 -9
  647. package/dist/src/store/audio/actions.js.map +0 -1
  648. package/dist/src/store/audio/reducer.d.ts +0 -27
  649. package/dist/src/store/audio/reducer.d.ts.map +0 -1
  650. package/dist/src/store/audio/reducer.js +0 -55
  651. package/dist/src/store/audio/reducer.js.map +0 -1
  652. package/dist/src/store/audio/sagas.d.ts +0 -3
  653. package/dist/src/store/audio/sagas.d.ts.map +0 -1
  654. package/dist/src/store/audio/sagas.js +0 -68
  655. package/dist/src/store/audio/sagas.js.map +0 -1
  656. package/dist/src/store/cas/actions.d.ts +0 -19
  657. package/dist/src/store/cas/actions.d.ts.map +0 -1
  658. package/dist/src/store/cas/actions.js +0 -9
  659. package/dist/src/store/cas/actions.js.map +0 -1
  660. package/dist/src/store/cas/reducer.d.ts +0 -14
  661. package/dist/src/store/cas/reducer.d.ts.map +0 -1
  662. package/dist/src/store/cas/reducer.js +0 -24
  663. package/dist/src/store/cas/reducer.js.map +0 -1
  664. package/dist/src/store/cas/sagas.d.ts +0 -18
  665. package/dist/src/store/cas/sagas.d.ts.map +0 -1
  666. package/dist/src/store/cas/sagas.js +0 -36
  667. package/dist/src/store/cas/sagas.js.map +0 -1
  668. package/dist/src/store/countdown.d.ts +0 -4
  669. package/dist/src/store/countdown.d.ts.map +0 -1
  670. package/dist/src/store/countdown.js +0 -33
  671. package/dist/src/store/countdown.js.map +0 -1
  672. package/dist/src/store/index.d.ts +0 -78
  673. package/dist/src/store/index.d.ts.map +0 -1
  674. package/dist/src/store/index.js +0 -53
  675. package/dist/src/store/index.js.map +0 -1
  676. package/dist/src/store/selectors.d.ts +0 -9
  677. package/dist/src/store/selectors.d.ts.map +0 -1
  678. package/dist/src/store/selectors.js +0 -35
  679. package/dist/src/store/selectors.js.map +0 -1
  680. package/dist/src/types/ExamAnswer.d.ts +0 -22
  681. package/dist/src/types/ExamAnswer.d.ts.map +0 -1
  682. package/dist/src/types/ExamAnswer.js +0 -2
  683. package/dist/src/types/ExamAnswer.js.map +0 -1
  684. package/dist/src/types/ExamServerAPI.d.ts +0 -78
  685. package/dist/src/types/ExamServerAPI.d.ts.map +0 -1
  686. package/dist/src/types/ExamServerAPI.js +0 -2
  687. package/dist/src/types/ExamServerAPI.js.map +0 -1
  688. package/dist/src/types/GradingStructure.d.ts +0 -40
  689. package/dist/src/types/GradingStructure.d.ts.map +0 -1
  690. package/dist/src/types/GradingStructure.js +0 -2
  691. package/dist/src/types/GradingStructure.js.map +0 -1
  692. package/dist/src/types/Score.d.ts +0 -92
  693. package/dist/src/types/Score.d.ts.map +0 -1
  694. package/dist/src/types/Score.js +0 -2
  695. package/dist/src/types/Score.js.map +0 -1
  696. package/dist/src/url.d.ts +0 -7
  697. package/dist/src/url.d.ts.map +0 -1
  698. package/dist/src/url.js +0 -12
  699. package/dist/src/url.js.map +0 -1
  700. package/dist/src/useCached.d.ts +0 -3
  701. package/dist/src/useCached.d.ts.map +0 -1
  702. package/dist/src/useCached.js +0 -6
  703. package/dist/src/useCached.js.map +0 -1
  704. package/dist/src/utils.d.ts +0 -15
  705. package/dist/src/utils.d.ts.map +0 -1
  706. package/dist/src/utils.js +0 -35
  707. package/dist/src/utils.js.map +0 -1
  708. package/dist/src/validateAnswers.d.ts +0 -16
  709. package/dist/src/validateAnswers.d.ts.map +0 -1
  710. package/dist/src/validateAnswers.js +0 -89
  711. package/dist/src/validateAnswers.js.map +0 -1
  712. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -16,11 +16,11 @@ experimental_ct_react_1.test.describe('Annotations', () => {
16
16
  (0, experimental_ct_react_1.test)('annotation popup is not rendered if annotation props are not passed', async ({ mount, page }) => {
17
17
  const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam }));
18
18
  const element = component.locator('.exam-question-instruction');
19
- await (0, utils_1.annotate)(element, page);
19
+ await (0, utils_1.annotateText)(element, page);
20
20
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).not.toBeVisible();
21
21
  });
22
22
  (0, experimental_ct_react_1.test)('text can be annotated and annotations can be viewed when annotation props are passed', async ({ mount, page }) => {
23
- let callbackArgs = { newAnnotation: {}, comment: '', renderableAnnotation: {} };
23
+ let callbackArgs = { newAnnotation: {}, comment: '', annotationId: -1 };
24
24
  const existingAnnotations = [
25
25
  { id: 1, startIndex: 27, selectedText: 'pienempi' },
26
26
  { id: 2, startIndex: 166, selectedText: 'yhteisössä' },
@@ -32,8 +32,8 @@ experimental_ct_react_1.test.describe('Annotations', () => {
32
32
  { id: 7, startIndex: 65, selectedText: 'kiksi jokin' },
33
33
  { id: 8, startIndex: 71, selectedText: 'jokin koulu' }
34
34
  ];
35
- const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: createAnnotations(existingAnnotations), onClickAnnotation: (_event, renderableAnnotation) => {
36
- callbackArgs = { ...callbackArgs, renderableAnnotation };
35
+ const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: createTextAnnotations(existingAnnotations), onClickAnnotation: (_event, annotationId) => {
36
+ callbackArgs = { ...callbackArgs, annotationId };
37
37
  }, onSaveAnnotation: {
38
38
  fn: (newAnnotation, comment) => {
39
39
  callbackArgs = { ...callbackArgs, newAnnotation, comment };
@@ -46,41 +46,41 @@ experimental_ct_react_1.test.describe('Annotations', () => {
46
46
  for (const annotation of existingAnnotations.slice(0, 2)) {
47
47
  await (0, experimental_ct_react_1.expect)(annotationLocator(annotation.id)).toBeVisible();
48
48
  await (0, experimental_ct_react_1.expect)(annotationLocator(annotation.id)).toHaveText(annotation.selectedText);
49
- await (0, experimental_ct_react_1.expect)(annotationLocator(annotation.id).locator('sup')).toHaveAttribute('data-content', annotation.id.toString());
49
+ await (0, experimental_ct_react_1.expect)(annotationLocator(annotation.id).locator('+ sup')).toHaveAttribute('data-content', annotation.id.toString());
50
50
  }
51
51
  });
52
52
  await experimental_ct_react_1.test.step('hidden annotations are hidden', async () => {
53
53
  await (0, experimental_ct_react_1.expect)(annotationLocator(3)).toBeHidden();
54
- await (0, experimental_ct_react_1.expect)(annotationLocator(3).locator('sup')).toBeHidden();
54
+ await (0, experimental_ct_react_1.expect)(annotationLocator(3).locator('+ sup')).toBeHidden();
55
55
  await (0, experimental_ct_react_1.expect)(annotationLocator(3).locator('..')).toHaveAttribute('data-annotation-path', 'e:exam:0 > e:section:1 > e:question:2 > e:question-instruction:1 > span:0 > p:1 > #text:0');
56
56
  });
57
57
  await experimental_ct_react_1.test.step('if two annotations have same id, only latter renders <sup>', async () => {
58
58
  const marks = await annotationLocator(4).all();
59
59
  await (0, experimental_ct_react_1.expect)(marks[0]).toHaveText('mikä');
60
- await (0, experimental_ct_react_1.expect)(marks[0].locator('sup')).not.toBeVisible();
60
+ await (0, experimental_ct_react_1.expect)(marks[0].locator('+ sup')).not.toBeVisible();
61
61
  await (0, experimental_ct_react_1.expect)(marks[1]).toHaveText('ero');
62
62
  await (0, experimental_ct_react_1.expect)(marks[1]).toBeVisible();
63
- await (0, experimental_ct_react_1.expect)(marks[1].locator('sup')).toHaveAttribute('data-content', '4');
63
+ await (0, experimental_ct_react_1.expect)(marks[1].locator('+ sup')).toHaveAttribute('data-content', '4');
64
64
  });
65
65
  await experimental_ct_react_1.test.step('annotations can not overlap — overlapping annotations are not rendered', async () => {
66
66
  await (0, experimental_ct_react_1.expect)(annotationLocator(5)).toBeVisible();
67
- await (0, experimental_ct_react_1.expect)(annotationLocator(5).locator('sup')).toBeVisible();
67
+ await (0, experimental_ct_react_1.expect)(annotationLocator(5).locator('+ sup')).toBeVisible();
68
68
  await (0, experimental_ct_react_1.expect)(annotationLocator(5)).toHaveText('esimerkiksi');
69
69
  await (0, experimental_ct_react_1.expect)(annotationLocator(6)).toBeHidden();
70
- await (0, experimental_ct_react_1.expect)(annotationLocator(6).locator('sup')).toBeHidden();
70
+ await (0, experimental_ct_react_1.expect)(annotationLocator(6).locator('+ sup')).toBeHidden();
71
71
  await (0, experimental_ct_react_1.expect)(annotationLocator(6)).toHaveText('');
72
72
  await (0, experimental_ct_react_1.expect)(annotationLocator(7)).toBeHidden();
73
- await (0, experimental_ct_react_1.expect)(annotationLocator(7).locator('sup')).toBeHidden();
73
+ await (0, experimental_ct_react_1.expect)(annotationLocator(7).locator('+ sup')).toBeHidden();
74
74
  await (0, experimental_ct_react_1.expect)(annotationLocator(7)).toHaveText('');
75
75
  await (0, experimental_ct_react_1.expect)(annotationLocator(8)).toBeVisible();
76
- await (0, experimental_ct_react_1.expect)(annotationLocator(8).locator('sup')).toBeVisible();
76
+ await (0, experimental_ct_react_1.expect)(annotationLocator(8).locator('+ sup')).toBeVisible();
77
77
  await (0, experimental_ct_react_1.expect)(annotationLocator(8)).toHaveText('jokin koulu');
78
78
  });
79
79
  });
80
80
  await experimental_ct_react_1.test.step('creating annotations', async () => {
81
81
  await experimental_ct_react_1.test.step('annotation popup appears when text is selected', async () => {
82
82
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).not.toBeVisible();
83
- await (0, utils_1.annotate)(annottatableElement, page);
83
+ await (0, utils_1.annotateText)(annottatableElement, page);
84
84
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
85
85
  });
86
86
  await experimental_ct_react_1.test.step('callback is called when annotation is saved', async () => {
@@ -97,12 +97,13 @@ experimental_ct_react_1.test.describe('Annotations', () => {
97
97
  length: 27
98
98
  }
99
99
  ],
100
+ annotationType: 'text',
100
101
  displayNumber: '2',
101
102
  selectedText: 'Sekä moraali että tavat pyr'
102
103
  });
103
104
  });
104
105
  await experimental_ct_react_1.test.step('popup field is empty when creating new annotation', async () => {
105
- await (0, utils_1.annotate)(annottatableElement, page);
106
+ await (0, utils_1.annotateText)(annottatableElement, page);
106
107
  await (0, experimental_ct_react_1.expect)(component.locator('.comment-content')).toHaveText('');
107
108
  });
108
109
  await experimental_ct_react_1.test.step('popup can be closed', async () => {
@@ -111,16 +112,7 @@ experimental_ct_react_1.test.describe('Annotations', () => {
111
112
  });
112
113
  await experimental_ct_react_1.test.step('callback is called when annotation is clicked', async () => {
113
114
  await component.locator('[data-annotation-id="1"]').click();
114
- (0, experimental_ct_react_1.expect)(callbackArgs.renderableAnnotation).toStrictEqual({
115
- annotationAnchor: 'e:exam:0 > e:section:1 > e:question:2 > e:question-instruction:1 > span:0 > p:1 > #text:0',
116
- annotationId: 1,
117
- hidden: false,
118
- length: 8,
119
- resolved: undefined,
120
- selectedText: 'pienempi',
121
- startIndex: 27,
122
- markNumber: 1
123
- });
115
+ (0, experimental_ct_react_1.expect)(callbackArgs.annotationId).toStrictEqual(1);
124
116
  });
125
117
  });
126
118
  });
@@ -129,26 +121,66 @@ experimental_ct_react_1.test.describe('Annotations', () => {
129
121
  * (in this case, but the index varies depending on the exam content)
130
122
  */
131
123
  const startIndexDifference = 24;
132
- const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: createAnnotations([{ id: 1, startIndex: 166 - startIndexDifference, selectedText: 'yhteisössä' }]), onClickAnnotation: () => { }, onSaveAnnotation: { fn: () => { } } }));
124
+ const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: createTextAnnotations([
125
+ { id: 1, startIndex: 166 - startIndexDifference, selectedText: 'yhteisössä' }
126
+ ]), onClickAnnotation: () => { }, onSaveAnnotation: { fn: () => { } } }));
133
127
  await (0, experimental_ct_react_1.expect)(component.locator('[data-annotation-id="1"]')).toBeVisible();
134
128
  await (0, experimental_ct_react_1.expect)(component.locator('[data-annotation-id="1"]')).toHaveText('yhteisössä');
135
- await (0, experimental_ct_react_1.expect)(component.locator('[data-annotation-id="1"] sup')).toHaveAttribute('data-content', '1');
129
+ await (0, experimental_ct_react_1.expect)(component.locator('[data-annotation-id="1"] + sup')).toHaveAttribute('data-content', '1');
136
130
  });
137
131
  (0, experimental_ct_react_1.test)('annotation popup is not closed when annotation save fails', async ({ mount, page }) => {
138
132
  const errorMessage = 'save failed';
139
133
  const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: { fn: () => { }, result: errorMessage } }));
140
134
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).not.toBeVisible();
141
- await (0, utils_1.annotate)(component.locator('.exam-question-instruction'), page);
135
+ await (0, utils_1.annotateText)(component.locator('.exam-question-instruction'), page);
142
136
  await component.locator('.comment-content').fill('New comment');
143
137
  await component.getByText('Tallenna').click();
144
138
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
145
139
  await (0, experimental_ct_react_1.expect)(component.getByText(errorMessage)).toBeVisible();
146
140
  });
147
- function createAnnotations(annotations) {
141
+ (0, experimental_ct_react_1.test)('formulas can be annotated with image annotations', async ({ mount, page }) => {
142
+ const masteredExam = await (0, utils_1.setupMasteredExam)('N');
143
+ let callbackArgs = { newAnnotation: {}, comment: '', annotationId: -1 };
144
+ const component = await mount(react_1.default.createElement(Annotations_story_1.AnnotationsStory, { masteredExam: masteredExam, annotations: [], onClickAnnotation: (_event, annotationId) => {
145
+ callbackArgs = { ...callbackArgs, annotationId };
146
+ }, onSaveAnnotation: {
147
+ fn: (newAnnotation, comment) => {
148
+ callbackArgs = { ...callbackArgs, newAnnotation, comment };
149
+ }
150
+ } }));
151
+ const annottatableElement = component.locator('.e-formula.e-annotatable').nth(0);
152
+ await experimental_ct_react_1.test.step('creating annotations', async () => {
153
+ await experimental_ct_react_1.test.step('annotation popup appears when text is selected', async () => {
154
+ await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).not.toBeVisible();
155
+ await (0, utils_1.annotateImage)(annottatableElement, page);
156
+ await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
157
+ });
158
+ await experimental_ct_react_1.test.step('callback is called when annotation is saved', async () => {
159
+ const textbox = component.locator('.comment-content');
160
+ await textbox.fill('New comment');
161
+ await component.getByText('Tallenna').click();
162
+ (0, experimental_ct_react_1.expect)(callbackArgs.comment).toBe('New comment');
163
+ (0, experimental_ct_react_1.expect)(callbackArgs.newAnnotation).toStrictEqual({
164
+ annotationType: 'image',
165
+ displayNumber: '2',
166
+ annotationAnchor: 'e:exam:0 > e:section:1 > e:question:2 > e:question-instruction:1 > span:0 > p:1 > e:formula:false',
167
+ description: 'kaava 4(x+1)=4x+4',
168
+ rect: {
169
+ x1: 0,
170
+ x2: 1,
171
+ y1: 0,
172
+ y2: 1
173
+ }
174
+ });
175
+ });
176
+ });
177
+ });
178
+ function createTextAnnotations(annotations) {
148
179
  const annotationsById = (0, lodash_1.groupBy)(annotations, 'id');
149
180
  return Object.keys(annotationsById).map((id, index) => {
150
181
  const annotationParts = annotationsById[id];
151
182
  return {
183
+ annotationType: 'text',
152
184
  annotationId: Number(id),
153
185
  selectedText: annotations.map(a => a.selectedText).join(' '),
154
186
  type: 'text',
@@ -1 +1 @@
1
- {"version":3,"file":"Annotations.test.js","sourceRoot":"","sources":["../../../__tests__/playwright/Annotations.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,yCAA2D;AAC3D,mEAA8D;AAE9D,mCAAgC;AAEhC,4BAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAChC,IAAI,YAA2D,CAAA;IAE/D,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,qEAAqE,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QACpG,MAAM,SAAS,GAAG,MAAM,KAAK,CAAC,8BAAC,oCAAgB,IAAC,YAAY,EAAE,YAAY,GAAI,CAAC,CAAA;QAC/E,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,4BAA4B,CAAC,CAAA;QAE/D,MAAM,IAAA,gBAAQ,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAC7B,MAAM,IAAA,8BAAM,EAAC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAA;IAClE,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,sFAAsF,EAAE,KAAK,EAAE,EAClG,KAAK,EACL,IAAI,EACL,EAAE,EAAE;QACH,IAAI,YAAY,GAAG,EAAE,aAAa,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,oBAAoB,EAAE,EAAE,EAAE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AAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;AAGH,CAAC,CAAC,CAAA"}
@@ -20,7 +20,7 @@ experimental_ct_react_1.test.describe('Attachments', () => {
20
20
  const annottatableElement = component.locator('.e-annotatable').first();
21
21
  const textbox = component.locator('.comment-content');
22
22
  await (0, experimental_ct_react_1.expect)(annottatableElement).toBeVisible();
23
- await (0, utils_1.annotate)(annottatableElement, page);
23
+ await (0, utils_1.annotateText)(annottatableElement, page);
24
24
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
25
25
  await textbox.fill('New comment');
26
26
  await component.getByText('Tallenna').click();
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/attachments/Attachments.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,0CAA4D;AAC5D,gFAA2E;AAE3E,4BAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAChC,IAAI,YAA2D,CAAA;IAE/D,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,0CAA0C,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QACzE,IAAI,WAAW,GAAG,EAAE,CAAA;QACpB,MAAM,SAAS,GAAG,MAAM,KAAK,CAC3B,8BAAC,oCAAgB,IACf,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,EAAE,EACf,iBAAiB,EAAE,GAAG,EAAE,GAAE,CAAC,EAC3B,gBAAgB,EAAE,CAAC,cAAc,EAAE,OAAe,EAAE,EAAE;gBACpD,WAAW,GAAG,OAAO,CAAA;YACvB,CAAC,GACD,CACH,CAAA;QACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,gB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E,GAAE,CAAC,EAC3B,gBAAgB,EAAE,CAAC,cAAc,EAAE,OAAe,EAAE,EAAE;gBACpD,WAAW,GAAG,OAAO,CAAA;YACvB,CAAC,GACD,CACH,CAAA;QACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;QAErD,MAAM,IAAA,8BAAM,EAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAA;QAC/C,MAAM,IAAA,oBAAY,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QAC7C,MAAM,IAAA,8BAAM,EAAC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QAE5D,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACjC,MAAM,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAA;QAC7C,IAAA,8BAAM,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -20,7 +20,7 @@ experimental_ct_react_1.test.describe('Grading Instructions', () => {
20
20
  const annottatableElement = component.locator('.e-annotatable').first();
21
21
  const textbox = component.locator('.comment-content');
22
22
  await (0, experimental_ct_react_1.expect)(annottatableElement).toBeVisible();
23
- await (0, utils_1.annotate)(annottatableElement, page);
23
+ await (0, utils_1.annotateText)(annottatableElement, page);
24
24
  await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
25
25
  await textbox.fill('New comment');
26
26
  await component.getByText('Tallenna').click();
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructions.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":";;;;;AAAA,k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C,IAAI,CAAC,aAAa,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
1
+ {"version":3,"file":"GradingInstructions.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,0CAAgE;AAChE,wGAAkG;AAElG,4BAAI,CAAC,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACzC,IAAI,YAA2D,CAAA;IAE/D,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,CAAC,CAAA;IAC9C,CAAC,CAAC,CAAA;IAEF,IAAA,4BAAI,EAAC,mDAAmD,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;QAClF,IAAI,WAAW,GAAG,EAAE,CAAA;QACpB,MAAM,SAAS,GAAG,MAAM,KAAK,CAC3B,8BAAC,mDAAuB,IACtB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,EAAE,EACf,iBAAiB,EAAE,GAAG,EAAE,GAAE,CAAC,EAC3B,gBAAgB,EAAE,CAAC,cAAc,EAAE,OAAe,EAAE,EAAE;gBACpD,WAAW,GAAG,OAAO,CAAA;YACvB,CAAC,GACD,CACH,CAAA;QACD,MAAM,mBAAmB,GAAG,SAAS,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,KAAK,EAAE,CAAA;QACvE,MAAM,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAA;QAErD,MAAM,IAAA,8BAAM,EAAC,mBAAmB,CAAC,CAAC,WAAW,EAAE,CAAA;QAC/C,MAAM,IAAA,oBAAY,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QAC7C,MAAM,IAAA,8BAAM,EAAC,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QAE5D,MAAM,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACjC,MAAM,SAAS,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,KAAK,EAAE,CAAA;QAC7C,IAAA,8BAAM,EAAC,WAAW,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;IACzC,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../src';
3
+ import { ExamAnnotation, NewExamAnnotation } from '../../../src';
4
4
  interface AnnotationsStoryProps {
5
5
  masteredExam: MasteringResult;
6
6
  annotations?: ExamAnnotation[];
7
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
7
+ onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
8
8
  onSaveAnnotation?: {
9
9
  fn: (annotation: NewExamAnnotation, comment: string) => void;
10
10
  result?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Annotations.story.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/Annotations.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAO/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA;AAEtF,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC5G,gBAAgB,CAAC,EAAE;QAAE,EAAE,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACrG;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAA"}
1
+ {"version":3,"file":"Annotations.story.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/Annotations.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAO/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE;QAAE,EAAE,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACrG;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CA6B5D,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../../src';
3
+ import { ExamAnnotation, NewExamAnnotation } from '../../../../src';
4
4
  import '../../../../src/css/main.less';
5
5
  interface AttachmentsStoryProps {
6
6
  masteredExam: MasteringResult;
7
7
  annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
8
+ onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
9
9
  onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
10
  }
11
11
  export declare const AttachmentsStory: React.FC<AttachmentsStoryProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"Attachments.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/attachments/Attachments.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEzF,OAAO,+BAA+B,CAAA;AAEtC,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC5G,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkB5D,CAAA"}
1
+ {"version":3,"file":"Attachments.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/attachments/Attachments.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnE,OAAO,+BAA+B,CAAA;AAEtC,UAAU,qBAAqB;IAC7B,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAkB5D,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../../src';
3
+ import { ExamAnnotation, NewExamAnnotation } from '../../../../src';
4
4
  import '../../../../src/css/main.less';
5
5
  interface GradingInstructionsStoryProps {
6
6
  masteredExam: MasteringResult;
7
7
  annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
8
+ onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
9
9
  onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
10
  }
11
11
  export declare const GradingInstructionStory: React.FC<GradingInstructionsStoryProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"GradingInstructions.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/grading-intructions/GradingInstructions.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACzF,OAAO,+BAA+B,CAAA;AAEtC,UAAU,6BAA6B;IACrC,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,UAAU,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAC5G,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAoB3E,CAAA"}
1
+ {"version":3,"file":"GradingInstructions.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/grading-intructions/GradingInstructions.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAG/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,+BAA+B,CAAA;AAEtC,UAAU,6BAA6B;IACrC,YAAY,EAAE,eAAe,CAAA;IAC7B,WAAW,CAAC,EAAE,cAAc,EAAE,CAAA;IAC9B,iBAAiB,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAA;IAChG,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CAC5E;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,6BAA6B,CAoB3E,CAAA"}
@@ -1,3 +1,4 @@
1
1
  import React from 'react';
2
- export declare function onMouseDownForAnnotation(e: React.MouseEvent, mouseUpCallback: (e: any) => void): void;
2
+ import { NewExamAnnotation } from '../../types/ExamAnnotations';
3
+ export declare function onMouseDownForAnnotation(e: React.MouseEvent, mouseUpCallback: (a: NewExamAnnotation) => void): void;
3
4
  //# sourceMappingURL=examAnnotationUtils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"examAnnotationUtils.d.ts","sourceRoot":"","sources":["../../../src/components/grading/examAnnotationUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,IAAI,QAuC9F"}
1
+ {"version":3,"file":"examAnnotationUtils.d.ts","sourceRoot":"","sources":["../../../src/components/grading/examAnnotationUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAkB,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAG/E,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC,EAAE,iBAAiB,KAAK,IAAI,QA6C5G"}
@@ -8,9 +8,12 @@ export function onMouseDownForAnnotation(e, mouseUpCallback) {
8
8
  * selection.getRangeAt(0).startContainer = where selection starts (first in DOM)
9
9
  */
10
10
  const selection = window.getSelection();
11
- const startNode = (_a = selection === null || selection === void 0 ? void 0 : selection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
12
- const endNode = (_b = selection === null || selection === void 0 ? void 0 : selection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
13
- if (selection && startNode && endNode && selection.toString().length > 0) {
11
+ const initialStartNode = (_a = selection === null || selection === void 0 ? void 0 : selection.anchorNode) === null || _a === void 0 ? void 0 : _a.parentElement;
12
+ const initialEndNode = (_b = selection === null || selection === void 0 ? void 0 : selection.focusNode) === null || _b === void 0 ? void 0 : _b.parentElement;
13
+ if (selection && initialStartNode && initialEndNode && selection.toString().length > 0) {
14
+ const isReversed = initialStartNode.compareDocumentPosition(initialEndNode) & Node.DOCUMENT_POSITION_PRECEDING;
15
+ const startNode = findAnnotatableNode(initialStartNode, isReversed ? 'previousElementSibling' : 'nextElementSibling');
16
+ const endNode = findAnnotatableNode(initialEndNode, isReversed ? 'nextElementSibling' : 'previousElementSibling');
14
17
  const hasMarks = selectionContainsNonhiddenMarks(selection);
15
18
  const startNodedisplayNumber = getDisplayNumber(startNode);
16
19
  const endNodeDisplayNumber = getDisplayNumber(endNode);
@@ -20,8 +23,9 @@ export function onMouseDownForAnnotation(e, mouseUpCallback) {
20
23
  !hasMarks) {
21
24
  const annotations = extractAnnotationsFromSelection(selection);
22
25
  mouseUpCallback({
26
+ annotationType: 'text',
23
27
  annotationParts: annotations,
24
- displayNumber: startNodedisplayNumber,
28
+ displayNumber: startNodedisplayNumber !== null && startNodedisplayNumber !== void 0 ? startNodedisplayNumber : '',
25
29
  selectedText: annotations.map(a => a.selectedText).join(' ')
26
30
  });
27
31
  }
@@ -33,13 +37,26 @@ export function onMouseDownForAnnotation(e, mouseUpCallback) {
33
37
  }
34
38
  window.addEventListener('mouseup', onMouseUpAfterAnswerMouseDown);
35
39
  }
40
+ const findAnnotatableNode = (node, siblingDirection) => {
41
+ if (node.matches('.e-annotatable')) {
42
+ return node;
43
+ }
44
+ const sibling = node[siblingDirection];
45
+ if (sibling instanceof HTMLElement) {
46
+ if (sibling.matches('.e-annotatable')) {
47
+ return sibling;
48
+ }
49
+ return sibling.querySelector('.e-annotatable') || findAnnotatableNode(sibling, siblingDirection);
50
+ }
51
+ return node;
52
+ };
36
53
  const selectionContainsNonhiddenMarks = (selection) => {
37
54
  const rangeChildren = Array.from(selection === null || selection === void 0 ? void 0 : selection.getRangeAt(0).cloneContents().children);
38
55
  const childIsNonHiddenMark = rangeChildren === null || rangeChildren === void 0 ? void 0 : rangeChildren.some(child => child.tagName === 'MARK' && child.getAttribute('data-hidden') === 'false');
39
56
  const childContainsNonHiddenMark = rangeChildren.some(child => child.querySelector('mark[data-hidden="false"]'));
40
57
  return childIsNonHiddenMark || childContainsNonHiddenMark;
41
58
  };
42
- const getDisplayNumber = (node) => { var _a; return (_a = node === null || node === void 0 ? void 0 : node.closest('div[data-annotation-anchor]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-annotation-anchor'); };
59
+ const getDisplayNumber = (node) => { var _a; return (_a = node === null || node === void 0 ? void 0 : node.closest('[data-annotation-anchor]')) === null || _a === void 0 ? void 0 : _a.getAttribute('data-annotation-anchor'); };
43
60
  const isAnnotatable = (node) => (node === null || node === void 0 ? void 0 : node.getAttribute('data-annotation-path')) && node.tagName !== 'MARK';
44
61
  const extractAnnotationsFromSelection = (selection) => {
45
62
  var _a, _b;
@@ -66,12 +83,13 @@ const extractAnnotationsFromSelection = (selection) => {
66
83
  const childsAnnotationPath = child.getAttribute('data-annotation-path');
67
84
  const isLastRangeChild = index === arr.length - 1;
68
85
  if (childsAnnotationPath) {
69
- // child is a text node, like <span> text </span>
86
+ // child is an annotable node, like <span> text </span>
87
+ const textContent = (_a = child.textContent) !== null && _a !== void 0 ? _a : '';
70
88
  const newElement = {
71
89
  annotationAnchor: childsAnnotationPath,
72
- selectedText: child.textContent || '',
90
+ selectedText: textContent,
73
91
  startIndex: index === 0 ? range.startOffset : 0,
74
- length: isLastRangeChild ? range.endOffset : ((_a = child.textContent) === null || _a === void 0 ? void 0 : _a.length) || 0
92
+ length: isLastRangeChild ? range.endOffset : textContent.length
75
93
  };
76
94
  return [...acc, newElement];
77
95
  }
@@ -81,6 +99,7 @@ const extractAnnotationsFromSelection = (selection) => {
81
99
  allChildrenWithAnnotationPath === null || allChildrenWithAnnotationPath === void 0 ? void 0 : allChildrenWithAnnotationPath.forEach((grandChild, kidIndex) => {
82
100
  var _a;
83
101
  const dataAnnotationPath = grandChild.getAttribute('data-annotation-path');
102
+ const textContent = (_a = grandChild.textContent) !== null && _a !== void 0 ? _a : '';
84
103
  if (dataAnnotationPath) {
85
104
  const isFirstOfAll = index === 0 && kidIndex === 0;
86
105
  const isLastGrandChild = kidIndex === allChildrenWithAnnotationPath.length - 1;
@@ -88,9 +107,9 @@ const extractAnnotationsFromSelection = (selection) => {
88
107
  const startAndLength = textAnnotationFromRange(firstSelectedNodeInDOM, range);
89
108
  const newElement = {
90
109
  annotationAnchor: dataAnnotationPath,
91
- selectedText: grandChild.textContent || '',
110
+ selectedText: textContent,
92
111
  startIndex: isFirstOfAll ? (startAndLength === null || startAndLength === void 0 ? void 0 : startAndLength.startIndex) || 0 : 0,
93
- length: isLastOfAll ? range.endOffset : ((_a = grandChild.textContent) === null || _a === void 0 ? void 0 : _a.length) || 0
112
+ length: isLastOfAll ? range.endOffset : textContent.length
94
113
  };
95
114
  acc.push(newElement);
96
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"examAnnotationUtils.js","sourceRoot":"","sources":["../../../src/components/grading/examAnnotationUtils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAA;AAE3D,MAAM,UAAU,wBAAwB,CAAC,CAAmB,EAAE,eAAiC;IAC7F,SAAS,6BAA6B;;QACpC,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,6BAA6B,CAAC,CAAA;QAEpE;;;WAGG;QAEH,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAA;QACvC,MAAM,SAAS,GAAG,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,UAAU,0CAAE,aAAa,CAAA;QACtD,MAAM,OAAO,GAAG,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,SAAS,0CAAE,aAAa,CAAA;QAEnD,IAAI,SAAS,IAAI,SAAS,IAAI,OAAO,IAAI,SAAS,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACzE,MAAM,QAAQ,GAAG,+BAA+B,CAAC,SAAS,CAAC,CAAA;YAC3D,MAAM,sBAAsB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AAA;oBAC1E,MAAM,WAAW,GAAG,MAAA,UAAU,CAAC,WAAW,mCAAI,EAAE,CAAA;oBAChD,IAAI,kBAAkB,EAAE,CAAC;wBACvB,MAAM,YAAY,GAAG,KAAK,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC,CAAA;wBAClD,MAAM,gBAAgB,GAAG,QAAQ,KAAK,6BAA6B,CAAC,MAAM,GAAG,CAAC,CAAA;wBAC9E,MAAM,WAAW,GAAG,gBAAgB,IAAI,gBAAgB,CAAA;wBACxD,MAAM,cAAc,GAAG,uBAAuB,CAAC,sBAAqC,EAAE,KAAK,CAAC,CAAA;wBAC5F,MAAM,UAAU,GAAG;4BACjB,gBAAgB,EAAE,kBAAkB;4BACpC,YAAY,EAAE,WAAW;4BACzB,UAAU,EAAE,YAAY,CAAC,CAAC,CAAC,CAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,UAAU,KAAI,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC9D,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM;yBAC3D,CAAA;wBACD,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;oBACtB,CAAC;gBACH,CAAC,CAAC,CAAA;gBACF,OAAO,GAAG,CAAA;YACZ,CAAC;QACH,CAAC,EAAE,EAAsB,CAAC,CAAA;QAE1B,OAAO,WAAW,CAAA;IACpB,CAAC;AACH,CAAC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ExamComponentProps } from '../..';
3
+ export declare const DNDAnswerContainer: ({ element, renderChildNodes }: ExamComponentProps) => React.JSX.Element;
4
+ //# sourceMappingURL=DNDAnswerContainer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DNDAnswerContainer.d.ts","sourceRoot":"","sources":["../../../src/components/results/DNDAnswerContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAA;AAO1C,eAAO,MAAM,kBAAkB,kCAAmC,kBAAkB,sBAuCnF,CAAA"}
@@ -0,0 +1,22 @@
1
+ import React, { useContext } from 'react';
2
+ import { query, queryAll } from '../../dom-utils';
3
+ import { ResultsContext } from '../context/ResultsContext';
4
+ import { getAnswerOptionIdsByQuestionId, getAnswerOptionsByOptionId } from '../exam/DNDAnswerContainer';
5
+ import { DNDTitleAndDroppable } from '../shared/DNDTitleAndDroppable';
6
+ import { CorrectDNDAnswers } from './CorrectDNDAnswers';
7
+ export const DNDAnswerContainer = ({ element, renderChildNodes }) => {
8
+ const { answersByQuestionId, gradingStructure } = useContext(ResultsContext);
9
+ const answerOptionIdsByQuestionId = getAnswerOptionIdsByQuestionId(element, answersByQuestionId);
10
+ const answerOptionsByOptionId = getAnswerOptionsByOptionId(element);
11
+ const dndAnswersWithQuestion = queryAll(element, 'dnd-answer').filter(e => !!query(e, 'dnd-answer-title'));
12
+ return (React.createElement("div", { className: "e-dnd-answer-container" }, dndAnswersWithQuestion.map(element => {
13
+ var _a;
14
+ const questionId = element.getAttribute('question-id');
15
+ const itemIds = answerOptionIdsByQuestionId[questionId] || [];
16
+ const answerOptionElements = (_a = (answerOptionIdsByQuestionId[questionId] || [])) === null || _a === void 0 ? void 0 : _a.map(id => (answerOptionsByOptionId === null || answerOptionsByOptionId === void 0 ? void 0 : answerOptionsByOptionId[id]) || null).filter(Boolean);
17
+ return (React.createElement(React.Fragment, { key: questionId },
18
+ React.createElement(DNDTitleAndDroppable, { key: questionId, element: element, answerOptionElements: answerOptionElements, renderChildNodes: renderChildNodes, itemIds: itemIds, page: "results" }),
19
+ gradingStructure && (React.createElement(CorrectDNDAnswers, { key: `${questionId}-correct`, element: element, renderChildNodes: renderChildNodes, answerOptionsById: answerOptionsByOptionId }))));
20
+ })));
21
+ };
22
+ //# sourceMappingURL=DNDAnswerContainer.js.map
@@ -0,0 +1 @@
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C,0CACxE,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAG,EAAE,CAAC,KAAI,IAAI,EAChD,MAAM,CAAC,OAAO,CAAC,CAAA;QAElB,OAAO,CACL,oBAAC,KAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,UAAU;YAC7B,oBAAC,oBAAoB,IACnB,GAAG,EAAE,UAAU,EACf,OAAO,EAAE,OAAO,EAChB,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAC,SAAS,GACd;YAED,gBAAgB,IAAI,CACnB,oBAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,UAAU,UAAU,EAC5B,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,uBAAuB,GAC1C,CACH,CACc,CAClB,CAAA;IACH,CAAC,CAAC,CACE,CACP,CAAA;AACH,CAAC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotatableText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAMzC,eAAO,MAAM,eAAe,aAAc;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,+BA2BvD,CAAA"}
1
+ {"version":3,"file":"AnnotatableText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAMzC,eAAO,MAAM,eAAe,aAAc;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,+BA6BvD,CAAA"}
@@ -7,16 +7,16 @@ export const AnnotatableText = ({ node }) => {
7
7
  var _a, _b;
8
8
  const annotationContextData = useContext(AnnotationContext);
9
9
  const { isInSidebar } = useContext(IsInSidebarContext);
10
- const { annotations, onClickAnnotation, setNewAnnotationRef, newAnnotation } = annotationContextData;
11
- const canNotBeAnnotated = (annotationContextData === null || annotationContextData === void 0 ? void 0 : annotationContextData.annotations) === undefined ||
12
- ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) === 0 ||
13
- isInSidebar !== undefined;
10
+ const canNotBeAnnotated = !annotationContextData.annotationsEnabled || ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim().length) === 0 || isInSidebar !== undefined;
14
11
  if (canNotBeAnnotated) {
15
12
  return node.textContent;
16
13
  }
14
+ const { textAnnotations, onClickAnnotation, setNewAnnotationRef, newAnnotation } = annotationContextData;
17
15
  const path = getElementPath(node);
18
- const newAnnotationPartsForThisNode = ((_b = newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationParts) === null || _b === void 0 ? void 0 : _b.filter(p => p.annotationAnchor === path)) || [];
19
- const savedAnnotationsForThisNode = (annotations === null || annotations === void 0 ? void 0 : annotations[path]) || [];
16
+ const newAnnotationPartsForThisNode = (newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationType) === 'text'
17
+ ? ((_b = newAnnotation === null || newAnnotation === void 0 ? void 0 : newAnnotation.annotationParts) === null || _b === void 0 ? void 0 : _b.filter(p => p.annotationAnchor === path)) || []
18
+ : [];
19
+ const savedAnnotationsForThisNode = (textAnnotations === null || textAnnotations === void 0 ? void 0 : textAnnotations[path]) || [];
20
20
  const allAnnotationsForThisNode = [...savedAnnotationsForThisNode, ...newAnnotationPartsForThisNode];
21
21
  return (React.createElement("span", { className: "e-annotatable", key: path, "data-annotation-path": path, "data-testid": path }, allAnnotationsForThisNode.length > 0 && onClickAnnotation
22
22
  ? markText(node.textContent, allAnnotationsForThisNode, onClickAnnotation, setNewAnnotationRef)
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotatableText.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE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AAe,CAAC,CAAA;IAE5C,MAAM,6BAA6B,GACjC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,cAAc,MAAK,MAAM;QACtC,CAAC,CAAC,CAAA,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,eAAe,0CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,KAAK,IAAI,CAAC,KAAI,EAAE;QAChF,CAAC,CAAC,EAAE,CAAA;IACR,MAAM,2BAA2B,GAAG,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,IAAI,CAAC,KAAI,EAAE,CAAA;IACjE,MAAM,yBAAyB,GAAG,CAAC,GAAG,2BAA2B,EAAE,GAAG,6BAA6B,CAAC,CAAA;IAEpG,OAAO,CACL,8BAAM,SAAS,EAAC,eAAe,EAAC,GAAG,EAAE,IAAI,0BAAwB,IAAI,iBAAe,IAAI,IACrF,yBAAyB,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB;QACxD,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAY,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,mBAAmB,CAAC;QAChG,CAAC,CAAC,IAAI,CAAC,WAAW,CACf,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { AnnotationRect, NewExamAnnotation, NewExamImageAnnotation } from '../../types/ExamAnnotations';
3
+ export declare const AnnotationImageMark: React.NamedExoticComponent<{
4
+ rect: NewExamImageAnnotation["rect"];
5
+ onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotationId: number) => void;
6
+ setNewAnnotationRef: (e: HTMLElement | null) => void;
7
+ annotationId?: number;
8
+ markNumber?: number;
9
+ resolved?: boolean;
10
+ }>;
11
+ export declare function useImageAnnotation(anchor: string, description: string, setNewAnnotation: (a: NewExamAnnotation | null) => void): {
12
+ elementRef: React.RefObject<HTMLElement>;
13
+ annotationRect: AnnotationRect | undefined;
14
+ onMouseDown: (e: React.MouseEvent<HTMLElement, MouseEvent>) => void;
15
+ };
16
+ //# sourceMappingURL=AnnotationImageMark.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AnnotationImageMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationImageMark.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAGvG,eAAO,MAAM,mBAAmB;UAQxB,sBAAsB,CAAC,MAAM,CAAC;uBACjB,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI;yBAC1E,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI;mBACrC,MAAM;iBACR,MAAM;eACR,OAAO;EA6ClB,CAAA;AAEF,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,gBAAgB,EAAE,CAAC,CAAC,EAAE,iBAAiB,GAAG,IAAI,KAAK,IAAI;;;qBA4DnB,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC;EAkB9E"}