@digabi/exam-engine-core 16.4.11 → 16.6.4

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 (450) hide show
  1. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  2. package/dist/assets/redoButton.svg +5 -0
  3. package/dist/assets/undoButton.svg +5 -0
  4. package/dist/components/RenderExamElements.js +1 -1
  5. package/dist/components/RenderExamElements.js.map +1 -1
  6. package/dist/components/ScreenReaderOnly.d.ts +3 -1
  7. package/dist/components/ScreenReaderOnly.d.ts.map +1 -1
  8. package/dist/components/ScreenReaderOnly.js.map +1 -1
  9. package/dist/components/attachments/Question.js +1 -1
  10. package/dist/components/attachments/Question.js.map +1 -1
  11. package/dist/components/exam/ChoiceAnswer.d.ts.map +1 -1
  12. package/dist/components/exam/ChoiceAnswer.js.map +1 -1
  13. package/dist/components/exam/DropdownAnswer.d.ts.map +1 -1
  14. package/dist/components/exam/DropdownAnswer.js.map +1 -1
  15. package/dist/components/exam/ExternalMaterial.js +1 -1
  16. package/dist/components/exam/ExternalMaterial.js.map +1 -1
  17. package/dist/components/exam/Hints.d.ts.map +1 -1
  18. package/dist/components/exam/Hints.js.map +1 -1
  19. package/dist/components/exam/Question.d.ts.map +1 -1
  20. package/dist/components/exam/Question.js.map +1 -1
  21. package/dist/components/exam/Section.js.map +1 -1
  22. package/dist/components/exam/internal/ErrorIndicator.d.ts.map +1 -1
  23. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  24. package/dist/components/exam/internal/TextAnswerInput.d.ts.map +1 -1
  25. package/dist/components/exam/internal/TextAnswerInput.js.map +1 -1
  26. package/dist/components/{results/Hvp.d.ts → grading/Grading.d.ts} +4 -4
  27. package/dist/components/grading/Grading.d.ts.map +1 -0
  28. package/dist/components/{results/Hvp.js → grading/Grading.js} +32 -33
  29. package/dist/components/grading/Grading.js.map +1 -0
  30. package/dist/components/{results/ResultsMultiLineAnswer.d.ts → grading/MultiLineAnswer.d.ts} +2 -2
  31. package/dist/components/grading/MultiLineAnswer.d.ts.map +1 -0
  32. package/dist/components/{results/ResultsMultiLineAnswer.js → grading/MultiLineAnswer.js} +2 -2
  33. package/dist/components/grading/MultiLineAnswer.js.map +1 -0
  34. package/dist/components/{results/ResultsExamSection.d.ts → grading/Question.d.ts} +1 -1
  35. package/dist/components/grading/Question.d.ts.map +1 -0
  36. package/dist/components/{results/ResultsExamQuestion.js → grading/Question.js} +6 -6
  37. package/dist/components/grading/Question.js.map +1 -0
  38. package/dist/components/grading/QuestionTitle.d.ts +6 -0
  39. package/dist/components/grading/QuestionTitle.d.ts.map +1 -0
  40. package/dist/components/{results/ResultsExamQuestionTitle.js → grading/QuestionTitle.js} +5 -5
  41. package/dist/components/grading/QuestionTitle.js.map +1 -0
  42. package/dist/components/grading/ScoredTextAnswer.d.ts +6 -0
  43. package/dist/components/grading/ScoredTextAnswer.d.ts.map +1 -0
  44. package/dist/components/{results/ResultsScoredTextAnswer.js → grading/ScoredTextAnswer.js} +7 -7
  45. package/dist/components/grading/ScoredTextAnswer.js.map +1 -0
  46. package/dist/components/{results/ResultsExamQuestion.d.ts → grading/Section.d.ts} +1 -1
  47. package/dist/components/grading/Section.d.ts.map +1 -0
  48. package/dist/components/{results/ResultsExamSection.js → grading/Section.js} +7 -7
  49. package/dist/components/grading/Section.js.map +1 -0
  50. package/dist/components/{results/ResultsSingleLineAnswer.d.ts → grading/SingleLineAnswer.d.ts} +3 -3
  51. package/dist/components/grading/SingleLineAnswer.d.ts.map +1 -0
  52. package/dist/components/{results/ResultsSingleLineAnswer.js → grading/SingleLineAnswer.js} +3 -3
  53. package/dist/components/grading/SingleLineAnswer.js.map +1 -0
  54. package/dist/components/grading/TextAnswer.d.ts +7 -0
  55. package/dist/components/grading/TextAnswer.d.ts.map +1 -0
  56. package/dist/components/{results/ResultsTextAnswer.js → grading/TextAnswer.js} +23 -20
  57. package/dist/components/grading/TextAnswer.js.map +1 -0
  58. package/dist/components/{results → grading/internal}/AnnotationList.d.ts +0 -0
  59. package/dist/components/grading/internal/AnnotationList.d.ts.map +1 -0
  60. package/dist/components/{results → grading/internal}/AnnotationList.js +6 -6
  61. package/dist/components/grading/internal/AnnotationList.js.map +1 -0
  62. package/dist/components/grading/internal/QuestionAutoScore.d.ts +10 -0
  63. package/dist/components/grading/internal/QuestionAutoScore.d.ts.map +1 -0
  64. package/dist/components/{results/ResultsExamQuestionAutoScore.js → grading/internal/QuestionAutoScore.js} +8 -8
  65. package/dist/components/grading/internal/QuestionAutoScore.js.map +1 -0
  66. package/dist/components/grading/internal/QuestionManualScore.d.ts +12 -0
  67. package/dist/components/grading/internal/QuestionManualScore.d.ts.map +1 -0
  68. package/dist/components/{results/ResultsExamQuestionManualScore.js → grading/internal/QuestionManualScore.js} +9 -9
  69. package/dist/components/grading/internal/QuestionManualScore.js.map +1 -0
  70. package/dist/components/grading/internal/QuestionScoresContainer.d.ts +10 -0
  71. package/dist/components/grading/internal/QuestionScoresContainer.d.ts.map +1 -0
  72. package/dist/components/{results/ResultsExamQuestionScoresContainer.js → grading/internal/QuestionScoresContainer.js} +3 -3
  73. package/dist/components/grading/internal/QuestionScoresContainer.js.map +1 -0
  74. package/dist/components/grading-instructions/GradingInstructions.d.ts.map +1 -1
  75. package/dist/components/grading-instructions/GradingInstructions.js +3 -0
  76. package/dist/components/grading-instructions/GradingInstructions.js.map +1 -1
  77. package/dist/components/grading-instructions/Question.js +1 -1
  78. package/dist/components/grading-instructions/Question.js.map +1 -1
  79. package/dist/components/shared/TableOfContents.js +1 -1
  80. package/dist/components/shared/TableOfContents.js.map +1 -1
  81. package/dist/components/shared/internal/AttachmentLinkAnchor.d.ts +1 -0
  82. package/dist/components/shared/internal/AttachmentLinkAnchor.d.ts.map +1 -1
  83. package/dist/components/shared/internal/AttachmentLinkAnchor.js +1 -1
  84. package/dist/components/shared/internal/AttachmentLinkAnchor.js.map +1 -1
  85. package/dist/createRenderChildNodes.js +3 -3
  86. package/dist/createRenderChildNodes.js.map +1 -1
  87. package/dist/editAnnotations.d.ts +3 -0
  88. package/dist/editAnnotations.d.ts.map +1 -0
  89. package/dist/editAnnotations.js +340 -0
  90. package/dist/editAnnotations.js.map +1 -0
  91. package/dist/i18n/index.d.ts +1 -1
  92. package/dist/i18n/index.d.ts.map +1 -1
  93. package/dist/main-bundle.js +1 -1
  94. package/dist/main-bundle.js.LICENSE.txt +2 -2
  95. package/dist/main.css +1 -1
  96. package/dist/store/answers/sagas.d.ts +1 -1
  97. package/dist/store/answers/sagas.d.ts.map +1 -1
  98. package/dist/store/selectors.d.ts +3 -3
  99. package/dist/store/selectors.d.ts.map +1 -1
  100. package/package.json +6 -6
  101. package/dist/032571103548be919ea4.svg +0 -1
  102. package/dist/05b997c32de96820299c.ttf +0 -1
  103. package/dist/0bbf71d1d4392f153c80.woff +0 -1
  104. package/dist/0c33cb9e2547951a529d.woff2 +0 -1
  105. package/dist/0e631a351ab7d12cb881.woff +0 -1
  106. package/dist/158c3f3e39ef2f860f3c.woff +0 -1
  107. package/dist/1fd4142f8fb913351a8c.woff +0 -1
  108. package/dist/25b533bdd316dba31ce6.ttf +0 -1
  109. package/dist/25dc2905824b1cc2f841.ttf +0 -1
  110. package/dist/3dafcda0c2071de0adf0.eot +0 -1
  111. package/dist/3fc918a1e278a729aae1.svg +0 -1
  112. package/dist/4037eb2ea1584d07790c.ttf +0 -1
  113. package/dist/4787a4eaaf81830c4214.woff2 +0 -1
  114. package/dist/509fb00a12ecb5a0b838.woff +0 -1
  115. package/dist/5482eca6702bf41ffcf3.svg +0 -1
  116. package/dist/66d4e3e31198d14dffa1.woff +0 -1
  117. package/dist/7388d1c5bbed9c7f9e59.woff +0 -1
  118. package/dist/79e93a666eafbaa7ce39.woff +0 -1
  119. package/dist/8323fa32ebf82f2bd1b5.woff2 +0 -1
  120. package/dist/8cbb0b95c6b1ba23ad5a.ttf +0 -1
  121. package/dist/92052c4f04e537af96a9.ttf +0 -1
  122. package/dist/9c4cabf3d704a40efb3b.woff2 +0 -1
  123. package/dist/9cbea1a491d9a4e95d26.ttf +0 -1
  124. package/dist/a0ece6cc28a65ad4217b.ttf +0 -1
  125. package/dist/a7b76401dc2fc68f0bb0.svg +0 -1
  126. package/dist/aa0a4911e7f05c377821.svg +0 -1
  127. package/dist/b805daaf2d8daeefd985.woff +0 -1
  128. package/dist/bd94be52b68121426c3d.woff2 +0 -1
  129. package/dist/c1012b8a8777fddabc64.woff2 +0 -1
  130. package/dist/c6cc135e102c5a628838.woff2 +0 -1
  131. package/dist/c7eb142e7ff24be6b5fa.ttf +0 -1
  132. package/dist/components/AttachmentContext.d.ts +0 -14
  133. package/dist/components/AttachmentContext.d.ts.map +0 -1
  134. package/dist/components/AttachmentContext.js +0 -12
  135. package/dist/components/AttachmentContext.js.map +0 -1
  136. package/dist/components/AttachmentLink.d.ts +0 -5
  137. package/dist/components/AttachmentLink.d.ts.map +0 -1
  138. package/dist/components/AttachmentLink.js +0 -28
  139. package/dist/components/AttachmentLink.js.map +0 -1
  140. package/dist/components/AttachmentLinkAnchor.d.ts +0 -7
  141. package/dist/components/AttachmentLinkAnchor.d.ts.map +0 -1
  142. package/dist/components/AttachmentLinkAnchor.js +0 -4
  143. package/dist/components/AttachmentLinkAnchor.js.map +0 -1
  144. package/dist/components/AttachmentLinks.d.ts +0 -5
  145. package/dist/components/AttachmentLinks.d.ts.map +0 -1
  146. package/dist/components/AttachmentLinks.js +0 -62
  147. package/dist/components/AttachmentLinks.js.map +0 -1
  148. package/dist/components/Attachments.d.ts +0 -6
  149. package/dist/components/Attachments.d.ts.map +0 -1
  150. package/dist/components/Attachments.js +0 -55
  151. package/dist/components/Attachments.js.map +0 -1
  152. package/dist/components/AttachmentsAttachment.d.ts +0 -5
  153. package/dist/components/AttachmentsAttachment.d.ts.map +0 -1
  154. package/dist/components/AttachmentsAttachment.js +0 -8
  155. package/dist/components/AttachmentsAttachment.js.map +0 -1
  156. package/dist/components/AttachmentsAttachmentTitle.d.ts +0 -6
  157. package/dist/components/AttachmentsAttachmentTitle.d.ts.map +0 -1
  158. package/dist/components/AttachmentsAttachmentTitle.js +0 -12
  159. package/dist/components/AttachmentsAttachmentTitle.js.map +0 -1
  160. package/dist/components/AttachmentsExternalMaterial.d.ts +0 -9
  161. package/dist/components/AttachmentsExternalMaterial.d.ts.map +0 -1
  162. package/dist/components/AttachmentsExternalMaterial.js +0 -40
  163. package/dist/components/AttachmentsExternalMaterial.js.map +0 -1
  164. package/dist/components/AttachmentsQuestion.d.ts +0 -5
  165. package/dist/components/AttachmentsQuestion.d.ts.map +0 -1
  166. package/dist/components/AttachmentsQuestion.js +0 -17
  167. package/dist/components/AttachmentsQuestion.js.map +0 -1
  168. package/dist/components/AttachmentsQuestionTitle.d.ts +0 -6
  169. package/dist/components/AttachmentsQuestionTitle.d.ts.map +0 -1
  170. package/dist/components/AttachmentsQuestionTitle.js +0 -13
  171. package/dist/components/AttachmentsQuestionTitle.js.map +0 -1
  172. package/dist/components/Audio.d.ts +0 -6
  173. package/dist/components/Audio.d.ts.map +0 -1
  174. package/dist/components/Audio.js +0 -31
  175. package/dist/components/Audio.js.map +0 -1
  176. package/dist/components/AudioGroup.d.ts +0 -6
  177. package/dist/components/AudioGroup.d.ts.map +0 -1
  178. package/dist/components/AudioGroup.js +0 -9
  179. package/dist/components/AudioGroup.js.map +0 -1
  180. package/dist/components/AudioPlaybackError.d.ts +0 -7
  181. package/dist/components/AudioPlaybackError.d.ts.map +0 -1
  182. package/dist/components/AudioPlaybackError.js +0 -13
  183. package/dist/components/AudioPlaybackError.js.map +0 -1
  184. package/dist/components/AudioTest.d.ts +0 -6
  185. package/dist/components/AudioTest.d.ts.map +0 -1
  186. package/dist/components/AudioTest.js +0 -29
  187. package/dist/components/AudioTest.js.map +0 -1
  188. package/dist/components/ChoiceAnswer.d.ts +0 -12
  189. package/dist/components/ChoiceAnswer.d.ts.map +0 -1
  190. package/dist/components/ChoiceAnswer.js +0 -62
  191. package/dist/components/ChoiceAnswer.js.map +0 -1
  192. package/dist/components/CommonExamContext.d.ts +0 -19
  193. package/dist/components/CommonExamContext.d.ts.map +0 -1
  194. package/dist/components/CommonExamContext.js +0 -25
  195. package/dist/components/CommonExamContext.js.map +0 -1
  196. package/dist/components/DropdownAnswer.d.ts +0 -12
  197. package/dist/components/DropdownAnswer.d.ts.map +0 -1
  198. package/dist/components/DropdownAnswer.js +0 -100
  199. package/dist/components/DropdownAnswer.js.map +0 -1
  200. package/dist/components/ErrorIndicator.d.ts +0 -4
  201. package/dist/components/ErrorIndicator.d.ts.map +0 -1
  202. package/dist/components/ErrorIndicator.js +0 -43
  203. package/dist/components/ErrorIndicator.js.map +0 -1
  204. package/dist/components/Exam.d.ts +0 -32
  205. package/dist/components/Exam.d.ts.map +0 -1
  206. package/dist/components/Exam.js +0 -103
  207. package/dist/components/Exam.js.map +0 -1
  208. package/dist/components/ExamAttachment.d.ts +0 -5
  209. package/dist/components/ExamAttachment.d.ts.map +0 -1
  210. package/dist/components/ExamAttachment.js +0 -8
  211. package/dist/components/ExamAttachment.js.map +0 -1
  212. package/dist/components/ExamContext.d.ts +0 -10
  213. package/dist/components/ExamContext.d.ts.map +0 -1
  214. package/dist/components/ExamContext.js +0 -11
  215. package/dist/components/ExamContext.js.map +0 -1
  216. package/dist/components/ExamFooter.d.ts +0 -6
  217. package/dist/components/ExamFooter.d.ts.map +0 -1
  218. package/dist/components/ExamFooter.js +0 -7
  219. package/dist/components/ExamFooter.js.map +0 -1
  220. package/dist/components/ExamInstruction.d.ts +0 -6
  221. package/dist/components/ExamInstruction.d.ts.map +0 -1
  222. package/dist/components/ExamInstruction.js +0 -6
  223. package/dist/components/ExamInstruction.js.map +0 -1
  224. package/dist/components/ExamQuestion.d.ts +0 -5
  225. package/dist/components/ExamQuestion.d.ts.map +0 -1
  226. package/dist/components/ExamQuestion.js +0 -16
  227. package/dist/components/ExamQuestion.js.map +0 -1
  228. package/dist/components/ExamQuestionInstruction.d.ts +0 -6
  229. package/dist/components/ExamQuestionInstruction.d.ts.map +0 -1
  230. package/dist/components/ExamQuestionInstruction.js +0 -6
  231. package/dist/components/ExamQuestionInstruction.js.map +0 -1
  232. package/dist/components/ExamQuestionTitle.d.ts +0 -5
  233. package/dist/components/ExamQuestionTitle.d.ts.map +0 -1
  234. package/dist/components/ExamQuestionTitle.js +0 -24
  235. package/dist/components/ExamQuestionTitle.js.map +0 -1
  236. package/dist/components/ExamSection.d.ts +0 -5
  237. package/dist/components/ExamSection.d.ts.map +0 -1
  238. package/dist/components/ExamSection.js +0 -31
  239. package/dist/components/ExamSection.js.map +0 -1
  240. package/dist/components/ExamSectionTitle.d.ts +0 -6
  241. package/dist/components/ExamSectionTitle.d.ts.map +0 -1
  242. package/dist/components/ExamSectionTitle.js +0 -22
  243. package/dist/components/ExamSectionTitle.js.map +0 -1
  244. package/dist/components/ExternalMaterialList.d.ts +0 -10
  245. package/dist/components/ExternalMaterialList.d.ts.map +0 -1
  246. package/dist/components/ExternalMaterialList.js +0 -33
  247. package/dist/components/ExternalMaterialList.js.map +0 -1
  248. package/dist/components/File.d.ts +0 -6
  249. package/dist/components/File.d.ts.map +0 -1
  250. package/dist/components/File.js +0 -15
  251. package/dist/components/File.js.map +0 -1
  252. package/dist/components/Formula.d.ts +0 -6
  253. package/dist/components/Formula.d.ts.map +0 -1
  254. package/dist/components/Formula.js +0 -13
  255. package/dist/components/Formula.js.map +0 -1
  256. package/dist/components/Hints.d.ts +0 -5
  257. package/dist/components/Hints.d.ts.map +0 -1
  258. package/dist/components/Hints.js +0 -30
  259. package/dist/components/Hints.js.map +0 -1
  260. package/dist/components/Image.d.ts +0 -6
  261. package/dist/components/Image.d.ts.map +0 -1
  262. package/dist/components/Image.js +0 -28
  263. package/dist/components/Image.js.map +0 -1
  264. package/dist/components/ImageOverlay.d.ts +0 -6
  265. package/dist/components/ImageOverlay.d.ts.map +0 -1
  266. package/dist/components/ImageOverlay.js +0 -44
  267. package/dist/components/ImageOverlay.js.map +0 -1
  268. package/dist/components/ProgressBar.d.ts +0 -7
  269. package/dist/components/ProgressBar.d.ts.map +0 -1
  270. package/dist/components/ProgressBar.js +0 -19
  271. package/dist/components/ProgressBar.js.map +0 -1
  272. package/dist/components/QuestionContext.d.ts +0 -14
  273. package/dist/components/QuestionContext.d.ts.map +0 -1
  274. package/dist/components/QuestionContext.js +0 -20
  275. package/dist/components/QuestionContext.js.map +0 -1
  276. package/dist/components/Reference.d.ts +0 -6
  277. package/dist/components/Reference.d.ts.map +0 -1
  278. package/dist/components/Reference.js +0 -71
  279. package/dist/components/Reference.js.map +0 -1
  280. package/dist/components/References.d.ts +0 -6
  281. package/dist/components/References.d.ts.map +0 -1
  282. package/dist/components/References.js +0 -25
  283. package/dist/components/References.js.map +0 -1
  284. package/dist/components/ResponsiveMediaContainer.d.ts +0 -18
  285. package/dist/components/ResponsiveMediaContainer.d.ts.map +0 -1
  286. package/dist/components/ResponsiveMediaContainer.js +0 -21
  287. package/dist/components/ResponsiveMediaContainer.js.map +0 -1
  288. package/dist/components/RestrictedAudioPlayer.d.ts +0 -12
  289. package/dist/components/RestrictedAudioPlayer.d.ts.map +0 -1
  290. package/dist/components/RestrictedAudioPlayer.js +0 -32
  291. package/dist/components/RestrictedAudioPlayer.js.map +0 -1
  292. package/dist/components/RichTextAnswer.d.ts +0 -33
  293. package/dist/components/RichTextAnswer.d.ts.map +0 -1
  294. package/dist/components/RichTextAnswer.js +0 -61
  295. package/dist/components/RichTextAnswer.js.map +0 -1
  296. package/dist/components/SaveIndicator.d.ts +0 -5
  297. package/dist/components/SaveIndicator.d.ts.map +0 -1
  298. package/dist/components/SaveIndicator.js +0 -16
  299. package/dist/components/SaveIndicator.js.map +0 -1
  300. package/dist/components/Score.d.ts +0 -8
  301. package/dist/components/Score.d.ts.map +0 -1
  302. package/dist/components/Score.js +0 -13
  303. package/dist/components/Score.js.map +0 -1
  304. package/dist/components/Section.d.ts +0 -4
  305. package/dist/components/Section.d.ts.map +0 -1
  306. package/dist/components/Section.js +0 -8
  307. package/dist/components/Section.js.map +0 -1
  308. package/dist/components/SectionContext.d.ts +0 -13
  309. package/dist/components/SectionContext.d.ts.map +0 -1
  310. package/dist/components/SectionContext.js +0 -21
  311. package/dist/components/SectionContext.js.map +0 -1
  312. package/dist/components/SectionInstruction.d.ts +0 -6
  313. package/dist/components/SectionInstruction.d.ts.map +0 -1
  314. package/dist/components/SectionInstruction.js +0 -6
  315. package/dist/components/SectionInstruction.js.map +0 -1
  316. package/dist/components/TableOfContents.d.ts +0 -13
  317. package/dist/components/TableOfContents.d.ts.map +0 -1
  318. package/dist/components/TableOfContents.js +0 -66
  319. package/dist/components/TableOfContents.js.map +0 -1
  320. package/dist/components/TextAnswer.d.ts +0 -6
  321. package/dist/components/TextAnswer.d.ts.map +0 -1
  322. package/dist/components/TextAnswer.js +0 -17
  323. package/dist/components/TextAnswer.js.map +0 -1
  324. package/dist/components/TextAnswerInput.d.ts +0 -36
  325. package/dist/components/TextAnswerInput.d.ts.map +0 -1
  326. package/dist/components/TextAnswerInput.js +0 -145
  327. package/dist/components/TextAnswerInput.js.map +0 -1
  328. package/dist/components/Video.d.ts +0 -6
  329. package/dist/components/Video.d.ts.map +0 -1
  330. package/dist/components/Video.js +0 -15
  331. package/dist/components/Video.js.map +0 -1
  332. package/dist/components/exam/TableOfContents.d.ts +0 -13
  333. package/dist/components/exam/TableOfContents.d.ts.map +0 -1
  334. package/dist/components/exam/TableOfContents.js +0 -66
  335. package/dist/components/exam/TableOfContents.js.map +0 -1
  336. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts +0 -5
  337. package/dist/components/grading-instruction/AnswerGradingInstruction.d.ts.map +0 -1
  338. package/dist/components/grading-instruction/AnswerGradingInstruction.js +0 -6
  339. package/dist/components/grading-instruction/AnswerGradingInstruction.js.map +0 -1
  340. package/dist/components/grading-instruction/Audio.d.ts +0 -5
  341. package/dist/components/grading-instruction/Audio.d.ts.map +0 -1
  342. package/dist/components/grading-instruction/Audio.js +0 -6
  343. package/dist/components/grading-instruction/Audio.js.map +0 -1
  344. package/dist/components/grading-instruction/AudioTitle.d.ts +0 -5
  345. package/dist/components/grading-instruction/AudioTitle.d.ts.map +0 -1
  346. package/dist/components/grading-instruction/AudioTitle.js +0 -10
  347. package/dist/components/grading-instruction/AudioTitle.js.map +0 -1
  348. package/dist/components/grading-instruction/AutogradedAnswer.d.ts +0 -5
  349. package/dist/components/grading-instruction/AutogradedAnswer.d.ts.map +0 -1
  350. package/dist/components/grading-instruction/AutogradedAnswer.js +0 -31
  351. package/dist/components/grading-instruction/AutogradedAnswer.js.map +0 -1
  352. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts +0 -5
  353. package/dist/components/grading-instruction/AutogradedAnswerOption.d.ts.map +0 -1
  354. package/dist/components/grading-instruction/AutogradedAnswerOption.js +0 -14
  355. package/dist/components/grading-instruction/AutogradedAnswerOption.js.map +0 -1
  356. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts +0 -5
  357. package/dist/components/grading-instruction/ExamGradingInstruction.d.ts.map +0 -1
  358. package/dist/components/grading-instruction/ExamGradingInstruction.js +0 -6
  359. package/dist/components/grading-instruction/ExamGradingInstruction.js.map +0 -1
  360. package/dist/components/grading-instruction/GradingInstruction.d.ts +0 -5
  361. package/dist/components/grading-instruction/GradingInstruction.d.ts.map +0 -1
  362. package/dist/components/grading-instruction/GradingInstruction.js +0 -85
  363. package/dist/components/grading-instruction/GradingInstruction.js.map +0 -1
  364. package/dist/components/grading-instruction/Question.d.ts +0 -5
  365. package/dist/components/grading-instruction/Question.d.ts.map +0 -1
  366. package/dist/components/grading-instruction/Question.js +0 -12
  367. package/dist/components/grading-instruction/Question.js.map +0 -1
  368. package/dist/components/grading-instruction/QuestionTitle.d.ts +0 -5
  369. package/dist/components/grading-instruction/QuestionTitle.d.ts.map +0 -1
  370. package/dist/components/grading-instruction/QuestionTitle.js +0 -19
  371. package/dist/components/grading-instruction/QuestionTitle.js.map +0 -1
  372. package/dist/components/grading-instruction/Section.d.ts +0 -5
  373. package/dist/components/grading-instruction/Section.d.ts.map +0 -1
  374. package/dist/components/grading-instruction/Section.js +0 -10
  375. package/dist/components/grading-instruction/Section.js.map +0 -1
  376. package/dist/components/grading-instruction/SectionTitle.d.ts +0 -5
  377. package/dist/components/grading-instruction/SectionTitle.d.ts.map +0 -1
  378. package/dist/components/grading-instruction/SectionTitle.js +0 -16
  379. package/dist/components/grading-instruction/SectionTitle.js.map +0 -1
  380. package/dist/components/grading-instructions/Audio.d.ts +0 -5
  381. package/dist/components/grading-instructions/Audio.d.ts.map +0 -1
  382. package/dist/components/grading-instructions/Audio.js +0 -8
  383. package/dist/components/grading-instructions/Audio.js.map +0 -1
  384. package/dist/components/grading-instructions/AudioTitle.d.ts +0 -5
  385. package/dist/components/grading-instructions/AudioTitle.d.ts.map +0 -1
  386. package/dist/components/grading-instructions/AudioTitle.js +0 -11
  387. package/dist/components/grading-instructions/AudioTitle.js.map +0 -1
  388. package/dist/components/results/AnnotationList.d.ts.map +0 -1
  389. package/dist/components/results/AnnotationList.js.map +0 -1
  390. package/dist/components/results/GradingStructure.d.ts +0 -5
  391. package/dist/components/results/GradingStructure.d.ts.map +0 -1
  392. package/dist/components/results/GradingStructure.js +0 -21
  393. package/dist/components/results/GradingStructure.js.map +0 -1
  394. package/dist/components/results/Hvp.d.ts.map +0 -1
  395. package/dist/components/results/Hvp.js.map +0 -1
  396. package/dist/components/results/HvpTextAnswer.d.ts +0 -6
  397. package/dist/components/results/HvpTextAnswer.d.ts.map +0 -1
  398. package/dist/components/results/HvpTextAnswer.js +0 -51
  399. package/dist/components/results/HvpTextAnswer.js.map +0 -1
  400. package/dist/components/results/ResultsChoiceAnswer.d.ts +0 -6
  401. package/dist/components/results/ResultsChoiceAnswer.d.ts.map +0 -1
  402. package/dist/components/results/ResultsChoiceAnswer.js +0 -57
  403. package/dist/components/results/ResultsChoiceAnswer.js.map +0 -1
  404. package/dist/components/results/ResultsContext.d.ts +0 -18
  405. package/dist/components/results/ResultsContext.d.ts.map +0 -1
  406. package/dist/components/results/ResultsContext.js +0 -68
  407. package/dist/components/results/ResultsContext.js.map +0 -1
  408. package/dist/components/results/ResultsDropdownAnswer.d.ts +0 -6
  409. package/dist/components/results/ResultsDropdownAnswer.d.ts.map +0 -1
  410. package/dist/components/results/ResultsDropdownAnswer.js +0 -43
  411. package/dist/components/results/ResultsDropdownAnswer.js.map +0 -1
  412. package/dist/components/results/ResultsExamQuestion.d.ts.map +0 -1
  413. package/dist/components/results/ResultsExamQuestion.js.map +0 -1
  414. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts +0 -10
  415. package/dist/components/results/ResultsExamQuestionAutoScore.d.ts.map +0 -1
  416. package/dist/components/results/ResultsExamQuestionAutoScore.js.map +0 -1
  417. package/dist/components/results/ResultsExamQuestionManualScore.d.ts +0 -12
  418. package/dist/components/results/ResultsExamQuestionManualScore.d.ts.map +0 -1
  419. package/dist/components/results/ResultsExamQuestionManualScore.js.map +0 -1
  420. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts +0 -10
  421. package/dist/components/results/ResultsExamQuestionScoresContainer.d.ts.map +0 -1
  422. package/dist/components/results/ResultsExamQuestionScoresContainer.js.map +0 -1
  423. package/dist/components/results/ResultsExamQuestionTitle.d.ts +0 -6
  424. package/dist/components/results/ResultsExamQuestionTitle.d.ts.map +0 -1
  425. package/dist/components/results/ResultsExamQuestionTitle.js.map +0 -1
  426. package/dist/components/results/ResultsExamSection.d.ts.map +0 -1
  427. package/dist/components/results/ResultsExamSection.js.map +0 -1
  428. package/dist/components/results/ResultsMultiLineAnswer.d.ts.map +0 -1
  429. package/dist/components/results/ResultsMultiLineAnswer.js.map +0 -1
  430. package/dist/components/results/ResultsScoredTextAnswer.d.ts +0 -6
  431. package/dist/components/results/ResultsScoredTextAnswer.d.ts.map +0 -1
  432. package/dist/components/results/ResultsScoredTextAnswer.js.map +0 -1
  433. package/dist/components/results/ResultsSingleLineAnswer.d.ts.map +0 -1
  434. package/dist/components/results/ResultsSingleLineAnswer.js.map +0 -1
  435. package/dist/components/results/ResultsTextAnswer.d.ts +0 -6
  436. package/dist/components/results/ResultsTextAnswer.d.ts.map +0 -1
  437. package/dist/components/results/ResultsTextAnswer.js.map +0 -1
  438. package/dist/components/results/helpers.d.ts +0 -9
  439. package/dist/components/results/helpers.d.ts.map +0 -1
  440. package/dist/components/results/helpers.js +0 -11
  441. package/dist/components/results/helpers.js.map +0 -1
  442. package/dist/components/withContext.d.ts +0 -3
  443. package/dist/components/withContext.d.ts.map +0 -1
  444. package/dist/components/withContext.js +0 -12
  445. package/dist/components/withContext.js.map +0 -1
  446. package/dist/d5f084867b29732eabe0.woff2 +0 -1
  447. package/dist/dccecb74715e0fc8ebfa.woff2 +0 -1
  448. package/dist/e1202f940129338e167b.woff +0 -1
  449. package/dist/e77508f22c51d072c677.ttf +0 -1
  450. package/dist/fb3cbcef9225ce0e9ed5.woff2 +0 -1
