@digabi/exam-engine-core 23.7.1-alpha.0 → 23.7.1

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 (765) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/components/RenderIf.d.ts +3 -2
  3. package/dist/components/RenderIf.d.ts.map +1 -1
  4. package/dist/components/RenderIf.js +8 -6
  5. package/dist/components/RenderIf.js.map +1 -1
  6. package/dist/components/attachments/ExternalMaterial.d.ts.map +1 -1
  7. package/dist/components/attachments/ExternalMaterial.js +4 -2
  8. package/dist/components/attachments/ExternalMaterial.js.map +1 -1
  9. package/dist/components/context/withContext.d.ts.map +1 -1
  10. package/dist/components/exam/ChoiceAnswer.js +1 -1
  11. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  12. package/dist/components/exam/DNDAllOptions.d.ts.map +1 -1
  13. package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -1
  14. package/dist/components/exam/DNDAnswerOptionDraggable.d.ts.map +1 -1
  15. package/dist/components/exam/Exam.d.ts.map +1 -1
  16. package/dist/components/exam/RichTextAnswer.d.ts.map +1 -1
  17. package/dist/components/exam/StudentNameHeader.d.ts.map +1 -1
  18. package/dist/components/exam/UndoView.d.ts.map +1 -1
  19. package/dist/components/grading/examAnnotationUtils.d.ts +2 -1
  20. package/dist/components/grading/examAnnotationUtils.d.ts.map +1 -1
  21. package/dist/components/grading/examAnnotationUtils.js +29 -10
  22. package/dist/components/grading/examAnnotationUtils.js.map +1 -1
  23. package/dist/components/grading-instructions/GradingInstructionProvider.d.ts.map +1 -1
  24. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  25. package/dist/components/grading-instructions/GradingInstructions.js +7 -7
  26. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  27. package/dist/components/results/CorrectDNDAnswers.d.ts.map +1 -1
  28. package/dist/components/results/DNDAnswerOption.d.ts.map +1 -1
  29. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  30. package/dist/components/results/Results.d.ts.map +1 -1
  31. package/dist/components/results/Results.js +8 -2
  32. package/dist/components/results/Results.js.map +1 -1
  33. package/dist/components/shared/AttachmentLink.d.ts.map +1 -1
  34. package/dist/components/shared/AttachmentLinks.d.ts.map +1 -1
  35. package/dist/components/shared/Audio.d.ts.map +1 -1
  36. package/dist/components/shared/Audio.js +1 -1
  37. package/dist/components/shared/Audio.js.map +1 -1
  38. package/dist/components/shared/DNDAnswerContainer.d.ts.map +1 -1
  39. package/dist/components/shared/DNDDroppable.d.ts.map +1 -1
  40. package/dist/components/shared/DNDTitleAndDroppable.d.ts.map +1 -1
  41. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  42. package/dist/createRenderChildNodes.d.ts +8 -1
  43. package/dist/createRenderChildNodes.d.ts.map +1 -1
  44. package/dist/createRenderChildNodes.js +9 -5
  45. package/dist/createRenderChildNodes.js.map +1 -1
  46. package/dist/dom-utils.d.ts.map +1 -1
  47. package/dist/i18n/index.d.ts.map +1 -1
  48. package/dist/main-bundle.js +164 -164
  49. package/dist/main.css +1 -1
  50. package/dist/store/answers/actions.d.ts.map +1 -1
  51. package/dist/store/audio/actions.d.ts.map +1 -1
  52. package/dist/store/cas/actions.d.ts.map +1 -1
  53. package/dist/store/selectors.d.ts.map +1 -1
  54. package/dist/types/ExamAnnotations.d.ts +46 -0
  55. package/dist/types/ExamAnnotations.d.ts.map +1 -0
  56. package/dist/types/ExamAnnotations.js +2 -0
  57. package/dist/types/ExamAnnotations.js.map +1 -0
  58. package/package.json +4 -4
  59. package/dist/__tests__/annotations.test.d.ts +0 -2
  60. package/dist/__tests__/annotations.test.d.ts.map +0 -1
  61. package/dist/__tests__/annotations.test.js +0 -306
  62. package/dist/__tests__/annotations.test.js.map +0 -1
  63. package/dist/__tests__/playwright/Annotations.test.d.ts +0 -2
  64. package/dist/__tests__/playwright/Annotations.test.d.ts.map +0 -1
  65. package/dist/__tests__/playwright/Annotations.test.js +0 -169
  66. package/dist/__tests__/playwright/Annotations.test.js.map +0 -1
  67. package/dist/__tests__/playwright/attachments/Attachments.test.d.ts +0 -2
  68. package/dist/__tests__/playwright/attachments/Attachments.test.d.ts.map +0 -1
  69. package/dist/__tests__/playwright/attachments/Attachments.test.js +0 -30
  70. package/dist/__tests__/playwright/attachments/Attachments.test.js.map +0 -1
  71. package/dist/__tests__/playwright/exam/Exam.test.d.ts +0 -2
  72. package/dist/__tests__/playwright/exam/Exam.test.d.ts.map +0 -1
  73. package/dist/__tests__/playwright/exam/Exam.test.js +0 -30
  74. package/dist/__tests__/playwright/exam/Exam.test.js.map +0 -1
  75. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.d.ts +0 -2
  76. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.d.ts.map +0 -1
  77. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js +0 -30
  78. package/dist/__tests__/playwright/grading-instructions/GradingInstructions.test.js.map +0 -1
  79. package/dist/__tests__/playwright/stories/Annotations.story.d.ts +0 -15
  80. package/dist/__tests__/playwright/stories/Annotations.story.d.ts.map +0 -1
  81. package/dist/__tests__/playwright/stories/Annotations.story.js +0 -27
  82. package/dist/__tests__/playwright/stories/Annotations.story.js.map +0 -1
  83. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts +0 -13
  84. package/dist/__tests__/playwright/stories/attachments/Attachments.story.d.ts.map +0 -1
  85. package/dist/__tests__/playwright/stories/attachments/Attachments.story.js +0 -17
  86. package/dist/__tests__/playwright/stories/attachments/Attachments.story.js.map +0 -1
  87. package/dist/__tests__/playwright/stories/exam/Exam.story.d.ts +0 -12
  88. package/dist/__tests__/playwright/stories/exam/Exam.story.d.ts.map +0 -1
  89. package/dist/__tests__/playwright/stories/exam/Exam.story.js +0 -56
  90. package/dist/__tests__/playwright/stories/exam/Exam.story.js.map +0 -1
  91. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts +0 -13
  92. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.d.ts.map +0 -1
  93. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.js +0 -16
  94. package/dist/__tests__/playwright/stories/grading-intructions/GradingInstructions.story.js.map +0 -1
  95. package/dist/assets/closeButton.svg +0 -1
  96. package/dist/assets/collapse.svg +0 -12
  97. package/dist/assets/expand.svg +0 -12
  98. package/dist/assets/helpButton.svg +0 -9
  99. package/dist/assets/redoButton.svg +0 -5
  100. package/dist/assets/undoButton.svg +0 -5
  101. package/dist/components/exam/ExamineExam.d.ts +0 -5
  102. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  103. package/dist/components/exam/ExamineExam.js +0 -20
  104. package/dist/components/exam/ExamineExam.js.map +0 -1
  105. package/dist/components/shared/AnnotatableText.d.ts +0 -5
  106. package/dist/components/shared/AnnotatableText.d.ts.map +0 -1
  107. package/dist/components/shared/AnnotatableText.js +0 -25
  108. package/dist/components/shared/AnnotatableText.js.map +0 -1
  109. package/dist/components/shared/AnnotationMark.d.ts +0 -9
  110. package/dist/components/shared/AnnotationMark.d.ts.map +0 -1
  111. package/dist/components/shared/AnnotationMark.js +0 -14
  112. package/dist/components/shared/AnnotationMark.js.map +0 -1
  113. package/dist/components/shared/AnnotationPopup.d.ts +0 -3
  114. package/dist/components/shared/AnnotationPopup.d.ts.map +0 -1
  115. package/dist/components/shared/AnnotationPopup.js +0 -21
  116. package/dist/components/shared/AnnotationPopup.js.map +0 -1
  117. package/dist/components/shared/markText.d.ts +0 -5
  118. package/dist/components/shared/markText.d.ts.map +0 -1
  119. package/dist/components/shared/markText.js +0 -72
  120. package/dist/components/shared/markText.js.map +0 -1
  121. package/dist/src/components/AnswerToolbar.d.ts +0 -18
  122. package/dist/src/components/AnswerToolbar.d.ts.map +0 -1
  123. package/dist/src/components/AnswerToolbar.js +0 -36
  124. package/dist/src/components/AnswerToolbar.js.map +0 -1
  125. package/dist/src/components/AnsweringInstructions.d.ts +0 -12
  126. package/dist/src/components/AnsweringInstructions.d.ts.map +0 -1
  127. package/dist/src/components/AnsweringInstructions.js +0 -24
  128. package/dist/src/components/AnsweringInstructions.js.map +0 -1
  129. package/dist/src/components/DocumentTitle.d.ts +0 -5
  130. package/dist/src/components/DocumentTitle.d.ts.map +0 -1
  131. package/dist/src/components/DocumentTitle.js +0 -13
  132. package/dist/src/components/DocumentTitle.js.map +0 -1
  133. package/dist/src/components/NotificationIcon.d.ts +0 -4
  134. package/dist/src/components/NotificationIcon.d.ts.map +0 -1
  135. package/dist/src/components/NotificationIcon.js +0 -6
  136. package/dist/src/components/NotificationIcon.js.map +0 -1
  137. package/dist/src/components/RenderChildNodes.d.ts +0 -5
  138. package/dist/src/components/RenderChildNodes.d.ts.map +0 -1
  139. package/dist/src/components/RenderChildNodes.js +0 -7
  140. package/dist/src/components/RenderChildNodes.js.map +0 -1
  141. package/dist/src/components/RenderExamElements.d.ts +0 -6
  142. package/dist/src/components/RenderExamElements.d.ts.map +0 -1
  143. package/dist/src/components/RenderExamElements.js +0 -6
  144. package/dist/src/components/RenderExamElements.js.map +0 -1
  145. package/dist/src/components/RenderIf.d.ts +0 -4
  146. package/dist/src/components/RenderIf.d.ts.map +0 -1
  147. package/dist/src/components/RenderIf.js +0 -8
  148. package/dist/src/components/RenderIf.js.map +0 -1
  149. package/dist/src/components/ScreenReaderOnly.d.ts +0 -5
  150. package/dist/src/components/ScreenReaderOnly.d.ts.map +0 -1
  151. package/dist/src/components/ScreenReaderOnly.js +0 -3
  152. package/dist/src/components/ScreenReaderOnly.js.map +0 -1
  153. package/dist/src/components/SectionElement.d.ts +0 -4
  154. package/dist/src/components/SectionElement.d.ts.map +0 -1
  155. package/dist/src/components/SectionElement.js +0 -8
  156. package/dist/src/components/SectionElement.js.map +0 -1
  157. package/dist/src/components/attachments/Attachment.d.ts +0 -4
  158. package/dist/src/components/attachments/Attachment.d.ts.map +0 -1
  159. package/dist/src/components/attachments/Attachment.js +0 -8
  160. package/dist/src/components/attachments/Attachment.js.map +0 -1
  161. package/dist/src/components/attachments/AttachmentTitle.d.ts +0 -6
  162. package/dist/src/components/attachments/AttachmentTitle.d.ts.map +0 -1
  163. package/dist/src/components/attachments/AttachmentTitle.js +0 -12
  164. package/dist/src/components/attachments/AttachmentTitle.js.map +0 -1
  165. package/dist/src/components/attachments/Attachments.d.ts +0 -5
  166. package/dist/src/components/attachments/Attachments.d.ts.map +0 -1
  167. package/dist/src/components/attachments/Attachments.js +0 -55
  168. package/dist/src/components/attachments/Attachments.js.map +0 -1
  169. package/dist/src/components/attachments/ExternalMaterial.d.ts +0 -9
  170. package/dist/src/components/attachments/ExternalMaterial.d.ts.map +0 -1
  171. package/dist/src/components/attachments/ExternalMaterial.js +0 -46
  172. package/dist/src/components/attachments/ExternalMaterial.js.map +0 -1
  173. package/dist/src/components/attachments/Question.d.ts +0 -4
  174. package/dist/src/components/attachments/Question.d.ts.map +0 -1
  175. package/dist/src/components/attachments/Question.js +0 -16
  176. package/dist/src/components/attachments/Question.js.map +0 -1
  177. package/dist/src/components/attachments/QuestionTitle.d.ts +0 -6
  178. package/dist/src/components/attachments/QuestionTitle.d.ts.map +0 -1
  179. package/dist/src/components/attachments/QuestionTitle.js +0 -15
  180. package/dist/src/components/attachments/QuestionTitle.js.map +0 -1
  181. package/dist/src/components/context/AnnotationProvider.d.ts +0 -16
  182. package/dist/src/components/context/AnnotationProvider.d.ts.map +0 -1
  183. package/dist/src/components/context/AnnotationProvider.js +0 -35
  184. package/dist/src/components/context/AnnotationProvider.js.map +0 -1
  185. package/dist/src/components/context/AttachmentContext.d.ts +0 -13
  186. package/dist/src/components/context/AttachmentContext.d.ts.map +0 -1
  187. package/dist/src/components/context/AttachmentContext.js +0 -12
  188. package/dist/src/components/context/AttachmentContext.js.map +0 -1
  189. package/dist/src/components/context/CommonExamContext.d.ts +0 -22
  190. package/dist/src/components/context/CommonExamContext.d.ts.map +0 -1
  191. package/dist/src/components/context/CommonExamContext.js +0 -28
  192. package/dist/src/components/context/CommonExamContext.js.map +0 -1
  193. package/dist/src/components/context/ExamContext.d.ts +0 -9
  194. package/dist/src/components/context/ExamContext.d.ts.map +0 -1
  195. package/dist/src/components/context/ExamContext.js +0 -11
  196. package/dist/src/components/context/ExamContext.js.map +0 -1
  197. package/dist/src/components/context/IsInSidebarContext.d.ts +0 -6
  198. package/dist/src/components/context/IsInSidebarContext.d.ts.map +0 -1
  199. package/dist/src/components/context/IsInSidebarContext.js +0 -3
  200. package/dist/src/components/context/IsInSidebarContext.js.map +0 -1
  201. package/dist/src/components/context/QuestionContext.d.ts +0 -14
  202. package/dist/src/components/context/QuestionContext.d.ts.map +0 -1
  203. package/dist/src/components/context/QuestionContext.js +0 -27
  204. package/dist/src/components/context/QuestionContext.js.map +0 -1
  205. package/dist/src/components/context/ResultsContext.d.ts +0 -17
  206. package/dist/src/components/context/ResultsContext.d.ts.map +0 -1
  207. package/dist/src/components/context/ResultsContext.js +0 -69
  208. package/dist/src/components/context/ResultsContext.js.map +0 -1
  209. package/dist/src/components/context/SectionContext.d.ts +0 -12
  210. package/dist/src/components/context/SectionContext.d.ts.map +0 -1
  211. package/dist/src/components/context/SectionContext.js +0 -21
  212. package/dist/src/components/context/SectionContext.js.map +0 -1
  213. package/dist/src/components/context/TOCContext.d.ts +0 -7
  214. package/dist/src/components/context/TOCContext.d.ts.map +0 -1
  215. package/dist/src/components/context/TOCContext.js +0 -3
  216. package/dist/src/components/context/TOCContext.js.map +0 -1
  217. package/dist/src/components/context/withContext.d.ts +0 -3
  218. package/dist/src/components/context/withContext.d.ts.map +0 -1
  219. package/dist/src/components/context/withContext.js +0 -12
  220. package/dist/src/components/context/withContext.js.map +0 -1
  221. package/dist/src/components/exam/Attachment.d.ts +0 -4
  222. package/dist/src/components/exam/Attachment.d.ts.map +0 -1
  223. package/dist/src/components/exam/Attachment.js +0 -8
  224. package/dist/src/components/exam/Attachment.js.map +0 -1
  225. package/dist/src/components/exam/ChoiceAnswer.d.ts +0 -5
  226. package/dist/src/components/exam/ChoiceAnswer.d.ts.map +0 -1
  227. package/dist/src/components/exam/ChoiceAnswer.js +0 -53
  228. package/dist/src/components/exam/ChoiceAnswer.js.map +0 -1
  229. package/dist/src/components/exam/DropdownAnswer.d.ts +0 -5
  230. package/dist/src/components/exam/DropdownAnswer.d.ts.map +0 -1
  231. package/dist/src/components/exam/DropdownAnswer.js +0 -101
  232. package/dist/src/components/exam/DropdownAnswer.js.map +0 -1
  233. package/dist/src/components/exam/Exam.d.ts +0 -48
  234. package/dist/src/components/exam/Exam.d.ts.map +0 -1
  235. package/dist/src/components/exam/Exam.js +0 -195
  236. package/dist/src/components/exam/Exam.js.map +0 -1
  237. package/dist/src/components/exam/ExamFooter.d.ts +0 -6
  238. package/dist/src/components/exam/ExamFooter.d.ts.map +0 -1
  239. package/dist/src/components/exam/ExamFooter.js +0 -6
  240. package/dist/src/components/exam/ExamFooter.js.map +0 -1
  241. package/dist/src/components/exam/ExamInstruction.d.ts +0 -6
  242. package/dist/src/components/exam/ExamInstruction.d.ts.map +0 -1
  243. package/dist/src/components/exam/ExamInstruction.js +0 -6
  244. package/dist/src/components/exam/ExamInstruction.js.map +0 -1
  245. package/dist/src/components/exam/ExternalMaterial.d.ts +0 -10
  246. package/dist/src/components/exam/ExternalMaterial.d.ts.map +0 -1
  247. package/dist/src/components/exam/ExternalMaterial.js +0 -33
  248. package/dist/src/components/exam/ExternalMaterial.js.map +0 -1
  249. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts +0 -5
  250. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
  251. package/dist/src/components/exam/GoToExamineAnswersButton.js +0 -18
  252. package/dist/src/components/exam/GoToExamineAnswersButton.js.map +0 -1
  253. package/dist/src/components/exam/Hints.d.ts +0 -5
  254. package/dist/src/components/exam/Hints.d.ts.map +0 -1
  255. package/dist/src/components/exam/Hints.js +0 -31
  256. package/dist/src/components/exam/Hints.js.map +0 -1
  257. package/dist/src/components/exam/Question.d.ts +0 -8
  258. package/dist/src/components/exam/Question.d.ts.map +0 -1
  259. package/dist/src/components/exam/Question.js +0 -75
  260. package/dist/src/components/exam/Question.js.map +0 -1
  261. package/dist/src/components/exam/QuestionInstruction.d.ts +0 -6
  262. package/dist/src/components/exam/QuestionInstruction.d.ts.map +0 -1
  263. package/dist/src/components/exam/QuestionInstruction.js +0 -8
  264. package/dist/src/components/exam/QuestionInstruction.js.map +0 -1
  265. package/dist/src/components/exam/QuestionTitle.d.ts +0 -5
  266. package/dist/src/components/exam/QuestionTitle.d.ts.map +0 -1
  267. package/dist/src/components/exam/QuestionTitle.js +0 -26
  268. package/dist/src/components/exam/QuestionTitle.js.map +0 -1
  269. package/dist/src/components/exam/RichTextAnswer.d.ts +0 -41
  270. package/dist/src/components/exam/RichTextAnswer.d.ts.map +0 -1
  271. package/dist/src/components/exam/RichTextAnswer.js +0 -79
  272. package/dist/src/components/exam/RichTextAnswer.js.map +0 -1
  273. package/dist/src/components/exam/Section.d.ts +0 -4
  274. package/dist/src/components/exam/Section.d.ts.map +0 -1
  275. package/dist/src/components/exam/Section.js +0 -49
  276. package/dist/src/components/exam/Section.js.map +0 -1
  277. package/dist/src/components/exam/SectionInstruction.d.ts +0 -6
  278. package/dist/src/components/exam/SectionInstruction.d.ts.map +0 -1
  279. package/dist/src/components/exam/SectionInstruction.js +0 -6
  280. package/dist/src/components/exam/SectionInstruction.js.map +0 -1
  281. package/dist/src/components/exam/SectionTitle.d.ts +0 -6
  282. package/dist/src/components/exam/SectionTitle.d.ts.map +0 -1
  283. package/dist/src/components/exam/SectionTitle.js +0 -30
  284. package/dist/src/components/exam/SectionTitle.js.map +0 -1
  285. package/dist/src/components/exam/StudentNameHeader.d.ts +0 -8
  286. package/dist/src/components/exam/StudentNameHeader.d.ts.map +0 -1
  287. package/dist/src/components/exam/StudentNameHeader.js +0 -3
  288. package/dist/src/components/exam/StudentNameHeader.js.map +0 -1
  289. package/dist/src/components/exam/TextAnswer.d.ts +0 -6
  290. package/dist/src/components/exam/TextAnswer.d.ts.map +0 -1
  291. package/dist/src/components/exam/TextAnswer.js +0 -20
  292. package/dist/src/components/exam/TextAnswer.js.map +0 -1
  293. package/dist/src/components/exam/UndoHistoryEntry.d.ts +0 -19
  294. package/dist/src/components/exam/UndoHistoryEntry.d.ts.map +0 -1
  295. package/dist/src/components/exam/UndoHistoryEntry.js +0 -39
  296. package/dist/src/components/exam/UndoHistoryEntry.js.map +0 -1
  297. package/dist/src/components/exam/UndoView.d.ts +0 -35
  298. package/dist/src/components/exam/UndoView.d.ts.map +0 -1
  299. package/dist/src/components/exam/UndoView.js +0 -162
  300. package/dist/src/components/exam/UndoView.js.map +0 -1
  301. package/dist/src/components/exam/internal/ErrorIndicator.d.ts +0 -9
  302. package/dist/src/components/exam/internal/ErrorIndicator.d.ts.map +0 -1
  303. package/dist/src/components/exam/internal/ErrorIndicator.js +0 -63
  304. package/dist/src/components/exam/internal/ErrorIndicator.js.map +0 -1
  305. package/dist/src/components/exam/internal/ProgressBar.d.ts +0 -8
  306. package/dist/src/components/exam/internal/ProgressBar.d.ts.map +0 -1
  307. package/dist/src/components/exam/internal/ProgressBar.js +0 -19
  308. package/dist/src/components/exam/internal/ProgressBar.js.map +0 -1
  309. package/dist/src/components/exam/internal/SaveIndicator.d.ts +0 -5
  310. package/dist/src/components/exam/internal/SaveIndicator.d.ts.map +0 -1
  311. package/dist/src/components/exam/internal/SaveIndicator.js +0 -16
  312. package/dist/src/components/exam/internal/SaveIndicator.js.map +0 -1
  313. package/dist/src/components/exam/internal/TextAnswerInput.d.ts +0 -6
  314. package/dist/src/components/exam/internal/TextAnswerInput.d.ts.map +0 -1
  315. package/dist/src/components/exam/internal/TextAnswerInput.js +0 -128
  316. package/dist/src/components/exam/internal/TextAnswerInput.js.map +0 -1
  317. package/dist/src/components/grading/AnswerCharacterCounter.d.ts +0 -6
  318. package/dist/src/components/grading/AnswerCharacterCounter.d.ts.map +0 -1
  319. package/dist/src/components/grading/AnswerCharacterCounter.js +0 -21
  320. package/dist/src/components/grading/AnswerCharacterCounter.js.map +0 -1
  321. package/dist/src/components/grading/GradingAnswer.d.ts +0 -24
  322. package/dist/src/components/grading/GradingAnswer.d.ts.map +0 -1
  323. package/dist/src/components/grading/GradingAnswer.js +0 -306
  324. package/dist/src/components/grading/GradingAnswer.js.map +0 -1
  325. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts +0 -9
  326. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts.map +0 -1
  327. package/dist/src/components/grading/GradingAnswerAnnotationList.js +0 -19
  328. package/dist/src/components/grading/GradingAnswerAnnotationList.js.map +0 -1
  329. package/dist/src/components/grading/editAnnotations.d.ts +0 -29
  330. package/dist/src/components/grading/editAnnotations.d.ts.map +0 -1
  331. package/dist/src/components/grading/editAnnotations.js +0 -190
  332. package/dist/src/components/grading/editAnnotations.js.map +0 -1
  333. package/dist/src/components/grading/examAnnotationUtils.d.ts +0 -3
  334. package/dist/src/components/grading/examAnnotationUtils.d.ts.map +0 -1
  335. package/dist/src/components/grading/examAnnotationUtils.js +0 -44
  336. package/dist/src/components/grading/examAnnotationUtils.js.map +0 -1
  337. package/dist/src/components/grading/largeImageDetector.d.ts +0 -3
  338. package/dist/src/components/grading/largeImageDetector.d.ts.map +0 -1
  339. package/dist/src/components/grading/largeImageDetector.js +0 -45
  340. package/dist/src/components/grading/largeImageDetector.js.map +0 -1
  341. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts +0 -5
  342. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts.map +0 -1
  343. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js +0 -4
  344. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js.map +0 -1
  345. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts +0 -5
  346. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts.map +0 -1
  347. package/dist/src/components/grading-instructions/AutogradedAnswer.js +0 -34
  348. package/dist/src/components/grading-instructions/AutogradedAnswer.js.map +0 -1
  349. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts +0 -5
  350. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts.map +0 -1
  351. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js +0 -17
  352. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js.map +0 -1
  353. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts +0 -5
  354. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts.map +0 -1
  355. package/dist/src/components/grading-instructions/ExamGradingInstruction.js +0 -4
  356. package/dist/src/components/grading-instructions/ExamGradingInstruction.js.map +0 -1
  357. package/dist/src/components/grading-instructions/GradingInstructions.d.ts +0 -6
  358. package/dist/src/components/grading-instructions/GradingInstructions.d.ts.map +0 -1
  359. package/dist/src/components/grading-instructions/GradingInstructions.js +0 -109
  360. package/dist/src/components/grading-instructions/GradingInstructions.js.map +0 -1
  361. package/dist/src/components/grading-instructions/Question.d.ts +0 -4
  362. package/dist/src/components/grading-instructions/Question.d.ts.map +0 -1
  363. package/dist/src/components/grading-instructions/Question.js +0 -14
  364. package/dist/src/components/grading-instructions/Question.js.map +0 -1
  365. package/dist/src/components/grading-instructions/QuestionTitle.d.ts +0 -5
  366. package/dist/src/components/grading-instructions/QuestionTitle.d.ts.map +0 -1
  367. package/dist/src/components/grading-instructions/QuestionTitle.js +0 -19
  368. package/dist/src/components/grading-instructions/QuestionTitle.js.map +0 -1
  369. package/dist/src/components/grading-instructions/Recording.d.ts +0 -5
  370. package/dist/src/components/grading-instructions/Recording.d.ts.map +0 -1
  371. package/dist/src/components/grading-instructions/Recording.js +0 -19
  372. package/dist/src/components/grading-instructions/Recording.js.map +0 -1
  373. package/dist/src/components/grading-instructions/Section.d.ts +0 -4
  374. package/dist/src/components/grading-instructions/Section.d.ts.map +0 -1
  375. package/dist/src/components/grading-instructions/Section.js +0 -10
  376. package/dist/src/components/grading-instructions/Section.js.map +0 -1
  377. package/dist/src/components/grading-instructions/SectionTitle.d.ts +0 -5
  378. package/dist/src/components/grading-instructions/SectionTitle.d.ts.map +0 -1
  379. package/dist/src/components/grading-instructions/SectionTitle.js +0 -16
  380. package/dist/src/components/grading-instructions/SectionTitle.js.map +0 -1
  381. package/dist/src/components/results/ChoiceAnswer.d.ts +0 -6
  382. package/dist/src/components/results/ChoiceAnswer.d.ts.map +0 -1
  383. package/dist/src/components/results/ChoiceAnswer.js +0 -57
  384. package/dist/src/components/results/ChoiceAnswer.js.map +0 -1
  385. package/dist/src/components/results/DropdownAnswer.d.ts +0 -6
  386. package/dist/src/components/results/DropdownAnswer.d.ts.map +0 -1
  387. package/dist/src/components/results/DropdownAnswer.js +0 -43
  388. package/dist/src/components/results/DropdownAnswer.js.map +0 -1
  389. package/dist/src/components/results/EndExamSession.d.ts +0 -8
  390. package/dist/src/components/results/EndExamSession.d.ts.map +0 -1
  391. package/dist/src/components/results/EndExamSession.js +0 -20
  392. package/dist/src/components/results/EndExamSession.js.map +0 -1
  393. package/dist/src/components/results/MultiLineAnswer.d.ts +0 -8
  394. package/dist/src/components/results/MultiLineAnswer.d.ts.map +0 -1
  395. package/dist/src/components/results/MultiLineAnswer.js +0 -22
  396. package/dist/src/components/results/MultiLineAnswer.js.map +0 -1
  397. package/dist/src/components/results/Question.d.ts +0 -4
  398. package/dist/src/components/results/Question.d.ts.map +0 -1
  399. package/dist/src/components/results/Question.js +0 -31
  400. package/dist/src/components/results/Question.js.map +0 -1
  401. package/dist/src/components/results/QuestionTitle.d.ts +0 -6
  402. package/dist/src/components/results/QuestionTitle.d.ts.map +0 -1
  403. package/dist/src/components/results/QuestionTitle.js +0 -26
  404. package/dist/src/components/results/QuestionTitle.js.map +0 -1
  405. package/dist/src/components/results/Results.d.ts +0 -19
  406. package/dist/src/components/results/Results.d.ts.map +0 -1
  407. package/dist/src/components/results/Results.js +0 -136
  408. package/dist/src/components/results/Results.js.map +0 -1
  409. package/dist/src/components/results/ScoredTextAnswer.d.ts +0 -6
  410. package/dist/src/components/results/ScoredTextAnswer.d.ts.map +0 -1
  411. package/dist/src/components/results/ScoredTextAnswer.js +0 -22
  412. package/dist/src/components/results/ScoredTextAnswer.js.map +0 -1
  413. package/dist/src/components/results/Section.d.ts +0 -4
  414. package/dist/src/components/results/Section.d.ts.map +0 -1
  415. package/dist/src/components/results/Section.js +0 -11
  416. package/dist/src/components/results/Section.js.map +0 -1
  417. package/dist/src/components/results/SingleLineAnswer.d.ts +0 -12
  418. package/dist/src/components/results/SingleLineAnswer.d.ts.map +0 -1
  419. package/dist/src/components/results/SingleLineAnswer.js +0 -26
  420. package/dist/src/components/results/SingleLineAnswer.js.map +0 -1
  421. package/dist/src/components/results/TextAnswer.d.ts +0 -7
  422. package/dist/src/components/results/TextAnswer.d.ts.map +0 -1
  423. package/dist/src/components/results/TextAnswer.js +0 -48
  424. package/dist/src/components/results/TextAnswer.js.map +0 -1
  425. package/dist/src/components/results/internal/AnnotationList.d.ts +0 -5
  426. package/dist/src/components/results/internal/AnnotationList.d.ts.map +0 -1
  427. package/dist/src/components/results/internal/AnnotationList.js +0 -32
  428. package/dist/src/components/results/internal/AnnotationList.js.map +0 -1
  429. package/dist/src/components/results/internal/QuestionAutoScore.d.ts +0 -11
  430. package/dist/src/components/results/internal/QuestionAutoScore.d.ts.map +0 -1
  431. package/dist/src/components/results/internal/QuestionAutoScore.js +0 -17
  432. package/dist/src/components/results/internal/QuestionAutoScore.js.map +0 -1
  433. package/dist/src/components/results/internal/QuestionManualScore.d.ts +0 -13
  434. package/dist/src/components/results/internal/QuestionManualScore.d.ts.map +0 -1
  435. package/dist/src/components/results/internal/QuestionManualScore.js +0 -66
  436. package/dist/src/components/results/internal/QuestionManualScore.js.map +0 -1
  437. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts +0 -11
  438. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts.map +0 -1
  439. package/dist/src/components/results/internal/QuestionScoresContainer.js +0 -27
  440. package/dist/src/components/results/internal/QuestionScoresContainer.js.map +0 -1
  441. package/dist/src/components/results/isExamineExamPageHook.d.ts +0 -2
  442. package/dist/src/components/results/isExamineExamPageHook.d.ts.map +0 -1
  443. package/dist/src/components/results/isExamineExamPageHook.js +0 -7
  444. package/dist/src/components/results/isExamineExamPageHook.js.map +0 -1
  445. package/dist/src/components/shared/AnnotatableText.d.ts +0 -5
  446. package/dist/src/components/shared/AnnotatableText.d.ts.map +0 -1
  447. package/dist/src/components/shared/AnnotatableText.js +0 -73
  448. package/dist/src/components/shared/AnnotatableText.js.map +0 -1
  449. package/dist/src/components/shared/AnnotationLists.d.ts +0 -13
  450. package/dist/src/components/shared/AnnotationLists.d.ts.map +0 -1
  451. package/dist/src/components/shared/AnnotationLists.js +0 -17
  452. package/dist/src/components/shared/AnnotationLists.js.map +0 -1
  453. package/dist/src/components/shared/AnnotationPopup.d.ts +0 -3
  454. package/dist/src/components/shared/AnnotationPopup.d.ts.map +0 -1
  455. package/dist/src/components/shared/AnnotationPopup.js +0 -74
  456. package/dist/src/components/shared/AnnotationPopup.js.map +0 -1
  457. package/dist/src/components/shared/AnswerIndicator.d.ts +0 -12
  458. package/dist/src/components/shared/AnswerIndicator.d.ts.map +0 -1
  459. package/dist/src/components/shared/AnswerIndicator.js +0 -27
  460. package/dist/src/components/shared/AnswerIndicator.js.map +0 -1
  461. package/dist/src/components/shared/AnswerLengthInfo.d.ts +0 -7
  462. package/dist/src/components/shared/AnswerLengthInfo.d.ts.map +0 -1
  463. package/dist/src/components/shared/AnswerLengthInfo.js +0 -11
  464. package/dist/src/components/shared/AnswerLengthInfo.js.map +0 -1
  465. package/dist/src/components/shared/AttachmentLink.d.ts +0 -5
  466. package/dist/src/components/shared/AttachmentLink.d.ts.map +0 -1
  467. package/dist/src/components/shared/AttachmentLink.js +0 -28
  468. package/dist/src/components/shared/AttachmentLink.js.map +0 -1
  469. package/dist/src/components/shared/AttachmentLinks.d.ts +0 -5
  470. package/dist/src/components/shared/AttachmentLinks.d.ts.map +0 -1
  471. package/dist/src/components/shared/AttachmentLinks.js +0 -58
  472. package/dist/src/components/shared/AttachmentLinks.js.map +0 -1
  473. package/dist/src/components/shared/Audio.d.ts +0 -6
  474. package/dist/src/components/shared/Audio.d.ts.map +0 -1
  475. package/dist/src/components/shared/Audio.js +0 -31
  476. package/dist/src/components/shared/Audio.js.map +0 -1
  477. package/dist/src/components/shared/AudioGroup.d.ts +0 -6
  478. package/dist/src/components/shared/AudioGroup.d.ts.map +0 -1
  479. package/dist/src/components/shared/AudioGroup.js +0 -9
  480. package/dist/src/components/shared/AudioGroup.js.map +0 -1
  481. package/dist/src/components/shared/AudioTest.d.ts +0 -6
  482. package/dist/src/components/shared/AudioTest.d.ts.map +0 -1
  483. package/dist/src/components/shared/AudioTest.js +0 -34
  484. package/dist/src/components/shared/AudioTest.js.map +0 -1
  485. package/dist/src/components/shared/ExamTranslation.d.ts +0 -6
  486. package/dist/src/components/shared/ExamTranslation.d.ts.map +0 -1
  487. package/dist/src/components/shared/ExamTranslation.js +0 -9
  488. package/dist/src/components/shared/ExamTranslation.js.map +0 -1
  489. package/dist/src/components/shared/File.d.ts +0 -6
  490. package/dist/src/components/shared/File.d.ts.map +0 -1
  491. package/dist/src/components/shared/File.js +0 -15
  492. package/dist/src/components/shared/File.js.map +0 -1
  493. package/dist/src/components/shared/Footer.d.ts +0 -5
  494. package/dist/src/components/shared/Footer.d.ts.map +0 -1
  495. package/dist/src/components/shared/Footer.js +0 -3
  496. package/dist/src/components/shared/Footer.js.map +0 -1
  497. package/dist/src/components/shared/Formula.d.ts +0 -6
  498. package/dist/src/components/shared/Formula.d.ts.map +0 -1
  499. package/dist/src/components/shared/Formula.js +0 -13
  500. package/dist/src/components/shared/Formula.js.map +0 -1
  501. package/dist/src/components/shared/Image.d.ts +0 -6
  502. package/dist/src/components/shared/Image.d.ts.map +0 -1
  503. package/dist/src/components/shared/Image.js +0 -30
  504. package/dist/src/components/shared/Image.js.map +0 -1
  505. package/dist/src/components/shared/ImageOverlay.d.ts +0 -6
  506. package/dist/src/components/shared/ImageOverlay.d.ts.map +0 -1
  507. package/dist/src/components/shared/ImageOverlay.js +0 -43
  508. package/dist/src/components/shared/ImageOverlay.js.map +0 -1
  509. package/dist/src/components/shared/QuestionNumber.d.ts +0 -4
  510. package/dist/src/components/shared/QuestionNumber.d.ts.map +0 -1
  511. package/dist/src/components/shared/QuestionNumber.js +0 -12
  512. package/dist/src/components/shared/QuestionNumber.js.map +0 -1
  513. package/dist/src/components/shared/Reference.d.ts +0 -6
  514. package/dist/src/components/shared/Reference.d.ts.map +0 -1
  515. package/dist/src/components/shared/Reference.js +0 -72
  516. package/dist/src/components/shared/Reference.js.map +0 -1
  517. package/dist/src/components/shared/References.d.ts +0 -6
  518. package/dist/src/components/shared/References.d.ts.map +0 -1
  519. package/dist/src/components/shared/References.js +0 -26
  520. package/dist/src/components/shared/References.js.map +0 -1
  521. package/dist/src/components/shared/Score.d.ts +0 -8
  522. package/dist/src/components/shared/Score.d.ts.map +0 -1
  523. package/dist/src/components/shared/Score.js +0 -13
  524. package/dist/src/components/shared/Score.js.map +0 -1
  525. package/dist/src/components/shared/TOCQuestion.d.ts +0 -4
  526. package/dist/src/components/shared/TOCQuestion.d.ts.map +0 -1
  527. package/dist/src/components/shared/TOCQuestion.js +0 -77
  528. package/dist/src/components/shared/TOCQuestion.js.map +0 -1
  529. package/dist/src/components/shared/TOCSection.d.ts +0 -7
  530. package/dist/src/components/shared/TOCSection.d.ts.map +0 -1
  531. package/dist/src/components/shared/TOCSection.js +0 -15
  532. package/dist/src/components/shared/TOCSection.js.map +0 -1
  533. package/dist/src/components/shared/TOCSectionTitle.d.ts +0 -4
  534. package/dist/src/components/shared/TOCSectionTitle.d.ts.map +0 -1
  535. package/dist/src/components/shared/TOCSectionTitle.js +0 -34
  536. package/dist/src/components/shared/TOCSectionTitle.js.map +0 -1
  537. package/dist/src/components/shared/TableOfContents.d.ts +0 -8
  538. package/dist/src/components/shared/TableOfContents.d.ts.map +0 -1
  539. package/dist/src/components/shared/TableOfContents.js +0 -61
  540. package/dist/src/components/shared/TableOfContents.js.map +0 -1
  541. package/dist/src/components/shared/VersionNumber.d.ts +0 -3
  542. package/dist/src/components/shared/VersionNumber.d.ts.map +0 -1
  543. package/dist/src/components/shared/VersionNumber.js +0 -10
  544. package/dist/src/components/shared/VersionNumber.js.map +0 -1
  545. package/dist/src/components/shared/Video.d.ts +0 -6
  546. package/dist/src/components/shared/Video.d.ts.map +0 -1
  547. package/dist/src/components/shared/Video.js +0 -22
  548. package/dist/src/components/shared/Video.js.map +0 -1
  549. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts +0 -8
  550. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts.map +0 -1
  551. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js +0 -4
  552. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js.map +0 -1
  553. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts +0 -8
  554. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts.map +0 -1
  555. package/dist/src/components/shared/internal/AudioPlaybackError.js +0 -17
  556. package/dist/src/components/shared/internal/AudioPlaybackError.js.map +0 -1
  557. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts +0 -18
  558. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts.map +0 -1
  559. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js +0 -21
  560. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js.map +0 -1
  561. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts +0 -12
  562. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts.map +0 -1
  563. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js +0 -46
  564. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js.map +0 -1
  565. package/dist/src/components/surround.d.ts +0 -8
  566. package/dist/src/components/surround.d.ts.map +0 -1
  567. package/dist/src/components/surround.js +0 -19
  568. package/dist/src/components/surround.js.map +0 -1
  569. package/dist/src/createRenderChildNodes.d.ts +0 -17
  570. package/dist/src/createRenderChildNodes.d.ts.map +0 -1
  571. package/dist/src/createRenderChildNodes.js +0 -64
  572. package/dist/src/createRenderChildNodes.js.map +0 -1
  573. package/dist/src/dom-utils.d.ts +0 -20
  574. package/dist/src/dom-utils.d.ts.map +0 -1
  575. package/dist/src/dom-utils.js +0 -164
  576. package/dist/src/dom-utils.js.map +0 -1
  577. package/dist/src/fonts.d.ts +0 -5
  578. package/dist/src/fonts.d.ts.map +0 -1
  579. package/dist/src/fonts.js +0 -16
  580. package/dist/src/fonts.js.map +0 -1
  581. package/dist/src/formatting.d.ts +0 -2
  582. package/dist/src/formatting.d.ts.map +0 -1
  583. package/dist/src/formatting.js +0 -4
  584. package/dist/src/formatting.js.map +0 -1
  585. package/dist/src/getDisplayName.d.ts +0 -4
  586. package/dist/src/getDisplayName.d.ts.map +0 -1
  587. package/dist/src/getDisplayName.js +0 -5
  588. package/dist/src/getDisplayName.js.map +0 -1
  589. package/dist/src/i18n/A_E.d.ts +0 -3
  590. package/dist/src/i18n/A_E.d.ts.map +0 -1
  591. package/dist/src/i18n/A_E.js +0 -8
  592. package/dist/src/i18n/A_E.js.map +0 -1
  593. package/dist/src/i18n/BA.d.ts +0 -3
  594. package/dist/src/i18n/BA.d.ts.map +0 -1
  595. package/dist/src/i18n/BA.js +0 -11
  596. package/dist/src/i18n/BA.js.map +0 -1
  597. package/dist/src/i18n/CA.d.ts +0 -3
  598. package/dist/src/i18n/CA.d.ts.map +0 -1
  599. package/dist/src/i18n/CA.js +0 -11
  600. package/dist/src/i18n/CA.js.map +0 -1
  601. package/dist/src/i18n/EA.d.ts +0 -3
  602. package/dist/src/i18n/EA.d.ts.map +0 -1
  603. package/dist/src/i18n/EA.js +0 -16
  604. package/dist/src/i18n/EA.js.map +0 -1
  605. package/dist/src/i18n/FA.d.ts +0 -3
  606. package/dist/src/i18n/FA.d.ts.map +0 -1
  607. package/dist/src/i18n/FA.js +0 -17
  608. package/dist/src/i18n/FA.js.map +0 -1
  609. package/dist/src/i18n/GC.d.ts +0 -3
  610. package/dist/src/i18n/GC.d.ts.map +0 -1
  611. package/dist/src/i18n/GC.js +0 -16
  612. package/dist/src/i18n/GC.js.map +0 -1
  613. package/dist/src/i18n/I.d.ts +0 -3
  614. package/dist/src/i18n/I.d.ts.map +0 -1
  615. package/dist/src/i18n/I.js +0 -21
  616. package/dist/src/i18n/I.js.map +0 -1
  617. package/dist/src/i18n/M.d.ts +0 -3
  618. package/dist/src/i18n/M.d.ts.map +0 -1
  619. package/dist/src/i18n/M.js +0 -4
  620. package/dist/src/i18n/M.js.map +0 -1
  621. package/dist/src/i18n/O_E.d.ts +0 -3
  622. package/dist/src/i18n/O_E.d.ts.map +0 -1
  623. package/dist/src/i18n/O_E.js +0 -7
  624. package/dist/src/i18n/O_E.js.map +0 -1
  625. package/dist/src/i18n/PA.d.ts +0 -3
  626. package/dist/src/i18n/PA.d.ts.map +0 -1
  627. package/dist/src/i18n/PA.js +0 -16
  628. package/dist/src/i18n/PA.js.map +0 -1
  629. package/dist/src/i18n/SA.d.ts +0 -3
  630. package/dist/src/i18n/SA.d.ts.map +0 -1
  631. package/dist/src/i18n/SA.js +0 -16
  632. package/dist/src/i18n/SA.js.map +0 -1
  633. package/dist/src/i18n/TC.d.ts +0 -3
  634. package/dist/src/i18n/TC.d.ts.map +0 -1
  635. package/dist/src/i18n/TC.js +0 -16
  636. package/dist/src/i18n/TC.js.map +0 -1
  637. package/dist/src/i18n/VA.d.ts +0 -3
  638. package/dist/src/i18n/VA.d.ts.map +0 -1
  639. package/dist/src/i18n/VA.js +0 -16
  640. package/dist/src/i18n/VA.js.map +0 -1
  641. package/dist/src/i18n/Z.d.ts +0 -3
  642. package/dist/src/i18n/Z.d.ts.map +0 -1
  643. package/dist/src/i18n/Z.js +0 -22
  644. package/dist/src/i18n/Z.js.map +0 -1
  645. package/dist/src/i18n/fi-FI.d.ts +0 -192
  646. package/dist/src/i18n/fi-FI.d.ts.map +0 -1
  647. package/dist/src/i18n/fi-FI.js +0 -182
  648. package/dist/src/i18n/fi-FI.js.map +0 -1
  649. package/dist/src/i18n/index.d.ts +0 -20
  650. package/dist/src/i18n/index.d.ts.map +0 -1
  651. package/dist/src/i18n/index.js +0 -128
  652. package/dist/src/i18n/index.js.map +0 -1
  653. package/dist/src/i18n/sv-FI.d.ts +0 -3
  654. package/dist/src/i18n/sv-FI.d.ts.map +0 -1
  655. package/dist/src/i18n/sv-FI.js +0 -181
  656. package/dist/src/i18n/sv-FI.js.map +0 -1
  657. package/dist/src/ids.d.ts +0 -14
  658. package/dist/src/ids.d.ts.map +0 -1
  659. package/dist/src/ids.js +0 -28
  660. package/dist/src/ids.js.map +0 -1
  661. package/dist/src/index.d.ts +0 -19
  662. package/dist/src/index.d.ts.map +0 -1
  663. package/dist/src/index.js +0 -12
  664. package/dist/src/index.js.map +0 -1
  665. package/dist/src/parser/parseExam.d.ts +0 -2
  666. package/dist/src/parser/parseExam.d.ts.map +0 -1
  667. package/dist/src/parser/parseExam.js +0 -54
  668. package/dist/src/parser/parseExam.js.map +0 -1
  669. package/dist/src/parser/parseExamStructure.d.ts +0 -58
  670. package/dist/src/parser/parseExamStructure.d.ts.map +0 -1
  671. package/dist/src/parser/parseExamStructure.js +0 -40
  672. package/dist/src/parser/parseExamStructure.js.map +0 -1
  673. package/dist/src/renderAnnotations.d.ts +0 -7
  674. package/dist/src/renderAnnotations.d.ts.map +0 -1
  675. package/dist/src/renderAnnotations.js +0 -193
  676. package/dist/src/renderAnnotations.js.map +0 -1
  677. package/dist/src/scrollToHash.d.ts +0 -2
  678. package/dist/src/scrollToHash.d.ts.map +0 -1
  679. package/dist/src/scrollToHash.js +0 -24
  680. package/dist/src/scrollToHash.js.map +0 -1
  681. package/dist/src/shortDisplayNumber.d.ts +0 -2
  682. package/dist/src/shortDisplayNumber.d.ts.map +0 -1
  683. package/dist/src/shortDisplayNumber.js +0 -5
  684. package/dist/src/shortDisplayNumber.js.map +0 -1
  685. package/dist/src/store/answers/actions.d.ts +0 -33
  686. package/dist/src/store/answers/actions.d.ts.map +0 -1
  687. package/dist/src/store/answers/actions.js +0 -9
  688. package/dist/src/store/answers/actions.js.map +0 -1
  689. package/dist/src/store/answers/reducer.d.ts +0 -39
  690. package/dist/src/store/answers/reducer.d.ts.map +0 -1
  691. package/dist/src/store/answers/reducer.js +0 -55
  692. package/dist/src/store/answers/reducer.js.map +0 -1
  693. package/dist/src/store/answers/sagas.d.ts +0 -8
  694. package/dist/src/store/answers/sagas.d.ts.map +0 -1
  695. package/dist/src/store/answers/sagas.js +0 -60
  696. package/dist/src/store/answers/sagas.js.map +0 -1
  697. package/dist/src/store/audio/actions.d.ts +0 -29
  698. package/dist/src/store/audio/actions.d.ts.map +0 -1
  699. package/dist/src/store/audio/actions.js +0 -9
  700. package/dist/src/store/audio/actions.js.map +0 -1
  701. package/dist/src/store/audio/reducer.d.ts +0 -27
  702. package/dist/src/store/audio/reducer.d.ts.map +0 -1
  703. package/dist/src/store/audio/reducer.js +0 -55
  704. package/dist/src/store/audio/reducer.js.map +0 -1
  705. package/dist/src/store/audio/sagas.d.ts +0 -3
  706. package/dist/src/store/audio/sagas.d.ts.map +0 -1
  707. package/dist/src/store/audio/sagas.js +0 -68
  708. package/dist/src/store/audio/sagas.js.map +0 -1
  709. package/dist/src/store/cas/actions.d.ts +0 -19
  710. package/dist/src/store/cas/actions.d.ts.map +0 -1
  711. package/dist/src/store/cas/actions.js +0 -9
  712. package/dist/src/store/cas/actions.js.map +0 -1
  713. package/dist/src/store/cas/reducer.d.ts +0 -14
  714. package/dist/src/store/cas/reducer.d.ts.map +0 -1
  715. package/dist/src/store/cas/reducer.js +0 -24
  716. package/dist/src/store/cas/reducer.js.map +0 -1
  717. package/dist/src/store/cas/sagas.d.ts +0 -18
  718. package/dist/src/store/cas/sagas.d.ts.map +0 -1
  719. package/dist/src/store/cas/sagas.js +0 -36
  720. package/dist/src/store/cas/sagas.js.map +0 -1
  721. package/dist/src/store/countdown.d.ts +0 -4
  722. package/dist/src/store/countdown.d.ts.map +0 -1
  723. package/dist/src/store/countdown.js +0 -33
  724. package/dist/src/store/countdown.js.map +0 -1
  725. package/dist/src/store/index.d.ts +0 -78
  726. package/dist/src/store/index.d.ts.map +0 -1
  727. package/dist/src/store/index.js +0 -53
  728. package/dist/src/store/index.js.map +0 -1
  729. package/dist/src/store/selectors.d.ts +0 -9
  730. package/dist/src/store/selectors.d.ts.map +0 -1
  731. package/dist/src/store/selectors.js +0 -35
  732. package/dist/src/store/selectors.js.map +0 -1
  733. package/dist/src/types/ExamAnswer.d.ts +0 -22
  734. package/dist/src/types/ExamAnswer.d.ts.map +0 -1
  735. package/dist/src/types/ExamAnswer.js +0 -2
  736. package/dist/src/types/ExamAnswer.js.map +0 -1
  737. package/dist/src/types/ExamServerAPI.d.ts +0 -78
  738. package/dist/src/types/ExamServerAPI.d.ts.map +0 -1
  739. package/dist/src/types/ExamServerAPI.js +0 -2
  740. package/dist/src/types/ExamServerAPI.js.map +0 -1
  741. package/dist/src/types/GradingStructure.d.ts +0 -40
  742. package/dist/src/types/GradingStructure.d.ts.map +0 -1
  743. package/dist/src/types/GradingStructure.js +0 -2
  744. package/dist/src/types/GradingStructure.js.map +0 -1
  745. package/dist/src/types/Score.d.ts +0 -92
  746. package/dist/src/types/Score.d.ts.map +0 -1
  747. package/dist/src/types/Score.js +0 -2
  748. package/dist/src/types/Score.js.map +0 -1
  749. package/dist/src/url.d.ts +0 -7
  750. package/dist/src/url.d.ts.map +0 -1
  751. package/dist/src/url.js +0 -12
  752. package/dist/src/url.js.map +0 -1
  753. package/dist/src/useCached.d.ts +0 -3
  754. package/dist/src/useCached.d.ts.map +0 -1
  755. package/dist/src/useCached.js +0 -6
  756. package/dist/src/useCached.js.map +0 -1
  757. package/dist/src/utils.d.ts +0 -15
  758. package/dist/src/utils.d.ts.map +0 -1
  759. package/dist/src/utils.js +0 -35
  760. package/dist/src/utils.js.map +0 -1
  761. package/dist/src/validateAnswers.d.ts +0 -16
  762. package/dist/src/validateAnswers.d.ts.map +0 -1
  763. package/dist/src/validateAnswers.js +0 -89
  764. package/dist/src/validateAnswers.js.map +0 -1
  765. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":""}
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const react_1 = __importDefault(require("react"));
7
- const experimental_ct_react_1 = require("@playwright/experimental-ct-react");
8
- const utils_1 = require("../utils/utils");
9
- const GradingInstructions_story_1 = require("../stories/grading-intructions/GradingInstructions.story");
10
- experimental_ct_react_1.test.describe('Grading Instructions', () => {
11
- let masteredExam;
12
- experimental_ct_react_1.test.beforeAll(async () => {
13
- masteredExam = await (0, utils_1.setupMasteredExam)('FF');
14
- });
15
- (0, experimental_ct_react_1.test)('text can be annotated inside grading instructions', async ({ mount, page }) => {
16
- let callbackArg = '';
17
- const component = await mount(react_1.default.createElement(GradingInstructions_story_1.GradingInstructionStory, { masteredExam: masteredExam, annotations: [], onClickAnnotation: () => { }, onSaveAnnotation: (_newAnnotation, comment) => {
18
- callbackArg = comment;
19
- } }));
20
- const annottatableElement = component.locator('.e-annotatable').first();
21
- const textbox = component.locator('.comment-content');
22
- await (0, experimental_ct_react_1.expect)(annottatableElement).toBeVisible();
23
- await (0, utils_1.annotate)(annottatableElement, page);
24
- await (0, experimental_ct_react_1.expect)(component.getByTestId('e-popup')).toBeVisible();
25
- await textbox.fill('New comment');
26
- await component.getByText('Tallenna').click();
27
- (0, experimental_ct_react_1.expect)(callbackArg).toBe('New comment');
28
- });
29
- });
30
- //# sourceMappingURL=GradingInstructions.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/grading-instructions/GradingInstructions.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,6EAAgE;AAChE,0CAA4D;AAC5D,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,gBAAQ,EAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QACzC,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,15 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../src';
4
- interface AnnotationsStoryProps {
5
- masteredExam: MasteringResult;
6
- annotations?: ExamAnnotation[];
7
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
8
- onSaveAnnotation?: {
9
- fn: (annotation: NewExamAnnotation, comment: string) => void;
10
- result?: string;
11
- };
12
- }
13
- export declare const AnnotationsStory: React.FC<AnnotationsStoryProps>;
14
- export {};
15
- //# sourceMappingURL=Annotations.story.d.ts.map
@@ -1 +0,0 @@
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,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AnnotationsStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const Exam_1 = require("../../../src/components/exam/Exam");
9
- const ExamComponentWrapper_1 = require("../utils/ExamComponentWrapper");
10
- const parseExam_1 = __importDefault(require("../../../src/parser/parseExam"));
11
- const dom_utils_1 = require("../../../src/dom-utils");
12
- const Question_1 = __importDefault(require("../../../src/components/exam/Question"));
13
- const AnnotationProvider_1 = require("../../../src/components/context/AnnotationProvider");
14
- const AnnotationsStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
15
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
16
- const [_question1, question2] = (0, dom_utils_1.queryAll)(doc.documentElement, 'question', false);
17
- return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
18
- react_1.default.createElement(AnnotationProvider_1.AnnotationProvider, { annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation
19
- ? (...args) => {
20
- onSaveAnnotation.fn(...args);
21
- return Promise.resolve(onSaveAnnotation.result);
22
- }
23
- : undefined },
24
- react_1.default.createElement(Question_1.default, { element: question2, renderChildNodes: Exam_1.renderChildNodes }))));
25
- };
26
- exports.AnnotationsStory = AnnotationsStory;
27
- //# sourceMappingURL=Annotations.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Annotations.story.js","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/Annotations.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,4DAAoE;AACpE,wEAAoE;AACpE,8EAAqD;AACrD,sDAAiD;AACjD,qFAA4D;AAC5D,2FAAuF;AAUhF,MAAM,gBAAgB,GAAoC,CAAC,EAChE,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,eAAe,EAAE,UAAU,EAAE,KAAK,CAAC,CAAA;IAChF,OAAO,CACL,8BAAC,2CAAoB,IACnB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE;QAE5F,8BAAC,uCAAkB,IACjB,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EACd,gBAAgB;gBACd,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE;oBACV,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;oBAC5B,OAAO,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAA;gBACjD,CAAC;gBACH,CAAC,CAAC,SAAS;YAGf,8BAAC,kBAAQ,IAAC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,uBAAgB,GAAI,CACjD,CACA,CACxB,CAAA;AACH,CAAC,CAAA;AA7BY,QAAA,gBAAgB,oBA6B5B"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../../src';
4
- import '../../../../src/css/main.less';
5
- interface AttachmentsStoryProps {
6
- masteredExam: MasteringResult;
7
- annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
9
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
- }
11
- export declare const AttachmentsStory: React.FC<AttachmentsStoryProps>;
12
- export {};
13
- //# sourceMappingURL=Attachments.story.d.ts.map
@@ -1 +0,0 @@
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,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.AttachmentsStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
9
- const Attachments_1 = __importDefault(require("../../../../src/components/attachments/Attachments"));
10
- const examServerApi_1 = require("../../../examServerApi");
11
- require("../../../../src/css/main.less");
12
- const AttachmentsStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
13
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
14
- return (react_1.default.createElement(Attachments_1.default, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, attachmentsURL: "/attachments", annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation, examServerApi: examServerApi_1.examServerApi }));
15
- };
16
- exports.AttachmentsStory = AttachmentsStory;
17
- //# sourceMappingURL=Attachments.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Attachments.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/attachments/Attachments.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,iFAAwD;AACxD,qGAA4E;AAE5E,0DAAsD;AACtD,yCAAsC;AAS/B,MAAM,gBAAgB,GAAoC,CAAC,EAChE,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,qBAAW,IACV,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,cAAc,EAAC,cAAc,EAC7B,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,aAAa,EAAE,6BAAa,GAC5B,CACH,CAAA;AACH,CAAC,CAAA;AAlBY,QAAA,gBAAgB,oBAkB5B"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../../src';
4
- interface ExamStoryProps {
5
- masteredExam: MasteringResult;
6
- annotations?: ExamAnnotation[];
7
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
8
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
9
- }
10
- export declare const ExamStory: React.FC<ExamStoryProps>;
11
- export {};
12
- //# sourceMappingURL=Exam.story.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/Exam.story.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAI/D,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAGzF,UAAU,cAAc;IACtB,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,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAkC9C,CAAA"}
@@ -1,56 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ExamStory = void 0;
40
- const react_1 = __importDefault(require("react"));
41
- const Exam_1 = __importStar(require("../../../../src/components/exam/Exam"));
42
- const ExamComponentWrapper_1 = require("../../utils/ExamComponentWrapper");
43
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
44
- const examServerApi_1 = require("../../../examServerApi");
45
- const ExamStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
46
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
47
- return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
48
- react_1.default.createElement(Exam_1.default, { doc: doc, renderChildNodes: Exam_1.renderChildNodes, annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, answers: [], attachmentsURL: "/attachments", casStatus: "forbidden", examServerApi: examServerApi_1.examServerApi, studentName: "[Kokelaan Nimi]", showUndoView: false, undoViewProps: {
49
- questionId: 0,
50
- title: '',
51
- close: () => undefined,
52
- restoreAnswer: () => undefined
53
- } })));
54
- };
55
- exports.ExamStory = ExamStory;
56
- //# sourceMappingURL=Exam.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Exam.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/Exam.story.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,6EAA6E;AAC7E,2EAAuE;AACvE,iFAAwD;AAExD,0DAAsD;AAS/C,MAAM,SAAS,GAA6B,CAAC,EAClD,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,2CAAoB,IACnB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE;QAE5F,8BAAC,cAAI,IACH,GAAG,EAAE,GAAG,EACR,gBAAgB,EAAE,uBAAgB,EAClC,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,cAAc,EAC7B,SAAS,EAAC,WAAW,EACrB,aAAa,EAAE,6BAAa,EAC5B,WAAW,EAAC,iBAAiB,EAC7B,YAAY,EAAE,KAAK,EACnB,aAAa,EAAE;gBACb,UAAU,EAAE,CAAC;gBACb,KAAK,EAAE,EAAE;gBACT,KAAK,EAAE,GAAG,EAAE,CAAC,SAAS;gBACtB,aAAa,EAAE,GAAG,EAAE,CAAC,SAAS;aAC/B,GACD,CACmB,CACxB,CAAA;AACH,CAAC,CAAA;AAlCY,QAAA,SAAS,aAkCrB"}
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- import { MasteringResult } from '@digabi/exam-engine-mastering';
3
- import { ExamAnnotation, NewExamAnnotation, RenderableAnnotation } from '../../../../src';
4
- import '../../../../src/css/main.less';
5
- interface GradingInstructionsStoryProps {
6
- masteredExam: MasteringResult;
7
- annotations?: ExamAnnotation[];
8
- onClickAnnotation?: (e: React.MouseEvent<HTMLElement, MouseEvent>, annotation: RenderableAnnotation) => void;
9
- onSaveAnnotation?: (annotation: NewExamAnnotation, comment: string) => void;
10
- }
11
- export declare const GradingInstructionStory: React.FC<GradingInstructionsStoryProps>;
12
- export {};
13
- //# sourceMappingURL=GradingInstructions.story.d.ts.map
@@ -1 +0,0 @@
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,16 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.GradingInstructionStory = void 0;
7
- const react_1 = __importDefault(require("react"));
8
- const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
9
- const GradingInstructions_1 = __importDefault(require("../../../../src/components/grading-instructions/GradingInstructions"));
10
- require("../../../../src/css/main.less");
11
- const GradingInstructionStory = ({ masteredExam, annotations, onClickAnnotation, onSaveAnnotation }) => {
12
- const doc = (0, parseExam_1.default)(masteredExam.xml, true);
13
- return (react_1.default.createElement(GradingInstructions_1.default, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}`, answers: [], attachmentsURL: "/attachments", annotations: annotations, onClickAnnotation: onClickAnnotation, onSaveAnnotation: onSaveAnnotation ? (...args) => { var _a; return Promise.resolve((_a = onSaveAnnotation(...args)) !== null && _a !== void 0 ? _a : undefined); } : undefined }));
14
- };
15
- exports.GradingInstructionStory = GradingInstructionStory;
16
- //# sourceMappingURL=GradingInstructions.story.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"GradingInstructions.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/grading-intructions/GradingInstructions.story.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAEzB,iFAAwD;AACxD,8HAAqG;AAErG,yCAAsC;AAS/B,MAAM,uBAAuB,GAA4C,CAAC,EAC/E,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EACjB,EAAE,EAAE;IACH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,OAAO,CACL,8BAAC,6BAAmB,IAClB,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE,EAC5F,OAAO,EAAE,EAAE,EACX,cAAc,EAAC,cAAc,EAC7B,WAAW,EAAE,WAAW,EACxB,iBAAiB,EAAE,iBAAiB,EACpC,gBAAgB,EACd,gBAAgB,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,EAAE,WAAC,OAAA,OAAO,CAAC,OAAO,CAAC,MAAA,gBAAgB,CAAC,GAAG,IAAI,CAAC,mCAAI,SAAS,CAAC,CAAA,EAAA,CAAC,CAAC,CAAC,SAAS,GAErG,CACH,CAAA;AACH,CAAC,CAAA;AApBY,QAAA,uBAAuB,2BAoBnC"}
@@ -1 +0,0 @@
1
- <svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="30" height="30" viewBox="0 0 30 30"><defs><clipPath id="clip-path"><path d="M141.57-89.324v-2.34H143.2v2.34A2.3,2.3,0,0,1,140.9-87.03H130.1a2.3,2.3,0,0,1-2.292-2.294v-17.029a2.294,2.294,0,0,1,2.292-2.292h10.8a2.3,2.3,0,0,1,2.295,2.292v2.342H141.57v-2.342a.669.669,0,0,0-.67-.667H130.1a.667.667,0,0,0-.667.667v17.029a.668.668,0,0,0,.667.669h10.8A.67.67,0,0,0,141.57-89.324Zm3.271-13.579a1.069,1.069,0,0,1,1.825-.755l5.065,5.065a1.065,1.065,0,0,1,0,1.511l-5.065,5.067a1.07,1.07,0,0,1-1.825-.757v-2.412h-6.633a2.3,2.3,0,0,1-2.3-2.3v-.7a2.3,2.3,0,0,1,2.3-2.3h6.633V-102.9" fill="none" clip-rule="evenodd"/></clipPath><clipPath id="clip-path-2"><ellipse cx="10" cy="-29.606" rx="15" ry="14.933" fill="none"/></clipPath></defs><title>closeButton</title><rect width="30" height="30" fill="#fff" opacity="0"/><line x1="25" y1="5" x2="5" y2="25" fill="none" stroke="#6d6d6d" stroke-miterlimit="10" stroke-width="3"/><line x1="5" y1="5" x2="25" y2="25" fill="none" stroke="#6d6d6d" stroke-miterlimit="10" stroke-width="3"/></svg>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="19px" height="12px" viewBox="0 0 19 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
4
- <title>Page 1</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Kuuntelu-kokelas-painaa-nappia-Copy-18" transform="translate(-1068.000000, -19.000000)" stroke-width="3" stroke="#359BB7">
9
- <polyline id="Page-1" transform="translate(1077.999981, 26.000000) rotate(180.000000) translate(-1077.999981, -26.000000) " points="1085.99996 22 1077.99996 30 1070 22"></polyline>
10
- </g>
11
- </g>
12
- </svg>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
- <svg width="18px" height="12px" viewBox="0 0 18 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <!-- Generator: Sketch 43.2 (39069) - http://www.bohemiancoding.com/sketch -->
4
- <title>Page 1</title>
5
- <desc>Created with Sketch.</desc>
6
- <defs></defs>
7
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
8
- <g id="Kuuntelu-kokelas-painaa-nappia-Copy-18" transform="translate(-1069.000000, -21.000000)" stroke-width="3" stroke="#359BB7">
9
- <polyline id="Page-1" points="1085.99996 22 1077.99996 30 1070 22"></polyline>
10
- </g>
11
- </g>
12
- </svg>
@@ -1,9 +0,0 @@
1
- <svg version="1.1"
2
- xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
3
- x="0px" y="0px" width="20px" height="20px" viewBox="0 0 20 20" enable-background="new 0 0 20 20" xml:space="preserve">
4
- <path fill="#359BB7" d="M10,20C4.48,20,0,15.52,0,10C0,4.48,4.48,0,10,0s10,4.48,10,10C20,15.52,15.52,20,10,20z M5.57,5.88
5
- c-0.14,0.21-0.09,0.5,0.11,0.66l1.4,1.06c0.21,0.16,0.51,0.12,0.67-0.09c0.72-0.91,1.21-1.44,2.31-1.44c0.82,0,1.84,0.53,1.84,1.33
6
- c0,0.6-0.5,0.91-1.31,1.37c-0.95,0.53-2.2,1.19-2.2,2.85v0.16c0,0.27,0.22,0.48,0.48,0.48h2.26c0.27,0,0.48-0.22,0.48-0.48v-0.05
7
- c0-1.15,3.35-1.2,3.35-4.3c0-2.34-2.43-4.11-4.7-4.11C8.07,3.31,6.67,4.23,5.57,5.88z M8.15,15.16c0,1.02,0.83,1.85,1.85,1.85
8
- s1.85-0.83,1.85-1.85s-0.83-1.85-1.85-1.85S8.15,14.14,8.15,15.16z"/>
9
- </svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20" version="1.1">
2
- <g id="surface1">
3
- <path fill="#359BB7" d="M 18.316406 1.253906 C 18.859375 1.253906 19.378906 1.675781 19.378906 2.3125 L 19.378906 8.007812 C 19.378906 8.421875 19.042969 8.757812 18.628906 8.757812 L 12.9375 8.757812 C 12.300781 8.757812 11.882812 8.238281 11.882812 7.695312 C 11.882812 7.4375 11.976562 7.171875 12.191406 6.957031 L 13.953125 5.195312 C 12.851562 4.289062 11.460938 3.761719 9.996094 3.761719 C 6.554688 3.761719 3.753906 6.5625 3.753906 10.003906 C 3.753906 13.449219 6.554688 16.246094 9.996094 16.246094 C 12.851562 16.246094 13.488281 14.75 14.492188 14.75 C 15.214844 14.75 15.742188 15.335938 15.742188 15.996094 C 15.742188 17.367188 12.554688 18.75 10 18.75 C 5.179688 18.75 1.253906 14.824219 1.253906 10.003906 C 1.253906 5.183594 5.179688 1.265625 10 1.265625 C 12.132812 1.265625 14.148438 2.0625 15.71875 3.425781 L 17.578125 1.566406 C 17.792969 1.351562 18.058594 1.253906 18.316406 1.253906 Z M 18.316406 1.253906 "/>
4
- </g>
5
- </svg>
@@ -1,5 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="20px" height="20px" viewBox="0 0 20 20" version="1.1">
2
- <g id="surface1">
3
- <path fill="#359BB7" d="M 18.75 10 C 18.75 14.820312 14.824219 18.746094 10.003906 18.746094 C 8.097656 18.746094 6.285156 18.136719 4.761719 16.992188 C 4.210938 16.578125 4.097656 15.796875 4.511719 15.242188 C 4.925781 14.691406 5.707031 14.582031 6.261719 14.996094 C 7.351562 15.8125 8.644531 16.242188 10.007812 16.242188 C 13.449219 16.242188 16.25 13.441406 16.25 10 C 16.25 6.558594 13.449219 3.757812 10.007812 3.757812 C 8.542969 3.757812 7.152344 4.285156 6.050781 5.1875 L 7.8125 6.953125 C 8.476562 7.617188 8.007812 8.753906 7.066406 8.753906 L 1.375 8.753906 C 0.960938 8.753906 0.625 8.417969 0.625 8.003906 L 0.625 2.304688 C 0.625 1.367188 1.761719 0.898438 2.425781 1.5625 L 4.285156 3.421875 C 5.855469 2.058594 7.871094 1.253906 10.003906 1.253906 C 14.824219 1.253906 18.75 5.179688 18.75 10 Z M 18.75 10 "/>
4
- </g>
5
- </svg>
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- declare function ExamineExam(): React.JSX.Element;
3
- declare const _default: React.MemoExoticComponent<typeof ExamineExam>;
4
- export default _default;
5
- //# sourceMappingURL=ExamineExam.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamineExam.d.ts","sourceRoot":"","sources":["../../../src/components/exam/ExamineExam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAKzC,iBAAS,WAAW,sBA4BnB;;AAED,wBAAsC"}
@@ -1,20 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { useExamTranslation } from '../../i18n';
3
- import { ExamContext } from '../context/ExamContext';
4
- function ExamineExam() {
5
- const { examServerApi } = useContext(ExamContext);
6
- const { examineExam } = examServerApi;
7
- const { t } = useExamTranslation();
8
- const goToInspectAnswers = () => {
9
- if (!examineExam) {
10
- return;
11
- }
12
- examineExam();
13
- window.scrollTo(0, 0);
14
- };
15
- return (React.createElement("div", { className: "e-examine-exam" },
16
- React.createElement("button", { className: "e-button", id: "examineExam", onClick: goToInspectAnswers, "aria-describedby": "examineExamInstructions" }, t('examine-exam.examine')),
17
- React.createElement("div", { className: "e-examine-exam-instructions", id: "examineExamInstructions" }, t('examine-exam.instructions'))));
18
- }
19
- export default React.memo(ExamineExam);
20
- //# sourceMappingURL=ExamineExam.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamineExam.js","sourceRoot":"","sources":["../../../src/components/exam/ExamineExam.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGpD,SAAS,WAAW;IAClB,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACjD,MAAM,EAAE,WAAW,EAAE,GAAkB,aAAa,CAAA;IACpD,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,OAAM;QACR,CAAC;QACD,WAAW,EAAE,CAAA;QACb,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,gCACE,SAAS,EAAC,UAAU,EACpB,EAAE,EAAC,aAAa,EAChB,OAAO,EAAE,kBAAkB,sBACV,yBAAyB,IAEzC,CAAC,CAAC,sBAAsB,CAAC,CACnB;QACT,6BAAK,SAAS,EAAC,6BAA6B,EAAC,EAAE,EAAC,yBAAyB,IACtE,CAAC,CAAC,2BAA2B,CAAC,CAC3B,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const AnnotatableText: ({ node }: {
3
- node: Node;
4
- }) => string | React.JSX.Element;
5
- //# sourceMappingURL=AnnotatableText.d.ts.map
@@ -1 +0,0 @@
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,25 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { getElementPath } from '../../dom-utils';
3
- import { AnnotationContext } from '../context/AnnotationProvider';
4
- import { IsInSidebarContext } from '../context/IsInSidebarContext';
5
- import { markText } from './markText';
6
- export const AnnotatableText = ({ node }) => {
7
- var _a, _b;
8
- const annotationContextData = useContext(AnnotationContext);
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;
14
- if (canNotBeAnnotated) {
15
- return node.textContent;
16
- }
17
- 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]) || [];
20
- const allAnnotationsForThisNode = [...savedAnnotationsForThisNode, ...newAnnotationPartsForThisNode];
21
- return (React.createElement("span", { className: "e-annotatable", key: path, "data-annotation-path": path, "data-testid": path }, allAnnotationsForThisNode.length > 0 && onClickAnnotation
22
- ? markText(node.textContent, allAnnotationsForThisNode, onClickAnnotation, setNewAnnotationRef)
23
- : node.textContent));
24
- };
25
- //# sourceMappingURL=AnnotatableText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotatableText.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotatableText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,IAAI,EAAkB,EAAE,EAAE;;IAC1D,MAAM,qBAAqB,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC3D,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC,kBAAkB,CAAC,CAAA;IACtD,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,EAAE,GAAG,qBAAqB,CAAA;IAEpG,MAAM,iBAAiB,GACrB,CAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,WAAW,MAAK,SAAS;QAChD,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,IAAI,GAAG,MAAM,MAAK,CAAC;QACrC,WAAW,KAAK,SAAS,CAAA;IAE3B,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC,WAAY,CAAA;IAC1B,CAAC;IAED,MAAM,IAAI,GAAG,cAAc,CAAC,IAAe,CAAC,CAAA;IAE5C,MAAM,6BAA6B,GAAG,CAAA,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,eAAe,0CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,gBAAgB,KAAK,IAAI,CAAC,KAAI,EAAE,CAAA;IACpH,MAAM,2BAA2B,GAAG,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAG,IAAI,CAAC,KAAI,EAAE,CAAA;IAC7D,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"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { NewRenderableAnnotation, RenderableAnnotation } from '../../types/Score';
3
- export declare const AnnotationMark: ({ annotation, markedText, onClickAnnotation, setNewAnnotationRef }: {
4
- annotation: RenderableAnnotation | NewRenderableAnnotation;
5
- markedText: string;
6
- onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, a: RenderableAnnotation) => void;
7
- setNewAnnotationRef: (ref: HTMLElement | null) => void;
8
- }) => React.JSX.Element;
9
- //# sourceMappingURL=AnnotationMark.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationMark.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAA4B,MAAM,OAAO,CAAA;AAChD,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAGjF,eAAO,MAAM,cAAc,uEAKxB;IACD,UAAU,EAAE,oBAAoB,GAAG,uBAAuB,CAAA;IAC1D,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,oBAAoB,KAAK,IAAI,CAAA;IAClG,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,CAAA;CACvD,sBAsBA,CAAA"}
@@ -1,14 +0,0 @@
1
- import React, { useEffect, useRef } from 'react';
2
- import { isExistingAnnotation } from './markText';
3
- export const AnnotationMark = ({ annotation, markedText, onClickAnnotation, setNewAnnotationRef }) => {
4
- const markRef = useRef(null);
5
- useEffect(() => {
6
- if (markRef.current && !isExistingAnnotation(annotation)) {
7
- setNewAnnotationRef(markRef.current);
8
- }
9
- }, []);
10
- return (React.createElement("mark", { ref: markRef, className: `e-annotation ${annotation.resolved ? 'resolved' : ''}`, "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "false", "data-annotation-path": annotation.annotationAnchor, onClick: e => (isExistingAnnotation(annotation) ? onClickAnnotation(e, annotation) : undefined) },
11
- markedText,
12
- (annotation === null || annotation === void 0 ? void 0 : annotation.markNumber) && React.createElement("sup", { className: "e-annotation", "data-content": annotation === null || annotation === void 0 ? void 0 : annotation.markNumber })));
13
- };
14
- //# sourceMappingURL=AnnotationMark.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationMark.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationMark.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,mBAAmB,EAMpB,EAAE,EAAE;IACH,MAAM,OAAO,GAAG,MAAM,CAAc,IAAI,CAAC,CAAA;IAEzC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,OAAO,CAAC,OAAO,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,EAAE,CAAC;YACzD,mBAAmB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAA;QACtC,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAA;IAEN,OAAO,CACL,8BACE,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,gBAAgB,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,EAAE,wBAC9C,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,iBACvE,OAAO,0BACG,UAAU,CAAC,gBAAgB,EACjD,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAE9F,UAAU;QACV,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,KAAI,6BAAK,SAAS,EAAC,cAAc,kBAAe,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,GAAI,CAC5F,CACR,CAAA;AACH,CAAC,CAAA"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export declare function AnnotationPopup(): React.JSX.Element | null;
3
- //# sourceMappingURL=AnnotationPopup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationPopup.d.ts","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAIzC,wBAAgB,eAAe,6BA2B9B"}
@@ -1,21 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { AnnotationContext } from '../context/AnnotationProvider';
3
- import { Popup } from './Popup';
4
- export function AnnotationPopup() {
5
- const { newAnnotation, setNewAnnotation, newAnnotationRef, setNewAnnotationRef, onSaveAnnotation } = useContext(AnnotationContext);
6
- if (!newAnnotation || !newAnnotationRef) {
7
- return null;
8
- }
9
- return (React.createElement(Popup, { element: newAnnotationRef, initialTextContent: '', onValueSave: async (comment) => {
10
- const error = await onSaveAnnotation(newAnnotation, comment);
11
- if (!error) {
12
- setNewAnnotation(null);
13
- setNewAnnotationRef(null);
14
- }
15
- return error;
16
- }, enableDelete: false, onCancel: () => {
17
- setNewAnnotation(null);
18
- setNewAnnotationRef(null);
19
- } }));
20
- }
21
- //# sourceMappingURL=AnnotationPopup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnnotationPopup.js","sourceRoot":"","sources":["../../../src/components/shared/AnnotationPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,MAAM,UAAU,eAAe;IAC7B,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,GAChG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAE/B,IAAI,CAAC,aAAa,IAAI,CAAC,gBAAgB,EAAE,CAAC;QACxC,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,CACL,oBAAC,KAAK,IACJ,OAAO,EAAE,gBAAgB,EACzB,kBAAkB,EAAE,EAAE,EACtB,WAAW,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE;YACrC,MAAM,KAAK,GAAG,MAAM,gBAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAA;YAC7D,IAAI,CAAC,KAAK,EAAE,CAAC;gBACX,gBAAgB,CAAC,IAAI,CAAC,CAAA;gBACtB,mBAAmB,CAAC,IAAI,CAAC,CAAA;YAC3B,CAAC;YACD,OAAO,KAAK,CAAA;QACd,CAAC,EACD,YAAY,EAAE,KAAK,EACnB,QAAQ,EAAE,GAAG,EAAE;YACb,gBAAgB,CAAC,IAAI,CAAC,CAAA;YACtB,mBAAmB,CAAC,IAAI,CAAC,CAAA;QAC3B,CAAC,GACD,CACH,CAAA;AACH,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { NewRenderableAnnotation, RenderableAnnotation } from '../../types/Score';
3
- export declare function isExistingAnnotation(annotation: NewRenderableAnnotation | RenderableAnnotation): annotation is RenderableAnnotation;
4
- export declare function markText(text: string, annotations: (RenderableAnnotation | NewRenderableAnnotation)[], onClickAnnotation: (e: React.MouseEvent<HTMLElement, MouseEvent>, a: RenderableAnnotation) => void, setNewAnnotationRef: (ref: HTMLElement | null) => void): React.ReactNode[];
5
- //# sourceMappingURL=markText.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markText.d.ts","sourceRoot":"","sources":["../../../src/components/shared/markText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAOjF,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,uBAAuB,GAAG,oBAAoB,GACzD,UAAU,IAAI,oBAAoB,CAEpC;AAMD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,CAAC,oBAAoB,GAAG,uBAAuB,CAAC,EAAE,EAC/D,iBAAiB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,EAAE,CAAC,EAAE,oBAAoB,KAAK,IAAI,EAClG,mBAAmB,EAAE,CAAC,GAAG,EAAE,WAAW,GAAG,IAAI,KAAK,IAAI,qBA4GvD"}
@@ -1,72 +0,0 @@
1
- import * as _ from 'lodash-es';
2
- import React from 'react';
3
- import { AnnotationMark } from './AnnotationMark';
4
- function getKey(annotation) {
5
- return isExistingAnnotation(annotation) ? annotation.annotationId + annotation.startIndex : annotation.startIndex;
6
- }
7
- export function isExistingAnnotation(annotation) {
8
- return 'annotationId' in annotation;
9
- }
10
- function getMarkedText(text, startIndex, length) {
11
- return text.substring(startIndex, startIndex + length);
12
- }
13
- export function markText(text, annotations, onClickAnnotation, setNewAnnotationRef) {
14
- var _a;
15
- if (annotations.length === 0) {
16
- return [text];
17
- }
18
- annotations.sort((a, b) => a.startIndex - b.startIndex);
19
- const [hiddenAnnotations, visibleAnnotations] = _.partition(annotations, a => a.hidden);
20
- const nodes = [];
21
- hiddenAnnotations.forEach(annotation => {
22
- const key = getKey(annotation);
23
- nodes.push(React.createElement("mark", { key: key, className: "e-annotation", "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "true" }));
24
- });
25
- let lastIndex = 0;
26
- const onlyLeadingSpacesRemoved = text.replace(/^\s+/, ' ');
27
- const indentationSize = text.length - onlyLeadingSpacesRemoved.length;
28
- const notOverlappingAnnotations = visibleAnnotations.reduce((acc, annotation) => {
29
- const overlapsWithAnyVisibleAnnotation = acc.some(a => annotation.startIndex < a.startIndex + a.length &&
30
- a.startIndex < annotation.startIndex + annotation.length &&
31
- !a.hidden);
32
- acc.push({
33
- ...annotation,
34
- hidden: annotation.hidden || overlapsWithAnyVisibleAnnotation
35
- });
36
- return acc;
37
- }, []);
38
- for (const annotation of notOverlappingAnnotations) {
39
- /* "August 2024 annotation" refers to annotations made on or after 7.8.2024, and on or before x.8.2024.
40
- * They use trimmed exam content (textWithoutLineBreaksAndExtraSpaces) for calculating startIndex.
41
- * Support for "August 2024 annotations" can be removed at least when S25 exams are held.
42
- *
43
- * TODO:
44
- * When support for Aug 2024 annotations can be removed, just do:
45
- * const correctStartIndex = annotation.startIndex
46
- * and remove any unused code left behind
47
- */
48
- const textWithoutLineBreaksAndExtraSpaces = text.replace(/\n/g, ' ').replace(/\s+/g, ' ');
49
- const annotatedTextAugust2024 = getMarkedText(textWithoutLineBreaksAndExtraSpaces, annotation.startIndex, annotation.length);
50
- const isAugust2024Annotation = annotatedTextAugust2024 === annotation.selectedText;
51
- /**
52
- * index difference is defined by how much indentation the text paragraph has in xml,
53
- * and by how many line breaks there are before the annotated text.
54
- * */
55
- const amountOfLineBreaksBeforeAnnotation = ((_a = text.split(annotation.selectedText)[0].match(/\n/g)) === null || _a === void 0 ? void 0 : _a.length) || 0;
56
- const startIndexDifference = amountOfLineBreaksBeforeAnnotation * indentationSize;
57
- const correctStartIndex = annotation.startIndex + (isAugust2024Annotation ? startIndexDifference : 0);
58
- const annotatedTextWithCorrectedStartIndex = getMarkedText(text, correctStartIndex, annotation.length);
59
- // Add unmarked text before this mark
60
- if (correctStartIndex > lastIndex) {
61
- nodes.push(text.substring(lastIndex, correctStartIndex));
62
- }
63
- // Add marked text
64
- const key = getKey(annotation);
65
- nodes.push(annotation.hidden ? (React.createElement("mark", { key: key, className: "e-annotation", "data-annotation-id": isExistingAnnotation(annotation) ? annotation.annotationId : '', "data-hidden": "true" })) : (React.createElement(AnnotationMark, { key: key, annotation: annotation, markedText: annotatedTextWithCorrectedStartIndex, onClickAnnotation: onClickAnnotation, setNewAnnotationRef: setNewAnnotationRef })));
66
- lastIndex = correctStartIndex + annotation.length;
67
- }
68
- // Add remaining unmarked text
69
- nodes.push(text.substring(lastIndex));
70
- return nodes;
71
- }
72
- //# sourceMappingURL=markText.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markText.js","sourceRoot":"","sources":["../../../src/components/shared/markText.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEjD,SAAS,MAAM,CAAC,UAA0D;IACxE,OAAO,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAA;AACnH,CAAC;AAED,MAAM,UAAU,oBAAoB,CAClC,UAA0D;IAE1D,OAAO,cAAc,IAAI,UAAU,CAAA;AACrC,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,UAAkB,EAAE,MAAc;IACrE,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAAC,CAAA;AACxD,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,IAAY,EACZ,WAA+D,EAC/D,iBAAkG,EAClG,mBAAsD;;IAEtD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC7B,OAAO,CAAC,IAAI,CAAC,CAAA;IACf,CAAC;IAED,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,CAAC,CAAA;IAEvD,MAAM,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;IAEvF,MAAM,KAAK,GAAsB,EAAE,CAAA;IAEnC,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;QACrC,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;QAC9B,KAAK,CAAC,IAAI,CACR,8BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,cAAc,wBACJ,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,iBACvE,MAAM,GAClB,CACH,CAAA;IACH,CAAC,CAAC,CAAA;IAEF,IAAI,SAAS,GAAG,CAAC,CAAA;IAEjB,MAAM,wBAAwB,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC1D,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,GAAG,wBAAwB,CAAC,MAAM,CAAA;IAErE,MAAM,yBAAyB,GAAG,kBAAkB,CAAC,MAAM,CACzD,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE;QAClB,MAAM,gCAAgC,GAAG,GAAG,CAAC,IAAI,CAC/C,CAAC,CAAC,EAAE,CACF,UAAU,CAAC,UAAU,GAAG,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,MAAM;YAC/C,CAAC,CAAC,UAAU,GAAG,UAAU,CAAC,UAAU,GAAG,UAAU,CAAC,MAAM;YACxD,CAAC,CAAC,CAAC,MAAM,CACZ,CAAA;QACD,GAAG,CAAC,IAAI,CAAC;YACP,GAAG,UAAU;YACb,MAAM,EAAE,UAAU,CAAC,MAAM,IAAI,gCAAgC;SAC9D,CAAC,CAAA;QACF,OAAO,GAAG,CAAA;IACZ,CAAC,EACD,EAAwD,CACzD,CAAA;IAED,KAAK,MAAM,UAAU,IAAI,yBAAyB,EAAE,CAAC;QACnD;;;;;;;;WAQG;QAEH,MAAM,mCAAmC,GAAG,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;QACzF,MAAM,uBAAuB,GAAG,aAAa,CAC3C,mCAAmC,EACnC,UAAU,CAAC,UAAU,EACrB,UAAU,CAAC,MAAM,CAClB,CAAA;QACD,MAAM,sBAAsB,GAAG,uBAAuB,KAAK,UAAU,CAAC,YAAY,CAAA;QAElF;;;aAGK;QAEL,MAAM,kCAAkC,GAAG,CAAA,MAAA,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,0CAAE,MAAM,KAAI,CAAC,CAAA;QAC3G,MAAM,oBAAoB,GAAG,kCAAkC,GAAG,eAAe,CAAA;QAEjF,MAAM,iBAAiB,GAAG,UAAU,CAAC,UAAU,GAAG,CAAC,sBAAsB,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QACrG,MAAM,oCAAoC,GAAG,aAAa,CAAC,IAAI,EAAE,iBAAiB,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;QAEtG,qCAAqC;QACrC,IAAI,iBAAiB,GAAG,SAAS,EAAE,CAAC;YAClC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC,CAAA;QAC1D,CAAC;QAED,kBAAkB;QAClB,MAAM,GAAG,GAAG,MAAM,CAAC,UAAU,CAAC,CAAA;QAC9B,KAAK,CAAC,IAAI,CACR,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAClB,8BACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,cAAc,wBACJ,oBAAoB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,iBACvE,MAAM,GAClB,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,cAAc,IACb,GAAG,EAAE,GAAG,EACR,UAAU,EAAE,UAAU,EACtB,UAAU,EAAE,oCAAoC,EAChD,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,GACxC,CACH,CACF,CAAA;QAED,SAAS,GAAG,iBAAiB,GAAG,UAAU,CAAC,MAAM,CAAA;IACnD,CAAC;IAED,8BAA8B;IAC9B,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAA;IACrC,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -1,18 +0,0 @@
1
- import React from 'react';
2
- import { TextAnswer, RichTextAnswer } from '..';
3
- import * as actions from '../store/answers/actions';
4
- import { AnswerTooLong } from '../validateAnswers';
5
- import { ScreenshotError } from './exam/RichTextAnswer';
6
- interface AnswerToolbarProps {
7
- answer?: TextAnswer | RichTextAnswer;
8
- screenshotError?: ScreenshotError;
9
- validationError?: AnswerTooLong;
10
- element: Element;
11
- selectAnswerVersion?: typeof actions.selectAnswerVersion;
12
- showAnswerHistory?: boolean;
13
- supportsAnswerHistory?: boolean;
14
- }
15
- declare function AnswerToolbar({ answer, element, screenshotError, validationError, selectAnswerVersion, showAnswerHistory, supportsAnswerHistory }: AnswerToolbarProps): React.JSX.Element;
16
- declare const _default: React.MemoExoticComponent<typeof AnswerToolbar>;
17
- export default _default;
18
- //# sourceMappingURL=AnswerToolbar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnswerToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/AnswerToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,IAAI,CAAA;AAG/C,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,UAAU,kBAAkB;IAC1B,MAAM,CAAC,EAAE,UAAU,GAAG,cAAc,CAAA;IACpC,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,eAAe,CAAC,EAAE,aAAa,CAAA;IAC/B,OAAO,EAAE,OAAO,CAAA;IAChB,mBAAmB,CAAC,EAAE,OAAO,OAAO,CAAC,mBAAmB,CAAA;IACxD,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAED,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,OAAO,EACP,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAyB,EACzB,qBAA6B,EAC9B,EAAE,kBAAkB,qBAoDpB;;AAED,wBAAwC"}