@digabi/exam-engine-core 19.17.0-alpha.3 → 19.17.1-abitti2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. package/dist/__tests__/examServerApi.d.ts.map +1 -1
  2. package/dist/__tests__/examServerApi.js +1 -0
  3. package/dist/__tests__/examServerApi.js.map +1 -1
  4. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +3 -6
  5. package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js.map +1 -1
  6. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +1 -2
  7. package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js.map +1 -1
  8. package/dist/__tests__/testExamRendering.js +1 -2
  9. package/dist/__tests__/testExamRendering.js.map +1 -1
  10. package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
  11. package/dist/components/context/CommonExamContext.d.ts +1 -0
  12. package/dist/components/context/CommonExamContext.d.ts.map +1 -1
  13. package/dist/components/context/CommonExamContext.js +2 -1
  14. package/dist/components/context/CommonExamContext.js.map +1 -1
  15. package/dist/components/exam/Exam.d.ts +1 -0
  16. package/dist/components/exam/Exam.d.ts.map +1 -1
  17. package/dist/components/exam/Exam.js +11 -19
  18. package/dist/components/exam/Exam.js.map +1 -1
  19. package/dist/components/exam/Section.d.ts.map +1 -1
  20. package/dist/components/exam/Section.js +0 -8
  21. package/dist/components/exam/Section.js.map +1 -1
  22. package/dist/components/results/ChoiceAnswer.js +1 -1
  23. package/dist/components/results/ChoiceAnswer.js.map +1 -1
  24. package/dist/components/results/DropdownAnswer.d.ts.map +1 -1
  25. package/dist/components/results/DropdownAnswer.js +1 -1
  26. package/dist/components/results/DropdownAnswer.js.map +1 -1
  27. package/dist/components/results/EndExamSession.d.ts +1 -1
  28. package/dist/components/results/EndExamSession.d.ts.map +1 -1
  29. package/dist/components/results/EndExamSession.js +1 -1
  30. package/dist/components/results/EndExamSession.js.map +1 -1
  31. package/dist/components/results/Question.d.ts.map +1 -1
  32. package/dist/components/results/Question.js +2 -7
  33. package/dist/components/results/Question.js.map +1 -1
  34. package/dist/components/results/Results.d.ts +0 -1
  35. package/dist/components/results/Results.d.ts.map +1 -1
  36. package/dist/components/results/Results.js +12 -10
  37. package/dist/components/results/Results.js.map +1 -1
  38. package/dist/components/results/ScoredTextAnswer.d.ts.map +1 -1
  39. package/dist/components/results/ScoredTextAnswer.js +1 -1
  40. package/dist/components/results/ScoredTextAnswer.js.map +1 -1
  41. package/dist/components/results/TextAnswer.d.ts.map +1 -1
  42. package/dist/components/results/TextAnswer.js +2 -2
  43. package/dist/components/results/TextAnswer.js.map +1 -1
  44. package/dist/components/results/internal/QuestionAutoScore.d.ts +1 -2
  45. package/dist/components/results/internal/QuestionAutoScore.d.ts.map +1 -1
  46. package/dist/components/results/internal/QuestionAutoScore.js +2 -2
  47. package/dist/components/results/internal/QuestionAutoScore.js.map +1 -1
  48. package/dist/components/results/internal/QuestionManualScore.d.ts +1 -2
  49. package/dist/components/results/internal/QuestionManualScore.d.ts.map +1 -1
  50. package/dist/components/results/internal/QuestionManualScore.js +2 -2
  51. package/dist/components/results/internal/QuestionManualScore.js.map +1 -1
  52. package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -2
  53. package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
  54. package/dist/components/results/internal/QuestionScoresContainer.js +1 -8
  55. package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
  56. package/dist/components/shared/Reference.d.ts.map +1 -1
  57. package/dist/components/shared/Reference.js +1 -1
  58. package/dist/components/shared/Reference.js.map +1 -1
  59. package/dist/components/shared/TableOfContents.d.ts.map +1 -1
  60. package/dist/components/shared/TableOfContents.js +2 -4
  61. package/dist/components/shared/TableOfContents.js.map +1 -1
  62. package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
  63. package/dist/components/shared/internal/RestrictedAudioPlayer.js +13 -2
  64. package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
  65. package/dist/i18n/fi-FI.d.ts +0 -4
  66. package/dist/i18n/fi-FI.d.ts.map +1 -1
  67. package/dist/i18n/fi-FI.js +3 -7
  68. package/dist/i18n/fi-FI.js.map +1 -1
  69. package/dist/i18n/sv-FI.d.ts.map +1 -1
  70. package/dist/i18n/sv-FI.js +2 -6
  71. package/dist/i18n/sv-FI.js.map +1 -1
  72. package/dist/main-bundle.js +1 -1
  73. package/dist/main.css +1 -1
  74. package/dist/store/audio/reducer.d.ts +3 -0
  75. package/dist/store/audio/reducer.d.ts.map +1 -1
  76. package/dist/store/audio/reducer.js.map +1 -1
  77. package/dist/store/audio/sagas.d.ts.map +1 -1
  78. package/dist/store/audio/sagas.js +40 -11
  79. package/dist/store/audio/sagas.js.map +1 -1
  80. package/dist/types/ExamAnswer.d.ts +0 -1
  81. package/dist/types/ExamAnswer.d.ts.map +1 -1
  82. package/dist/types/ExamServerAPI.d.ts +8 -0
  83. package/dist/types/ExamServerAPI.d.ts.map +1 -1
  84. package/package.json +2 -2
  85. package/dist/components/exam/GoToExamineAnswersButton.d.ts +0 -5
  86. package/dist/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
  87. package/dist/components/exam/GoToExamineAnswersButton.js +0 -18
  88. package/dist/components/exam/GoToExamineAnswersButton.js.map +0 -1
  89. package/dist/components/exam/ProceedToExamineAnswers.d.ts +0 -5
  90. package/dist/components/exam/ProceedToExamineAnswers.d.ts.map +0 -1
  91. package/dist/components/exam/ProceedToExamineAnswers.js +0 -20
  92. package/dist/components/exam/ProceedToExamineAnswers.js.map +0 -1
  93. package/dist/components/results/isExamExaminePageHook.d.ts +0 -2
  94. package/dist/components/results/isExamExaminePageHook.d.ts.map +0 -1
  95. package/dist/components/results/isExamExaminePageHook.js +0 -7
  96. package/dist/components/results/isExamExaminePageHook.js.map +0 -1