@@ -0,0 +1,340 @@
1
+ import $ from 'jquery';
2
+ import * as _ from 'lodash-es';
3
+ import * as Bacon from 'baconjs';
4
+ import * as answerAnnotationsRendering from './annotations-rendering';
5
+ $.fn.asEventStream = Bacon.$.asEventStream;
6
+ const ESC = 27;
7
+ const ENTER = 13;
8
+ let isMouseDown = false;
9
+ export function setupAnnotationEditing($containerElement, saveAnnotation, localize, isCensor) {
10
+ setupAnnotationAddition($containerElement);
11
+ setupAnnotationRemoval($containerElement);
12
+ function setupAnnotationRemoval($answers) {
13
+ $answers.on('mousedown', '.remove-annotation-area', (event) => {
14
+ removeAnnotation($(event.target).closest('.answerAnnotation'));
15
+ return false;
16
+ });
17
+ function removeAnnotation($annotationElem) {
18
+ // eslint-disable-line no-shadow
19
+ const $answerText = $annotationElem.closest('.answerText');
20
+ const annotationIndex = Number($annotationElem.data('index'));
21
+ const annotations = answerAnnotationsRendering.get($answerText);
22
+ const updatedAnnotations = _.without(annotations, annotations[annotationIndex]);
23
+ saveAnnotation(getAnswerId($answerText), updatedAnnotations);
24
+ answerAnnotationsRendering.renderAnnotationsForElement($answerText, updatedAnnotations);
25
+ }
26
+ }
27
+ function setupAnnotationAddition($containerElement) {
28
+ preventDragSelectionFromOverlappingCensorAnswerText($containerElement);
29
+ $containerElement
30
+ .asEventStream('mouseup')
31
+ .filter(hasTextSelectedInAnswerText)
32
+ .map(() => {
33
+ $('.remove-annotation-popup').remove();
34
+ return getBrowserTextSelection().getRangeAt(0);
35
+ })
36
+ .filter((range) => {
37
+ if (selectionHasNothingToUnderline(range)) {
38
+ return false;
39
+ }
40
+ const $container = $(range.commonAncestorContainer);
41
+ return (!$container.hasClass('add-annotation-popup') &&
42
+ ($container.hasClass('answerText') || $container.parents('div.answerText').toArray().length > 0) &&
43
+ !$container.parents('.answer').hasClass('autograded'));
44
+ })
45
+ .flatMapLatest(openPopupFromRange)
46
+ .onValue(addAnnotation);
47
+ $containerElement
48
+ .asEventStream('mousedown')
49
+ .filter((e) => !$(e.target).closest('.add-annotation-text').length && !$(e.target).closest('.annotation-message').length)
50
+ .merge($containerElement.asEventStream('keyup').filter((e) => e.keyCode === ESC))
51
+ .onValue(() => {
52
+ getBrowserTextSelection().removeAllRanges();
53
+ // Render annotations for all answers that have popup open. This clears the popup and annotation that was merged for rendering before opening popup.
54
+ $('.add-annotation-popup').each((index, popup) => {
55
+ answerAnnotationsRendering.renderAnnotationsForElement($(popup).closest('.answerText'));
56
+ });
57
+ });
58
+ $containerElement
59
+ .asEventStream('mousedown', 'img, .attachmentWrapper')
60
+ .filter((e) => e.button === 0)
61
+ .doAction(() => {
62
+ isMouseDown = true;
63
+ return false;
64
+ })
65
+ .flatMapLatest((se) => {
66
+ const $target = $(se.currentTarget);
67
+ // We have attached `mousedown` to `.attachmentWrapper` as well, so
68
+ // the target isn't necessarily the image itself.
69
+ const $image = $target.is('img') ? $target : $target.find('img');
70
+ const $targetAnswerText = $image.on('dragstart', false).closest('.answerText');
71
+ const attachmentIndex = $targetAnswerText.find('img').index($image);
72
+ // The event will come from the topmost `.answerText`, which isn't
73
+ // necessarily the correct one. So we need to find the correct
74
+ // `.answerText` to add the annotation to.
75
+ const $answerText = $targetAnswerText
76
+ .parent()
77
+ .children('.answerText' + (isCensor ? '.is_censor' : '.is_pregrading'));
78
+ const $attachmentWrapper = answerAnnotationsRendering.wrapAttachment($answerText.find(`img:eq(${attachmentIndex})`));
79
+ let $shape;
80
+ const bbox = $attachmentWrapper[0].getBoundingClientRect();
81
+ const startX = clamp((se.clientX - bbox.left) / bbox.width);
82
+ const startY = clamp((se.clientY - bbox.top) / bbox.height);
83
+ const lineThresholdPx = 10;
84
+ const mouseUpE = $(window)
85
+ .asEventStream('mouseup')
86
+ .doAction(() => {
87
+ isMouseDown = false;
88
+ });
89
+ return $(window)
90
+ .asEventStream('mousemove')
91
+ .takeUntil(mouseUpE)
92
+ .flatMapLatest((e) => {
93
+ const currentX = clamp((e.clientX - bbox.left) / bbox.width);
94
+ const currentY = clamp((e.clientY - bbox.top) / bbox.height);
95
+ const isVerticalLine = Math.abs(se.clientX - e.clientX) <= lineThresholdPx;
96
+ const isHorizontalLine = Math.abs(se.clientY - e.clientY) <= lineThresholdPx;
97
+ const type = isVerticalLine || isHorizontalLine ? 'line' : 'rect';
98
+ switch (type) {
99
+ case 'rect': {
100
+ return {
101
+ type: 'rect',
102
+ attachmentIndex,
103
+ x: Math.min(startX, currentX),
104
+ y: Math.min(startY, currentY),
105
+ width: Math.abs(currentX - startX),
106
+ height: Math.abs(currentY - startY),
107
+ };
108
+ }
109
+ case 'line': {
110
+ return {
111
+ type: 'line',
112
+ attachmentIndex,
113
+ x1: isVerticalLine ? startX : Math.min(startX, currentX),
114
+ y1: isHorizontalLine ? startY : Math.min(startY, currentY),
115
+ x2: isVerticalLine ? startX : Math.max(startX, currentX),
116
+ y2: isHorizontalLine ? startY : Math.max(startY, currentY),
117
+ };
118
+ }
119
+ }
120
+ })
121
+ .doAction((shape) => {
122
+ const doAppend = $shape == null;
123
+ $shape = answerAnnotationsRendering.renderShape(shape, $shape);
124
+ if (doAppend) {
125
+ $attachmentWrapper.append($shape);
126
+ }
127
+ })
128
+ .last()
129
+ .flatMapLatest((shape) => {
130
+ const $answerText = $attachmentWrapper.closest('.answerText');
131
+ const attachmentWrapperPosition = $attachmentWrapper.position();
132
+ const shapePosition = $shape.position();
133
+ const popupCss = {
134
+ position: 'absolute',
135
+ top: attachmentWrapperPosition.top + shapePosition.top + $shape.height() + 4,
136
+ left: attachmentWrapperPosition.left + shapePosition.left,
137
+ };
138
+ return openPopup($answerText, shape, '', popupCss);
139
+ });
140
+ })
141
+ .onValue(addAnnotation);
142
+ function clamp(n) {
143
+ return _.clamp(n, 0, 1);
144
+ }
145
+ function selectionHasNothingToUnderline(range) {
146
+ const contents = range.cloneContents();
147
+ let hasImages = _.includes(_.toArray(contents.childNodes).map((x) => x.tagName), 'IMG');
148
+ return contents.textContent.length === 0 && !hasImages;
149
+ }
150
+ function preventDragSelectionFromOverlappingCensorAnswerText($containerElem) {
151
+ if (isCensor) {
152
+ $containerElem.on('mousedown mouseup', (e) => {
153
+ $('.answerText.is_censor .answerAnnotation').toggleClass('no-mouse', e.type === 'mousedown');
154
+ });
155
+ }
156
+ }
157
+ function getPopupCss(range) {
158
+ const container = $(range.startContainer).closest('.answer-text-container').get(0);
159
+ const boundingRect = range.getBoundingClientRect();
160
+ if (container) {
161
+ const containerRect = container.getBoundingClientRect();
162
+ return {
163
+ position: 'absolute',
164
+ top: boundingRect.bottom - containerRect.top + 10,
165
+ left: boundingRect.left - containerRect.left,
166
+ };
167
+ }
168
+ else {
169
+ return {
170
+ position: 'absolute',
171
+ top: 0,
172
+ left: 0,
173
+ };
174
+ }
175
+ }
176
+ function openPopupFromRange(range) {
177
+ const popupCss = getPopupCss(range);
178
+ let $answerText = $(range.startContainer).closest('.answerText');
179
+ const annotationPos = answerAnnotationsRendering.calculatePosition($answerText, range);
180
+ if (isCensor && !$answerText.hasClass('is_censor')) {
181
+ // render annotations to censor answer text element even if event cought via double click
182
+ $answerText = $(range.startContainer).closest('.answer').find('.answerText.is_censor');
183
+ }
184
+ const messages = answerAnnotationsRendering.getOverlappingMessages($answerText, annotationPos.startIndex, annotationPos.length);
185
+ const renderedMessages = messages.reduceRight((msg, str) => `${str} / ${msg}`, '');
186
+ getBrowserTextSelection().removeAllRanges();
187
+ // Merge and render annotation to show what range it will contain if annotation gets added
188
+ // Merged annotation not saved yet, so on cancel previous state is rendered
189
+ const mergedAnnotations = answerAnnotationsRendering.mergeAnnotation($answerText, annotationPos);
190
+ answerAnnotationsRendering.renderGivenAnnotations($answerText, mergedAnnotations);
191
+ return openPopup($answerText, annotationPos, renderedMessages, popupCss);
192
+ }
193
+ function openPopup($answerText, annotation, message, popupCss) {
194
+ const $popup = localize($('<div class="popup add-annotation-popup"><input class="add-annotation-text" type="text" value=""/><i class="fa fa-comment"></i><button data-i18n="arpa.annotate">Merkitse</button></div>'));
195
+ $popup.get(0).firstChild.value = message;
196
+ $answerText.append($popup);
197
+ $popup.css(popupCss);
198
+ $popup.find('input').focus();
199
+ return $popup
200
+ .find('button')
201
+ .asEventStream('mousedown')
202
+ .merge($popup.asEventStream('keyup').filter((e) => e.keyCode === ENTER))
203
+ .map(() => {
204
+ const message = $('.add-annotation-text').val().trim();
205
+ return {
206
+ $answerText,
207
+ annotation: _.assign({}, annotation, { message }),
208
+ };
209
+ });
210
+ }
211
+ function addAnnotation(annotationData) {
212
+ if (annotationData.annotation.length > 0 || annotationData.annotation.type != null) {
213
+ const data = answerAnnotationsRendering.get(annotationData.$answerText);
214
+ const annotations = data
215
+ ? answerAnnotationsRendering.mergeAnnotation(annotationData.$answerText, annotationData.annotation)
216
+ : [annotationData.annotation];
217
+ saveAnnotation(getAnswerId(annotationData.$answerText), annotations);
218
+ answerAnnotationsRendering.renderAnnotationsForElement(annotationData.$answerText, annotations);
219
+ }
220
+ }
221
+ }
222
+ }
223
+ export function setupAnnotationDisplaying($answers, isCensor) {
224
+ let fadeOutDelayTimeout = void 0;
225
+ $answers.on('mouseenter', '.answerAnnotation', (event) => {
226
+ const $annotation = $(event.target);
227
+ if (isMouseDown || addAnnotationPopupIsVisible() || hasTextSelectedInAnswerText()) {
228
+ return;
229
+ }
230
+ clearTimeout(fadeOutDelayTimeout);
231
+ if (popupAlreadyShownForCurrentAnnotation(event)) {
232
+ $annotation.find('.remove-annotation-popup').stop().show().css({ opacity: 1 });
233
+ }
234
+ else {
235
+ clearAllRemovePopups();
236
+ renderRemovePopup(event);
237
+ }
238
+ });
239
+ $answers.on('mouseleave', '.answerAnnotation', (event) => {
240
+ fadeOutDelayTimeout = setTimeout(() => {
241
+ removeRemovePopup(event);
242
+ }, 400);
243
+ });
244
+ function popupAlreadyShownForCurrentAnnotation(event) {
245
+ const mouseOverAnnotationElem = $(event.target).closest('.answerAnnotation')[0];
246
+ const popupsCurrentAnnotationElem = $('.remove-annotation-popup:visible').closest('.answerAnnotation')[0];
247
+ return (event &&
248
+ mouseOverAnnotationElem &&
249
+ popupsCurrentAnnotationElem &&
250
+ mouseOverAnnotationElem.isEqualNode(popupsCurrentAnnotationElem));
251
+ }
252
+ function addAnnotationPopupIsVisible() {
253
+ return $('.add-annotation-popup').is(':visible');
254
+ }
255
+ function clearAllRemovePopups() {
256
+ $('.remove-annotation-popup').remove();
257
+ }
258
+ function renderRemovePopup(event) {
259
+ const $annotation = $(event.currentTarget);
260
+ const $popup = popupWithMessage($annotation, $annotation.attr('data-message'));
261
+ $annotation.append($popup);
262
+ // Calculate limits for preventing overflow on either side
263
+ const left = inlineLeftOffset(event.currentTarget);
264
+ const pageMargin = 8;
265
+ const leftLimit = -left + pageMargin;
266
+ const rightLimit = $(window).width() - left - $popup.outerWidth() - pageMargin;
267
+ const css = {
268
+ left: Math.min(Math.max(mouseOffsetLeft(event) - $popup.outerWidth() / 2, leftLimit), rightLimit),
269
+ };
270
+ $popup.css(css);
271
+ $popup.fadeIn();
272
+ }
273
+ function removeRemovePopup(event) {
274
+ const $annotation = $(event.target).closest('.answerAnnotation');
275
+ const popup = $annotation.find('.remove-annotation-popup');
276
+ popup.fadeOut(100, () => {
277
+ popup.remove();
278
+ });
279
+ }
280
+ function popupWithMessage($annotation, message) {
281
+ const $messageContainer = $('<span class="popup remove-annotation-popup"><span class="annotation-message"></span></span>');
282
+ $messageContainer.find('.annotation-message').text(message || '-');
283
+ if (isAllowedToRemoveAnnotation($annotation)) {
284
+ $messageContainer.append('<i class="fa fa-times-circle remove-annotation-area"></i>');
285
+ }
286
+ return $messageContainer;
287
+ }
288
+ function isAllowedToRemoveAnnotation($annotation) {
289
+ return isPregradingAndScoringEnabled() || isCensorAndOwnAnnotation();
290
+ function isPregradingAndScoringEnabled() {
291
+ const $body = $('body');
292
+ return $body.hasClass('is_pregrading') && !$body.hasClass('preview');
293
+ }
294
+ function isCensorAndOwnAnnotation() {
295
+ return isCensor && $annotation.closest('.answerText').hasClass('is_censor');
296
+ }
297
+ }
298
+ function inlineLeftOffset(element) {
299
+ return $(element).offsetParent().offset().left + element.offsetLeft;
300
+ }
301
+ function mouseOffsetLeft(mousemove) {
302
+ const annotation = mousemove.target;
303
+ const annotationLeftOffsetFromPageEdge = inlineLeftOffset(annotation);
304
+ return mousemove.pageX - annotationLeftOffsetFromPageEdge;
305
+ }
306
+ }
307
+ function getAnswerId($answerText) {
308
+ return $answerText.closest('.answer').attr('data-answer-id');
309
+ }
310
+ function getBrowserTextSelection() {
311
+ return typeof window.getSelection !== 'undefined'
312
+ ? window.getSelection()
313
+ : typeof document.selection !== 'undefined' && document.selection.type === 'Text'
314
+ ? document.selection
315
+ : undefined;
316
+ }
317
+ function hasTextSelectedInAnswerText() {
318
+ const selection = getBrowserTextSelection();
319
+ return (selection && selectionInAnswerText(selection) && (isRangeSelection(selection) || textSelectedInRange(selection)));
320
+ function selectionInAnswerText(sel) {
321
+ if (sel.type === 'None' || sel.type === 'Caret' || sel.rangeCount === 0)
322
+ return false;
323
+ const $startContainer = $(sel.getRangeAt(0).startContainer);
324
+ return (sel.rangeCount &&
325
+ $startContainer.closest('.answerText').length === 1 &&
326
+ $startContainer.closest('.remove-annotation-popup').length === 0);
327
+ }
328
+ function isRangeSelection(sel) {
329
+ return _.get(sel, 'type', '') === 'Range';
330
+ }
331
+ function textSelectedInRange(sel) {
332
+ const range = sel.getRangeAt(0);
333
+ return (_.get(sel, 'rangeCount', 0) > 0 &&
334
+ (range.toString().length > 0 || isParentContainer(range.startContainer) || isParentContainer(range.endContainer)));
335
+ }
336
+ function isParentContainer(container) {
337
+ return container && container.classList && container.classList.contains('answerText');
338
+ }
339
+ }
340
+ //# sourceMappingURL=editAnnotations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editAnnotations.js","sourceRoot":"","sources":["../src/editAnnotations.js"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,QAAQ,CAAA;AACtB,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAA;AAChC,OAAO,KAAK,0BAA0B,MAAM,yBAAyB,CAAA;AAErE,CAAC,CAAC,EAAE,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,CAAC,aAAa,CAAA;AAC1C,MAAM,GAAG,GAAG,EAAE,CAAA;AACd,MAAM,KAAK,GAAG,EAAE,CAAA;AAChB,IAAI,WAAW,GAAG,KAAK,CAAA;AAEvB,MAAM,UAAU,sBAAsB,CAAC,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ;IAC1F,uBAAuB,CAAC,iBAAiB,CAAC,CAAA;IAC1C,sBAAsB,CAAC,iBAAiB,CAAC,CAAA;IAEzC,SAAS,sBAAsB,CAAC,QAAQ;QACtC,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,yBAAyB,EAAE,CAAC,KAAK,EAAE,EAAE;YAC5D,gBAAgB,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;YAC9D,OAAO,KAAK,CAAA;QACd,CAAC,CAAC,CAAA;QAEF,SAAS,gB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AED,SAAS,qBAAqB,CAAC,GAAG;QAChC,IAAI,GAAG,CAAC,IAAI,KAAK,MAAM,IAAI,GAAG,CAAC,IAAI,KAAK,OAAO,IAAI,GAAG,CAAC,UAAU,KAAK,CAAC;YAAE,OAAO,KAAK,CAAA;QACrF,MAAM,eAAe,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAA;QAC3D,OAAO,CACL,GAAG,CAAC,UAAU;YACd,eAAe,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,MAAM,KAAK,CAAC;YACnD,eAAe,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,MAAM,KAAK,CAAC,CACjE,CAAA;IACH,CAAC;IAED,SAAS,gBAAgB,CAAC,GAAG;QAC3B,OAAO,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,KAAK,OAAO,CAAA;IAC3C,CAAC;IAED,SAAS,mBAAmB,CAAC,GAAG;QAC9B,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAA;QAC/B,OAAO,CACL,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,EAAE,CAAC,CAAC,GAAG,CAAC;YAC/B,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,MAAM,GAAG,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAClH,CAAA;IACH,CAAC;IAED,SAAS,iBAAiB,CAAC,SAAS;QAClC,OAAO,SAAS,IAAI,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAA;IACvF,CAAC;AACH,CAAC"}
@@ -140,7 +140,7 @@ export declare function useExamTranslation(): {
140
140
  'answer-end': string;
141
141
  'correct-answer': string;
142
142
  };
