@digabi/exam-engine-core 19.10.1 → 19.10.4-alpha.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 +2 -1
- package/dist/__tests__/examServerApi.js.map +1 -1
- package/dist/__tests__/testExamRendering.js +9 -1
- package/dist/__tests__/testExamRendering.js.map +1 -1
- package/dist/__tests__/tsconfig.tsbuildinfo +1 -1
- package/dist/assets/logo.png +0 -0
- package/dist/components/exam/Exam.d.ts +10 -0
- package/dist/components/exam/Exam.d.ts.map +1 -1
- package/dist/components/exam/Exam.js +7 -2
- package/dist/components/exam/Exam.js.map +1 -1
- package/dist/components/exam/ExamFooter.d.ts.map +1 -1
- package/dist/components/exam/ExamFooter.js +11 -2
- package/dist/components/exam/ExamFooter.js.map +1 -1
- package/dist/components/exam/StudentNameHeader.d.ts +8 -0
- package/dist/components/exam/StudentNameHeader.d.ts.map +1 -0
- package/dist/components/exam/StudentNameHeader.js +3 -0
- package/dist/components/exam/StudentNameHeader.js.map +1 -0
- package/dist/components/exam/UndoHistoryEntry.d.ts +20 -0
- package/dist/components/exam/UndoHistoryEntry.d.ts.map +1 -0
- package/dist/components/exam/UndoHistoryEntry.js +42 -0
- package/dist/components/exam/UndoHistoryEntry.js.map +1 -0
- package/dist/components/exam/UndoView.d.ts +36 -0
- package/dist/components/exam/UndoView.d.ts.map +1 -0
- package/dist/components/exam/UndoView.js +162 -0
- package/dist/components/exam/UndoView.js.map +1 -0
- package/dist/components/exam/undo-view.d.ts +36 -0
- package/dist/components/exam/undo-view.d.ts.map +1 -0
- package/dist/components/exam/undo-view.js +162 -0
- package/dist/components/exam/undo-view.js.map +1 -0
- package/dist/components/grading/GradingAnswer.d.ts.map +1 -1
- package/dist/components/grading/GradingAnswer.js.map +1 -1
- package/dist/components/grading/editAnnotations.d.ts +1 -1
- package/dist/components/grading/editAnnotations.d.ts.map +1 -1
- package/dist/components/grading/editAnnotations.js +0 -1
- package/dist/components/grading/editAnnotations.js.map +1 -1
- package/dist/components/shared/ExamTranslation.d.ts.map +1 -1
- package/dist/components/shared/ExamTranslation.js +0 -1
- package/dist/components/shared/ExamTranslation.js.map +1 -1
- package/dist/components/shared/internal/AudioPlaybackError.d.ts.map +1 -1
- package/dist/components/shared/internal/AudioPlaybackError.js +1 -0
- package/dist/components/shared/internal/AudioPlaybackError.js.map +1 -1
- package/dist/i18n/fi-FI.d.ts +17 -0
- package/dist/i18n/fi-FI.d.ts.map +1 -1
- package/dist/i18n/fi-FI.js +17 -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 +17 -0
- package/dist/i18n/sv-FI.js.map +1 -1
- package/dist/main-bundle.js +1 -1
- package/dist/main-bundle.js.LICENSE.txt +14 -0
- package/dist/main.css +1 -1
- package/dist/store/index.d.ts.map +1 -1
- package/dist/store/index.js +1 -0
- package/dist/store/index.js.map +1 -1
- package/dist/types/ExamServerAPI.d.ts +1 -0
- package/dist/types/ExamServerAPI.d.ts.map +1 -1
- package/package.json +2 -2
@@ -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,aAQ3B,CAAA"}
|
@@ -7,6 +7,7 @@ exports.examServerApi = {
|
|
7
7
|
saveAnswer: () => Promise.resolve(),
|
8
8
|
saveScreenshot: () => Promise.resolve('ok'),
|
9
9
|
playAudio: () => Promise.resolve('ok'),
|
10
|
-
playRestrictedAudio: () => Promise.resolve('ok')
|
10
|
+
playRestrictedAudio: () => Promise.resolve('ok'),
|
11
|
+
finishExam: () => Promise.resolve()
|
11
12
|
};
|
12
13
|
//# 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;
|
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,UAAU,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;CACpC,CAAA"}
|
@@ -33,7 +33,15 @@ describe.each((0, exam_engine_exams_1.listExams)().map(exam => [path_1.default.b
|
|
33
33
|
...commonProps,
|
34
34
|
casStatus: 'forbidden',
|
35
35
|
examServerApi: examServerApi_1.examServerApi,
|
36
|
-
restrictedAudioPlaybackStats: []
|
36
|
+
restrictedAudioPlaybackStats: [],
|
37
|
+
studentName: '[Kokelaan Nimi]',
|
38
|
+
showUndoView: false,
|
39
|
+
undoViewProps: {
|
40
|
+
questionId: 0,
|
41
|
+
title: '',
|
42
|
+
close: () => undefined,
|
43
|
+
restoreAnswer: () => undefined
|
44
|
+
}
|
37
45
|
};
|
38
46
|
const resultsProps = {
|
39
47
|
...commonProps,
|
@@ -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,CA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