@@ -1,20 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { useExamTranslation } from '../../i18n';
3
- import { ExamContext } from '../context/ExamContext';
4
- function ProceedToExamineAnswers() {
5
- const { examServerApi } = useContext(ExamContext);
6
- const { examineExam } = examServerApi;
7
- const { t } = useExamTranslation();
8
- const goToInspectAnswers = () => {
9
- if (!examineExam) {
10
- return;
11
- }
12
- examineExam();
13
- window.scrollTo(0, 0);
14
- };
15
- return (React.createElement("div", { className: "e-examine-exam" },
16
- React.createElement("button", { className: "e-button", id: "examineExam", onClick: goToInspectAnswers, "aria-describedby": "examineExamInstructions" }, t('examine-exam.examine')),
17
- React.createElement("div", { className: "e-examine-exam-instructions", id: "examineExamInstructions" }, t('examine-exam.instructions'))));
18
- }
19
- export default React.memo(ProceedToExamineAnswers);
20
- //# sourceMappingURL=ProceedToExamineAnswers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ProceedToExamineAnswers.js","sourceRoot":"","sources":["../../../src/components/exam/ProceedToExamineAnswers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAGpD,SAAS,uBAAuB;IAC9B,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,WAAW,CAAC,CAAA;IACjD,MAAM,EAAE,WAAW,EAAE,GAAkB,aAAa,CAAA;IACpD,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,MAAM,kBAAkB,GAAG,GAAG,EAAE;QAC9B,IAAI,CAAC,WAAW,EAAE,CAAC;YACjB,OAAM;QACR,CAAC;QACD,WAAW,EAAE,CAAA;QACb,MAAM,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACvB,CAAC,CAAA;IAED,OAAO,CACL,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,gCACE,SAAS,EAAC,UAAU,EACpB,EAAE,EAAC,aAAa,EAChB,OAAO,EAAE,kBAAkB,sBACV,yBAAyB,IAEzC,CAAC,CAAC,sBAAsB,CAAC,CACnB;QACT,6BAAK,SAAS,EAAC,6BAA6B,EAAC,EAAE,EAAC,yBAAyB,IACtE,CAAC,CAAC,2BAA2B,CAAC,CAC3B,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const useIsStudentsExamineExamPage: () => boolean;
2
- //# sourceMappingURL=isExamExaminePageHook.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isExamExaminePageHook.d.ts","sourceRoot":"","sources":["../../../src/components/results/isExamExaminePageHook.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,4BAA4B,eAGxC,CAAA"}
@@ -1,7 +0,0 @@
1
- import { useContext } from 'react';
2
- import { ResultsContext } from '../context/ResultsContext';
3
- export const useIsStudentsExamineExamPage = () => {
4
- const { gradingStructure } = useContext(ResultsContext);
5
- return gradingStructure === undefined;
6
- };
7
- //# sourceMappingURL=isExamExaminePageHook.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isExamExaminePageHook.js","sourceRoot":"","sources":["../../../src/components/results/isExamExaminePageHook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,CAAC,MAAM,4BAA4B,GAAG,GAAG,EAAE;IAC/C,MAAM,EAAE,gBAAgB,EAAE,GAAG,UAAU,CAAC,cAAc,CAAC,CAAA;IACvD,OAAO,gBAAgB,KAAK,SAAS,CAAA;AACvC,CAAC,CAAA"}