143
- }>>(key: TKeys | TKeys[], options?: TOptions<import("i18next").StringMap> | undefined): string | JSX.Element;
143
+ }>>(key: TKeys | TKeys[], options?: TOptions): string | JSX.Element;
144
144
  raw: TFunction;
145
145
  };
146
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,EAAE,EAAsC,QAAQ,EAAE,MAAM,SAAS,CAAA;AAI5E,OAAO,EAAY,SAAS,EAAkB,MAAM,eAAe,CAAA;AAMnE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAgD/B,OAAO,QAAQ,eAAe,CAAC;IAC7B,KAAK,uBAAuB,GAAG;QAAE,WAAW,EAAE,OAAO,KAAK,CAAA;KAAE,CAAA;IAG5D,UAAU,SAAU,SAAQ,uBAAuB;KAAG;CACvD;AAED,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,IAAI,CAwC3F;AAED,wBAAgB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gGAGsC,MAAM,GAAG,WAAW;aACnF,SAAS;;EAKjB;AAwCD,eAAO,MAAM,cAAc,UAAW,WAAW,YAAY,MAAM,WAAS,IAI3E,CAAA;AAED,eAAe,IAAI,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/i18n/index.tsx"],"names":[],"mappings":";AAAA,OAAO,IAAI,EAAE,EAAsC,QAAQ,EAAE,MAAM,SAAS,CAAA;AAI5E,OAAO,EAAY,SAAS,EAAkB,MAAM,eAAe,CAAA;AAMnE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAgD/B,OAAO,QAAQ,eAA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