@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.
- package/dist/__tests__/examServerApi.d.ts.map +1 -1
- package/dist/__tests__/examServerApi.js +1 -0
- package/dist/__tests__/examServerApi.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js +3 -6
- package/dist/__tests__/results/ResultsExamQuestionAutoScore.test.js.map +1 -1
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js +1 -2
- package/dist/__tests__/results/ResultsExamQuestionManualScore.test.js.map +1 -1
- package/dist/__tests__/testExamRendering.js +1 -2
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/components/context/CommonExamContext.d.ts +1 -0
- package/dist/components/context/CommonExamContext.d.ts.map +1 -1
- package/dist/components/context/CommonExamContext.js +2 -1
- package/dist/components/context/CommonExamContext.js.map +1 -1
- 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 +11 -19
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/Section.d.ts.map +1 -1
- package/dist/components/exam/Section.js +0 -8
- package/dist/components/exam/Section.js.map +1 -1
- package/dist/components/results/ChoiceAnswer.js +1 -1
- package/dist/components/results/ChoiceAnswer.js.map +1 -1
- package/dist/components/results/DropdownAnswer.d.ts.map +1 -1
- package/dist/components/results/DropdownAnswer.js +1 -1
- package/dist/components/results/DropdownAnswer.js.map +1 -1
- package/dist/components/results/EndExamSession.d.ts +1 -1
- package/dist/components/results/EndExamSession.d.ts.map +1 -1
- package/dist/components/results/EndExamSession.js +1 -1
- package/dist/components/results/EndExamSession.js.map +1 -1
- package/dist/components/results/Question.d.ts.map +1 -1
- package/dist/components/results/Question.js +2 -7
- package/dist/components/results/Question.js.map +1 -1
- package/dist/components/results/Results.d.ts +0 -1
- package/dist/components/results/Results.d.ts.map +1 -1
- package/dist/components/results/Results.js +12 -10
- package/dist/components/results/Results.js.map +1 -1
- package/dist/components/results/ScoredTextAnswer.d.ts.map +1 -1
- package/dist/components/results/ScoredTextAnswer.js +1 -1
- package/dist/components/results/ScoredTextAnswer.js.map +1 -1
- package/dist/components/results/TextAnswer.d.ts.map +1 -1
- package/dist/components/results/TextAnswer.js +2 -2
- package/dist/components/results/TextAnswer.js.map +1 -1
- package/dist/components/results/internal/QuestionAutoScore.d.ts +1 -2
- package/dist/components/results/internal/QuestionAutoScore.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionAutoScore.js +2 -2
- package/dist/components/results/internal/QuestionAutoScore.js.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.d.ts +1 -2
- package/dist/components/results/internal/QuestionManualScore.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionManualScore.js +2 -2
- package/dist/components/results/internal/QuestionManualScore.js.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.d.ts +1 -2
- package/dist/components/results/internal/QuestionScoresContainer.d.ts.map +1 -1
- package/dist/components/results/internal/QuestionScoresContainer.js +1 -8
- package/dist/components/results/internal/QuestionScoresContainer.js.map +1 -1
- package/dist/components/shared/Reference.d.ts.map +1 -1
- package/dist/components/shared/Reference.js +1 -1
- package/dist/components/shared/Reference.js.map +1 -1
- package/dist/components/shared/TableOfContents.d.ts.map +1 -1
- package/dist/components/shared/TableOfContents.js +2 -4
- package/dist/components/shared/TableOfContents.js.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.d.ts.map +1 -1
- package/dist/components/shared/internal/RestrictedAudioPlayer.js +13 -2
- package/dist/components/shared/internal/RestrictedAudioPlayer.js.map +1 -1
- package/dist/i18n/fi-FI.d.ts +0 -4
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +3 -7
- 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 +2 -6
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main.css +1 -1
- package/dist/store/audio/reducer.d.ts +3 -0
- package/dist/store/audio/reducer.d.ts.map +1 -1
- package/dist/store/audio/reducer.js.map +1 -1
- package/dist/store/audio/sagas.d.ts.map +1 -1
- package/dist/store/audio/sagas.js +40 -11
- package/dist/store/audio/sagas.js.map +1 -1
- package/dist/types/ExamAnswer.d.ts +0 -1
- package/dist/types/ExamAnswer.d.ts.map +1 -1
- package/dist/types/ExamServerAPI.d.ts +8 -0
- package/dist/types/ExamServerAPI.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/components/exam/GoToExamineAnswersButton.d.ts +0 -5
- package/dist/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
- package/dist/components/exam/GoToExamineAnswersButton.js +0 -18
- package/dist/components/exam/GoToExamineAnswersButton.js.map +0 -1
- package/dist/components/exam/ProceedToExamineAnswers.d.ts +0 -5
- package/dist/components/exam/ProceedToExamineAnswers.d.ts.map +0 -1
- package/dist/components/exam/ProceedToExamineAnswers.js +0 -20
- package/dist/components/exam/ProceedToExamineAnswers.js.map +0 -1
- package/dist/components/results/isExamExaminePageHook.d.ts +0 -2
- package/dist/components/results/isExamExaminePageHook.d.ts.map +0 -1
- package/dist/components/results/isExamExaminePageHook.js +0 -7
- package/dist/components/results/isExamExaminePageHook.js.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"examServerApi.d.ts","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,eAAO,MAAM,aAAa,EAAE,
|
1
|
+
{"version":3,"file":"examServerApi.d.ts","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAEtC,eAAO,MAAM,aAAa,EAAE,aAS3B,CAAA"}
|
@@ -8,6 +8,7 @@ exports.examServerApi = {
|
|
8
8
|
saveScreenshot: () => Promise.resolve('ok'),
|
9
9
|
playAudio: () => Promise.resolve('ok'),
|
10
10
|
playRestrictedAudio: () => Promise.resolve('ok'),
|
11
|
+
getRestrictedAudio: () => Promise.resolve(new Blob()),
|
11
12
|
examineExam: () => undefined
|
12
13
|
};
|
13
14
|
//# sourceMappingURL=examServerApi.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"examServerApi.js","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;IACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IACtC,mBAAmB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;CAC7B,CAAA"}
|
1
|
+
{"version":3,"file":"examServerApi.js","sourceRoot":"","sources":["../../__tests__/examServerApi.ts"],"names":[],"mappings":";;;AAEa,QAAA,aAAa,GAAkB;IAC1C,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACrC,YAAY,EAAE,SAAS,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC;IACrD,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;IACnC,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAC3C,SAAS,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IACtC,mBAAmB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC;IAChD,kBAAkB,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;IACrD,WAAW,EAAE,GAAG,EAAE,CAAC,SAAS;CAC7B,CAAA"}
|
@@ -18,8 +18,7 @@ describe('<QuestionAutoScore />', () => {
|
|
18
18
|
const props = {
|
19
19
|
score: undefined,
|
20
20
|
maxScore: 3,
|
21
|
-
displayNumber: '1'
|
22
|
-
questionId: 1
|
21
|
+
displayNumber: '1'
|
23
22
|
};
|
24
23
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
25
24
|
});
|
@@ -27,8 +26,7 @@ describe('<QuestionAutoScore />', () => {
|
|
27
26
|
const props = {
|
28
27
|
score: 1,
|
29
28
|
maxScore: 3,
|
30
|
-
displayNumber: '1'
|
31
|
-
questionId: 1
|
29
|
+
displayNumber: '1'
|
32
30
|
};
|
33
31
|
expect(renderWithContext(props, []).toJSON()).toMatchSnapshot();
|
34
32
|
});
|
@@ -36,8 +34,7 @@ describe('<QuestionAutoScore />', () => {
|
|
36
34
|
const props = {
|
37
35
|
score: 1,
|
38
36
|
maxScore: 3,
|
39
|
-
displayNumber: '1'
|
40
|
-
questionId: 1
|
37
|
+
displayNumber: '1'
|
41
38
|
};
|
42
39
|
expect(renderWithContext(props, [{}, {}]).toJSON()).toMatchSnapshot();
|
43
40
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsExamQuestionAutoScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionAutoScore.test.tsx"],"names":[],"mappings":";;;;;AACA,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAC5C,kFAA8E;AAC9E,gHAAmH;AACnH,yCAAyC;AAEzC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,IAAkB,CAAA;IAEtB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,IAAA,eAAQ,EAAC,OAAO,CAAC,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,KAAK,GAAG;YACZ,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,GAAG;
|
1
|
+
{"version":3,"file":"ResultsExamQuestionAutoScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionAutoScore.test.tsx"],"names":[],"mappings":";;;;;AACA,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAC5C,kFAA8E;AAC9E,gHAAmH;AACnH,yCAAyC;AAEzC,QAAQ,CAAC,uBAAuB,EAAE,GAAG,EAAE;IACrC,IAAI,IAAkB,CAAA;IAEtB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,GAAG,IAAA,eAAQ,EAAC,OAAO,CAAC,CAAA;IAC1B,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,uBAAuB,EAAE,GAAG,EAAE;QAC/B,MAAM,KAAK,GAAG;YACZ,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,GAAG;SACnB,CAAA;QACD,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAA;IACjE,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC5B,MAAM,KAAK,GAAG;YACZ,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,GAAG;SACnB,CAAA;QACD,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAA;IACjE,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,kEAAkE,EAAE,GAAG,EAAE;QAC1E,MAAM,KAAK,GAAG;YACZ,KAAK,EAAE,CAAC;YACR,QAAQ,EAAE,CAAC;YACX,aAAa,EAAE,GAAG;SACnB,CAAA;QACD,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,CAAC,EAAa,EAAE,EAAa,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAA;IAC7F,CAAC,CAAC,CAAA;IAEF,MAAM,YAAY,GAAG;QACnB,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,GAAG;QAClB,mBAAmB,EAAE,KAAK;QAC1B,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,EAAE;QAClB,gBAAgB,EAAE,EAAE;KACrB,CAAA;IAED,SAAS,iBAAiB,CAAC,KAA6B,EAAE,OAAkB;QAC1E,OAAO,IAAA,4BAAM,EACX,8BAAC,iCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,OAAO,EAAE;YAC3D,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI;gBACzB,8BAAC,2BAAiB,OAAK,KAAK,GAAI,CAChB,CACO,CAC5B,CAAA;IACH,CAAC;AACH,CAAC,CAAC,CAAA"}
|
@@ -12,8 +12,7 @@ const QuestionManualScore_1 = __importDefault(require("../../src/components/resu
|
|
12
12
|
const i18n_1 = require("../../src/i18n");
|
13
13
|
const defaultProps = {
|
14
14
|
maxScore: 6,
|
15
|
-
displayNumber: '1'
|
16
|
-
questionId: 1
|
15
|
+
displayNumber: '1'
|
17
16
|
};
|
18
17
|
const defaultScores = {
|
19
18
|
questionId: 1,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ResultsExamQuestionManualScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionManualScore.test.tsx"],"names":[],"mappings":";;;;;AACA,oDAAsB;AACtB,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAE5C,kFAA8E;AAC9E,oHAEkE;AAClE,yCAAyC;AAEzC,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,GAAG;
|
1
|
+
{"version":3,"file":"ResultsExamQuestionManualScore.test.js","sourceRoot":"","sources":["../../../__tests__/results/ResultsExamQuestionManualScore.test.tsx"],"names":[],"mappings":";;;;;AACA,oDAAsB;AACtB,kDAAyB;AACzB,iDAA+C;AAC/C,6DAA4C;AAE5C,kFAA8E;AAC9E,oHAEkE;AAClE,yCAAyC;AAEzC,MAAM,YAAY,GAAG;IACnB,QAAQ,EAAE,CAAC;IACX,aAAa,EAAE,GAAG;CACnB,CAAA;AAED,MAAM,aAAa,GAAU;IAC3B,UAAU,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC;IACX,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE;IACzC,SAAS,EAAE;QACT,MAAM,EAAE;YACN,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;YAC9B,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;YAC9B,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;SAC/B;QACD,WAAW,EAAE,EAAE;QACf,gBAAgB,EAAE,EAAE;KACrB;IACD,UAAU,EAAE,EAAE,KAAK,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;CACrD,CAAA;AAED,QAAQ,CAAC,yBAAyB,EAAE,GAAG,EAAE;IACvC,IAAI,IAAkB,CAAA;IAEtB,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACrB,SAAS,CAAC,GAAG,EAAE;YACb,IAAI,GAAG,IAA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C,MAAM,EAAE,CAAC,CAAC,eAAe,EAAE,CAAA;QACjE,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;IAEF,MAAM,YAAY,GAAG;QACnB,OAAO,EAAE,EAAE;QACX,aAAa,EAAE,GAAG;QAClB,mBAAmB,EAAE,KAAK;QAC1B,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;QACX,KAAK,EAAE,CAAC;QACR,cAAc,EAAE,EAAE;QAClB,gBAAgB,EAAE,EAAE;KACrB,CAAA;IAED,SAAS,iBAAiB,CAAC,KAA+B,EAAE,OAAkB;QAC5E,OAAO,IAAA,4BAAM,EACX,8BAAC,iCAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,GAAG,YAAY,EAAE,OAAO,EAAE;YAC3D,8BAAC,+BAAe,IAAC,IAAI,EAAE,IAAI;gBACzB,8BAAC,6BAAmB,OAAK,KAAK,GAAI,CAClB,CACO,CAC5B,CAAA;IACH,CAAC;AACH,CAAC,CAAC,CAAA"}
|
@@ -49,8 +49,7 @@ describe.each((0, exam_engine_exams_1.listExams)().map(exam => [path_1.default.b
|
|
49
49
|
answers: (0, exam_engine_generator_1.generateAnswers)(gradingStructure),
|
50
50
|
scores: mkScores(gradingStructure),
|
51
51
|
returnToExam: () => { },
|
52
|
-
endSession: () => Promise.resolve()
|
53
|
-
studentSessionEnded: false
|
52
|
+
endSession: () => Promise.resolve()
|
54
53
|
};
|
55
54
|
expect((0, react_test_renderer_1.create)(react_1.default.createElement(exam_engine_core_1.Exam, { ...examProps })).toJSON()).toMatchSnapshot('<Exam />');
|
56
55
|
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,iE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