@digabi/exam-engine-core 19.12.1-alpha.2 → 19.12.1-beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. package/dist/__tests__/testExamRendering.js +2 -1
  2. package/dist/__tests__/testExamRendering.js.map +1 -1
  3. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  4. package/dist/assets/logo.png +0 -0
  5. package/dist/components/context/ResultsContext.js +1 -1
  6. package/dist/components/context/ResultsContext.js.map +1 -1
  7. package/dist/components/exam/StudentNameHeader.d.ts +8 -0
  8. package/dist/components/exam/StudentNameHeader.d.ts.map +1 -0
  9. package/dist/components/exam/StudentNameHeader.js +3 -0
  10. package/dist/components/exam/StudentNameHeader.js.map +1 -0
  11. package/dist/components/exam/UndoHistoryEntry.d.ts +19 -0
  12. package/dist/components/exam/UndoHistoryEntry.d.ts.map +1 -0
  13. package/dist/components/exam/UndoHistoryEntry.js +39 -0
  14. package/dist/components/exam/UndoHistoryEntry.js.map +1 -0
  15. package/dist/components/exam/UndoView.d.ts +35 -0
  16. package/dist/components/exam/UndoView.d.ts.map +1 -0
  17. package/dist/components/exam/UndoView.js +162 -0
  18. package/dist/components/exam/UndoView.js.map +1 -0
  19. package/dist/components/exam/internal/ErrorIndicator.js +1 -1
  20. package/dist/components/exam/internal/ErrorIndicator.js.map +1 -1
  21. package/dist/components/exam/undo-view.d.ts +36 -0
  22. package/dist/components/exam/undo-view.d.ts.map +1 -0
  23. package/dist/components/exam/undo-view.js +162 -0
  24. package/dist/components/exam/undo-view.js.map +1 -0
  25. package/dist/components/results/ChoiceAnswer.js +6 -5
  26. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  27. package/dist/components/results/DropdownAnswer.d.ts +1 -1
  28. package/dist/components/results/DropdownAnswer.d.ts.map +1 -1
  29. package/dist/components/results/DropdownAnswer.js +23 -23
  30. package/dist/components/results/DropdownAnswer.js.map +1 -1
  31. package/dist/components/results/MultiLineAnswer.d.ts.map +1 -1
  32. package/dist/components/results/MultiLineAnswer.js +4 -1
  33. package/dist/components/results/MultiLineAnswer.js.map +1 -1
  34. package/dist/components/results/Question.d.ts.map +1 -1
  35. package/dist/components/results/Question.js +5 -4
  36. package/dist/components/results/Question.js.map +1 -1
  37. package/dist/components/results/QuestionTitle.d.ts.map +1 -1
  38. package/dist/components/results/QuestionTitle.js +7 -2
  39. package/dist/components/results/QuestionTitle.js.map +1 -1
  40. package/dist/components/results/Results.d.ts +1 -0
  41. package/dist/components/results/Results.d.ts.map +1 -1
  42. package/dist/components/results/Results.js +23 -5
  43. package/dist/components/results/Results.js.map +1 -1
  44. package/dist/components/results/Section.d.ts.map +1 -1
  45. package/dist/components/results/Section.js +2 -9
  46. package/dist/components/results/Section.js.map +1 -1
  47. package/dist/components/results/SingleLineAnswer.d.ts.map +1 -1
  48. package/dist/components/results/SingleLineAnswer.js +4 -1
  49. package/dist/components/results/SingleLineAnswer.js.map +1 -1
  50. package/dist/components/results/internal/QuestionAutoScore.d.ts +1 -1
  51. package/dist/components/results/internal/QuestionAutoScore.d.ts.map +1 -1
  52. package/dist/components/results/internal/QuestionAutoScore.js +5 -0
  53. package/dist/components/results/internal/QuestionAutoScore.js.map +1 -1
  54. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -1
  55. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  56. package/dist/components/results/internal/QuestionScoresContainer.js +5 -0
  57. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  58. package/dist/components/results/isExamFinishPageHook.d.ts +2 -0
  59. package/dist/components/results/isExamFinishPageHook.d.ts.map +1 -0
  60. package/dist/components/results/isExamFinishPageHook.js +7 -0
  61. package/dist/components/results/isExamFinishPageHook.js.map +1 -0
  62. package/dist/main-bundle.js +1 -1
  63. package/dist/main.css +1 -1
  64. package/package.json +3 -3
@@ -39,7 +39,8 @@ describe.each((0, exam_engine_exams_1.listExams)().map(exam => [path_1.default.b
39
39
  ...commonProps,
40
40
  gradingStructure,
41
41
  answers: (0, exam_engine_generator_1.generateAnswers)(gradingStructure),
42
- scores: mkScores(gradingStructure)
42
+ scores: mkScores(gradingStructure),
43
+ returnToExam: () => { }
43
44
  };
44
45
  expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Exam, { ...examProps })).toJSON()).toMatchSnapshot('<Exam />');
45
46
  expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Attachments, { ...examProps })).toJSON()).toMatchSnapshot('<Attachments />');
@@ -1 +1 @@
1
- {"version":3,"file":"testExamRendering.js","sourceRoot":"","sources":["../../__tests__/testExamRendering.tsx"],"names":[],"mappings":";;;;;AAAA,+DAQiC;AACjC,+FAAsE;AACtE,iEAAqD;AACrD,yEAAyF;AACzF,2BAAmC;AACnC,gDAAuB;AACvB,kDAAyB;AACzB,6DAA4C;AAG5C,mDAA+C;AAC/C,yEAA+D;AAE/D,QAAQ,CAAC,IAAI,CAAC,IAAA,6BAAS,GAAE,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,cAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,SAAS,EAAE,IAAI,EAAE,EAAE;IAC5F,MAAM,iBAAiB,GAAG,CAAC,QAAgB,EAAE,EAAE,CAAC,cAAI,CAAC,OAAO,CAAC,cAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAA;IAEzG,EAAE,CAAC,kBAAkB,EAAE,KAAK,IAAI,EAAE;QAChC,MAAM,MAAM,GAAG,MAAM,aAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;QAC/C,MAAM,OAAO,GAAG,MAAM,IAAA,kCAAU,EAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,IAAA,qDAA6B,EAAC,iBAAiB,CAAC,EAAE;YACnG,oBAAoB,EAAE,KAAK;SAC5B,CAAC,CAAA;QACF,KAAK,M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