@digabi/exam-engine-core 23.0.4 → 23.1.1-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/__tests__/playwright/DNDAnswerContainer.test.d.ts +2 -0
- package/dist/__tests__/playwright/DNDAnswerContainer.test.d.ts.map +1 -0
- package/dist/__tests__/playwright/DNDAnswerContainer.test.js +77 -0
- package/dist/__tests__/playwright/DNDAnswerContainer.test.js.map +1 -0
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.d.ts +2 -0
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.d.ts.map +1 -0
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js +77 -0
- package/dist/__tests__/playwright/exam/DNDAnswerContainer.test.js.map +1 -0
- package/dist/__tests__/playwright/stories/DNDAnswerContainer.story.d.ts +10 -0
- package/dist/__tests__/playwright/stories/DNDAnswerContainer.story.d.ts.map +1 -0
- package/dist/__tests__/playwright/stories/DNDAnswerContainer.story.js +21 -0
- package/dist/__tests__/playwright/stories/DNDAnswerContainer.story.js.map +1 -0
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.d.ts +10 -0
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.d.ts.map +1 -0
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js +21 -0
- package/dist/__tests__/playwright/stories/exam/DNDAnswerContainer.story.js.map +1 -0
- package/dist/__tests__/playwright/template/index.d.ts +0 -1
- package/dist/__tests__/playwright/template/index.d.ts.map +1 -1
- package/dist/__tests__/playwright/template/index.js +3 -2
- package/dist/__tests__/playwright/template/index.js.map +1 -1
- package/dist/__tests__/playwright/utils/ComponentWrapper.d.ts +9 -0
- package/dist/__tests__/playwright/utils/ComponentWrapper.d.ts.map +1 -0
- package/dist/__tests__/playwright/utils/ComponentWrapper.js +26 -0
- package/dist/__tests__/playwright/utils/ComponentWrapper.js.map +1 -0
- package/dist/__tests__/playwright/utils/ExamComponentWrapper.d.ts +9 -0
- package/dist/__tests__/playwright/utils/ExamComponentWrapper.d.ts.map +1 -0
- package/dist/__tests__/playwright/utils/ExamComponentWrapper.js +26 -0
- package/dist/__tests__/playwright/utils/ExamComponentWrapper.js.map +1 -0
- package/dist/__tests__/results/ResultsContext.test.js +1 -1
- package/dist/__tests__/results/ResultsContext.test.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/context/QuestionContext.js +1 -1
- package/dist/components/context/QuestionContext.js.map +1 -1
- package/dist/components/exam/AllDNDOptions.d.ts +9 -0
- package/dist/components/exam/AllDNDOptions.d.ts.map +1 -0
- package/dist/components/exam/AllDNDOptions.js +12 -0
- package/dist/components/exam/AllDNDOptions.js.map +1 -0
- package/dist/components/exam/DNDAllOptions.d.ts +9 -0
- package/dist/components/exam/DNDAllOptions.d.ts.map +1 -0
- package/dist/components/exam/DNDAllOptions.js +14 -0
- package/dist/components/exam/DNDAllOptions.js.map +1 -0
- package/dist/components/exam/DNDAnswer.d.ts +20 -0
- package/dist/components/exam/DNDAnswer.d.ts.map +1 -0
- package/dist/components/exam/DNDAnswer.js +7 -0
- package/dist/components/exam/DNDAnswer.js.map +1 -0
- package/dist/components/exam/DNDAnswerContainer.d.ts +9 -0
- package/dist/components/exam/DNDAnswerContainer.d.ts.map +1 -0
- package/dist/components/exam/DNDAnswerContainer.js +128 -0
- package/dist/components/exam/DNDAnswerContainer.js.map +1 -0
- package/dist/components/exam/DNDAnswerOption.d.ts +4 -0
- package/dist/components/exam/DNDAnswerOption.d.ts.map +1 -0
- package/dist/components/exam/DNDAnswerOption.js +18 -0
- package/dist/components/exam/DNDAnswerOption.js.map +1 -0
- package/dist/components/exam/DNDAnswerOptionDraggable.d.ts +4 -0
- package/dist/components/exam/DNDAnswerOptionDraggable.d.ts.map +1 -0
- package/dist/components/exam/DNDAnswerOptionDraggable.js +18 -0
- package/dist/components/exam/DNDAnswerOptionDraggable.js.map +1 -0
- package/dist/components/exam/Exam.d.ts +1 -0
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +3 -1
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/results/AudioPlaceholder.d.ts +4 -0
- package/dist/components/results/AudioPlaceholder.d.ts.map +1 -0
- package/dist/components/results/AudioPlaceholder.js +25 -0
- package/dist/components/results/AudioPlaceholder.js.map +1 -0
- package/dist/components/results/CorrectDNDAnswers.d.ts +7 -0
- package/dist/components/results/CorrectDNDAnswers.d.ts.map +1 -0
- package/dist/components/results/CorrectDNDAnswers.js +19 -0
- package/dist/components/results/CorrectDNDAnswers.js.map +1 -0
- package/dist/components/results/DNDAnswer.d.ts +12 -0
- package/dist/components/results/DNDAnswer.d.ts.map +1 -0
- package/dist/components/results/DNDAnswer.js +21 -0
- package/dist/components/results/DNDAnswer.js.map +1 -0
- package/dist/components/results/DNDAnswerContainer.d.ts +4 -0
- package/dist/components/results/DNDAnswerContainer.d.ts.map +1 -0
- package/dist/components/results/DNDAnswerContainer.js +35 -0
- package/dist/components/results/DNDAnswerContainer.js.map +1 -0
- package/dist/components/results/DNDAnswerOption.d.ts +7 -0
- package/dist/components/results/DNDAnswerOption.d.ts.map +1 -0
- package/dist/components/results/DNDAnswerOption.js +9 -0
- package/dist/components/results/DNDAnswerOption.js.map +1 -0
- package/dist/components/results/Results.d.ts.map +1 -1
- package/dist/components/results/Results.js +5 -1
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +2 -1
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/shared/DNDAnswerCommon.d.ts +13 -0
- package/dist/components/shared/DNDAnswerCommon.d.ts.map +1 -0
- package/dist/components/shared/DNDAnswerCommon.js +30 -0
- package/dist/components/shared/DNDAnswerCommon.js.map +1 -0
- package/dist/components/shared/DNDAnswerDroppable.d.ts +13 -0
- package/dist/components/shared/DNDAnswerDroppable.d.ts.map +1 -0
- package/dist/components/shared/DNDAnswerDroppable.js +30 -0
- package/dist/components/shared/DNDAnswerDroppable.js.map +1 -0
- package/dist/components/shared/DNDAnswerOptionCommon.d.ts +7 -0
- package/dist/components/shared/DNDAnswerOptionCommon.d.ts.map +1 -0
- package/dist/components/shared/DNDAnswerOptionCommon.js +14 -0
- package/dist/components/shared/DNDAnswerOptionCommon.js.map +1 -0
- package/dist/components/shared/DNDDroppable.d.ts +12 -0
- package/dist/components/shared/DNDDroppable.d.ts.map +1 -0
- package/dist/components/shared/DNDDroppable.js +27 -0
- package/dist/components/shared/DNDDroppable.js.map +1 -0
- package/dist/components/shared/DNDTitleAndAnswerCommon.d.ts +13 -0
- package/dist/components/shared/DNDTitleAndAnswerCommon.d.ts.map +1 -0
- package/dist/components/shared/DNDTitleAndAnswerCommon.js +27 -0
- package/dist/components/shared/DNDTitleAndAnswerCommon.js.map +1 -0
- package/dist/components/shared/DNDTitleAndDroppable.d.ts +11 -0
- package/dist/components/shared/DNDTitleAndDroppable.d.ts.map +1 -0
- package/dist/components/shared/DNDTitleAndDroppable.js +55 -0
- package/dist/components/shared/DNDTitleAndDroppable.js.map +1 -0
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts +1 -0
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
- package/dist/dom-utils.d.ts.map +1 -1
- package/dist/dom-utils.js +1 -1
- package/dist/dom-utils.js.map +1 -1
- package/dist/i18n/fi-FI.d.ts +8 -0
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +8 -0
- package/dist/i18n/fi-FI.js.map +1 -1
- package/dist/i18n/sv-FI.d.ts.map +1 -1
- package/dist/i18n/sv-FI.js +8 -0
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +10 -10
- package/dist/main.css +1 -1
- package/dist/parser/parseExam.js +1 -1
- package/dist/parser/parseExam.js.map +1 -1
- package/dist/parser/parseExamStructure.d.ts +8 -1
- package/dist/parser/parseExamStructure.d.ts.map +1 -1
- package/dist/parser/parseExamStructure.js +1 -1
- package/dist/parser/parseExamStructure.js.map +1 -1
- package/dist/validateAnswers.js +1 -0
- package/dist/validateAnswers.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/exam/ExamineExam.d.ts +0 -5
- package/dist/components/exam/ExamineExam.d.ts.map +0 -1
- package/dist/components/exam/ExamineExam.js +0 -20
- package/dist/components/exam/ExamineExam.js.map +0 -1
- package/dist/src/components/AnswerToolbar.d.ts +0 -18
- package/dist/src/components/AnswerToolbar.d.ts.map +0 -1
- package/dist/src/components/AnswerToolbar.js +0 -36
- package/dist/src/components/AnswerToolbar.js.map +0 -1
- package/dist/src/components/AnsweringInstructions.d.ts +0 -12
- package/dist/src/components/AnsweringInstructions.d.ts.map +0 -1
- package/dist/src/components/AnsweringInstructions.js +0 -24
- package/dist/src/components/AnsweringInstructions.js.map +0 -1
- package/dist/src/components/DocumentTitle.d.ts +0 -5
- package/dist/src/components/DocumentTitle.d.ts.map +0 -1
- package/dist/src/components/DocumentTitle.js +0 -13
- package/dist/src/components/DocumentTitle.js.map +0 -1
- package/dist/src/components/NotificationIcon.d.ts +0 -4
- package/dist/src/components/NotificationIcon.d.ts.map +0 -1
- package/dist/src/components/NotificationIcon.js +0 -6
- package/dist/src/components/NotificationIcon.js.map +0 -1
- package/dist/src/components/RenderChildNodes.d.ts +0 -5
- package/dist/src/components/RenderChildNodes.d.ts.map +0 -1
- package/dist/src/components/RenderChildNodes.js +0 -7
- package/dist/src/components/RenderChildNodes.js.map +0 -1
- package/dist/src/components/RenderExamElements.d.ts +0 -6
- package/dist/src/components/RenderExamElements.d.ts.map +0 -1
- package/dist/src/components/RenderExamElements.js +0 -6
- package/dist/src/components/RenderExamElements.js.map +0 -1
- package/dist/src/components/RenderIf.d.ts +0 -4
- package/dist/src/components/RenderIf.d.ts.map +0 -1
- package/dist/src/components/RenderIf.js +0 -8
- package/dist/src/components/RenderIf.js.map +0 -1
- package/dist/src/components/ScreenReaderOnly.d.ts +0 -5
- package/dist/src/components/ScreenReaderOnly.d.ts.map +0 -1
- package/dist/src/components/ScreenReaderOnly.js +0 -3
- package/dist/src/components/ScreenReaderOnly.js.map +0 -1
- package/dist/src/components/SectionElement.d.ts +0 -4
- package/dist/src/components/SectionElement.d.ts.map +0 -1
- package/dist/src/components/SectionElement.js +0 -8
- package/dist/src/components/SectionElement.js.map +0 -1
- package/dist/src/components/attachments/Attachment.d.ts +0 -4
- package/dist/src/components/attachments/Attachment.d.ts.map +0 -1
- package/dist/src/components/attachments/Attachment.js +0 -8
- package/dist/src/components/attachments/Attachment.js.map +0 -1
- package/dist/src/components/attachments/AttachmentTitle.d.ts +0 -6
- package/dist/src/components/attachments/AttachmentTitle.d.ts.map +0 -1
- package/dist/src/components/attachments/AttachmentTitle.js +0 -12
- package/dist/src/components/attachments/AttachmentTitle.js.map +0 -1
- package/dist/src/components/attachments/Attachments.d.ts +0 -5
- package/dist/src/components/attachments/Attachments.d.ts.map +0 -1
- package/dist/src/components/attachments/Attachments.js +0 -55
- package/dist/src/components/attachments/Attachments.js.map +0 -1
- package/dist/src/components/attachments/ExternalMaterial.d.ts +0 -9
- package/dist/src/components/attachments/ExternalMaterial.d.ts.map +0 -1
- package/dist/src/components/attachments/ExternalMaterial.js +0 -46
- package/dist/src/components/attachments/ExternalMaterial.js.map +0 -1
- package/dist/src/components/attachments/Question.d.ts +0 -4
- package/dist/src/components/attachments/Question.d.ts.map +0 -1
- package/dist/src/components/attachments/Question.js +0 -16
- package/dist/src/components/attachments/Question.js.map +0 -1
- package/dist/src/components/attachments/QuestionTitle.d.ts +0 -6
- package/dist/src/components/attachments/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/attachments/QuestionTitle.js +0 -15
- package/dist/src/components/attachments/QuestionTitle.js.map +0 -1
- package/dist/src/components/context/AnnotationProvider.d.ts +0 -16
- package/dist/src/components/context/AnnotationProvider.d.ts.map +0 -1
- package/dist/src/components/context/AnnotationProvider.js +0 -35
- package/dist/src/components/context/AnnotationProvider.js.map +0 -1
- package/dist/src/components/context/AttachmentContext.d.ts +0 -13
- package/dist/src/components/context/AttachmentContext.d.ts.map +0 -1
- package/dist/src/components/context/AttachmentContext.js +0 -12
- package/dist/src/components/context/AttachmentContext.js.map +0 -1
- package/dist/src/components/context/CommonExamContext.d.ts +0 -22
- package/dist/src/components/context/CommonExamContext.d.ts.map +0 -1
- package/dist/src/components/context/CommonExamContext.js +0 -28
- package/dist/src/components/context/CommonExamContext.js.map +0 -1
- package/dist/src/components/context/ExamContext.d.ts +0 -9
- package/dist/src/components/context/ExamContext.d.ts.map +0 -1
- package/dist/src/components/context/ExamContext.js +0 -11
- package/dist/src/components/context/ExamContext.js.map +0 -1
- package/dist/src/components/context/IsInSidebarContext.d.ts +0 -6
- package/dist/src/components/context/IsInSidebarContext.d.ts.map +0 -1
- package/dist/src/components/context/IsInSidebarContext.js +0 -3
- package/dist/src/components/context/IsInSidebarContext.js.map +0 -1
- package/dist/src/components/context/QuestionContext.d.ts +0 -14
- package/dist/src/components/context/QuestionContext.d.ts.map +0 -1
- package/dist/src/components/context/QuestionContext.js +0 -27
- package/dist/src/components/context/QuestionContext.js.map +0 -1
- package/dist/src/components/context/ResultsContext.d.ts +0 -17
- package/dist/src/components/context/ResultsContext.d.ts.map +0 -1
- package/dist/src/components/context/ResultsContext.js +0 -69
- package/dist/src/components/context/ResultsContext.js.map +0 -1
- package/dist/src/components/context/SectionContext.d.ts +0 -12
- package/dist/src/components/context/SectionContext.d.ts.map +0 -1
- package/dist/src/components/context/SectionContext.js +0 -21
- package/dist/src/components/context/SectionContext.js.map +0 -1
- package/dist/src/components/context/TOCContext.d.ts +0 -7
- package/dist/src/components/context/TOCContext.d.ts.map +0 -1
- package/dist/src/components/context/TOCContext.js +0 -3
- package/dist/src/components/context/TOCContext.js.map +0 -1
- package/dist/src/components/context/withContext.d.ts +0 -3
- package/dist/src/components/context/withContext.d.ts.map +0 -1
- package/dist/src/components/context/withContext.js +0 -12
- package/dist/src/components/context/withContext.js.map +0 -1
- package/dist/src/components/exam/Attachment.d.ts +0 -4
- package/dist/src/components/exam/Attachment.d.ts.map +0 -1
- package/dist/src/components/exam/Attachment.js +0 -8
- package/dist/src/components/exam/Attachment.js.map +0 -1
- package/dist/src/components/exam/ChoiceAnswer.d.ts +0 -5
- package/dist/src/components/exam/ChoiceAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/ChoiceAnswer.js +0 -53
- package/dist/src/components/exam/ChoiceAnswer.js.map +0 -1
- package/dist/src/components/exam/DropdownAnswer.d.ts +0 -5
- package/dist/src/components/exam/DropdownAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/DropdownAnswer.js +0 -101
- package/dist/src/components/exam/DropdownAnswer.js.map +0 -1
- package/dist/src/components/exam/Exam.d.ts +0 -48
- package/dist/src/components/exam/Exam.d.ts.map +0 -1
- package/dist/src/components/exam/Exam.js +0 -195
- package/dist/src/components/exam/Exam.js.map +0 -1
- package/dist/src/components/exam/ExamFooter.d.ts +0 -6
- package/dist/src/components/exam/ExamFooter.d.ts.map +0 -1
- package/dist/src/components/exam/ExamFooter.js +0 -6
- package/dist/src/components/exam/ExamFooter.js.map +0 -1
- package/dist/src/components/exam/ExamInstruction.d.ts +0 -6
- package/dist/src/components/exam/ExamInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/ExamInstruction.js +0 -6
- package/dist/src/components/exam/ExamInstruction.js.map +0 -1
- package/dist/src/components/exam/ExternalMaterial.d.ts +0 -10
- package/dist/src/components/exam/ExternalMaterial.d.ts.map +0 -1
- package/dist/src/components/exam/ExternalMaterial.js +0 -33
- package/dist/src/components/exam/ExternalMaterial.js.map +0 -1
- package/dist/src/components/exam/GoToExamineAnswersButton.d.ts +0 -5
- package/dist/src/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
- package/dist/src/components/exam/GoToExamineAnswersButton.js +0 -18
- package/dist/src/components/exam/GoToExamineAnswersButton.js.map +0 -1
- package/dist/src/components/exam/Hints.d.ts +0 -5
- package/dist/src/components/exam/Hints.d.ts.map +0 -1
- package/dist/src/components/exam/Hints.js +0 -31
- package/dist/src/components/exam/Hints.js.map +0 -1
- package/dist/src/components/exam/Question.d.ts +0 -8
- package/dist/src/components/exam/Question.d.ts.map +0 -1
- package/dist/src/components/exam/Question.js +0 -75
- package/dist/src/components/exam/Question.js.map +0 -1
- package/dist/src/components/exam/QuestionInstruction.d.ts +0 -6
- package/dist/src/components/exam/QuestionInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/QuestionInstruction.js +0 -8
- package/dist/src/components/exam/QuestionInstruction.js.map +0 -1
- package/dist/src/components/exam/QuestionTitle.d.ts +0 -5
- package/dist/src/components/exam/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/exam/QuestionTitle.js +0 -26
- package/dist/src/components/exam/QuestionTitle.js.map +0 -1
- package/dist/src/components/exam/RichTextAnswer.d.ts +0 -41
- package/dist/src/components/exam/RichTextAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/RichTextAnswer.js +0 -79
- package/dist/src/components/exam/RichTextAnswer.js.map +0 -1
- package/dist/src/components/exam/Section.d.ts +0 -4
- package/dist/src/components/exam/Section.d.ts.map +0 -1
- package/dist/src/components/exam/Section.js +0 -49
- package/dist/src/components/exam/Section.js.map +0 -1
- package/dist/src/components/exam/SectionInstruction.d.ts +0 -6
- package/dist/src/components/exam/SectionInstruction.d.ts.map +0 -1
- package/dist/src/components/exam/SectionInstruction.js +0 -6
- package/dist/src/components/exam/SectionInstruction.js.map +0 -1
- package/dist/src/components/exam/SectionTitle.d.ts +0 -6
- package/dist/src/components/exam/SectionTitle.d.ts.map +0 -1
- package/dist/src/components/exam/SectionTitle.js +0 -30
- package/dist/src/components/exam/SectionTitle.js.map +0 -1
- package/dist/src/components/exam/StudentNameHeader.d.ts +0 -8
- package/dist/src/components/exam/StudentNameHeader.d.ts.map +0 -1
- package/dist/src/components/exam/StudentNameHeader.js +0 -3
- package/dist/src/components/exam/StudentNameHeader.js.map +0 -1
- package/dist/src/components/exam/TextAnswer.d.ts +0 -6
- package/dist/src/components/exam/TextAnswer.d.ts.map +0 -1
- package/dist/src/components/exam/TextAnswer.js +0 -20
- package/dist/src/components/exam/TextAnswer.js.map +0 -1
- package/dist/src/components/exam/UndoHistoryEntry.d.ts +0 -19
- package/dist/src/components/exam/UndoHistoryEntry.d.ts.map +0 -1
- package/dist/src/components/exam/UndoHistoryEntry.js +0 -39
- package/dist/src/components/exam/UndoHistoryEntry.js.map +0 -1
- package/dist/src/components/exam/UndoView.d.ts +0 -35
- package/dist/src/components/exam/UndoView.d.ts.map +0 -1
- package/dist/src/components/exam/UndoView.js +0 -162
- package/dist/src/components/exam/UndoView.js.map +0 -1
- package/dist/src/components/exam/internal/ErrorIndicator.d.ts +0 -9
- package/dist/src/components/exam/internal/ErrorIndicator.d.ts.map +0 -1
- package/dist/src/components/exam/internal/ErrorIndicator.js +0 -63
- package/dist/src/components/exam/internal/ErrorIndicator.js.map +0 -1
- package/dist/src/components/exam/internal/ProgressBar.d.ts +0 -8
- package/dist/src/components/exam/internal/ProgressBar.d.ts.map +0 -1
- package/dist/src/components/exam/internal/ProgressBar.js +0 -19
- package/dist/src/components/exam/internal/ProgressBar.js.map +0 -1
- package/dist/src/components/exam/internal/SaveIndicator.d.ts +0 -5
- package/dist/src/components/exam/internal/SaveIndicator.d.ts.map +0 -1
- package/dist/src/components/exam/internal/SaveIndicator.js +0 -16
- package/dist/src/components/exam/internal/SaveIndicator.js.map +0 -1
- package/dist/src/components/exam/internal/TextAnswerInput.d.ts +0 -6
- package/dist/src/components/exam/internal/TextAnswerInput.d.ts.map +0 -1
- package/dist/src/components/exam/internal/TextAnswerInput.js +0 -128
- package/dist/src/components/exam/internal/TextAnswerInput.js.map +0 -1
- package/dist/src/components/grading/AnswerCharacterCounter.d.ts +0 -6
- package/dist/src/components/grading/AnswerCharacterCounter.d.ts.map +0 -1
- package/dist/src/components/grading/AnswerCharacterCounter.js +0 -21
- package/dist/src/components/grading/AnswerCharacterCounter.js.map +0 -1
- package/dist/src/components/grading/GradingAnswer.d.ts +0 -24
- package/dist/src/components/grading/GradingAnswer.d.ts.map +0 -1
- package/dist/src/components/grading/GradingAnswer.js +0 -306
- package/dist/src/components/grading/GradingAnswer.js.map +0 -1
- package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts +0 -9
- package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts.map +0 -1
- package/dist/src/components/grading/GradingAnswerAnnotationList.js +0 -19
- package/dist/src/components/grading/GradingAnswerAnnotationList.js.map +0 -1
- package/dist/src/components/grading/editAnnotations.d.ts +0 -29
- package/dist/src/components/grading/editAnnotations.d.ts.map +0 -1
- package/dist/src/components/grading/editAnnotations.js +0 -190
- package/dist/src/components/grading/editAnnotations.js.map +0 -1
- package/dist/src/components/grading/examAnnotationUtils.d.ts +0 -3
- package/dist/src/components/grading/examAnnotationUtils.d.ts.map +0 -1
- package/dist/src/components/grading/examAnnotationUtils.js +0 -44
- package/dist/src/components/grading/examAnnotationUtils.js.map +0 -1
- package/dist/src/components/grading/largeImageDetector.d.ts +0 -3
- package/dist/src/components/grading/largeImageDetector.d.ts.map +0 -1
- package/dist/src/components/grading/largeImageDetector.js +0 -45
- package/dist/src/components/grading/largeImageDetector.js.map +0 -1
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts +0 -5
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.js +0 -4
- package/dist/src/components/grading-instructions/AnswerGradingInstruction.js.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts +0 -5
- package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswer.js +0 -34
- package/dist/src/components/grading-instructions/AutogradedAnswer.js.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts +0 -5
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.js +0 -17
- package/dist/src/components/grading-instructions/AutogradedAnswerOption.js.map +0 -1
- package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts +0 -5
- package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/ExamGradingInstruction.js +0 -4
- package/dist/src/components/grading-instructions/ExamGradingInstruction.js.map +0 -1
- package/dist/src/components/grading-instructions/GradingInstructions.d.ts +0 -6
- package/dist/src/components/grading-instructions/GradingInstructions.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/GradingInstructions.js +0 -109
- package/dist/src/components/grading-instructions/GradingInstructions.js.map +0 -1
- package/dist/src/components/grading-instructions/Question.d.ts +0 -4
- package/dist/src/components/grading-instructions/Question.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Question.js +0 -14
- package/dist/src/components/grading-instructions/Question.js.map +0 -1
- package/dist/src/components/grading-instructions/QuestionTitle.d.ts +0 -5
- package/dist/src/components/grading-instructions/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/QuestionTitle.js +0 -19
- package/dist/src/components/grading-instructions/QuestionTitle.js.map +0 -1
- package/dist/src/components/grading-instructions/Recording.d.ts +0 -5
- package/dist/src/components/grading-instructions/Recording.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Recording.js +0 -19
- package/dist/src/components/grading-instructions/Recording.js.map +0 -1
- package/dist/src/components/grading-instructions/Section.d.ts +0 -4
- package/dist/src/components/grading-instructions/Section.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/Section.js +0 -10
- package/dist/src/components/grading-instructions/Section.js.map +0 -1
- package/dist/src/components/grading-instructions/SectionTitle.d.ts +0 -5
- package/dist/src/components/grading-instructions/SectionTitle.d.ts.map +0 -1
- package/dist/src/components/grading-instructions/SectionTitle.js +0 -16
- package/dist/src/components/grading-instructions/SectionTitle.js.map +0 -1
- package/dist/src/components/results/ChoiceAnswer.d.ts +0 -6
- package/dist/src/components/results/ChoiceAnswer.d.ts.map +0 -1
- package/dist/src/components/results/ChoiceAnswer.js +0 -57
- package/dist/src/components/results/ChoiceAnswer.js.map +0 -1
- package/dist/src/components/results/DropdownAnswer.d.ts +0 -6
- package/dist/src/components/results/DropdownAnswer.d.ts.map +0 -1
- package/dist/src/components/results/DropdownAnswer.js +0 -43
- package/dist/src/components/results/DropdownAnswer.js.map +0 -1
- package/dist/src/components/results/EndExamSession.d.ts +0 -8
- package/dist/src/components/results/EndExamSession.d.ts.map +0 -1
- package/dist/src/components/results/EndExamSession.js +0 -20
- package/dist/src/components/results/EndExamSession.js.map +0 -1
- package/dist/src/components/results/MultiLineAnswer.d.ts +0 -8
- package/dist/src/components/results/MultiLineAnswer.d.ts.map +0 -1
- package/dist/src/components/results/MultiLineAnswer.js +0 -22
- package/dist/src/components/results/MultiLineAnswer.js.map +0 -1
- package/dist/src/components/results/Question.d.ts +0 -4
- package/dist/src/components/results/Question.d.ts.map +0 -1
- package/dist/src/components/results/Question.js +0 -31
- package/dist/src/components/results/Question.js.map +0 -1
- package/dist/src/components/results/QuestionTitle.d.ts +0 -6
- package/dist/src/components/results/QuestionTitle.d.ts.map +0 -1
- package/dist/src/components/results/QuestionTitle.js +0 -26
- package/dist/src/components/results/QuestionTitle.js.map +0 -1
- package/dist/src/components/results/Results.d.ts +0 -19
- package/dist/src/components/results/Results.d.ts.map +0 -1
- package/dist/src/components/results/Results.js +0 -136
- package/dist/src/components/results/Results.js.map +0 -1
- package/dist/src/components/results/ScoredTextAnswer.d.ts +0 -6
- package/dist/src/components/results/ScoredTextAnswer.d.ts.map +0 -1
- package/dist/src/components/results/ScoredTextAnswer.js +0 -22
- package/dist/src/components/results/ScoredTextAnswer.js.map +0 -1
- package/dist/src/components/results/Section.d.ts +0 -4
- package/dist/src/components/results/Section.d.ts.map +0 -1
- package/dist/src/components/results/Section.js +0 -11
- package/dist/src/components/results/Section.js.map +0 -1
- package/dist/src/components/results/SingleLineAnswer.d.ts +0 -12
- package/dist/src/components/results/SingleLineAnswer.d.ts.map +0 -1
- package/dist/src/components/results/SingleLineAnswer.js +0 -26
- package/dist/src/components/results/SingleLineAnswer.js.map +0 -1
- package/dist/src/components/results/TextAnswer.d.ts +0 -7
- package/dist/src/components/results/TextAnswer.d.ts.map +0 -1
- package/dist/src/components/results/TextAnswer.js +0 -48
- package/dist/src/components/results/TextAnswer.js.map +0 -1
- package/dist/src/components/results/internal/AnnotationList.d.ts +0 -5
- package/dist/src/components/results/internal/AnnotationList.d.ts.map +0 -1
- package/dist/src/components/results/internal/AnnotationList.js +0 -32
- package/dist/src/components/results/internal/AnnotationList.js.map +0 -1
- package/dist/src/components/results/internal/QuestionAutoScore.d.ts +0 -11
- package/dist/src/components/results/internal/QuestionAutoScore.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionAutoScore.js +0 -17
- package/dist/src/components/results/internal/QuestionAutoScore.js.map +0 -1
- package/dist/src/components/results/internal/QuestionManualScore.d.ts +0 -13
- package/dist/src/components/results/internal/QuestionManualScore.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionManualScore.js +0 -66
- package/dist/src/components/results/internal/QuestionManualScore.js.map +0 -1
- package/dist/src/components/results/internal/QuestionScoresContainer.d.ts +0 -11
- package/dist/src/components/results/internal/QuestionScoresContainer.d.ts.map +0 -1
- package/dist/src/components/results/internal/QuestionScoresContainer.js +0 -27
- package/dist/src/components/results/internal/QuestionScoresContainer.js.map +0 -1
- package/dist/src/components/results/isExamineExamPageHook.d.ts +0 -2
- package/dist/src/components/results/isExamineExamPageHook.d.ts.map +0 -1
- package/dist/src/components/results/isExamineExamPageHook.js +0 -7
- package/dist/src/components/results/isExamineExamPageHook.js.map +0 -1
- package/dist/src/components/shared/AnnotatableText.d.ts +0 -5
- package/dist/src/components/shared/AnnotatableText.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotatableText.js +0 -73
- package/dist/src/components/shared/AnnotatableText.js.map +0 -1
- package/dist/src/components/shared/AnnotationLists.d.ts +0 -13
- package/dist/src/components/shared/AnnotationLists.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotationLists.js +0 -17
- package/dist/src/components/shared/AnnotationLists.js.map +0 -1
- package/dist/src/components/shared/AnnotationPopup.d.ts +0 -3
- package/dist/src/components/shared/AnnotationPopup.d.ts.map +0 -1
- package/dist/src/components/shared/AnnotationPopup.js +0 -74
- package/dist/src/components/shared/AnnotationPopup.js.map +0 -1
- package/dist/src/components/shared/AnswerIndicator.d.ts +0 -12
- package/dist/src/components/shared/AnswerIndicator.d.ts.map +0 -1
- package/dist/src/components/shared/AnswerIndicator.js +0 -27
- package/dist/src/components/shared/AnswerIndicator.js.map +0 -1
- package/dist/src/components/shared/AnswerLengthInfo.d.ts +0 -7
- package/dist/src/components/shared/AnswerLengthInfo.d.ts.map +0 -1
- package/dist/src/components/shared/AnswerLengthInfo.js +0 -11
- package/dist/src/components/shared/AnswerLengthInfo.js.map +0 -1
- package/dist/src/components/shared/AttachmentLink.d.ts +0 -5
- package/dist/src/components/shared/AttachmentLink.d.ts.map +0 -1
- package/dist/src/components/shared/AttachmentLink.js +0 -28
- package/dist/src/components/shared/AttachmentLink.js.map +0 -1
- package/dist/src/components/shared/AttachmentLinks.d.ts +0 -5
- package/dist/src/components/shared/AttachmentLinks.d.ts.map +0 -1
- package/dist/src/components/shared/AttachmentLinks.js +0 -58
- package/dist/src/components/shared/AttachmentLinks.js.map +0 -1
- package/dist/src/components/shared/Audio.d.ts +0 -6
- package/dist/src/components/shared/Audio.d.ts.map +0 -1
- package/dist/src/components/shared/Audio.js +0 -31
- package/dist/src/components/shared/Audio.js.map +0 -1
- package/dist/src/components/shared/AudioGroup.d.ts +0 -6
- package/dist/src/components/shared/AudioGroup.d.ts.map +0 -1
- package/dist/src/components/shared/AudioGroup.js +0 -9
- package/dist/src/components/shared/AudioGroup.js.map +0 -1
- package/dist/src/components/shared/AudioTest.d.ts +0 -6
- package/dist/src/components/shared/AudioTest.d.ts.map +0 -1
- package/dist/src/components/shared/AudioTest.js +0 -34
- package/dist/src/components/shared/AudioTest.js.map +0 -1
- package/dist/src/components/shared/ExamTranslation.d.ts +0 -6
- package/dist/src/components/shared/ExamTranslation.d.ts.map +0 -1
- package/dist/src/components/shared/ExamTranslation.js +0 -9
- package/dist/src/components/shared/ExamTranslation.js.map +0 -1
- package/dist/src/components/shared/File.d.ts +0 -6
- package/dist/src/components/shared/File.d.ts.map +0 -1
- package/dist/src/components/shared/File.js +0 -15
- package/dist/src/components/shared/File.js.map +0 -1
- package/dist/src/components/shared/Footer.d.ts +0 -5
- package/dist/src/components/shared/Footer.d.ts.map +0 -1
- package/dist/src/components/shared/Footer.js +0 -3
- package/dist/src/components/shared/Footer.js.map +0 -1
- package/dist/src/components/shared/Formula.d.ts +0 -6
- package/dist/src/components/shared/Formula.d.ts.map +0 -1
- package/dist/src/components/shared/Formula.js +0 -13
- package/dist/src/components/shared/Formula.js.map +0 -1
- package/dist/src/components/shared/Image.d.ts +0 -6
- package/dist/src/components/shared/Image.d.ts.map +0 -1
- package/dist/src/components/shared/Image.js +0 -30
- package/dist/src/components/shared/Image.js.map +0 -1
- package/dist/src/components/shared/ImageOverlay.d.ts +0 -6
- package/dist/src/components/shared/ImageOverlay.d.ts.map +0 -1
- package/dist/src/components/shared/ImageOverlay.js +0 -43
- package/dist/src/components/shared/ImageOverlay.js.map +0 -1
- package/dist/src/components/shared/QuestionNumber.d.ts +0 -4
- package/dist/src/components/shared/QuestionNumber.d.ts.map +0 -1
- package/dist/src/components/shared/QuestionNumber.js +0 -12
- package/dist/src/components/shared/QuestionNumber.js.map +0 -1
- package/dist/src/components/shared/Reference.d.ts +0 -6
- package/dist/src/components/shared/Reference.d.ts.map +0 -1
- package/dist/src/components/shared/Reference.js +0 -72
- package/dist/src/components/shared/Reference.js.map +0 -1
- package/dist/src/components/shared/References.d.ts +0 -6
- package/dist/src/components/shared/References.d.ts.map +0 -1
- package/dist/src/components/shared/References.js +0 -26
- package/dist/src/components/shared/References.js.map +0 -1
- package/dist/src/components/shared/Score.d.ts +0 -8
- package/dist/src/components/shared/Score.d.ts.map +0 -1
- package/dist/src/components/shared/Score.js +0 -13
- package/dist/src/components/shared/Score.js.map +0 -1
- package/dist/src/components/shared/TOCQuestion.d.ts +0 -4
- package/dist/src/components/shared/TOCQuestion.d.ts.map +0 -1
- package/dist/src/components/shared/TOCQuestion.js +0 -77
- package/dist/src/components/shared/TOCQuestion.js.map +0 -1
- package/dist/src/components/shared/TOCSection.d.ts +0 -7
- package/dist/src/components/shared/TOCSection.d.ts.map +0 -1
- package/dist/src/components/shared/TOCSection.js +0 -15
- package/dist/src/components/shared/TOCSection.js.map +0 -1
- package/dist/src/components/shared/TOCSectionTitle.d.ts +0 -4
- package/dist/src/components/shared/TOCSectionTitle.d.ts.map +0 -1
- package/dist/src/components/shared/TOCSectionTitle.js +0 -34
- package/dist/src/components/shared/TOCSectionTitle.js.map +0 -1
- package/dist/src/components/shared/TableOfContents.d.ts +0 -8
- package/dist/src/components/shared/TableOfContents.d.ts.map +0 -1
- package/dist/src/components/shared/TableOfContents.js +0 -61
- package/dist/src/components/shared/TableOfContents.js.map +0 -1
- package/dist/src/components/shared/VersionNumber.d.ts +0 -3
- package/dist/src/components/shared/VersionNumber.d.ts.map +0 -1
- package/dist/src/components/shared/VersionNumber.js +0 -10
- package/dist/src/components/shared/VersionNumber.js.map +0 -1
- package/dist/src/components/shared/Video.d.ts +0 -6
- package/dist/src/components/shared/Video.d.ts.map +0 -1
- package/dist/src/components/shared/Video.js +0 -22
- package/dist/src/components/shared/Video.js.map +0 -1
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts +0 -8
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts.map +0 -1
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.js +0 -4
- package/dist/src/components/shared/internal/AttachmentLinkAnchor.js.map +0 -1
- package/dist/src/components/shared/internal/AudioPlaybackError.d.ts +0 -8
- package/dist/src/components/shared/internal/AudioPlaybackError.d.ts.map +0 -1
- package/dist/src/components/shared/internal/AudioPlaybackError.js +0 -17
- package/dist/src/components/shared/internal/AudioPlaybackError.js.map +0 -1
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts +0 -18
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts.map +0 -1
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.js +0 -21
- package/dist/src/components/shared/internal/ResponsiveMediaContainer.js.map +0 -1
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts +0 -12
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts.map +0 -1
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.js +0 -46
- package/dist/src/components/shared/internal/RestrictedAudioPlayer.js.map +0 -1
- package/dist/src/components/surround.d.ts +0 -8
- package/dist/src/components/surround.d.ts.map +0 -1
- package/dist/src/components/surround.js +0 -19
- package/dist/src/components/surround.js.map +0 -1
- package/dist/src/createRenderChildNodes.d.ts +0 -17
- package/dist/src/createRenderChildNodes.d.ts.map +0 -1
- package/dist/src/createRenderChildNodes.js +0 -64
- package/dist/src/createRenderChildNodes.js.map +0 -1
- package/dist/src/dom-utils.d.ts +0 -20
- package/dist/src/dom-utils.d.ts.map +0 -1
- package/dist/src/dom-utils.js +0 -164
- package/dist/src/dom-utils.js.map +0 -1
- package/dist/src/fonts.d.ts +0 -5
- package/dist/src/fonts.d.ts.map +0 -1
- package/dist/src/fonts.js +0 -16
- package/dist/src/fonts.js.map +0 -1
- package/dist/src/formatting.d.ts +0 -2
- package/dist/src/formatting.d.ts.map +0 -1
- package/dist/src/formatting.js +0 -4
- package/dist/src/formatting.js.map +0 -1
- package/dist/src/getDisplayName.d.ts +0 -4
- package/dist/src/getDisplayName.d.ts.map +0 -1
- package/dist/src/getDisplayName.js +0 -5
- package/dist/src/getDisplayName.js.map +0 -1
- package/dist/src/i18n/A_E.d.ts +0 -3
- package/dist/src/i18n/A_E.d.ts.map +0 -1
- package/dist/src/i18n/A_E.js +0 -8
- package/dist/src/i18n/A_E.js.map +0 -1
- package/dist/src/i18n/BA.d.ts +0 -3
- package/dist/src/i18n/BA.d.ts.map +0 -1
- package/dist/src/i18n/BA.js +0 -11
- package/dist/src/i18n/BA.js.map +0 -1
- package/dist/src/i18n/CA.d.ts +0 -3
- package/dist/src/i18n/CA.d.ts.map +0 -1
- package/dist/src/i18n/CA.js +0 -11
- package/dist/src/i18n/CA.js.map +0 -1
- package/dist/src/i18n/EA.d.ts +0 -3
- package/dist/src/i18n/EA.d.ts.map +0 -1
- package/dist/src/i18n/EA.js +0 -16
- package/dist/src/i18n/EA.js.map +0 -1
- package/dist/src/i18n/FA.d.ts +0 -3
- package/dist/src/i18n/FA.d.ts.map +0 -1
- package/dist/src/i18n/FA.js +0 -17
- package/dist/src/i18n/FA.js.map +0 -1
- package/dist/src/i18n/GC.d.ts +0 -3
- package/dist/src/i18n/GC.d.ts.map +0 -1
- package/dist/src/i18n/GC.js +0 -16
- package/dist/src/i18n/GC.js.map +0 -1
- package/dist/src/i18n/I.d.ts +0 -3
- package/dist/src/i18n/I.d.ts.map +0 -1
- package/dist/src/i18n/I.js +0 -21
- package/dist/src/i18n/I.js.map +0 -1
- package/dist/src/i18n/M.d.ts +0 -3
- package/dist/src/i18n/M.d.ts.map +0 -1
- package/dist/src/i18n/M.js +0 -4
- package/dist/src/i18n/M.js.map +0 -1
- package/dist/src/i18n/O_E.d.ts +0 -3
- package/dist/src/i18n/O_E.d.ts.map +0 -1
- package/dist/src/i18n/O_E.js +0 -7
- package/dist/src/i18n/O_E.js.map +0 -1
- package/dist/src/i18n/PA.d.ts +0 -3
- package/dist/src/i18n/PA.d.ts.map +0 -1
- package/dist/src/i18n/PA.js +0 -16
- package/dist/src/i18n/PA.js.map +0 -1
- package/dist/src/i18n/SA.d.ts +0 -3
- package/dist/src/i18n/SA.d.ts.map +0 -1
- package/dist/src/i18n/SA.js +0 -16
- package/dist/src/i18n/SA.js.map +0 -1
- package/dist/src/i18n/TC.d.ts +0 -3
- package/dist/src/i18n/TC.d.ts.map +0 -1
- package/dist/src/i18n/TC.js +0 -16
- package/dist/src/i18n/TC.js.map +0 -1
- package/dist/src/i18n/VA.d.ts +0 -3
- package/dist/src/i18n/VA.d.ts.map +0 -1
- package/dist/src/i18n/VA.js +0 -16
- package/dist/src/i18n/VA.js.map +0 -1
- package/dist/src/i18n/Z.d.ts +0 -3
- package/dist/src/i18n/Z.d.ts.map +0 -1
- package/dist/src/i18n/Z.js +0 -22
- package/dist/src/i18n/Z.js.map +0 -1
- package/dist/src/i18n/fi-FI.d.ts +0 -192
- package/dist/src/i18n/fi-FI.d.ts.map +0 -1
- package/dist/src/i18n/fi-FI.js +0 -182
- package/dist/src/i18n/fi-FI.js.map +0 -1
- package/dist/src/i18n/index.d.ts +0 -20
- package/dist/src/i18n/index.d.ts.map +0 -1
- package/dist/src/i18n/index.js +0 -128
- package/dist/src/i18n/index.js.map +0 -1
- package/dist/src/i18n/sv-FI.d.ts +0 -3
- package/dist/src/i18n/sv-FI.d.ts.map +0 -1
- package/dist/src/i18n/sv-FI.js +0 -181
- package/dist/src/i18n/sv-FI.js.map +0 -1
- package/dist/src/ids.d.ts +0 -14
- package/dist/src/ids.d.ts.map +0 -1
- package/dist/src/ids.js +0 -28
- package/dist/src/ids.js.map +0 -1
- package/dist/src/index.d.ts +0 -19
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -12
- package/dist/src/index.js.map +0 -1
- package/dist/src/parser/parseExam.d.ts +0 -2
- package/dist/src/parser/parseExam.d.ts.map +0 -1
- package/dist/src/parser/parseExam.js +0 -54
- package/dist/src/parser/parseExam.js.map +0 -1
- package/dist/src/parser/parseExamStructure.d.ts +0 -58
- package/dist/src/parser/parseExamStructure.d.ts.map +0 -1
- package/dist/src/parser/parseExamStructure.js +0 -40
- package/dist/src/parser/parseExamStructure.js.map +0 -1
- package/dist/src/renderAnnotations.d.ts +0 -7
- package/dist/src/renderAnnotations.d.ts.map +0 -1
- package/dist/src/renderAnnotations.js +0 -193
- package/dist/src/renderAnnotations.js.map +0 -1
- package/dist/src/scrollToHash.d.ts +0 -2
- package/dist/src/scrollToHash.d.ts.map +0 -1
- package/dist/src/scrollToHash.js +0 -24
- package/dist/src/scrollToHash.js.map +0 -1
- package/dist/src/shortDisplayNumber.d.ts +0 -2
- package/dist/src/shortDisplayNumber.d.ts.map +0 -1
- package/dist/src/shortDisplayNumber.js +0 -5
- package/dist/src/shortDisplayNumber.js.map +0 -1
- package/dist/src/store/answers/actions.d.ts +0 -33
- package/dist/src/store/answers/actions.d.ts.map +0 -1
- package/dist/src/store/answers/actions.js +0 -9
- package/dist/src/store/answers/actions.js.map +0 -1
- package/dist/src/store/answers/reducer.d.ts +0 -39
- package/dist/src/store/answers/reducer.d.ts.map +0 -1
- package/dist/src/store/answers/reducer.js +0 -55
- package/dist/src/store/answers/reducer.js.map +0 -1
- package/dist/src/store/answers/sagas.d.ts +0 -8
- package/dist/src/store/answers/sagas.d.ts.map +0 -1
- package/dist/src/store/answers/sagas.js +0 -60
- package/dist/src/store/answers/sagas.js.map +0 -1
- package/dist/src/store/audio/actions.d.ts +0 -29
- package/dist/src/store/audio/actions.d.ts.map +0 -1
- package/dist/src/store/audio/actions.js +0 -9
- package/dist/src/store/audio/actions.js.map +0 -1
- package/dist/src/store/audio/reducer.d.ts +0 -27
- package/dist/src/store/audio/reducer.d.ts.map +0 -1
- package/dist/src/store/audio/reducer.js +0 -55
- package/dist/src/store/audio/reducer.js.map +0 -1
- package/dist/src/store/audio/sagas.d.ts +0 -3
- package/dist/src/store/audio/sagas.d.ts.map +0 -1
- package/dist/src/store/audio/sagas.js +0 -68
- package/dist/src/store/audio/sagas.js.map +0 -1
- package/dist/src/store/cas/actions.d.ts +0 -19
- package/dist/src/store/cas/actions.d.ts.map +0 -1
- package/dist/src/store/cas/actions.js +0 -9
- package/dist/src/store/cas/actions.js.map +0 -1
- package/dist/src/store/cas/reducer.d.ts +0 -14
- package/dist/src/store/cas/reducer.d.ts.map +0 -1
- package/dist/src/store/cas/reducer.js +0 -24
- package/dist/src/store/cas/reducer.js.map +0 -1
- package/dist/src/store/cas/sagas.d.ts +0 -18
- package/dist/src/store/cas/sagas.d.ts.map +0 -1
- package/dist/src/store/cas/sagas.js +0 -36
- package/dist/src/store/cas/sagas.js.map +0 -1
- package/dist/src/store/countdown.d.ts +0 -4
- package/dist/src/store/countdown.d.ts.map +0 -1
- package/dist/src/store/countdown.js +0 -33
- package/dist/src/store/countdown.js.map +0 -1
- package/dist/src/store/index.d.ts +0 -78
- package/dist/src/store/index.d.ts.map +0 -1
- package/dist/src/store/index.js +0 -53
- package/dist/src/store/index.js.map +0 -1
- package/dist/src/store/selectors.d.ts +0 -9
- package/dist/src/store/selectors.d.ts.map +0 -1
- package/dist/src/store/selectors.js +0 -35
- package/dist/src/store/selectors.js.map +0 -1
- package/dist/src/types/ExamAnswer.d.ts +0 -22
- package/dist/src/types/ExamAnswer.d.ts.map +0 -1
- package/dist/src/types/ExamAnswer.js +0 -2
- package/dist/src/types/ExamAnswer.js.map +0 -1
- package/dist/src/types/ExamServerAPI.d.ts +0 -78
- package/dist/src/types/ExamServerAPI.d.ts.map +0 -1
- package/dist/src/types/ExamServerAPI.js +0 -2
- package/dist/src/types/ExamServerAPI.js.map +0 -1
- package/dist/src/types/GradingStructure.d.ts +0 -40
- package/dist/src/types/GradingStructure.d.ts.map +0 -1
- package/dist/src/types/GradingStructure.js +0 -2
- package/dist/src/types/GradingStructure.js.map +0 -1
- package/dist/src/types/Score.d.ts +0 -92
- package/dist/src/types/Score.d.ts.map +0 -1
- package/dist/src/types/Score.js +0 -2
- package/dist/src/types/Score.js.map +0 -1
- package/dist/src/url.d.ts +0 -7
- package/dist/src/url.d.ts.map +0 -1
- package/dist/src/url.js +0 -12
- package/dist/src/url.js.map +0 -1
- package/dist/src/useCached.d.ts +0 -3
- package/dist/src/useCached.d.ts.map +0 -1
- package/dist/src/useCached.js +0 -6
- package/dist/src/useCached.js.map +0 -1
- package/dist/src/utils.d.ts +0 -15
- package/dist/src/utils.d.ts.map +0 -1
- package/dist/src/utils.js +0 -35
- package/dist/src/utils.js.map +0 -1
- package/dist/src/validateAnswers.d.ts +0 -16
- package/dist/src/validateAnswers.d.ts.map +0 -1
- package/dist/src/validateAnswers.js +0 -89
- package/dist/src/validateAnswers.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.test.d.ts","sourceRoot":"","sources":["../../../__tests__/playwright/DNDAnswerContainer.test.tsx"],"names":[],"mappings":""}
|
@@ -0,0 +1,77 @@
|
|
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 fs_1 = require("fs");
|
8
|
+
const path_1 = __importDefault(require("path"));
|
9
|
+
const experimental_ct_react_1 = require("@playwright/experimental-ct-react");
|
10
|
+
const exam_engine_exams_1 = require("@digabi/exam-engine-exams");
|
11
|
+
const exam_engine_mastering_1 = require("@digabi/exam-engine-mastering");
|
12
|
+
const DNDAnswerContainer_story_1 = require("./stories/DNDAnswerContainer.story");
|
13
|
+
experimental_ct_react_1.test.describe('DNDAnswerContainer', () => {
|
14
|
+
let masteredExam;
|
15
|
+
experimental_ct_react_1.test.beforeAll(async () => {
|
16
|
+
masteredExam = await setupMasteredExam();
|
17
|
+
});
|
18
|
+
for (const answerMediaType of ['text', 'image']) {
|
19
|
+
(0, experimental_ct_react_1.test)(`Connect - basic drag and drop functionality for ${answerMediaType} answers`, async ({ mount }) => {
|
20
|
+
const component = await mount(react_1.default.createElement(DNDAnswerContainer_story_1.DNDAnswerContainerStory, { masteredExam: masteredExam, answerMediaType: answerMediaType }));
|
21
|
+
const { answerContainer, answerOptionsLocator, firstAnswerLocator, secondAnswerLocator, firstAnswerContent, secondAnswerContent } = await setupAnswerContext(component, answerMediaType);
|
22
|
+
await experimental_ct_react_1.test.step('Drag first answer to answer container', async () => {
|
23
|
+
const draggableLocator = firstAnswerLocator.locator('.drag-handle');
|
24
|
+
await draggableLocator.dragTo(answerContainer);
|
25
|
+
await assertContentMatches(answerContainer, firstAnswerContent, answerMediaType);
|
26
|
+
});
|
27
|
+
await experimental_ct_react_1.test.step('Replace first answer with second answer in answer container', async () => {
|
28
|
+
const draggableLocator = secondAnswerLocator.locator('.drag-handle');
|
29
|
+
await draggableLocator.dragTo(answerContainer);
|
30
|
+
await assertContentMatches(answerContainer, secondAnswerContent, answerMediaType);
|
31
|
+
});
|
32
|
+
await experimental_ct_react_1.test.step('Drag second answer back to options', async () => {
|
33
|
+
const draggableLocator = answerContainer.locator('.drag-handle');
|
34
|
+
await draggableLocator.dragTo(answerOptionsLocator);
|
35
|
+
await (0, experimental_ct_react_1.expect)(answerContainer).toContainText('Ei vastausta');
|
36
|
+
});
|
37
|
+
});
|
38
|
+
}
|
39
|
+
});
|
40
|
+
async function setupMasteredExam() {
|
41
|
+
const examPath = (0, exam_engine_exams_1.resolveExam)('SC/SC.xml');
|
42
|
+
const resolveAttachment = (filename) => path_1.default.resolve(path_1.default.dirname(examPath), 'attachments', filename);
|
43
|
+
const examXml = (0, fs_1.readFileSync)(examPath, 'utf-8');
|
44
|
+
const [masteredExam] = await (0, exam_engine_mastering_1.masterExam)(examXml, () => '', (0, exam_engine_mastering_1.getMediaMetadataFromLocalFile)(resolveAttachment), {
|
45
|
+
removeCorrectAnswers: true
|
46
|
+
});
|
47
|
+
return masteredExam;
|
48
|
+
}
|
49
|
+
async function assertContentMatches(answerContainer, content, mediaType) {
|
50
|
+
if (mediaType === 'text') {
|
51
|
+
await (0, experimental_ct_react_1.expect)(answerContainer).toContainText(content);
|
52
|
+
}
|
53
|
+
else if (mediaType === 'image') {
|
54
|
+
await (0, experimental_ct_react_1.expect)(answerContainer.locator('img')).toHaveAttribute('src', content);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
async function setupAnswerContext(component, answerMediaType) {
|
58
|
+
const answerContainer = component.getByTestId('dnd-droppable').first();
|
59
|
+
const answerOptionsLocator = component.getByTestId('dnd-droppable').last();
|
60
|
+
const firstAnswerLocator = component.getByTestId('dnd-answer-option').nth(0);
|
61
|
+
const secondAnswerLocator = component.getByTestId('dnd-answer-option').nth(1);
|
62
|
+
const firstAnswerContent = answerMediaType === 'text'
|
63
|
+
? await firstAnswerLocator.textContent()
|
64
|
+
: await firstAnswerLocator.locator('img').getAttribute('src');
|
65
|
+
const secondAnswerContent = answerMediaType === 'text'
|
66
|
+
? await secondAnswerLocator.textContent()
|
67
|
+
: await secondAnswerLocator.locator('img').getAttribute('src');
|
68
|
+
return {
|
69
|
+
answerContainer,
|
70
|
+
answerOptionsLocator,
|
71
|
+
firstAnswerLocator,
|
72
|
+
secondAnswerLocator,
|
73
|
+
firstAnswerContent: firstAnswerContent,
|
74
|
+
secondAnswerContent: secondAnswerContent
|
75
|
+
};
|
76
|
+
}
|
77
|
+
//# sourceMappingURL=DNDAnswerContainer.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.test.js","sourceRoot":"","sources":["../../../__tests__/playwright/DNDAnswerContainer.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2BAAiC;AACjC,gDAAuB;AACvB,6EAAgE;AAEhE,iEAAuD;AACvD,yEAA0G;AAC1G,iFAA4E;AAE5E,4BAAI,CAAC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACvC,IAAI,YAA6B,CAAA;IAEjC,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,iBAAiB,EAAE,CAAA;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AAC,eAAe,CAAC,CAAC,KAAK,EAAE,CAAA;IACtE,MAAM,oBAAoB,GAAG,SAAS,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,IAAI,EAAE,CAAA;IAC1E,MAAM,kBAAkB,GAAG,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAC5E,MAAM,mBAAmB,GAAG,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAE7E,MAAM,kBAAkB,GACtB,eAAe,KAAK,MAAM;QACxB,CAAC,CAAC,MAAM,kBAAkB,CAAC,WAAW,EAAE;QACxC,CAAC,CAAC,MAAM,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IAEjE,MAAM,mBAAmB,GACvB,eAAe,KAAK,MAAM;QACxB,CAAC,CAAC,MAAM,mBAAmB,CAAC,WAAW,EAAE;QACzC,CAAC,CAAC,MAAM,mBAAmB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;IAElE,OAAO;QACL,eAAe;QACf,oBAAoB;QACpB,kBAAkB;QAClB,mBAAmB;QACnB,kBAAkB,EAAE,kBAA4B;QAChD,mBAAmB,EAAE,mBAA6B;KACnD,CAAA;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.test.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/exam/DNDAnswerContainer.test.tsx"],"names":[],"mappings":""}
|
@@ -0,0 +1,77 @@
|
|
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 fs_1 = require("fs");
|
8
|
+
const path_1 = __importDefault(require("path"));
|
9
|
+
const experimental_ct_react_1 = require("@playwright/experimental-ct-react");
|
10
|
+
const exam_engine_exams_1 = require("@digabi/exam-engine-exams");
|
11
|
+
const exam_engine_mastering_1 = require("@digabi/exam-engine-mastering");
|
12
|
+
const DNDAnswerContainer_story_1 = require("../stories/exam/DNDAnswerContainer.story");
|
13
|
+
experimental_ct_react_1.test.describe('DNDAnswerContainer', () => {
|
14
|
+
let masteredExam;
|
15
|
+
experimental_ct_react_1.test.beforeAll(async () => {
|
16
|
+
masteredExam = await setupMasteredExam();
|
17
|
+
});
|
18
|
+
for (const answerMediaType of ['text', 'image']) {
|
19
|
+
(0, experimental_ct_react_1.test)(`Connect - basic drag and drop functionality for ${answerMediaType} answers`, async ({ mount }) => {
|
20
|
+
const component = await mount(react_1.default.createElement(DNDAnswerContainer_story_1.DNDAnswerContainerStory, { masteredExam: masteredExam, answerMediaType: answerMediaType }));
|
21
|
+
const { answerContainer, answerOptionsLocator, firstAnswerLocator, secondAnswerLocator, firstAnswerContent, secondAnswerContent } = await setupAnswerContext(component, answerMediaType);
|
22
|
+
await experimental_ct_react_1.test.step('Drag first answer to answer container', async () => {
|
23
|
+
const draggableLocator = firstAnswerLocator.locator('.drag-handle');
|
24
|
+
await draggableLocator.dragTo(answerContainer);
|
25
|
+
await assertContentMatches(answerContainer, firstAnswerContent, answerMediaType);
|
26
|
+
});
|
27
|
+
await experimental_ct_react_1.test.step('Replace first answer with second answer in answer container', async () => {
|
28
|
+
const draggableLocator = secondAnswerLocator.locator('.drag-handle');
|
29
|
+
await draggableLocator.dragTo(answerContainer);
|
30
|
+
await assertContentMatches(answerContainer, secondAnswerContent, answerMediaType);
|
31
|
+
});
|
32
|
+
await experimental_ct_react_1.test.step('Drag second answer back to options', async () => {
|
33
|
+
const draggableLocator = answerContainer.locator('.drag-handle');
|
34
|
+
await draggableLocator.dragTo(answerOptionsLocator);
|
35
|
+
await (0, experimental_ct_react_1.expect)(answerContainer).toContainText('Ei vastausta');
|
36
|
+
});
|
37
|
+
});
|
38
|
+
}
|
39
|
+
});
|
40
|
+
async function setupMasteredExam() {
|
41
|
+
const examPath = (0, exam_engine_exams_1.resolveExam)('SC/SC.xml');
|
42
|
+
const resolveAttachment = (filename) => path_1.default.resolve(path_1.default.dirname(examPath), 'attachments', filename);
|
43
|
+
const examXml = (0, fs_1.readFileSync)(examPath, 'utf-8');
|
44
|
+
const [masteredExam] = await (0, exam_engine_mastering_1.masterExam)(examXml, () => '', (0, exam_engine_mastering_1.getMediaMetadataFromLocalFile)(resolveAttachment), {
|
45
|
+
removeCorrectAnswers: true
|
46
|
+
});
|
47
|
+
return masteredExam;
|
48
|
+
}
|
49
|
+
async function assertContentMatches(answerContainer, content, mediaType) {
|
50
|
+
if (mediaType === 'text') {
|
51
|
+
await (0, experimental_ct_react_1.expect)(answerContainer).toContainText(content);
|
52
|
+
}
|
53
|
+
else if (mediaType === 'image') {
|
54
|
+
await (0, experimental_ct_react_1.expect)(answerContainer.locator('img')).toHaveAttribute('src', content);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
async function setupAnswerContext(component, answerMediaType) {
|
58
|
+
const answerContainer = component.getByTestId('dnd-droppable').first();
|
59
|
+
const answerOptionsLocator = component.getByTestId('dnd-droppable').last();
|
60
|
+
const firstAnswerLocator = component.getByTestId('dnd-answer-option').nth(0);
|
61
|
+
const secondAnswerLocator = component.getByTestId('dnd-answer-option').nth(1);
|
62
|
+
const firstAnswerContent = answerMediaType === 'text'
|
63
|
+
? await firstAnswerLocator.textContent()
|
64
|
+
: await firstAnswerLocator.locator('img').getAttribute('src');
|
65
|
+
const secondAnswerContent = answerMediaType === 'text'
|
66
|
+
? await secondAnswerLocator.textContent()
|
67
|
+
: await secondAnswerLocator.locator('img').getAttribute('src');
|
68
|
+
return {
|
69
|
+
answerContainer,
|
70
|
+
answerOptionsLocator,
|
71
|
+
firstAnswerLocator,
|
72
|
+
secondAnswerLocator,
|
73
|
+
firstAnswerContent: firstAnswerContent,
|
74
|
+
secondAnswerContent: secondAnswerContent
|
75
|
+
};
|
76
|
+
}
|
77
|
+
//# sourceMappingURL=DNDAnswerContainer.test.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.test.js","sourceRoot":"","sources":["../../../../__tests__/playwright/exam/DNDAnswerContainer.test.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,2BAAiC;AACjC,gDAAuB;AACvB,6EAAgE;AAEhE,iEAAuD;AACvD,yEAA0G;AAC1G,uFAAkF;AAElF,4BAAI,CAAC,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;IACvC,IAAI,YAA6B,CAAA;IAEjC,4BAAI,CAAC,SAAS,CAAC,KAAK,IAAI,EAAE;QACxB,YAAY,GAAG,MAAM,iBAAiB,EAAE,CAAA;IAC1C,CAAC,CAAC,CAAA;IAEF,KAAK,MAAM,eAAe,IAAI,CAAC,MAAM,EAAE,OAAO,CAAU,EAAE,CAAC;QACzD,IAAA,4BAAI,EAAC,mDAAmD,eAAe,UAAU,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;YACrG,MAAM,SAAS,GAAG,MAAM,KAAK,CAC3B,8BAAC,kDAAuB,IAAC,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,eAAe,GAAI,CAC1F,CAAA;YACD,MAAM,EACJ,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACpB,GAAG,MAAM,kBAAkB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;YAExD,MAAM,4BAAI,CAAC,IAAI,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;gBAClE,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAA;gBACnE,MAAM,gBAAgB,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;gBAC9C,MAAM,oBAAoB,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,CAAC,KAAK,CAAC,CAAA;IAElE,OAAO;QACL,eAAe;QACf,oBAAoB;QACpB,kBAAkB;QAClB,mBAAmB;QACnB,kBAAkB,EAAE,kBAA4B;QAChD,mBAAmB,EAAE,mBAA6B;KACnD,CAAA;AACH,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MasteringResult } from '@digabi/exam-engine-mastering';
|
3
|
+
export type answerMediaType = 'text' | 'image';
|
4
|
+
interface DNDAnswerContainerStoryProps {
|
5
|
+
masteredExam: MasteringResult;
|
6
|
+
answerMediaType: answerMediaType;
|
7
|
+
}
|
8
|
+
export declare const DNDAnswerContainerStory: React.FC<DNDAnswerContainerStoryProps>;
|
9
|
+
export {};
|
10
|
+
//# sourceMappingURL=DNDAnswerContainer.story.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.story.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/DNDAnswerContainer.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAO/D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9C,UAAU,4BAA4B;IACpC,YAAY,EAAE,eAAe,CAAA;IAC7B,eAAe,EAAE,eAAe,CAAA;CACjC;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAc1E,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
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.DNDAnswerContainerStory = void 0;
|
7
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
8
|
+
const react_1 = __importDefault(require("react"));
|
9
|
+
const Exam_1 = require("../../../src/components/exam/Exam");
|
10
|
+
const DNDAnswerContainer_1 = require("../../../src/components/exam/DNDAnswerContainer");
|
11
|
+
const ComponentWrapper_1 = require("../utils/ComponentWrapper");
|
12
|
+
const parseExam_1 = __importDefault(require("../../../src/parser/parseExam"));
|
13
|
+
const dom_utils_1 = require("../../../src/dom-utils");
|
14
|
+
const DNDAnswerContainerStory = ({ masteredExam, answerMediaType }) => {
|
15
|
+
const doc = (0, parseExam_1.default)(masteredExam.xml, true);
|
16
|
+
const [textAnswers, imageAnswers] = (0, dom_utils_1.queryAll)(doc.documentElement, 'dnd-answer-container');
|
17
|
+
return (react_1.default.createElement(ComponentWrapper_1.ComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
|
18
|
+
react_1.default.createElement(DNDAnswerContainer_1.DNDAnswerContainer, { element: answerMediaType === 'text' ? textAnswers : imageAnswers, renderChildNodes: Exam_1.renderChildNodes })));
|
19
|
+
};
|
20
|
+
exports.DNDAnswerContainerStory = DNDAnswerContainerStory;
|
21
|
+
//# sourceMappingURL=DNDAnswerContainer.story.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.story.js","sourceRoot":"","sources":["../../../../__tests__/playwright/stories/DNDAnswerContainer.story.tsx"],"names":[],"mappings":";;;;;;AAAA,4DAA4D;AAC5D,kDAAyB;AAEzB,4DAAoE;AACpE,wFAAoF;AACpF,gEAA4D;AAC5D,8EAAqD;AACrD,sDAAiD;AAS1C,MAAM,uBAAuB,GAA2C,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,EAAE;IACnH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAA;IACzF,OAAO,CACL,8BAAC,mCAAgB,IACf,GAAG,EAAE,GAAG,EACR,iBAAiB,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,IAAI,YAAY,CAAC,QAAQ,gBAAgB,QAAQ,EAAE;QAE5F,8BAAC,uCAAkB,IACjB,OAAO,EAAE,eAAe,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,EAChE,gBAAgB,EAAE,uBAAgB,GACd,CACL,CACpB,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,uBAAuB,2BAcnC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { MasteringResult } from '@digabi/exam-engine-mastering';
|
3
|
+
export type answerMediaType = 'text' | 'image';
|
4
|
+
interface DNDAnswerContainerStoryProps {
|
5
|
+
masteredExam: MasteringResult;
|
6
|
+
answerMediaType: answerMediaType;
|
7
|
+
}
|
8
|
+
export declare const DNDAnswerContainerStory: React.FC<DNDAnswerContainerStoryProps>;
|
9
|
+
export {};
|
10
|
+
//# sourceMappingURL=DNDAnswerContainer.story.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.story.d.ts","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/DNDAnswerContainer.story.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AAO/D,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,CAAA;AAE9C,UAAU,4BAA4B;IACpC,YAAY,EAAE,eAAe,CAAA;IAC7B,eAAe,EAAE,eAAe,CAAA;CACjC;AAED,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAc1E,CAAA"}
|
@@ -0,0 +1,21 @@
|
|
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.DNDAnswerContainerStory = void 0;
|
7
|
+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
|
8
|
+
const react_1 = __importDefault(require("react"));
|
9
|
+
const Exam_1 = require("../../../../src/components/exam/Exam");
|
10
|
+
const DNDAnswerContainer_1 = require("../../../../src/components/exam/DNDAnswerContainer");
|
11
|
+
const ExamComponentWrapper_1 = require("../../utils/ExamComponentWrapper");
|
12
|
+
const parseExam_1 = __importDefault(require("../../../../src/parser/parseExam"));
|
13
|
+
const dom_utils_1 = require("../../../../src/dom-utils");
|
14
|
+
const DNDAnswerContainerStory = ({ masteredExam, answerMediaType }) => {
|
15
|
+
const doc = (0, parseExam_1.default)(masteredExam.xml, true);
|
16
|
+
const [textAnswers, imageAnswers] = (0, dom_utils_1.queryAll)(doc.documentElement, 'dnd-answer-container');
|
17
|
+
return (react_1.default.createElement(ExamComponentWrapper_1.ExamComponentWrapper, { doc: doc, resolveAttachment: (filename) => `/${masteredExam.examCode}/attachments/${filename}` },
|
18
|
+
react_1.default.createElement(DNDAnswerContainer_1.DNDAnswerContainer, { element: answerMediaType === 'text' ? textAnswers : imageAnswers, renderChildNodes: Exam_1.renderChildNodes })));
|
19
|
+
};
|
20
|
+
exports.DNDAnswerContainerStory = DNDAnswerContainerStory;
|
21
|
+
//# sourceMappingURL=DNDAnswerContainer.story.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DNDAnswerContainer.story.js","sourceRoot":"","sources":["../../../../../__tests__/playwright/stories/exam/DNDAnswerContainer.story.tsx"],"names":[],"mappings":";;;;;;AAAA,4DAA4D;AAC5D,kDAAyB;AAEzB,+DAAuE;AACvE,2FAAuF;AACvF,2EAAuE;AACvE,iFAAwD;AACxD,yDAAoD;AAS7C,MAAM,uBAAuB,GAA2C,CAAC,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,EAAE;IACnH,MAAM,GAAG,GAAG,IAAA,mBAAS,EAAC,YAAY,CAAC,GAAG,EAAE,IAAI,CAAC,CAAA;IAC7C,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,IAAA,oBAAQ,EAAC,GAAG,CAAC,eAAe,EAAE,sBAAsB,CAAC,CAAA;IACzF,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,OAAO,EAAE,eAAe,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,YAAY,EAChE,gBAAgB,EAAE,uBAAgB,GACd,CACD,CACxB,CAAA;AACH,CAAC,CAAA;AAdY,QAAA,uBAAuB,2BAcnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/template/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/template/index.tsx"],"names":[],"mappings":""}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
"use strict";
|
2
|
-
|
3
|
-
|
2
|
+
// Note: this file needs to be here to be able to run the tests without errors.
|
3
|
+
// Import styles, initialize component theme here.
|
4
|
+
// import '../src/common.css';
|
4
5
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../__tests__/playwright/template/index.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../__tests__/playwright/template/index.tsx"],"names":[],"mappings":";AAAA,+EAA+E;AAE/E,kDAAkD;AAClD,8BAA8B"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { CommonExamProps } from '../../../src/components/exam/Exam';
|
3
|
+
import '../../../src/css/main.less';
|
4
|
+
export interface ComponentWrapperProps extends CommonExamProps {
|
5
|
+
doc: XMLDocument;
|
6
|
+
children: React.ReactElement;
|
7
|
+
}
|
8
|
+
export declare const ComponentWrapper: React.ComponentType<any>;
|
9
|
+
//# sourceMappingURL=ComponentWrapper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ComponentWrapper.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/utils/ComponentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,4BAA4B,CAAA;AAEnC,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,GAAG,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAC7B;AAeD,eAAO,MAAM,gBAAgB,0BAA2D,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
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.ComponentWrapper = void 0;
|
7
|
+
const react_1 = __importDefault(require("react"));
|
8
|
+
const react_redux_1 = require("react-redux");
|
9
|
+
const react_i18next_1 = require("react-i18next");
|
10
|
+
const store_1 = require("../../../src/store");
|
11
|
+
const parseExamStructure_1 = require("../../../src/parser/parseExamStructure");
|
12
|
+
const useCached_1 = require("../../../src/useCached");
|
13
|
+
const examServerApi_1 = require("../../examServerApi");
|
14
|
+
const i18n_1 = require("../../../src/i18n");
|
15
|
+
const CommonExamContext_1 = require("../../../src/components/context/CommonExamContext");
|
16
|
+
const ExamContext_1 = require("../../../src/components/context/ExamContext");
|
17
|
+
require("../../../src/css/main.less");
|
18
|
+
const WrappedComponent = ({ doc, children }) => {
|
19
|
+
const i18n = (0, useCached_1.useCached)(() => (0, i18n_1.initI18n)('fi-FI'));
|
20
|
+
const store = (0, useCached_1.useCached)(() => (0, store_1.initializeExamStore)((0, parseExamStructure_1.parseExamStructure)(doc), 'allowed', [], [], examServerApi_1.examServerApi));
|
21
|
+
return (react_1.default.createElement(react_redux_1.Provider, { store: store },
|
22
|
+
react_1.default.createElement(react_i18next_1.I18nextProvider, { i18n: i18n },
|
23
|
+
react_1.default.createElement("div", { className: "e-exam" }, children))));
|
24
|
+
};
|
25
|
+
exports.ComponentWrapper = (0, ExamContext_1.withExamContext)((0, CommonExamContext_1.withCommonExamContext)(WrappedComponent));
|
26
|
+
//# sourceMappingURL=ComponentWrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ComponentWrapper.js","sourceRoot":"","sources":["../../../../__tests__/playwright/utils/ComponentWrapper.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,6CAAsC;AACtC,iDAA+C;AAC/C,8CAAwD;AACxD,+EAA2E;AAC3E,sDAAkD;AAClD,uDAAmD;AACnD,4CAA4C;AAC5C,yFAAyF;AACzF,6EAA6E;AAE7E,sCAAmC;AAOnC,MAAM,gBAAgB,GAAoC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9E,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,CAAC,IAAA,eAAQ,EAAC,OAAO,CAAC,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,IAAA,uCAAkB,EAAC,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,6BAAa,CAAC,CAAC,CAAA;IAE7G,OAAO,CACL,8BAAC,sBAAQ,IAAC,KAAK,EAAE,KAAK;QACpB,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI;YACzB,uCAAK,SAAS,EAAC,QAAQ,IAAE,QAAQ,CAAO,CACxB,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAEY,QAAA,gBAAgB,GAAG,IAAA,6BAAe,EAAC,IAAA,yCAAqB,EAAC,gBAAgB,CAAC,CAAC,CAAA"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { CommonExamProps } from '../../../src/components/exam/Exam';
|
3
|
+
import '../../../src/css/main.less';
|
4
|
+
export interface ExamComponentWrapperProps extends CommonExamProps {
|
5
|
+
doc: XMLDocument;
|
6
|
+
children: React.ReactElement;
|
7
|
+
}
|
8
|
+
export declare const ExamComponentWrapper: React.ComponentType<any>;
|
9
|
+
//# sourceMappingURL=ExamComponentWrapper.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExamComponentWrapper.d.ts","sourceRoot":"","sources":["../../../../__tests__/playwright/utils/ExamComponentWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAUzB,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAA;AACnE,OAAO,4BAA4B,CAAA;AAEnC,MAAM,WAAW,yBAA0B,SAAQ,eAAe;IAChE,GAAG,EAAE,WAAW,CAAA;IAChB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAA;CAC7B;AAeD,eAAO,MAAM,oBAAoB,0BAA2D,CAAA"}
|
@@ -0,0 +1,26 @@
|
|
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.ExamComponentWrapper = void 0;
|
7
|
+
const react_1 = __importDefault(require("react"));
|
8
|
+
const react_redux_1 = require("react-redux");
|
9
|
+
const react_i18next_1 = require("react-i18next");
|
10
|
+
const store_1 = require("../../../src/store");
|
11
|
+
const parseExamStructure_1 = require("../../../src/parser/parseExamStructure");
|
12
|
+
const useCached_1 = require("../../../src/useCached");
|
13
|
+
const examServerApi_1 = require("../../examServerApi");
|
14
|
+
const i18n_1 = require("../../../src/i18n");
|
15
|
+
const CommonExamContext_1 = require("../../../src/components/context/CommonExamContext");
|
16
|
+
const ExamContext_1 = require("../../../src/components/context/ExamContext");
|
17
|
+
require("../../../src/css/main.less");
|
18
|
+
const WrappedComponent = ({ doc, children }) => {
|
19
|
+
const i18n = (0, useCached_1.useCached)(() => (0, i18n_1.initI18n)('fi-FI'));
|
20
|
+
const store = (0, useCached_1.useCached)(() => (0, store_1.initializeExamStore)((0, parseExamStructure_1.parseExamStructure)(doc), 'allowed', [], [], examServerApi_1.examServerApi));
|
21
|
+
return (react_1.default.createElement(react_redux_1.Provider, { store: store },
|
22
|
+
react_1.default.createElement(react_i18next_1.I18nextProvider, { i18n: i18n },
|
23
|
+
react_1.default.createElement("div", { className: "e-exam" }, children))));
|
24
|
+
};
|
25
|
+
exports.ExamComponentWrapper = (0, ExamContext_1.withExamContext)((0, CommonExamContext_1.withCommonExamContext)(WrappedComponent));
|
26
|
+
//# sourceMappingURL=ExamComponentWrapper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"ExamComponentWrapper.js","sourceRoot":"","sources":["../../../../__tests__/playwright/utils/ExamComponentWrapper.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AACzB,6CAAsC;AACtC,iDAA+C;AAC/C,8CAAwD;AACxD,+EAA2E;AAC3E,sDAAkD;AAClD,uDAAmD;AACnD,4CAA4C;AAC5C,yFAAyF;AACzF,6EAA6E;AAE7E,sCAAmC;AAOnC,MAAM,gBAAgB,GAAwC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,EAAE,EAAE;IAClF,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,CAAC,IAAA,eAAQ,EAAC,OAAO,CAAC,CAAC,CAAA;IAC/C,MAAM,KAAK,GAAG,IAAA,qBAAS,EAAC,GAAG,EAAE,CAAC,IAAA,2BAAmB,EAAC,IAAA,uCAAkB,EAAC,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,6BAAa,CAAC,CAAC,CAAA;IAE7G,OAAO,CACL,8BAAC,sBAAQ,IAAC,KAAK,EAAE,KAAK;QACpB,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI;YACzB,uCAAK,SAAS,EAAC,QAAQ,IAAE,QAAQ,CAAO,CACxB,CACT,CACZ,CAAA;AACH,CAAC,CAAA;AAEY,QAAA,oBAAoB,GAAG,IAAA,6BAAe,EAAC,IAAA,yCAAqB,EAAC,gBAAgB,CAAC,CAAC,CAAA"}
|
@@ -145,7 +145,7 @@ describe(`Total score calculation for ${testExam}`, () => {
|
|
145
145
|
const choiceAnswer = {
|
146
146
|
type: 'choice',
|
147
147
|
questionId: 1,
|
148
|
-
value: '
|
148
|
+
value: '104',
|
149
149
|
displayNumber: '1.1'
|
150
150
|
};
|
151
151
|
expect((0, ResultsContext_1.calculateQuestionSumScore)(topLevelQuestions[0], result.gradingStructure, [], (0, lodash_es_1.keyBy)([choiceAnswer], 'questionId'))).toBe(3);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsContext.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsContext.test.tsx"],"names":[],"mappings":";;;;;AAAA,+FAAsE;AACtE,iEAAqD;AACrD,yEAA6F;AAC7F,2BAAmC;AACnC,yCAAiC;AAEjC,gFAAwH;AACxH,mDAA8C;AAE9C,MAAM,SAAS,GAAY;IACzB;QACE,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,CAAC;QACX,WAAW,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE;KAC1B;IACD;QACE,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,UAAU,EAAE;YACV,KAAK,EAAE,CAAC;SACT;QACD,SAA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